@attabot/product-app 1.0.36 → 1.0.37

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,8 +1,8 @@
1
- (function(c,F){typeof exports=="object"&&typeof module<"u"?module.exports=F(require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-dom"],F):(c=typeof globalThis<"u"?globalThis:c||self,c.ProductApp=F(c["react/jsx-runtime"],c.React,c.ReactDOM))})(this,(function(c,F,Fo){"use strict";var Cl=typeof document<"u"?document.currentScript:null;function hu(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 T=hu(F),Fy=hu(Fo);function Mo(){return Mo=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},Mo.apply(this,arguments)}var rr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(rr||(rr={}));const gu="popstate";function My(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:a,hash:l}=r.location;return El("",{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:Do(i)}return _y(t,n,null,e)}function Be(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function nn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Dy(){return Math.random().toString(36).substr(2,8)}function mu(e,t){return{usr:e.state,key:e.key,idx:t}}function El(e,t,n,r){return n===void 0&&(n=null),Mo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Rr(t):t,{state:n,key:t&&t.key||r||Dy()})}function Do(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 Rr(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 _y(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,l=rr.Pop,d=null,p=u();p==null&&(p=0,a.replaceState(Mo({},a.state,{idx:p}),""));function u(){return(a.state||{idx:null}).idx}function f(){l=rr.Pop;let m=u(),S=m==null?null:m-p;p=m,d&&d({action:l,location:h.location,delta:S})}function y(m,S){l=rr.Push;let C=El(h.location,m,S);p=u()+1;let b=mu(C,p),v=h.createHref(C);try{a.pushState(b,"",v)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(v)}s&&d&&d({action:l,location:h.location,delta:1})}function x(m,S){l=rr.Replace;let C=El(h.location,m,S);p=u();let b=mu(C,p),v=h.createHref(C);a.replaceState(b,"",v),s&&d&&d({action:l,location:h.location,delta:0})}function g(m){let S=i.location.origin!=="null"?i.location.origin:i.location.href,C=typeof m=="string"?m:Do(m);return C=C.replace(/ $/,"%20"),Be(S,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,S)}let h={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(gu,f),d=m,()=>{i.removeEventListener(gu,f),d=null}},createHref(m){return t(i,m)},createURL:g,encodeLocation(m){let S=g(m);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:y,replace:x,go(m){return a.go(m)}};return h}var yu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(yu||(yu={}));function zy(e,t,n){return n===void 0&&(n="/"),$y(e,t,n)}function $y(e,t,n,r){let i=typeof t=="string"?Rr(t):t,s=or(i.pathname||"/",n);if(s==null)return null;let a=bu(e);By(a);let l=null;for(let d=0;l==null&&d<a.length;++d){let p=Ky(s);l=Yy(a[d],p)}return l}function bu(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("/")&&(Be(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=Yn([r,d.relativePath]),u=n.concat(d);s.children&&s.children.length>0&&(Be(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),bu(s.children,t,u,p)),!(s.path==null&&!s.index)&&t.push({path:p,score:Ry(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 xu(s.path))i(s,a,d)}),t}function xu(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=xu(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 By(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:qy(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Ly=/^:[\w-]+$/,jy=3,Wy=2,Vy=1,Uy=10,Hy=-2,vu=e=>e==="*";function Ry(e,t){let n=e.split("/"),r=n.length;return n.some(vu)&&(r+=Hy),t&&(r+=Wy),n.filter(i=>!vu(i)).reduce((i,s)=>i+(Ly.test(s)?jy:s===""?Vy:Uy),r)}function qy(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 Yy(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)||"/",f=Tl({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},u),y=d.route;if(!f)return null;Object.assign(i,f.params),a.push({params:i,pathname:Yn([s,f.pathname]),pathnameBase:eb(Yn([s,f.pathnameBase])),route:y}),f.pathnameBase!=="/"&&(s=Yn([s,f.pathnameBase]))}return a}function Tl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Gy(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,f)=>{let{paramName:y,isOptional:x}=u;if(y==="*"){let h=l[f]||"";a=s.slice(0,s.length-h.length).replace(/(.)\/+$/,"$1")}const g=l[f];return x&&!g?p[y]=void 0:p[y]=(g||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:a,pattern:e}}function Gy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),nn(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 Ky(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return nn(!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 or(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 Xy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jy=e=>Xy.test(e);function Qy(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Rr(e):e,s;if(n)if(Jy(n))s=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),nn(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?s=Su(n.substring(1),"/"):s=Su(n,t)}else s=t;return{pathname:s,search:tb(r),hash:nb(i)}}function Su(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 Al(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 Zy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wu(e,t){let n=Zy(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Cu(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Rr(e):(i=Mo({},e),Be(!i.pathname||!i.pathname.includes("?"),Al("?","pathname","search",i)),Be(!i.pathname||!i.pathname.includes("#"),Al("#","pathname","hash",i)),Be(!i.search||!i.search.includes("#"),Al("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let y=a.split("/");for(;y[0]==="..";)y.shift(),f-=1;i.pathname=y.join("/")}l=f>=0?t[f]:"/"}let d=Qy(i,l),p=a&&a!=="/"&&a.endsWith("/"),u=(s||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(p||u)&&(d.pathname+="/"),d}const Yn=e=>e.join("/").replace(/\/\/+/g,"/"),eb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function rb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Eu=["post","put","patch","delete"];new Set(Eu);const ob=["get",...Eu];new Set(ob);function _o(){return _o=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},_o.apply(this,arguments)}const zo=T.createContext(null);process.env.NODE_ENV!=="production"&&(zo.displayName="DataRouter");const Pl=T.createContext(null);process.env.NODE_ENV!=="production"&&(Pl.displayName="DataRouterState");const ib=T.createContext(null);process.env.NODE_ENV!=="production"&&(ib.displayName="Await");const mn=T.createContext(null);process.env.NODE_ENV!=="production"&&(mn.displayName="Navigation");const $o=T.createContext(null);process.env.NODE_ENV!=="production"&&($o.displayName="Location");const En=T.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(En.displayName="Route");const kl=T.createContext(null);process.env.NODE_ENV!=="production"&&(kl.displayName="RouteError");function sb(e,t){let{relative:n}=t===void 0?{}:t;Bo()||(process.env.NODE_ENV!=="production"?Be(!1,"useHref() may be used only in the context of a <Router> component."):Be(!1));let{basename:r,navigator:i}=T.useContext(mn),{hash:s,pathname:a,search:l}=Lo(e,{relative:n}),d=a;return r!=="/"&&(d=a==="/"?r:Yn([r,a])),i.createHref({pathname:d,search:l,hash:s})}function Bo(){return T.useContext($o)!=null}function It(){return Bo()||(process.env.NODE_ENV!=="production"?Be(!1,"useLocation() may be used only in the context of a <Router> component."):Be(!1)),T.useContext($o).location}const Tu="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Au(e){T.useContext(mn).static||T.useLayoutEffect(e)}function Bt(){let{isDataRoute:e}=T.useContext(En);return e?wb():ab()}function ab(){Bo()||(process.env.NODE_ENV!=="production"?Be(!1,"useNavigate() may be used only in the context of a <Router> component."):Be(!1));let e=T.useContext(zo),{basename:t,future:n,navigator:r}=T.useContext(mn),{matches:i}=T.useContext(En),{pathname:s}=It(),a=JSON.stringify(wu(i,n.v7_relativeSplatPath)),l=T.useRef(!1);return Au(()=>{l.current=!0}),T.useCallback(function(p,u){if(u===void 0&&(u={}),process.env.NODE_ENV!=="production"&&nn(l.current,Tu),!l.current)return;if(typeof p=="number"){r.go(p);return}let f=Cu(p,JSON.parse(a),s,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Yn([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,a,s,e])}const lb=T.createContext(null);function cb(e){let t=T.useContext(En).outlet;return t&&T.createElement(lb.Provider,{value:e},t)}function Lo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=T.useContext(mn),{matches:i}=T.useContext(En),{pathname:s}=It(),a=JSON.stringify(wu(i,r.v7_relativeSplatPath));return T.useMemo(()=>Cu(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function db(e,t){return ub(e,t)}function ub(e,t,n,r){Bo()||(process.env.NODE_ENV!=="production"?Be(!1,"useRoutes() may be used only in the context of a <Router> component."):Be(!1));let{navigator:i}=T.useContext(mn),{matches:s}=T.useContext(En),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 C=u&&u.path||"";Ou(d,!u||C.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+d+'" (under <Route path="'+C+'">) 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,F){typeof exports=="object"&&typeof module<"u"?module.exports=F(require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-dom"],F):(c=typeof globalThis<"u"?globalThis:c||self,c.ProductApp=F(c["react/jsx-runtime"],c.React,c.ReactDOM))})(this,(function(c,F,Fo){"use strict";var Cl=typeof document<"u"?document.currentScript:null;function hu(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 T=hu(F),Fy=hu(Fo);function Mo(){return Mo=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},Mo.apply(this,arguments)}var or;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(or||(or={}));const gu="popstate";function My(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:a,hash:l}=r.location;return El("",{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:Do(i)}return _y(t,n,null,e)}function Be(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function nn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Dy(){return Math.random().toString(36).substr(2,8)}function mu(e,t){return{usr:e.state,key:e.key,idx:t}}function El(e,t,n,r){return n===void 0&&(n=null),Mo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Rr(t):t,{state:n,key:t&&t.key||r||Dy()})}function Do(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 Rr(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 _y(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,l=or.Pop,d=null,p=u();p==null&&(p=0,a.replaceState(Mo({},a.state,{idx:p}),""));function u(){return(a.state||{idx:null}).idx}function f(){l=or.Pop;let m=u(),S=m==null?null:m-p;p=m,d&&d({action:l,location:h.location,delta:S})}function y(m,S){l=or.Push;let C=El(h.location,m,S);p=u()+1;let b=mu(C,p),v=h.createHref(C);try{a.pushState(b,"",v)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(v)}s&&d&&d({action:l,location:h.location,delta:1})}function x(m,S){l=or.Replace;let C=El(h.location,m,S);p=u();let b=mu(C,p),v=h.createHref(C);a.replaceState(b,"",v),s&&d&&d({action:l,location:h.location,delta:0})}function g(m){let S=i.location.origin!=="null"?i.location.origin:i.location.href,C=typeof m=="string"?m:Do(m);return C=C.replace(/ $/,"%20"),Be(S,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,S)}let h={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(gu,f),d=m,()=>{i.removeEventListener(gu,f),d=null}},createHref(m){return t(i,m)},createURL:g,encodeLocation(m){let S=g(m);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:y,replace:x,go(m){return a.go(m)}};return h}var yu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(yu||(yu={}));function zy(e,t,n){return n===void 0&&(n="/"),$y(e,t,n)}function $y(e,t,n,r){let i=typeof t=="string"?Rr(t):t,s=ir(i.pathname||"/",n);if(s==null)return null;let a=bu(e);By(a);let l=null;for(let d=0;l==null&&d<a.length;++d){let p=Ky(s);l=Yy(a[d],p)}return l}function bu(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("/")&&(Be(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=Yn([r,d.relativePath]),u=n.concat(d);s.children&&s.children.length>0&&(Be(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),bu(s.children,t,u,p)),!(s.path==null&&!s.index)&&t.push({path:p,score:Ry(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 xu(s.path))i(s,a,d)}),t}function xu(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=xu(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 By(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:qy(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Ly=/^:[\w-]+$/,jy=3,Wy=2,Vy=1,Hy=10,Uy=-2,vu=e=>e==="*";function Ry(e,t){let n=e.split("/"),r=n.length;return n.some(vu)&&(r+=Uy),t&&(r+=Wy),n.filter(i=>!vu(i)).reduce((i,s)=>i+(Ly.test(s)?jy:s===""?Vy:Hy),r)}function qy(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 Yy(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)||"/",f=Tl({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},u),y=d.route;if(!f)return null;Object.assign(i,f.params),a.push({params:i,pathname:Yn([s,f.pathname]),pathnameBase:eb(Yn([s,f.pathnameBase])),route:y}),f.pathnameBase!=="/"&&(s=Yn([s,f.pathnameBase]))}return a}function Tl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Gy(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,f)=>{let{paramName:y,isOptional:x}=u;if(y==="*"){let h=l[f]||"";a=s.slice(0,s.length-h.length).replace(/(.)\/+$/,"$1")}const g=l[f];return x&&!g?p[y]=void 0:p[y]=(g||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:a,pattern:e}}function Gy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),nn(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 Ky(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return nn(!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 ir(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 Xy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jy=e=>Xy.test(e);function Qy(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Rr(e):e,s;if(n)if(Jy(n))s=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),nn(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?s=Su(n.substring(1),"/"):s=Su(n,t)}else s=t;return{pathname:s,search:tb(r),hash:nb(i)}}function Su(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 Al(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 Zy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wu(e,t){let n=Zy(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Cu(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Rr(e):(i=Mo({},e),Be(!i.pathname||!i.pathname.includes("?"),Al("?","pathname","search",i)),Be(!i.pathname||!i.pathname.includes("#"),Al("#","pathname","hash",i)),Be(!i.search||!i.search.includes("#"),Al("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let y=a.split("/");for(;y[0]==="..";)y.shift(),f-=1;i.pathname=y.join("/")}l=f>=0?t[f]:"/"}let d=Qy(i,l),p=a&&a!=="/"&&a.endsWith("/"),u=(s||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(p||u)&&(d.pathname+="/"),d}const Yn=e=>e.join("/").replace(/\/\/+/g,"/"),eb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function rb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Eu=["post","put","patch","delete"];new Set(Eu);const ob=["get",...Eu];new Set(ob);function _o(){return _o=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},_o.apply(this,arguments)}const zo=T.createContext(null);process.env.NODE_ENV!=="production"&&(zo.displayName="DataRouter");const Pl=T.createContext(null);process.env.NODE_ENV!=="production"&&(Pl.displayName="DataRouterState");const ib=T.createContext(null);process.env.NODE_ENV!=="production"&&(ib.displayName="Await");const mn=T.createContext(null);process.env.NODE_ENV!=="production"&&(mn.displayName="Navigation");const $o=T.createContext(null);process.env.NODE_ENV!=="production"&&($o.displayName="Location");const En=T.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(En.displayName="Route");const kl=T.createContext(null);process.env.NODE_ENV!=="production"&&(kl.displayName="RouteError");function sb(e,t){let{relative:n}=t===void 0?{}:t;Bo()||(process.env.NODE_ENV!=="production"?Be(!1,"useHref() may be used only in the context of a <Router> component."):Be(!1));let{basename:r,navigator:i}=T.useContext(mn),{hash:s,pathname:a,search:l}=Lo(e,{relative:n}),d=a;return r!=="/"&&(d=a==="/"?r:Yn([r,a])),i.createHref({pathname:d,search:l,hash:s})}function Bo(){return T.useContext($o)!=null}function It(){return Bo()||(process.env.NODE_ENV!=="production"?Be(!1,"useLocation() may be used only in the context of a <Router> component."):Be(!1)),T.useContext($o).location}const Tu="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Au(e){T.useContext(mn).static||T.useLayoutEffect(e)}function Bt(){let{isDataRoute:e}=T.useContext(En);return e?wb():ab()}function ab(){Bo()||(process.env.NODE_ENV!=="production"?Be(!1,"useNavigate() may be used only in the context of a <Router> component."):Be(!1));let e=T.useContext(zo),{basename:t,future:n,navigator:r}=T.useContext(mn),{matches:i}=T.useContext(En),{pathname:s}=It(),a=JSON.stringify(wu(i,n.v7_relativeSplatPath)),l=T.useRef(!1);return Au(()=>{l.current=!0}),T.useCallback(function(p,u){if(u===void 0&&(u={}),process.env.NODE_ENV!=="production"&&nn(l.current,Tu),!l.current)return;if(typeof p=="number"){r.go(p);return}let f=Cu(p,JSON.parse(a),s,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Yn([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,a,s,e])}const lb=T.createContext(null);function cb(e){let t=T.useContext(En).outlet;return t&&T.createElement(lb.Provider,{value:e},t)}function Lo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=T.useContext(mn),{matches:i}=T.useContext(En),{pathname:s}=It(),a=JSON.stringify(wu(i,r.v7_relativeSplatPath));return T.useMemo(()=>Cu(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function db(e,t){return ub(e,t)}function ub(e,t,n,r){Bo()||(process.env.NODE_ENV!=="production"?Be(!1,"useRoutes() may be used only in the context of a <Router> component."):Be(!1));let{navigator:i}=T.useContext(mn),{matches:s}=T.useContext(En),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 C=u&&u.path||"";Ou(d,!u||C.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+d+'" (under <Route path="'+C+'">) 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="'+C+'"> to <Route ')+('path="'+(C==="/"?"*":C+"/*")+'">.'))}let f=It(),y;if(t){var x;let C=typeof t=="string"?Rr(t):t;p==="/"||(x=C.pathname)!=null&&x.startsWith(p)||(process.env.NODE_ENV!=="production"?Be(!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 "'+C.pathname+'" was given in the `location` prop.')):Be(!1)),y=C}else y=f;let g=y.pathname||"/",h=g;if(p!=="/"){let C=p.replace(/^\//,"").split("/");h="/"+g.replace(/^\//,"").split("/").slice(C.length).join("/")}let m=zy(e,{pathname:h});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&nn(u||m!=null,'No routes matched location "'+y.pathname+y.search+y.hash+'" '),process.env.NODE_ENV!=="production"&&nn(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 "'+y.pathname+y.search+y.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 S=mb(m&&m.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:Yn([p,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?p:Yn([p,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,n,r);return t&&S?T.createElement($o.Provider,{value:{location:_o({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:rr.Pop}},S):S}function pb(){let e=Sb(),t=rb(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=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:s},"ErrorBoundary")," or"," ",T.createElement("code",{style:s},"errorElement")," prop on your route."))),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:i},n):null,a)}const fb=T.createElement(pb,null);class hb extends T.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?T.createElement(En.Provider,{value:this.props.routeContext},T.createElement(kl.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function gb(e){let{routeContext:t,match:n,children:r}=e,i=T.useContext(zo);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(En.Provider,{value:t},r)}function mb(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(f=>f.route.id&&l?.[f.route.id]!==void 0);u>=0||(process.env.NODE_ENV!=="production"?Be(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(l).join(",")):Be(!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 f=a[u];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(p=u),f.route.id){let{loaderData:y,errors:x}=n,g=f.route.loader&&y[f.route.id]===void 0&&(!x||x[f.route.id]===void 0);if(f.route.lazy||g){d=!0,p>=0?a=a.slice(0,p+1):a=[a[0]];break}}}return a.reduceRight((u,f,y)=>{let x,g=!1,h=null,m=null;n&&(x=l&&f.route.id?l[f.route.id]:void 0,h=f.route.errorElement||fb,d&&(p<0&&y===0?(Ou("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):p===y&&(g=!0,m=f.route.hydrateFallbackElement||null)));let S=t.concat(a.slice(0,y+1)),C=()=>{let b;return x?b=h:g?b=m:f.route.Component?b=T.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=u,T.createElement(gb,{match:f,routeContext:{outlet:u,matches:S,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||y===0)?T.createElement(hb,{location:n.location,revalidation:n.revalidation,component:h,error:x,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}var Pu=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Pu||{}),jo=(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})(jo||{});function Ol(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function yb(e){let t=T.useContext(zo);return t||(process.env.NODE_ENV!=="production"?Be(!1,Ol(e)):Be(!1)),t}function bb(e){let t=T.useContext(Pl);return t||(process.env.NODE_ENV!=="production"?Be(!1,Ol(e)):Be(!1)),t}function xb(e){let t=T.useContext(En);return t||(process.env.NODE_ENV!=="production"?Be(!1,Ol(e)):Be(!1)),t}function Il(e){let t=xb(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?Be(!1,e+' can only be used on routes that contain a unique "id"'):Be(!1)),n.route.id}function vb(){return Il(jo.UseRouteId)}function Sb(){var e;let t=T.useContext(kl),n=bb(jo.UseRouteError),r=Il(jo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function wb(){let{router:e}=yb(Pu.UseNavigateStable),t=Il(jo.UseNavigateStable),n=T.useRef(!1);return Au(()=>{n.current=!0}),T.useCallback(function(i,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&nn(n.current,Tu),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,_o({fromRouteId:t},s)))},[e,t])}const ku={};function Ou(e,t,n){!t&&!ku[e]&&(ku[e]=!0,process.env.NODE_ENV!=="production"&&nn(!1,n))}const Iu={};function Cb(e,t){process.env.NODE_ENV!=="production"&&!Iu[t]&&(Iu[t]=!0,console.warn(t))}const Nu=(e,t,n)=>Cb(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Eb(e,t){e?.v7_startTransition===void 0&&Nu("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&&Nu("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Tb(e){return cb(e.context)}function vr(e){process.env.NODE_ENV!=="production"?Be(!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>."):Be(!1)}function Ab(e){let{basename:t="/",children:n=null,location:r,navigationType:i=rr.Pop,navigator:s,static:a=!1,future:l}=e;Bo()&&(process.env.NODE_ENV!=="production"?Be(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):Be(!1));let d=t.replace(/^\/*/,"/"),p=T.useMemo(()=>({basename:d,navigator:s,static:a,future:_o({v7_relativeSplatPath:!1},l)}),[d,l,s,a]);typeof r=="string"&&(r=Rr(r));let{pathname:u="/",search:f="",hash:y="",state:x=null,key:g="default"}=r,h=T.useMemo(()=>{let m=or(u,d);return m==null?null:{location:{pathname:m,search:f,hash:y,state:x,key:g},navigationType:i}},[d,u,f,y,x,g,i]);return process.env.NODE_ENV!=="production"&&nn(h!=null,'<Router basename="'+d+'"> is not able to match the URL '+('"'+u+f+y+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),h==null?null:T.createElement(mn.Provider,{value:p},T.createElement($o.Provider,{children:n,value:h}))}function Pb(e){let{children:t,location:n}=e;return db(Nl(t),n)}new Promise(()=>{});function Nl(e,t){t===void 0&&(t=[]);let n=[];return T.Children.forEach(e,(r,i)=>{if(!T.isValidElement(r))return;let s=[...t,i];if(r.type===T.Fragment){n.push.apply(n,Nl(r.props.children,s));return}r.type!==vr&&(process.env.NODE_ENV!=="production"?Be(!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>"):Be(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?Be(!1,"An index route cannot have child routes."):Be(!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=Nl(r.props.children,s)),n.push(a)}),n}function qr(){return qr=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},qr.apply(this,arguments)}function Fl(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 us="get",ps="application/x-www-form-urlencoded";function fs(e){return e!=null&&typeof e.tagName=="string"}function kb(e){return fs(e)&&e.tagName.toLowerCase()==="button"}function Ob(e){return fs(e)&&e.tagName.toLowerCase()==="form"}function Ib(e){return fs(e)&&e.tagName.toLowerCase()==="input"}function Nb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Fb(e,t){return e.button===0&&(!t||t==="_self")&&!Nb(e)}function Ml(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 Mb(e,t){let n=Ml(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}let hs=null;function Db(){if(hs===null)try{new FormData(document.createElement("form"),0),hs=!1}catch{hs=!0}return hs}const _b=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Dl(e){return e!=null&&!_b.has(e)?(process.env.NODE_ENV!=="production"&&nn(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+ps+'"')),null):e}function zb(e,t){let n,r,i,s,a;if(Ob(e)){let l=e.getAttribute("action");r=l?or(l,t):null,n=e.getAttribute("method")||us,i=Dl(e.getAttribute("enctype"))||ps,s=new FormData(e)}else if(kb(e)||Ib(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?or(d,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||us,i=Dl(e.getAttribute("formenctype"))||Dl(l.getAttribute("enctype"))||ps,s=new FormData(l,e),!Db()){let{name:p,type:u,value:f}=e;if(u==="image"){let y=p?p+".":"";s.append(y+"x","0"),s.append(y+"y","0")}else p&&s.append(p,f)}}else{if(fs(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=us,r=null,i=ps,a=e}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}const $b=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Bb=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Lb=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],jb="6";try{window.__reactRouterVersion=jb}catch{}const Fu=T.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Fu.displayName="ViewTransition");const Wb=T.createContext(new Map);process.env.NODE_ENV!=="production"&&(Wb.displayName="Fetchers");const Mu=T["startTransition"];function Vb(e){let{basename:t,children:n,future:r,window:i}=e,s=T.useRef();s.current==null&&(s.current=My({window:i,v5Compat:!0}));let a=s.current,[l,d]=T.useState({action:a.action,location:a.location}),{v7_startTransition:p}=r||{},u=T.useCallback(f=>{p&&Mu?Mu(()=>d(f)):d(f)},[d,p]);return T.useLayoutEffect(()=>a.listen(u),[a,u]),T.useEffect(()=>Eb(r),[r]),T.createElement(Ab,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}process.env.NODE_ENV;const Ub=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Hb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Du=T.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:a,state:l,target:d,to:p,preventScrollReset:u,viewTransition:f}=t,y=Fl(t,$b),{basename:x}=T.useContext(mn),g,h=!1;if(typeof p=="string"&&Hb.test(p)&&(g=p,Ub))try{let b=new URL(window.location.href),v=p.startsWith("//")?new URL(b.protocol+p):new URL(p),w=or(v.pathname,x);v.origin===b.origin&&w!=null?p=w+v.search+v.hash:h=!0}catch{process.env.NODE_ENV!=="production"&&nn(!1,'<Link to="'+p+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let m=sb(p,{relative:i}),S=Gb(p,{replace:a,state:l,target:d,preventScrollReset:u,relative:i,viewTransition:f});function C(b){r&&r(b),b.defaultPrevented||S(b)}return T.createElement("a",qr({},y,{href:g||m,onClick:h||s?r:C,ref:n,target:d}))});process.env.NODE_ENV!=="production"&&(Du.displayName="Link");const Rb=T.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,f=Fl(t,Bb),y=Lo(d,{relative:f.relative}),x=It(),g=T.useContext(Pl),{navigator:h,basename:m}=T.useContext(mn),S=g!=null&&t0(y)&&p===!0,C=h.encodeLocation?h.encodeLocation(y).pathname:y.pathname,b=x.pathname,v=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(b=b.toLowerCase(),v=v?v.toLowerCase():null,C=C.toLowerCase()),v&&m&&(v=or(v,m)||v);const w=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let A=b===C||!a&&b.startsWith(C)&&b.charAt(w)==="/",k=v!=null&&(v===C||!a&&v.startsWith(C)&&v.charAt(C.length)==="/"),D={isActive:A,isPending:k,isTransitioning:S},O=A?r:void 0,B;typeof s=="function"?B=s(D):B=[s,A?"active":null,k?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let L=typeof l=="function"?l(D):l;return T.createElement(Du,qr({},f,{"aria-current":O,className:B,ref:n,style:L,to:d,viewTransition:p}),typeof u=="function"?u(D):u)});process.env.NODE_ENV!=="production"&&(Rb.displayName="NavLink");const qb=T.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:a,method:l=us,action:d,onSubmit:p,relative:u,preventScrollReset:f,viewTransition:y}=e,x=Fl(e,Lb),g=Zb(),h=e0(d,{relative:u}),m=l.toLowerCase()==="get"?"get":"post",S=C=>{if(p&&p(C),C.defaultPrevented)return;C.preventDefault();let b=C.nativeEvent.submitter,v=b?.getAttribute("formmethod")||l;g(b||C.currentTarget,{fetcherKey:n,method:v,navigate:r,replace:s,state:a,relative:u,preventScrollReset:f,viewTransition:y})};return T.createElement("form",qr({ref:t,method:m,action:h,onSubmit:i?p:S},x))});process.env.NODE_ENV!=="production"&&(qb.displayName="Form"),process.env.NODE_ENV;var gs;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(gs||(gs={}));var _u;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(_u||(_u={}));function Yb(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function zu(e){let t=T.useContext(zo);return t||(process.env.NODE_ENV!=="production"?Be(!1,Yb(e)):Be(!1)),t}function Gb(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:a,viewTransition:l}=t===void 0?{}:t,d=Bt(),p=It(),u=Lo(e,{relative:a});return T.useCallback(f=>{if(Fb(f,n)){f.preventDefault();let y=r!==void 0?r:Do(p)===Do(u);d(e,{replace:y,state:i,preventScrollReset:s,relative:a,viewTransition:l})}},[p,d,u,r,i,n,e,s,a,l])}function Kb(e){process.env.NODE_ENV!=="production"&&nn(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=T.useRef(Ml(e)),n=T.useRef(!1),r=It(),i=T.useMemo(()=>Mb(r.search,n.current?null:t.current),[r.search]),s=Bt(),a=T.useCallback((l,d)=>{const p=Ml(typeof l=="function"?l(i):l);n.current=!0,s("?"+p,d)},[s,i]);return[i,a]}function Xb(){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 Jb=0,Qb=()=>"__"+String(++Jb)+"__";function Zb(){let{router:e}=zu(gs.UseSubmit),{basename:t}=T.useContext(mn),n=vb();return T.useCallback(function(r,i){i===void 0&&(i={}),Xb();let{action:s,method:a,encType:l,formData:d,body:p}=zb(r,t);if(i.navigate===!1){let u=i.fetcherKey||Qb();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 e0(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=T.useContext(mn),i=T.useContext(En);i||(process.env.NODE_ENV!=="production"?Be(!1,"useFormAction must be used inside a RouteContext"):Be(!1));let[s]=i.matches.slice(-1),a=qr({},Lo(e||".",{relative:n})),l=It();if(e==null){a.search=l.search;let d=new URLSearchParams(a.search),p=d.getAll("index");if(p.some(f=>f==="")){d.delete("index"),p.filter(y=>y).forEach(y=>d.append("index",y));let f=d.toString();a.search=f?"?"+f:""}}return(!e||e===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Yn([r,a.pathname])),Do(a)}function t0(e,t){t===void 0&&(t={});let n=T.useContext(Fu);n==null&&(process.env.NODE_ENV!=="production"?Be(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Be(!1));let{basename:r}=zu(gs.useViewTransitionState),i=Lo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=or(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=or(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Tl(i.pathname,a)!=null||Tl(i.pathname,s)!=null}function $u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ms={exports:{}},_l={};var Bu;function n0(){if(Bu)return _l;Bu=1;var e=F;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 _l.useSyncExternalStoreWithSelector=function(d,p,u,f,y){var x=i(null);if(x.current===null){var g={hasValue:!1,value:null};x.current=g}else g=x.current;x=a(function(){function m(w){if(!S){if(S=!0,C=w,w=f(w),y!==void 0&&g.hasValue){var A=g.value;if(y(A,w))return b=A}return b=w}if(A=b,n(C,w))return A;var k=f(w);return y!==void 0&&y(A,k)?(C=w,A):(C=w,b=k)}var S=!1,C,b,v=u===void 0?null:u;return[function(){return m(p())},v===null?void 0:function(){return m(v())}]},[p,u,f,y]);var h=r(d,x[0],x[1]);return s(function(){g.hasValue=!0,g.value=h},[h]),l(h),h},_l}var zl={};var Lu;function r0(){return Lu||(Lu=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=F,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;zl.useSyncExternalStoreWithSelector=function(d,p,u,f,y){var x=i(null);if(x.current===null){var g={hasValue:!1,value:null};x.current=g}else g=x.current;x=a(function(){function m(w){if(!S){if(S=!0,C=w,w=f(w),y!==void 0&&g.hasValue){var A=g.value;if(y(A,w))return b=A}return b=w}if(A=b,n(C,w))return A;var k=f(w);return y!==void 0&&y(A,k)?(C=w,A):(C=w,b=k)}var S=!1,C,b,v=u===void 0?null:u;return[function(){return m(p())},v===null?void 0:function(){return m(v())}]},[p,u,f,y]);var h=r(d,x[0],x[1]);return s(function(){g.hasValue=!0,g.value=h},[h]),l(h),h},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),zl}var ju;function o0(){return ju||(ju=1,process.env.NODE_ENV==="production"?ms.exports=n0():ms.exports=r0()),ms.exports}var i0=o0();function s0(e){e()}function a0(){let e=null,t=null;return{clear(){e=null,t=null},notify(){s0(()=>{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 Wu={notify(){},get:()=>[]};function l0(e,t){let n,r=Wu,i=0,s=!1;function a(h){u();const m=r.subscribe(h);let S=!1;return()=>{S||(S=!0,m(),f())}}function l(){r.notify()}function d(){g.onStateChange&&g.onStateChange()}function p(){return s}function u(){i++,n||(n=e.subscribe(d),r=a0())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Wu)}function y(){s||(s=!0,u())}function x(){s&&(s=!1,f())}const g={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:d,isSubscribed:p,trySubscribe:y,tryUnsubscribe:x,getListeners:()=>r};return g}var c0=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",d0=c0(),u0=()=>typeof navigator<"u"&&navigator.product==="ReactNative",p0=u0(),f0=()=>d0||p0?T.useLayoutEffect:T.useEffect,h0=f0(),g0=Symbol.for("react-redux-context"),m0=typeof globalThis<"u"?globalThis:{};function y0(){if(!T.createContext)return{};const e=m0[g0]??=new Map;let t=e.get(T.createContext);return t||(t=T.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(T.createContext,t)),t}var ir=y0();function b0(e){const{children:t,context:n,serverState:r,store:i}=e,s=T.useMemo(()=>{const d=l0(i),p={store:i,subscription:d,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return p;{const{identityFunctionCheck:u="once",stabilityCheck:f="once"}=e;return Object.assign(p,{stabilityCheck:f,identityFunctionCheck:u})}},[i,r]),a=T.useMemo(()=>i.getState(),[i]);h0(()=>{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||ir;return T.createElement(l.Provider,{value:s},t)}var x0=b0;function $l(e=ir){return function(){const n=T.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 Vu=$l();function Uu(e=ir){const t=e===ir?Vu:$l(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var v0=Uu();function S0(e=ir){const t=e===ir?v0:Uu(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var yn=S0(),w0=(e,t)=>e===t;function C0(e=ir){const t=e===ir?Vu:$l(e),n=(r,i={})=>{const{equalityFn:s=w0}=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=T.useRef(!0),f=T.useCallback({[r.name](x){const g=r(x);if(process.env.NODE_ENV!=="production"){const{devModeChecks:h={}}=typeof i=="function"?{}:i,{identityFunctionCheck:m,stabilityCheck:S}=a,{identityFunctionCheck:C,stabilityCheck:b}={stabilityCheck:S,identityFunctionCheck:m,...h};if(b==="always"||b==="once"&&u.current){const v=r(x);if(!s(g,v)){let w;try{throw new Error}catch(A){({stack:w}=A)}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="'+C+'"> to <Route ')+('path="'+(C==="/"?"*":C+"/*")+'">.'))}let f=It(),y;if(t){var x;let C=typeof t=="string"?Rr(t):t;p==="/"||(x=C.pathname)!=null&&x.startsWith(p)||(process.env.NODE_ENV!=="production"?Be(!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 "'+C.pathname+'" was given in the `location` prop.')):Be(!1)),y=C}else y=f;let g=y.pathname||"/",h=g;if(p!=="/"){let C=p.replace(/^\//,"").split("/");h="/"+g.replace(/^\//,"").split("/").slice(C.length).join("/")}let m=zy(e,{pathname:h});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&nn(u||m!=null,'No routes matched location "'+y.pathname+y.search+y.hash+'" '),process.env.NODE_ENV!=="production"&&nn(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 "'+y.pathname+y.search+y.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 S=mb(m&&m.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:Yn([p,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?p:Yn([p,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,n,r);return t&&S?T.createElement($o.Provider,{value:{location:_o({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:or.Pop}},S):S}function pb(){let e=Sb(),t=rb(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=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:s},"ErrorBoundary")," or"," ",T.createElement("code",{style:s},"errorElement")," prop on your route."))),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:i},n):null,a)}const fb=T.createElement(pb,null);class hb extends T.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?T.createElement(En.Provider,{value:this.props.routeContext},T.createElement(kl.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function gb(e){let{routeContext:t,match:n,children:r}=e,i=T.useContext(zo);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(En.Provider,{value:t},r)}function mb(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(f=>f.route.id&&l?.[f.route.id]!==void 0);u>=0||(process.env.NODE_ENV!=="production"?Be(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(l).join(",")):Be(!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 f=a[u];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(p=u),f.route.id){let{loaderData:y,errors:x}=n,g=f.route.loader&&y[f.route.id]===void 0&&(!x||x[f.route.id]===void 0);if(f.route.lazy||g){d=!0,p>=0?a=a.slice(0,p+1):a=[a[0]];break}}}return a.reduceRight((u,f,y)=>{let x,g=!1,h=null,m=null;n&&(x=l&&f.route.id?l[f.route.id]:void 0,h=f.route.errorElement||fb,d&&(p<0&&y===0?(Ou("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):p===y&&(g=!0,m=f.route.hydrateFallbackElement||null)));let S=t.concat(a.slice(0,y+1)),C=()=>{let b;return x?b=h:g?b=m:f.route.Component?b=T.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=u,T.createElement(gb,{match:f,routeContext:{outlet:u,matches:S,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||y===0)?T.createElement(hb,{location:n.location,revalidation:n.revalidation,component:h,error:x,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}var Pu=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Pu||{}),jo=(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})(jo||{});function Ol(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function yb(e){let t=T.useContext(zo);return t||(process.env.NODE_ENV!=="production"?Be(!1,Ol(e)):Be(!1)),t}function bb(e){let t=T.useContext(Pl);return t||(process.env.NODE_ENV!=="production"?Be(!1,Ol(e)):Be(!1)),t}function xb(e){let t=T.useContext(En);return t||(process.env.NODE_ENV!=="production"?Be(!1,Ol(e)):Be(!1)),t}function Il(e){let t=xb(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?Be(!1,e+' can only be used on routes that contain a unique "id"'):Be(!1)),n.route.id}function vb(){return Il(jo.UseRouteId)}function Sb(){var e;let t=T.useContext(kl),n=bb(jo.UseRouteError),r=Il(jo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function wb(){let{router:e}=yb(Pu.UseNavigateStable),t=Il(jo.UseNavigateStable),n=T.useRef(!1);return Au(()=>{n.current=!0}),T.useCallback(function(i,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&nn(n.current,Tu),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,_o({fromRouteId:t},s)))},[e,t])}const ku={};function Ou(e,t,n){!t&&!ku[e]&&(ku[e]=!0,process.env.NODE_ENV!=="production"&&nn(!1,n))}const Iu={};function Cb(e,t){process.env.NODE_ENV!=="production"&&!Iu[t]&&(Iu[t]=!0,console.warn(t))}const Nu=(e,t,n)=>Cb(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Eb(e,t){e?.v7_startTransition===void 0&&Nu("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&&Nu("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Tb(e){return cb(e.context)}function vr(e){process.env.NODE_ENV!=="production"?Be(!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>."):Be(!1)}function Ab(e){let{basename:t="/",children:n=null,location:r,navigationType:i=or.Pop,navigator:s,static:a=!1,future:l}=e;Bo()&&(process.env.NODE_ENV!=="production"?Be(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):Be(!1));let d=t.replace(/^\/*/,"/"),p=T.useMemo(()=>({basename:d,navigator:s,static:a,future:_o({v7_relativeSplatPath:!1},l)}),[d,l,s,a]);typeof r=="string"&&(r=Rr(r));let{pathname:u="/",search:f="",hash:y="",state:x=null,key:g="default"}=r,h=T.useMemo(()=>{let m=ir(u,d);return m==null?null:{location:{pathname:m,search:f,hash:y,state:x,key:g},navigationType:i}},[d,u,f,y,x,g,i]);return process.env.NODE_ENV!=="production"&&nn(h!=null,'<Router basename="'+d+'"> is not able to match the URL '+('"'+u+f+y+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),h==null?null:T.createElement(mn.Provider,{value:p},T.createElement($o.Provider,{children:n,value:h}))}function Pb(e){let{children:t,location:n}=e;return db(Nl(t),n)}new Promise(()=>{});function Nl(e,t){t===void 0&&(t=[]);let n=[];return T.Children.forEach(e,(r,i)=>{if(!T.isValidElement(r))return;let s=[...t,i];if(r.type===T.Fragment){n.push.apply(n,Nl(r.props.children,s));return}r.type!==vr&&(process.env.NODE_ENV!=="production"?Be(!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>"):Be(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?Be(!1,"An index route cannot have child routes."):Be(!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=Nl(r.props.children,s)),n.push(a)}),n}function qr(){return qr=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},qr.apply(this,arguments)}function Fl(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 us="get",ps="application/x-www-form-urlencoded";function fs(e){return e!=null&&typeof e.tagName=="string"}function kb(e){return fs(e)&&e.tagName.toLowerCase()==="button"}function Ob(e){return fs(e)&&e.tagName.toLowerCase()==="form"}function Ib(e){return fs(e)&&e.tagName.toLowerCase()==="input"}function Nb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Fb(e,t){return e.button===0&&(!t||t==="_self")&&!Nb(e)}function Ml(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 Mb(e,t){let n=Ml(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}let hs=null;function Db(){if(hs===null)try{new FormData(document.createElement("form"),0),hs=!1}catch{hs=!0}return hs}const _b=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Dl(e){return e!=null&&!_b.has(e)?(process.env.NODE_ENV!=="production"&&nn(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+ps+'"')),null):e}function zb(e,t){let n,r,i,s,a;if(Ob(e)){let l=e.getAttribute("action");r=l?ir(l,t):null,n=e.getAttribute("method")||us,i=Dl(e.getAttribute("enctype"))||ps,s=new FormData(e)}else if(kb(e)||Ib(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?ir(d,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||us,i=Dl(e.getAttribute("formenctype"))||Dl(l.getAttribute("enctype"))||ps,s=new FormData(l,e),!Db()){let{name:p,type:u,value:f}=e;if(u==="image"){let y=p?p+".":"";s.append(y+"x","0"),s.append(y+"y","0")}else p&&s.append(p,f)}}else{if(fs(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=us,r=null,i=ps,a=e}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}const $b=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Bb=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Lb=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],jb="6";try{window.__reactRouterVersion=jb}catch{}const Fu=T.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Fu.displayName="ViewTransition");const Wb=T.createContext(new Map);process.env.NODE_ENV!=="production"&&(Wb.displayName="Fetchers");const Mu=T["startTransition"];function Vb(e){let{basename:t,children:n,future:r,window:i}=e,s=T.useRef();s.current==null&&(s.current=My({window:i,v5Compat:!0}));let a=s.current,[l,d]=T.useState({action:a.action,location:a.location}),{v7_startTransition:p}=r||{},u=T.useCallback(f=>{p&&Mu?Mu(()=>d(f)):d(f)},[d,p]);return T.useLayoutEffect(()=>a.listen(u),[a,u]),T.useEffect(()=>Eb(r),[r]),T.createElement(Ab,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}process.env.NODE_ENV;const Hb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ub=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Du=T.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:a,state:l,target:d,to:p,preventScrollReset:u,viewTransition:f}=t,y=Fl(t,$b),{basename:x}=T.useContext(mn),g,h=!1;if(typeof p=="string"&&Ub.test(p)&&(g=p,Hb))try{let b=new URL(window.location.href),v=p.startsWith("//")?new URL(b.protocol+p):new URL(p),w=ir(v.pathname,x);v.origin===b.origin&&w!=null?p=w+v.search+v.hash:h=!0}catch{process.env.NODE_ENV!=="production"&&nn(!1,'<Link to="'+p+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let m=sb(p,{relative:i}),S=Gb(p,{replace:a,state:l,target:d,preventScrollReset:u,relative:i,viewTransition:f});function C(b){r&&r(b),b.defaultPrevented||S(b)}return T.createElement("a",qr({},y,{href:g||m,onClick:h||s?r:C,ref:n,target:d}))});process.env.NODE_ENV!=="production"&&(Du.displayName="Link");const Rb=T.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,f=Fl(t,Bb),y=Lo(d,{relative:f.relative}),x=It(),g=T.useContext(Pl),{navigator:h,basename:m}=T.useContext(mn),S=g!=null&&t0(y)&&p===!0,C=h.encodeLocation?h.encodeLocation(y).pathname:y.pathname,b=x.pathname,v=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(b=b.toLowerCase(),v=v?v.toLowerCase():null,C=C.toLowerCase()),v&&m&&(v=ir(v,m)||v);const w=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let A=b===C||!a&&b.startsWith(C)&&b.charAt(w)==="/",k=v!=null&&(v===C||!a&&v.startsWith(C)&&v.charAt(C.length)==="/"),D={isActive:A,isPending:k,isTransitioning:S},O=A?r:void 0,B;typeof s=="function"?B=s(D):B=[s,A?"active":null,k?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let L=typeof l=="function"?l(D):l;return T.createElement(Du,qr({},f,{"aria-current":O,className:B,ref:n,style:L,to:d,viewTransition:p}),typeof u=="function"?u(D):u)});process.env.NODE_ENV!=="production"&&(Rb.displayName="NavLink");const qb=T.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:a,method:l=us,action:d,onSubmit:p,relative:u,preventScrollReset:f,viewTransition:y}=e,x=Fl(e,Lb),g=Zb(),h=e0(d,{relative:u}),m=l.toLowerCase()==="get"?"get":"post",S=C=>{if(p&&p(C),C.defaultPrevented)return;C.preventDefault();let b=C.nativeEvent.submitter,v=b?.getAttribute("formmethod")||l;g(b||C.currentTarget,{fetcherKey:n,method:v,navigate:r,replace:s,state:a,relative:u,preventScrollReset:f,viewTransition:y})};return T.createElement("form",qr({ref:t,method:m,action:h,onSubmit:i?p:S},x))});process.env.NODE_ENV!=="production"&&(qb.displayName="Form"),process.env.NODE_ENV;var gs;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(gs||(gs={}));var _u;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(_u||(_u={}));function Yb(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function zu(e){let t=T.useContext(zo);return t||(process.env.NODE_ENV!=="production"?Be(!1,Yb(e)):Be(!1)),t}function Gb(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:a,viewTransition:l}=t===void 0?{}:t,d=Bt(),p=It(),u=Lo(e,{relative:a});return T.useCallback(f=>{if(Fb(f,n)){f.preventDefault();let y=r!==void 0?r:Do(p)===Do(u);d(e,{replace:y,state:i,preventScrollReset:s,relative:a,viewTransition:l})}},[p,d,u,r,i,n,e,s,a,l])}function Kb(e){process.env.NODE_ENV!=="production"&&nn(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=T.useRef(Ml(e)),n=T.useRef(!1),r=It(),i=T.useMemo(()=>Mb(r.search,n.current?null:t.current),[r.search]),s=Bt(),a=T.useCallback((l,d)=>{const p=Ml(typeof l=="function"?l(i):l);n.current=!0,s("?"+p,d)},[s,i]);return[i,a]}function Xb(){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 Jb=0,Qb=()=>"__"+String(++Jb)+"__";function Zb(){let{router:e}=zu(gs.UseSubmit),{basename:t}=T.useContext(mn),n=vb();return T.useCallback(function(r,i){i===void 0&&(i={}),Xb();let{action:s,method:a,encType:l,formData:d,body:p}=zb(r,t);if(i.navigate===!1){let u=i.fetcherKey||Qb();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 e0(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=T.useContext(mn),i=T.useContext(En);i||(process.env.NODE_ENV!=="production"?Be(!1,"useFormAction must be used inside a RouteContext"):Be(!1));let[s]=i.matches.slice(-1),a=qr({},Lo(e||".",{relative:n})),l=It();if(e==null){a.search=l.search;let d=new URLSearchParams(a.search),p=d.getAll("index");if(p.some(f=>f==="")){d.delete("index"),p.filter(y=>y).forEach(y=>d.append("index",y));let f=d.toString();a.search=f?"?"+f:""}}return(!e||e===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Yn([r,a.pathname])),Do(a)}function t0(e,t){t===void 0&&(t={});let n=T.useContext(Fu);n==null&&(process.env.NODE_ENV!=="production"?Be(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Be(!1));let{basename:r}=zu(gs.useViewTransitionState),i=Lo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=ir(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=ir(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Tl(i.pathname,a)!=null||Tl(i.pathname,s)!=null}function $u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ms={exports:{}},_l={};var Bu;function n0(){if(Bu)return _l;Bu=1;var e=F;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 _l.useSyncExternalStoreWithSelector=function(d,p,u,f,y){var x=i(null);if(x.current===null){var g={hasValue:!1,value:null};x.current=g}else g=x.current;x=a(function(){function m(w){if(!S){if(S=!0,C=w,w=f(w),y!==void 0&&g.hasValue){var A=g.value;if(y(A,w))return b=A}return b=w}if(A=b,n(C,w))return A;var k=f(w);return y!==void 0&&y(A,k)?(C=w,A):(C=w,b=k)}var S=!1,C,b,v=u===void 0?null:u;return[function(){return m(p())},v===null?void 0:function(){return m(v())}]},[p,u,f,y]);var h=r(d,x[0],x[1]);return s(function(){g.hasValue=!0,g.value=h},[h]),l(h),h},_l}var zl={};var Lu;function r0(){return Lu||(Lu=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=F,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;zl.useSyncExternalStoreWithSelector=function(d,p,u,f,y){var x=i(null);if(x.current===null){var g={hasValue:!1,value:null};x.current=g}else g=x.current;x=a(function(){function m(w){if(!S){if(S=!0,C=w,w=f(w),y!==void 0&&g.hasValue){var A=g.value;if(y(A,w))return b=A}return b=w}if(A=b,n(C,w))return A;var k=f(w);return y!==void 0&&y(A,k)?(C=w,A):(C=w,b=k)}var S=!1,C,b,v=u===void 0?null:u;return[function(){return m(p())},v===null?void 0:function(){return m(v())}]},[p,u,f,y]);var h=r(d,x[0],x[1]);return s(function(){g.hasValue=!0,g.value=h},[h]),l(h),h},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),zl}var ju;function o0(){return ju||(ju=1,process.env.NODE_ENV==="production"?ms.exports=n0():ms.exports=r0()),ms.exports}var i0=o0();function s0(e){e()}function a0(){let e=null,t=null;return{clear(){e=null,t=null},notify(){s0(()=>{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 Wu={notify(){},get:()=>[]};function l0(e,t){let n,r=Wu,i=0,s=!1;function a(h){u();const m=r.subscribe(h);let S=!1;return()=>{S||(S=!0,m(),f())}}function l(){r.notify()}function d(){g.onStateChange&&g.onStateChange()}function p(){return s}function u(){i++,n||(n=e.subscribe(d),r=a0())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Wu)}function y(){s||(s=!0,u())}function x(){s&&(s=!1,f())}const g={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:d,isSubscribed:p,trySubscribe:y,tryUnsubscribe:x,getListeners:()=>r};return g}var c0=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",d0=c0(),u0=()=>typeof navigator<"u"&&navigator.product==="ReactNative",p0=u0(),f0=()=>d0||p0?T.useLayoutEffect:T.useEffect,h0=f0(),g0=Symbol.for("react-redux-context"),m0=typeof globalThis<"u"?globalThis:{};function y0(){if(!T.createContext)return{};const e=m0[g0]??=new Map;let t=e.get(T.createContext);return t||(t=T.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(T.createContext,t)),t}var sr=y0();function b0(e){const{children:t,context:n,serverState:r,store:i}=e,s=T.useMemo(()=>{const d=l0(i),p={store:i,subscription:d,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return p;{const{identityFunctionCheck:u="once",stabilityCheck:f="once"}=e;return Object.assign(p,{stabilityCheck:f,identityFunctionCheck:u})}},[i,r]),a=T.useMemo(()=>i.getState(),[i]);h0(()=>{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||sr;return T.createElement(l.Provider,{value:s},t)}var x0=b0;function $l(e=sr){return function(){const n=T.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 Vu=$l();function Hu(e=sr){const t=e===sr?Vu:$l(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var v0=Hu();function S0(e=sr){const t=e===sr?v0:Hu(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var yn=S0(),w0=(e,t)=>e===t;function C0(e=sr){const t=e===sr?Vu:$l(e),n=(r,i={})=>{const{equalityFn:s=w0}=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=T.useRef(!0),f=T.useCallback({[r.name](x){const g=r(x);if(process.env.NODE_ENV!=="production"){const{devModeChecks:h={}}=typeof i=="function"?{}:i,{identityFunctionCheck:m,stabilityCheck:S}=a,{identityFunctionCheck:C,stabilityCheck:b}={stabilityCheck:S,identityFunctionCheck:m,...h};if(b==="always"||b==="once"&&u.current){const v=r(x);if(!s(g,v)){let w;try{throw new Error}catch(A){({stack:w}=A)}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:x,selected:g,selected2:v,stack:w})}}if((C==="always"||C==="once"&&u.current)&&g===x){let v;try{throw new Error}catch(w){({stack:v}=w)}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]),y=i0.useSyncExternalStoreWithSelector(d.addNestedSub,l.getState,p||l.getState,f,s);return T.useDebugValue(y),y};return Object.assign(n,{withTypes:()=>n}),n}var Qe=C0(),Wo={},Hu;function E0(){if(Hu)return Wo;Hu=1,Wo.__esModule=!0,Wo.PersistGate=void 0;var e=t(F);function t(x){if(x&&x.__esModule)return x;var g={};if(x!=null){for(var h in x)if(Object.prototype.hasOwnProperty.call(x,h)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(x,h):{};m.get||m.set?Object.defineProperty(g,h,m):g[h]=x[h]}}return g.default=x,g}function n(x){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(h){return typeof h}:n=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},n(x)}function r(x,g){if(!(x instanceof g))throw new TypeError("Cannot call a class as a function")}function i(x,g){for(var h=0;h<g.length;h++){var m=g[h];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(x,m.key,m)}}function s(x,g,h){return g&&i(x.prototype,g),x}function a(x,g){return g&&(n(g)==="object"||typeof g=="function")?g:d(x)}function l(x){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},l(x)}function d(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function p(x,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(g&&g.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),g&&u(x,g)}function u(x,g){return u=Object.setPrototypeOf||function(m,S){return m.__proto__=S,m},u(x,g)}function f(x,g,h){return g in x?Object.defineProperty(x,g,{value:h,enumerable:!0,configurable:!0,writable:!0}):x[g]=h,x}var y=(function(x){p(g,x);function g(){var h,m;r(this,g);for(var S=arguments.length,C=new Array(S),b=0;b<S;b++)C[b]=arguments[b];return m=a(this,(h=l(g)).call.apply(h,[this].concat(C))),f(d(m),"state",{bootstrapped:!1}),f(d(m),"_unsubscribe",void 0),f(d(m),"handlePersistorState",function(){var v=m.props.persistor,w=v.getState(),A=w.bootstrapped;A&&(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 Wo.PersistGate=y,f(y,"defaultProps",{children:null,loading:null}),Wo}var T0=E0();function kt(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 A0=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ru=A0,Bl=()=>Math.random().toString(36).substring(7).split("").join("."),P0={INIT:`@@redux/INIT${Bl()}`,REPLACE:`@@redux/REPLACE${Bl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Bl()}`},Sr=P0;function Vo(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 k0(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(N0(e))return"date";if(I0(e))return"error";const n=O0(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 O0(e){return typeof e.constructor=="function"?e.constructor.name:null}function I0(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function N0(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function sr(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=k0(e)),t}function Ll(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?kt(2):`Expected the root reducer to be a function. Instead, received: '${sr(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?kt(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"?kt(1):`Expected the enhancer to be a function. Instead, received: '${sr(n)}'`);return n(Ll)(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,S)=>{a.set(S,m)}))}function u(){if(d)throw new Error(process.env.NODE_ENV==="production"?kt(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 f(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?kt(4):`Expected the listener to be a function. Instead, received: '${sr(m)}'`);if(d)throw new Error(process.env.NODE_ENV==="production"?kt(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 S=!0;p();const C=l++;return a.set(C,m),function(){if(S){if(d)throw new Error(process.env.NODE_ENV==="production"?kt(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.");S=!1,p(),a.delete(C),s=null}}}function y(m){if(!Vo(m))throw new Error(process.env.NODE_ENV==="production"?kt(7):`Actions must be plain objects. Instead, the actual type was: '${sr(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"?kt(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"?kt(17):`Action "type" property must be a string. Instead, the actual type was: '${sr(m.type)}'. Value was: '${m.type}' (stringified)`);if(d)throw new Error(process.env.NODE_ENV==="production"?kt(9):"Reducers may not dispatch actions.");try{d=!0,i=r(i,m)}finally{d=!1}return(s=a).forEach(C=>{C()}),m}function x(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?kt(10):`Expected the nextReducer to be a function. Instead, received: '${sr(m)}`);r=m,y({type:Sr.REPLACE})}function g(){const m=f;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(process.env.NODE_ENV==="production"?kt(11):`Expected the observer to be an object. Instead, received: '${sr(S)}'`);function C(){const v=S;v.next&&v.next(u())}return C(),{unsubscribe:m(C)}},[Ru](){return this}}}return y({type:Sr.INIT}),{dispatch:y,subscribe:f,getState:u,replaceReducer:x,[Ru]:g}}function qu(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function F0(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(!Vo(e))return`The ${s} has unexpected type of "${sr(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 M0(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"?kt(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"?kt(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 Yu(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"&&qu(`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{M0(n)}catch(a){s=a}return function(l={},d){if(s)throw s;if(process.env.NODE_ENV!=="production"){const f=F0(l,n,d,i);f&&qu(f)}let p=!1;const u={};for(let f=0;f<r.length;f++){const y=r[f],x=n[y],g=l[y],h=x(g,d);if(typeof h>"u"){const m=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?kt(14):`When called with an action of type ${m?`"${String(m)}"`:"(unknown type)"}, the slice reducer for key "${y}" 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[y]=h,p=p||h!==g}return p=p||r.length!==Object.keys(l).length,p?u:l}}function ys(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function D0(...e){return t=>(n,r)=>{const i=t(n,r);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?kt(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=ys(...l)(i.dispatch),{...i,dispatch:s}}}function Gu(e){return Vo(e)&&"type"in e&&typeof e.type=="string"}var Ku=Symbol.for("immer-nothing"),Xu=Symbol.for("immer-draftable"),Lt=Symbol.for("immer-state"),_0=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 Jt(e,...t){if(process.env.NODE_ENV!=="production"){const n=_0[e],r=wr(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 Qt=Object,Yr=Qt.getPrototypeOf,bs="constructor",xs="prototype",jl="configurable",vs="enumerable",Ss="writable",Uo="value",Gn=e=>!!e&&!!e[Lt];function bn(e){return e?Qu(e)||Cs(e)||!!e[Xu]||!!e[bs]?.[Xu]||Es(e)||Ts(e):!1}var z0=Qt[xs][bs].toString(),Ju=new WeakMap;function Qu(e){if(!e||!Vl(e))return!1;const t=Yr(e);if(t===null||t===Qt[xs])return!0;const n=Qt.hasOwnProperty.call(t,bs)&&t[bs];if(n===Object)return!0;if(!wr(n))return!1;let r=Ju.get(n);return r===void 0&&(r=Function.toString.call(n),Ju.set(n,r)),r===z0}function Ho(e,t,n=!0){Ro(e)===0?(n?Reflect.ownKeys(e):Qt.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Ro(e){const t=e[Lt];return t?t.type_:Cs(e)?1:Es(e)?2:Ts(e)?3:0}var Zu=(e,t,n=Ro(e))=>n===2?e.has(t):Qt[xs].hasOwnProperty.call(e,t),Wl=(e,t,n=Ro(e))=>n===2?e.get(t):e[t],ws=(e,t,n,r=Ro(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function $0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Cs=Array.isArray,Es=e=>e instanceof Map,Ts=e=>e instanceof Set,Vl=e=>typeof e=="object",wr=e=>typeof e=="function",Ul=e=>typeof e=="boolean",Kn=e=>e.copy_||e.base_,Hl=e=>e.modified_?e.copy_:e.base_;function Rl(e,t){if(Es(e))return new Map(e);if(Ts(e))return new Set(e);if(Cs(e))return Array[xs].slice.call(e);const n=Qu(e);if(t===!0||t==="class_only"&&!n){const r=Qt.getOwnPropertyDescriptors(e);delete r[Lt];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const a=i[s],l=r[a];l[Ss]===!1&&(l[Ss]=!0,l[jl]=!0),(l.get||l.set)&&(r[a]={[jl]:!0,[Ss]:!0,[vs]:l[vs],[Uo]:e[a]})}return Qt.create(Yr(e),r)}else{const r=Yr(e);if(r!==null&&n)return{...e};const i=Qt.create(r);return Qt.assign(i,e)}}function ql(e,t=!1){return Ps(e)||Gn(e)||!bn(e)||(Ro(e)>1&&Qt.defineProperties(e,{set:As,add:As,clear:As,delete:As}),Qt.freeze(e),t&&Ho(e,(n,r)=>{ql(r,!0)},!1)),e}function B0(){Jt(2)}var As={[Uo]:B0};function Ps(e){return e===null||!Vl(e)?!0:Qt.isFrozen(e)}var ks="MapSet",Yl="Patches",ep={};function Gr(e){const t=ep[e];return t||Jt(0,e),t}var L0=e=>!!ep[e],qo,tp=()=>qo,j0=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:L0(ks)?Gr(ks):void 0});function np(e,t){t&&(e.patchPlugin_=Gr(Yl),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Gl(e){Kl(e),e.drafts_.forEach(W0),e.drafts_=null}function Kl(e){e===qo&&(qo=e.parent_)}var rp=e=>qo=j0(qo,e);function W0(e){const t=e[Lt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function op(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Lt].modified_&&(Gl(t),Jt(4)),bn(e)&&(e=ip(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[Lt].base_,e,t)}else e=ip(t,n);return V0(t,e,!0),Gl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ku?e:void 0}function ip(e,t){if(Ps(t))return t;const n=t[Lt];if(!n)return Xl(t,e.handledSet_,e);if(!Os(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);lp(n,e)}return n.copy_}function V0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ql(t,n)}function sp(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Os=(e,t)=>e.scope_===t,U0=[];function ap(e,t,n,r){const i=Kn(e),s=e.type_;if(r!==void 0&&Wl(i,r,s)===t){ws(i,r,n,s);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;Ho(i,(d,p)=>{if(Gn(p)){const u=l.get(p)||[];u.push(d),l.set(p,u)}})}const a=e.draftLocations_.get(t)??U0;for(const l of a)ws(i,l,n,s)}function H0(e,t,n){e.callbacks_.push(function(i){const s=t;if(!s||!Os(s,i))return;i.mapSetPlugin_?.fixSetContents(s);const a=Hl(s);ap(e,s.draft_??s,a,n),lp(s,i)})}function lp(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)}sp(e)}}function R0(e,t,n){const{scope_:r}=e;if(Gn(n)){const i=n[Lt];Os(i,r)&&i.callbacks_.push(function(){Is(e);const a=Hl(i);ap(e,n,a,t)})}else bn(n)&&e.callbacks_.push(function(){const s=Kn(e);Wl(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Xl(Wl(e.copy_,t,e.type_),r.handledSet_,r)})}function Xl(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Gn(e)||t.has(e)||!bn(e)||Ps(e)||(t.add(e),Ho(e,(r,i)=>{if(Gn(i)){const s=i[Lt];if(Os(s,n)){const a=Hl(s);ws(e,r,a,e.type_),sp(s)}}else bn(i)&&Xl(i,t,n)})),e}function q0(e,t){const n=Cs(e),r={type_:n?1:0,scope_:t?t.scope_:tp(),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=Jl;n&&(i=[r],s=Yo);const{revoke:a,proxy:l}=Proxy.revocable(i,s);return r.draft_=l,r.revoke_=a,[l,r]}var Jl={get(e,t){if(t===Lt)return e;const n=Kn(e);if(!Zu(n,t,e.type_))return Y0(e,n,t);const r=n[t];if(e.finalized_||!bn(r))return r;if(r===Ql(e.base_,t)){Is(e);const i=e.type_===1?+t:t,s=ec(e.scope_,r,e,i);return e.copy_[i]=s}return r},has(e,t){return t in Kn(e)},ownKeys(e){return Reflect.ownKeys(Kn(e))},set(e,t,n){const r=cp(Kn(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Ql(Kn(e),t),s=i?.[Lt];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if($0(n,i)&&(n!==void 0||Zu(e.base_,t,e.type_)))return!0;Is(e),Zl(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),R0(e,t,n)),!0},deleteProperty(e,t){return Is(e),Ql(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Zl(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Kn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ss]:!0,[jl]:e.type_!==1||t!=="length",[vs]:r[vs],[Uo]:n[t]}},defineProperty(){Jt(11)},getPrototypeOf(e){return Yr(e.base_)},setPrototypeOf(){Jt(12)}},Yo={};Ho(Jl,(e,t)=>{Yo[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}),Yo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Jt(13),Yo.set.call(this,e,t,void 0)},Yo.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Jt(14),Jl.set.call(this,e[0],t,n,e[0])};function Ql(e,t){const n=e[Lt];return(n?Kn(n):e)[t]}function Y0(e,t,n){const r=cp(t,n);return r?Uo in r?r[Uo]:r.get?.call(e.draft_):void 0}function cp(e,t){if(!(t in e))return;let n=Yr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Yr(n)}}function Zl(e){e.modified_||(e.modified_=!0,e.parent_&&Zl(e.parent_))}function Is(e){e.copy_||(e.assigned_=new Map,e.copy_=Rl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var G0=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(wr(t)&&!wr(n)){const s=n;n=t;const a=this;return function(d=s,...p){return a.produce(d,u=>n.call(this,u,...p))}}wr(n)||Jt(6),r!==void 0&&!wr(r)&&Jt(7);let i;if(bn(t)){const s=rp(this),a=ec(s,t,void 0);let l=!0;try{i=n(a),l=!1}finally{l?Gl(s):Kl(s)}return np(s,r),op(i,s)}else if(!t||!Vl(t)){if(i=n(t),i===void 0&&(i=t),i===Ku&&(i=void 0),this.autoFreeze_&&ql(i,!0),r){const s=[],a=[];Gr(Yl).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:a}),r(s,a)}return i}else Jt(1,t)},this.produceWithPatches=(t,n)=>{if(wr(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]},Ul(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ul(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ul(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){bn(e)||Jt(8),Gn(e)&&(e=K0(e));const t=rp(this),n=ec(t,e,void 0);return n[Lt].isManual_=!0,Kl(t),n}finishDraft(e,t){const n=e&&e[Lt];(!n||!n.isManual_)&&Jt(9);const{scope_:r}=n;return np(r,t),op(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=Gr(Yl).applyPatches_;return Gn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function ec(e,t,n,r){const[i,s]=Es(t)?Gr(ks).proxyMap_(t,n):Ts(t)?Gr(ks).proxySet_(t,n):q0(t,n);return(n?.scope_??tp()).drafts_.push(i),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?H0(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 K0(e){return Gn(e)||Jt(10,e),dp(e)}function dp(e){if(!bn(e)||Ps(e))return e;const t=e[Lt];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Rl(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Rl(e,!0);return Ho(n,(i,s)=>{ws(n,i,dp(s))},r),t&&(t.finalized_=!1),n}var X0=new G0,up=X0.produce,J0=(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]),y=i0.useSyncExternalStoreWithSelector(d.addNestedSub,l.getState,p||l.getState,f,s);return T.useDebugValue(y),y};return Object.assign(n,{withTypes:()=>n}),n}var Qe=C0(),Wo={},Uu;function E0(){if(Uu)return Wo;Uu=1,Wo.__esModule=!0,Wo.PersistGate=void 0;var e=t(F);function t(x){if(x&&x.__esModule)return x;var g={};if(x!=null){for(var h in x)if(Object.prototype.hasOwnProperty.call(x,h)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(x,h):{};m.get||m.set?Object.defineProperty(g,h,m):g[h]=x[h]}}return g.default=x,g}function n(x){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(h){return typeof h}:n=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},n(x)}function r(x,g){if(!(x instanceof g))throw new TypeError("Cannot call a class as a function")}function i(x,g){for(var h=0;h<g.length;h++){var m=g[h];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(x,m.key,m)}}function s(x,g,h){return g&&i(x.prototype,g),x}function a(x,g){return g&&(n(g)==="object"||typeof g=="function")?g:d(x)}function l(x){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},l(x)}function d(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function p(x,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(g&&g.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),g&&u(x,g)}function u(x,g){return u=Object.setPrototypeOf||function(m,S){return m.__proto__=S,m},u(x,g)}function f(x,g,h){return g in x?Object.defineProperty(x,g,{value:h,enumerable:!0,configurable:!0,writable:!0}):x[g]=h,x}var y=(function(x){p(g,x);function g(){var h,m;r(this,g);for(var S=arguments.length,C=new Array(S),b=0;b<S;b++)C[b]=arguments[b];return m=a(this,(h=l(g)).call.apply(h,[this].concat(C))),f(d(m),"state",{bootstrapped:!1}),f(d(m),"_unsubscribe",void 0),f(d(m),"handlePersistorState",function(){var v=m.props.persistor,w=v.getState(),A=w.bootstrapped;A&&(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 Wo.PersistGate=y,f(y,"defaultProps",{children:null,loading:null}),Wo}var T0=E0();function kt(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 A0=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ru=A0,Bl=()=>Math.random().toString(36).substring(7).split("").join("."),P0={INIT:`@@redux/INIT${Bl()}`,REPLACE:`@@redux/REPLACE${Bl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Bl()}`},Sr=P0;function Vo(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 k0(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(N0(e))return"date";if(I0(e))return"error";const n=O0(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 O0(e){return typeof e.constructor=="function"?e.constructor.name:null}function I0(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function N0(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function ar(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=k0(e)),t}function Ll(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?kt(2):`Expected the root reducer to be a function. Instead, received: '${ar(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?kt(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"?kt(1):`Expected the enhancer to be a function. Instead, received: '${ar(n)}'`);return n(Ll)(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,S)=>{a.set(S,m)}))}function u(){if(d)throw new Error(process.env.NODE_ENV==="production"?kt(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 f(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?kt(4):`Expected the listener to be a function. Instead, received: '${ar(m)}'`);if(d)throw new Error(process.env.NODE_ENV==="production"?kt(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 S=!0;p();const C=l++;return a.set(C,m),function(){if(S){if(d)throw new Error(process.env.NODE_ENV==="production"?kt(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.");S=!1,p(),a.delete(C),s=null}}}function y(m){if(!Vo(m))throw new Error(process.env.NODE_ENV==="production"?kt(7):`Actions must be plain objects. Instead, the actual type was: '${ar(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"?kt(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"?kt(17):`Action "type" property must be a string. Instead, the actual type was: '${ar(m.type)}'. Value was: '${m.type}' (stringified)`);if(d)throw new Error(process.env.NODE_ENV==="production"?kt(9):"Reducers may not dispatch actions.");try{d=!0,i=r(i,m)}finally{d=!1}return(s=a).forEach(C=>{C()}),m}function x(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?kt(10):`Expected the nextReducer to be a function. Instead, received: '${ar(m)}`);r=m,y({type:Sr.REPLACE})}function g(){const m=f;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(process.env.NODE_ENV==="production"?kt(11):`Expected the observer to be an object. Instead, received: '${ar(S)}'`);function C(){const v=S;v.next&&v.next(u())}return C(),{unsubscribe:m(C)}},[Ru](){return this}}}return y({type:Sr.INIT}),{dispatch:y,subscribe:f,getState:u,replaceReducer:x,[Ru]:g}}function qu(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function F0(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(!Vo(e))return`The ${s} has unexpected type of "${ar(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 M0(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"?kt(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"?kt(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 Yu(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"&&qu(`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{M0(n)}catch(a){s=a}return function(l={},d){if(s)throw s;if(process.env.NODE_ENV!=="production"){const f=F0(l,n,d,i);f&&qu(f)}let p=!1;const u={};for(let f=0;f<r.length;f++){const y=r[f],x=n[y],g=l[y],h=x(g,d);if(typeof h>"u"){const m=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?kt(14):`When called with an action of type ${m?`"${String(m)}"`:"(unknown type)"}, the slice reducer for key "${y}" 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[y]=h,p=p||h!==g}return p=p||r.length!==Object.keys(l).length,p?u:l}}function ys(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function D0(...e){return t=>(n,r)=>{const i=t(n,r);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?kt(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=ys(...l)(i.dispatch),{...i,dispatch:s}}}function Gu(e){return Vo(e)&&"type"in e&&typeof e.type=="string"}var Ku=Symbol.for("immer-nothing"),Xu=Symbol.for("immer-draftable"),Lt=Symbol.for("immer-state"),_0=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 Jt(e,...t){if(process.env.NODE_ENV!=="production"){const n=_0[e],r=wr(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 Qt=Object,Yr=Qt.getPrototypeOf,bs="constructor",xs="prototype",jl="configurable",vs="enumerable",Ss="writable",Ho="value",Gn=e=>!!e&&!!e[Lt];function bn(e){return e?Qu(e)||Cs(e)||!!e[Xu]||!!e[bs]?.[Xu]||Es(e)||Ts(e):!1}var z0=Qt[xs][bs].toString(),Ju=new WeakMap;function Qu(e){if(!e||!Vl(e))return!1;const t=Yr(e);if(t===null||t===Qt[xs])return!0;const n=Qt.hasOwnProperty.call(t,bs)&&t[bs];if(n===Object)return!0;if(!wr(n))return!1;let r=Ju.get(n);return r===void 0&&(r=Function.toString.call(n),Ju.set(n,r)),r===z0}function Uo(e,t,n=!0){Ro(e)===0?(n?Reflect.ownKeys(e):Qt.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Ro(e){const t=e[Lt];return t?t.type_:Cs(e)?1:Es(e)?2:Ts(e)?3:0}var Zu=(e,t,n=Ro(e))=>n===2?e.has(t):Qt[xs].hasOwnProperty.call(e,t),Wl=(e,t,n=Ro(e))=>n===2?e.get(t):e[t],ws=(e,t,n,r=Ro(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function $0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Cs=Array.isArray,Es=e=>e instanceof Map,Ts=e=>e instanceof Set,Vl=e=>typeof e=="object",wr=e=>typeof e=="function",Hl=e=>typeof e=="boolean",Kn=e=>e.copy_||e.base_,Ul=e=>e.modified_?e.copy_:e.base_;function Rl(e,t){if(Es(e))return new Map(e);if(Ts(e))return new Set(e);if(Cs(e))return Array[xs].slice.call(e);const n=Qu(e);if(t===!0||t==="class_only"&&!n){const r=Qt.getOwnPropertyDescriptors(e);delete r[Lt];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const a=i[s],l=r[a];l[Ss]===!1&&(l[Ss]=!0,l[jl]=!0),(l.get||l.set)&&(r[a]={[jl]:!0,[Ss]:!0,[vs]:l[vs],[Ho]:e[a]})}return Qt.create(Yr(e),r)}else{const r=Yr(e);if(r!==null&&n)return{...e};const i=Qt.create(r);return Qt.assign(i,e)}}function ql(e,t=!1){return Ps(e)||Gn(e)||!bn(e)||(Ro(e)>1&&Qt.defineProperties(e,{set:As,add:As,clear:As,delete:As}),Qt.freeze(e),t&&Uo(e,(n,r)=>{ql(r,!0)},!1)),e}function B0(){Jt(2)}var As={[Ho]:B0};function Ps(e){return e===null||!Vl(e)?!0:Qt.isFrozen(e)}var ks="MapSet",Yl="Patches",ep={};function Gr(e){const t=ep[e];return t||Jt(0,e),t}var L0=e=>!!ep[e],qo,tp=()=>qo,j0=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:L0(ks)?Gr(ks):void 0});function np(e,t){t&&(e.patchPlugin_=Gr(Yl),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Gl(e){Kl(e),e.drafts_.forEach(W0),e.drafts_=null}function Kl(e){e===qo&&(qo=e.parent_)}var rp=e=>qo=j0(qo,e);function W0(e){const t=e[Lt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function op(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Lt].modified_&&(Gl(t),Jt(4)),bn(e)&&(e=ip(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[Lt].base_,e,t)}else e=ip(t,n);return V0(t,e,!0),Gl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ku?e:void 0}function ip(e,t){if(Ps(t))return t;const n=t[Lt];if(!n)return Xl(t,e.handledSet_,e);if(!Os(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);lp(n,e)}return n.copy_}function V0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ql(t,n)}function sp(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Os=(e,t)=>e.scope_===t,H0=[];function ap(e,t,n,r){const i=Kn(e),s=e.type_;if(r!==void 0&&Wl(i,r,s)===t){ws(i,r,n,s);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;Uo(i,(d,p)=>{if(Gn(p)){const u=l.get(p)||[];u.push(d),l.set(p,u)}})}const a=e.draftLocations_.get(t)??H0;for(const l of a)ws(i,l,n,s)}function U0(e,t,n){e.callbacks_.push(function(i){const s=t;if(!s||!Os(s,i))return;i.mapSetPlugin_?.fixSetContents(s);const a=Ul(s);ap(e,s.draft_??s,a,n),lp(s,i)})}function lp(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)}sp(e)}}function R0(e,t,n){const{scope_:r}=e;if(Gn(n)){const i=n[Lt];Os(i,r)&&i.callbacks_.push(function(){Is(e);const a=Ul(i);ap(e,n,a,t)})}else bn(n)&&e.callbacks_.push(function(){const s=Kn(e);Wl(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Xl(Wl(e.copy_,t,e.type_),r.handledSet_,r)})}function Xl(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Gn(e)||t.has(e)||!bn(e)||Ps(e)||(t.add(e),Uo(e,(r,i)=>{if(Gn(i)){const s=i[Lt];if(Os(s,n)){const a=Ul(s);ws(e,r,a,e.type_),sp(s)}}else bn(i)&&Xl(i,t,n)})),e}function q0(e,t){const n=Cs(e),r={type_:n?1:0,scope_:t?t.scope_:tp(),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=Jl;n&&(i=[r],s=Yo);const{revoke:a,proxy:l}=Proxy.revocable(i,s);return r.draft_=l,r.revoke_=a,[l,r]}var Jl={get(e,t){if(t===Lt)return e;const n=Kn(e);if(!Zu(n,t,e.type_))return Y0(e,n,t);const r=n[t];if(e.finalized_||!bn(r))return r;if(r===Ql(e.base_,t)){Is(e);const i=e.type_===1?+t:t,s=ec(e.scope_,r,e,i);return e.copy_[i]=s}return r},has(e,t){return t in Kn(e)},ownKeys(e){return Reflect.ownKeys(Kn(e))},set(e,t,n){const r=cp(Kn(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Ql(Kn(e),t),s=i?.[Lt];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if($0(n,i)&&(n!==void 0||Zu(e.base_,t,e.type_)))return!0;Is(e),Zl(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),R0(e,t,n)),!0},deleteProperty(e,t){return Is(e),Ql(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Zl(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Kn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ss]:!0,[jl]:e.type_!==1||t!=="length",[vs]:r[vs],[Ho]:n[t]}},defineProperty(){Jt(11)},getPrototypeOf(e){return Yr(e.base_)},setPrototypeOf(){Jt(12)}},Yo={};Uo(Jl,(e,t)=>{Yo[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}),Yo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Jt(13),Yo.set.call(this,e,t,void 0)},Yo.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Jt(14),Jl.set.call(this,e[0],t,n,e[0])};function Ql(e,t){const n=e[Lt];return(n?Kn(n):e)[t]}function Y0(e,t,n){const r=cp(t,n);return r?Ho in r?r[Ho]:r.get?.call(e.draft_):void 0}function cp(e,t){if(!(t in e))return;let n=Yr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Yr(n)}}function Zl(e){e.modified_||(e.modified_=!0,e.parent_&&Zl(e.parent_))}function Is(e){e.copy_||(e.assigned_=new Map,e.copy_=Rl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var G0=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(wr(t)&&!wr(n)){const s=n;n=t;const a=this;return function(d=s,...p){return a.produce(d,u=>n.call(this,u,...p))}}wr(n)||Jt(6),r!==void 0&&!wr(r)&&Jt(7);let i;if(bn(t)){const s=rp(this),a=ec(s,t,void 0);let l=!0;try{i=n(a),l=!1}finally{l?Gl(s):Kl(s)}return np(s,r),op(i,s)}else if(!t||!Vl(t)){if(i=n(t),i===void 0&&(i=t),i===Ku&&(i=void 0),this.autoFreeze_&&ql(i,!0),r){const s=[],a=[];Gr(Yl).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:a}),r(s,a)}return i}else Jt(1,t)},this.produceWithPatches=(t,n)=>{if(wr(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]},Hl(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Hl(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Hl(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){bn(e)||Jt(8),Gn(e)&&(e=K0(e));const t=rp(this),n=ec(t,e,void 0);return n[Lt].isManual_=!0,Kl(t),n}finishDraft(e,t){const n=e&&e[Lt];(!n||!n.isManual_)&&Jt(9);const{scope_:r}=n;return np(r,t),op(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=Gr(Yl).applyPatches_;return Gn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function ec(e,t,n,r){const[i,s]=Es(t)?Gr(ks).proxyMap_(t,n):Ts(t)?Gr(ks).proxySet_(t,n):q0(t,n);return(n?.scope_??tp()).drafts_.push(i),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?U0(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 K0(e){return Gn(e)||Jt(10,e),dp(e)}function dp(e){if(!bn(e)||Ps(e))return e;const t=e[Lt];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Rl(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Rl(e,!0);return Uo(n,(i,s)=>{ws(n,i,dp(s))},r),t&&(t.finalized_=!1),n}var X0=new G0,up=X0.produce,J0=(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})}}},Q0=(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.
@@ -16,22 +16,22 @@ Take a look at the logic that dispatched this action: `,x,`
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||(h.measureTime(()=>{const m=f.getState(),S=tc(m,"",t,n,s,u);if(S){const{keyPath:C,value:b}=S;console.error(`A non-serializable value was detected in the state, in the path: \`${C}\`. Value:`,b,`
18
18
  Take a look at the reducer(s) handling this action type: ${x.type}.
19
- (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),h.warnIfExceeded()),g}}}function Ms(e){return typeof e=="boolean"}var Sx=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let a=new xp;if(n&&(Ms(n)?a.push(ux):a.push(px(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let l={};Ms(r)||(l=r),a.unshift(xx(l))}if(i){let l={};Ms(i)||(l=i),a.push(vx(l))}if(s){let l={};Ms(s)||(l=s),a.unshift(mx(l))}}return a},wx="RTK_autoBatch",Tp=e=>t=>{setTimeout(t,e)},Cx=(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:Tp(10):e.type==="callback"?e.queueNotification:Tp(e.timeout),p=()=>{a=!1,s&&(s=!1,l.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const f=()=>i&&u(),y=r.subscribe(f);return l.add(u),()=>{y(),l.delete(u)}},dispatch(u){try{return i=!u?.meta?.[wx],s=!i,s&&(a||(a=!0,d(p))),r.dispatch(u)}finally{i=!0}}})},Ex=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new xp(e);return r&&i.push(Cx(typeof r=="object"?r:void 0)),i};function Tx(e){const t=Sx(),{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(Vo(n))d=Yu(n);else throw new Error(process.env.NODE_ENV==="production"?at(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"?at(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"?at(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(h=>typeof h!="function"))throw new Error(process.env.NODE_ENV==="production"?at(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&s){let h=new Set;p.forEach(m=>{if(h.has(m))throw new Error(process.env.NODE_ENV==="production"?at(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");h.add(m)})}let u=ys;i&&(u=fx({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=D0(...p),y=Ex(f);if(process.env.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(process.env.NODE_ENV==="production"?at(5):"`enhancers` field must be a callback");let x=typeof l=="function"?l(y):y();if(process.env.NODE_ENV!=="production"&&!Array.isArray(x))throw new Error(process.env.NODE_ENV==="production"?at(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&x.some(h=>typeof h!="function"))throw new Error(process.env.NODE_ENV==="production"?at(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&p.length&&!x.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...x);return Ll(d,a,g)}function Ap(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"?at(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?at(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"?at(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?at(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"?at(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"?at(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"?at(31):"`builder.addDefaultCase` can only be called once");return r=s,i}};return e(i),[t,n,r]}function Ax(e){return typeof e=="function"}function Px(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?at(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]=Ap(t),s;if(Ax(e))s=()=>vp(e());else{const l=vp(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,f)=>{if(f)if(Gn(u)){const x=f(u,d);return x===void 0?u:x}else{if(bn(u))return up(u,y=>f(y,d));{const y=f(u,d);if(y===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return u},l)}return a.getInitialState=s,a}var kx=(e,t)=>yp(e)?e.match(t):e(t);function Ox(...e){return t=>e.some(n=>kx(n,t))}var Ix="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Nx=(e=21)=>{let t="",n=e;for(;n--;)t+=Ix[Math.random()*64|0];return t},Fx=["name","message","stack","code"],nc=class{constructor(e,t){this.payload=e,this.meta=t}_type},Pp=class{constructor(e,t){this.payload=e,this.meta=t}_type},Mx=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Fx)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},kp="External signal was aborted",Tt=(()=>{function e(t,n,r){const i=Go(t+"/fulfilled",(d,p,u,f)=>({payload:d,meta:{...f||{},arg:u,requestId:p,requestStatus:"fulfilled"}})),s=Go(t+"/pending",(d,p,u)=>({payload:void 0,meta:{...u||{},arg:p,requestId:d,requestStatus:"pending"}})),a=Go(t+"/rejected",(d,p,u,f,y)=>({payload:f,error:(r&&r.serializeError||Mx)(d||"Rejected"),meta:{...y||{},arg:u,requestId:p,rejectedWithValue:!!f,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(u,f,y)=>{const x=r?.idGenerator?r.idGenerator(d):Nx(),g=new AbortController;let h,m;function S(b){m=b,g.abort()}p&&(p.aborted?S(kp):p.addEventListener("abort",()=>S(kp),{once:!0}));const C=(async function(){let b;try{let w=r?.condition?.(d,{getState:f,extra:y});if(_x(w)&&(w=await w),w===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const A=new Promise((k,D)=>{h=()=>{D({name:"AbortError",message:m||"Aborted"})},g.signal.addEventListener("abort",h,{once:!0})});u(s(x,d,r?.getPendingMeta?.({requestId:x,arg:d},{getState:f,extra:y}))),b=await Promise.race([A,Promise.resolve(n(d,{dispatch:u,getState:f,extra:y,requestId:x,signal:g.signal,abort:S,rejectWithValue:(k,D)=>new nc(k,D),fulfillWithValue:(k,D)=>new Pp(k,D)})).then(k=>{if(k instanceof nc)throw k;return k instanceof Pp?i(k.payload,x,d,k.meta):i(k,x,d)})])}catch(w){b=w instanceof nc?a(null,x,d,w.payload,w.meta):a(w,x,d)}finally{h&&g.signal.removeEventListener("abort",h)}return r&&!r.dispatchConditionRejection&&a.match(b)&&b.meta.condition||u(b),b})();return Object.assign(C,{abort:S,requestId:x,arg:d,unwrap(){return C.then(Dx)}})}}return Object.assign(l,{pending:s,rejected:a,fulfilled:i,settled:Ox(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Dx(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function _x(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var zx=Symbol.for("rtk-slice-createasyncthunk");function $x(e,t){return`${e}/${t}`}function Bx({creators:e}={}){const t=e?.asyncThunk?.[zx];return function(r){const{name:i,reducerPath:s=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?at(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(jx()):r.reducers)||{},l=Object.keys(a),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(b,v){const w=typeof b=="string"?b:b.type;if(!w)throw new Error(process.env.NODE_ENV==="production"?at(12):"`context.addCase` cannot be called with an empty action type");if(w in d.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?at(13):"`context.addCase` cannot be called with two reducers for the same action type: "+w);return d.sliceCaseReducersByType[w]=v,p},addMatcher(b,v){return d.sliceMatchers.push({matcher:b,reducer:v}),p},exposeAction(b,v){return d.actionCreators[b]=v,p},exposeCaseReducer(b,v){return d.sliceCaseReducersByName[b]=v,p}};l.forEach(b=>{const v=a[b],w={reducerName:b,type:$x(i,b),createNotation:typeof r.reducers=="function"};Vx(v)?Hx(w,v,p,t):Wx(w,v,p)});function u(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?at(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[b={},v=[],w=void 0]=typeof r.extraReducers=="function"?Ap(r.extraReducers):[r.extraReducers],A={...b,...d.sliceCaseReducersByType};return Px(r.initialState,k=>{for(let D in A)k.addCase(D,A[D]);for(let D of d.sliceMatchers)k.addMatcher(D.matcher,D.reducer);for(let D of v)k.addMatcher(D.matcher,D.reducer);w&&k.addDefaultCase(w)})}const f=b=>b,y=new Map,x=new WeakMap;let g;function h(b,v){return g||(g=u()),g(b,v)}function m(){return g||(g=u()),g.getInitialState()}function S(b,v=!1){function w(k){let D=k[b];if(typeof D>"u"){if(v)D=Fs(x,w,m);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?at(15):"selectSlice returned undefined for an uninjected slice reducer")}return D}function A(k=f){const D=Fs(y,v,()=>new WeakMap);return Fs(D,k,()=>{const O={};for(const[B,L]of Object.entries(r.selectors??{}))O[B]=Lx(L,k,()=>Fs(x,k,m),v);return O})}return{reducerPath:b,getSelectors:A,get selectors(){return A(w)},selectSlice:w}}const C={name:i,reducer:h,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:m,...S(s),injectInto(b,{reducerPath:v,...w}={}){const A=v??s;return b.inject({reducerPath:A,reducer:h},w),{...C,...S(A,!0)}}};return C}}function Lx(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"?at(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...a)}return i.unwrapped=e,i}var Op=Bx();function jx(){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 Wx({type:e,reducerName:t,createNotation:n},r,i){let s,a;if("reducer"in r){if(n&&!Ux(r))throw new Error(process.env.NODE_ENV==="production"?at(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?Go(e,a):Go(e))}function Vx(e){return e._reducerDefinitionType==="asyncThunk"}function Ux(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Hx({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?at(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,f=i(e,s,u);r.exposeAction(t,f),a&&r.addCase(f.fulfilled,a),l&&r.addCase(f.pending,l),d&&r.addCase(f.rejected,d),p&&r.addMatcher(f.settled,p),r.exposeCaseReducer(t,{fulfilled:a||Ds,pending:l||Ds,rejected:d||Ds,settled:p||Ds})}function Ds(){}function at(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 rc="persist:",Ip="persist/FLUSH",oc="persist/REHYDRATE",Np="persist/PAUSE",Fp="persist/PERSIST",Mp="persist/PURGE",Dp="persist/REGISTER",Rx=-1;function Ko(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ko=function(n){return typeof n}:Ko=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ko(e)}function _p(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 qx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_p(n,!0).forEach(function(r){Yx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_p(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gx(e,t,n,r){var i=r.debug,s=qx({},n);return e&&Ko(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&&Ko(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function Kx(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:rc).concat(e.key),a=e.storage,l;e.serialize===!1?l=function(w){return w}:typeof e.serialize=="function"?l=e.serialize:l=Xx;var d=e.writeFailHandler||null,p={},u={},f=[],y=null,x=null,g=function(w){Object.keys(w).forEach(function(A){S(A)&&p[A]!==w[A]&&f.indexOf(A)===-1&&f.push(A)}),Object.keys(p).forEach(function(A){w[A]===void 0&&S(A)&&f.indexOf(A)===-1&&p[A]!==void 0&&f.push(A)}),y===null&&(y=setInterval(h,i)),p=w};function h(){if(f.length===0){y&&clearInterval(y),y=null;return}var v=f.shift(),w=r.reduce(function(A,k){return k.in(A,v,p)},p[v]);if(w!==void 0)try{u[v]=l(w)}catch(A){console.error("redux-persist/createPersistoid: error serializing state",A)}else delete u[v];f.length===0&&m()}function m(){Object.keys(u).forEach(function(v){p[v]===void 0&&delete u[v]}),x=a.setItem(s,l(u)).catch(C)}function S(v){return!(n&&n.indexOf(v)===-1&&v!=="_persist"||t&&t.indexOf(v)!==-1)}function C(v){d&&d(v),v&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",v)}var b=function(){for(;f.length!==0;)h();return x||Promise.resolve()};return{update:g,flush:b}}function Xx(e){return JSON.stringify(e)}function Jx(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:rc).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=Qx,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,f){return f.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 Qx(e){return JSON.parse(e)}function Zx(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:rc).concat(e.key);return t.removeItem(n,ev)}function ev(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function zp(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 Xn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zp(n,!0).forEach(function(r){tv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nv(e,t){if(e==null)return{};var n=rv(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 rv(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 ov=5e3;function iv(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:Rx;e.debug;var r=e.stateReconciler===void 0?Gx:e.stateReconciler,i=e.getStoredState||Jx,s=e.timeout!==void 0?e.timeout:ov,a=null,l=!1,d=!0,p=function(f){return f._persist.rehydrated&&a&&!d&&a.update(f),f};return function(u,f){var y=u||{},x=y._persist,g=nv(y,["_persist"]),h=g;if(f.type===Fp){var m=!1,S=function(D,O){process.env.NODE_ENV!=="production"&&m&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),D,O),m||(f.rehydrate(e.key,D,O),m=!0)};if(s&&setTimeout(function(){!m&&S(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),d=!1,a||(a=Kx(e)),x)return Xn({},t(h,f),{_persist:x});if(typeof f.rehydrate!="function"||typeof f.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 f.register(e.key),i(e).then(function(k){var D=e.migrate||function(O,B){return Promise.resolve(O)};D(k,n).then(function(O){S(O)},function(O){process.env.NODE_ENV!=="production"&&O&&console.error("redux-persist: migration error",O),S(void 0,O)})},function(k){S(void 0,k)}),Xn({},t(h,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===Mp)return l=!0,f.result(Zx(e)),Xn({},t(h,f),{_persist:x});if(f.type===Ip)return f.result(a&&a.flush()),Xn({},t(h,f),{_persist:x});if(f.type===Np)d=!0;else if(f.type===oc){if(l)return Xn({},h,{_persist:Xn({},x,{rehydrated:!0})});if(f.key===e.key){var C=t(h,f),b=f.payload,v=r!==!1&&b!==void 0?r(b,u,C,e):C,w=Xn({},v,{_persist:Xn({},x,{rehydrated:!0})});return p(w)}}}if(!x)return t(u,f);var A=t(h,f);return A===h?u:p(Xn({},A,{_persist:x}))}}function $p(e){return lv(e)||av(e)||sv()}function sv(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function av(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function lv(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 Bp(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 ic(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bp(n,!0).forEach(function(r){cv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lp={registry:[],bootstrapped:!1},dv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lp,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Dp:return ic({},t,{registry:[].concat($p(t.registry),[n.key])});case oc:var r=t.registry.indexOf(n.key),i=$p(t.registry);return i.splice(r,1),ic({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function uv(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=Ll(dv,Lp,void 0),a=function(u){s.dispatch({type:Dp,key:u})},l=function(u,f,y){var x={type:oc,payload:f,err:y,key:u};e.dispatch(x),s.dispatch(x)},d=ic({},s,{purge:function(){var u=[];return e.dispatch({type:Mp,result:function(y){u.push(y)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Ip,result:function(y){u.push(y)}}),Promise.all(u)},pause:function(){e.dispatch({type:Np})},persist:function(){e.dispatch({type:Fp,register:a,rehydrate:l})}});return d.persist(),d}function jp(e,t){return function(){return e.apply(t,arguments)}}const{toString:pv}=Object.prototype,{getPrototypeOf:sc}=Object,{iterator:_s,toStringTag:Wp}=Symbol,zs=(e=>t=>{const n=pv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xn=e=>(e=e.toLowerCase(),t=>zs(t)===e),$s=e=>t=>typeof t===e,{isArray:Kr}=Array,Xr=$s("undefined");function Xo(e){return e!==null&&!Xr(e)&&e.constructor!==null&&!Xr(e.constructor)&&Ht(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vp=xn("ArrayBuffer");function fv(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vp(e.buffer),t}const hv=$s("string"),Ht=$s("function"),Up=$s("number"),Jo=e=>e!==null&&typeof e=="object",gv=e=>e===!0||e===!1,Bs=e=>{if(zs(e)!=="object")return!1;const t=sc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Wp in e)&&!(_s in e)},mv=e=>{if(!Jo(e)||Xo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},yv=xn("Date"),bv=xn("File"),xv=xn("Blob"),vv=xn("FileList"),Sv=e=>Jo(e)&&Ht(e.pipe),wv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ht(e.append)&&((t=zs(e))==="formdata"||t==="object"&&Ht(e.toString)&&e.toString()==="[object FormData]"))},Cv=xn("URLSearchParams"),[Ev,Tv,Av,Pv]=["ReadableStream","Request","Response","Headers"].map(xn),kv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Kr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Xo(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 Hp(e,t){if(Xo(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 Cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rp=e=>!Xr(e)&&e!==Cr;function ac(){const{caseless:e,skipUndefined:t}=Rp(this)&&this||{},n={},r=(i,s)=>{const a=e&&Hp(n,s)||s;Bs(n[a])&&Bs(i)?n[a]=ac(n[a],i):Bs(i)?n[a]=ac({},i):Kr(i)?n[a]=i.slice():(!t||!Xr(i))&&(n[a]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Qo(arguments[i],r);return n}const Ov=(e,t,n,{allOwnKeys:r}={})=>(Qo(t,(i,s)=>{n&&Ht(i)?e[s]=jp(i,n):e[s]=i},{allOwnKeys:r}),e),Iv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nv=(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)},Fv=(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&&sc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Mv=(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},Dv=e=>{if(!e)return null;if(Kr(e))return e;let t=e.length;if(!Up(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_v=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&sc(Uint8Array)),zv=(e,t)=>{const r=(e&&e[_s]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},$v=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Bv=xn("HTMLFormElement"),Lv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),qp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),jv=xn("RegExp"),Yp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qo(n,(i,s)=>{let a;(a=t(i,s,e))!==!1&&(r[s]=a||i)}),Object.defineProperties(e,r)},Wv=e=>{Yp(e,(t,n)=>{if(Ht(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ht(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+"'")})}})},Vv=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Kr(e)?r(e):r(String(e).split(t)),n},Uv=()=>{},Hv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Rv(e){return!!(e&&Ht(e.append)&&e[Wp]==="FormData"&&e[_s])}const qv=e=>{const t=new Array(10),n=(r,i)=>{if(Jo(r)){if(t.indexOf(r)>=0)return;if(Xo(r))return r;if(!("toJSON"in r)){t[i]=r;const s=Kr(r)?[]:{};return Qo(r,(a,l)=>{const d=n(a,i+1);!Xr(d)&&(s[l]=d)}),t[i]=void 0,s}}return r};return n(e,0)},Yv=xn("AsyncFunction"),Gv=e=>e&&(Jo(e)||Ht(e))&&Ht(e.then)&&Ht(e.catch),Gp=((e,t)=>e?setImmediate:t?((n,r)=>(Cr.addEventListener("message",({source:i,data:s})=>{i===Cr&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Cr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ht(Cr.postMessage)),Kv=typeof queueMicrotask<"u"?queueMicrotask.bind(Cr):typeof process<"u"&&process.nextTick||Gp,G={isArray:Kr,isArrayBuffer:Vp,isBuffer:Xo,isFormData:wv,isArrayBufferView:fv,isString:hv,isNumber:Up,isBoolean:gv,isObject:Jo,isPlainObject:Bs,isEmptyObject:mv,isReadableStream:Ev,isRequest:Tv,isResponse:Av,isHeaders:Pv,isUndefined:Xr,isDate:yv,isFile:bv,isBlob:xv,isRegExp:jv,isFunction:Ht,isStream:Sv,isURLSearchParams:Cv,isTypedArray:_v,isFileList:vv,forEach:Qo,merge:ac,extend:Ov,trim:kv,stripBOM:Iv,inherits:Nv,toFlatObject:Fv,kindOf:zs,kindOfTest:xn,endsWith:Mv,toArray:Dv,forEachEntry:zv,matchAll:$v,isHTMLForm:Bv,hasOwnProperty:qp,hasOwnProp:qp,reduceDescriptors:Yp,freezeMethods:Wv,toObjectSet:Vv,toCamelCase:Lv,noop:Uv,toFiniteNumber:Hv,findKey:Hp,global:Cr,isContextDefined:Rp,isSpecCompliantForm:Rv,toJSONObject:qv,isAsyncFn:Yv,isThenable:Gv,setImmediate:Gp,asap:Kv,isIterable:e=>e!=null&&Ht(e[_s])};function _e(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)}G.inherits(_e,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:G.toJSONObject(this.config),code:this.code,status:this.status}}});const Kp=_e.prototype,Xp={};["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=>{Xp[e]={value:e}}),Object.defineProperties(_e,Xp),Object.defineProperty(Kp,"isAxiosError",{value:!0}),_e.from=(e,t,n,r,i,s)=>{const a=Object.create(Kp);G.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 _e.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 Xv=null;function lc(e){return G.isPlainObject(e)||G.isArray(e)}function Jp(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function Qp(e,t,n){return e?e.concat(t).map(function(i,s){return i=Jp(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Jv(e){return G.isArray(e)&&!e.some(lc)}const Qv=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function Ls(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,m){return!G.isUndefined(m[h])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(i))throw new TypeError("visitor must be a function");function p(g){if(g===null)return"";if(G.isDate(g))return g.toISOString();if(G.isBoolean(g))return g.toString();if(!d&&G.isBlob(g))throw new _e("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(g)||G.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,h,m){let S=g;if(g&&!m&&typeof g=="object"){if(G.endsWith(h,"{}"))h=r?h:h.slice(0,-2),g=JSON.stringify(g);else if(G.isArray(g)&&Jv(g)||(G.isFileList(g)||G.endsWith(h,"[]"))&&(S=G.toArray(g)))return h=Jp(h),S.forEach(function(b,v){!(G.isUndefined(b)||b===null)&&t.append(a===!0?Qp([h],v,s):a===null?h:h+"[]",p(b))}),!1}return lc(g)?!0:(t.append(Qp(m,h,s),p(g)),!1)}const f=[],y=Object.assign(Qv,{defaultVisitor:u,convertValue:p,isVisitable:lc});function x(g,h){if(!G.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));f.push(g),G.forEach(g,function(S,C){(!(G.isUndefined(S)||S===null)&&i.call(t,S,G.isString(C)?C.trim():C,h,y))===!0&&x(S,h?h.concat(C):[C])}),f.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Zp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function cc(e,t){this._pairs=[],e&&Ls(e,this,t)}const ef=cc.prototype;ef.append=function(t,n){this._pairs.push([t,n])},ef.toString=function(t){const n=t?function(r){return t.call(this,r,Zp)}:Zp;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Zv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tf(e,t,n){if(!t)return e;const r=n&&n.encode||Zv;G.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=G.isURLSearchParams(t)?t.toString():new cc(t,n).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class nf{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){G.forEach(this.handlers,function(r){r!==null&&t(r)})}}const rf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},e1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:cc,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},dc=typeof window<"u"&&typeof document<"u",uc=typeof navigator=="object"&&navigator||void 0,t1=dc&&(!uc||["ReactNative","NativeScript","NS"].indexOf(uc.product)<0),n1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",r1=dc&&window.location.href||"http://localhost",Nt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dc,hasStandardBrowserEnv:t1,hasStandardBrowserWebWorkerEnv:n1,navigator:uc,origin:r1},Symbol.toStringTag,{value:"Module"})),...e1};function o1(e,t){return Ls(e,new Nt.classes.URLSearchParams,{visitor:function(n,r,i,s){return Nt.isNode&&G.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function i1(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function s1(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 of(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&&G.isArray(i)?i.length:a,d?(G.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!l):((!i[a]||!G.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],s)&&G.isArray(i[a])&&(i[a]=s1(i[a])),!l)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(r,i)=>{t(i1(r),i,n,0)}),n}return null}function a1(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Zo={transitional:rf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=G.isObject(t);if(s&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return i?JSON.stringify(of(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t)||G.isReadableStream(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.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 o1(t,this.formSerializer).toString();if((l=G.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ls(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),a1(t)):t}],transformResponse:[function(t){const n=this.transitional||Zo.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(G.isResponse(t)||G.isReadableStream(t))return t;if(t&&G.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"?_e.from(l,_e.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:Nt.classes.FormData,Blob:Nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{Zo.headers[e]={}});const l1=G.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"]),c1=e=>{const t={};let n,r,i;return e&&e.split(`
19
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),h.warnIfExceeded()),g}}}function Ms(e){return typeof e=="boolean"}var Sx=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let a=new xp;if(n&&(Ms(n)?a.push(ux):a.push(px(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let l={};Ms(r)||(l=r),a.unshift(xx(l))}if(i){let l={};Ms(i)||(l=i),a.push(vx(l))}if(s){let l={};Ms(s)||(l=s),a.unshift(mx(l))}}return a},wx="RTK_autoBatch",Tp=e=>t=>{setTimeout(t,e)},Cx=(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:Tp(10):e.type==="callback"?e.queueNotification:Tp(e.timeout),p=()=>{a=!1,s&&(s=!1,l.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const f=()=>i&&u(),y=r.subscribe(f);return l.add(u),()=>{y(),l.delete(u)}},dispatch(u){try{return i=!u?.meta?.[wx],s=!i,s&&(a||(a=!0,d(p))),r.dispatch(u)}finally{i=!0}}})},Ex=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new xp(e);return r&&i.push(Cx(typeof r=="object"?r:void 0)),i};function Tx(e){const t=Sx(),{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(Vo(n))d=Yu(n);else throw new Error(process.env.NODE_ENV==="production"?at(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"?at(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"?at(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(h=>typeof h!="function"))throw new Error(process.env.NODE_ENV==="production"?at(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&s){let h=new Set;p.forEach(m=>{if(h.has(m))throw new Error(process.env.NODE_ENV==="production"?at(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");h.add(m)})}let u=ys;i&&(u=fx({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=D0(...p),y=Ex(f);if(process.env.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(process.env.NODE_ENV==="production"?at(5):"`enhancers` field must be a callback");let x=typeof l=="function"?l(y):y();if(process.env.NODE_ENV!=="production"&&!Array.isArray(x))throw new Error(process.env.NODE_ENV==="production"?at(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&x.some(h=>typeof h!="function"))throw new Error(process.env.NODE_ENV==="production"?at(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&p.length&&!x.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...x);return Ll(d,a,g)}function Ap(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"?at(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?at(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"?at(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?at(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"?at(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"?at(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"?at(31):"`builder.addDefaultCase` can only be called once");return r=s,i}};return e(i),[t,n,r]}function Ax(e){return typeof e=="function"}function Px(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?at(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]=Ap(t),s;if(Ax(e))s=()=>vp(e());else{const l=vp(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,f)=>{if(f)if(Gn(u)){const x=f(u,d);return x===void 0?u:x}else{if(bn(u))return up(u,y=>f(y,d));{const y=f(u,d);if(y===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return u},l)}return a.getInitialState=s,a}var kx=(e,t)=>yp(e)?e.match(t):e(t);function Ox(...e){return t=>e.some(n=>kx(n,t))}var Ix="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Nx=(e=21)=>{let t="",n=e;for(;n--;)t+=Ix[Math.random()*64|0];return t},Fx=["name","message","stack","code"],nc=class{constructor(e,t){this.payload=e,this.meta=t}_type},Pp=class{constructor(e,t){this.payload=e,this.meta=t}_type},Mx=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Fx)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},kp="External signal was aborted",Tt=(()=>{function e(t,n,r){const i=Go(t+"/fulfilled",(d,p,u,f)=>({payload:d,meta:{...f||{},arg:u,requestId:p,requestStatus:"fulfilled"}})),s=Go(t+"/pending",(d,p,u)=>({payload:void 0,meta:{...u||{},arg:p,requestId:d,requestStatus:"pending"}})),a=Go(t+"/rejected",(d,p,u,f,y)=>({payload:f,error:(r&&r.serializeError||Mx)(d||"Rejected"),meta:{...y||{},arg:u,requestId:p,rejectedWithValue:!!f,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(u,f,y)=>{const x=r?.idGenerator?r.idGenerator(d):Nx(),g=new AbortController;let h,m;function S(b){m=b,g.abort()}p&&(p.aborted?S(kp):p.addEventListener("abort",()=>S(kp),{once:!0}));const C=(async function(){let b;try{let w=r?.condition?.(d,{getState:f,extra:y});if(_x(w)&&(w=await w),w===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const A=new Promise((k,D)=>{h=()=>{D({name:"AbortError",message:m||"Aborted"})},g.signal.addEventListener("abort",h,{once:!0})});u(s(x,d,r?.getPendingMeta?.({requestId:x,arg:d},{getState:f,extra:y}))),b=await Promise.race([A,Promise.resolve(n(d,{dispatch:u,getState:f,extra:y,requestId:x,signal:g.signal,abort:S,rejectWithValue:(k,D)=>new nc(k,D),fulfillWithValue:(k,D)=>new Pp(k,D)})).then(k=>{if(k instanceof nc)throw k;return k instanceof Pp?i(k.payload,x,d,k.meta):i(k,x,d)})])}catch(w){b=w instanceof nc?a(null,x,d,w.payload,w.meta):a(w,x,d)}finally{h&&g.signal.removeEventListener("abort",h)}return r&&!r.dispatchConditionRejection&&a.match(b)&&b.meta.condition||u(b),b})();return Object.assign(C,{abort:S,requestId:x,arg:d,unwrap(){return C.then(Dx)}})}}return Object.assign(l,{pending:s,rejected:a,fulfilled:i,settled:Ox(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Dx(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function _x(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var zx=Symbol.for("rtk-slice-createasyncthunk");function $x(e,t){return`${e}/${t}`}function Bx({creators:e}={}){const t=e?.asyncThunk?.[zx];return function(r){const{name:i,reducerPath:s=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?at(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(jx()):r.reducers)||{},l=Object.keys(a),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(b,v){const w=typeof b=="string"?b:b.type;if(!w)throw new Error(process.env.NODE_ENV==="production"?at(12):"`context.addCase` cannot be called with an empty action type");if(w in d.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?at(13):"`context.addCase` cannot be called with two reducers for the same action type: "+w);return d.sliceCaseReducersByType[w]=v,p},addMatcher(b,v){return d.sliceMatchers.push({matcher:b,reducer:v}),p},exposeAction(b,v){return d.actionCreators[b]=v,p},exposeCaseReducer(b,v){return d.sliceCaseReducersByName[b]=v,p}};l.forEach(b=>{const v=a[b],w={reducerName:b,type:$x(i,b),createNotation:typeof r.reducers=="function"};Vx(v)?Ux(w,v,p,t):Wx(w,v,p)});function u(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?at(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[b={},v=[],w=void 0]=typeof r.extraReducers=="function"?Ap(r.extraReducers):[r.extraReducers],A={...b,...d.sliceCaseReducersByType};return Px(r.initialState,k=>{for(let D in A)k.addCase(D,A[D]);for(let D of d.sliceMatchers)k.addMatcher(D.matcher,D.reducer);for(let D of v)k.addMatcher(D.matcher,D.reducer);w&&k.addDefaultCase(w)})}const f=b=>b,y=new Map,x=new WeakMap;let g;function h(b,v){return g||(g=u()),g(b,v)}function m(){return g||(g=u()),g.getInitialState()}function S(b,v=!1){function w(k){let D=k[b];if(typeof D>"u"){if(v)D=Fs(x,w,m);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?at(15):"selectSlice returned undefined for an uninjected slice reducer")}return D}function A(k=f){const D=Fs(y,v,()=>new WeakMap);return Fs(D,k,()=>{const O={};for(const[B,L]of Object.entries(r.selectors??{}))O[B]=Lx(L,k,()=>Fs(x,k,m),v);return O})}return{reducerPath:b,getSelectors:A,get selectors(){return A(w)},selectSlice:w}}const C={name:i,reducer:h,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:m,...S(s),injectInto(b,{reducerPath:v,...w}={}){const A=v??s;return b.inject({reducerPath:A,reducer:h},w),{...C,...S(A,!0)}}};return C}}function Lx(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"?at(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...a)}return i.unwrapped=e,i}var Op=Bx();function jx(){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 Wx({type:e,reducerName:t,createNotation:n},r,i){let s,a;if("reducer"in r){if(n&&!Hx(r))throw new Error(process.env.NODE_ENV==="production"?at(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?Go(e,a):Go(e))}function Vx(e){return e._reducerDefinitionType==="asyncThunk"}function Hx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Ux({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?at(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,f=i(e,s,u);r.exposeAction(t,f),a&&r.addCase(f.fulfilled,a),l&&r.addCase(f.pending,l),d&&r.addCase(f.rejected,d),p&&r.addMatcher(f.settled,p),r.exposeCaseReducer(t,{fulfilled:a||Ds,pending:l||Ds,rejected:d||Ds,settled:p||Ds})}function Ds(){}function at(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 rc="persist:",Ip="persist/FLUSH",oc="persist/REHYDRATE",Np="persist/PAUSE",Fp="persist/PERSIST",Mp="persist/PURGE",Dp="persist/REGISTER",Rx=-1;function Ko(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ko=function(n){return typeof n}:Ko=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ko(e)}function _p(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 qx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_p(n,!0).forEach(function(r){Yx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_p(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gx(e,t,n,r){var i=r.debug,s=qx({},n);return e&&Ko(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&&Ko(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function Kx(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:rc).concat(e.key),a=e.storage,l;e.serialize===!1?l=function(w){return w}:typeof e.serialize=="function"?l=e.serialize:l=Xx;var d=e.writeFailHandler||null,p={},u={},f=[],y=null,x=null,g=function(w){Object.keys(w).forEach(function(A){S(A)&&p[A]!==w[A]&&f.indexOf(A)===-1&&f.push(A)}),Object.keys(p).forEach(function(A){w[A]===void 0&&S(A)&&f.indexOf(A)===-1&&p[A]!==void 0&&f.push(A)}),y===null&&(y=setInterval(h,i)),p=w};function h(){if(f.length===0){y&&clearInterval(y),y=null;return}var v=f.shift(),w=r.reduce(function(A,k){return k.in(A,v,p)},p[v]);if(w!==void 0)try{u[v]=l(w)}catch(A){console.error("redux-persist/createPersistoid: error serializing state",A)}else delete u[v];f.length===0&&m()}function m(){Object.keys(u).forEach(function(v){p[v]===void 0&&delete u[v]}),x=a.setItem(s,l(u)).catch(C)}function S(v){return!(n&&n.indexOf(v)===-1&&v!=="_persist"||t&&t.indexOf(v)!==-1)}function C(v){d&&d(v),v&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",v)}var b=function(){for(;f.length!==0;)h();return x||Promise.resolve()};return{update:g,flush:b}}function Xx(e){return JSON.stringify(e)}function Jx(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:rc).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=Qx,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,f){return f.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 Qx(e){return JSON.parse(e)}function Zx(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:rc).concat(e.key);return t.removeItem(n,ev)}function ev(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function zp(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 Xn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zp(n,!0).forEach(function(r){tv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nv(e,t){if(e==null)return{};var n=rv(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 rv(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 ov=5e3;function iv(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:Rx;e.debug;var r=e.stateReconciler===void 0?Gx:e.stateReconciler,i=e.getStoredState||Jx,s=e.timeout!==void 0?e.timeout:ov,a=null,l=!1,d=!0,p=function(f){return f._persist.rehydrated&&a&&!d&&a.update(f),f};return function(u,f){var y=u||{},x=y._persist,g=nv(y,["_persist"]),h=g;if(f.type===Fp){var m=!1,S=function(D,O){process.env.NODE_ENV!=="production"&&m&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),D,O),m||(f.rehydrate(e.key,D,O),m=!0)};if(s&&setTimeout(function(){!m&&S(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),d=!1,a||(a=Kx(e)),x)return Xn({},t(h,f),{_persist:x});if(typeof f.rehydrate!="function"||typeof f.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 f.register(e.key),i(e).then(function(k){var D=e.migrate||function(O,B){return Promise.resolve(O)};D(k,n).then(function(O){S(O)},function(O){process.env.NODE_ENV!=="production"&&O&&console.error("redux-persist: migration error",O),S(void 0,O)})},function(k){S(void 0,k)}),Xn({},t(h,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===Mp)return l=!0,f.result(Zx(e)),Xn({},t(h,f),{_persist:x});if(f.type===Ip)return f.result(a&&a.flush()),Xn({},t(h,f),{_persist:x});if(f.type===Np)d=!0;else if(f.type===oc){if(l)return Xn({},h,{_persist:Xn({},x,{rehydrated:!0})});if(f.key===e.key){var C=t(h,f),b=f.payload,v=r!==!1&&b!==void 0?r(b,u,C,e):C,w=Xn({},v,{_persist:Xn({},x,{rehydrated:!0})});return p(w)}}}if(!x)return t(u,f);var A=t(h,f);return A===h?u:p(Xn({},A,{_persist:x}))}}function $p(e){return lv(e)||av(e)||sv()}function sv(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function av(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function lv(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 Bp(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 ic(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bp(n,!0).forEach(function(r){cv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lp={registry:[],bootstrapped:!1},dv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lp,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Dp:return ic({},t,{registry:[].concat($p(t.registry),[n.key])});case oc:var r=t.registry.indexOf(n.key),i=$p(t.registry);return i.splice(r,1),ic({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function uv(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=Ll(dv,Lp,void 0),a=function(u){s.dispatch({type:Dp,key:u})},l=function(u,f,y){var x={type:oc,payload:f,err:y,key:u};e.dispatch(x),s.dispatch(x)},d=ic({},s,{purge:function(){var u=[];return e.dispatch({type:Mp,result:function(y){u.push(y)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Ip,result:function(y){u.push(y)}}),Promise.all(u)},pause:function(){e.dispatch({type:Np})},persist:function(){e.dispatch({type:Fp,register:a,rehydrate:l})}});return d.persist(),d}function jp(e,t){return function(){return e.apply(t,arguments)}}const{toString:pv}=Object.prototype,{getPrototypeOf:sc}=Object,{iterator:_s,toStringTag:Wp}=Symbol,zs=(e=>t=>{const n=pv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xn=e=>(e=e.toLowerCase(),t=>zs(t)===e),$s=e=>t=>typeof t===e,{isArray:Kr}=Array,Xr=$s("undefined");function Xo(e){return e!==null&&!Xr(e)&&e.constructor!==null&&!Xr(e.constructor)&&Ut(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vp=xn("ArrayBuffer");function fv(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vp(e.buffer),t}const hv=$s("string"),Ut=$s("function"),Hp=$s("number"),Jo=e=>e!==null&&typeof e=="object",gv=e=>e===!0||e===!1,Bs=e=>{if(zs(e)!=="object")return!1;const t=sc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Wp in e)&&!(_s in e)},mv=e=>{if(!Jo(e)||Xo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},yv=xn("Date"),bv=xn("File"),xv=xn("Blob"),vv=xn("FileList"),Sv=e=>Jo(e)&&Ut(e.pipe),wv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ut(e.append)&&((t=zs(e))==="formdata"||t==="object"&&Ut(e.toString)&&e.toString()==="[object FormData]"))},Cv=xn("URLSearchParams"),[Ev,Tv,Av,Pv]=["ReadableStream","Request","Response","Headers"].map(xn),kv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Kr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Xo(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 Up(e,t){if(Xo(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 Cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rp=e=>!Xr(e)&&e!==Cr;function ac(){const{caseless:e,skipUndefined:t}=Rp(this)&&this||{},n={},r=(i,s)=>{const a=e&&Up(n,s)||s;Bs(n[a])&&Bs(i)?n[a]=ac(n[a],i):Bs(i)?n[a]=ac({},i):Kr(i)?n[a]=i.slice():(!t||!Xr(i))&&(n[a]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Qo(arguments[i],r);return n}const Ov=(e,t,n,{allOwnKeys:r}={})=>(Qo(t,(i,s)=>{n&&Ut(i)?e[s]=jp(i,n):e[s]=i},{allOwnKeys:r}),e),Iv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nv=(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)},Fv=(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&&sc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Mv=(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},Dv=e=>{if(!e)return null;if(Kr(e))return e;let t=e.length;if(!Hp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_v=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&sc(Uint8Array)),zv=(e,t)=>{const r=(e&&e[_s]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},$v=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Bv=xn("HTMLFormElement"),Lv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),qp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),jv=xn("RegExp"),Yp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qo(n,(i,s)=>{let a;(a=t(i,s,e))!==!1&&(r[s]=a||i)}),Object.defineProperties(e,r)},Wv=e=>{Yp(e,(t,n)=>{if(Ut(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ut(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+"'")})}})},Vv=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Kr(e)?r(e):r(String(e).split(t)),n},Hv=()=>{},Uv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Rv(e){return!!(e&&Ut(e.append)&&e[Wp]==="FormData"&&e[_s])}const qv=e=>{const t=new Array(10),n=(r,i)=>{if(Jo(r)){if(t.indexOf(r)>=0)return;if(Xo(r))return r;if(!("toJSON"in r)){t[i]=r;const s=Kr(r)?[]:{};return Qo(r,(a,l)=>{const d=n(a,i+1);!Xr(d)&&(s[l]=d)}),t[i]=void 0,s}}return r};return n(e,0)},Yv=xn("AsyncFunction"),Gv=e=>e&&(Jo(e)||Ut(e))&&Ut(e.then)&&Ut(e.catch),Gp=((e,t)=>e?setImmediate:t?((n,r)=>(Cr.addEventListener("message",({source:i,data:s})=>{i===Cr&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Cr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ut(Cr.postMessage)),Kv=typeof queueMicrotask<"u"?queueMicrotask.bind(Cr):typeof process<"u"&&process.nextTick||Gp,G={isArray:Kr,isArrayBuffer:Vp,isBuffer:Xo,isFormData:wv,isArrayBufferView:fv,isString:hv,isNumber:Hp,isBoolean:gv,isObject:Jo,isPlainObject:Bs,isEmptyObject:mv,isReadableStream:Ev,isRequest:Tv,isResponse:Av,isHeaders:Pv,isUndefined:Xr,isDate:yv,isFile:bv,isBlob:xv,isRegExp:jv,isFunction:Ut,isStream:Sv,isURLSearchParams:Cv,isTypedArray:_v,isFileList:vv,forEach:Qo,merge:ac,extend:Ov,trim:kv,stripBOM:Iv,inherits:Nv,toFlatObject:Fv,kindOf:zs,kindOfTest:xn,endsWith:Mv,toArray:Dv,forEachEntry:zv,matchAll:$v,isHTMLForm:Bv,hasOwnProperty:qp,hasOwnProp:qp,reduceDescriptors:Yp,freezeMethods:Wv,toObjectSet:Vv,toCamelCase:Lv,noop:Hv,toFiniteNumber:Uv,findKey:Up,global:Cr,isContextDefined:Rp,isSpecCompliantForm:Rv,toJSONObject:qv,isAsyncFn:Yv,isThenable:Gv,setImmediate:Gp,asap:Kv,isIterable:e=>e!=null&&Ut(e[_s])};function _e(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)}G.inherits(_e,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:G.toJSONObject(this.config),code:this.code,status:this.status}}});const Kp=_e.prototype,Xp={};["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=>{Xp[e]={value:e}}),Object.defineProperties(_e,Xp),Object.defineProperty(Kp,"isAxiosError",{value:!0}),_e.from=(e,t,n,r,i,s)=>{const a=Object.create(Kp);G.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 _e.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 Xv=null;function lc(e){return G.isPlainObject(e)||G.isArray(e)}function Jp(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function Qp(e,t,n){return e?e.concat(t).map(function(i,s){return i=Jp(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Jv(e){return G.isArray(e)&&!e.some(lc)}const Qv=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function Ls(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,m){return!G.isUndefined(m[h])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(i))throw new TypeError("visitor must be a function");function p(g){if(g===null)return"";if(G.isDate(g))return g.toISOString();if(G.isBoolean(g))return g.toString();if(!d&&G.isBlob(g))throw new _e("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(g)||G.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,h,m){let S=g;if(g&&!m&&typeof g=="object"){if(G.endsWith(h,"{}"))h=r?h:h.slice(0,-2),g=JSON.stringify(g);else if(G.isArray(g)&&Jv(g)||(G.isFileList(g)||G.endsWith(h,"[]"))&&(S=G.toArray(g)))return h=Jp(h),S.forEach(function(b,v){!(G.isUndefined(b)||b===null)&&t.append(a===!0?Qp([h],v,s):a===null?h:h+"[]",p(b))}),!1}return lc(g)?!0:(t.append(Qp(m,h,s),p(g)),!1)}const f=[],y=Object.assign(Qv,{defaultVisitor:u,convertValue:p,isVisitable:lc});function x(g,h){if(!G.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));f.push(g),G.forEach(g,function(S,C){(!(G.isUndefined(S)||S===null)&&i.call(t,S,G.isString(C)?C.trim():C,h,y))===!0&&x(S,h?h.concat(C):[C])}),f.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Zp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function cc(e,t){this._pairs=[],e&&Ls(e,this,t)}const ef=cc.prototype;ef.append=function(t,n){this._pairs.push([t,n])},ef.toString=function(t){const n=t?function(r){return t.call(this,r,Zp)}:Zp;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Zv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tf(e,t,n){if(!t)return e;const r=n&&n.encode||Zv;G.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=G.isURLSearchParams(t)?t.toString():new cc(t,n).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class nf{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){G.forEach(this.handlers,function(r){r!==null&&t(r)})}}const rf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},e1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:cc,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},dc=typeof window<"u"&&typeof document<"u",uc=typeof navigator=="object"&&navigator||void 0,t1=dc&&(!uc||["ReactNative","NativeScript","NS"].indexOf(uc.product)<0),n1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",r1=dc&&window.location.href||"http://localhost",Nt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dc,hasStandardBrowserEnv:t1,hasStandardBrowserWebWorkerEnv:n1,navigator:uc,origin:r1},Symbol.toStringTag,{value:"Module"})),...e1};function o1(e,t){return Ls(e,new Nt.classes.URLSearchParams,{visitor:function(n,r,i,s){return Nt.isNode&&G.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function i1(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function s1(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 of(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&&G.isArray(i)?i.length:a,d?(G.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!l):((!i[a]||!G.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],s)&&G.isArray(i[a])&&(i[a]=s1(i[a])),!l)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(r,i)=>{t(i1(r),i,n,0)}),n}return null}function a1(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Zo={transitional:rf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=G.isObject(t);if(s&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return i?JSON.stringify(of(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t)||G.isReadableStream(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.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 o1(t,this.formSerializer).toString();if((l=G.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ls(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),a1(t)):t}],transformResponse:[function(t){const n=this.transitional||Zo.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(G.isResponse(t)||G.isReadableStream(t))return t;if(t&&G.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"?_e.from(l,_e.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:Nt.classes.FormData,Blob:Nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{Zo.headers[e]={}});const l1=G.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"]),c1=e=>{const t={};let n,r,i;return e&&e.split(`
20
20
  `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&l1[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},sf=Symbol("internals");function ei(e){return e&&String(e).trim().toLowerCase()}function js(e){return e===!1||e==null?e:G.isArray(e)?e.map(js):String(e)}function d1(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 u1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pc(e,t,n,r,i){if(G.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!G.isString(t)){if(G.isString(r))return t.indexOf(r)!==-1;if(G.isRegExp(r))return r.test(t)}}function p1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function f1(e,t){const n=G.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 Rt=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(l,d,p){const u=ei(d);if(!u)throw new Error("header name must be a non-empty string");const f=G.findKey(i,u);(!f||i[f]===void 0||p===!0||p===void 0&&i[f]!==!1)&&(i[f||d]=js(l))}const a=(l,d)=>G.forEach(l,(p,u)=>s(p,u,d));if(G.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(G.isString(t)&&(t=t.trim())&&!u1(t))a(c1(t),n);else if(G.isObject(t)&&G.isIterable(t)){let l={},d,p;for(const u of t){if(!G.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[p=u[0]]=(d=l[p])?G.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=ei(t),t){const r=G.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return d1(i);if(G.isFunction(n))return n.call(this,i,r);if(G.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ei(t),t){const r=G.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||pc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(a){if(a=ei(a),a){const l=G.findKey(r,a);l&&(!n||pc(r,r[l],l,n))&&(delete r[l],i=!0)}}return G.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||pc(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return G.forEach(this,(i,s)=>{const a=G.findKey(r,s);if(a){n[a]=js(i),delete n[s];return}const l=t?p1(s):String(s).trim();l!==s&&delete n[s],n[l]=js(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return G.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&G.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
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[sf]=this[sf]={accessors:{}}).accessors,i=this.prototype;function s(a){const l=ei(a);r[l]||(f1(i,a),r[l]=!0)}return G.isArray(t)?t.forEach(s):s(t),this}};Rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(Rt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),G.freezeMethods(Rt);function fc(e,t){const n=this||Zo,r=t||n,i=Rt.from(r.headers);let s=r.data;return G.forEach(e,function(l){s=l.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function af(e){return!!(e&&e.__CANCEL__)}function Jr(e,t,n){_e.call(this,e??"canceled",_e.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(Jr,_e,{__CANCEL__:!0});function lf(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new _e("Request failed with status code "+n.status,[_e.ERR_BAD_REQUEST,_e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function h1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function g1(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 f=s,y=0;for(;f!==i;)y+=n[f++],f=f%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),p-a<t)return;const x=u&&p-u;return x?Math.round(y*1e3/x):void 0}}function m1(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(),f=u-n;f>=r?a(p,u):(i=p,s||(s=setTimeout(()=>{s=null,a(i)},r-f)))},()=>i&&a(i)]}const Ws=(e,t,n=3)=>{let r=0;const i=g1(50,250);return m1(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,d=a-r,p=i(d),u=a<=l;r=a;const f={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(f)},n)},cf=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},df=e=>(...t)=>G.asap(()=>e(...t)),y1=Nt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Nt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Nt.origin),Nt.navigator&&/(msie|trident)/i.test(Nt.navigator.userAgent)):()=>!0,b1=Nt.hasStandardBrowserEnv?{write(e,t,n,r,i,s,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];G.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),G.isString(r)&&l.push(`path=${r}`),G.isString(i)&&l.push(`domain=${i}`),s===!0&&l.push("secure"),G.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 x1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function v1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function uf(e,t,n){let r=!x1(t);return e&&(r||n==!1)?v1(e,t):t}const pf=e=>e instanceof Rt?{...e}:e;function Er(e,t){t=t||{};const n={};function r(p,u,f,y){return G.isPlainObject(p)&&G.isPlainObject(u)?G.merge.call({caseless:y},p,u):G.isPlainObject(u)?G.merge({},u):G.isArray(u)?u.slice():u}function i(p,u,f,y){if(G.isUndefined(u)){if(!G.isUndefined(p))return r(void 0,p,f,y)}else return r(p,u,f,y)}function s(p,u){if(!G.isUndefined(u))return r(void 0,u)}function a(p,u){if(G.isUndefined(u)){if(!G.isUndefined(p))return r(void 0,p)}else return r(void 0,u)}function l(p,u,f){if(f in t)return r(p,u);if(f 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,f)=>i(pf(p),pf(u),f,!0)};return G.forEach(Object.keys({...e,...t}),function(u){const f=d[u]||i,y=f(e[u],t[u],u);G.isUndefined(y)&&f!==l||(n[u]=y)}),n}const ff=e=>{const t=Er({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:l}=t;if(t.headers=a=Rt.from(a),t.url=tf(uf(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),G.isFormData(n)){if(Nt.hasStandardBrowserEnv||Nt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(G.isFunction(n.getHeaders)){const d=n.getHeaders(),p=["content-type","content-length"];Object.entries(d).forEach(([u,f])=>{p.includes(u.toLowerCase())&&a.set(u,f)})}}if(Nt.hasStandardBrowserEnv&&(r&&G.isFunction(r)&&(r=r(t)),r||r!==!1&&y1(t.url))){const d=i&&s&&b1.read(s);d&&a.set(i,d)}return t},S1=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=ff(e);let s=i.data;const a=Rt.from(i.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:p}=i,u,f,y,x,g;function h(){x&&x(),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 S(){if(!m)return;const b=Rt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:e,request:m};lf(function(k){n(k),h()},function(k){r(k),h()},w),m=null}"onloadend"in m?m.onloadend=S:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(S)},m.onabort=function(){m&&(r(new _e("Request aborted",_e.ECONNABORTED,e,m)),m=null)},m.onerror=function(v){const w=v&&v.message?v.message:"Network Error",A=new _e(w,_e.ERR_NETWORK,e,m);A.event=v||null,r(A),m=null},m.ontimeout=function(){let v=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||rf;i.timeoutErrorMessage&&(v=i.timeoutErrorMessage),r(new _e(v,w.clarifyTimeoutError?_e.ETIMEDOUT:_e.ECONNABORTED,e,m)),m=null},s===void 0&&a.setContentType(null),"setRequestHeader"in m&&G.forEach(a.toJSON(),function(v,w){m.setRequestHeader(w,v)}),G.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),l&&l!=="json"&&(m.responseType=i.responseType),p&&([y,g]=Ws(p,!0),m.addEventListener("progress",y)),d&&m.upload&&([f,x]=Ws(d),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",x)),(i.cancelToken||i.signal)&&(u=b=>{m&&(r(!b||b.type?new Jr(null,e,m):b),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const C=h1(i.url);if(C&&Nt.protocols.indexOf(C)===-1){r(new _e("Unsupported protocol "+C+":",_e.ERR_BAD_REQUEST,e));return}m.send(s||null)})},w1=(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 _e?u:new Jr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,s(new _e(`timeout ${t} of ms exceeded`,_e.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=()=>G.asap(l),d}},C1=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},E1=async function*(e,t){for await(const n of T1(e))yield*C1(n,t)},T1=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()}},hf=(e,t,n,r)=>{const i=E1(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 f=u.byteLength;if(n){let y=s+=f;n(y)}d.enqueue(new Uint8Array(u))}catch(p){throw l(p),p}},cancel(d){return l(d),i.return()}},{highWaterMark:2})},gf=64*1024,{isFunction:Vs}=G,A1=(({Request:e,Response:t})=>({Request:e,Response:t}))(G.global),{ReadableStream:mf,TextEncoder:yf}=G.global,bf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},P1=e=>{e=G.merge.call({skipUndefined:!0},A1,e);const{fetch:t,Request:n,Response:r}=e,i=t?Vs(t):typeof fetch=="function",s=Vs(n),a=Vs(r);if(!i)return!1;const l=i&&Vs(mf),d=i&&(typeof yf=="function"?(g=>h=>g.encode(h))(new yf):async g=>new Uint8Array(await new n(g).arrayBuffer())),p=s&&l&&bf(()=>{let g=!1;const h=new n(Nt.origin,{body:new mf,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!h}),u=a&&l&&bf(()=>G.isReadableStream(new r("").body)),f={stream:u&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!f[g]&&(f[g]=(h,m)=>{let S=h&&h[g];if(S)return S.call(h);throw new _e(`Response type '${g}' is not supported`,_e.ERR_NOT_SUPPORT,m)})});const y=async g=>{if(g==null)return 0;if(G.isBlob(g))return g.size;if(G.isSpecCompliantForm(g))return(await new n(Nt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(G.isArrayBufferView(g)||G.isArrayBuffer(g))return g.byteLength;if(G.isURLSearchParams(g)&&(g=g+""),G.isString(g))return(await d(g)).byteLength},x=async(g,h)=>{const m=G.toFiniteNumber(g.getContentLength());return m??y(h)};return async g=>{let{url:h,method:m,data:S,signal:C,cancelToken:b,timeout:v,onDownloadProgress:w,onUploadProgress:A,responseType:k,headers:D,withCredentials:O="same-origin",fetchOptions:B}=ff(g),L=t||fetch;k=k?(k+"").toLowerCase():"text";let E=w1([C,b&&b.toAbortSignal()],v),I=null;const $=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let W;try{if(A&&p&&m!=="get"&&m!=="head"&&(W=await x(D,S))!==0){let M=new n(h,{method:"POST",body:S,duplex:"half"}),Y;if(G.isFormData(S)&&(Y=M.headers.get("content-type"))&&D.setContentType(Y),M.body){const[Z,J]=cf(W,Ws(df(A)));S=hf(M.body,gf,Z,J)}}G.isString(O)||(O=O?"include":"omit");const _=s&&"credentials"in n.prototype,z={...B,signal:E,method:m.toUpperCase(),headers:D.normalize().toJSON(),body:S,duplex:"half",credentials:_?O:void 0};I=s&&new n(h,z);let N=await(s?L(I,B):L(h,z));const V=u&&(k==="stream"||k==="response");if(u&&(w||V&&$)){const M={};["status","statusText","headers"].forEach(q=>{M[q]=N[q]});const Y=G.toFiniteNumber(N.headers.get("content-length")),[Z,J]=w&&cf(Y,Ws(df(w),!0))||[];N=new r(hf(N.body,gf,Z,()=>{J&&J(),$&&$()}),M)}k=k||"text";let j=await f[G.findKey(f,k)||"text"](N,g);return!V&&$&&$(),await new Promise((M,Y)=>{lf(M,Y,{data:j,headers:Rt.from(N.headers),status:N.status,statusText:N.statusText,config:g,request:I})})}catch(_){throw $&&$(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new _e("Network Error",_e.ERR_NETWORK,g,I),{cause:_.cause||_}):_e.from(_,_&&_.code,g,I)}}},k1=new Map,xf=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=k1;for(;l--;)d=s[l],p=u.get(d),p===void 0&&u.set(d,p=l?new Map:P1(t)),u=p;return p};xf();const hc={http:Xv,xhr:S1,fetch:{get:xf}};G.forEach(hc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vf=e=>`- ${e}`,O1=e=>G.isFunction(e)||e===null||e===!1;function I1(e,t){e=G.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,!O1(r)&&(i=hc[(l=String(r)).toLowerCase()],i===void 0))throw new _e(`Unknown adapter '${l}'`);if(i&&(G.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(vf).join(`
23
- `):" "+vf(a[0]):"as no adapter specified";throw new _e("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i}const Sf={getAdapter:I1,adapters:hc};function gc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Jr(null,e)}function wf(e){return gc(e),e.headers=Rt.from(e.headers),e.data=fc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Sf.getAdapter(e.adapter||Zo.adapter,e)(e).then(function(r){return gc(e),r.data=fc.call(e,e.transformResponse,r),r.headers=Rt.from(r.headers),r},function(r){return af(r)||(gc(e),r&&r.response&&(r.response.data=fc.call(e,e.transformResponse,r.response),r.response.headers=Rt.from(r.response.headers))),Promise.reject(r)})}const Cf="1.13.2",Us={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Us[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ef={};Us.transitional=function(t,n,r){function i(s,a){return"[Axios v"+Cf+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,l)=>{if(t===!1)throw new _e(i(a," has been removed"+(n?" in "+n:"")),_e.ERR_DEPRECATED);return n&&!Ef[a]&&(Ef[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}},Us.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function N1(e,t,n){if(typeof e!="object")throw new _e("options must be an object",_e.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 _e("option "+s+" must be "+d,_e.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _e("Unknown option "+s,_e.ERR_BAD_OPTION)}}const Hs={assertOptions:N1,validators:Us},Tn=Hs.validators;let Tr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new nf,response:new nf}}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=Er(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Hs.assertOptions(r,{silentJSONParsing:Tn.transitional(Tn.boolean),forcedJSONParsing:Tn.transitional(Tn.boolean),clarifyTimeoutError:Tn.transitional(Tn.boolean)},!1),i!=null&&(G.isFunction(i)?n.paramsSerializer={serialize:i}:Hs.assertOptions(i,{encode:Tn.function,serialize:Tn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Hs.assertOptions(n,{baseUrl:Tn.spelling("baseURL"),withXsrfToken:Tn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&G.merge(s.common,s[n.method]);s&&G.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=Rt.concat(a,s);const l=[];let d=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(d=d&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const p=[];this.interceptors.response.forEach(function(h){p.push(h.fulfilled,h.rejected)});let u,f=0,y;if(!d){const g=[wf.bind(this),void 0];for(g.unshift(...l),g.push(...p),y=g.length,u=Promise.resolve(n);f<y;)u=u.then(g[f++],g[f++]);return u}y=l.length;let x=n;for(;f<y;){const g=l[f++],h=l[f++];try{x=g(x)}catch(m){h.call(this,m);break}}try{u=wf.call(this,x)}catch(g){return Promise.reject(g)}for(f=0,y=p.length;f<y;)u=u.then(p[f++],p[f++]);return u}getUri(t){t=Er(this.defaults,t);const n=uf(t.baseURL,t.url,t.allowAbsoluteUrls);return tf(n,t.params,t.paramsSerializer)}};G.forEach(["delete","get","head","options"],function(t){Tr.prototype[t]=function(n,r){return this.request(Er(r||{},{method:t,url:n,data:(r||{}).data}))}}),G.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,l){return this.request(Er(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Tr.prototype[t]=n(),Tr.prototype[t+"Form"]=n(!0)});let F1=class Ny{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 Jr(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 Ny(function(i){t=i}),cancel:t}}};function M1(e){return function(n){return e.apply(null,n)}}function D1(e){return G.isObject(e)&&e.isAxiosError===!0}const mc={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(mc).forEach(([e,t])=>{mc[t]=e});function Tf(e){const t=new Tr(e),n=jp(Tr.prototype.request,t);return G.extend(n,Tr.prototype,t,{allOwnKeys:!0}),G.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Tf(Er(e,i))},n}const ut=Tf(Zo);ut.Axios=Tr,ut.CanceledError=Jr,ut.CancelToken=F1,ut.isCancel=af,ut.VERSION=Cf,ut.toFormData=Ls,ut.AxiosError=_e,ut.Cancel=ut.CanceledError,ut.all=function(t){return Promise.all(t)},ut.spread=M1,ut.isAxiosError=D1,ut.mergeConfig=Er,ut.AxiosHeaders=Rt,ut.formToJSON=e=>of(G.isHTMLForm(e)?new FormData(e):e),ut.getAdapter=Sf.getAdapter,ut.HttpStatusCode=mc,ut.default=ut;const{Axios:OF,AxiosError:IF,CanceledError:NF,isCancel:FF,CancelToken:MF,VERSION:DF,all:_F,Cancel:zF,isAxiosError:$F,spread:BF,toFormData:LF,AxiosHeaders:jF,HttpStatusCode:WF,formToJSON:VF,getAdapter:UF,mergeConfig:HF}=ut;function Rs(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 _1={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 yc(e,t){function n(i,s,a){if(!(typeof document>"u")){a=Rs({},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,"",Rs({},s,{expires:-1}))},withAttributes:function(i){return yc(this.converter,Rs({},this.attributes,i))},withConverter:function(i){return yc(Rs({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var ar=yc(_1,{path:"/"});const z1={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let Qr="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:Cl&&Cl.tagName.toUpperCase()==="SCRIPT"&&Cl.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&z1?.VITE_API_URL)Qr=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(Qr=process.env.VITE_API_URL)}}catch{}const $1=e=>{Qr=e,pt.defaults.baseURL=Qr},B1=e=>{e?ar.set("token",e,{secure:!0,sameSite:"Strict"}):ar.remove("token")},L1=()=>"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NDE3NSwibmFtZSI6IlN1YmhhbSAiLCJjb21wYW55SWQiOiIxYzQzYzhjMi1jNzg0LTQ0MmUtOTU3NC03YTM4ZTgyODJkMWEiLCJyZWdpb25zIjpbXSwiY2x1c3RlcnMiOltdLCJmb3JtYXRzIjpbXSwic3RvcmVzIjpbeyJpZCI6IjA5NDYwODY4LTgzODgtNGNkNi04Y2QwLTc0OWFhZmEzY2NiMSIsIm5hbWUiOiJIUjA0In1dLCJyb2xlcyI6W3siaWQiOjc2NywibmFtZSI6IlNUT1JFTUFOQUdFUiJ9XSwic2Vzc2lvbklkIjo3ODgxLCJpYXQiOjE3NzQwNjc0MTgsImV4cCI6MTc3NDE1MzgxOH0.7SoQVXiEnjg8KSdfjLLn81AYnlEs6nQRLyEPiR2gytY",pt=ut.create({baseURL:Qr,transformRequest:[function(e,t){const n=L1();return t.Authorization=`Bearer ${n}`,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let bc=!1,xc=null;pt.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response;if(n&&(n.status===401||n.status===402)){const r=ar.get("refreshToken");if(r)try{bc||(bc=!0,xc=ut.post(`${Qr}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${r}`}}));const i=await xc,{token:s,refreshToken:a}=i.data;return ar.set("token",s,{secure:!0,sameSite:"Strict"}),ar.set("refreshToken",a),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${s}`,pt(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(ar.remove("token"),ar.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{bc=!1,xc=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(ar.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const ti=Tt("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await pt.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)}}),qs=Tt("dashboard/fetchProductDashboardMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await pt.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)}}),ni=Tt("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{const n=await pt.get("/auth/verify"),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)}}),qt=Tt("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const n=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await pt.get(n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),ri=Tt("dashboard/fetchStores",async(e={},{rejectWithValue:t})=>{try{return(await pt.get("/store",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch stores";return t(r)}}),An=Tt("dashboard/fetchCategories",async(e={},{rejectWithValue:t})=>{try{return(await pt.get("/category",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch categories";return t(r)}}),Ar=Tt("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await pt.get("/store-inventory",{params:e})).data||{}}catch(n){return t(n.response?.data||n.message)}}),Ys=Tt("dashboard/fetchStoreInventoryForPromo",async(e={},{rejectWithValue:t})=>{try{return(await pt.get("/store-inventory",{params:e})).data||{}}catch(n){return t(n.response?.data||n.message)}}),Gs=Tt("dashboard/createCatalog",async({name:e,slug:t,description:n="",storeCode:r,products:i,categories:s},{rejectWithValue:a})=>{try{const l=Array.isArray(r)?r:[r].filter(Boolean),d=Array.isArray(i)?i:[],p=Array.isArray(s)?s:[],u={name:e,slug:t,description:n||"",storeCode:l};return d.length>0&&(u.products=d),p.length>0&&(u.categories=p),(await pt.post("/catalogues",u)).data}catch(l){const d=l.response?.data?.message||l.message||"Failed to create catalog";return a(d)}}),oi=Tt("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 pt.put(s,a)).data}catch(s){const a=s.response?.data?.message||s.message||"Failed to update catalog";return i(a)}}),Ks=Tt("dashboard/deleteCatalog",async(e,{rejectWithValue:t})=>{try{const n=`/catalogues/${e}`;return await pt.delete(n),e}catch(n){const r=n.response?.data?.message||n.message||"Failed to delete catalog";return t(r)}}),Xs=Tt("dashboard/createOsaRequest",async({storeCodes:e,products:t=[],categories:n=[]},{rejectWithValue:r})=>{try{const i=Array.isArray(e)?e:[e].filter(Boolean),s=Array.isArray(t)?t:[],a=Array.isArray(n)?n:[],l={storeCodes:i};return s.length>0&&(l.products=s),a.length>0&&(l.categories=a),(await pt.post("/osa",l)).data}catch(i){const s=i.response?.data?.message||i.message||"Failed to create OSA request";return r(s)}}),Af=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,productsLoading:!1,categoriesLoading:!1},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},resetStoreInventoryListPagination:e=>{e.pagination.currentPage=1},updateMetric:(e,t)=>{const{key:n,value:r}=t.payload;e.metrics&&(e.metrics[n]=r)}},extraReducers:e=>{e.addCase(ti.pending,t=>{t.loading=!0,t.error=null}).addCase(ti.fulfilled,(t,n)=>{t.loading=!1,t.metrics=n.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(ti.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch dashboard metrics"}),e.addCase(qs.pending,t=>{t.loading=!0}).addCase(qs.fulfilled,(t,n)=>{t.loading=!1,t.productDashboardMetrics=n.payload||{}}).addCase(qs.rejected,t=>{t.loading=!1,t.productDashboardMetrics={}}),e.addCase(qt.pending,t=>{t.loading=!0}).addCase(qt.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(qt.rejected,t=>{t.loading=!1}),e.addCase(ni.pending,t=>{t.loading=!0,t.error=null}),e.addCase(ni.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(ni.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to verify auth"}),e.addCase(An.pending,t=>{t.loading=!0,t.categoriesLoading=!0,t.error=null}).addCase(An.fulfilled,(t,n)=>{t.loading=!1,t.categoriesLoading=!1,t.categoriesFetchSettled=!0,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(An.rejected,(t,n)=>{t.loading=!1,t.categoriesLoading=!1,t.categoriesFetchSettled=!0,t.error=n.payload||"Failed to fetch categories",t.categoryList=[],t.categoryPagination={currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1}}),e.addCase(ri.pending,t=>{t.loading=!0,t.error=null}).addCase(ri.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(ri.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch stores",t.stores=[]}),e.addCase(Ar.pending,t=>{t.loading=!0,t.productsLoading=!0,t.error=null,t.loadingMessage="Fetching Schedules"}).addCase(Ar.fulfilled,(t,n)=>{t.loading=!1,t.productsLoading=!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:[],s=(y,x=0)=>{if(y==null||y==="")return x;const g=Number(y);return Number.isFinite(g)?g:x},a={};i.forEach(y=>{if(!y)return;const x=y.categoryName||"Uncategorized";a[x]||(a[x]=[]);const g=s(y.stock),h=s(y.inShelf??y.inshelf??y.in_shelf),m=g>0?Math.round(h/g*100):0;a[x].push({...y,stock:g,inShelf:h,quantity:h,osa:m})}),t.products=Object.values(a).flat();const l=Object.values(a).flat(),d=Object.keys(a).length,p=l.length;t.homePageCardSummary={...t.homePageCardSummary,totalCategories:d,totalProducts:p},t.productsByCategory=a;const u=r.pagination||{},f=typeof u.totalCount=="number"?u.totalCount:Object.values(a).reduce((y,x)=>y+x.length,0);t.pagination={currentPage:typeof u.currentPage=="number"?u.currentPage:1,limit:typeof u.limit=="number"?u.limit:20,totalCount:f,totalPages:typeof u.totalPages=="number"?u.totalPages:1,hasNextPage:typeof u.hasNextPage=="boolean"?u.hasNextPage:!1}}).addCase(Ar.rejected,(t,n)=>{t.loading=!1,t.productsLoading=!1,t.error=n.payload||"Failed to fetch products",t.loadingMessage=""}).addCase(Ys.fulfilled,()=>{}).addCase(Ys.rejected,()=>{}),e.addCase(Gs.pending,t=>{t.createCatalogLoading=!0,t.createCatalogError=null}).addCase(Gs.fulfilled,t=>{t.createCatalogLoading=!1,t.createCatalogError=null}).addCase(Gs.rejected,(t,n)=>{t.createCatalogLoading=!1,t.createCatalogError=n.payload||"Failed to create catalog"}),e.addCase(oi.pending,t=>{t.updateCatalogLoading=!0,t.updateCatalogError=null}).addCase(oi.fulfilled,t=>{t.updateCatalogLoading=!1,t.updateCatalogError=null}).addCase(oi.rejected,(t,n)=>{t.updateCatalogLoading=!1,t.updateCatalogError=n.payload||"Failed to update catalog"}),e.addCase(Ks.pending,t=>{t.deleteCatalogLoading=!0,t.deleteCatalogError=null}).addCase(Ks.fulfilled,t=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=null}).addCase(Ks.rejected,(t,n)=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=n.payload||"Failed to delete catalog"}),e.addCase(Xs.pending,t=>{t.createOsaRequestLoading=!0,t.createOsaRequestError=null}).addCase(Xs.fulfilled,t=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=null}).addCase(Xs.rejected,(t,n)=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=n.payload||"Failed to create OSA request"})}}),{updateMetric:qF,clearCreateCatalogError:Pf,clearUpdateCatalogError:YF,clearDeleteCatalogError:GF,clearCreateOsaRequestError:j1,resetStoreInventoryListPagination:kf}=Af.actions,W1=Af.reducer,ii=Tt("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,f]=l;if(d=d.toLowerCase(),d!=="ftp"&&d!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const y={tenantId:a,type:d,configs:{host:p,port:Number(u),username:t,password:n,path:f.replace(/^\//,"")},entity_type:""};return(await pt.post("/ftp/sync/test-connection",y)).data}catch(a){const l=a.response?.data?.message||a.message||"Failed to test FTP connection";return s(l)}}),si=Tt("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};return(await pt.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)}}),Zr=Tt("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)}try{const r=await pt.put("/ftp/sync/update-details",n);if(r.status>=200&&r.status<300)return 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)}}),ai=Tt("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const n=await pt.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)}}),li=Tt("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const n=e?{entity_type:e}:{},r=await pt.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)}}),ci=Tt("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");const r=`/integrations/${e}`,i=await pt.patch(r,t);if(i.status>=200&&i.status<300)return 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)}}),rn=Tt("productSettings/fetchSharedCatalogues",async(e,{rejectWithValue:t})=>{try{const n=e&&typeof e=="object"?e:{},r=await pt.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)}}),vc={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},Of=Op({name:"productSettings",initialState:vc,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=vc.syncData}},extraReducers:e=>{e.addCase(ii.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(ii.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")}t.entity_type=i,t.existingMapping=r.existing_mapping||null,r.existing_mapping?.mappings?.length||(t.syncData.mappings=[])}).addCase(ii.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to test FTP connection"}),e.addCase(li.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(li.fulfilled,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(n.payload)?n.payload:[],t.mappingColumnsError=null}).addCase(li.rejected,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=n.payload||"Failed to fetch mapping columns"}),e.addCase(rn.pending,t=>{t.sharedCataloguesLoading=!0,t.sharedCataloguesError=null}).addCase(rn.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(rn.rejected,(t,n)=>{t.sharedCataloguesLoading=!1,t.sharedCataloguesError=n.payload||"Failed to fetch shared catalogues"}),e.addCase(si.pending,t=>{t.loading=!0,t.error=null}).addCase(si.fulfilled,(t,n)=>{t.loading=!1,t.saveResult=n.payload,t.error=null,t.syncData=vc.syncData}).addCase(si.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to save FTP sync configuration"}),e.addCase(Zr.pending,t=>{t.loading=!0,t.error=null}).addCase(Zr.fulfilled,(t,n)=>{t.loading=!1,t.updateDetailsResult=n.payload,t.error=null}).addCase(Zr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to update FTP sync details"}),e.addCase(ai.pending,t=>{t.loading=!0,t.error=null}).addCase(ai.fulfilled,(t,n)=>{t.loading=!1,t.syncNowResult=n.payload,t.error=null}).addCase(ai.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to start sync"}),e.addCase(ci.pending,t=>{t.updateIntegrationByChannelIdLoading=!0,t.updateIntegrationByChannelIdError=null}).addCase(ci.fulfilled,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdResult=n.payload,t.updateIntegrationByChannelIdError=null}).addCase(ci.rejected,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdError=n.payload||"Failed to update integration by channel ID"})}}),{clearError:KF,clearTestConnectionResult:XF,clearSaveResult:V1,clearAll:JF,clearTestConnectionData:QF,clearUpdateDetailsResult:ZF,clearSyncNowResult:e5,setFtpSyncData:Js,clearFtpSyncData:t5,clearMappingColumnsError:n5,clearMappingColumns:r5,clearSharedCataloguesError:o5,clearSharedCatalogues:i5,clearUpdateIntegrationByChannelIdResult:s5}=Of.actions,U1=Of.reducer;var Qs={},Zs={},If;function H1(){if(If)return Zs;If=1,Zs.__esModule=!0,Zs.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 Zs}var Nf;function R1(){if(Nf)return Qs;Nf=1,Qs.__esModule=!0,Qs.default=n;var e=t(H1());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 Qs}var q1=R1();const Y1={key:"auth",storage:typeof window<"u"?$u(q1)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},G1=Yu({dashboard:W1,productSettings:U1}),K1=iv(Y1,G1),Ff=Tx({reducer:K1,middleware:e=>e({serializableCheck:!1})}),X1=uv(Ff),J1=F.createContext(null),Q1=({children:e,apiUrl:t,authToken:n})=>(F.useEffect(()=>{t&&$1(t)},[t]),F.useEffect(()=>{B1(n||null)},[n]),c.jsx(J1.Provider,{value:{apiUrl:t},children:e})),di={black:"#000",white:"#fff"},eo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},to={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},no={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ro={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},oo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},ui={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Z1={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 Pn(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 pi="$$material";function ea(){return ea=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},ea.apply(null,arguments)}function eS(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 tS(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 nS=(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(tS(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=eS(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})(),Ft="-ms-",ta="-moz-",Re="-webkit-",Mf="comm",Sc="rule",wc="decl",rS="@import",Df="@keyframes",oS="@layer",iS=Math.abs,na=String.fromCharCode,sS=Object.assign;function aS(e,t){return Ot(e,0)^45?(((t<<2^Ot(e,0))<<2^Ot(e,1))<<2^Ot(e,2))<<2^Ot(e,3):0}function _f(e){return e.trim()}function lS(e,t){return(e=t.exec(e))?e[0]:e}function qe(e,t,n){return e.replace(t,n)}function Cc(e,t){return e.indexOf(t)}function Ot(e,t){return e.charCodeAt(t)|0}function fi(e,t,n){return e.slice(t,n)}function kn(e){return e.length}function Ec(e){return e.length}function ra(e,t){return t.push(e),e}function cS(e,t){return e.map(t).join("")}var oa=1,io=1,zf=0,Yt=0,St=0,so="";function ia(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:oa,column:io,length:a,return:""}}function hi(e,t){return sS(ia("",null,null,"",null,null,0),e,{length:-e.length},t)}function dS(){return St}function uS(){return St=Yt>0?Ot(so,--Yt):0,io--,St===10&&(io=1,oa--),St}function Zt(){return St=Yt<zf?Ot(so,Yt++):0,io++,St===10&&(io=1,oa++),St}function On(){return Ot(so,Yt)}function sa(){return Yt}function gi(e,t){return fi(so,e,t)}function mi(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 $f(e){return oa=io=1,zf=kn(so=e),Yt=0,[]}function Bf(e){return so="",e}function aa(e){return _f(gi(Yt-1,Tc(e===91?e+2:e===40?e+1:e)))}function pS(e){for(;(St=On())&&St<33;)Zt();return mi(e)>2||mi(St)>3?"":" "}function fS(e,t){for(;--t&&Zt()&&!(St<48||St>102||St>57&&St<65||St>70&&St<97););return gi(e,sa()+(t<6&&On()==32&&Zt()==32))}function Tc(e){for(;Zt();)switch(St){case e:return Yt;case 34:case 39:e!==34&&e!==39&&Tc(St);break;case 40:e===41&&Tc(e);break;case 92:Zt();break}return Yt}function hS(e,t){for(;Zt()&&e+St!==57;)if(e+St===84&&On()===47)break;return"/*"+gi(t,Yt-1)+"*"+na(e===47?e:Zt())}function gS(e){for(;!mi(On());)Zt();return gi(e,Yt)}function mS(e){return Bf(la("",null,null,null,[""],e=$f(e),0,[0],e))}function la(e,t,n,r,i,s,a,l,d){for(var p=0,u=0,f=a,y=0,x=0,g=0,h=1,m=1,S=1,C=0,b="",v=i,w=s,A=r,k=b;m;)switch(g=C,C=Zt()){case 40:if(g!=108&&Ot(k,f-1)==58){Cc(k+=qe(aa(C),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:k+=aa(C);break;case 9:case 10:case 13:case 32:k+=pS(g);break;case 92:k+=fS(sa()-1,7);continue;case 47:switch(On()){case 42:case 47:ra(yS(hS(Zt(),sa()),t,n),d);break;default:k+="/"}break;case 123*h:l[p++]=kn(k)*S;case 125*h:case 59:case 0:switch(C){case 0:case 125:m=0;case 59+u:S==-1&&(k=qe(k,/\f/g,"")),x>0&&kn(k)-f&&ra(x>32?jf(k+";",r,n,f-1):jf(qe(k," ","")+";",r,n,f-2),d);break;case 59:k+=";";default:if(ra(A=Lf(k,t,n,p,u,i,l,b,v=[],w=[],f),s),C===123)if(u===0)la(k,t,A,A,v,s,f,l,w);else switch(y===99&&Ot(k,3)===110?100:y){case 100:case 108:case 109:case 115:la(e,A,A,r&&ra(Lf(e,A,A,0,0,i,l,b,i,v=[],f),w),i,w,f,l,r?v:w);break;default:la(k,A,A,A,[""],w,0,l,w)}}p=u=x=0,h=S=1,b=k="",f=a;break;case 58:f=1+kn(k),x=g;default:if(h<1){if(C==123)--h;else if(C==125&&h++==0&&uS()==125)continue}switch(k+=na(C),C*h){case 38:S=u>0?1:(k+="\f",-1);break;case 44:l[p++]=(kn(k)-1)*S,S=1;break;case 64:On()===45&&(k+=aa(Zt())),y=On(),u=f=kn(b=k+=gS(sa())),C++;break;case 45:g===45&&kn(k)==2&&(h=0)}}return s}function Lf(e,t,n,r,i,s,a,l,d,p,u){for(var f=i-1,y=i===0?s:[""],x=Ec(y),g=0,h=0,m=0;g<r;++g)for(var S=0,C=fi(e,f+1,f=iS(h=a[g])),b=e;S<x;++S)(b=_f(h>0?y[S]+" "+C:qe(C,/&\f/g,y[S])))&&(d[m++]=b);return ia(e,t,n,i===0?Sc:l,d,p,u)}function yS(e,t,n){return ia(e,t,n,Mf,na(dS()),fi(e,2,-2),0)}function jf(e,t,n,r){return ia(e,t,n,wc,fi(e,0,r),fi(e,r+1,-1),r)}function ao(e,t){for(var n="",r=Ec(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function bS(e,t,n,r){switch(e.type){case oS:if(e.children.length)break;case rS:case wc:return e.return=e.return||e.value;case Mf:return"";case Df:return e.return=e.value+"{"+ao(e.children,r)+"}";case Sc:e.value=e.props.join(",")}return kn(n=ao(e.children,r))?e.return=e.value+"{"+n+"}":""}function xS(e){var t=Ec(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 vS(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var SS=function(t,n,r){for(var i=0,s=0;i=s,s=On(),i===38&&s===12&&(n[r]=1),!mi(s);)Zt();return gi(t,Yt)},wS=function(t,n){var r=-1,i=44;do switch(mi(i)){case 0:i===38&&On()===12&&(n[r]=1),t[r]+=SS(Yt-1,n,r);break;case 2:t[r]+=aa(i);break;case 4:if(i===44){t[++r]=On()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=na(i)}while(i=Zt());return t},CS=function(t,n){return Bf(wS($f(t),n))},Vf=new WeakMap,ES=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&&!Vf.get(r))&&!i){Vf.set(t,!0);for(var s=[],a=CS(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]}}},TS=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Uf(e,t){switch(aS(e,t)){case 5103:return Re+"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 Re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Re+e+ta+e+Ft+e+e;case 6828:case 4268:return Re+e+Ft+e+e;case 6165:return Re+e+Ft+"flex-"+e+e;case 5187:return Re+e+qe(e,/(\w+).+(:[^]+)/,Re+"box-$1$2"+Ft+"flex-$1$2")+e;case 5443:return Re+e+Ft+"flex-item-"+qe(e,/flex-|-self/,"")+e;case 4675:return Re+e+Ft+"flex-line-pack"+qe(e,/align-content|flex-|-self/,"")+e;case 5548:return Re+e+Ft+qe(e,"shrink","negative")+e;case 5292:return Re+e+Ft+qe(e,"basis","preferred-size")+e;case 6060:return Re+"box-"+qe(e,"-grow","")+Re+e+Ft+qe(e,"grow","positive")+e;case 4554:return Re+qe(e,/([^-])(transform)/g,"$1"+Re+"$2")+e;case 6187:return qe(qe(qe(e,/(zoom-|grab)/,Re+"$1"),/(image-set)/,Re+"$1"),e,"")+e;case 5495:case 3959:return qe(e,/(image-set\([^]*)/,Re+"$1$`$1");case 4968:return qe(qe(e,/(.+:)(flex-)?(.*)/,Re+"box-pack:$3"+Ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Re+e+e;case 4095:case 3583:case 4068:case 2532:return qe(e,/(.+)-inline(.+)/,Re+"$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(kn(e)-1-t>6)switch(Ot(e,t+1)){case 109:if(Ot(e,t+4)!==45)break;case 102:return qe(e,/(.+:)(.+)-([^]+)/,"$1"+Re+"$2-$3$1"+ta+(Ot(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cc(e,"stretch")?Uf(qe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ot(e,t+1)!==115)break;case 6444:switch(Ot(e,kn(e)-3-(~Cc(e,"!important")&&10))){case 107:return qe(e,":",":"+Re)+e;case 101:return qe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Re+(Ot(e,14)===45?"inline-":"")+"box$3$1"+Re+"$2$3$1"+Ft+"$2box$3")+e}break;case 5936:switch(Ot(e,t+11)){case 114:return Re+e+Ft+qe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Re+e+Ft+qe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Re+e+Ft+qe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Re+e+Ft+e+e}return e}var AS=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case wc:t.return=Uf(t.value,t.length);break;case Df:return ao([hi(t,{value:qe(t.value,"@","@"+Re)})],i);case Sc:if(t.length)return cS(t.props,function(s){switch(lS(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ao([hi(t,{props:[qe(s,/:(read-\w+)/,":"+ta+"$1")]})],i);case"::placeholder":return ao([hi(t,{props:[qe(s,/:(plac\w+)/,":"+Re+"input-$1")]}),hi(t,{props:[qe(s,/:(plac\w+)/,":"+ta+"$1")]}),hi(t,{props:[qe(s,/:(plac\w+)/,Ft+"input-$1")]})],i)}return""})}},PS=[AS],kS=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(h){var m=h.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var i=t.stylisPlugins||PS,s={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var m=h.getAttribute("data-emotion").split(" "),S=1;S<m.length;S++)s[m[S]]=!0;l.push(h)});var d,p=[ES,TS];{var u,f=[bS,vS(function(h){u.insert(h)})],y=xS(p.concat(i,f)),x=function(m){return ao(mS(m),y)};d=function(m,S,C,b){u=C,x(m?m+"{"+S.styles+"}":S.styles),b&&(g.inserted[S.name]=!0)}}var g={key:n,sheet:new nS({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},ca={exports:{}},Ke={};var Hf;function OS(){if(Hf)return Ke;Hf=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,f=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function b(w){if(typeof w=="object"&&w!==null){var A=w.$$typeof;switch(A){case t:switch(w=w.type,w){case d:case p:case r:case s:case i:case f:return w;default:switch(w=w&&w.$$typeof,w){case l:case u:case g:case x:case a:return w;default:return A}}case n:return A}}}function v(w){return b(w)===p}return Ke.AsyncMode=d,Ke.ConcurrentMode=p,Ke.ContextConsumer=l,Ke.ContextProvider=a,Ke.Element=t,Ke.ForwardRef=u,Ke.Fragment=r,Ke.Lazy=g,Ke.Memo=x,Ke.Portal=n,Ke.Profiler=s,Ke.StrictMode=i,Ke.Suspense=f,Ke.isAsyncMode=function(w){return v(w)||b(w)===d},Ke.isConcurrentMode=v,Ke.isContextConsumer=function(w){return b(w)===l},Ke.isContextProvider=function(w){return b(w)===a},Ke.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ke.isForwardRef=function(w){return b(w)===u},Ke.isFragment=function(w){return b(w)===r},Ke.isLazy=function(w){return b(w)===g},Ke.isMemo=function(w){return b(w)===x},Ke.isPortal=function(w){return b(w)===n},Ke.isProfiler=function(w){return b(w)===s},Ke.isStrictMode=function(w){return b(w)===i},Ke.isSuspense=function(w){return b(w)===f},Ke.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===p||w===s||w===i||w===f||w===y||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===x||w.$$typeof===a||w.$$typeof===l||w.$$typeof===u||w.$$typeof===m||w.$$typeof===S||w.$$typeof===C||w.$$typeof===h)},Ke.typeOf=b,Ke}var Xe={};var Rf;function IS(){return Rf||(Rf=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,f=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function b(R){return typeof R=="string"||typeof R=="function"||R===r||R===p||R===s||R===i||R===f||R===y||typeof R=="object"&&R!==null&&(R.$$typeof===g||R.$$typeof===x||R.$$typeof===a||R.$$typeof===l||R.$$typeof===u||R.$$typeof===m||R.$$typeof===S||R.$$typeof===C||R.$$typeof===h)}function v(R){if(typeof R=="object"&&R!==null){var le=R.$$typeof;switch(le){case t:var ae=R.type;switch(ae){case d:case p:case r:case s:case i:case f:return ae;default:var me=ae&&ae.$$typeof;switch(me){case l:case u:case g:case x:case a:return me;default:return le}}case n:return le}}}var w=d,A=p,k=l,D=a,O=t,B=u,L=r,E=g,I=x,$=n,W=s,_=i,z=f,N=!1;function V(R){return N||(N=!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.")),j(R)||v(R)===d}function j(R){return v(R)===p}function M(R){return v(R)===l}function Y(R){return v(R)===a}function Z(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function J(R){return v(R)===u}function q(R){return v(R)===r}function K(R){return v(R)===g}function H(R){return v(R)===x}function oe(R){return v(R)===n}function ne(R){return v(R)===s}function te(R){return v(R)===i}function ie(R){return v(R)===f}Xe.AsyncMode=w,Xe.ConcurrentMode=A,Xe.ContextConsumer=k,Xe.ContextProvider=D,Xe.Element=O,Xe.ForwardRef=B,Xe.Fragment=L,Xe.Lazy=E,Xe.Memo=I,Xe.Portal=$,Xe.Profiler=W,Xe.StrictMode=_,Xe.Suspense=z,Xe.isAsyncMode=V,Xe.isConcurrentMode=j,Xe.isContextConsumer=M,Xe.isContextProvider=Y,Xe.isElement=Z,Xe.isForwardRef=J,Xe.isFragment=q,Xe.isLazy=K,Xe.isMemo=H,Xe.isPortal=oe,Xe.isProfiler=ne,Xe.isStrictMode=te,Xe.isSuspense=ie,Xe.isValidElementType=b,Xe.typeOf=v})()),Xe}var qf;function Ac(){return qf||(qf=1,process.env.NODE_ENV==="production"?ca.exports=OS():ca.exports=IS()),ca.exports}var Pc,Yf;function NS(){if(Yf)return Pc;Yf=1;var e=Ac(),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,f=Object.getPrototypeOf,y=Object.prototype;function x(g,h,m){if(typeof h!="string"){if(y){var S=f(h);S&&S!==y&&x(g,S,m)}var C=d(h);p&&(C=C.concat(p(h)));for(var b=a(g),v=a(h),w=0;w<C.length;++w){var A=C[w];if(!n[A]&&!(m&&m[A])&&!(v&&v[A])&&!(b&&b[A])){var k=u(h,A);try{l(g,A,k)}catch{}}}}return g}return Pc=x,Pc}NS();var FS=!0;function Gf(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var kc=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||FS===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Oc=function(t,n,r){kc(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 MS(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 DS={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},_S=/[A-Z]|^ms/g,zS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Kf=function(t){return t.charCodeAt(1)===45},Xf=function(t){return t!=null&&typeof t!="boolean"},Ic=Wf(function(e){return Kf(e)?e:e.replace(_S,"-$&").toLowerCase()}),Jf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zS,function(r,i,s){return In={name:i,styles:s,next:In},i})}return DS[t]!==1&&!Kf(t)&&typeof n=="number"&&n!==0?n+"px":n};function yi(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 In={name:i.name,styles:i.styles,next:In},i.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)In={name:a.name,styles:a.styles,next:In},a=a.next;var l=s.styles+";";return l}return $S(e,t,n)}case"function":{if(e!==void 0){var d=In,p=n(e);return In=d,yi(e,t,p)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function $S(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=yi(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]+"}":Xf(l)&&(r+=Ic(s)+":"+Jf(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++)Xf(a[d])&&(r+=Ic(s)+":"+Jf(s,a[d])+";");else{var p=yi(e,t,a);switch(s){case"animation":case"animationName":{r+=Ic(s)+":"+p+";";break}default:r+=s+"{"+p+"}"}}}return r}var Qf=/label:\s*([^\s;{]+)\s*(;|$)/g,In;function bi(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="";In=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=yi(n,t,s);else{var a=s;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=yi(n,t,e[l]),r){var d=s;i+=d[l]}Qf.lastIndex=0;for(var p="",u;(u=Qf.exec(i))!==null;)p+="-"+u[1];var f=MS(i)+p;return{name:f,styles:i,next:In}}var BS=function(t){return t()},Zf=T.useInsertionEffect?T.useInsertionEffect:!1,eh=Zf||BS,th=Zf||T.useLayoutEffect,nh=T.createContext(typeof HTMLElement<"u"?kS({key:"css"}):null);nh.Provider;var Nc=function(t){return F.forwardRef(function(n,r){var i=F.useContext(nh);return t(n,i,r)})},da=T.createContext({}),Fc={}.hasOwnProperty,Mc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",LS=function(t,n){var r={};for(var i in n)Fc.call(n,i)&&(r[i]=n[i]);return r[Mc]=t,r},jS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return kc(n,r,i),eh(function(){return Oc(n,r,i)}),null},WS=Nc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Mc],s=[r],a="";typeof e.className=="string"?a=Gf(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var l=bi(s,void 0,T.useContext(da));a+=t.key+"-"+l.name;var d={};for(var p in e)Fc.call(e,p)&&p!=="css"&&p!==Mc&&(d[p]=e[p]);return d.className=a,n&&(d.ref=n),T.createElement(T.Fragment,null,T.createElement(jS,{cache:t,serialized:l,isStringTag:typeof i=="string"}),T.createElement(i,d))}),VS=WS,rh=function(t,n){var r=arguments;if(n==null||!Fc.call(n,"css"))return T.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=VS,s[1]=LS(t,n);for(var a=2;a<i;a++)s[a]=r[a];return T.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(rh||(rh={}));var US=Nc(function(e,t){var n=e.styles,r=bi([n],void 0,T.useContext(da)),i=T.useRef();return th(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]),th(function(){var s=i.current,a=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&Oc(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 lo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bi(t)}function lr(){var e=lo.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 HS=/^((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)-.*))$/,RS=Wf(function(e){return HS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qS=RS,YS=function(t){return t!=="theme"},oh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?qS:YS},ih=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},GS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return kc(n,r,i),eh(function(){return Oc(n,r,i)}),null},KS=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=ih(t,n,r),d=l||oh(i),p=!d("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&f.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{var y=u[0];f.push(y[0]);for(var x=u.length,g=1;g<x;g++)f.push(u[g],y[g])}var h=Nc(function(m,S,C){var b=p&&m.as||i,v="",w=[],A=m;if(m.theme==null){A={};for(var k in m)A[k]=m[k];A.theme=T.useContext(da)}typeof m.className=="string"?v=Gf(S.registered,w,m.className):m.className!=null&&(v=m.className+" ");var D=bi(f.concat(w),S.registered,A);v+=S.key+"-"+D.name,a!==void 0&&(v+=" "+a);var O=p&&l===void 0?oh(b):d,B={};for(var L in m)p&&L==="as"||O(L)&&(B[L]=m[L]);return B.className=v,C&&(B.ref=C),T.createElement(T.Fragment,null,T.createElement(GS,{cache:S,serialized:D,isStringTag:typeof b=="string"}),T.createElement(b,B))});return h.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=f,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+a}}),h.withComponent=function(m,S){var C=e(m,ea({},n,S,{shouldForwardProp:ih(h,S,!0)}));return C.apply(void 0,f)},h}},XS=["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"],Dc=KS.bind(null);XS.forEach(function(e){Dc[e]=Dc(e)});var ua={exports:{}};var _c,sh;function JS(){if(sh)return _c;sh=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 _c=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 f in l)t.call(l,f)&&(d[f]=l[f]);if(e){p=e(l);for(var y=0;y<p.length;y++)n.call(l,p[y])&&(d[p[y]]=l[p[y]])}}return d},_c}var zc,ah;function $c(){if(ah)return zc;ah=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zc=e,zc}var Bc,lh;function ch(){return lh||(lh=1,Bc=Function.call.bind(Object.prototype.hasOwnProperty)),Bc}var Lc,dh;function QS(){if(dh)return Lc;dh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=$c(),n={},r=ch();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 f;try{if(typeof s[u]!="function"){var y=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 y.name="Invariant Violation",y}f=s[u](a,u,d,l,null,t)}catch(g){f=g}if(f&&!(f 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 f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var x=p?p():"";e("Failed "+l+" type: "+f.message+(x??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Lc=i,Lc}var jc,uh;function ZS(){if(uh)return jc;uh=1;var e=Ac(),t=JS(),n=$c(),r=ch(),i=QS(),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 jc=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(j){var M=j&&(p&&j[p]||j[u]);if(typeof M=="function")return M}var y="<<anonymous>>",x={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:C(),arrayOf:b,element:v(),elementType:w(),instanceOf:A,node:B(),objectOf:D,oneOf:k,oneOfType:O,shape:E,exact:I};function g(j,M){return j===M?j!==0||1/j===1/M:j!==j&&M!==M}function h(j,M){this.message=j,this.data=M&&typeof M=="object"?M:{},this.stack=""}h.prototype=Error.prototype;function m(j){if(process.env.NODE_ENV!=="production")var M={},Y=0;function Z(q,K,H,oe,ne,te,ie){if(oe=oe||y,te=te||H,ie!==n){if(d){var R=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 R.name="Invariant Violation",R}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=oe+":"+H;!M[le]&&Y<3&&(s("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+oe+"`. 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."),M[le]=!0,Y++)}}return K[H]==null?q?K[H]===null?new h("The "+ne+" `"+te+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new h("The "+ne+" `"+te+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:j(K,H,oe,ne,te)}var J=Z.bind(null,!1);return J.isRequired=Z.bind(null,!0),J}function S(j){function M(Y,Z,J,q,K,H){var oe=Y[Z],ne=_(oe);if(ne!==j){var te=z(oe);return new h("Invalid "+q+" `"+K+"` of type "+("`"+te+"` supplied to `"+J+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return m(M)}function C(){return m(a)}function b(j){function M(Y,Z,J,q,K){if(typeof j!="function")return new h("Property `"+K+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var H=Y[Z];if(!Array.isArray(H)){var oe=_(H);return new h("Invalid "+q+" `"+K+"` of type "+("`"+oe+"` supplied to `"+J+"`, expected an array."))}for(var ne=0;ne<H.length;ne++){var te=j(H,ne,J,q,K+"["+ne+"]",n);if(te instanceof Error)return te}return null}return m(M)}function v(){function j(M,Y,Z,J,q){var K=M[Y];if(!l(K)){var H=_(K);return new h("Invalid "+J+" `"+q+"` of type "+("`"+H+"` supplied to `"+Z+"`, expected a single ReactElement."))}return null}return m(j)}function w(){function j(M,Y,Z,J,q){var K=M[Y];if(!e.isValidElementType(K)){var H=_(K);return new h("Invalid "+J+" `"+q+"` of type "+("`"+H+"` supplied to `"+Z+"`, expected a single ReactElement type."))}return null}return m(j)}function A(j){function M(Y,Z,J,q,K){if(!(Y[Z]instanceof j)){var H=j.name||y,oe=V(Y[Z]);return new h("Invalid "+q+" `"+K+"` of type "+("`"+oe+"` supplied to `"+J+"`, expected ")+("instance of `"+H+"`."))}return null}return m(M)}function k(j){if(!Array.isArray(j))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 M(Y,Z,J,q,K){for(var H=Y[Z],oe=0;oe<j.length;oe++)if(g(H,j[oe]))return null;var ne=JSON.stringify(j,function(ie,R){var le=z(R);return le==="symbol"?String(R):R});return new h("Invalid "+q+" `"+K+"` of value `"+String(H)+"` "+("supplied to `"+J+"`, expected one of "+ne+"."))}return m(M)}function D(j){function M(Y,Z,J,q,K){if(typeof j!="function")return new h("Property `"+K+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var H=Y[Z],oe=_(H);if(oe!=="object")return new h("Invalid "+q+" `"+K+"` of type "+("`"+oe+"` supplied to `"+J+"`, expected an object."));for(var ne in H)if(r(H,ne)){var te=j(H,ne,J,q,K+"."+ne,n);if(te instanceof Error)return te}return null}return m(M)}function O(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var M=0;M<j.length;M++){var Y=j[M];if(typeof Y!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+N(Y)+" at index "+M+"."),a}function Z(J,q,K,H,oe){for(var ne=[],te=0;te<j.length;te++){var ie=j[te],R=ie(J,q,K,H,oe,n);if(R==null)return null;R.data&&r(R.data,"expectedType")&&ne.push(R.data.expectedType)}var le=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new h("Invalid "+H+" `"+oe+"` supplied to "+("`"+K+"`"+le+"."))}return m(Z)}function B(){function j(M,Y,Z,J,q){return $(M[Y])?null:new h("Invalid "+J+" `"+q+"` supplied to "+("`"+Z+"`, expected a ReactNode."))}return m(j)}function L(j,M,Y,Z,J){return new h((j||"React class")+": "+M+" type `"+Y+"."+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function E(j){function M(Y,Z,J,q,K){var H=Y[Z],oe=_(H);if(oe!=="object")return new h("Invalid "+q+" `"+K+"` of type `"+oe+"` "+("supplied to `"+J+"`, expected `object`."));for(var ne in j){var te=j[ne];if(typeof te!="function")return L(J,q,K,ne,z(te));var ie=te(H,ne,J,q,K+"."+ne,n);if(ie)return ie}return null}return m(M)}function I(j){function M(Y,Z,J,q,K){var H=Y[Z],oe=_(H);if(oe!=="object")return new h("Invalid "+q+" `"+K+"` of type `"+oe+"` "+("supplied to `"+J+"`, expected `object`."));var ne=t({},Y[Z],j);for(var te in ne){var ie=j[te];if(r(j,te)&&typeof ie!="function")return L(J,q,K,te,z(ie));if(!ie)return new h("Invalid "+q+" `"+K+"` key `"+te+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(Y[Z],null," ")+`
25
- Valid keys: `+JSON.stringify(Object.keys(j),null," "));var R=ie(H,te,J,q,K+"."+te,n);if(R)return R}return null}return m(M)}function $(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every($);if(j===null||l(j))return!0;var M=f(j);if(M){var Y=M.call(j),Z;if(M!==j.entries){for(;!(Z=Y.next()).done;)if(!$(Z.value))return!1}else for(;!(Z=Y.next()).done;){var J=Z.value;if(J&&!$(J[1]))return!1}}else return!1;return!0;default:return!1}}function W(j,M){return j==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function _(j){var M=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":W(M,j)?"symbol":M}function z(j){if(typeof j>"u"||j===null)return""+j;var M=_(j);if(M==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return M}function N(j){var M=z(j);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function V(j){return!j.constructor||!j.constructor.name?y:j.constructor.name}return x.checkPropTypes=i,x.resetWarningCache=i.resetWarningCache,x.PropTypes=x,x},jc}var Wc,ph;function ew(){if(ph)return Wc;ph=1;var e=$c();function t(){}function n(){}return n.resetWarningCache=t,Wc=function(){function r(a,l,d,p,u,f){if(f!==e){var y=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 y.name="Invariant Violation",y}}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},Wc}var fh;function tw(){if(fh)return ua.exports;if(fh=1,process.env.NODE_ENV!=="production"){var e=Ac(),t=!0;ua.exports=ZS()(e.isElement,t)}else ua.exports=ew()();return ua.exports}var nw=tw();const o=$u(nw);function rw(e){return e==null||Object.keys(e).length===0}function hh(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(rw(i)?n:i):t;return c.jsx(US,{styles:r})}process.env.NODE_ENV!=="production"&&(hh.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function gh(e,t){const n=Dc(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(`
23
+ `):" "+vf(a[0]):"as no adapter specified";throw new _e("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i}const Sf={getAdapter:I1,adapters:hc};function gc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Jr(null,e)}function wf(e){return gc(e),e.headers=Rt.from(e.headers),e.data=fc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Sf.getAdapter(e.adapter||Zo.adapter,e)(e).then(function(r){return gc(e),r.data=fc.call(e,e.transformResponse,r),r.headers=Rt.from(r.headers),r},function(r){return af(r)||(gc(e),r&&r.response&&(r.response.data=fc.call(e,e.transformResponse,r.response),r.response.headers=Rt.from(r.response.headers))),Promise.reject(r)})}const Cf="1.13.2",Hs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ef={};Hs.transitional=function(t,n,r){function i(s,a){return"[Axios v"+Cf+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,l)=>{if(t===!1)throw new _e(i(a," has been removed"+(n?" in "+n:"")),_e.ERR_DEPRECATED);return n&&!Ef[a]&&(Ef[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}},Hs.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function N1(e,t,n){if(typeof e!="object")throw new _e("options must be an object",_e.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 _e("option "+s+" must be "+d,_e.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _e("Unknown option "+s,_e.ERR_BAD_OPTION)}}const Us={assertOptions:N1,validators:Hs},Tn=Us.validators;let Tr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new nf,response:new nf}}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=Er(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Us.assertOptions(r,{silentJSONParsing:Tn.transitional(Tn.boolean),forcedJSONParsing:Tn.transitional(Tn.boolean),clarifyTimeoutError:Tn.transitional(Tn.boolean)},!1),i!=null&&(G.isFunction(i)?n.paramsSerializer={serialize:i}:Us.assertOptions(i,{encode:Tn.function,serialize:Tn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Us.assertOptions(n,{baseUrl:Tn.spelling("baseURL"),withXsrfToken:Tn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&G.merge(s.common,s[n.method]);s&&G.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=Rt.concat(a,s);const l=[];let d=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(d=d&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const p=[];this.interceptors.response.forEach(function(h){p.push(h.fulfilled,h.rejected)});let u,f=0,y;if(!d){const g=[wf.bind(this),void 0];for(g.unshift(...l),g.push(...p),y=g.length,u=Promise.resolve(n);f<y;)u=u.then(g[f++],g[f++]);return u}y=l.length;let x=n;for(;f<y;){const g=l[f++],h=l[f++];try{x=g(x)}catch(m){h.call(this,m);break}}try{u=wf.call(this,x)}catch(g){return Promise.reject(g)}for(f=0,y=p.length;f<y;)u=u.then(p[f++],p[f++]);return u}getUri(t){t=Er(this.defaults,t);const n=uf(t.baseURL,t.url,t.allowAbsoluteUrls);return tf(n,t.params,t.paramsSerializer)}};G.forEach(["delete","get","head","options"],function(t){Tr.prototype[t]=function(n,r){return this.request(Er(r||{},{method:t,url:n,data:(r||{}).data}))}}),G.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,l){return this.request(Er(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Tr.prototype[t]=n(),Tr.prototype[t+"Form"]=n(!0)});let F1=class Ny{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 Jr(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 Ny(function(i){t=i}),cancel:t}}};function M1(e){return function(n){return e.apply(null,n)}}function D1(e){return G.isObject(e)&&e.isAxiosError===!0}const mc={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(mc).forEach(([e,t])=>{mc[t]=e});function Tf(e){const t=new Tr(e),n=jp(Tr.prototype.request,t);return G.extend(n,Tr.prototype,t,{allOwnKeys:!0}),G.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Tf(Er(e,i))},n}const ut=Tf(Zo);ut.Axios=Tr,ut.CanceledError=Jr,ut.CancelToken=F1,ut.isCancel=af,ut.VERSION=Cf,ut.toFormData=Ls,ut.AxiosError=_e,ut.Cancel=ut.CanceledError,ut.all=function(t){return Promise.all(t)},ut.spread=M1,ut.isAxiosError=D1,ut.mergeConfig=Er,ut.AxiosHeaders=Rt,ut.formToJSON=e=>of(G.isHTMLForm(e)?new FormData(e):e),ut.getAdapter=Sf.getAdapter,ut.HttpStatusCode=mc,ut.default=ut;const{Axios:OF,AxiosError:IF,CanceledError:NF,isCancel:FF,CancelToken:MF,VERSION:DF,all:_F,Cancel:zF,isAxiosError:$F,spread:BF,toFormData:LF,AxiosHeaders:jF,HttpStatusCode:WF,formToJSON:VF,getAdapter:HF,mergeConfig:UF}=ut;function Rs(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 _1={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 yc(e,t){function n(i,s,a){if(!(typeof document>"u")){a=Rs({},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,"",Rs({},s,{expires:-1}))},withAttributes:function(i){return yc(this.converter,Rs({},this.attributes,i))},withConverter:function(i){return yc(Rs({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Jn=yc(_1,{path:"/"});const z1={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let Qr="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:Cl&&Cl.tagName.toUpperCase()==="SCRIPT"&&Cl.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&z1?.VITE_API_URL)Qr=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(Qr=process.env.VITE_API_URL)}}catch{}const $1=e=>{Qr=e,pt.defaults.baseURL=Qr},B1=e=>{e?Jn.set("token",e,{secure:!0,sameSite:"Strict"}):Jn.remove("token")},L1=()=>Jn.get("token")||null,pt=ut.create({baseURL:Qr,transformRequest:[function(e,t){const n=L1();return n?t.Authorization=`Bearer ${n}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let bc=!1,xc=null;pt.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response;if(n&&(n.status===401||n.status===402)){const r=Jn.get("refreshToken");if(r)try{bc||(bc=!0,xc=ut.post(`${Qr}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${r}`}}));const i=await xc,{token:s,refreshToken:a}=i.data;return Jn.set("token",s,{secure:!0,sameSite:"Strict"}),Jn.set("refreshToken",a),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${s}`,pt(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(Jn.remove("token"),Jn.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{bc=!1,xc=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(Jn.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const ti=Tt("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await pt.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)}}),qs=Tt("dashboard/fetchProductDashboardMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await pt.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)}}),ni=Tt("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{const n=await pt.get("/auth/verify"),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)}}),qt=Tt("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const n=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await pt.get(n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),ri=Tt("dashboard/fetchStores",async(e={},{rejectWithValue:t})=>{try{return(await pt.get("/store",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch stores";return t(r)}}),An=Tt("dashboard/fetchCategories",async(e={},{rejectWithValue:t})=>{try{return(await pt.get("/category",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch categories";return t(r)}}),Ar=Tt("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await pt.get("/store-inventory",{params:e})).data||{}}catch(n){return t(n.response?.data||n.message)}}),Ys=Tt("dashboard/fetchStoreInventoryForPromo",async(e={},{rejectWithValue:t})=>{try{return(await pt.get("/store-inventory",{params:e})).data||{}}catch(n){return t(n.response?.data||n.message)}}),Gs=Tt("dashboard/createCatalog",async({name:e,slug:t,description:n="",storeCode:r,products:i,categories:s},{rejectWithValue:a})=>{try{const l=Array.isArray(r)?r:[r].filter(Boolean),d=Array.isArray(i)?i:[],p=Array.isArray(s)?s:[],u={name:e,slug:t,description:n||"",storeCode:l};return d.length>0&&(u.products=d),p.length>0&&(u.categories=p),(await pt.post("/catalogues",u)).data}catch(l){const d=l.response?.data?.message||l.message||"Failed to create catalog";return a(d)}}),oi=Tt("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 pt.put(s,a)).data}catch(s){const a=s.response?.data?.message||s.message||"Failed to update catalog";return i(a)}}),Ks=Tt("dashboard/deleteCatalog",async(e,{rejectWithValue:t})=>{try{const n=`/catalogues/${e}`;return await pt.delete(n),e}catch(n){const r=n.response?.data?.message||n.message||"Failed to delete catalog";return t(r)}}),Xs=Tt("dashboard/createOsaRequest",async({storeCodes:e,products:t=[],categories:n=[]},{rejectWithValue:r})=>{try{const i=Array.isArray(e)?e:[e].filter(Boolean),s=Array.isArray(t)?t:[],a=Array.isArray(n)?n:[],l={storeCodes:i};return s.length>0&&(l.products=s),a.length>0&&(l.categories=a),(await pt.post("/osa",l)).data}catch(i){const s=i.response?.data?.message||i.message||"Failed to create OSA request";return r(s)}}),Af=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,productsLoading:!1,categoriesLoading:!1},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},resetStoreInventoryListPagination:e=>{e.pagination.currentPage=1},updateMetric:(e,t)=>{const{key:n,value:r}=t.payload;e.metrics&&(e.metrics[n]=r)}},extraReducers:e=>{e.addCase(ti.pending,t=>{t.loading=!0,t.error=null}).addCase(ti.fulfilled,(t,n)=>{t.loading=!1,t.metrics=n.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(ti.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch dashboard metrics"}),e.addCase(qs.pending,t=>{t.loading=!0}).addCase(qs.fulfilled,(t,n)=>{t.loading=!1,t.productDashboardMetrics=n.payload||{}}).addCase(qs.rejected,t=>{t.loading=!1,t.productDashboardMetrics={}}),e.addCase(qt.pending,t=>{t.loading=!0}).addCase(qt.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(qt.rejected,t=>{t.loading=!1}),e.addCase(ni.pending,t=>{t.loading=!0,t.error=null}),e.addCase(ni.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(ni.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to verify auth"}),e.addCase(An.pending,t=>{t.loading=!0,t.categoriesLoading=!0,t.error=null}).addCase(An.fulfilled,(t,n)=>{t.loading=!1,t.categoriesLoading=!1,t.categoriesFetchSettled=!0,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(An.rejected,(t,n)=>{t.loading=!1,t.categoriesLoading=!1,t.categoriesFetchSettled=!0,t.error=n.payload||"Failed to fetch categories",t.categoryList=[],t.categoryPagination={currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1}}),e.addCase(ri.pending,t=>{t.loading=!0,t.error=null}).addCase(ri.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(ri.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch stores",t.stores=[]}),e.addCase(Ar.pending,t=>{t.loading=!0,t.productsLoading=!0,t.error=null,t.loadingMessage="Fetching Schedules"}).addCase(Ar.fulfilled,(t,n)=>{t.loading=!1,t.productsLoading=!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:[],s=(y,x=0)=>{if(y==null||y==="")return x;const g=Number(y);return Number.isFinite(g)?g:x},a={};i.forEach(y=>{if(!y)return;const x=y.categoryName||"Uncategorized";a[x]||(a[x]=[]);const g=s(y.stock),h=s(y.inShelf??y.inshelf??y.in_shelf),m=g>0?Math.round(h/g*100):0;a[x].push({...y,stock:g,inShelf:h,quantity:h,osa:m})}),t.products=Object.values(a).flat();const l=Object.values(a).flat(),d=Object.keys(a).length,p=l.length;t.homePageCardSummary={...t.homePageCardSummary,totalCategories:d,totalProducts:p},t.productsByCategory=a;const u=r.pagination||{},f=typeof u.totalCount=="number"?u.totalCount:Object.values(a).reduce((y,x)=>y+x.length,0);t.pagination={currentPage:typeof u.currentPage=="number"?u.currentPage:1,limit:typeof u.limit=="number"?u.limit:20,totalCount:f,totalPages:typeof u.totalPages=="number"?u.totalPages:1,hasNextPage:typeof u.hasNextPage=="boolean"?u.hasNextPage:!1}}).addCase(Ar.rejected,(t,n)=>{t.loading=!1,t.productsLoading=!1,t.error=n.payload||"Failed to fetch products",t.loadingMessage=""}).addCase(Ys.fulfilled,()=>{}).addCase(Ys.rejected,()=>{}),e.addCase(Gs.pending,t=>{t.createCatalogLoading=!0,t.createCatalogError=null}).addCase(Gs.fulfilled,t=>{t.createCatalogLoading=!1,t.createCatalogError=null}).addCase(Gs.rejected,(t,n)=>{t.createCatalogLoading=!1,t.createCatalogError=n.payload||"Failed to create catalog"}),e.addCase(oi.pending,t=>{t.updateCatalogLoading=!0,t.updateCatalogError=null}).addCase(oi.fulfilled,t=>{t.updateCatalogLoading=!1,t.updateCatalogError=null}).addCase(oi.rejected,(t,n)=>{t.updateCatalogLoading=!1,t.updateCatalogError=n.payload||"Failed to update catalog"}),e.addCase(Ks.pending,t=>{t.deleteCatalogLoading=!0,t.deleteCatalogError=null}).addCase(Ks.fulfilled,t=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=null}).addCase(Ks.rejected,(t,n)=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=n.payload||"Failed to delete catalog"}),e.addCase(Xs.pending,t=>{t.createOsaRequestLoading=!0,t.createOsaRequestError=null}).addCase(Xs.fulfilled,t=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=null}).addCase(Xs.rejected,(t,n)=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=n.payload||"Failed to create OSA request"})}}),{updateMetric:qF,clearCreateCatalogError:Pf,clearUpdateCatalogError:YF,clearDeleteCatalogError:GF,clearCreateOsaRequestError:j1,resetStoreInventoryListPagination:kf}=Af.actions,W1=Af.reducer,ii=Tt("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,f]=l;if(d=d.toLowerCase(),d!=="ftp"&&d!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const y={tenantId:a,type:d,configs:{host:p,port:Number(u),username:t,password:n,path:f.replace(/^\//,"")},entity_type:""};return(await pt.post("/ftp/sync/test-connection",y)).data}catch(a){const l=a.response?.data?.message||a.message||"Failed to test FTP connection";return s(l)}}),si=Tt("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};return(await pt.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)}}),Zr=Tt("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)}try{const r=await pt.put("/ftp/sync/update-details",n);if(r.status>=200&&r.status<300)return 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)}}),ai=Tt("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const n=await pt.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)}}),li=Tt("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const n=e?{entity_type:e}:{},r=await pt.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)}}),ci=Tt("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");const r=`/integrations/${e}`,i=await pt.patch(r,t);if(i.status>=200&&i.status<300)return 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)}}),rn=Tt("productSettings/fetchSharedCatalogues",async(e,{rejectWithValue:t})=>{try{const n=e&&typeof e=="object"?e:{},r=await pt.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)}}),vc={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},Of=Op({name:"productSettings",initialState:vc,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=vc.syncData}},extraReducers:e=>{e.addCase(ii.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(ii.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")}t.entity_type=i,t.existingMapping=r.existing_mapping||null,r.existing_mapping?.mappings?.length||(t.syncData.mappings=[])}).addCase(ii.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to test FTP connection"}),e.addCase(li.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(li.fulfilled,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(n.payload)?n.payload:[],t.mappingColumnsError=null}).addCase(li.rejected,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=n.payload||"Failed to fetch mapping columns"}),e.addCase(rn.pending,t=>{t.sharedCataloguesLoading=!0,t.sharedCataloguesError=null}).addCase(rn.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(rn.rejected,(t,n)=>{t.sharedCataloguesLoading=!1,t.sharedCataloguesError=n.payload||"Failed to fetch shared catalogues"}),e.addCase(si.pending,t=>{t.loading=!0,t.error=null}).addCase(si.fulfilled,(t,n)=>{t.loading=!1,t.saveResult=n.payload,t.error=null,t.syncData=vc.syncData}).addCase(si.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to save FTP sync configuration"}),e.addCase(Zr.pending,t=>{t.loading=!0,t.error=null}).addCase(Zr.fulfilled,(t,n)=>{t.loading=!1,t.updateDetailsResult=n.payload,t.error=null}).addCase(Zr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to update FTP sync details"}),e.addCase(ai.pending,t=>{t.loading=!0,t.error=null}).addCase(ai.fulfilled,(t,n)=>{t.loading=!1,t.syncNowResult=n.payload,t.error=null}).addCase(ai.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to start sync"}),e.addCase(ci.pending,t=>{t.updateIntegrationByChannelIdLoading=!0,t.updateIntegrationByChannelIdError=null}).addCase(ci.fulfilled,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdResult=n.payload,t.updateIntegrationByChannelIdError=null}).addCase(ci.rejected,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdError=n.payload||"Failed to update integration by channel ID"})}}),{clearError:KF,clearTestConnectionResult:XF,clearSaveResult:V1,clearAll:JF,clearTestConnectionData:QF,clearUpdateDetailsResult:ZF,clearSyncNowResult:e5,setFtpSyncData:Js,clearFtpSyncData:t5,clearMappingColumnsError:n5,clearMappingColumns:r5,clearSharedCataloguesError:o5,clearSharedCatalogues:i5,clearUpdateIntegrationByChannelIdResult:s5}=Of.actions,H1=Of.reducer;var Qs={},Zs={},If;function U1(){if(If)return Zs;If=1,Zs.__esModule=!0,Zs.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 Zs}var Nf;function R1(){if(Nf)return Qs;Nf=1,Qs.__esModule=!0,Qs.default=n;var e=t(U1());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 Qs}var q1=R1();const Y1={key:"auth",storage:typeof window<"u"?$u(q1)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},G1=Yu({dashboard:W1,productSettings:H1}),K1=iv(Y1,G1),Ff=Tx({reducer:K1,middleware:e=>e({serializableCheck:!1})}),X1=uv(Ff),J1=F.createContext(null),Q1=({children:e,apiUrl:t,authToken:n})=>(F.useEffect(()=>{t&&$1(t)},[t]),F.useEffect(()=>{B1(n||null)},[n]),c.jsx(J1.Provider,{value:{apiUrl:t},children:e})),di={black:"#000",white:"#fff"},eo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},to={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},no={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ro={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},oo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},ui={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Z1={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 Pn(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 pi="$$material";function ea(){return ea=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},ea.apply(null,arguments)}function eS(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 tS(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 nS=(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(tS(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=eS(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})(),Ft="-ms-",ta="-moz-",Re="-webkit-",Mf="comm",Sc="rule",wc="decl",rS="@import",Df="@keyframes",oS="@layer",iS=Math.abs,na=String.fromCharCode,sS=Object.assign;function aS(e,t){return Ot(e,0)^45?(((t<<2^Ot(e,0))<<2^Ot(e,1))<<2^Ot(e,2))<<2^Ot(e,3):0}function _f(e){return e.trim()}function lS(e,t){return(e=t.exec(e))?e[0]:e}function qe(e,t,n){return e.replace(t,n)}function Cc(e,t){return e.indexOf(t)}function Ot(e,t){return e.charCodeAt(t)|0}function fi(e,t,n){return e.slice(t,n)}function kn(e){return e.length}function Ec(e){return e.length}function ra(e,t){return t.push(e),e}function cS(e,t){return e.map(t).join("")}var oa=1,io=1,zf=0,Yt=0,St=0,so="";function ia(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:oa,column:io,length:a,return:""}}function hi(e,t){return sS(ia("",null,null,"",null,null,0),e,{length:-e.length},t)}function dS(){return St}function uS(){return St=Yt>0?Ot(so,--Yt):0,io--,St===10&&(io=1,oa--),St}function Zt(){return St=Yt<zf?Ot(so,Yt++):0,io++,St===10&&(io=1,oa++),St}function On(){return Ot(so,Yt)}function sa(){return Yt}function gi(e,t){return fi(so,e,t)}function mi(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 $f(e){return oa=io=1,zf=kn(so=e),Yt=0,[]}function Bf(e){return so="",e}function aa(e){return _f(gi(Yt-1,Tc(e===91?e+2:e===40?e+1:e)))}function pS(e){for(;(St=On())&&St<33;)Zt();return mi(e)>2||mi(St)>3?"":" "}function fS(e,t){for(;--t&&Zt()&&!(St<48||St>102||St>57&&St<65||St>70&&St<97););return gi(e,sa()+(t<6&&On()==32&&Zt()==32))}function Tc(e){for(;Zt();)switch(St){case e:return Yt;case 34:case 39:e!==34&&e!==39&&Tc(St);break;case 40:e===41&&Tc(e);break;case 92:Zt();break}return Yt}function hS(e,t){for(;Zt()&&e+St!==57;)if(e+St===84&&On()===47)break;return"/*"+gi(t,Yt-1)+"*"+na(e===47?e:Zt())}function gS(e){for(;!mi(On());)Zt();return gi(e,Yt)}function mS(e){return Bf(la("",null,null,null,[""],e=$f(e),0,[0],e))}function la(e,t,n,r,i,s,a,l,d){for(var p=0,u=0,f=a,y=0,x=0,g=0,h=1,m=1,S=1,C=0,b="",v=i,w=s,A=r,k=b;m;)switch(g=C,C=Zt()){case 40:if(g!=108&&Ot(k,f-1)==58){Cc(k+=qe(aa(C),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:k+=aa(C);break;case 9:case 10:case 13:case 32:k+=pS(g);break;case 92:k+=fS(sa()-1,7);continue;case 47:switch(On()){case 42:case 47:ra(yS(hS(Zt(),sa()),t,n),d);break;default:k+="/"}break;case 123*h:l[p++]=kn(k)*S;case 125*h:case 59:case 0:switch(C){case 0:case 125:m=0;case 59+u:S==-1&&(k=qe(k,/\f/g,"")),x>0&&kn(k)-f&&ra(x>32?jf(k+";",r,n,f-1):jf(qe(k," ","")+";",r,n,f-2),d);break;case 59:k+=";";default:if(ra(A=Lf(k,t,n,p,u,i,l,b,v=[],w=[],f),s),C===123)if(u===0)la(k,t,A,A,v,s,f,l,w);else switch(y===99&&Ot(k,3)===110?100:y){case 100:case 108:case 109:case 115:la(e,A,A,r&&ra(Lf(e,A,A,0,0,i,l,b,i,v=[],f),w),i,w,f,l,r?v:w);break;default:la(k,A,A,A,[""],w,0,l,w)}}p=u=x=0,h=S=1,b=k="",f=a;break;case 58:f=1+kn(k),x=g;default:if(h<1){if(C==123)--h;else if(C==125&&h++==0&&uS()==125)continue}switch(k+=na(C),C*h){case 38:S=u>0?1:(k+="\f",-1);break;case 44:l[p++]=(kn(k)-1)*S,S=1;break;case 64:On()===45&&(k+=aa(Zt())),y=On(),u=f=kn(b=k+=gS(sa())),C++;break;case 45:g===45&&kn(k)==2&&(h=0)}}return s}function Lf(e,t,n,r,i,s,a,l,d,p,u){for(var f=i-1,y=i===0?s:[""],x=Ec(y),g=0,h=0,m=0;g<r;++g)for(var S=0,C=fi(e,f+1,f=iS(h=a[g])),b=e;S<x;++S)(b=_f(h>0?y[S]+" "+C:qe(C,/&\f/g,y[S])))&&(d[m++]=b);return ia(e,t,n,i===0?Sc:l,d,p,u)}function yS(e,t,n){return ia(e,t,n,Mf,na(dS()),fi(e,2,-2),0)}function jf(e,t,n,r){return ia(e,t,n,wc,fi(e,0,r),fi(e,r+1,-1),r)}function ao(e,t){for(var n="",r=Ec(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function bS(e,t,n,r){switch(e.type){case oS:if(e.children.length)break;case rS:case wc:return e.return=e.return||e.value;case Mf:return"";case Df:return e.return=e.value+"{"+ao(e.children,r)+"}";case Sc:e.value=e.props.join(",")}return kn(n=ao(e.children,r))?e.return=e.value+"{"+n+"}":""}function xS(e){var t=Ec(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 vS(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var SS=function(t,n,r){for(var i=0,s=0;i=s,s=On(),i===38&&s===12&&(n[r]=1),!mi(s);)Zt();return gi(t,Yt)},wS=function(t,n){var r=-1,i=44;do switch(mi(i)){case 0:i===38&&On()===12&&(n[r]=1),t[r]+=SS(Yt-1,n,r);break;case 2:t[r]+=aa(i);break;case 4:if(i===44){t[++r]=On()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=na(i)}while(i=Zt());return t},CS=function(t,n){return Bf(wS($f(t),n))},Vf=new WeakMap,ES=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&&!Vf.get(r))&&!i){Vf.set(t,!0);for(var s=[],a=CS(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]}}},TS=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Hf(e,t){switch(aS(e,t)){case 5103:return Re+"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 Re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Re+e+ta+e+Ft+e+e;case 6828:case 4268:return Re+e+Ft+e+e;case 6165:return Re+e+Ft+"flex-"+e+e;case 5187:return Re+e+qe(e,/(\w+).+(:[^]+)/,Re+"box-$1$2"+Ft+"flex-$1$2")+e;case 5443:return Re+e+Ft+"flex-item-"+qe(e,/flex-|-self/,"")+e;case 4675:return Re+e+Ft+"flex-line-pack"+qe(e,/align-content|flex-|-self/,"")+e;case 5548:return Re+e+Ft+qe(e,"shrink","negative")+e;case 5292:return Re+e+Ft+qe(e,"basis","preferred-size")+e;case 6060:return Re+"box-"+qe(e,"-grow","")+Re+e+Ft+qe(e,"grow","positive")+e;case 4554:return Re+qe(e,/([^-])(transform)/g,"$1"+Re+"$2")+e;case 6187:return qe(qe(qe(e,/(zoom-|grab)/,Re+"$1"),/(image-set)/,Re+"$1"),e,"")+e;case 5495:case 3959:return qe(e,/(image-set\([^]*)/,Re+"$1$`$1");case 4968:return qe(qe(e,/(.+:)(flex-)?(.*)/,Re+"box-pack:$3"+Ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Re+e+e;case 4095:case 3583:case 4068:case 2532:return qe(e,/(.+)-inline(.+)/,Re+"$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(kn(e)-1-t>6)switch(Ot(e,t+1)){case 109:if(Ot(e,t+4)!==45)break;case 102:return qe(e,/(.+:)(.+)-([^]+)/,"$1"+Re+"$2-$3$1"+ta+(Ot(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cc(e,"stretch")?Hf(qe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ot(e,t+1)!==115)break;case 6444:switch(Ot(e,kn(e)-3-(~Cc(e,"!important")&&10))){case 107:return qe(e,":",":"+Re)+e;case 101:return qe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Re+(Ot(e,14)===45?"inline-":"")+"box$3$1"+Re+"$2$3$1"+Ft+"$2box$3")+e}break;case 5936:switch(Ot(e,t+11)){case 114:return Re+e+Ft+qe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Re+e+Ft+qe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Re+e+Ft+qe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Re+e+Ft+e+e}return e}var AS=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case wc:t.return=Hf(t.value,t.length);break;case Df:return ao([hi(t,{value:qe(t.value,"@","@"+Re)})],i);case Sc:if(t.length)return cS(t.props,function(s){switch(lS(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ao([hi(t,{props:[qe(s,/:(read-\w+)/,":"+ta+"$1")]})],i);case"::placeholder":return ao([hi(t,{props:[qe(s,/:(plac\w+)/,":"+Re+"input-$1")]}),hi(t,{props:[qe(s,/:(plac\w+)/,":"+ta+"$1")]}),hi(t,{props:[qe(s,/:(plac\w+)/,Ft+"input-$1")]})],i)}return""})}},PS=[AS],kS=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(h){var m=h.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var i=t.stylisPlugins||PS,s={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var m=h.getAttribute("data-emotion").split(" "),S=1;S<m.length;S++)s[m[S]]=!0;l.push(h)});var d,p=[ES,TS];{var u,f=[bS,vS(function(h){u.insert(h)})],y=xS(p.concat(i,f)),x=function(m){return ao(mS(m),y)};d=function(m,S,C,b){u=C,x(m?m+"{"+S.styles+"}":S.styles),b&&(g.inserted[S.name]=!0)}}var g={key:n,sheet:new nS({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},ca={exports:{}},Ke={};var Uf;function OS(){if(Uf)return Ke;Uf=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,f=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function b(w){if(typeof w=="object"&&w!==null){var A=w.$$typeof;switch(A){case t:switch(w=w.type,w){case d:case p:case r:case s:case i:case f:return w;default:switch(w=w&&w.$$typeof,w){case l:case u:case g:case x:case a:return w;default:return A}}case n:return A}}}function v(w){return b(w)===p}return Ke.AsyncMode=d,Ke.ConcurrentMode=p,Ke.ContextConsumer=l,Ke.ContextProvider=a,Ke.Element=t,Ke.ForwardRef=u,Ke.Fragment=r,Ke.Lazy=g,Ke.Memo=x,Ke.Portal=n,Ke.Profiler=s,Ke.StrictMode=i,Ke.Suspense=f,Ke.isAsyncMode=function(w){return v(w)||b(w)===d},Ke.isConcurrentMode=v,Ke.isContextConsumer=function(w){return b(w)===l},Ke.isContextProvider=function(w){return b(w)===a},Ke.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ke.isForwardRef=function(w){return b(w)===u},Ke.isFragment=function(w){return b(w)===r},Ke.isLazy=function(w){return b(w)===g},Ke.isMemo=function(w){return b(w)===x},Ke.isPortal=function(w){return b(w)===n},Ke.isProfiler=function(w){return b(w)===s},Ke.isStrictMode=function(w){return b(w)===i},Ke.isSuspense=function(w){return b(w)===f},Ke.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===p||w===s||w===i||w===f||w===y||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===x||w.$$typeof===a||w.$$typeof===l||w.$$typeof===u||w.$$typeof===m||w.$$typeof===S||w.$$typeof===C||w.$$typeof===h)},Ke.typeOf=b,Ke}var Xe={};var Rf;function IS(){return Rf||(Rf=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,f=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function b(R){return typeof R=="string"||typeof R=="function"||R===r||R===p||R===s||R===i||R===f||R===y||typeof R=="object"&&R!==null&&(R.$$typeof===g||R.$$typeof===x||R.$$typeof===a||R.$$typeof===l||R.$$typeof===u||R.$$typeof===m||R.$$typeof===S||R.$$typeof===C||R.$$typeof===h)}function v(R){if(typeof R=="object"&&R!==null){var le=R.$$typeof;switch(le){case t:var ae=R.type;switch(ae){case d:case p:case r:case s:case i:case f:return ae;default:var me=ae&&ae.$$typeof;switch(me){case l:case u:case g:case x:case a:return me;default:return le}}case n:return le}}}var w=d,A=p,k=l,D=a,O=t,B=u,L=r,E=g,I=x,$=n,W=s,_=i,z=f,N=!1;function V(R){return N||(N=!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.")),j(R)||v(R)===d}function j(R){return v(R)===p}function M(R){return v(R)===l}function Y(R){return v(R)===a}function Z(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function J(R){return v(R)===u}function q(R){return v(R)===r}function K(R){return v(R)===g}function U(R){return v(R)===x}function oe(R){return v(R)===n}function ne(R){return v(R)===s}function te(R){return v(R)===i}function ie(R){return v(R)===f}Xe.AsyncMode=w,Xe.ConcurrentMode=A,Xe.ContextConsumer=k,Xe.ContextProvider=D,Xe.Element=O,Xe.ForwardRef=B,Xe.Fragment=L,Xe.Lazy=E,Xe.Memo=I,Xe.Portal=$,Xe.Profiler=W,Xe.StrictMode=_,Xe.Suspense=z,Xe.isAsyncMode=V,Xe.isConcurrentMode=j,Xe.isContextConsumer=M,Xe.isContextProvider=Y,Xe.isElement=Z,Xe.isForwardRef=J,Xe.isFragment=q,Xe.isLazy=K,Xe.isMemo=U,Xe.isPortal=oe,Xe.isProfiler=ne,Xe.isStrictMode=te,Xe.isSuspense=ie,Xe.isValidElementType=b,Xe.typeOf=v})()),Xe}var qf;function Ac(){return qf||(qf=1,process.env.NODE_ENV==="production"?ca.exports=OS():ca.exports=IS()),ca.exports}var Pc,Yf;function NS(){if(Yf)return Pc;Yf=1;var e=Ac(),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,f=Object.getPrototypeOf,y=Object.prototype;function x(g,h,m){if(typeof h!="string"){if(y){var S=f(h);S&&S!==y&&x(g,S,m)}var C=d(h);p&&(C=C.concat(p(h)));for(var b=a(g),v=a(h),w=0;w<C.length;++w){var A=C[w];if(!n[A]&&!(m&&m[A])&&!(v&&v[A])&&!(b&&b[A])){var k=u(h,A);try{l(g,A,k)}catch{}}}}return g}return Pc=x,Pc}NS();var FS=!0;function Gf(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var kc=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||FS===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Oc=function(t,n,r){kc(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 MS(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 DS={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},_S=/[A-Z]|^ms/g,zS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Kf=function(t){return t.charCodeAt(1)===45},Xf=function(t){return t!=null&&typeof t!="boolean"},Ic=Wf(function(e){return Kf(e)?e:e.replace(_S,"-$&").toLowerCase()}),Jf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zS,function(r,i,s){return In={name:i,styles:s,next:In},i})}return DS[t]!==1&&!Kf(t)&&typeof n=="number"&&n!==0?n+"px":n};function yi(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 In={name:i.name,styles:i.styles,next:In},i.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)In={name:a.name,styles:a.styles,next:In},a=a.next;var l=s.styles+";";return l}return $S(e,t,n)}case"function":{if(e!==void 0){var d=In,p=n(e);return In=d,yi(e,t,p)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function $S(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=yi(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]+"}":Xf(l)&&(r+=Ic(s)+":"+Jf(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++)Xf(a[d])&&(r+=Ic(s)+":"+Jf(s,a[d])+";");else{var p=yi(e,t,a);switch(s){case"animation":case"animationName":{r+=Ic(s)+":"+p+";";break}default:r+=s+"{"+p+"}"}}}return r}var Qf=/label:\s*([^\s;{]+)\s*(;|$)/g,In;function bi(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="";In=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=yi(n,t,s);else{var a=s;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=yi(n,t,e[l]),r){var d=s;i+=d[l]}Qf.lastIndex=0;for(var p="",u;(u=Qf.exec(i))!==null;)p+="-"+u[1];var f=MS(i)+p;return{name:f,styles:i,next:In}}var BS=function(t){return t()},Zf=T.useInsertionEffect?T.useInsertionEffect:!1,eh=Zf||BS,th=Zf||T.useLayoutEffect,nh=T.createContext(typeof HTMLElement<"u"?kS({key:"css"}):null);nh.Provider;var Nc=function(t){return F.forwardRef(function(n,r){var i=F.useContext(nh);return t(n,i,r)})},da=T.createContext({}),Fc={}.hasOwnProperty,Mc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",LS=function(t,n){var r={};for(var i in n)Fc.call(n,i)&&(r[i]=n[i]);return r[Mc]=t,r},jS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return kc(n,r,i),eh(function(){return Oc(n,r,i)}),null},WS=Nc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Mc],s=[r],a="";typeof e.className=="string"?a=Gf(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var l=bi(s,void 0,T.useContext(da));a+=t.key+"-"+l.name;var d={};for(var p in e)Fc.call(e,p)&&p!=="css"&&p!==Mc&&(d[p]=e[p]);return d.className=a,n&&(d.ref=n),T.createElement(T.Fragment,null,T.createElement(jS,{cache:t,serialized:l,isStringTag:typeof i=="string"}),T.createElement(i,d))}),VS=WS,rh=function(t,n){var r=arguments;if(n==null||!Fc.call(n,"css"))return T.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=VS,s[1]=LS(t,n);for(var a=2;a<i;a++)s[a]=r[a];return T.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(rh||(rh={}));var HS=Nc(function(e,t){var n=e.styles,r=bi([n],void 0,T.useContext(da)),i=T.useRef();return th(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]),th(function(){var s=i.current,a=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&Oc(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 lo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bi(t)}function lr(){var e=lo.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 US=/^((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)-.*))$/,RS=Wf(function(e){return US.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qS=RS,YS=function(t){return t!=="theme"},oh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?qS:YS},ih=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},GS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return kc(n,r,i),eh(function(){return Oc(n,r,i)}),null},KS=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=ih(t,n,r),d=l||oh(i),p=!d("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&f.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{var y=u[0];f.push(y[0]);for(var x=u.length,g=1;g<x;g++)f.push(u[g],y[g])}var h=Nc(function(m,S,C){var b=p&&m.as||i,v="",w=[],A=m;if(m.theme==null){A={};for(var k in m)A[k]=m[k];A.theme=T.useContext(da)}typeof m.className=="string"?v=Gf(S.registered,w,m.className):m.className!=null&&(v=m.className+" ");var D=bi(f.concat(w),S.registered,A);v+=S.key+"-"+D.name,a!==void 0&&(v+=" "+a);var O=p&&l===void 0?oh(b):d,B={};for(var L in m)p&&L==="as"||O(L)&&(B[L]=m[L]);return B.className=v,C&&(B.ref=C),T.createElement(T.Fragment,null,T.createElement(GS,{cache:S,serialized:D,isStringTag:typeof b=="string"}),T.createElement(b,B))});return h.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=f,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+a}}),h.withComponent=function(m,S){var C=e(m,ea({},n,S,{shouldForwardProp:ih(h,S,!0)}));return C.apply(void 0,f)},h}},XS=["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"],Dc=KS.bind(null);XS.forEach(function(e){Dc[e]=Dc(e)});var ua={exports:{}};var _c,sh;function JS(){if(sh)return _c;sh=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 _c=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 f in l)t.call(l,f)&&(d[f]=l[f]);if(e){p=e(l);for(var y=0;y<p.length;y++)n.call(l,p[y])&&(d[p[y]]=l[p[y]])}}return d},_c}var zc,ah;function $c(){if(ah)return zc;ah=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zc=e,zc}var Bc,lh;function ch(){return lh||(lh=1,Bc=Function.call.bind(Object.prototype.hasOwnProperty)),Bc}var Lc,dh;function QS(){if(dh)return Lc;dh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=$c(),n={},r=ch();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 f;try{if(typeof s[u]!="function"){var y=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 y.name="Invariant Violation",y}f=s[u](a,u,d,l,null,t)}catch(g){f=g}if(f&&!(f 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 f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var x=p?p():"";e("Failed "+l+" type: "+f.message+(x??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Lc=i,Lc}var jc,uh;function ZS(){if(uh)return jc;uh=1;var e=Ac(),t=JS(),n=$c(),r=ch(),i=QS(),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 jc=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(j){var M=j&&(p&&j[p]||j[u]);if(typeof M=="function")return M}var y="<<anonymous>>",x={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:C(),arrayOf:b,element:v(),elementType:w(),instanceOf:A,node:B(),objectOf:D,oneOf:k,oneOfType:O,shape:E,exact:I};function g(j,M){return j===M?j!==0||1/j===1/M:j!==j&&M!==M}function h(j,M){this.message=j,this.data=M&&typeof M=="object"?M:{},this.stack=""}h.prototype=Error.prototype;function m(j){if(process.env.NODE_ENV!=="production")var M={},Y=0;function Z(q,K,U,oe,ne,te,ie){if(oe=oe||y,te=te||U,ie!==n){if(d){var R=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 R.name="Invariant Violation",R}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=oe+":"+U;!M[le]&&Y<3&&(s("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+oe+"`. 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."),M[le]=!0,Y++)}}return K[U]==null?q?K[U]===null?new h("The "+ne+" `"+te+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new h("The "+ne+" `"+te+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:j(K,U,oe,ne,te)}var J=Z.bind(null,!1);return J.isRequired=Z.bind(null,!0),J}function S(j){function M(Y,Z,J,q,K,U){var oe=Y[Z],ne=_(oe);if(ne!==j){var te=z(oe);return new h("Invalid "+q+" `"+K+"` of type "+("`"+te+"` supplied to `"+J+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return m(M)}function C(){return m(a)}function b(j){function M(Y,Z,J,q,K){if(typeof j!="function")return new h("Property `"+K+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var U=Y[Z];if(!Array.isArray(U)){var oe=_(U);return new h("Invalid "+q+" `"+K+"` of type "+("`"+oe+"` supplied to `"+J+"`, expected an array."))}for(var ne=0;ne<U.length;ne++){var te=j(U,ne,J,q,K+"["+ne+"]",n);if(te instanceof Error)return te}return null}return m(M)}function v(){function j(M,Y,Z,J,q){var K=M[Y];if(!l(K)){var U=_(K);return new h("Invalid "+J+" `"+q+"` of type "+("`"+U+"` supplied to `"+Z+"`, expected a single ReactElement."))}return null}return m(j)}function w(){function j(M,Y,Z,J,q){var K=M[Y];if(!e.isValidElementType(K)){var U=_(K);return new h("Invalid "+J+" `"+q+"` of type "+("`"+U+"` supplied to `"+Z+"`, expected a single ReactElement type."))}return null}return m(j)}function A(j){function M(Y,Z,J,q,K){if(!(Y[Z]instanceof j)){var U=j.name||y,oe=V(Y[Z]);return new h("Invalid "+q+" `"+K+"` of type "+("`"+oe+"` supplied to `"+J+"`, expected ")+("instance of `"+U+"`."))}return null}return m(M)}function k(j){if(!Array.isArray(j))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 M(Y,Z,J,q,K){for(var U=Y[Z],oe=0;oe<j.length;oe++)if(g(U,j[oe]))return null;var ne=JSON.stringify(j,function(ie,R){var le=z(R);return le==="symbol"?String(R):R});return new h("Invalid "+q+" `"+K+"` of value `"+String(U)+"` "+("supplied to `"+J+"`, expected one of "+ne+"."))}return m(M)}function D(j){function M(Y,Z,J,q,K){if(typeof j!="function")return new h("Property `"+K+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var U=Y[Z],oe=_(U);if(oe!=="object")return new h("Invalid "+q+" `"+K+"` of type "+("`"+oe+"` supplied to `"+J+"`, expected an object."));for(var ne in U)if(r(U,ne)){var te=j(U,ne,J,q,K+"."+ne,n);if(te instanceof Error)return te}return null}return m(M)}function O(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var M=0;M<j.length;M++){var Y=j[M];if(typeof Y!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+N(Y)+" at index "+M+"."),a}function Z(J,q,K,U,oe){for(var ne=[],te=0;te<j.length;te++){var ie=j[te],R=ie(J,q,K,U,oe,n);if(R==null)return null;R.data&&r(R.data,"expectedType")&&ne.push(R.data.expectedType)}var le=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new h("Invalid "+U+" `"+oe+"` supplied to "+("`"+K+"`"+le+"."))}return m(Z)}function B(){function j(M,Y,Z,J,q){return $(M[Y])?null:new h("Invalid "+J+" `"+q+"` supplied to "+("`"+Z+"`, expected a ReactNode."))}return m(j)}function L(j,M,Y,Z,J){return new h((j||"React class")+": "+M+" type `"+Y+"."+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function E(j){function M(Y,Z,J,q,K){var U=Y[Z],oe=_(U);if(oe!=="object")return new h("Invalid "+q+" `"+K+"` of type `"+oe+"` "+("supplied to `"+J+"`, expected `object`."));for(var ne in j){var te=j[ne];if(typeof te!="function")return L(J,q,K,ne,z(te));var ie=te(U,ne,J,q,K+"."+ne,n);if(ie)return ie}return null}return m(M)}function I(j){function M(Y,Z,J,q,K){var U=Y[Z],oe=_(U);if(oe!=="object")return new h("Invalid "+q+" `"+K+"` of type `"+oe+"` "+("supplied to `"+J+"`, expected `object`."));var ne=t({},Y[Z],j);for(var te in ne){var ie=j[te];if(r(j,te)&&typeof ie!="function")return L(J,q,K,te,z(ie));if(!ie)return new h("Invalid "+q+" `"+K+"` key `"+te+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(Y[Z],null," ")+`
25
+ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var R=ie(U,te,J,q,K+"."+te,n);if(R)return R}return null}return m(M)}function $(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every($);if(j===null||l(j))return!0;var M=f(j);if(M){var Y=M.call(j),Z;if(M!==j.entries){for(;!(Z=Y.next()).done;)if(!$(Z.value))return!1}else for(;!(Z=Y.next()).done;){var J=Z.value;if(J&&!$(J[1]))return!1}}else return!1;return!0;default:return!1}}function W(j,M){return j==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function _(j){var M=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":W(M,j)?"symbol":M}function z(j){if(typeof j>"u"||j===null)return""+j;var M=_(j);if(M==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return M}function N(j){var M=z(j);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function V(j){return!j.constructor||!j.constructor.name?y:j.constructor.name}return x.checkPropTypes=i,x.resetWarningCache=i.resetWarningCache,x.PropTypes=x,x},jc}var Wc,ph;function ew(){if(ph)return Wc;ph=1;var e=$c();function t(){}function n(){}return n.resetWarningCache=t,Wc=function(){function r(a,l,d,p,u,f){if(f!==e){var y=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 y.name="Invariant Violation",y}}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},Wc}var fh;function tw(){if(fh)return ua.exports;if(fh=1,process.env.NODE_ENV!=="production"){var e=Ac(),t=!0;ua.exports=ZS()(e.isElement,t)}else ua.exports=ew()();return ua.exports}var nw=tw();const o=$u(nw);function rw(e){return e==null||Object.keys(e).length===0}function hh(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(rw(i)?n:i):t;return c.jsx(HS,{styles:r})}process.env.NODE_ENV!=="production"&&(hh.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function gh(e,t){const n=Dc(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
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 ow(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const mh=[];function cr(e){return mh[0]=e,bi(mh)}var pa={exports:{}},nt={};var yh;function iw(){if(yh)return nt;yh=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"),f=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function g(h){if(typeof h=="object"&&h!==null){var m=h.$$typeof;switch(m){case e:switch(h=h.type,h){case n:case i:case r:case d:case p:case y:return h;default:switch(h=h&&h.$$typeof,h){case a:case l:case f:case u:return h;case s:return h;default:return m}}case t:return m}}}return nt.ContextConsumer=s,nt.ContextProvider=a,nt.Element=e,nt.ForwardRef=l,nt.Fragment=n,nt.Lazy=f,nt.Memo=u,nt.Portal=t,nt.Profiler=i,nt.StrictMode=r,nt.Suspense=d,nt.SuspenseList=p,nt.isContextConsumer=function(h){return g(h)===s},nt.isContextProvider=function(h){return g(h)===a},nt.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},nt.isForwardRef=function(h){return g(h)===l},nt.isFragment=function(h){return g(h)===n},nt.isLazy=function(h){return g(h)===f},nt.isMemo=function(h){return g(h)===u},nt.isPortal=function(h){return g(h)===t},nt.isProfiler=function(h){return g(h)===i},nt.isStrictMode=function(h){return g(h)===r},nt.isSuspense=function(h){return g(h)===d},nt.isSuspenseList=function(h){return g(h)===p},nt.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===i||h===r||h===d||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===u||h.$$typeof===a||h.$$typeof===s||h.$$typeof===l||h.$$typeof===x||h.getModuleId!==void 0)},nt.typeOf=g,nt}var rt={};var bh;function sw(){return bh||(bh=1,process.env.NODE_ENV!=="production"&&(function(){function e(h){if(typeof h=="object"&&h!==null){var m=h.$$typeof;switch(m){case t:switch(h=h.type,h){case r:case s:case i:case p:case u:case x:return h;default:switch(h=h&&h.$$typeof,h){case l:case d:case y:case f:return h;case a:return h;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"),f=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");rt.ContextConsumer=a,rt.ContextProvider=l,rt.Element=t,rt.ForwardRef=d,rt.Fragment=r,rt.Lazy=y,rt.Memo=f,rt.Portal=n,rt.Profiler=s,rt.StrictMode=i,rt.Suspense=p,rt.SuspenseList=u,rt.isContextConsumer=function(h){return e(h)===a},rt.isContextProvider=function(h){return e(h)===l},rt.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},rt.isForwardRef=function(h){return e(h)===d},rt.isFragment=function(h){return e(h)===r},rt.isLazy=function(h){return e(h)===y},rt.isMemo=function(h){return e(h)===f},rt.isPortal=function(h){return e(h)===n},rt.isProfiler=function(h){return e(h)===s},rt.isStrictMode=function(h){return e(h)===i},rt.isSuspense=function(h){return e(h)===p},rt.isSuspenseList=function(h){return e(h)===u},rt.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===s||h===i||h===p||h===u||typeof h=="object"&&h!==null&&(h.$$typeof===y||h.$$typeof===f||h.$$typeof===l||h.$$typeof===a||h.$$typeof===d||h.$$typeof===g||h.getModuleId!==void 0)},rt.typeOf=e})()),rt}var xh;function aw(){return xh||(xh=1,process.env.NODE_ENV==="production"?pa.exports=iw():pa.exports=sw()),pa.exports}var fa=aw();function Nn(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 vh(e){if(T.isValidElement(e)||fa.isValidElementType(e)||!Nn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=vh(e[n])}),t}function Mt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Nn(e)&&Nn(t)&&Object.keys(t).forEach(i=>{T.isValidElement(t[i])||fa.isValidElementType(t[i])?r[i]=t[i]:Nn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Nn(e[i])?r[i]=Mt(e[i],t[i],n):n.clone?r[i]=Nn(t[i])?vh(t[i]):t[i]:r[i]=t[i]}),r}const lw=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 cw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,s=lw(t),a=Object.keys(s);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function d(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function p(y,x){const g=a.indexOf(x);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:x)-r/100}${n})`}function u(y){return a.indexOf(y)+1<a.length?p(y,a[a.indexOf(y)+1]):l(y)}function f(y){const x=a.indexOf(y);return x===0?l(a[1]):x===a.length-1?d(a[x]):p(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:l,down:d,between:p,only:u,not:f,unit:n,...i}}function Sh(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 dw(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function uw(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\`.`:Pn(18,`(${t})`));return null}const[,r,i]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(s)}function pw(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 fw={borderRadius:4},dr=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function xi(e,t){return t?Mt(e,t,{clone:!1}):e}const ha={xs:0,sm:600,md:900,lg:1200,xl:1536},wh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ha[e]}px)`},hw={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ha[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Jn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||wh;return t.reduce((a,l,d)=>(a[s.up(s.keys[d])]=n(t[d]),a),{})}if(typeof t=="object"){const s=r.breakpoints||wh;return Object.keys(t).reduce((a,l)=>{if(dw(s.keys,l)){const d=uw(r.containerQueries?r:hw,l);d&&(a[d]=n(t[l],l))}else if(Object.keys(s.values||ha).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 gw(e={}){return e.keys?.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{})||{}}function Ch(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.":Pn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ga(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 ma(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ga(e,n)||r,t&&(i=t(i,r,e)),i}function bt(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=ga(d,r)||{};return Jn(a,l,f=>{let y=ma(p,i,f);return f===y&&typeof f=="string"&&(y=ma(p,i,`${t}${f==="default"?"":ee(f)}`,f)),n===!1?y:{[n]:y}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:dr}:{},s.filterProps=[t],s}function mw(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const yw={m:"margin",p:"padding"},bw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Eh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xw=mw(e=>{if(e.length>2)if(Eh[e])e=Eh[e];else return[e];const[t,n]=e.split(""),r=yw[t],i=bw[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),ya=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ba=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],vw=[...ya,...ba];function vi(e,t,n,r){const i=ga(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(`
27
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Pn(18,`(${t})`));return null}const[,r,i]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(s)}function pw(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 fw={borderRadius:4},dr=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function xi(e,t){return t?Mt(e,t,{clone:!1}):e}const ha={xs:0,sm:600,md:900,lg:1200,xl:1536},wh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ha[e]}px)`},hw={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ha[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Qn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||wh;return t.reduce((a,l,d)=>(a[s.up(s.keys[d])]=n(t[d]),a),{})}if(typeof t=="object"){const s=r.breakpoints||wh;return Object.keys(t).reduce((a,l)=>{if(dw(s.keys,l)){const d=uw(r.containerQueries?r:hw,l);d&&(a[d]=n(t[l],l))}else if(Object.keys(s.values||ha).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 gw(e={}){return e.keys?.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{})||{}}function Ch(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.":Pn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ga(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 ma(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ga(e,n)||r,t&&(i=t(i,r,e)),i}function bt(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=ga(d,r)||{};return Qn(a,l,f=>{let y=ma(p,i,f);return f===y&&typeof f=="string"&&(y=ma(p,i,`${t}${f==="default"?"":ee(f)}`,f)),n===!1?y:{[n]:y}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:dr}:{},s.filterProps=[t],s}function mw(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const yw={m:"margin",p:"padding"},bw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Eh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xw=mw(e=>{if(e.length>2)if(Eh[e])e=Eh[e];else return[e];const[t,n]=e.split(""),r=yw[t],i=bw[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),ya=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ba=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],vw=[...ya,...ba];function vi(e,t,n,r){const i=ga(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 Vc(e){return vi(e,"spacing",8,"spacing")}function Si(e,t){return typeof t=="string"||t==null?t:e(t)}function Sw(e,t){return n=>e.reduce((r,i)=>(r[i]=Si(t,n),r),{})}function ww(e,t,n,r){if(!t.includes(n))return null;const i=xw(n),s=Sw(i,r),a=e[n];return Jn(e,a,s)}function Th(e,t){const n=Vc(e.theme);return Object.keys(e).map(r=>ww(e,t,r,n)).reduce(xi,{})}function ft(e){return Th(e,ya)}ft.propTypes=process.env.NODE_ENV!=="production"?ya.reduce((e,t)=>(e[t]=dr,e),{}):{},ft.filterProps=ya;function ht(e){return Th(e,ba)}ht.propTypes=process.env.NODE_ENV!=="production"?ba.reduce((e,t)=>(e[t]=dr,e),{}):{},ht.filterProps=ba,process.env.NODE_ENV!=="production"&&vw.reduce((e,t)=>(e[t]=dr,e),{});function Ah(e=8,t=Vc({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 xa(...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]?xi(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 on(e){return typeof e!="number"?e:`${e}px solid`}function sn(e,t){return bt({prop:e,themeKey:"borders",transform:t})}const Cw=sn("border",on),Ew=sn("borderTop",on),Tw=sn("borderRight",on),Aw=sn("borderBottom",on),Pw=sn("borderLeft",on),kw=sn("borderColor"),Ow=sn("borderTopColor"),Iw=sn("borderRightColor"),Nw=sn("borderBottomColor"),Fw=sn("borderLeftColor"),Mw=sn("outline",on),Dw=sn("outlineColor"),va=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=vi(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Si(t,r)});return Jn(e,e.borderRadius,n)}return null};va.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:dr}:{},va.filterProps=["borderRadius"],xa(Cw,Ew,Tw,Aw,Pw,kw,Ow,Iw,Nw,Fw,va,Mw,Dw);const Sa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=vi(e.theme,"spacing",8,"gap"),n=r=>({gap:Si(t,r)});return Jn(e,e.gap,n)}return null};Sa.propTypes=process.env.NODE_ENV!=="production"?{gap:dr}:{},Sa.filterProps=["gap"];const wa=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=vi(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Si(t,r)});return Jn(e,e.columnGap,n)}return null};wa.propTypes=process.env.NODE_ENV!=="production"?{columnGap:dr}:{},wa.filterProps=["columnGap"];const Ca=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=vi(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Si(t,r)});return Jn(e,e.rowGap,n)}return null};Ca.propTypes=process.env.NODE_ENV!=="production"?{rowGap:dr}:{},Ca.filterProps=["rowGap"];const _w=bt({prop:"gridColumn"}),zw=bt({prop:"gridRow"}),$w=bt({prop:"gridAutoFlow"}),Bw=bt({prop:"gridAutoColumns"}),Lw=bt({prop:"gridAutoRows"}),jw=bt({prop:"gridTemplateColumns"}),Ww=bt({prop:"gridTemplateRows"}),Vw=bt({prop:"gridTemplateAreas"}),Uw=bt({prop:"gridArea"});xa(Sa,wa,Ca,_w,zw,$w,Bw,Lw,jw,Ww,Vw,Uw);function co(e,t){return t==="grey"?t:e}const Hw=bt({prop:"color",themeKey:"palette",transform:co}),Rw=bt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:co}),qw=bt({prop:"backgroundColor",themeKey:"palette",transform:co});xa(Hw,Rw,qw);function en(e){return e<=1&&e!==0?`${e*100}%`:e}const Yw=bt({prop:"width",transform:en}),Uc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||ha[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:en(n)}};return Jn(e,e.maxWidth,t)}return null};Uc.filterProps=["maxWidth"];const Gw=bt({prop:"minWidth",transform:en}),Kw=bt({prop:"height",transform:en}),Xw=bt({prop:"maxHeight",transform:en}),Jw=bt({prop:"minHeight",transform:en});bt({prop:"size",cssProperty:"width",transform:en}),bt({prop:"size",cssProperty:"height",transform:en});const Qw=bt({prop:"boxSizing"});xa(Yw,Uc,Gw,Kw,Xw,Jw,Qw);const wi={border:{themeKey:"borders",transform:on},borderTop:{themeKey:"borders",transform:on},borderRight:{themeKey:"borders",transform:on},borderBottom:{themeKey:"borders",transform:on},borderLeft:{themeKey:"borders",transform:on},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:on},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:va},color:{themeKey:"palette",transform:co},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:co},backgroundColor:{themeKey:"palette",transform:co},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:ft},mt:{style:ft},mr:{style:ft},mb:{style:ft},ml:{style:ft},mx:{style:ft},my:{style:ft},margin:{style:ft},marginTop:{style:ft},marginRight:{style:ft},marginBottom:{style:ft},marginLeft:{style:ft},marginX:{style:ft},marginY:{style:ft},marginInline:{style:ft},marginInlineStart:{style:ft},marginInlineEnd:{style:ft},marginBlock:{style:ft},marginBlockStart:{style:ft},marginBlockEnd:{style:ft},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:Sa},rowGap:{style:Ca},columnGap:{style:wa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:en},maxWidth:{style:Uc},minWidth:{transform:en},height:{transform:en},maxHeight:{transform:en},minHeight:{transform:en},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 Zw(...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 eC(e,t){return typeof e=="function"?e(t):e}function tC(){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:f}=l;if(r==null)return null;if(p==="typography"&&r==="inherit")return{[n]:r};const y=ga(i,p)||{};return f?f(a):Jn(a,r,g=>{let h=ma(y,u,g);return g===h&&typeof g=="string"&&(h=ma(y,u,`${n}${g==="default"?"":ee(g)}`,g)),d===!1?h:{[d]:h}})}function t(n){const{sx:r,theme:i={},nested:s}=n||{};if(!r)return null;const a=i.unstable_sxConfig??wi;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=gw(i.breakpoints),f=Object.keys(u);let y=u;return Object.keys(p).forEach(x=>{const g=eC(p[x],i);if(g!=null)if(typeof g=="object")if(a[x])y=xi(y,e(x,g,i,a));else{const h=Jn({theme:i},g,m=>({[x]:m}));Zw(h,g)?y[x]=t({sx:g,theme:i,nested:!0}):y=xi(y,h)}else y=xi(y,e(x,g,i,a))}),!s&&i.modularCssLayers?{"@layer sx":Sh(i,Ch(f,y))}:Sh(i,Ch(f,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const Pr=tC();Pr.filterProps=["sx"];function nC(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 Ea(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={},...a}=e,l=cw(n),d=Ah(i);let p=Mt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...fw,...s}},a);return p=pw(p),p.applyStyles=nC,p=t.reduce((u,f)=>Mt(u,f),p),p.unstable_sxConfig={...wi,...a?.unstable_sxConfig},p.unstable_sx=function(f){return Pr({sx:f,theme:this})},p}function rC(e){return Object.keys(e).length===0}function Ph(e=null){const t=T.useContext(da);return!t||rC(t)?e:t}const oC=Ea();function Ta(e=oC){return Ph(e)}function Hc(e){const t=cr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function kh({styles:e,themeId:t,defaultTheme:n={}}){const r=Ta(n),i=t&&r[t]||r;let s=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>Hc(typeof a=="function"?a(i):a)):s=Hc(s)),c.jsx(hh,{styles:s})}process.env.NODE_ENV!=="production"&&(kh.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const iC=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??wi;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Oh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=iC(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return Nn(l)?{...r,...l}:r}:s={...r,...t},{...i,sx:s}}const Ih=e=>e,Nh=(()=>{let e=Ih;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ih}}})();function Fh(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=Fh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pe(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Fh(e))&&(r&&(r+=" "),r+=t);return r}function sC(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=gh("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Pr);return T.forwardRef(function(d,p){const u=Ta(n),{className:f,component:y="div",...x}=Oh(d);return c.jsx(s,{as:y,ref:p,className:pe(f,i?i(r):r),theme:t&&u[t]||u,...x})})}const aC={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 Se(e,t,n="Mui"){const r=aC[t];return r?`${n}-${r}`:`${Nh.generate(e)}-${t}`}function we(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Se(e,i,n)}),r}function Mh(e,t=""){return e.displayName||e.name||t}function Dh(e,t,n){const r=Mh(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function lC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Mh(e,"Component");if(typeof e=="object")switch(e.$$typeof){case fa.ForwardRef:return Dh(e,e.render,"ForwardRef");case fa.Memo:return Dh(e,e.type,"memo");default:return}}}function _h(e){const{variants:t,...n}=e,r={variants:t,style:cr(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=cr(i.style))}),r}const cC=Ea();function Rc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function kr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function dC(e){return e?(t,n)=>n[e]:null}function uC(e,t,n){e.theme=hC(e.theme)?n:e.theme[t]||e.theme}function Aa(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Aa(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?kr(r.style,n):r.style;else{const{variants:s,...a}=r;i=n?kr(cr(a),n):a}return zh(e,r.variants,[i],n)}return r?.isProcessed?n?kr(cr(r.style),n):r.style:n?kr(cr(r),n):r}function zh(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?kr(cr(a.style(i)),r):a.style(i))):n.push(r?kr(cr(a.style),r):a.style)}return n}function $h(e={}){const{themeId:t,defaultTheme:n=cC,rootShouldForwardProp:r=Rc,slotShouldForwardProp:i=Rc}=e;function s(l){uC(l,t,n)}return(l,d={})=>{ow(l,A=>A.filter(k=>k!==Pr));const{name:p,slot:u,skipVariantsResolver:f,skipSx:y,overridesResolver:x=dC(Bh(u)),...g}=d,h=p&&p.startsWith("Mui")||u?"components":"custom",m=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,S=y||!1;let C=Rc;u==="Root"||u==="root"?C=r:u?C=i:gC(l)&&(C=void 0);const b=gh(l,{shouldForwardProp:C,label:fC(p,u),...g}),v=A=>{if(A.__emotion_real===A)return A;if(typeof A=="function")return function(D){return Aa(D,A,D.theme.modularCssLayers?h:void 0)};if(Nn(A)){const k=_h(A);return function(O){return k.variants?Aa(O,k,O.theme.modularCssLayers?h:void 0):O.theme.modularCssLayers?kr(k.style,h):k.style}}return A},w=(...A)=>{const k=[],D=A.map(v),O=[];if(k.push(s),p&&x&&O.push(function(I){const W=I.theme.components?.[p]?.styleOverrides;if(!W)return null;const _={};for(const z in W)_[z]=Aa(I,W[z],I.theme.modularCssLayers?"theme":void 0);return x(I,_)}),p&&!m&&O.push(function(I){const W=I.theme?.components?.[p]?.variants;return W?zh(I,W,[],I.theme.modularCssLayers?"theme":void 0):null}),S||O.push(Pr),Array.isArray(D[0])){const E=D.shift(),I=new Array(k.length).fill(""),$=new Array(O.length).fill("");let W;W=[...I,...E,...$],W.raw=[...I,...E.raw,...$],k.unshift(W)}const B=[...k,...D,...O],L=b(...B);return l.muiName&&(L.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(L.displayName=pC(p,u,l)),L};return b.withConfig&&(w.withConfig=b.withConfig),w}}function pC(e,t,n){return e?`${e}${ee(t||"")}`:`Styled(${lC(n)})`}function fC(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Bh(t||"Root")}`),n}function hC(e){for(const t in e)return!1;return!0}function gC(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Bh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const mC=$h();function Ci(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]=Ci(a[p],l[p],n)}}}else s==="className"&&n&&t.className?r.className=pe(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 Lh(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ci(t.components[n].defaultProps,r)}function yC({props:e,name:t,defaultTheme:n,themeId:r}){let i=Ta(n);return r&&(i=i[r]||i),Lh({theme:i,name:t,props:e})}const an=typeof window<"u"?T.useLayoutEffect:T.useEffect;function bC(e,t,n,r,i){const[s,a]=T.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return an(()=>{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 jh={...T}.useSyncExternalStore;function xC(e,t,n,r,i){const s=T.useCallback(()=>t,[t]),a=T.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]=T.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addEventListener("change",f),()=>{u.removeEventListener("change",f)})]},[s,n,e]);return jh(d,l,a)}function Wh(e={}){const{themeId:t}=e;return function(r,i={}){let s=Ph();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}=Lh({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 Vc(e){return vi(e,"spacing",8,"spacing")}function Si(e,t){return typeof t=="string"||t==null?t:e(t)}function Sw(e,t){return n=>e.reduce((r,i)=>(r[i]=Si(t,n),r),{})}function ww(e,t,n,r){if(!t.includes(n))return null;const i=xw(n),s=Sw(i,r),a=e[n];return Qn(e,a,s)}function Th(e,t){const n=Vc(e.theme);return Object.keys(e).map(r=>ww(e,t,r,n)).reduce(xi,{})}function ft(e){return Th(e,ya)}ft.propTypes=process.env.NODE_ENV!=="production"?ya.reduce((e,t)=>(e[t]=dr,e),{}):{},ft.filterProps=ya;function ht(e){return Th(e,ba)}ht.propTypes=process.env.NODE_ENV!=="production"?ba.reduce((e,t)=>(e[t]=dr,e),{}):{},ht.filterProps=ba,process.env.NODE_ENV!=="production"&&vw.reduce((e,t)=>(e[t]=dr,e),{});function Ah(e=8,t=Vc({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 xa(...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]?xi(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 on(e){return typeof e!="number"?e:`${e}px solid`}function sn(e,t){return bt({prop:e,themeKey:"borders",transform:t})}const Cw=sn("border",on),Ew=sn("borderTop",on),Tw=sn("borderRight",on),Aw=sn("borderBottom",on),Pw=sn("borderLeft",on),kw=sn("borderColor"),Ow=sn("borderTopColor"),Iw=sn("borderRightColor"),Nw=sn("borderBottomColor"),Fw=sn("borderLeftColor"),Mw=sn("outline",on),Dw=sn("outlineColor"),va=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=vi(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Si(t,r)});return Qn(e,e.borderRadius,n)}return null};va.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:dr}:{},va.filterProps=["borderRadius"],xa(Cw,Ew,Tw,Aw,Pw,kw,Ow,Iw,Nw,Fw,va,Mw,Dw);const Sa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=vi(e.theme,"spacing",8,"gap"),n=r=>({gap:Si(t,r)});return Qn(e,e.gap,n)}return null};Sa.propTypes=process.env.NODE_ENV!=="production"?{gap:dr}:{},Sa.filterProps=["gap"];const wa=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=vi(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Si(t,r)});return Qn(e,e.columnGap,n)}return null};wa.propTypes=process.env.NODE_ENV!=="production"?{columnGap:dr}:{},wa.filterProps=["columnGap"];const Ca=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=vi(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Si(t,r)});return Qn(e,e.rowGap,n)}return null};Ca.propTypes=process.env.NODE_ENV!=="production"?{rowGap:dr}:{},Ca.filterProps=["rowGap"];const _w=bt({prop:"gridColumn"}),zw=bt({prop:"gridRow"}),$w=bt({prop:"gridAutoFlow"}),Bw=bt({prop:"gridAutoColumns"}),Lw=bt({prop:"gridAutoRows"}),jw=bt({prop:"gridTemplateColumns"}),Ww=bt({prop:"gridTemplateRows"}),Vw=bt({prop:"gridTemplateAreas"}),Hw=bt({prop:"gridArea"});xa(Sa,wa,Ca,_w,zw,$w,Bw,Lw,jw,Ww,Vw,Hw);function co(e,t){return t==="grey"?t:e}const Uw=bt({prop:"color",themeKey:"palette",transform:co}),Rw=bt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:co}),qw=bt({prop:"backgroundColor",themeKey:"palette",transform:co});xa(Uw,Rw,qw);function en(e){return e<=1&&e!==0?`${e*100}%`:e}const Yw=bt({prop:"width",transform:en}),Hc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||ha[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:en(n)}};return Qn(e,e.maxWidth,t)}return null};Hc.filterProps=["maxWidth"];const Gw=bt({prop:"minWidth",transform:en}),Kw=bt({prop:"height",transform:en}),Xw=bt({prop:"maxHeight",transform:en}),Jw=bt({prop:"minHeight",transform:en});bt({prop:"size",cssProperty:"width",transform:en}),bt({prop:"size",cssProperty:"height",transform:en});const Qw=bt({prop:"boxSizing"});xa(Yw,Hc,Gw,Kw,Xw,Jw,Qw);const wi={border:{themeKey:"borders",transform:on},borderTop:{themeKey:"borders",transform:on},borderRight:{themeKey:"borders",transform:on},borderBottom:{themeKey:"borders",transform:on},borderLeft:{themeKey:"borders",transform:on},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:on},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:va},color:{themeKey:"palette",transform:co},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:co},backgroundColor:{themeKey:"palette",transform:co},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:ft},mt:{style:ft},mr:{style:ft},mb:{style:ft},ml:{style:ft},mx:{style:ft},my:{style:ft},margin:{style:ft},marginTop:{style:ft},marginRight:{style:ft},marginBottom:{style:ft},marginLeft:{style:ft},marginX:{style:ft},marginY:{style:ft},marginInline:{style:ft},marginInlineStart:{style:ft},marginInlineEnd:{style:ft},marginBlock:{style:ft},marginBlockStart:{style:ft},marginBlockEnd:{style:ft},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:Sa},rowGap:{style:Ca},columnGap:{style:wa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:en},maxWidth:{style:Hc},minWidth:{transform:en},height:{transform:en},maxHeight:{transform:en},minHeight:{transform:en},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 Zw(...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 eC(e,t){return typeof e=="function"?e(t):e}function tC(){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:f}=l;if(r==null)return null;if(p==="typography"&&r==="inherit")return{[n]:r};const y=ga(i,p)||{};return f?f(a):Qn(a,r,g=>{let h=ma(y,u,g);return g===h&&typeof g=="string"&&(h=ma(y,u,`${n}${g==="default"?"":ee(g)}`,g)),d===!1?h:{[d]:h}})}function t(n){const{sx:r,theme:i={},nested:s}=n||{};if(!r)return null;const a=i.unstable_sxConfig??wi;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=gw(i.breakpoints),f=Object.keys(u);let y=u;return Object.keys(p).forEach(x=>{const g=eC(p[x],i);if(g!=null)if(typeof g=="object")if(a[x])y=xi(y,e(x,g,i,a));else{const h=Qn({theme:i},g,m=>({[x]:m}));Zw(h,g)?y[x]=t({sx:g,theme:i,nested:!0}):y=xi(y,h)}else y=xi(y,e(x,g,i,a))}),!s&&i.modularCssLayers?{"@layer sx":Sh(i,Ch(f,y))}:Sh(i,Ch(f,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const Pr=tC();Pr.filterProps=["sx"];function nC(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 Ea(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={},...a}=e,l=cw(n),d=Ah(i);let p=Mt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...fw,...s}},a);return p=pw(p),p.applyStyles=nC,p=t.reduce((u,f)=>Mt(u,f),p),p.unstable_sxConfig={...wi,...a?.unstable_sxConfig},p.unstable_sx=function(f){return Pr({sx:f,theme:this})},p}function rC(e){return Object.keys(e).length===0}function Ph(e=null){const t=T.useContext(da);return!t||rC(t)?e:t}const oC=Ea();function Ta(e=oC){return Ph(e)}function Uc(e){const t=cr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function kh({styles:e,themeId:t,defaultTheme:n={}}){const r=Ta(n),i=t&&r[t]||r;let s=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>Uc(typeof a=="function"?a(i):a)):s=Uc(s)),c.jsx(hh,{styles:s})}process.env.NODE_ENV!=="production"&&(kh.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const iC=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??wi;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Oh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=iC(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return Nn(l)?{...r,...l}:r}:s={...r,...t},{...i,sx:s}}const Ih=e=>e,Nh=(()=>{let e=Ih;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ih}}})();function Fh(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=Fh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pe(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Fh(e))&&(r&&(r+=" "),r+=t);return r}function sC(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=gh("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Pr);return T.forwardRef(function(d,p){const u=Ta(n),{className:f,component:y="div",...x}=Oh(d);return c.jsx(s,{as:y,ref:p,className:pe(f,i?i(r):r),theme:t&&u[t]||u,...x})})}const aC={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 Se(e,t,n="Mui"){const r=aC[t];return r?`${n}-${r}`:`${Nh.generate(e)}-${t}`}function we(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Se(e,i,n)}),r}function Mh(e,t=""){return e.displayName||e.name||t}function Dh(e,t,n){const r=Mh(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function lC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Mh(e,"Component");if(typeof e=="object")switch(e.$$typeof){case fa.ForwardRef:return Dh(e,e.render,"ForwardRef");case fa.Memo:return Dh(e,e.type,"memo");default:return}}}function _h(e){const{variants:t,...n}=e,r={variants:t,style:cr(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=cr(i.style))}),r}const cC=Ea();function Rc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function kr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function dC(e){return e?(t,n)=>n[e]:null}function uC(e,t,n){e.theme=hC(e.theme)?n:e.theme[t]||e.theme}function Aa(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Aa(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?kr(r.style,n):r.style;else{const{variants:s,...a}=r;i=n?kr(cr(a),n):a}return zh(e,r.variants,[i],n)}return r?.isProcessed?n?kr(cr(r.style),n):r.style:n?kr(cr(r),n):r}function zh(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?kr(cr(a.style(i)),r):a.style(i))):n.push(r?kr(cr(a.style),r):a.style)}return n}function $h(e={}){const{themeId:t,defaultTheme:n=cC,rootShouldForwardProp:r=Rc,slotShouldForwardProp:i=Rc}=e;function s(l){uC(l,t,n)}return(l,d={})=>{ow(l,A=>A.filter(k=>k!==Pr));const{name:p,slot:u,skipVariantsResolver:f,skipSx:y,overridesResolver:x=dC(Bh(u)),...g}=d,h=p&&p.startsWith("Mui")||u?"components":"custom",m=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,S=y||!1;let C=Rc;u==="Root"||u==="root"?C=r:u?C=i:gC(l)&&(C=void 0);const b=gh(l,{shouldForwardProp:C,label:fC(p,u),...g}),v=A=>{if(A.__emotion_real===A)return A;if(typeof A=="function")return function(D){return Aa(D,A,D.theme.modularCssLayers?h:void 0)};if(Nn(A)){const k=_h(A);return function(O){return k.variants?Aa(O,k,O.theme.modularCssLayers?h:void 0):O.theme.modularCssLayers?kr(k.style,h):k.style}}return A},w=(...A)=>{const k=[],D=A.map(v),O=[];if(k.push(s),p&&x&&O.push(function(I){const W=I.theme.components?.[p]?.styleOverrides;if(!W)return null;const _={};for(const z in W)_[z]=Aa(I,W[z],I.theme.modularCssLayers?"theme":void 0);return x(I,_)}),p&&!m&&O.push(function(I){const W=I.theme?.components?.[p]?.variants;return W?zh(I,W,[],I.theme.modularCssLayers?"theme":void 0):null}),S||O.push(Pr),Array.isArray(D[0])){const E=D.shift(),I=new Array(k.length).fill(""),$=new Array(O.length).fill("");let W;W=[...I,...E,...$],W.raw=[...I,...E.raw,...$],k.unshift(W)}const B=[...k,...D,...O],L=b(...B);return l.muiName&&(L.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(L.displayName=pC(p,u,l)),L};return b.withConfig&&(w.withConfig=b.withConfig),w}}function pC(e,t,n){return e?`${e}${ee(t||"")}`:`Styled(${lC(n)})`}function fC(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Bh(t||"Root")}`),n}function hC(e){for(const t in e)return!1;return!0}function gC(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Bh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const mC=$h();function Ci(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]=Ci(a[p],l[p],n)}}}else s==="className"&&n&&t.className?r.className=pe(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 Lh(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ci(t.components[n].defaultProps,r)}function yC({props:e,name:t,defaultTheme:n,themeId:r}){let i=Ta(n);return r&&(i=i[r]||i),Lh({theme:i,name:t,props:e})}const an=typeof window<"u"?T.useLayoutEffect:T.useEffect;function bC(e,t,n,r,i){const[s,a]=T.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return an(()=>{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 jh={...T}.useSyncExternalStore;function xC(e,t,n,r,i){const s=T.useCallback(()=>t,[t]),a=T.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]=T.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addEventListener("change",f),()=>{u.removeEventListener("change",f)})]},[s,n,e]);return jh(d,l,a)}function Wh(e={}){const{themeId:t}=e;return function(r,i={}){let s=Ph();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}=Lh({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 f=typeof r=="function"?r(s):r;f=f.replace(/^@media( ?)/m,""),f.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 x=(jh!==void 0?xC:bC)(f,l,d,p,u);return process.env.NODE_ENV!=="production"&&T.useDebugValue({query:f,match:x}),x}}Wh();function uo(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function qc(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}].`),uo(e,t,n)}function vC(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 ur(e){if(e.type)return e;if(e.charAt(0)==="#")return ur(vC(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().`:Pn(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.
34
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Pn(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}const SC=e=>{const t=ur(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ei=(e,t)=>{try{return SC(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Pa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,s)=>s<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Vh(e){e=ur(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),a=(p,u=(p+n/30)%12)=>i-s*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",d.push(t[3])),Pa({type:l,values:d})}function Yc(e){e=ur(e);let t=e.type==="hsl"||e.type==="hsla"?ur(Vh(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Uh(e,t){const n=Yc(e),r=Yc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ka(e,t){return e=ur(e),t=qc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Pa(e)}function Or(e,t,n){try{return ka(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Oa(e,t){if(e=ur(e),t=qc(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Pa(e)}function Ze(e,t,n){try{return Oa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ia(e,t){if(e=ur(e),t=qc(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Pa(e)}function et(e,t,n){try{return Ia(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Gc(e,t=.15){return Yc(e)>.5?Oa(e,t):Ia(e,t)}function Na(e,t,n){try{return Gc(e,t)}catch{return e}}const wC="exact-prop: ​";function Kc(e){return process.env.NODE_ENV==="production"?e:{...e,[wC]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const CC=T.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const Ti=()=>T.useContext(CC)??!1,EC=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function TC(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Ci(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Ci(i,r,t.components.mergeClassNameAndStyle):r}function AC({props:e,name:t}){const n=T.useContext(EC);return TC({props:e,name:t,theme:{components:n}})}let Hh=0;function PC(e){const[t,n]=T.useState(e),r=e||t;return T.useEffect(()=>{t==null&&(Hh+=1,n(`mui-${Hh}`))},[t]),r}const Rh={...T}.useId;function Ir(e){if(Rh!==void 0){const t=Rh();return e??t}return PC(e)}const qh={theme:void 0};function kC(e){let t,n;return function(i){let s=t;return(s===void 0||i.theme!==n)&&(qh.theme=i.theme,s=_h(e(qh)),t=s,n=i.theme),s}}function OC(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Yh=(e,t,n,r=[])=>{let i=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(i)?i[Number(s)]=n:i&&typeof i=="object"&&(i[s]=n):i&&typeof i=="object"&&(i[s]||(i[s]=r.includes(s)?[]:{}),i=i[s])})},IC=(e,t,n)=>{function r(i,s=[],a=[]){Object.entries(i).forEach(([l,d])=>{(!n||n&&!n([...s,l]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...s,l],Array.isArray(d)?[...a,l]:a):t([...s,l],d,a))})}r(e)},NC=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Xc(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},s={},a={};return IC(e,(l,d,p)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(l,d))){const u=`--${n?`${n}-`:""}${l.join("-")}`,f=NC(l,d);Object.assign(i,{[u]:f}),Yh(s,l,`var(${u})`,p),Yh(a,l,`var(${u}, ${f})`,p)}},l=>l[0]==="vars"),{css:i,vars:s,varsWithDefaults:a}}function FC(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:d="light",...p}=e,{vars:u,css:f,varsWithDefaults:y}=Xc(p,t);let x=y;const g={},{[d]:h,...m}=a;if(Object.entries(m||{}).forEach(([v,w])=>{const{vars:A,css:k,varsWithDefaults:D}=Xc(w,t);x=Mt(x,D),g[v]={css:k,vars:A}}),h){const{css:v,vars:w,varsWithDefaults:A}=Xc(h,t);x=Mt(x,A),g[d]={css:v,vars:w}}function S(v,w){let A=i;if(i==="class"&&(A=".%s"),i==="data"&&(A="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(A=`[${i}="%s"]`),v){if(A==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${a[v]?.palette?.mode||v})`]:{":root":w}};if(A)return e.defaultColorScheme===v?`:root, ${A.replace("%s",String(v))}`:A.replace("%s",String(v))}return":root"}return{vars:x,generateThemeVars:()=>{let v={...u};return Object.entries(g).forEach(([,{vars:w}])=>{v=Mt(v,w)}),v},generateStyleSheets:()=>{const v=[],w=e.defaultColorScheme||"light";function A(O,B){Object.keys(B).length&&v.push(typeof O=="string"?{[O]:{...B}}:O)}A(n(void 0,{...f}),f);const{[w]:k,...D}=g;if(k){const{css:O}=k,B=a[w]?.palette?.mode,L=!r&&B?{colorScheme:B,...O}:{...O};A(n(w,{...L}),L)}return Object.entries(D).forEach(([O,{css:B}])=>{const L=a[O]?.palette?.mode,E=!r&&L?{colorScheme:L,...B}:{...B};A(n(O,{...E}),E)}),s&&v.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),v}}}function MC(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Ce(e,t,n=void 0){const r={};for(const i in e){const s=e[i];let a="",l=!0;for(let d=0;d<s.length;d+=1){const p=s[d];p&&(a+=(l===!0?"":" ")+t(p),l=!1,n&&n[p]&&(a+=" "+n[p]))}r[i]=a}return r}const DC=Ea(),_C=mC("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ee(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),zC=e=>yC({props:e,name:"MuiContainer",defaultTheme:DC}),$C=(e,t)=>{const n=d=>Se(t,d),{classes:r,fixed:i,disableGutters:s,maxWidth:a}=e,l={root:["root",a&&`maxWidth${ee(String(a))}`,i&&"fixed",s&&"disableGutters"]};return Ce(l,n,r)};function BC(e={}){const{createStyledComponent:t=_C,useThemeProps:n=zC,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:l})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!l.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:l})=>l.fixed&&Object.keys(a.breakpoints.values).reduce((d,p)=>{const u=p,f=a.breakpoints.values[u];return f!==0&&(d[a.breakpoints.up(u)]={maxWidth:`${f}${a.breakpoints.unit}`}),d},{}),({theme:a,ownerState:l})=>({...l.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...l.maxWidth&&l.maxWidth!=="xs"&&{[a.breakpoints.up(l.maxWidth)]:{maxWidth:`${a.breakpoints.values[l.maxWidth]}${a.breakpoints.unit}`}}})),s=T.forwardRef(function(l,d){const p=n(l),{className:u,component:f="div",disableGutters:y=!1,fixed:x=!1,maxWidth:g="lg",classes:h,...m}=p,S={...p,component:f,disableGutters:y,fixed:x,maxWidth:g},C=$C(S,r);return c.jsx(i,{as:f,ownerState:S,className:pe(C.root,u),ref:d,...m})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])}),s}function Jc(e,t){return T.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Gh(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:di.white,default:di.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Kh=Gh();function Xh(){return{text:{primary:di.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:di.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Qc=Xh();function Jh(e,t,n,r){const i=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ia(e.main,i):t==="dark"&&(e.dark=Oa(e.main,s)))}function Qh(e,t,n,r,i){const s=i.light||i,a=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function LC(e="light"){return e==="dark"?{main:no[200],light:no[50],dark:no[400]}:{main:no[700],light:no[400],dark:no[800]}}function jC(e="light"){return e==="dark"?{main:to[200],light:to[50],dark:to[400]}:{main:to[500],light:to[300],dark:to[700]}}function WC(e="light"){return e==="dark"?{main:eo[500],light:eo[300],dark:eo[700]}:{main:eo[700],light:eo[400],dark:eo[800]}}function VC(e="light"){return e==="dark"?{main:ro[400],light:ro[300],dark:ro[700]}:{main:ro[700],light:ro[500],dark:ro[900]}}function UC(e="light"){return e==="dark"?{main:oo[400],light:oo[300],dark:oo[700]}:{main:oo[800],light:oo[500],dark:oo[900]}}function HC(e="light"){return e==="dark"?{main:ui[400],light:ui[300],dark:ui[700]}:{main:"#ed6c02",light:ui[500],dark:ui[900]}}function RC(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Zc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...s}=e,a=e.primary||LC(t),l=e.secondary||jC(t),d=e.error||WC(t),p=e.info||VC(t),u=e.success||UC(t),f=e.warning||HC(t);function y(m){if(i)return RC(m);const S=Uh(m,Qc.text.primary)>=n?Qc.text.primary:Kh.text.primary;if(process.env.NODE_ENV!=="production"){const C=Uh(m,S);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${S} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
34
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Pn(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}const SC=e=>{const t=ur(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ei=(e,t)=>{try{return SC(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Pa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,s)=>s<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Vh(e){e=ur(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),a=(p,u=(p+n/30)%12)=>i-s*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",d.push(t[3])),Pa({type:l,values:d})}function Yc(e){e=ur(e);let t=e.type==="hsl"||e.type==="hsla"?ur(Vh(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Hh(e,t){const n=Yc(e),r=Yc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ka(e,t){return e=ur(e),t=qc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Pa(e)}function Or(e,t,n){try{return ka(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Oa(e,t){if(e=ur(e),t=qc(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Pa(e)}function Ze(e,t,n){try{return Oa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ia(e,t){if(e=ur(e),t=qc(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Pa(e)}function et(e,t,n){try{return Ia(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Gc(e,t=.15){return Yc(e)>.5?Oa(e,t):Ia(e,t)}function Na(e,t,n){try{return Gc(e,t)}catch{return e}}const wC="exact-prop: ​";function Kc(e){return process.env.NODE_ENV==="production"?e:{...e,[wC]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const CC=T.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const Ti=()=>T.useContext(CC)??!1,EC=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function TC(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Ci(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Ci(i,r,t.components.mergeClassNameAndStyle):r}function AC({props:e,name:t}){const n=T.useContext(EC);return TC({props:e,name:t,theme:{components:n}})}let Uh=0;function PC(e){const[t,n]=T.useState(e),r=e||t;return T.useEffect(()=>{t==null&&(Uh+=1,n(`mui-${Uh}`))},[t]),r}const Rh={...T}.useId;function Ir(e){if(Rh!==void 0){const t=Rh();return e??t}return PC(e)}const qh={theme:void 0};function kC(e){let t,n;return function(i){let s=t;return(s===void 0||i.theme!==n)&&(qh.theme=i.theme,s=_h(e(qh)),t=s,n=i.theme),s}}function OC(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Yh=(e,t,n,r=[])=>{let i=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(i)?i[Number(s)]=n:i&&typeof i=="object"&&(i[s]=n):i&&typeof i=="object"&&(i[s]||(i[s]=r.includes(s)?[]:{}),i=i[s])})},IC=(e,t,n)=>{function r(i,s=[],a=[]){Object.entries(i).forEach(([l,d])=>{(!n||n&&!n([...s,l]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...s,l],Array.isArray(d)?[...a,l]:a):t([...s,l],d,a))})}r(e)},NC=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Xc(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},s={},a={};return IC(e,(l,d,p)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(l,d))){const u=`--${n?`${n}-`:""}${l.join("-")}`,f=NC(l,d);Object.assign(i,{[u]:f}),Yh(s,l,`var(${u})`,p),Yh(a,l,`var(${u}, ${f})`,p)}},l=>l[0]==="vars"),{css:i,vars:s,varsWithDefaults:a}}function FC(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:d="light",...p}=e,{vars:u,css:f,varsWithDefaults:y}=Xc(p,t);let x=y;const g={},{[d]:h,...m}=a;if(Object.entries(m||{}).forEach(([v,w])=>{const{vars:A,css:k,varsWithDefaults:D}=Xc(w,t);x=Mt(x,D),g[v]={css:k,vars:A}}),h){const{css:v,vars:w,varsWithDefaults:A}=Xc(h,t);x=Mt(x,A),g[d]={css:v,vars:w}}function S(v,w){let A=i;if(i==="class"&&(A=".%s"),i==="data"&&(A="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(A=`[${i}="%s"]`),v){if(A==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${a[v]?.palette?.mode||v})`]:{":root":w}};if(A)return e.defaultColorScheme===v?`:root, ${A.replace("%s",String(v))}`:A.replace("%s",String(v))}return":root"}return{vars:x,generateThemeVars:()=>{let v={...u};return Object.entries(g).forEach(([,{vars:w}])=>{v=Mt(v,w)}),v},generateStyleSheets:()=>{const v=[],w=e.defaultColorScheme||"light";function A(O,B){Object.keys(B).length&&v.push(typeof O=="string"?{[O]:{...B}}:O)}A(n(void 0,{...f}),f);const{[w]:k,...D}=g;if(k){const{css:O}=k,B=a[w]?.palette?.mode,L=!r&&B?{colorScheme:B,...O}:{...O};A(n(w,{...L}),L)}return Object.entries(D).forEach(([O,{css:B}])=>{const L=a[O]?.palette?.mode,E=!r&&L?{colorScheme:L,...B}:{...B};A(n(O,{...E}),E)}),s&&v.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),v}}}function MC(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Ce(e,t,n=void 0){const r={};for(const i in e){const s=e[i];let a="",l=!0;for(let d=0;d<s.length;d+=1){const p=s[d];p&&(a+=(l===!0?"":" ")+t(p),l=!1,n&&n[p]&&(a+=" "+n[p]))}r[i]=a}return r}const DC=Ea(),_C=mC("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ee(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),zC=e=>yC({props:e,name:"MuiContainer",defaultTheme:DC}),$C=(e,t)=>{const n=d=>Se(t,d),{classes:r,fixed:i,disableGutters:s,maxWidth:a}=e,l={root:["root",a&&`maxWidth${ee(String(a))}`,i&&"fixed",s&&"disableGutters"]};return Ce(l,n,r)};function BC(e={}){const{createStyledComponent:t=_C,useThemeProps:n=zC,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:l})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!l.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:l})=>l.fixed&&Object.keys(a.breakpoints.values).reduce((d,p)=>{const u=p,f=a.breakpoints.values[u];return f!==0&&(d[a.breakpoints.up(u)]={maxWidth:`${f}${a.breakpoints.unit}`}),d},{}),({theme:a,ownerState:l})=>({...l.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...l.maxWidth&&l.maxWidth!=="xs"&&{[a.breakpoints.up(l.maxWidth)]:{maxWidth:`${a.breakpoints.values[l.maxWidth]}${a.breakpoints.unit}`}}})),s=T.forwardRef(function(l,d){const p=n(l),{className:u,component:f="div",disableGutters:y=!1,fixed:x=!1,maxWidth:g="lg",classes:h,...m}=p,S={...p,component:f,disableGutters:y,fixed:x,maxWidth:g},C=$C(S,r);return c.jsx(i,{as:f,ownerState:S,className:pe(C.root,u),ref:d,...m})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])}),s}function Jc(e,t){return T.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Gh(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:di.white,default:di.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Kh=Gh();function Xh(){return{text:{primary:di.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:di.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Qc=Xh();function Jh(e,t,n,r){const i=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ia(e.main,i):t==="dark"&&(e.dark=Oa(e.main,s)))}function Qh(e,t,n,r,i){const s=i.light||i,a=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function LC(e="light"){return e==="dark"?{main:no[200],light:no[50],dark:no[400]}:{main:no[700],light:no[400],dark:no[800]}}function jC(e="light"){return e==="dark"?{main:to[200],light:to[50],dark:to[400]}:{main:to[500],light:to[300],dark:to[700]}}function WC(e="light"){return e==="dark"?{main:eo[500],light:eo[300],dark:eo[700]}:{main:eo[700],light:eo[400],dark:eo[800]}}function VC(e="light"){return e==="dark"?{main:ro[400],light:ro[300],dark:ro[700]}:{main:ro[700],light:ro[500],dark:ro[900]}}function HC(e="light"){return e==="dark"?{main:oo[400],light:oo[300],dark:oo[700]}:{main:oo[800],light:oo[500],dark:oo[900]}}function UC(e="light"){return e==="dark"?{main:ui[400],light:ui[300],dark:ui[700]}:{main:"#ed6c02",light:ui[500],dark:ui[900]}}function RC(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Zc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...s}=e,a=e.primary||LC(t),l=e.secondary||jC(t),d=e.error||WC(t),p=e.info||VC(t),u=e.success||HC(t),f=e.warning||UC(t);function y(m){if(i)return RC(m);const S=Hh(m,Qc.text.primary)>=n?Qc.text.primary:Kh.text.primary;if(process.env.NODE_ENV!=="production"){const C=Hh(m,S);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${S} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
35
35
  `))}return S}const x=({color:m,name:S,mainShade:C=500,lightShade:b=300,darkShade:v=700})=>{if(m={...m},!m.main&&m[C]&&(m.main=m[C]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
36
36
  The color object needs to have a \`main\` property or a \`${C}\` property.`:Pn(11,S?` (${S})`:"",C));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
37
37
  \`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead.
@@ -55,12 +55,12 @@ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
55
55
  theme.transitions = createTransitions(theme.transitions || {});
56
56
 
57
57
  export default theme;`}function rg(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const sE=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 aE(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})`:ka(t,sE(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${rg(n)})`:Ia(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${rg(n)})`:Oa(t,n)}})}function ed(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.":Pn(20));const f=Zc({...s,colorSpace:p}),y=Ea(e);let x=Mt(y,{mixins:YC(y.breakpoints,r),palette:f,shadows:ZC.slice(),typography:KC(f,l),transitions:rE(a),zIndex:{...oE}});if(x=Mt(x,u),x=t.reduce((g,h)=>Mt(g,h),x),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(m,S)=>{let C;for(C in m){const b=m[C];if(g.includes(C)&&Object.keys(b).length>0){if(process.env.NODE_ENV!=="production"){const v=Se("",C);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${C}\` 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}`]:b}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
58
- `))}m[C]={}}}};Object.keys(x.components).forEach(m=>{const S=x.components[m].styleOverrides;S&&m.startsWith("Mui")&&h(S,m)})}return x.unstable_sxConfig={...wi,...u?.unstable_sxConfig},x.unstable_sx=function(h){return Pr({sx:h,theme:this})},x.toRuntimeSource=ng,aE(x),x}function td(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 lE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=td(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function og(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ig(e){return e==="dark"?lE:[]}function cE(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...s}=e,a=Zc({...t,colorSpace:i});return{palette:a,opacity:{...og(a.mode),...n},overlays:r||ig(a.mode),...s}}function dE(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 uE=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],pE=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 uE(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 fE(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function X(e,t,n){!e[t]&&n&&(e[t]=n)}function Ai(e){return typeof e!="string"||!e.startsWith("hsl")?e:Vh(e)}function Qn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ei(Ai(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 hE(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Fn=e=>{try{return e()}catch{}},gE=(e="mui")=>OC(e);function nd(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const s=i==="dark"?"dark":"light";if(!r){t[i]=cE({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...l}=ed({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...og(s),...n?.opacity},overlays:n?.overlays||ig(s)},l}function mE(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=dE,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...u}=e,f=Object.keys(n)[0],y=r||(n.light&&f!=="light"?"light":f),x=gE(s),{[y]:g,light:h,dark:m,...S}=n,C={...S};let b=g;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:Pn(21,y));let v;a&&(v="oklch");const w=nd(v,C,b,u,y);h&&!C.light&&nd(v,C,h,void 0,"light"),m&&!C.dark&&nd(v,C,m,void 0,"dark");let A={defaultColorScheme:y,...w,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:x,colorSchemes:C,font:{...qC(w.typography),...w.font},spacing:hE(u.spacing)};Object.keys(A.colorSchemes).forEach(L=>{const E=A.colorSchemes[L].palette,I=W=>{const _=W.split("-"),z=_[1],N=_[2];return x(W,E[z][N])};E.mode==="light"&&(X(E.common,"background","#fff"),X(E.common,"onBackground","#000")),E.mode==="dark"&&(X(E.common,"background","#000"),X(E.common,"onBackground","#fff"));function $(W,_,z){if(v){let N;return W===Or&&(N=`transparent ${((1-z)*100).toFixed(0)}%`),W===Ze&&(N=`#000 ${(z*100).toFixed(0)}%`),W===et&&(N=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${v}, ${_}, ${N})`}return W(_,z)}if(fE(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){X(E.Alert,"errorColor",$(Ze,E.error.light,.6)),X(E.Alert,"infoColor",$(Ze,E.info.light,.6)),X(E.Alert,"successColor",$(Ze,E.success.light,.6)),X(E.Alert,"warningColor",$(Ze,E.warning.light,.6)),X(E.Alert,"errorFilledBg",I("palette-error-main")),X(E.Alert,"infoFilledBg",I("palette-info-main")),X(E.Alert,"successFilledBg",I("palette-success-main")),X(E.Alert,"warningFilledBg",I("palette-warning-main")),X(E.Alert,"errorFilledColor",Fn(()=>E.getContrastText(E.error.main))),X(E.Alert,"infoFilledColor",Fn(()=>E.getContrastText(E.info.main))),X(E.Alert,"successFilledColor",Fn(()=>E.getContrastText(E.success.main))),X(E.Alert,"warningFilledColor",Fn(()=>E.getContrastText(E.warning.main))),X(E.Alert,"errorStandardBg",$(et,E.error.light,.9)),X(E.Alert,"infoStandardBg",$(et,E.info.light,.9)),X(E.Alert,"successStandardBg",$(et,E.success.light,.9)),X(E.Alert,"warningStandardBg",$(et,E.warning.light,.9)),X(E.Alert,"errorIconColor",I("palette-error-main")),X(E.Alert,"infoIconColor",I("palette-info-main")),X(E.Alert,"successIconColor",I("palette-success-main")),X(E.Alert,"warningIconColor",I("palette-warning-main")),X(E.AppBar,"defaultBg",I("palette-grey-100")),X(E.Avatar,"defaultBg",I("palette-grey-400")),X(E.Button,"inheritContainedBg",I("palette-grey-300")),X(E.Button,"inheritContainedHoverBg",I("palette-grey-A100")),X(E.Chip,"defaultBorder",I("palette-grey-400")),X(E.Chip,"defaultAvatarColor",I("palette-grey-700")),X(E.Chip,"defaultIconColor",I("palette-grey-700")),X(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),X(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),X(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),X(E.LinearProgress,"primaryBg",$(et,E.primary.main,.62)),X(E.LinearProgress,"secondaryBg",$(et,E.secondary.main,.62)),X(E.LinearProgress,"errorBg",$(et,E.error.main,.62)),X(E.LinearProgress,"infoBg",$(et,E.info.main,.62)),X(E.LinearProgress,"successBg",$(et,E.success.main,.62)),X(E.LinearProgress,"warningBg",$(et,E.warning.main,.62)),X(E.Skeleton,"bg",v?$(Or,E.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),X(E.Slider,"primaryTrack",$(et,E.primary.main,.62)),X(E.Slider,"secondaryTrack",$(et,E.secondary.main,.62)),X(E.Slider,"errorTrack",$(et,E.error.main,.62)),X(E.Slider,"infoTrack",$(et,E.info.main,.62)),X(E.Slider,"successTrack",$(et,E.success.main,.62)),X(E.Slider,"warningTrack",$(et,E.warning.main,.62));const W=v?$(Ze,E.background.default,.6825):Na(E.background.default,.8);X(E.SnackbarContent,"bg",W),X(E.SnackbarContent,"color",Fn(()=>v?Qc.text.primary:E.getContrastText(W))),X(E.SpeedDialAction,"fabHoverBg",Na(E.background.paper,.15)),X(E.StepConnector,"border",I("palette-grey-400")),X(E.StepContent,"border",I("palette-grey-400")),X(E.Switch,"defaultColor",I("palette-common-white")),X(E.Switch,"defaultDisabledColor",I("palette-grey-100")),X(E.Switch,"primaryDisabledColor",$(et,E.primary.main,.62)),X(E.Switch,"secondaryDisabledColor",$(et,E.secondary.main,.62)),X(E.Switch,"errorDisabledColor",$(et,E.error.main,.62)),X(E.Switch,"infoDisabledColor",$(et,E.info.main,.62)),X(E.Switch,"successDisabledColor",$(et,E.success.main,.62)),X(E.Switch,"warningDisabledColor",$(et,E.warning.main,.62)),X(E.TableCell,"border",$(et,$(Or,E.divider,1),.88)),X(E.Tooltip,"bg",$(Or,E.grey[700],.92))}if(E.mode==="dark"){X(E.Alert,"errorColor",$(et,E.error.light,.6)),X(E.Alert,"infoColor",$(et,E.info.light,.6)),X(E.Alert,"successColor",$(et,E.success.light,.6)),X(E.Alert,"warningColor",$(et,E.warning.light,.6)),X(E.Alert,"errorFilledBg",I("palette-error-dark")),X(E.Alert,"infoFilledBg",I("palette-info-dark")),X(E.Alert,"successFilledBg",I("palette-success-dark")),X(E.Alert,"warningFilledBg",I("palette-warning-dark")),X(E.Alert,"errorFilledColor",Fn(()=>E.getContrastText(E.error.dark))),X(E.Alert,"infoFilledColor",Fn(()=>E.getContrastText(E.info.dark))),X(E.Alert,"successFilledColor",Fn(()=>E.getContrastText(E.success.dark))),X(E.Alert,"warningFilledColor",Fn(()=>E.getContrastText(E.warning.dark))),X(E.Alert,"errorStandardBg",$(Ze,E.error.light,.9)),X(E.Alert,"infoStandardBg",$(Ze,E.info.light,.9)),X(E.Alert,"successStandardBg",$(Ze,E.success.light,.9)),X(E.Alert,"warningStandardBg",$(Ze,E.warning.light,.9)),X(E.Alert,"errorIconColor",I("palette-error-main")),X(E.Alert,"infoIconColor",I("palette-info-main")),X(E.Alert,"successIconColor",I("palette-success-main")),X(E.Alert,"warningIconColor",I("palette-warning-main")),X(E.AppBar,"defaultBg",I("palette-grey-900")),X(E.AppBar,"darkBg",I("palette-background-paper")),X(E.AppBar,"darkColor",I("palette-text-primary")),X(E.Avatar,"defaultBg",I("palette-grey-600")),X(E.Button,"inheritContainedBg",I("palette-grey-800")),X(E.Button,"inheritContainedHoverBg",I("palette-grey-700")),X(E.Chip,"defaultBorder",I("palette-grey-700")),X(E.Chip,"defaultAvatarColor",I("palette-grey-300")),X(E.Chip,"defaultIconColor",I("palette-grey-300")),X(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),X(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),X(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),X(E.LinearProgress,"primaryBg",$(Ze,E.primary.main,.5)),X(E.LinearProgress,"secondaryBg",$(Ze,E.secondary.main,.5)),X(E.LinearProgress,"errorBg",$(Ze,E.error.main,.5)),X(E.LinearProgress,"infoBg",$(Ze,E.info.main,.5)),X(E.LinearProgress,"successBg",$(Ze,E.success.main,.5)),X(E.LinearProgress,"warningBg",$(Ze,E.warning.main,.5)),X(E.Skeleton,"bg",v?$(Or,E.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),X(E.Slider,"primaryTrack",$(Ze,E.primary.main,.5)),X(E.Slider,"secondaryTrack",$(Ze,E.secondary.main,.5)),X(E.Slider,"errorTrack",$(Ze,E.error.main,.5)),X(E.Slider,"infoTrack",$(Ze,E.info.main,.5)),X(E.Slider,"successTrack",$(Ze,E.success.main,.5)),X(E.Slider,"warningTrack",$(Ze,E.warning.main,.5));const W=v?$(et,E.background.default,.985):Na(E.background.default,.98);X(E.SnackbarContent,"bg",W),X(E.SnackbarContent,"color",Fn(()=>v?Kh.text.primary:E.getContrastText(W))),X(E.SpeedDialAction,"fabHoverBg",Na(E.background.paper,.15)),X(E.StepConnector,"border",I("palette-grey-600")),X(E.StepContent,"border",I("palette-grey-600")),X(E.Switch,"defaultColor",I("palette-grey-300")),X(E.Switch,"defaultDisabledColor",I("palette-grey-600")),X(E.Switch,"primaryDisabledColor",$(Ze,E.primary.main,.55)),X(E.Switch,"secondaryDisabledColor",$(Ze,E.secondary.main,.55)),X(E.Switch,"errorDisabledColor",$(Ze,E.error.main,.55)),X(E.Switch,"infoDisabledColor",$(Ze,E.info.main,.55)),X(E.Switch,"successDisabledColor",$(Ze,E.success.main,.55)),X(E.Switch,"warningDisabledColor",$(Ze,E.warning.main,.55)),X(E.TableCell,"border",$(Ze,$(Or,E.divider,1),.68)),X(E.Tooltip,"bg",$(Or,E.grey[700],.92))}Qn(E.background,"default"),Qn(E.background,"paper"),Qn(E.common,"background"),Qn(E.common,"onBackground"),Qn(E,"divider"),Object.keys(E).forEach(W=>{const _=E[W];W!=="tonalOffset"&&_&&typeof _=="object"&&(_.main&&X(E[W],"mainChannel",Ei(Ai(_.main))),_.light&&X(E[W],"lightChannel",Ei(Ai(_.light))),_.dark&&X(E[W],"darkChannel",Ei(Ai(_.dark))),_.contrastText&&X(E[W],"contrastTextChannel",Ei(Ai(_.contrastText))),W==="text"&&(Qn(E[W],"primary"),Qn(E[W],"secondary")),W==="action"&&(_.active&&Qn(E[W],"active"),_.selected&&Qn(E[W],"selected")))})}),A=t.reduce((L,E)=>Mt(L,E),A);const k={prefix:s,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:pE(A),enableContrastVars:a},{vars:D,generateThemeVars:O,generateStyleSheets:B}=FC(A,k);return A.vars=D,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([L,E])=>{A[L]=E}),A.generateThemeVars=O,A.generateStyleSheets=B,A.generateSpacing=function(){return Ah(u.spacing,Vc(this))},A.getColorSchemeSelector=MC(d),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=l,A.unstable_sxConfig={...wi,...u?.unstable_sxConfig},A.unstable_sx=function(E){return Pr({sx:E,theme:this})},A.toRuntimeSource=ng,A}function sg(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Zc({...n===!0?{}:n.palette,mode:t})})}function ag(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 ed(e,...t);let u=n;"palette"in e||p[l]&&(p[l]!==!0?u=p[l].palette:l==="dark"&&(u={mode:"dark"}));const f=ed({...e,palette:u},...t);return f.defaultColorScheme=l,f.colorSchemes=p,f.palette.mode==="light"&&(f.colorSchemes.light={...p.light!==!0&&p.light,palette:f.palette},sg(f,"dark",p.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:f.palette},sg(f,"light",p.light)),f}return!n&&!("light"in p)&&l==="light"&&(p.light=!0),mE({...a,colorSchemes:p,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const rd=ag();function Mn(){const e=Ta(rd);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[pi]||e}function Pi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Dt=e=>Pi(e)&&e!=="classes",Q=$h({themeId:pi,defaultTheme:rd,rootShouldForwardProp:Dt});function od(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function lg(e){return c.jsx(kh,{...e,defaultTheme:rd,themeId:pi})}process.env.NODE_ENV!=="production"&&(lg.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function yE(e){return function(n){return c.jsx(lg,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function bE(){return Oh}const be=kC;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Te(e){return AC(e)}function xE(e){return Se("MuiSvgIcon",e)}we("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vE=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ee(t)}`,`fontSize${ee(n)}`]};return Ce(i,xE,r)},SE=Q("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)}`]]}})(be(({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}}]}))),pr=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:f,viewBox:y="0 0 24 24",...x}=r,g=T.isValidElement(i)&&i.type==="svg",h={...r,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:y,hasSvgAsChild:g},m={};u||(m.viewBox=y);const S=vE(h);return c.jsxs(SE,{as:l,className:pe(S.root,s),focusable:"false",color:p,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...m,...x,...g&&i.props,ownerState:h,children:[g?i.props.children:i,f?c.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(pr.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}),pr.muiName="SvgIcon";function dt(e,t){function n(r,i){return c.jsx(pr,{"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=pr.muiName,T.memo(T.forwardRef(n))}function cg(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 wt(e){return e&&e.ownerDocument||document}function Zn(e){return wt(e).defaultView||window}function dg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function po(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:s}=T.useRef(t!==void 0),[a,l]=T.useState(n),d=s?t:a;if(process.env.NODE_ENV!=="production"){T.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(`
58
+ `))}m[C]={}}}};Object.keys(x.components).forEach(m=>{const S=x.components[m].styleOverrides;S&&m.startsWith("Mui")&&h(S,m)})}return x.unstable_sxConfig={...wi,...u?.unstable_sxConfig},x.unstable_sx=function(h){return Pr({sx:h,theme:this})},x.toRuntimeSource=ng,aE(x),x}function td(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 lE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=td(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function og(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ig(e){return e==="dark"?lE:[]}function cE(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...s}=e,a=Zc({...t,colorSpace:i});return{palette:a,opacity:{...og(a.mode),...n},overlays:r||ig(a.mode),...s}}function dE(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 uE=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],pE=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 uE(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 fE(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function X(e,t,n){!e[t]&&n&&(e[t]=n)}function Ai(e){return typeof e!="string"||!e.startsWith("hsl")?e:Vh(e)}function Zn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ei(Ai(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 hE(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Fn=e=>{try{return e()}catch{}},gE=(e="mui")=>OC(e);function nd(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const s=i==="dark"?"dark":"light";if(!r){t[i]=cE({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...l}=ed({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...og(s),...n?.opacity},overlays:n?.overlays||ig(s)},l}function mE(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=dE,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...u}=e,f=Object.keys(n)[0],y=r||(n.light&&f!=="light"?"light":f),x=gE(s),{[y]:g,light:h,dark:m,...S}=n,C={...S};let b=g;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:Pn(21,y));let v;a&&(v="oklch");const w=nd(v,C,b,u,y);h&&!C.light&&nd(v,C,h,void 0,"light"),m&&!C.dark&&nd(v,C,m,void 0,"dark");let A={defaultColorScheme:y,...w,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:x,colorSchemes:C,font:{...qC(w.typography),...w.font},spacing:hE(u.spacing)};Object.keys(A.colorSchemes).forEach(L=>{const E=A.colorSchemes[L].palette,I=W=>{const _=W.split("-"),z=_[1],N=_[2];return x(W,E[z][N])};E.mode==="light"&&(X(E.common,"background","#fff"),X(E.common,"onBackground","#000")),E.mode==="dark"&&(X(E.common,"background","#000"),X(E.common,"onBackground","#fff"));function $(W,_,z){if(v){let N;return W===Or&&(N=`transparent ${((1-z)*100).toFixed(0)}%`),W===Ze&&(N=`#000 ${(z*100).toFixed(0)}%`),W===et&&(N=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${v}, ${_}, ${N})`}return W(_,z)}if(fE(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){X(E.Alert,"errorColor",$(Ze,E.error.light,.6)),X(E.Alert,"infoColor",$(Ze,E.info.light,.6)),X(E.Alert,"successColor",$(Ze,E.success.light,.6)),X(E.Alert,"warningColor",$(Ze,E.warning.light,.6)),X(E.Alert,"errorFilledBg",I("palette-error-main")),X(E.Alert,"infoFilledBg",I("palette-info-main")),X(E.Alert,"successFilledBg",I("palette-success-main")),X(E.Alert,"warningFilledBg",I("palette-warning-main")),X(E.Alert,"errorFilledColor",Fn(()=>E.getContrastText(E.error.main))),X(E.Alert,"infoFilledColor",Fn(()=>E.getContrastText(E.info.main))),X(E.Alert,"successFilledColor",Fn(()=>E.getContrastText(E.success.main))),X(E.Alert,"warningFilledColor",Fn(()=>E.getContrastText(E.warning.main))),X(E.Alert,"errorStandardBg",$(et,E.error.light,.9)),X(E.Alert,"infoStandardBg",$(et,E.info.light,.9)),X(E.Alert,"successStandardBg",$(et,E.success.light,.9)),X(E.Alert,"warningStandardBg",$(et,E.warning.light,.9)),X(E.Alert,"errorIconColor",I("palette-error-main")),X(E.Alert,"infoIconColor",I("palette-info-main")),X(E.Alert,"successIconColor",I("palette-success-main")),X(E.Alert,"warningIconColor",I("palette-warning-main")),X(E.AppBar,"defaultBg",I("palette-grey-100")),X(E.Avatar,"defaultBg",I("palette-grey-400")),X(E.Button,"inheritContainedBg",I("palette-grey-300")),X(E.Button,"inheritContainedHoverBg",I("palette-grey-A100")),X(E.Chip,"defaultBorder",I("palette-grey-400")),X(E.Chip,"defaultAvatarColor",I("palette-grey-700")),X(E.Chip,"defaultIconColor",I("palette-grey-700")),X(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),X(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),X(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),X(E.LinearProgress,"primaryBg",$(et,E.primary.main,.62)),X(E.LinearProgress,"secondaryBg",$(et,E.secondary.main,.62)),X(E.LinearProgress,"errorBg",$(et,E.error.main,.62)),X(E.LinearProgress,"infoBg",$(et,E.info.main,.62)),X(E.LinearProgress,"successBg",$(et,E.success.main,.62)),X(E.LinearProgress,"warningBg",$(et,E.warning.main,.62)),X(E.Skeleton,"bg",v?$(Or,E.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),X(E.Slider,"primaryTrack",$(et,E.primary.main,.62)),X(E.Slider,"secondaryTrack",$(et,E.secondary.main,.62)),X(E.Slider,"errorTrack",$(et,E.error.main,.62)),X(E.Slider,"infoTrack",$(et,E.info.main,.62)),X(E.Slider,"successTrack",$(et,E.success.main,.62)),X(E.Slider,"warningTrack",$(et,E.warning.main,.62));const W=v?$(Ze,E.background.default,.6825):Na(E.background.default,.8);X(E.SnackbarContent,"bg",W),X(E.SnackbarContent,"color",Fn(()=>v?Qc.text.primary:E.getContrastText(W))),X(E.SpeedDialAction,"fabHoverBg",Na(E.background.paper,.15)),X(E.StepConnector,"border",I("palette-grey-400")),X(E.StepContent,"border",I("palette-grey-400")),X(E.Switch,"defaultColor",I("palette-common-white")),X(E.Switch,"defaultDisabledColor",I("palette-grey-100")),X(E.Switch,"primaryDisabledColor",$(et,E.primary.main,.62)),X(E.Switch,"secondaryDisabledColor",$(et,E.secondary.main,.62)),X(E.Switch,"errorDisabledColor",$(et,E.error.main,.62)),X(E.Switch,"infoDisabledColor",$(et,E.info.main,.62)),X(E.Switch,"successDisabledColor",$(et,E.success.main,.62)),X(E.Switch,"warningDisabledColor",$(et,E.warning.main,.62)),X(E.TableCell,"border",$(et,$(Or,E.divider,1),.88)),X(E.Tooltip,"bg",$(Or,E.grey[700],.92))}if(E.mode==="dark"){X(E.Alert,"errorColor",$(et,E.error.light,.6)),X(E.Alert,"infoColor",$(et,E.info.light,.6)),X(E.Alert,"successColor",$(et,E.success.light,.6)),X(E.Alert,"warningColor",$(et,E.warning.light,.6)),X(E.Alert,"errorFilledBg",I("palette-error-dark")),X(E.Alert,"infoFilledBg",I("palette-info-dark")),X(E.Alert,"successFilledBg",I("palette-success-dark")),X(E.Alert,"warningFilledBg",I("palette-warning-dark")),X(E.Alert,"errorFilledColor",Fn(()=>E.getContrastText(E.error.dark))),X(E.Alert,"infoFilledColor",Fn(()=>E.getContrastText(E.info.dark))),X(E.Alert,"successFilledColor",Fn(()=>E.getContrastText(E.success.dark))),X(E.Alert,"warningFilledColor",Fn(()=>E.getContrastText(E.warning.dark))),X(E.Alert,"errorStandardBg",$(Ze,E.error.light,.9)),X(E.Alert,"infoStandardBg",$(Ze,E.info.light,.9)),X(E.Alert,"successStandardBg",$(Ze,E.success.light,.9)),X(E.Alert,"warningStandardBg",$(Ze,E.warning.light,.9)),X(E.Alert,"errorIconColor",I("palette-error-main")),X(E.Alert,"infoIconColor",I("palette-info-main")),X(E.Alert,"successIconColor",I("palette-success-main")),X(E.Alert,"warningIconColor",I("palette-warning-main")),X(E.AppBar,"defaultBg",I("palette-grey-900")),X(E.AppBar,"darkBg",I("palette-background-paper")),X(E.AppBar,"darkColor",I("palette-text-primary")),X(E.Avatar,"defaultBg",I("palette-grey-600")),X(E.Button,"inheritContainedBg",I("palette-grey-800")),X(E.Button,"inheritContainedHoverBg",I("palette-grey-700")),X(E.Chip,"defaultBorder",I("palette-grey-700")),X(E.Chip,"defaultAvatarColor",I("palette-grey-300")),X(E.Chip,"defaultIconColor",I("palette-grey-300")),X(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),X(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),X(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),X(E.LinearProgress,"primaryBg",$(Ze,E.primary.main,.5)),X(E.LinearProgress,"secondaryBg",$(Ze,E.secondary.main,.5)),X(E.LinearProgress,"errorBg",$(Ze,E.error.main,.5)),X(E.LinearProgress,"infoBg",$(Ze,E.info.main,.5)),X(E.LinearProgress,"successBg",$(Ze,E.success.main,.5)),X(E.LinearProgress,"warningBg",$(Ze,E.warning.main,.5)),X(E.Skeleton,"bg",v?$(Or,E.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),X(E.Slider,"primaryTrack",$(Ze,E.primary.main,.5)),X(E.Slider,"secondaryTrack",$(Ze,E.secondary.main,.5)),X(E.Slider,"errorTrack",$(Ze,E.error.main,.5)),X(E.Slider,"infoTrack",$(Ze,E.info.main,.5)),X(E.Slider,"successTrack",$(Ze,E.success.main,.5)),X(E.Slider,"warningTrack",$(Ze,E.warning.main,.5));const W=v?$(et,E.background.default,.985):Na(E.background.default,.98);X(E.SnackbarContent,"bg",W),X(E.SnackbarContent,"color",Fn(()=>v?Kh.text.primary:E.getContrastText(W))),X(E.SpeedDialAction,"fabHoverBg",Na(E.background.paper,.15)),X(E.StepConnector,"border",I("palette-grey-600")),X(E.StepContent,"border",I("palette-grey-600")),X(E.Switch,"defaultColor",I("palette-grey-300")),X(E.Switch,"defaultDisabledColor",I("palette-grey-600")),X(E.Switch,"primaryDisabledColor",$(Ze,E.primary.main,.55)),X(E.Switch,"secondaryDisabledColor",$(Ze,E.secondary.main,.55)),X(E.Switch,"errorDisabledColor",$(Ze,E.error.main,.55)),X(E.Switch,"infoDisabledColor",$(Ze,E.info.main,.55)),X(E.Switch,"successDisabledColor",$(Ze,E.success.main,.55)),X(E.Switch,"warningDisabledColor",$(Ze,E.warning.main,.55)),X(E.TableCell,"border",$(Ze,$(Or,E.divider,1),.68)),X(E.Tooltip,"bg",$(Or,E.grey[700],.92))}Zn(E.background,"default"),Zn(E.background,"paper"),Zn(E.common,"background"),Zn(E.common,"onBackground"),Zn(E,"divider"),Object.keys(E).forEach(W=>{const _=E[W];W!=="tonalOffset"&&_&&typeof _=="object"&&(_.main&&X(E[W],"mainChannel",Ei(Ai(_.main))),_.light&&X(E[W],"lightChannel",Ei(Ai(_.light))),_.dark&&X(E[W],"darkChannel",Ei(Ai(_.dark))),_.contrastText&&X(E[W],"contrastTextChannel",Ei(Ai(_.contrastText))),W==="text"&&(Zn(E[W],"primary"),Zn(E[W],"secondary")),W==="action"&&(_.active&&Zn(E[W],"active"),_.selected&&Zn(E[W],"selected")))})}),A=t.reduce((L,E)=>Mt(L,E),A);const k={prefix:s,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:pE(A),enableContrastVars:a},{vars:D,generateThemeVars:O,generateStyleSheets:B}=FC(A,k);return A.vars=D,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([L,E])=>{A[L]=E}),A.generateThemeVars=O,A.generateStyleSheets=B,A.generateSpacing=function(){return Ah(u.spacing,Vc(this))},A.getColorSchemeSelector=MC(d),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=l,A.unstable_sxConfig={...wi,...u?.unstable_sxConfig},A.unstable_sx=function(E){return Pr({sx:E,theme:this})},A.toRuntimeSource=ng,A}function sg(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Zc({...n===!0?{}:n.palette,mode:t})})}function ag(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 ed(e,...t);let u=n;"palette"in e||p[l]&&(p[l]!==!0?u=p[l].palette:l==="dark"&&(u={mode:"dark"}));const f=ed({...e,palette:u},...t);return f.defaultColorScheme=l,f.colorSchemes=p,f.palette.mode==="light"&&(f.colorSchemes.light={...p.light!==!0&&p.light,palette:f.palette},sg(f,"dark",p.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:f.palette},sg(f,"light",p.light)),f}return!n&&!("light"in p)&&l==="light"&&(p.light=!0),mE({...a,colorSchemes:p,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const rd=ag();function Mn(){const e=Ta(rd);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[pi]||e}function Pi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Dt=e=>Pi(e)&&e!=="classes",Q=$h({themeId:pi,defaultTheme:rd,rootShouldForwardProp:Dt});function od(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function lg(e){return c.jsx(kh,{...e,defaultTheme:rd,themeId:pi})}process.env.NODE_ENV!=="production"&&(lg.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function yE(e){return function(n){return c.jsx(lg,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function bE(){return Oh}const be=kC;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Te(e){return AC(e)}function xE(e){return Se("MuiSvgIcon",e)}we("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vE=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ee(t)}`,`fontSize${ee(n)}`]};return Ce(i,xE,r)},SE=Q("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)}`]]}})(be(({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}}]}))),pr=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:f,viewBox:y="0 0 24 24",...x}=r,g=T.isValidElement(i)&&i.type==="svg",h={...r,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:y,hasSvgAsChild:g},m={};u||(m.viewBox=y);const S=vE(h);return c.jsxs(SE,{as:l,className:pe(S.root,s),focusable:"false",color:p,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...m,...x,...g&&i.props,ownerState:h,children:[g?i.props.children:i,f?c.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(pr.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}),pr.muiName="SvgIcon";function dt(e,t){function n(r,i){return c.jsx(pr,{"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=pr.muiName,T.memo(T.forwardRef(n))}function cg(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 wt(e){return e&&e.ownerDocument||document}function er(e){return wt(e).defaultView||window}function dg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function po(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:s}=T.useRef(t!==void 0),[a,l]=T.useState(n),d=s?t:a;if(process.env.NODE_ENV!=="production"){T.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}=T.useRef(n);T.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
61
  `))},[JSON.stringify(n)])}const p=T.useCallback(u=>{s||l(u)},[]);return[d,p]}function jt(e){const t=T.useRef(e);return an(()=>{t.current=e}),T.useRef((...n)=>(0,t.current)(...n)).current}function xt(...e){const t=T.useRef(void 0),n=T.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 T.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function wE(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function ug(e,t){if(!e)return t;function n(a,l){const d={};return Object.keys(l).forEach(p=>{wE(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=pe(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=pe(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 Fa={exports:{}},ot={};var pg;function CE(){if(pg)return ot;pg=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"),f=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function g(h){if(typeof h=="object"&&h!==null){var m=h.$$typeof;switch(m){case e:switch(h=h.type,h){case n:case i:case r:case d:case p:case y:return h;default:switch(h=h&&h.$$typeof,h){case a:case l:case f:case u:return h;case s:return h;default:return m}}case t:return m}}}return ot.ContextConsumer=s,ot.ContextProvider=a,ot.Element=e,ot.ForwardRef=l,ot.Fragment=n,ot.Lazy=f,ot.Memo=u,ot.Portal=t,ot.Profiler=i,ot.StrictMode=r,ot.Suspense=d,ot.SuspenseList=p,ot.isContextConsumer=function(h){return g(h)===s},ot.isContextProvider=function(h){return g(h)===a},ot.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},ot.isForwardRef=function(h){return g(h)===l},ot.isFragment=function(h){return g(h)===n},ot.isLazy=function(h){return g(h)===f},ot.isMemo=function(h){return g(h)===u},ot.isPortal=function(h){return g(h)===t},ot.isProfiler=function(h){return g(h)===i},ot.isStrictMode=function(h){return g(h)===r},ot.isSuspense=function(h){return g(h)===d},ot.isSuspenseList=function(h){return g(h)===p},ot.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===i||h===r||h===d||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===u||h.$$typeof===a||h.$$typeof===s||h.$$typeof===l||h.$$typeof===x||h.getModuleId!==void 0)},ot.typeOf=g,ot}var it={};var fg;function EE(){return fg||(fg=1,process.env.NODE_ENV!=="production"&&(function(){function e(h){if(typeof h=="object"&&h!==null){var m=h.$$typeof;switch(m){case t:switch(h=h.type,h){case r:case s:case i:case p:case u:case x:return h;default:switch(h=h&&h.$$typeof,h){case l:case d:case y:case f:return h;case a:return h;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"),f=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");it.ContextConsumer=a,it.ContextProvider=l,it.Element=t,it.ForwardRef=d,it.Fragment=r,it.Lazy=y,it.Memo=f,it.Portal=n,it.Profiler=s,it.StrictMode=i,it.Suspense=p,it.SuspenseList=u,it.isContextConsumer=function(h){return e(h)===a},it.isContextProvider=function(h){return e(h)===l},it.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},it.isForwardRef=function(h){return e(h)===d},it.isFragment=function(h){return e(h)===r},it.isLazy=function(h){return e(h)===y},it.isMemo=function(h){return e(h)===f},it.isPortal=function(h){return e(h)===n},it.isProfiler=function(h){return e(h)===s},it.isStrictMode=function(h){return e(h)===i},it.isSuspense=function(h){return e(h)===p},it.isSuspenseList=function(h){return e(h)===u},it.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===s||h===i||h===p||h===u||typeof h=="object"&&h!==null&&(h.$$typeof===y||h.$$typeof===f||h.$$typeof===l||h.$$typeof===a||h.$$typeof===d||h.$$typeof===g||h.getModuleId!==void 0)},it.typeOf=e})()),it}var hg;function TE(){return hg||(hg=1,process.env.NODE_ENV==="production"?Fa.exports=CE():Fa.exports=EE()),Fa.exports}var id=TE();function vn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function gg(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 sd(e,t){return sd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},sd(e,t)}function mg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sd(e,t)}const yg={disabled:!1};var AE=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 Ma=F.createContext(null);var PE=function(t){return t.scrollTop},ki="unmounted",Nr="exited",Fr="entering",fo="entered",ad="exiting",Dn=(function(e){mg(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=Nr,s.appearStatus=Fr):d=fo:r.unmountOnExit||r.mountOnEnter?d=ki:d=Nr,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var a=i.in;return a&&s.status===ki?{status:Nr}: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!==Fr&&a!==fo&&(s=Fr):(a===Fr||a===fo)&&(s=ad)}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===Fr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Fo.findDOMNode(this);a&&PE(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nr&&this.setState({status:ki})},n.performEnter=function(i){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:i,d=this.props.nodeRef?[l]:[Fo.findDOMNode(this),l],p=d[0],u=d[1],f=this.getTimeouts(),y=l?f.appear:f.enter;if(!i&&!a||yg.disabled){this.safeSetState({status:fo},function(){s.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:Fr},function(){s.props.onEntering(p,u),s.onTransitionEnd(y,function(){s.safeSetState({status:fo},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:Fo.findDOMNode(this);if(!s||yg.disabled){this.safeSetState({status:Nr},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:ad},function(){i.props.onExiting(l),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Nr},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:Fo.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===ki)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=gg(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return F.createElement(Ma.Provider,{value:null},typeof a=="function"?a(i,l):F.cloneElement(F.Children.only(a),l))},t})(F.Component);Dn.contextType=Ma,Dn.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=AE;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 ho(){}Dn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ho,onEntering:ho,onEntered:ho,onExit:ho,onExiting:ho,onExited:ho},Dn.UNMOUNTED=ki,Dn.EXITED=Nr,Dn.ENTERING=Fr,Dn.ENTERED=fo,Dn.EXITING=ad;function kE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ld(e,t){var n=function(s){return t&&F.isValidElement(s)?t(s):s},r=Object.create(null);return e&&F.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function OE(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 Mr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function IE(e,t){return ld(e.children,function(n){return F.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Mr(n,"appear",e),enter:Mr(n,"enter",e),exit:Mr(n,"exit",e)})})}function NE(e,t,n){var r=ld(e.children),i=OE(t,r);return Object.keys(i).forEach(function(s){var a=i[s];if(F.isValidElement(a)){var l=s in t,d=s in r,p=t[s],u=F.isValidElement(p)&&!p.props.in;d&&(!l||u)?i[s]=F.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Mr(a,"exit",e),enter:Mr(a,"enter",e)}):!d&&l&&!u?i[s]=F.cloneElement(a,{in:!1}):d&&l&&F.isValidElement(p)&&(i[s]=F.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:Mr(a,"exit",e),enter:Mr(a,"enter",e)}))}}),i}var FE=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ME={component:"div",childFactory:function(t){return t}},cd=(function(e){mg(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=s.handleExited.bind(kE(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?IE(i,l):NE(i,a,l),firstRender:!1}},n.handleExited=function(i,s){var a=ld(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(s),this.mounted&&this.setState(function(l){var d=ea({},l.children);return delete d[i.key],{children:d}}))},n.render=function(){var i=this.props,s=i.component,a=i.childFactory,l=gg(i,["component","childFactory"]),d=this.state.contextValue,p=FE(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,s===null?F.createElement(Ma.Provider,{value:d},p):F.createElement(Ma.Provider,{value:d},F.createElement(s,l,p))},t})(F.Component);cd.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},cd.defaultProps=ME;const bg={};function xg(e,t){const n=T.useRef(bg);return n.current===bg&&(n.current=e(t)),n}const DE=[];function _E(e){T.useEffect(e,DE)}class Da{static create(){return new Da}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 Dr(){const e=xg(Da.create).current;return _E(e.disposeEffect),e}function zE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function $E(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"&&!zE(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 dd=vn(o.elementType,$E),vg=e=>e.scrollTop;function _a(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 fr(e){return typeof e=="string"}function Sg(e,t,n){return e===void 0||fr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function wg(e,t,n){return typeof e=="function"?e(t,n):e}function _r(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 Cg(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 Eg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const x=pe(n?.className,s,i?.className,r?.className),g={...n?.style,...i?.style,...r?.style},h={...n,...i,...r};return x.length>0&&(h.className=x),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:void 0}}const a=_r({...i,...r}),l=Cg(r),d=Cg(i),p=t(a),u=pe(p?.className,n?.className,s,i?.className,r?.className),f={...p?.style,...n?.style,...i?.style,...r?.style},y={...p,...n,...d,...l};return u.length>0&&(y.className=u),Object.keys(f).length>0&&(y.style=f),{props:y,internalRef:p.ref}}function Oe(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:f={[e]:void 0},...y}=s,x=u[e]||r,g=wg(f[e],i),{props:{component:h,...m},internalRef:S}=Eg({className:n,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:g}),C=xt(S,g?.ref,t.ref),b=e==="root"?h||p:h,v=Sg(x,{...e==="root"&&!p&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...m,...b&&!l&&{as:b},...b&&l&&{component:b},ref:C},i);return[x,v]}function BE(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 Tg(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const s=BE(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Ag(e,t,n,r){return e[t]===void 0?null:Tg(e,t,n,r)}function ud(){return null}Ag.isRequired=Tg,ud.isRequired=ud;const za=process.env.NODE_ENV==="production"?ud:Ag;function LE(e){return Se("MuiPaper",e)}we("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 jE=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ce(s,LE,i)},WE=Q("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}`]]}})(be(({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)"}}]}))),Sn=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiPaper"}),i=Mn(),{className:s,component:a="div",elevation:l=1,square:d=!1,variant:p="elevation",...u}=r,f={...r,component:a,elevation:l,square:d,variant:p},y=jE(f);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
62
  `)),c.jsx(WE,{as:a,ownerState:f,className:pe(y.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(${ka("#fff",td(l))}, ${ka("#fff",td(l))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(Sn.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:vn(za,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 Wt=o.oneOfType([o.func,o.object]);function go(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
- `))}return!1}class $a{static create(){return new $a}static use(){const t=xg($a.create).current,[n,r]=T.useState(!1);return t.shouldMount=n,t.setShouldMount=r,T.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=UE(),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 VE(){return $a.use()}function UE(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function Pg(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:a,in:l,onExited:d,timeout:p}=e,[u,f]=T.useState(!1),y=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),x={width:a,height:a,top:-(a/2)+s,left:-(a/2)+i},g=pe(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&f(!0),T.useEffect(()=>{if(!l&&d!=null){const h=setTimeout(d,p);return()=>{clearTimeout(h)}}},[d,l,p]),c.jsx("span",{className:y,style:x,children:c.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(Pg.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 ln=we("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pd=550,HE=80,RE=lr`
63
+ `))}return!1}class $a{static create(){return new $a}static use(){const t=xg($a.create).current,[n,r]=T.useState(!1);return t.shouldMount=n,t.setShouldMount=r,T.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=HE(),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 VE(){return $a.use()}function HE(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function Pg(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:a,in:l,onExited:d,timeout:p}=e,[u,f]=T.useState(!1),y=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),x={width:a,height:a,top:-(a/2)+s,left:-(a/2)+i},g=pe(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&f(!0),T.useEffect(()=>{if(!l&&d!=null){const h=setTimeout(d,p);return()=>{clearTimeout(h)}}},[d,l,p]),c.jsx("span",{className:y,style:x,children:c.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(Pg.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 ln=we("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pd=550,UE=80,RE=lr`
64
64
  0% {
65
65
  transform: scale(0);
66
66
  opacity: 0.1;
@@ -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
- `,kg=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:a,...l}=r,[d,p]=T.useState([]),u=T.useRef(0),f=T.useRef(null);T.useEffect(()=>{f.current&&(f.current(),f.current=null)},[d]);const y=T.useRef(!1),x=Dr(),g=T.useRef(null),h=T.useRef(null),m=T.useCallback(v=>{const{pulsate:w,rippleX:A,rippleY:k,rippleSize:D,cb:O}=v;p(B=>[...B,c.jsx(KE,{classes:{ripple:pe(s.ripple,ln.ripple),rippleVisible:pe(s.rippleVisible,ln.rippleVisible),ripplePulsate:pe(s.ripplePulsate,ln.ripplePulsate),child:pe(s.child,ln.child),childLeaving:pe(s.childLeaving,ln.childLeaving),childPulsate:pe(s.childPulsate,ln.childPulsate)},timeout:pd,pulsate:w,rippleX:A,rippleY:k,rippleSize:D},u.current)]),u.current+=1,f.current=O},[s]),S=T.useCallback((v={},w={},A=()=>{})=>{const{pulsate:k=!1,center:D=i||w.pulsate,fakeElement:O=!1}=w;if(v?.type==="mousedown"&&y.current){y.current=!1;return}v?.type==="touchstart"&&(y.current=!0);const B=O?null:h.current,L=B?B.getBoundingClientRect():{width:0,height:0,left:0,top:0};let E,I,$;if(D||v===void 0||v.clientX===0&&v.clientY===0||!v.clientX&&!v.touches)E=Math.round(L.width/2),I=Math.round(L.height/2);else{const{clientX:W,clientY:_}=v.touches&&v.touches.length>0?v.touches[0]:v;E=Math.round(W-L.left),I=Math.round(_-L.top)}if(D)$=Math.sqrt((2*L.width**2+L.height**2)/3),$%2===0&&($+=1);else{const W=Math.max(Math.abs((B?B.clientWidth:0)-E),E)*2+2,_=Math.max(Math.abs((B?B.clientHeight:0)-I),I)*2+2;$=Math.sqrt(W**2+_**2)}v?.touches?g.current===null&&(g.current=()=>{m({pulsate:k,rippleX:E,rippleY:I,rippleSize:$,cb:A})},x.start(HE,()=>{g.current&&(g.current(),g.current=null)})):m({pulsate:k,rippleX:E,rippleY:I,rippleSize:$,cb:A})},[i,m,x]),C=T.useCallback(()=>{S({},{pulsate:!0})},[S]),b=T.useCallback((v,w)=>{if(x.clear(),v?.type==="touchend"&&g.current){g.current(),g.current=null,x.start(0,()=>{b(v,w)});return}g.current=null,p(A=>A.length>0?A.slice(1):A),f.current=w},[x]);return T.useImperativeHandle(n,()=>({pulsate:C,start:S,stop:b}),[C,S,b]),c.jsx(GE,{className:pe(ln.root,s.root,a),ref:h,...l,children:c.jsx(cd,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(kg.propTypes={center:o.bool,classes:o.object,className:o.string});function XE(e){return Se("MuiButtonBase",e)}const JE=we("MuiButtonBase",["root","disabled","focusVisible"]),QE=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Ce({root:["root",t&&"disabled",n&&"focusVisible"]},XE,i);return n&&r&&(a.root+=` ${r}`),a},ZE=Q("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"},[`&.${JE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Oi=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:a,className:l,component:d="button",disabled:p=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:y=!1,focusVisibleClassName:x,LinkComponent:g="a",onBlur:h,onClick:m,onContextMenu:S,onDragLeave:C,onFocus:b,onFocusVisible:v,onKeyDown:w,onKeyUp:A,onMouseDown:k,onMouseLeave:D,onMouseUp:O,onTouchEnd:B,onTouchMove:L,onTouchStart:E,tabIndex:I=0,TouchRippleProps:$,touchRippleRef:W,type:_,...z}=r,N=T.useRef(null),V=VE(),j=xt(V.ref,W),[M,Y]=T.useState(!1);p&&M&&Y(!1),T.useImperativeHandle(i,()=>({focusVisible:()=>{Y(!0),N.current.focus()}}),[]);const Z=V.shouldMount&&!u&&!p;T.useEffect(()=>{M&&y&&!u&&V.pulsate()},[u,y,M,V]);const J=er(V,"start",k,f),q=er(V,"stop",S,f),K=er(V,"stop",C,f),H=er(V,"stop",O,f),oe=er(V,"stop",de=>{M&&de.preventDefault(),D&&D(de)},f),ne=er(V,"start",E,f),te=er(V,"stop",B,f),ie=er(V,"stop",L,f),R=er(V,"stop",de=>{go(de.target)||Y(!1),h&&h(de)},!1),le=jt(de=>{N.current||(N.current=de.currentTarget),go(de.target)&&(Y(!0),v&&v(de)),b&&b(de)}),ae=()=>{const de=N.current;return d&&d!=="button"&&!(de.tagName==="A"&&de.href)},me=jt(de=>{y&&!de.repeat&&M&&de.key===" "&&V.stop(de,()=>{V.start(de)}),de.target===de.currentTarget&&ae()&&de.key===" "&&de.preventDefault(),w&&w(de),de.target===de.currentTarget&&ae()&&de.key==="Enter"&&!p&&(de.preventDefault(),m&&m(de))}),Ve=jt(de=>{y&&de.key===" "&&M&&!de.defaultPrevented&&V.stop(de,()=>{V.pulsate(de)}),A&&A(de),m&&de.target===de.currentTarget&&ae()&&de.key===" "&&!de.defaultPrevented&&m(de)});let Ie=d;Ie==="button"&&(z.href||z.to)&&(Ie=g);const Ne={};if(Ie==="button"){const de=!!z.formAction;Ne.type=_===void 0&&!de?"button":_,Ne.disabled=p}else!z.href&&!z.to&&(Ne.role="button"),p&&(Ne["aria-disabled"]=p);const Ue=xt(n,N),je={...r,centerRipple:s,component:d,disabled:p,disableRipple:u,disableTouchRipple:f,focusRipple:y,tabIndex:I,focusVisible:M},$e=QE(je);return c.jsxs(ZE,{as:Ie,className:pe($e.root,l),ownerState:je,onBlur:R,onClick:m,onContextMenu:q,onFocus:le,onKeyDown:me,onKeyUp:Ve,onMouseDown:J,onMouseLeave:oe,onMouseUp:H,onDragLeave:K,onTouchEnd:te,onTouchMove:ie,onTouchStart:ne,ref:Ue,tabIndex:p?-1:I,type:_,...Ne,...z,children:[a,Z?c.jsx(kg,{ref:j,center:s,...$}):null]})});function er(e,t,n,r=!1){return jt(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(Oi.propTypes={action:Wt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:dd,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 eT(e){return typeof e.main=="string"}function tT(e,t=[]){if(!eT(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function gt(e=[]){return([,t])=>t&&tT(t,e)}function nT(e){return Se("MuiCircularProgress",e)}we("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const wn=44,fd=lr`
136
+ `,kg=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:a,...l}=r,[d,p]=T.useState([]),u=T.useRef(0),f=T.useRef(null);T.useEffect(()=>{f.current&&(f.current(),f.current=null)},[d]);const y=T.useRef(!1),x=Dr(),g=T.useRef(null),h=T.useRef(null),m=T.useCallback(v=>{const{pulsate:w,rippleX:A,rippleY:k,rippleSize:D,cb:O}=v;p(B=>[...B,c.jsx(KE,{classes:{ripple:pe(s.ripple,ln.ripple),rippleVisible:pe(s.rippleVisible,ln.rippleVisible),ripplePulsate:pe(s.ripplePulsate,ln.ripplePulsate),child:pe(s.child,ln.child),childLeaving:pe(s.childLeaving,ln.childLeaving),childPulsate:pe(s.childPulsate,ln.childPulsate)},timeout:pd,pulsate:w,rippleX:A,rippleY:k,rippleSize:D},u.current)]),u.current+=1,f.current=O},[s]),S=T.useCallback((v={},w={},A=()=>{})=>{const{pulsate:k=!1,center:D=i||w.pulsate,fakeElement:O=!1}=w;if(v?.type==="mousedown"&&y.current){y.current=!1;return}v?.type==="touchstart"&&(y.current=!0);const B=O?null:h.current,L=B?B.getBoundingClientRect():{width:0,height:0,left:0,top:0};let E,I,$;if(D||v===void 0||v.clientX===0&&v.clientY===0||!v.clientX&&!v.touches)E=Math.round(L.width/2),I=Math.round(L.height/2);else{const{clientX:W,clientY:_}=v.touches&&v.touches.length>0?v.touches[0]:v;E=Math.round(W-L.left),I=Math.round(_-L.top)}if(D)$=Math.sqrt((2*L.width**2+L.height**2)/3),$%2===0&&($+=1);else{const W=Math.max(Math.abs((B?B.clientWidth:0)-E),E)*2+2,_=Math.max(Math.abs((B?B.clientHeight:0)-I),I)*2+2;$=Math.sqrt(W**2+_**2)}v?.touches?g.current===null&&(g.current=()=>{m({pulsate:k,rippleX:E,rippleY:I,rippleSize:$,cb:A})},x.start(UE,()=>{g.current&&(g.current(),g.current=null)})):m({pulsate:k,rippleX:E,rippleY:I,rippleSize:$,cb:A})},[i,m,x]),C=T.useCallback(()=>{S({},{pulsate:!0})},[S]),b=T.useCallback((v,w)=>{if(x.clear(),v?.type==="touchend"&&g.current){g.current(),g.current=null,x.start(0,()=>{b(v,w)});return}g.current=null,p(A=>A.length>0?A.slice(1):A),f.current=w},[x]);return T.useImperativeHandle(n,()=>({pulsate:C,start:S,stop:b}),[C,S,b]),c.jsx(GE,{className:pe(ln.root,s.root,a),ref:h,...l,children:c.jsx(cd,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(kg.propTypes={center:o.bool,classes:o.object,className:o.string});function XE(e){return Se("MuiButtonBase",e)}const JE=we("MuiButtonBase",["root","disabled","focusVisible"]),QE=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Ce({root:["root",t&&"disabled",n&&"focusVisible"]},XE,i);return n&&r&&(a.root+=` ${r}`),a},ZE=Q("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"},[`&.${JE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Oi=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:a,className:l,component:d="button",disabled:p=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:y=!1,focusVisibleClassName:x,LinkComponent:g="a",onBlur:h,onClick:m,onContextMenu:S,onDragLeave:C,onFocus:b,onFocusVisible:v,onKeyDown:w,onKeyUp:A,onMouseDown:k,onMouseLeave:D,onMouseUp:O,onTouchEnd:B,onTouchMove:L,onTouchStart:E,tabIndex:I=0,TouchRippleProps:$,touchRippleRef:W,type:_,...z}=r,N=T.useRef(null),V=VE(),j=xt(V.ref,W),[M,Y]=T.useState(!1);p&&M&&Y(!1),T.useImperativeHandle(i,()=>({focusVisible:()=>{Y(!0),N.current.focus()}}),[]);const Z=V.shouldMount&&!u&&!p;T.useEffect(()=>{M&&y&&!u&&V.pulsate()},[u,y,M,V]);const J=tr(V,"start",k,f),q=tr(V,"stop",S,f),K=tr(V,"stop",C,f),U=tr(V,"stop",O,f),oe=tr(V,"stop",de=>{M&&de.preventDefault(),D&&D(de)},f),ne=tr(V,"start",E,f),te=tr(V,"stop",B,f),ie=tr(V,"stop",L,f),R=tr(V,"stop",de=>{go(de.target)||Y(!1),h&&h(de)},!1),le=jt(de=>{N.current||(N.current=de.currentTarget),go(de.target)&&(Y(!0),v&&v(de)),b&&b(de)}),ae=()=>{const de=N.current;return d&&d!=="button"&&!(de.tagName==="A"&&de.href)},me=jt(de=>{y&&!de.repeat&&M&&de.key===" "&&V.stop(de,()=>{V.start(de)}),de.target===de.currentTarget&&ae()&&de.key===" "&&de.preventDefault(),w&&w(de),de.target===de.currentTarget&&ae()&&de.key==="Enter"&&!p&&(de.preventDefault(),m&&m(de))}),Ve=jt(de=>{y&&de.key===" "&&M&&!de.defaultPrevented&&V.stop(de,()=>{V.pulsate(de)}),A&&A(de),m&&de.target===de.currentTarget&&ae()&&de.key===" "&&!de.defaultPrevented&&m(de)});let Ie=d;Ie==="button"&&(z.href||z.to)&&(Ie=g);const Ne={};if(Ie==="button"){const de=!!z.formAction;Ne.type=_===void 0&&!de?"button":_,Ne.disabled=p}else!z.href&&!z.to&&(Ne.role="button"),p&&(Ne["aria-disabled"]=p);const He=xt(n,N),je={...r,centerRipple:s,component:d,disabled:p,disableRipple:u,disableTouchRipple:f,focusRipple:y,tabIndex:I,focusVisible:M},$e=QE(je);return c.jsxs(ZE,{as:Ie,className:pe($e.root,l),ownerState:je,onBlur:R,onClick:m,onContextMenu:q,onFocus:le,onKeyDown:me,onKeyUp:Ve,onMouseDown:J,onMouseLeave:oe,onMouseUp:U,onDragLeave:K,onTouchEnd:te,onTouchMove:ie,onTouchStart:ne,ref:He,tabIndex:p?-1:I,type:_,...Ne,...z,children:[a,Z?c.jsx(kg,{ref:j,center:s,...$}):null]})});function tr(e,t,n,r=!1){return jt(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(Oi.propTypes={action:Wt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:dd,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 eT(e){return typeof e.main=="string"}function tT(e,t=[]){if(!eT(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function gt(e=[]){return([,t])=>t&&tT(t,e)}function nT(e){return Se("MuiCircularProgress",e)}we("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const wn=44,fd=lr`
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,oT=typeof hd!="string"?lo`
162
162
  animation: ${hd} 1.4s ease-in-out infinite;
163
163
  `:null,iT=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 Ce(s,nT,t)},sT=Q("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ee(n.color)}`]]}})(be(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:rT||{animation:`${fd} 1.4s linear infinite`}},...Object.entries(e.palette).filter(gt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),aT=Q("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),lT=Q("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ee(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(be(({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:oT||{animation:`${hd} 1.4s ease-in-out infinite`}}]}))),cT=Q("circle",{name:"MuiCircularProgress",slot:"Track"})(be(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Ii=T.forwardRef(function(t,n){const r=Te({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:f=0,variant:y="indeterminate",...x}=r,g={...r,color:s,disableShrink:a,size:d,thickness:u,value:f,variant:y,enableTrackSlot:l},h=iT(g),m={},S={},C={};if(y==="determinate"){const b=2*Math.PI*((wn-u)/2);m.strokeDasharray=b.toFixed(3),C["aria-valuenow"]=Math.round(f),m.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,S.transform="rotate(-90deg)"}return c.jsx(sT,{className:pe(h.root,i),style:{width:d,height:d,...S,...p},ownerState:g,ref:n,role:"progressbar",...C,...x,children:c.jsxs(aT,{className:h.svg,ownerState:g,viewBox:`${wn/2} ${wn/2} ${wn} ${wn}`,children:[l?c.jsx(cT,{className:h.track,ownerState:g,cx:wn,cy:wn,r:(wn-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,c.jsx(lT,{className:h.circle,style:m,ownerState:g,cx:wn,cy:wn,r:(wn-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(Ii.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:vn(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 dT(e){return Se("MuiIconButton",e)}const Og=we("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),uT=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 Ce(l,dT,t)},pT=Q(Oi,{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)}`]]}})(be(({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}}]})),be(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(gt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(gt()).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)}}],[`&.${Og.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Og.loading}`]:{color:"transparent"}}))),fT=Q("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"}}]})),vt=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiIconButton"}),{edge:i=!1,children:s,className:a,color:l="default",disabled:d=!1,disableFocusRipple:p=!1,size:u="medium",id:f,loading:y=null,loadingIndicator:x,...g}=r,h=Ir(f),m=x??c.jsx(Ii,{"aria-labelledby":h,color:"inherit",size:16}),S={...r,edge:i,color:l,disabled:d,disableFocusRipple:p,loading:y,loadingIndicator:m,size:u},C=uT(S);return c.jsxs(pT,{id:y?h:f,className:pe(C.root,a),centerRipple:!0,focusRipple:!p,disabled:d||y,ref:n,...g,ownerState:S,children:[typeof y=="boolean"&&c.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:c.jsx(fT,{className:C.loadingIndicator,ownerState:S,children:y&&m})}),s]})});process.env.NODE_ENV!=="production"&&(vt.propTypes={children:vn(o.node,e=>T.Children.toArray(e.children).some(n=>T.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 hT(e){return Se("MuiTypography",e)}const Ig=we("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),gT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},mT=bE(),yT=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 Ce(l,hT,a)},bT=Q("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]}})(be(({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(gt()).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}}]}))),Ng={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},U=T.forwardRef(function(t,n){const{color:r,...i}=Te({props:t,name:"MuiTypography"}),s=!gT[r],a=mT({...i,...s&&{color:r}}),{align:l="inherit",className:d,component:p,gutterBottom:u=!1,noWrap:f=!1,paragraph:y=!1,variant:x="body1",variantMapping:g=Ng,...h}=a,m={...a,align:l,color:r,className:d,component:p,gutterBottom:u,noWrap:f,paragraph:y,variant:x,variantMapping:g},S=p||(y?"p":g[x]||Ng[x])||"span",C=yT(m);return c.jsx(bT,{as:S,ref:n,className:pe(C.root,d),...h,ownerState:m,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...h.style}})});process.env.NODE_ENV!=="production"&&(U.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 tr(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 Gt="top",cn="bottom",dn="right",Kt="left",gd="auto",Ni=[Gt,cn,dn,Kt],mo="start",Fi="end",xT="clippingParents",Fg="viewport",Mi="popper",vT="reference",Mg=Ni.reduce(function(e,t){return e.concat([t+"-"+mo,t+"-"+Fi])},[]),Dg=[].concat(Ni,[gd]).reduce(function(e,t){return e.concat([t,t+"-"+mo,t+"-"+Fi])},[]),ST="beforeRead",wT="read",CT="afterRead",ET="beforeMain",TT="main",AT="afterMain",PT="beforeWrite",kT="write",OT="afterWrite",IT=[ST,wT,CT,ET,TT,AT,PT,kT,OT];function _n(e){return e?(e.nodeName||"").toLowerCase():null}function tn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zr(e){var t=tn(e).Element;return e instanceof t||e instanceof Element}function un(e){var t=tn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function md(e){if(typeof ShadowRoot>"u")return!1;var t=tn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function NT(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];!un(s)||!_n(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 FT(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},{});!un(i)||!_n(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(d){i.removeAttribute(d)}))})}}const MT={name:"applyStyles",enabled:!0,phase:"write",fn:NT,effect:FT,requires:["computeStyles"]};function zn(e){return e.split("-")[0]}var $r=Math.max,Ba=Math.min,yo=Math.round;function yd(){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 _g(){return!/^((?!chrome|android).)*safari/i.test(yd())}function bo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&un(e)&&(i=e.offsetWidth>0&&yo(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&yo(r.height)/e.offsetHeight||1);var a=zr(e)?tn(e):window,l=a.visualViewport,d=!_g()&&n,p=(r.left+(d&&l?l.offsetLeft:0))/i,u=(r.top+(d&&l?l.offsetTop:0))/s,f=r.width/i,y=r.height/s;return{width:f,height:y,top:u,right:p+f,bottom:u+y,left:p,x:p,y:u}}function bd(e){var t=bo(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 zg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&md(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function nr(e){return tn(e).getComputedStyle(e)}function DT(e){return["table","td","th"].indexOf(_n(e))>=0}function hr(e){return((zr(e)?e.ownerDocument:e.document)||window.document).documentElement}function La(e){return _n(e)==="html"?e:e.assignedSlot||e.parentNode||(md(e)?e.host:null)||hr(e)}function $g(e){return!un(e)||nr(e).position==="fixed"?null:e.offsetParent}function _T(e){var t=/firefox/i.test(yd()),n=/Trident/i.test(yd());if(n&&un(e)){var r=nr(e);if(r.position==="fixed")return null}var i=La(e);for(md(i)&&(i=i.host);un(i)&&["html","body"].indexOf(_n(i))<0;){var s=nr(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 Di(e){for(var t=tn(e),n=$g(e);n&&DT(n)&&nr(n).position==="static";)n=$g(n);return n&&(_n(n)==="html"||_n(n)==="body"&&nr(n).position==="static")?t:n||_T(e)||t}function xd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _i(e,t,n){return $r(e,Ba(t,n))}function zT(e,t,n){var r=_i(e,t,n);return r>n?n:r}function Bg(){return{top:0,right:0,bottom:0,left:0}}function Lg(e){return Object.assign({},Bg(),e)}function jg(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $T=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Lg(typeof t!="number"?t:jg(t,Ni))};function BT(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=zn(n.placement),d=xd(l),p=[Kt,dn].indexOf(l)>=0,u=p?"height":"width";if(!(!s||!a)){var f=$T(i.padding,n),y=bd(s),x=d==="y"?Gt:Kt,g=d==="y"?cn:dn,h=n.rects.reference[u]+n.rects.reference[d]-a[d]-n.rects.popper[u],m=a[d]-n.rects.reference[d],S=Di(s),C=S?d==="y"?S.clientHeight||0:S.clientWidth||0:0,b=h/2-m/2,v=f[x],w=C-y[u]-f[g],A=C/2-y[u]/2+b,k=_i(v,A,w),D=d;n.modifiersData[r]=(t={},t[D]=k,t.centerOffset=k-A,t)}}function LT(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)||zg(t.elements.popper,i)&&(t.elements.arrow=i))}const jT={name:"arrow",enabled:!0,phase:"main",fn:BT,effect:LT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xo(e){return e.split("-")[1]}var WT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VT(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:yo(n*i)/i||0,y:yo(r*i)/i||0}}function Wg(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,f=e.isFixed,y=a.x,x=y===void 0?0:y,g=a.y,h=g===void 0?0:g,m=typeof u=="function"?u({x,y:h}):{x,y:h};x=m.x,h=m.y;var S=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),b=Kt,v=Gt,w=window;if(p){var A=Di(n),k="clientHeight",D="clientWidth";if(A===tn(n)&&(A=hr(n),nr(A).position!=="static"&&l==="absolute"&&(k="scrollHeight",D="scrollWidth")),A=A,i===Gt||(i===Kt||i===dn)&&s===Fi){v=cn;var O=f&&A===w&&w.visualViewport?w.visualViewport.height:A[k];h-=O-r.height,h*=d?1:-1}if(i===Kt||(i===Gt||i===cn)&&s===Fi){b=dn;var B=f&&A===w&&w.visualViewport?w.visualViewport.width:A[D];x-=B-r.width,x*=d?1:-1}}var L=Object.assign({position:l},p&&WT),E=u===!0?VT({x,y:h},tn(n)):{x,y:h};if(x=E.x,h=E.y,d){var I;return Object.assign({},L,(I={},I[v]=C?"0":"",I[b]=S?"0":"",I.transform=(w.devicePixelRatio||1)<=1?"translate("+x+"px, "+h+"px)":"translate3d("+x+"px, "+h+"px, 0)",I))}return Object.assign({},L,(t={},t[v]=C?h+"px":"",t[b]=S?x+"px":"",t.transform="",t))}function UT(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:zn(t.placement),variation:xo(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,Wg(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,Wg(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 HT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UT,data:{}};var ja={passive:!0};function RT(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=tn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(u){u.addEventListener("scroll",n.update,ja)}),l&&d.addEventListener("resize",n.update,ja),function(){s&&p.forEach(function(u){u.removeEventListener("scroll",n.update,ja)}),l&&d.removeEventListener("resize",n.update,ja)}}const qT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:RT,data:{}};var YT={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,function(t){return YT[t]})}var GT={start:"end",end:"start"};function Vg(e){return e.replace(/start|end/g,function(t){return GT[t]})}function vd(e){var t=tn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Sd(e){return bo(hr(e)).left+vd(e).scrollLeft}function KT(e,t){var n=tn(e),r=hr(e),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,d=0;if(i){s=i.width,a=i.height;var p=_g();(p||!p&&t==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:l+Sd(e),y:d}}function XT(e){var t,n=hr(e),r=vd(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=$r(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=$r(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Sd(e),d=-r.scrollTop;return nr(i||n).direction==="rtl"&&(l+=$r(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:d}}function wd(e){var t=nr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Ug(e){return["html","body","#document"].indexOf(_n(e))>=0?e.ownerDocument.body:un(e)&&wd(e)?e:Ug(La(e))}function zi(e,t){var n;t===void 0&&(t=[]);var r=Ug(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=tn(r),a=i?[s].concat(s.visualViewport||[],wd(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(zi(La(a)))}function Cd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function JT(e,t){var n=bo(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===Fg?Cd(KT(e,n)):zr(t)?JT(t,n):Cd(XT(hr(e)))}function QT(e){var t=zi(La(e)),n=["absolute","fixed"].indexOf(nr(e).position)>=0,r=n&&un(e)?Di(e):e;return zr(r)?t.filter(function(i){return zr(i)&&zg(i,r)&&_n(i)!=="body"}):[]}function ZT(e,t,n,r){var i=t==="clippingParents"?QT(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=$r(u.top,d.top),d.right=Ba(u.right,d.right),d.bottom=Ba(u.bottom,d.bottom),d.left=$r(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 Rg(e){var t=e.reference,n=e.element,r=e.placement,i=r?zn(r):null,s=r?xo(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(i){case Gt:d={x:a,y:t.y-n.height};break;case cn:d={x:a,y:t.y+t.height};break;case dn:d={x:t.x+t.width,y:l};break;case Kt:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var p=i?xd(i):null;if(p!=null){var u=p==="y"?"height":"width";switch(s){case mo:d[p]=d[p]-(t[u]/2-n[u]/2);break;case Fi:d[p]=d[p]+(t[u]/2-n[u]/2);break}}return d}function $i(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?xT:l,p=n.rootBoundary,u=p===void 0?Fg:p,f=n.elementContext,y=f===void 0?Mi:f,x=n.altBoundary,g=x===void 0?!1:x,h=n.padding,m=h===void 0?0:h,S=Lg(typeof m!="number"?m:jg(m,Ni)),C=y===Mi?vT:Mi,b=e.rects.popper,v=e.elements[g?C:y],w=ZT(zr(v)?v:v.contextElement||hr(e.elements.popper),d,u,a),A=bo(e.elements.reference),k=Rg({reference:A,element:b,placement:i}),D=Cd(Object.assign({},b,k)),O=y===Mi?D:A,B={top:w.top-O.top+S.top,bottom:O.bottom-w.bottom+S.bottom,left:w.left-O.left+S.left,right:O.right-w.right+S.right},L=e.modifiersData.offset;if(y===Mi&&L){var E=L[i];Object.keys(B).forEach(function(I){var $=[dn,cn].indexOf(I)>=0?1:-1,W=[Gt,cn].indexOf(I)>=0?"y":"x";B[I]+=E[W]*$})}return B}function eA(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?Dg:d,u=xo(r),f=u?l?Mg:Mg.filter(function(g){return xo(g)===u}):Ni,y=f.filter(function(g){return p.indexOf(g)>=0});y.length===0&&(y=f);var x=y.reduce(function(g,h){return g[h]=$i(e,{placement:h,boundary:i,rootBoundary:s,padding:a})[zn(h)],g},{});return Object.keys(x).sort(function(g,h){return x[g]-x[h]})}function tA(e){if(zn(e)===gd)return[];var t=Wa(e);return[Vg(e),t,Vg(t)]}function nA(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,f=n.rootBoundary,y=n.altBoundary,x=n.flipVariations,g=x===void 0?!0:x,h=n.allowedAutoPlacements,m=t.options.placement,S=zn(m),C=S===m,b=d||(C||!g?[Wa(m)]:tA(m)),v=[m].concat(b).reduce(function(J,q){return J.concat(zn(q)===gd?eA(t,{placement:q,boundary:u,rootBoundary:f,padding:p,flipVariations:g,allowedAutoPlacements:h}):q)},[]),w=t.rects.reference,A=t.rects.popper,k=new Map,D=!0,O=v[0],B=0;B<v.length;B++){var L=v[B],E=zn(L),I=xo(L)===mo,$=[Gt,cn].indexOf(E)>=0,W=$?"width":"height",_=$i(t,{placement:L,boundary:u,rootBoundary:f,altBoundary:y,padding:p}),z=$?I?dn:Kt:I?cn:Gt;w[W]>A[W]&&(z=Wa(z));var N=Wa(z),V=[];if(s&&V.push(_[E]<=0),l&&V.push(_[z]<=0,_[N]<=0),V.every(function(J){return J})){O=L,D=!1;break}k.set(L,V)}if(D)for(var j=g?3:1,M=function(q){var K=v.find(function(H){var oe=k.get(H);if(oe)return oe.slice(0,q).every(function(ne){return ne})});if(K)return O=K,"break"},Y=j;Y>0;Y--){var Z=M(Y);if(Z==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const rA={name:"flip",enabled:!0,phase:"main",fn:nA,requiresIfExists:["offset"],data:{_skip:!1}};function qg(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[Gt,dn,cn,Kt].some(function(t){return e[t]>=0})}function oA(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=$i(t,{elementContext:"reference"}),l=$i(t,{altBoundary:!0}),d=qg(a,r),p=qg(l,i,s),u=Yg(d),f=Yg(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const iA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oA};function sA(e,t,n){var r=zn(e),i=[Kt,Gt].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,[Kt,dn].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function aA(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,a=Dg.reduce(function(u,f){return u[f]=sA(f,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 lA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aA};function cA(e){var t=e.state,n=e.name;t.modifiersData[n]=Rg({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const dA={name:"popperOffsets",enabled:!0,phase:"read",fn:cA,data:{}};function uA(e){return e==="x"?"y":"x"}function pA(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,f=n.padding,y=n.tether,x=y===void 0?!0:y,g=n.tetherOffset,h=g===void 0?0:g,m=$i(t,{boundary:d,rootBoundary:p,padding:f,altBoundary:u}),S=zn(t.placement),C=xo(t.placement),b=!C,v=xd(S),w=uA(v),A=t.modifiersData.popperOffsets,k=t.rects.reference,D=t.rects.popper,O=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,B=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(A){if(s){var I,$=v==="y"?Gt:Kt,W=v==="y"?cn:dn,_=v==="y"?"height":"width",z=A[v],N=z+m[$],V=z-m[W],j=x?-D[_]/2:0,M=C===mo?k[_]:D[_],Y=C===mo?-D[_]:-k[_],Z=t.elements.arrow,J=x&&Z?bd(Z):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bg(),K=q[$],H=q[W],oe=_i(0,k[_],J[_]),ne=b?k[_]/2-j-oe-K-B.mainAxis:M-oe-K-B.mainAxis,te=b?-k[_]/2+j+oe+H+B.mainAxis:Y+oe+H+B.mainAxis,ie=t.elements.arrow&&Di(t.elements.arrow),R=ie?v==="y"?ie.clientTop||0:ie.clientLeft||0:0,le=(I=L?.[v])!=null?I:0,ae=z+ne-le-R,me=z+te-le,Ve=_i(x?Ba(N,ae):N,z,x?$r(V,me):V);A[v]=Ve,E[v]=Ve-z}if(l){var Ie,Ne=v==="x"?Gt:Kt,Ue=v==="x"?cn:dn,je=A[w],$e=w==="y"?"height":"width",de=je+m[Ne],He=je-m[Ue],De=[Gt,Kt].indexOf(S)!==-1,se=(Ie=L?.[w])!=null?Ie:0,re=De?de:je-k[$e]-D[$e]-se+B.altAxis,fe=De?je+k[$e]+D[$e]-se-B.altAxis:He,ve=x&&De?zT(re,je,fe):_i(x?re:de,je,x?fe:He);A[w]=ve,E[w]=ve-je}t.modifiersData[r]=E}}const fA={name:"preventOverflow",enabled:!0,phase:"main",fn:pA,requiresIfExists:["offset"]};function hA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gA(e){return e===tn(e)||!un(e)?vd(e):hA(e)}function mA(e){var t=e.getBoundingClientRect(),n=yo(t.width)/e.offsetWidth||1,r=yo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function yA(e,t,n){n===void 0&&(n=!1);var r=un(t),i=un(t)&&mA(t),s=hr(t),a=bo(e,i,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((_n(t)!=="body"||wd(s))&&(l=gA(t)),un(t)?(d=bo(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Sd(s))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function bA(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 xA(e){var t=bA(e);return IT.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function vA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function SA(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 Gg={placement:"bottom",modifiers:[],strategy:"absolute"};function Kg(){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 wA(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?Gg:i;return function(l,d,p){p===void 0&&(p=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gg,s),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},f=[],y=!1,x={state:u,setOptions:function(S){var C=typeof S=="function"?S(u.options):S;h(),u.options=Object.assign({},s,u.options,C),u.scrollParents={reference:zr(l)?zi(l):l.contextElement?zi(l.contextElement):[],popper:zi(d)};var b=xA(SA([].concat(r,u.options.modifiers)));return u.orderedModifiers=b.filter(function(v){return v.enabled}),g(),x.update()},forceUpdate:function(){if(!y){var S=u.elements,C=S.reference,b=S.popper;if(Kg(C,b)){u.rects={reference:yA(C,Di(b),u.options.strategy==="fixed"),popper:bd(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(B){return u.modifiersData[B.name]=Object.assign({},B.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var w=u.orderedModifiers[v],A=w.fn,k=w.options,D=k===void 0?{}:k,O=w.name;typeof A=="function"&&(u=A({state:u,options:D,name:O,instance:x})||u)}}}},update:vA(function(){return new Promise(function(m){x.forceUpdate(),m(u)})}),destroy:function(){h(),y=!0}};if(!Kg(l,d))return x;x.setOptions(p).then(function(m){!y&&p.onFirstUpdate&&p.onFirstUpdate(m)});function g(){u.orderedModifiers.forEach(function(m){var S=m.name,C=m.options,b=C===void 0?{}:C,v=m.effect;if(typeof v=="function"){var w=v({state:u,name:S,instance:x,options:b}),A=function(){};f.push(w||A)}})}function h(){f.forEach(function(m){return m()}),f=[]}return x}}var CA=[qT,dA,HT,MT,lA,rA,fA,jT,iA],EA=wA({defaultModifiers:CA});function $n(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...s}=e,a=i?{}:wg(n,r),{props:l,internalRef:d}=Eg({...s,externalSlotProps:a}),p=xt(d,a?.ref,e.additionalProps?.ref);return Sg(t,{...l,ref:p},r)}function Br(e){return parseInt(T.version,10)>=19?e?.props?.ref||null:e?.ref||null}function TA(e){return typeof e=="function"?e():e}const Bi=T.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[a,l]=T.useState(null),d=xt(T.isValidElement(r)?Br(r):null,n);if(an(()=>{s||l(TA(i)||document.body)},[i,s]),an(()=>{if(a&&!s)return dg(n,a),()=>{dg(n,null)}},[n,a,s]),s){if(T.isValidElement(r)){const p={ref:d};return T.cloneElement(r,p)}return r}return a&&Fy.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(Bi.propTypes={children:o.node,container:o.oneOfType([tr,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(Bi.propTypes=Kc(Bi.propTypes));function AA(e){return Se("MuiPopper",e)}we("MuiPopper",["root"]);function PA(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 Va(e){return typeof e=="function"?e():e}function Ua(e){return e.nodeType!==void 0}function kA(e){return!Ua(e)}const OA=e=>{const{classes:t}=e;return Ce({root:["root"]},AA,t)},IA={},NA=T.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:s,disablePortal:a,modifiers:l,open:d,placement:p,popperOptions:u,popperRef:f,slotProps:y={},slots:x={},TransitionProps:g,ownerState:h,...m}=t,S=T.useRef(null),C=xt(S,n),b=T.useRef(null),v=xt(b,f),w=T.useRef(v);an(()=>{w.current=v},[v]),T.useImperativeHandle(f,()=>b.current,[]);const A=PA(p,s),[k,D]=T.useState(A),[O,B]=T.useState(Va(r));T.useEffect(()=>{b.current&&b.current.forceUpdate()}),T.useEffect(()=>{r&&B(Va(r))},[r]),an(()=>{if(!O||!d)return;const W=N=>{D(N.placement)};if(process.env.NODE_ENV!=="production"&&O&&Ua(O)&&O.nodeType===1){const N=O.getBoundingClientRect();process.env.NODE_ENV!=="test"&&N.top===0&&N.left===0&&N.right===0&&N.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:N})=>{W(N)}}];l!=null&&(_=_.concat(l)),u&&u.modifiers!=null&&(_=_.concat(u.modifiers));const z=EA(O,S.current,{placement:A,...u,modifiers:_});return w.current(z),()=>{z.destroy(),w.current(null)}},[O,a,l,d,u,A]);const L={placement:k};g!==null&&(L.TransitionProps=g);const E=OA(t),I=x.root??"div",$=$n({elementType:I,externalSlotProps:y.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:E.root});return c.jsx(I,{...$,children:typeof i=="function"?i(L):i})}),Xg=T.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:f="bottom",popperOptions:y=IA,popperRef:x,style:g,transition:h=!1,slotProps:m={},slots:S={},...C}=t,[b,v]=T.useState(!0),w=()=>{v(!1)},A=()=>{v(!0)};if(!d&&!u&&(!h||b))return null;let k;if(s)k=s;else if(r){const B=Va(r);k=B&&Ua(B)?wt(B).body:wt(null).body}const D=!u&&d&&(!h||b)?"none":void 0,O=h?{in:u,onEnter:w,onExited:A}:void 0;return c.jsx(Bi,{disablePortal:l,container:k,children:c.jsx(NA,{anchorEl:r,direction:a,disablePortal:l,modifiers:p,ref:n,open:h?!b:u,placement:f,popperOptions:y,popperRef:x,slotProps:m,slots:S,...C,style:{position:"fixed",top:0,left:0,display:D,...g},TransitionProps:O,children:i})})});process.env.NODE_ENV!=="production"&&(Xg.propTypes={anchorEl:vn(o.oneOfType([tr,o.object,o.func]),e=>{if(e.open){const t=Va(e.anchorEl);if(t&&Ua(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 hT(e){return Se("MuiTypography",e)}const Ig=we("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),gT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},mT=bE(),yT=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 Ce(l,hT,a)},bT=Q("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]}})(be(({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(gt()).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}}]}))),Ng={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},H=T.forwardRef(function(t,n){const{color:r,...i}=Te({props:t,name:"MuiTypography"}),s=!gT[r],a=mT({...i,...s&&{color:r}}),{align:l="inherit",className:d,component:p,gutterBottom:u=!1,noWrap:f=!1,paragraph:y=!1,variant:x="body1",variantMapping:g=Ng,...h}=a,m={...a,align:l,color:r,className:d,component:p,gutterBottom:u,noWrap:f,paragraph:y,variant:x,variantMapping:g},S=p||(y?"p":g[x]||Ng[x])||"span",C=yT(m);return c.jsx(bT,{as:S,ref:n,className:pe(C.root,d),...h,ownerState:m,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...h.style}})});process.env.NODE_ENV!=="production"&&(H.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 nr(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 Gt="top",cn="bottom",dn="right",Kt="left",gd="auto",Ni=[Gt,cn,dn,Kt],mo="start",Fi="end",xT="clippingParents",Fg="viewport",Mi="popper",vT="reference",Mg=Ni.reduce(function(e,t){return e.concat([t+"-"+mo,t+"-"+Fi])},[]),Dg=[].concat(Ni,[gd]).reduce(function(e,t){return e.concat([t,t+"-"+mo,t+"-"+Fi])},[]),ST="beforeRead",wT="read",CT="afterRead",ET="beforeMain",TT="main",AT="afterMain",PT="beforeWrite",kT="write",OT="afterWrite",IT=[ST,wT,CT,ET,TT,AT,PT,kT,OT];function _n(e){return e?(e.nodeName||"").toLowerCase():null}function tn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zr(e){var t=tn(e).Element;return e instanceof t||e instanceof Element}function un(e){var t=tn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function md(e){if(typeof ShadowRoot>"u")return!1;var t=tn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function NT(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];!un(s)||!_n(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 FT(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},{});!un(i)||!_n(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(d){i.removeAttribute(d)}))})}}const MT={name:"applyStyles",enabled:!0,phase:"write",fn:NT,effect:FT,requires:["computeStyles"]};function zn(e){return e.split("-")[0]}var $r=Math.max,Ba=Math.min,yo=Math.round;function yd(){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 _g(){return!/^((?!chrome|android).)*safari/i.test(yd())}function bo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&un(e)&&(i=e.offsetWidth>0&&yo(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&yo(r.height)/e.offsetHeight||1);var a=zr(e)?tn(e):window,l=a.visualViewport,d=!_g()&&n,p=(r.left+(d&&l?l.offsetLeft:0))/i,u=(r.top+(d&&l?l.offsetTop:0))/s,f=r.width/i,y=r.height/s;return{width:f,height:y,top:u,right:p+f,bottom:u+y,left:p,x:p,y:u}}function bd(e){var t=bo(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 zg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&md(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function rr(e){return tn(e).getComputedStyle(e)}function DT(e){return["table","td","th"].indexOf(_n(e))>=0}function hr(e){return((zr(e)?e.ownerDocument:e.document)||window.document).documentElement}function La(e){return _n(e)==="html"?e:e.assignedSlot||e.parentNode||(md(e)?e.host:null)||hr(e)}function $g(e){return!un(e)||rr(e).position==="fixed"?null:e.offsetParent}function _T(e){var t=/firefox/i.test(yd()),n=/Trident/i.test(yd());if(n&&un(e)){var r=rr(e);if(r.position==="fixed")return null}var i=La(e);for(md(i)&&(i=i.host);un(i)&&["html","body"].indexOf(_n(i))<0;){var s=rr(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 Di(e){for(var t=tn(e),n=$g(e);n&&DT(n)&&rr(n).position==="static";)n=$g(n);return n&&(_n(n)==="html"||_n(n)==="body"&&rr(n).position==="static")?t:n||_T(e)||t}function xd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _i(e,t,n){return $r(e,Ba(t,n))}function zT(e,t,n){var r=_i(e,t,n);return r>n?n:r}function Bg(){return{top:0,right:0,bottom:0,left:0}}function Lg(e){return Object.assign({},Bg(),e)}function jg(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $T=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Lg(typeof t!="number"?t:jg(t,Ni))};function BT(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=zn(n.placement),d=xd(l),p=[Kt,dn].indexOf(l)>=0,u=p?"height":"width";if(!(!s||!a)){var f=$T(i.padding,n),y=bd(s),x=d==="y"?Gt:Kt,g=d==="y"?cn:dn,h=n.rects.reference[u]+n.rects.reference[d]-a[d]-n.rects.popper[u],m=a[d]-n.rects.reference[d],S=Di(s),C=S?d==="y"?S.clientHeight||0:S.clientWidth||0:0,b=h/2-m/2,v=f[x],w=C-y[u]-f[g],A=C/2-y[u]/2+b,k=_i(v,A,w),D=d;n.modifiersData[r]=(t={},t[D]=k,t.centerOffset=k-A,t)}}function LT(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)||zg(t.elements.popper,i)&&(t.elements.arrow=i))}const jT={name:"arrow",enabled:!0,phase:"main",fn:BT,effect:LT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xo(e){return e.split("-")[1]}var WT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VT(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:yo(n*i)/i||0,y:yo(r*i)/i||0}}function Wg(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,f=e.isFixed,y=a.x,x=y===void 0?0:y,g=a.y,h=g===void 0?0:g,m=typeof u=="function"?u({x,y:h}):{x,y:h};x=m.x,h=m.y;var S=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),b=Kt,v=Gt,w=window;if(p){var A=Di(n),k="clientHeight",D="clientWidth";if(A===tn(n)&&(A=hr(n),rr(A).position!=="static"&&l==="absolute"&&(k="scrollHeight",D="scrollWidth")),A=A,i===Gt||(i===Kt||i===dn)&&s===Fi){v=cn;var O=f&&A===w&&w.visualViewport?w.visualViewport.height:A[k];h-=O-r.height,h*=d?1:-1}if(i===Kt||(i===Gt||i===cn)&&s===Fi){b=dn;var B=f&&A===w&&w.visualViewport?w.visualViewport.width:A[D];x-=B-r.width,x*=d?1:-1}}var L=Object.assign({position:l},p&&WT),E=u===!0?VT({x,y:h},tn(n)):{x,y:h};if(x=E.x,h=E.y,d){var I;return Object.assign({},L,(I={},I[v]=C?"0":"",I[b]=S?"0":"",I.transform=(w.devicePixelRatio||1)<=1?"translate("+x+"px, "+h+"px)":"translate3d("+x+"px, "+h+"px, 0)",I))}return Object.assign({},L,(t={},t[v]=C?h+"px":"",t[b]=S?x+"px":"",t.transform="",t))}function HT(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:zn(t.placement),variation:xo(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,Wg(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,Wg(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 UT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:HT,data:{}};var ja={passive:!0};function RT(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=tn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(u){u.addEventListener("scroll",n.update,ja)}),l&&d.addEventListener("resize",n.update,ja),function(){s&&p.forEach(function(u){u.removeEventListener("scroll",n.update,ja)}),l&&d.removeEventListener("resize",n.update,ja)}}const qT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:RT,data:{}};var YT={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,function(t){return YT[t]})}var GT={start:"end",end:"start"};function Vg(e){return e.replace(/start|end/g,function(t){return GT[t]})}function vd(e){var t=tn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Sd(e){return bo(hr(e)).left+vd(e).scrollLeft}function KT(e,t){var n=tn(e),r=hr(e),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,d=0;if(i){s=i.width,a=i.height;var p=_g();(p||!p&&t==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:l+Sd(e),y:d}}function XT(e){var t,n=hr(e),r=vd(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=$r(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=$r(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Sd(e),d=-r.scrollTop;return rr(i||n).direction==="rtl"&&(l+=$r(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:d}}function wd(e){var t=rr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Hg(e){return["html","body","#document"].indexOf(_n(e))>=0?e.ownerDocument.body:un(e)&&wd(e)?e:Hg(La(e))}function zi(e,t){var n;t===void 0&&(t=[]);var r=Hg(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=tn(r),a=i?[s].concat(s.visualViewport||[],wd(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(zi(La(a)))}function Cd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function JT(e,t){var n=bo(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 Ug(e,t,n){return t===Fg?Cd(KT(e,n)):zr(t)?JT(t,n):Cd(XT(hr(e)))}function QT(e){var t=zi(La(e)),n=["absolute","fixed"].indexOf(rr(e).position)>=0,r=n&&un(e)?Di(e):e;return zr(r)?t.filter(function(i){return zr(i)&&zg(i,r)&&_n(i)!=="body"}):[]}function ZT(e,t,n,r){var i=t==="clippingParents"?QT(e):[].concat(t),s=[].concat(i,[n]),a=s[0],l=s.reduce(function(d,p){var u=Ug(e,p,r);return d.top=$r(u.top,d.top),d.right=Ba(u.right,d.right),d.bottom=Ba(u.bottom,d.bottom),d.left=$r(u.left,d.left),d},Ug(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 Rg(e){var t=e.reference,n=e.element,r=e.placement,i=r?zn(r):null,s=r?xo(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(i){case Gt:d={x:a,y:t.y-n.height};break;case cn:d={x:a,y:t.y+t.height};break;case dn:d={x:t.x+t.width,y:l};break;case Kt:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var p=i?xd(i):null;if(p!=null){var u=p==="y"?"height":"width";switch(s){case mo:d[p]=d[p]-(t[u]/2-n[u]/2);break;case Fi:d[p]=d[p]+(t[u]/2-n[u]/2);break}}return d}function $i(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?xT:l,p=n.rootBoundary,u=p===void 0?Fg:p,f=n.elementContext,y=f===void 0?Mi:f,x=n.altBoundary,g=x===void 0?!1:x,h=n.padding,m=h===void 0?0:h,S=Lg(typeof m!="number"?m:jg(m,Ni)),C=y===Mi?vT:Mi,b=e.rects.popper,v=e.elements[g?C:y],w=ZT(zr(v)?v:v.contextElement||hr(e.elements.popper),d,u,a),A=bo(e.elements.reference),k=Rg({reference:A,element:b,placement:i}),D=Cd(Object.assign({},b,k)),O=y===Mi?D:A,B={top:w.top-O.top+S.top,bottom:O.bottom-w.bottom+S.bottom,left:w.left-O.left+S.left,right:O.right-w.right+S.right},L=e.modifiersData.offset;if(y===Mi&&L){var E=L[i];Object.keys(B).forEach(function(I){var $=[dn,cn].indexOf(I)>=0?1:-1,W=[Gt,cn].indexOf(I)>=0?"y":"x";B[I]+=E[W]*$})}return B}function eA(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?Dg:d,u=xo(r),f=u?l?Mg:Mg.filter(function(g){return xo(g)===u}):Ni,y=f.filter(function(g){return p.indexOf(g)>=0});y.length===0&&(y=f);var x=y.reduce(function(g,h){return g[h]=$i(e,{placement:h,boundary:i,rootBoundary:s,padding:a})[zn(h)],g},{});return Object.keys(x).sort(function(g,h){return x[g]-x[h]})}function tA(e){if(zn(e)===gd)return[];var t=Wa(e);return[Vg(e),t,Vg(t)]}function nA(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,f=n.rootBoundary,y=n.altBoundary,x=n.flipVariations,g=x===void 0?!0:x,h=n.allowedAutoPlacements,m=t.options.placement,S=zn(m),C=S===m,b=d||(C||!g?[Wa(m)]:tA(m)),v=[m].concat(b).reduce(function(J,q){return J.concat(zn(q)===gd?eA(t,{placement:q,boundary:u,rootBoundary:f,padding:p,flipVariations:g,allowedAutoPlacements:h}):q)},[]),w=t.rects.reference,A=t.rects.popper,k=new Map,D=!0,O=v[0],B=0;B<v.length;B++){var L=v[B],E=zn(L),I=xo(L)===mo,$=[Gt,cn].indexOf(E)>=0,W=$?"width":"height",_=$i(t,{placement:L,boundary:u,rootBoundary:f,altBoundary:y,padding:p}),z=$?I?dn:Kt:I?cn:Gt;w[W]>A[W]&&(z=Wa(z));var N=Wa(z),V=[];if(s&&V.push(_[E]<=0),l&&V.push(_[z]<=0,_[N]<=0),V.every(function(J){return J})){O=L,D=!1;break}k.set(L,V)}if(D)for(var j=g?3:1,M=function(q){var K=v.find(function(U){var oe=k.get(U);if(oe)return oe.slice(0,q).every(function(ne){return ne})});if(K)return O=K,"break"},Y=j;Y>0;Y--){var Z=M(Y);if(Z==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const rA={name:"flip",enabled:!0,phase:"main",fn:nA,requiresIfExists:["offset"],data:{_skip:!1}};function qg(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[Gt,dn,cn,Kt].some(function(t){return e[t]>=0})}function oA(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=$i(t,{elementContext:"reference"}),l=$i(t,{altBoundary:!0}),d=qg(a,r),p=qg(l,i,s),u=Yg(d),f=Yg(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const iA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oA};function sA(e,t,n){var r=zn(e),i=[Kt,Gt].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,[Kt,dn].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function aA(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,a=Dg.reduce(function(u,f){return u[f]=sA(f,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 lA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aA};function cA(e){var t=e.state,n=e.name;t.modifiersData[n]=Rg({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const dA={name:"popperOffsets",enabled:!0,phase:"read",fn:cA,data:{}};function uA(e){return e==="x"?"y":"x"}function pA(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,f=n.padding,y=n.tether,x=y===void 0?!0:y,g=n.tetherOffset,h=g===void 0?0:g,m=$i(t,{boundary:d,rootBoundary:p,padding:f,altBoundary:u}),S=zn(t.placement),C=xo(t.placement),b=!C,v=xd(S),w=uA(v),A=t.modifiersData.popperOffsets,k=t.rects.reference,D=t.rects.popper,O=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,B=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(A){if(s){var I,$=v==="y"?Gt:Kt,W=v==="y"?cn:dn,_=v==="y"?"height":"width",z=A[v],N=z+m[$],V=z-m[W],j=x?-D[_]/2:0,M=C===mo?k[_]:D[_],Y=C===mo?-D[_]:-k[_],Z=t.elements.arrow,J=x&&Z?bd(Z):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bg(),K=q[$],U=q[W],oe=_i(0,k[_],J[_]),ne=b?k[_]/2-j-oe-K-B.mainAxis:M-oe-K-B.mainAxis,te=b?-k[_]/2+j+oe+U+B.mainAxis:Y+oe+U+B.mainAxis,ie=t.elements.arrow&&Di(t.elements.arrow),R=ie?v==="y"?ie.clientTop||0:ie.clientLeft||0:0,le=(I=L?.[v])!=null?I:0,ae=z+ne-le-R,me=z+te-le,Ve=_i(x?Ba(N,ae):N,z,x?$r(V,me):V);A[v]=Ve,E[v]=Ve-z}if(l){var Ie,Ne=v==="x"?Gt:Kt,He=v==="x"?cn:dn,je=A[w],$e=w==="y"?"height":"width",de=je+m[Ne],Ue=je-m[He],De=[Gt,Kt].indexOf(S)!==-1,se=(Ie=L?.[w])!=null?Ie:0,re=De?de:je-k[$e]-D[$e]-se+B.altAxis,fe=De?je+k[$e]+D[$e]-se-B.altAxis:Ue,ve=x&&De?zT(re,je,fe):_i(x?re:de,je,x?fe:Ue);A[w]=ve,E[w]=ve-je}t.modifiersData[r]=E}}const fA={name:"preventOverflow",enabled:!0,phase:"main",fn:pA,requiresIfExists:["offset"]};function hA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gA(e){return e===tn(e)||!un(e)?vd(e):hA(e)}function mA(e){var t=e.getBoundingClientRect(),n=yo(t.width)/e.offsetWidth||1,r=yo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function yA(e,t,n){n===void 0&&(n=!1);var r=un(t),i=un(t)&&mA(t),s=hr(t),a=bo(e,i,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((_n(t)!=="body"||wd(s))&&(l=gA(t)),un(t)?(d=bo(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Sd(s))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function bA(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 xA(e){var t=bA(e);return IT.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function vA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function SA(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 Gg={placement:"bottom",modifiers:[],strategy:"absolute"};function Kg(){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 wA(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?Gg:i;return function(l,d,p){p===void 0&&(p=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gg,s),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},f=[],y=!1,x={state:u,setOptions:function(S){var C=typeof S=="function"?S(u.options):S;h(),u.options=Object.assign({},s,u.options,C),u.scrollParents={reference:zr(l)?zi(l):l.contextElement?zi(l.contextElement):[],popper:zi(d)};var b=xA(SA([].concat(r,u.options.modifiers)));return u.orderedModifiers=b.filter(function(v){return v.enabled}),g(),x.update()},forceUpdate:function(){if(!y){var S=u.elements,C=S.reference,b=S.popper;if(Kg(C,b)){u.rects={reference:yA(C,Di(b),u.options.strategy==="fixed"),popper:bd(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(B){return u.modifiersData[B.name]=Object.assign({},B.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var w=u.orderedModifiers[v],A=w.fn,k=w.options,D=k===void 0?{}:k,O=w.name;typeof A=="function"&&(u=A({state:u,options:D,name:O,instance:x})||u)}}}},update:vA(function(){return new Promise(function(m){x.forceUpdate(),m(u)})}),destroy:function(){h(),y=!0}};if(!Kg(l,d))return x;x.setOptions(p).then(function(m){!y&&p.onFirstUpdate&&p.onFirstUpdate(m)});function g(){u.orderedModifiers.forEach(function(m){var S=m.name,C=m.options,b=C===void 0?{}:C,v=m.effect;if(typeof v=="function"){var w=v({state:u,name:S,instance:x,options:b}),A=function(){};f.push(w||A)}})}function h(){f.forEach(function(m){return m()}),f=[]}return x}}var CA=[qT,dA,UT,MT,lA,rA,fA,jT,iA],EA=wA({defaultModifiers:CA});function $n(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...s}=e,a=i?{}:wg(n,r),{props:l,internalRef:d}=Eg({...s,externalSlotProps:a}),p=xt(d,a?.ref,e.additionalProps?.ref);return Sg(t,{...l,ref:p},r)}function Br(e){return parseInt(T.version,10)>=19?e?.props?.ref||null:e?.ref||null}function TA(e){return typeof e=="function"?e():e}const Bi=T.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[a,l]=T.useState(null),d=xt(T.isValidElement(r)?Br(r):null,n);if(an(()=>{s||l(TA(i)||document.body)},[i,s]),an(()=>{if(a&&!s)return dg(n,a),()=>{dg(n,null)}},[n,a,s]),s){if(T.isValidElement(r)){const p={ref:d};return T.cloneElement(r,p)}return r}return a&&Fy.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(Bi.propTypes={children:o.node,container:o.oneOfType([nr,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(Bi.propTypes=Kc(Bi.propTypes));function AA(e){return Se("MuiPopper",e)}we("MuiPopper",["root"]);function PA(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 Va(e){return typeof e=="function"?e():e}function Ha(e){return e.nodeType!==void 0}function kA(e){return!Ha(e)}const OA=e=>{const{classes:t}=e;return Ce({root:["root"]},AA,t)},IA={},NA=T.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:s,disablePortal:a,modifiers:l,open:d,placement:p,popperOptions:u,popperRef:f,slotProps:y={},slots:x={},TransitionProps:g,ownerState:h,...m}=t,S=T.useRef(null),C=xt(S,n),b=T.useRef(null),v=xt(b,f),w=T.useRef(v);an(()=>{w.current=v},[v]),T.useImperativeHandle(f,()=>b.current,[]);const A=PA(p,s),[k,D]=T.useState(A),[O,B]=T.useState(Va(r));T.useEffect(()=>{b.current&&b.current.forceUpdate()}),T.useEffect(()=>{r&&B(Va(r))},[r]),an(()=>{if(!O||!d)return;const W=N=>{D(N.placement)};if(process.env.NODE_ENV!=="production"&&O&&Ha(O)&&O.nodeType===1){const N=O.getBoundingClientRect();process.env.NODE_ENV!=="test"&&N.top===0&&N.left===0&&N.right===0&&N.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:N})=>{W(N)}}];l!=null&&(_=_.concat(l)),u&&u.modifiers!=null&&(_=_.concat(u.modifiers));const z=EA(O,S.current,{placement:A,...u,modifiers:_});return w.current(z),()=>{z.destroy(),w.current(null)}},[O,a,l,d,u,A]);const L={placement:k};g!==null&&(L.TransitionProps=g);const E=OA(t),I=x.root??"div",$=$n({elementType:I,externalSlotProps:y.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:E.root});return c.jsx(I,{...$,children:typeof i=="function"?i(L):i})}),Xg=T.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:f="bottom",popperOptions:y=IA,popperRef:x,style:g,transition:h=!1,slotProps:m={},slots:S={},...C}=t,[b,v]=T.useState(!0),w=()=>{v(!1)},A=()=>{v(!0)};if(!d&&!u&&(!h||b))return null;let k;if(s)k=s;else if(r){const B=Va(r);k=B&&Ha(B)?wt(B).body:wt(null).body}const D=!u&&d&&(!h||b)?"none":void 0,O=h?{in:u,onEnter:w,onExited:A}:void 0;return c.jsx(Bi,{disablePortal:l,container:k,children:c.jsx(NA,{anchorEl:r,direction:a,disablePortal:l,modifiers:p,ref:n,open:h?!b:u,placement:f,popperOptions:y,popperRef:x,slotProps:m,slots:S,...C,style:{position:"fixed",top:0,left:0,display:D,...g},TransitionProps:O,children:i})})});process.env.NODE_ENV!=="production"&&(Xg.propTypes={anchorEl:vn(o.oneOfType([nr,o.object,o.func]),e=>{if(e.open){const t=Va(e.anchorEl);if(t&&Ha(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"||kA(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([tr,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:Wt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const FA=Q(Xg,{name:"MuiPopper",slot:"Root"})({}),Ed=T.forwardRef(function(t,n){const r=Ti(),i=Te({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:d,container:p,disablePortal:u,keepMounted:f,modifiers:y,open:x,placement:g,popperOptions:h,popperRef:m,transition:S,slots:C,slotProps:b,...v}=i,w=C?.root??l?.Root,A={anchorEl:s,container:p,disablePortal:u,keepMounted:f,modifiers:y,open:x,placement:g,popperOptions:h,popperRef:m,transition:S,...v};return c.jsx(FA,{as:a,direction:r?"rtl":"ltr",slots:{root:w},slotProps:b??d,...A,ref:n})});process.env.NODE_ENV!=="production"&&(Ed.propTypes={anchorEl:o.oneOfType([tr,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([tr,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:Wt,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 Ha(e){return parseInt(e,10)||0}const MA={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function DA(e){for(const t in e)return!1;return!0}function Jg(e){return DA(e)||e.outerHeightStyle===0&&!e.overflowing}const Qg=T.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:s=1,style:a,value:l,...d}=t,{current:p}=T.useRef(l!=null),u=T.useRef(null),f=xt(n,u),y=T.useRef(null),x=T.useRef(null),g=T.useCallback(()=>{const b=u.current,v=x.current;if(!b||!v)return;const A=Zn(b).getComputedStyle(b);if(A.width==="0px")return{outerHeightStyle:0,overflowing:!1};v.style.width=A.width,v.value=b.value||t.placeholder||"x",v.value.slice(-1)===`
168
- `&&(v.value+=" ");const k=A.boxSizing,D=Ha(A.paddingBottom)+Ha(A.paddingTop),O=Ha(A.borderBottomWidth)+Ha(A.borderTopWidth),B=v.scrollHeight;v.value="x";const L=v.scrollHeight;let E=B;s&&(E=Math.max(Number(s)*L,E)),i&&(E=Math.min(Number(i)*L,E)),E=Math.max(E,L);const I=E+(k==="border-box"?D+O:0),$=Math.abs(E-B)<=1;return{outerHeightStyle:I,overflowing:$}},[i,s,t.placeholder]),h=jt(()=>{const b=u.current,v=g();if(!b||!v||Jg(v))return!1;const w=v.outerHeightStyle;return y.current!=null&&y.current!==w}),m=T.useCallback(()=>{const b=u.current,v=g();if(!b||!v||Jg(v))return;const w=v.outerHeightStyle;y.current!==w&&(y.current=w,b.style.height=`${w}px`),b.style.overflow=v.overflowing?"hidden":""},[g]),S=T.useRef(-1);an(()=>{const b=cg(m),v=u?.current;if(!v)return;const w=Zn(v);w.addEventListener("resize",b);let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(()=>{h()&&(A.unobserve(v),cancelAnimationFrame(S.current),m(),S.current=requestAnimationFrame(()=>{A.observe(v)}))}),A.observe(v)),()=>{b.clear(),cancelAnimationFrame(S.current),w.removeEventListener("resize",b),A&&A.disconnect()}},[g,m,h]),an(()=>{m()});const C=b=>{p||m();const v=b.target,w=v.value.length,A=v.value.endsWith(`
169
- `),k=v.selectionStart===w;A&&k&&v.setSelectionRange(w,w),r&&r(b)};return c.jsxs(T.Fragment,{children:[c.jsx("textarea",{value:l,onChange:C,ref:f,rows:s,style:a,...d}),c.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:x,tabIndex:-1,style:{...MA.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Qg.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 gr({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 Ra=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ra.displayName="FormControlContext");function Bn(){return T.useContext(Ra)}function Zg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function qa(e,t=!1){return e&&(Zg(e.value)&&e.value!==""||t&&Zg(e.defaultValue)&&e.defaultValue!=="")}function _A(e){return e.startAdornment}function zA(e){return Se("MuiInputBase",e)}const vo=we("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var em;const Ya=(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]},Ga=(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]},$A=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:s,focused:a,formControl:l,fullWidth:d,hiddenLabel:p,multiline:u,readOnly:f,size:y,startAdornment:x,type:g}=e,h={root:["root",`color${ee(n)}`,r&&"disabled",i&&"error",d&&"fullWidth",a&&"focused",l&&"formControl",y&&y!=="medium"&&`size${ee(y)}`,u&&"multiline",x&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",y==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",x&&"inputAdornedStart",s&&"inputAdornedEnd",f&&"readOnly"]};return Ce(h,zA,t)},Ka=Q("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ya})(be(({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",[`&.${vo.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%"}}]}))),Xa=Q("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ga})(be(({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] + .${vo.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},[`&.${vo.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"}}]}})),tm=yE({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Li=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,color:d,components:p={},componentsProps:u={},defaultValue:f,disabled:y,disableInjectingGlobalStyles:x,endAdornment:g,error:h,fullWidth:m=!1,id:S,inputComponent:C="input",inputProps:b={},inputRef:v,margin:w,maxRows:A,minRows:k,multiline:D=!1,name:O,onBlur:B,onChange:L,onClick:E,onFocus:I,onKeyDown:$,onKeyUp:W,placeholder:_,readOnly:z,renderSuffix:N,rows:V,size:j,slotProps:M={},slots:Y={},startAdornment:Z,type:J="text",value:q,...K}=r,H=b.value!=null?b.value:q,{current:oe}=T.useRef(H!=null),ne=T.useRef(),te=T.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
- `))},[]),ie=xt(ne,v,b.ref,te),[R,le]=T.useState(!1),ae=Bn();process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(ae)return ae.registerEffect()},[ae]);const me=gr({props:r,muiFormControl:ae,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=ae?ae.focused:R,T.useEffect(()=>{!ae&&y&&R&&(le(!1),B&&B())},[ae,y,R,B]);const Ve=ae&&ae.onFilled,Ie=ae&&ae.onEmpty,Ne=T.useCallback(xe=>{qa(xe)?Ve&&Ve():Ie&&Ie()},[Ve,Ie]);an(()=>{oe&&Ne({value:H})},[H,Ne,oe]);const Ue=xe=>{I&&I(xe),b.onFocus&&b.onFocus(xe),ae&&ae.onFocus?ae.onFocus(xe):le(!0)},je=xe=>{B&&B(xe),b.onBlur&&b.onBlur(xe),ae&&ae.onBlur?ae.onBlur(xe):le(!1)},$e=(xe,...Ye)=>{if(!oe){const Fe=xe.target||ne.current;if(Fe==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.":Pn(1));Ne({value:Fe.value})}b.onChange&&b.onChange(xe,...Ye),L&&L(xe,...Ye)};T.useEffect(()=>{Ne(ne.current)},[]);const de=xe=>{ne.current&&xe.currentTarget===xe.target&&ne.current.focus(),E&&E(xe)};let He=C,De=b;D&&He==="input"&&(V?(process.env.NODE_ENV!=="production"&&(k||A)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),De={type:void 0,minRows:V,maxRows:V,...De}):De={type:void 0,maxRows:A,minRows:k,...De},He=Qg);const se=xe=>{Ne(xe.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};T.useEffect(()=>{ae&&ae.setAdornedStart(!!Z)},[ae,Z]);const re={...r,color:me.color||"primary",disabled:me.disabled,endAdornment:g,error:me.error,focused:me.focused,formControl:ae,fullWidth:m,hiddenLabel:me.hiddenLabel,multiline:D,size:me.size,startAdornment:Z,type:J},fe=$A(re),ve=Y.root||p.Root||Ka,Ae=M.root||u.root||{},Pe=Y.input||p.Input||Xa;return De={...De,...M.input??u.input},c.jsxs(T.Fragment,{children:[!x&&typeof tm=="function"&&(em||(em=c.jsx(tm,{}))),c.jsxs(ve,{...Ae,ref:n,onClick:de,...K,...!fr(ve)&&{ownerState:{...re,...Ae.ownerState}},className:pe(fe.root,Ae.className,l,z&&"MuiInputBase-readOnly"),children:[Z,c.jsx(Ra.Provider,{value:null,children:c.jsx(Pe,{"aria-invalid":me.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:f,disabled:me.disabled,id:S,onAnimationStart:se,name:O,placeholder:_,readOnly:z,required:me.required,rows:V,value:H,onKeyDown:$,onKeyUp:W,type:J,...De,...!fr(Pe)&&{as:He,ownerState:{...re,...De.ownerState}},ref:ie,className:pe(fe.input,De.className,z&&"MuiInputBase-readOnly"),onBlur:je,onChange:$e,onFocus:Ue})}),g,N?N({...me,startAdornment:Z}):null]})]})});process.env.NODE_ENV!=="production"&&(Li.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:dd,inputProps:o.object,inputRef:Wt,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 BA(e){return Se("MuiInput",e)}const ji={...vo,...we("MuiInput",["root","underline","input"])};function LA(e){return Se("MuiOutlinedInput",e)}const Ln={...vo,...we("MuiOutlinedInput",["root","notchedOutline","input"])};function jA(e){return Se("MuiFilledInput",e)}const Lr={...vo,...we("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},WA=dt(c.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),VA=dt(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 UA(e){return Se("MuiAvatar",e)}we("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const HA=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ce({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},UA,t)},RA=Q("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(be(({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]})}}}]}))),qA=Q("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),YA=Q(VA,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function GA({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,s]=T.useState(!1);return T.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 jr=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiAvatar"}),{alt:i,children:s,className:a,component:l="div",slots:d={},slotProps:p={},imgProps:u,sizes:f,src:y,srcSet:x,variant:g="circular",...h}=r;let m=null;const S={...r,component:l,variant:g},C=GA({...u,...typeof p.img=="function"?p.img(S):p.img,src:y,srcSet:x}),b=y||x,v=b&&C!=="error";S.colorDefault=!v,delete S.ownerState;const w=HA(S),[A,k]=Oe("root",{ref:n,className:pe(w.root,a),elementType:RA,externalForwardedProps:{slots:d,slotProps:p,component:l,...h},ownerState:S}),[D,O]=Oe("img",{className:w.img,elementType:qA,externalForwardedProps:{slots:d,slotProps:{img:{...u,...p.img}}},additionalProps:{alt:i,src:y,srcSet:x,sizes:f},ownerState:S}),[B,L]=Oe("fallback",{className:w.fallback,elementType:YA,externalForwardedProps:{slots:d,slotProps:p},shouldForwardComponentProp:!0,ownerState:S});return v?m=c.jsx(D,{...O}):s||s===0?m=s:b&&i?m=i[0]:m=c.jsx(B,{...L}),c.jsx(A,{...k,children:m})});process.env.NODE_ENV!=="production"&&(jr.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 KA(e){const{prototype:t={}}=e;return!!t.isReactComponent}function nm(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"&&!KA(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 Wr=vn(o.element,nm);Wr.isRequired=vn(o.element.isRequired,nm);const XA={entering:{opacity:1},entered:{opacity:1}},Ja=T.forwardRef(function(t,n){const r=Mn(),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:f,onEntering:y,onExit:x,onExited:g,onExiting:h,style:m,timeout:S=i,TransitionComponent:C=Dn,...b}=t,v=T.useRef(null),w=xt(v,Br(l),n),A=$=>W=>{if($){const _=v.current;W===void 0?$(_):$(_,W)}},k=A(y),D=A(($,W)=>{vg($);const _=_a({style:m,timeout:S,easing:d},{mode:"enter"});$.style.webkitTransition=r.transitions.create("opacity",_),$.style.transition=r.transitions.create("opacity",_),u&&u($,W)}),O=A(f),B=A(h),L=A($=>{const W=_a({style:m,timeout:S,easing:d},{mode:"exit"});$.style.webkitTransition=r.transitions.create("opacity",W),$.style.transition=r.transitions.create("opacity",W),x&&x($)}),E=A(g),I=$=>{s&&s(v.current,$)};return c.jsx(C,{appear:a,in:p,nodeRef:v,onEnter:D,onEntered:O,onEntering:k,onExit:L,onExited:E,onExiting:B,addEndListener:I,timeout:S,...b,children:($,{ownerState:W,..._})=>T.cloneElement(l,{style:{opacity:0,visibility:$==="exited"&&!p?"hidden":void 0,...XA[$],...m,...l.props.style},ref:w,..._})})});process.env.NODE_ENV!=="production"&&(Ja.propTypes={addEndListener:o.func,appear:o.bool,children:Wr.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 JA(e){return Se("MuiBackdrop",e)}we("MuiBackdrop",["root","invisible"]);const QA=e=>{const{classes:t,invisible:n}=e;return Ce({root:["root",n&&"invisible"]},JA,t)},ZA=Q("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=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:a="div",invisible:l=!1,open:d,components:p={},componentsProps:u={},slotProps:f={},slots:y={},TransitionComponent:x,transitionDuration:g,...h}=r,m={...r,component:a,invisible:l},S=QA(m),C={transition:x,root:p.Root,...y},b={...u,...f},v={component:a,slots:C,slotProps:b},[w,A]=Oe("root",{elementType:ZA,externalForwardedProps:v,className:pe(S.root,s),ownerState:m}),[k,D]=Oe("transition",{elementType:Ja,externalForwardedProps:v,ownerState:m});return c.jsx(k,{in:d,timeout:g,...h,...D,children:c.jsx(w,{"aria-hidden":!0,...A,classes:S,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 eP=we("MuiBox",["root"]),tP=ag(),P=sC({themeId:pi,defaultTheme:tP,defaultClassName:eP.root,generateClassName:Nh.generate});process.env.NODE_ENV!=="production"&&(P.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 nP(e){return Se("MuiButton",e)}const Vr=we("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"]),rm=T.createContext({});process.env.NODE_ENV!=="production"&&(rm.displayName="ButtonGroupContext");const om=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(om.displayName="ButtonGroupButtonContext");const rP=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=Ce(p,nP,d);return{...d,...u}},im=[{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}}}],oP=Q(Oi,{shouldForwardProp:e=>Dt(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]}})(be(({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"},[`&.${Vr.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]},[`&.${Vr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Vr.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)",[`&.${Vr.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(gt()).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"},[`&.${Vr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vr.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}),[`&.${Vr.loading}`]:{color:"transparent"}}}]}})),iP=Q("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}},...im]})),sP=Q("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}},...im]})),aP=Q("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}}]})),sm=Q("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),tt=T.forwardRef(function(t,n){const r=T.useContext(rm),i=T.useContext(om),s=Ci(r,t),a=Te({props:s,name:"MuiButton"}),{children:l,color:d="primary",component:p="button",className:u,disabled:f=!1,disableElevation:y=!1,disableFocusRipple:x=!1,endIcon:g,focusVisibleClassName:h,fullWidth:m=!1,id:S,loading:C=null,loadingIndicator:b,loadingPosition:v="center",size:w="medium",startIcon:A,type:k,variant:D="text",...O}=a,B=Ir(S),L=b??c.jsx(Ii,{"aria-labelledby":B,color:"inherit",size:16}),E={...a,color:d,component:p,disabled:f,disableElevation:y,disableFocusRipple:x,fullWidth:m,loading:C,loadingIndicator:L,loadingPosition:v,size:w,type:k,variant:D},I=rP(E),$=(A||C&&v==="start")&&c.jsx(iP,{className:I.startIcon,ownerState:E,children:A||c.jsx(sm,{className:I.loadingIconPlaceholder,ownerState:E})}),W=(g||C&&v==="end")&&c.jsx(sP,{className:I.endIcon,ownerState:E,children:g||c.jsx(sm,{className:I.loadingIconPlaceholder,ownerState:E})}),_=i||"",z=typeof C=="boolean"?c.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:C&&c.jsx(aP,{className:I.loadingIndicator,ownerState:E,children:L})}):null;return c.jsxs(oP,{ownerState:E,className:pe(r.className,I.root,u,_),component:p,disabled:f||C,focusRipple:!x,focusVisibleClassName:pe(I.focusVisible,h),ref:n,type:k,id:C?B:S,...O,classes:I,children:[$,v!=="end"&&z,l,v==="end"&&z,W]})});process.env.NODE_ENV!=="production"&&(tt.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 lP(e){return Se("MuiCard",e)}we("MuiCard",["root"]);const cP=e=>{const{classes:t}=e;return Ce({root:["root"]},lP,t)},dP=Q(Sn,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Qa=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiCard"}),{className:i,raised:s=!1,...a}=r,l={...r,raised:s},d=cP(l);return c.jsx(dP,{className:pe(d.root,i),elevation:s?8:void 0,ref:n,ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Qa.propTypes={children:o.node,classes:o.object,className:o.string,raised:vn(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 uP(e){return Se("PrivateSwitchBase",e)}we("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const pP=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 Ce(s,uP,t)},fP=Q(Oi,{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}}]}),hP=Q("input",{name:"MuiSwitchBase",shouldForwardProp:Dt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Za=T.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:s,defaultChecked:a,disabled:l,disableFocusRipple:d=!1,edge:p=!1,icon:u,id:f,inputProps:y,inputRef:x,name:g,onBlur:h,onChange:m,onFocus:S,readOnly:C,required:b=!1,tabIndex:v,type:w,value:A,slots:k={},slotProps:D={},...O}=t,[B,L]=po({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),E=Bn(),I=q=>{S&&S(q),E&&E.onFocus&&E.onFocus(q)},$=q=>{h&&h(q),E&&E.onBlur&&E.onBlur(q)},W=q=>{if(q.nativeEvent.defaultPrevented)return;const K=q.target.checked;L(K),m&&m(q,K)};let _=l;E&&typeof _>"u"&&(_=E.disabled);const z=w==="checkbox"||w==="radio",N={...t,checked:B,disabled:_,disableFocusRipple:d,edge:p},V=pP(N),j={slots:k,slotProps:{input:y,...D}},[M,Y]=Oe("root",{ref:n,elementType:fP,className:V.root,shouldForwardComponentProp:!0,externalForwardedProps:{...j,component:"span",...O},getSlotProps:q=>({...q,onFocus:K=>{q.onFocus?.(K),I(K)},onBlur:K=>{q.onBlur?.(K),$(K)}}),ownerState:N,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:_,role:void 0,tabIndex:null}}),[Z,J]=Oe("input",{ref:x,elementType:hP,className:V.input,externalForwardedProps:j,getSlotProps:q=>({...q,onChange:K=>{q.onChange?.(K),W(K)}}),ownerState:N,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:_,id:z?f:void 0,name:g,readOnly:C,required:b,tabIndex:v,type:w,...w==="checkbox"&&A===void 0?{}:{value:A}}});return c.jsxs(M,{...Y,children:[c.jsx(Z,{...J}),B?s:u]})});process.env.NODE_ENV!=="production"&&(Za.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:Wt,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 gP=dt(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"),mP=dt(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"),yP=dt(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 bP(e){return Se("MuiCheckbox",e)}const Ad=we("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),xP=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,s={root:["root",n&&"indeterminate",`color${ee(r)}`,`size${ee(i)}`]},a=Ce(s,bP,t);return{...t,...a}},vP=Q(Za,{shouldForwardProp:e=>Dt(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)}`]]}})(be(({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(gt()).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(gt()).map(([t])=>({props:{color:t},style:{[`&.${Ad.checked}, &.${Ad.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ad.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),SP=c.jsx(mP,{}),wP=c.jsx(gP,{}),CP=c.jsx(yP,{}),Ct=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiCheckbox"}),{checkedIcon:i=SP,color:s="primary",icon:a=wP,indeterminate:l=!1,indeterminateIcon:d=CP,inputProps:p,size:u="medium",disableRipple:f=!1,className:y,slots:x={},slotProps:g={},...h}=r,m=l?d:a,S=l?d:i,C={...r,disableRipple:f,color:s,indeterminate:l,size:u},b=xP(C),v=g.input??p,[w,A]=Oe("root",{ref:n,elementType:vP,className:pe(b.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:g,...h},ownerState:C,additionalProps:{type:"checkbox",icon:T.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:T.cloneElement(S,{fontSize:S.props.fontSize??u}),disableRipple:f,slots:x,slotProps:{input:ug(typeof v=="function"?v(C):v,{"data-indeterminate":l})}}});return c.jsx(w,{...A,classes:b})});process.env.NODE_ENV!=="production"&&(Ct.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 am(e){return e.substring(2).toLowerCase()}function EP(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function el(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=e,a=T.useRef(!1),l=T.useRef(null),d=T.useRef(!1),p=T.useRef(!1);T.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const u=xt(Br(t),l),f=jt(g=>{const h=p.current;p.current=!1;const m=wt(l.current);if(!d.current||!l.current||"clientX"in g&&EP(g,m))return;if(a.current){a.current=!1;return}let S;g.composedPath?S=g.composedPath().includes(l.current):S=!m.documentElement.contains(g.target)||l.current.contains(g.target),!S&&(n||!h)&&i(g)}),y=g=>h=>{p.current=!0;const m=t.props[g];m&&m(h)},x={ref:u};return s!==!1&&(x[s]=y(s)),T.useEffect(()=>{if(s!==!1){const g=am(s),h=wt(l.current),m=()=>{a.current=!0};return h.addEventListener(g,f),h.addEventListener("touchmove",m),()=>{h.removeEventListener(g,f),h.removeEventListener("touchmove",m)}}},[f,s]),r!==!1&&(x[r]=y(r)),T.useEffect(()=>{if(r!==!1){const g=am(r),h=wt(l.current);return h.addEventListener(g,f),()=>{h.removeEventListener(g,f)}}},[f,r]),T.cloneElement(t,x)}process.env.NODE_ENV!=="production"&&(el.propTypes={children:Wr.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"&&(el.propTypes=Kc(el.propTypes));const pn=BC({createStyledComponent:Q("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ee(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Te({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(pn.propTypes={children:o.node,classes:o.object,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function lm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function TP(e){const t=wt(e);return t.body===e?Zn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Wi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cm(e){return parseInt(Zn(e).getComputedStyle(e).paddingRight,10)||0}function AP(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 dm(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,a=>{const l=!s.includes(a),d=!AP(a);l&&d&&Wi(a,i)})}function Pd(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function PP(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(TP(r)){const a=lm(Zn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${cm(r)+a}px`;const l=wt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${cm(d)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=wt(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 kP(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class OP{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&&Wi(t.modalRef,!1);const i=kP(n);dm(n,t.mount,t.modalRef,i,!0);const s=Pd(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=Pd(this.containers,s=>s.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=PP(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Pd(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&&Wi(t.modalRef,n),dm(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&&Wi(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Vi(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const IP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function NP(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 FP(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 MP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||FP(e))}function DP(e){const t=[],n=[];return Array.from(e.querySelectorAll(IP)).forEach((r,i)=>{const s=NP(r);s===-1||!MP(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 _P(){return!0}function tl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=DP,isEnabled:a=_P,open:l}=e,d=T.useRef(!1),p=T.useRef(null),u=T.useRef(null),f=T.useRef(null),y=T.useRef(null),x=T.useRef(!1),g=T.useRef(null),h=xt(Br(t),g),m=T.useRef(null);T.useEffect(()=>{!l||!g.current||(x.current=!n)},[n,l]),T.useEffect(()=>{if(!l||!g.current)return;const b=wt(g.current),v=Vi(b);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")),x.current&&g.current.focus()),()=>{i||(f.current&&f.current.focus&&(d.current=!0,f.current.focus()),f.current=null)}},[l]),T.useEffect(()=>{if(!l||!g.current)return;const b=wt(g.current),v=Vi(b),w=D=>{m.current=D,!(r||!a()||D.key!=="Tab")&&v===g.current&&D.shiftKey&&(d.current=!0,u.current&&u.current.focus())},A=()=>{const D=g.current;if(D===null)return;const O=Vi(b);if(!b.hasFocus()||!a()||d.current){d.current=!1;return}if(D.contains(O)||r&&O!==p.current&&O!==u.current)return;if(O!==y.current)y.current=null;else if(y.current!==null)return;if(!x.current)return;let B=[];if((O===p.current||O===u.current)&&(B=s(g.current)),B.length>0){const L=!!(m.current?.shiftKey&&m.current?.key==="Tab"),E=B[0],I=B[B.length-1];typeof E!="string"&&typeof I!="string"&&(L?I.focus():E.focus())}else D.focus()};b.addEventListener("focusin",A),b.addEventListener("keydown",w,!0);const k=setInterval(()=>{const D=Vi(b);D&&D.tagName==="BODY"&&A()},50);return()=>{clearInterval(k),b.removeEventListener("focusin",A),b.removeEventListener("keydown",w,!0)}},[n,r,i,a,l,s]);const S=b=>{f.current===null&&(f.current=b.relatedTarget),x.current=!0,y.current=b.target;const v=t.props.onFocus;v&&v(b)},C=b=>{f.current===null&&(f.current=b.relatedTarget),x.current=!0};return c.jsxs(T.Fragment,{children:[c.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:p,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:h,onFocus:S}),c.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(tl.propTypes={children:Wr,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(tl.propTypes=Kc(tl.propTypes));function zP(e){return typeof e=="function"?e():e}function $P(e){return e?e.props.hasOwnProperty("in"):!1}const um=()=>{},nl=new OP;function BP(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,f=T.useRef({}),y=T.useRef(null),x=T.useRef(null),g=xt(x,u),[h,m]=T.useState(!p),S=$P(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const b=()=>wt(y.current),v=()=>(f.current.modalRef=x.current,f.current.mount=y.current,f.current),w=()=>{nl.mount(v(),{disableScrollLock:r}),x.current&&(x.current.scrollTop=0)},A=jt(()=>{const W=zP(t)||b().body;nl.add(v(),W),x.current&&w()}),k=()=>nl.isTopModal(v()),D=jt(W=>{y.current=W,W&&(p&&k()?w():x.current&&Wi(x.current,C))}),O=T.useCallback(()=>{nl.remove(v(),C)},[C]);T.useEffect(()=>()=>{O()},[O]),T.useEffect(()=>{p?A():(!S||!i)&&O()},[p,O,S,i,A]);const B=W=>_=>{W.onKeyDown?.(_),!(_.key!=="Escape"||_.which===229||!k())&&(n||(_.stopPropagation(),d&&d(_,"escapeKeyDown")))},L=W=>_=>{W.onClick?.(_),_.target===_.currentTarget&&d&&d(_,"backdropClick")};return{getRootProps:(W={})=>{const _=_r(e);delete _.onTransitionEnter,delete _.onTransitionExited;const z={..._,...W};return{role:"presentation",...z,onKeyDown:B(z),ref:g}},getBackdropProps:(W={})=>{const _=W;return{"aria-hidden":!0,..._,onClick:L(_),open:p}},getTransitionProps:()=>{const W=()=>{m(!1),s&&s()},_=()=>{m(!0),a&&a(),i&&O()};return{onEnter:od(W,l?.props.onEnter??um),onExited:od(_,l?.props.onExited??um)}},rootRef:g,portalRef:D,isTopModal:k,exited:h,hasTransition:S}}function LP(e){return Se("MuiModal",e)}we("MuiModal",["root","hidden","backdrop"]);const jP=e=>{const{open:t,exited:n,classes:r}=e;return Ce({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},LP,r)},WP=Q("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(be(({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"}}]}))),VP=Q(Td,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),So=T.forwardRef(function(t,n){const r=Te({name:"MuiModal",props:t}),{BackdropComponent:i=VP,BackdropProps:s,classes:a,className:l,closeAfterTransition:d=!1,children:p,container:u,component:f,components:y={},componentsProps:x={},disableAutoFocus:g=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:m=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:b=!1,hideBackdrop:v=!1,keepMounted:w=!1,onClose:A,onTransitionEnter:k,onTransitionExited:D,open:O,slotProps:B={},slots:L={},theme:E,...I}=r,$={...r,closeAfterTransition:d,disableAutoFocus:g,disableEnforceFocus:h,disableEscapeKeyDown:m,disablePortal:S,disableRestoreFocus:C,disableScrollLock:b,hideBackdrop:v,keepMounted:w},{getRootProps:W,getBackdropProps:_,getTransitionProps:z,portalRef:N,isTopModal:V,exited:j,hasTransition:M}=BP({...$,rootRef:n}),Y={...$,exited:j},Z=jP(Y),J={};if(p.props.tabIndex===void 0&&(J.tabIndex="-1"),M){const{onEnter:te,onExited:ie}=z();J.onEnter=te,J.onExited=ie}const q={slots:{root:y.Root,backdrop:y.Backdrop,...L},slotProps:{...x,...B}},[K,H]=Oe("root",{ref:n,elementType:WP,externalForwardedProps:{...q,...I,component:f},getSlotProps:W,ownerState:Y,className:pe(l,Z?.root,!Y.open&&Y.exited&&Z?.hidden)}),[oe,ne]=Oe("backdrop",{ref:s?.ref,elementType:i,externalForwardedProps:q,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:te=>_({...te,onClick:ie=>{te?.onClick&&te.onClick(ie)}}),className:pe(s?.className,Z?.backdrop),ownerState:Y});return!w&&!O&&(!M||j)?null:c.jsx(Bi,{ref:N,container:u,disablePortal:S,children:c.jsxs(K,{...H,children:[!v&&i?c.jsx(oe,{...ne}):null,c.jsx(tl,{disableEnforceFocus:h,disableAutoFocus:g,disableRestoreFocus:C,isEnabled:V,open:O,children:T.cloneElement(p,J)})]})})});process.env.NODE_ENV!=="production"&&(So.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Wr.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([tr,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 UP(e){return Se("MuiDialog",e)}const kd=we("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Od=T.createContext({});process.env.NODE_ENV!=="production"&&(Od.displayName="DialogContext");const HP=Q(Td,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),RP=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 Ce(a,UP,t)},qP=Q(So,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),YP=Q("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"}}}]}),GP=Q(Sn,{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]}})(be(({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)`,[`&.${kd.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}`,[`&.${kd.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,[`&.${kd.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),wo=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialog"}),i=Mn(),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:f,className:y,disableEscapeKeyDown:x=!1,fullScreen:g=!1,fullWidth:h=!1,maxWidth:m="sm",onClick:S,onClose:C,open:b,PaperComponent:v=Sn,PaperProps:w={},scroll:A="paper",slots:k={},slotProps:D={},TransitionComponent:O=Ja,transitionDuration:B=s,TransitionProps:L,...E}=r,I={...r,disableEscapeKeyDown:x,fullScreen:g,fullWidth:h,maxWidth:m,scroll:A},$=RP(I),W=T.useRef(),_=le=>{W.current=le.target===le.currentTarget},z=le=>{S&&S(le),W.current&&(W.current=null,C&&C(le,"backdropClick"))},N=Ir(l),V=T.useMemo(()=>({titleId:N}),[N]),j={transition:O,...k},M={transition:L,paper:w,backdrop:u,...D},Y={slots:j,slotProps:M},[Z,J]=Oe("root",{elementType:qP,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:I,className:pe($.root,y),ref:n}),[q,K]=Oe("backdrop",{elementType:HP,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:I}),[H,oe]=Oe("paper",{elementType:GP,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:I,className:pe($.paper,w.className)}),[ne,te]=Oe("container",{elementType:YP,externalForwardedProps:Y,ownerState:I,className:$.container}),[ie,R]=Oe("transition",{elementType:Ja,externalForwardedProps:Y,ownerState:I,additionalProps:{appear:!0,in:b,timeout:B,role:"presentation"}});return c.jsx(Z,{closeAfterTransition:!0,slots:{backdrop:q},slotProps:{backdrop:{transitionDuration:B,as:p,...K}},disableEscapeKeyDown:x,onClose:C,open:b,onClick:z,...J,...E,children:c.jsx(ie,{...R,children:c.jsx(ne,{onMouseDown:_,...te,children:c.jsx(H,{as:v,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":N,"aria-modal":d,...oe,children:c.jsx(Od.Provider,{value:V,children:f})})})})})});process.env.NODE_ENV!=="production"&&(wo.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 KP(e){return Se("MuiDialogActions",e)}we("MuiDialogActions",["root","spacing"]);const XP=e=>{const{classes:t,disableSpacing:n}=e;return Ce({root:["root",!n&&"spacing"]},KP,t)},JP=Q("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}}}]}),Id=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:s=!1,...a}=r,l={...r,disableSpacing:s},d=XP(l);return c.jsx(JP,{className:pe(d.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Id.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 QP(e){return Se("MuiDialogContent",e)}we("MuiDialogContent",["root","dividers"]);function ZP(e){return Se("MuiDialogTitle",e)}const ek=we("MuiDialogTitle",["root"]),tk=e=>{const{classes:t,dividers:n}=e;return Ce({root:["root",n&&"dividers"]},QP,t)},nk=Q("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(be(({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:{[`.${ek.root} + &`]:{paddingTop:0}}}]}))),Ui=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogContent"}),{className:i,dividers:s=!1,...a}=r,l={...r,dividers:s},d=tk(l);return c.jsx(nk,{className:pe(d.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Ui.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 rk=e=>{const{classes:t}=e;return Ce({root:["root"]},ZP,t)},ok=Q(U,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Co=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogTitle"}),{className:i,id:s,...a}=r,l=r,d=rk(l),{titleId:p=s}=T.useContext(Od);return c.jsx(ok,{component:"h2",className:pe(d.root,i),ownerState:l,ref:n,variant:"h6",id:s??p,...a})});process.env.NODE_ENV!=="production"&&(Co.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 ik(e){return Se("MuiDivider",e)}const pm=we("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),sk=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:s,orientation:a,textAlign:l,variant:d}=e;return Ce({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"]},ik,r)},ak=Q("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]}})(be(({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%"}}}]}))),lk=Q("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(be(({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=T.forwardRef(function(t,n){const r=Te({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:f=d!=="hr"?"separator":void 0,textAlign:y="center",variant:x="fullWidth",...g}=r,h={...r,absolute:i,component:d,flexItem:p,light:u,orientation:l,role:f,textAlign:y,variant:x},m=sk(h);return c.jsx(ak,{as:d,className:pe(m.root,a),role:f,ref:n,ownerState:h,"aria-orientation":f==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...g,children:s?c.jsx(lk,{className:m.wrapper,ownerState:h,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 ck=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=Ce(d,jA,t);return{...t,...p}},dk=Q(Ka,{shouldForwardProp:e=>Dt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ya(e,t),!n.disableUnderline&&t.underline]}})(be(({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}},[`&.${Lr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Lr.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"},[`&.${Lr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Lr.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(.${Lr.disabled}, .${Lr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Lr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(gt()).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}}]}})),uk=Q(Xa,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ga})(be(({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}}]}))),rl=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,hiddenLabel:d,inputComponent:p="input",multiline:u=!1,slotProps:f,slots:y={},type:x="text",...g}=r,h={...r,disableUnderline:i,fullWidth:l,inputComponent:p,multiline:u,type:x},m=ck(r),S={root:{ownerState:h},input:{ownerState:h}},C=f??a?Mt(S,f??a):S,b=y.root??s.Root??dk,v=y.input??s.Input??uk;return c.jsx(Li,{slots:{root:b,input:v},slotProps:C,fullWidth:l,inputComponent:p,multiline:u,ref:n,type:x,...g,classes:m})});process.env.NODE_ENV!=="production"&&(rl.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:Wt,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}),rl.muiName="Input";function pk(e){return Se("MuiFormControl",e)}we("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const fk=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ee(n)}`,r&&"fullWidth"]};return Ce(i,pk,t)},hk=Q("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%"}}]}),Hi=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFormControl"}),{children:i,className:s,color:a="primary",component:l="div",disabled:d=!1,error:p=!1,focused:u,fullWidth:f=!1,hiddenLabel:y=!1,margin:x="none",required:g=!1,size:h="medium",variant:m="outlined",...S}=r,C={...r,color:a,component:l,disabled:d,error:p,fullWidth:f,hiddenLabel:y,margin:x,required:g,size:h,variant:m},b=fk(C),[v,w]=T.useState(()=>{let _=!1;return i&&T.Children.forEach(i,z=>{if(!Jc(z,["Input","Select"]))return;const N=Jc(z,["Select"])?z.props.input:z;N&&_A(N.props)&&(_=!0)}),_}),[A,k]=T.useState(()=>{let _=!1;return i&&T.Children.forEach(i,z=>{Jc(z,["Input","Select"])&&(qa(z.props,!0)||qa(z.props.inputProps,!0))&&(_=!0)}),_}),[D,O]=T.useState(!1);d&&D&&O(!1);const B=u!==void 0&&!d?u:D;let L;const E=T.useRef(!1);process.env.NODE_ENV!=="production"&&(L=()=>(E.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
172
- `)),E.current=!0,()=>{E.current=!1}));const I=T.useCallback(()=>{k(!0)},[]),$=T.useCallback(()=>{k(!1)},[]),W=T.useMemo(()=>({adornedStart:v,setAdornedStart:w,color:a,disabled:d,error:p,filled:A,focused:B,fullWidth:f,hiddenLabel:y,size:h,onBlur:()=>{O(!1)},onFocus:()=>{O(!0)},onEmpty:$,onFilled:I,registerEffect:L,required:g,variant:m}),[v,a,d,p,A,B,f,y,L,$,I,g,h,m]);return c.jsx(Ra.Provider,{value:W,children:c.jsx(hk,{as:l,ownerState:C,className:pe(b.root,s),ref:n,...S,children:i})})});process.env.NODE_ENV!=="production"&&(Hi.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 gk(e){return Se("MuiFormControlLabel",e)}const Ri=we("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),mk=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 Ce(a,gk,t)},yk=Q("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ri.label}`]:t.label},t.root,t[`labelPlacement${ee(n.labelPlacement)}`]]}})(be(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ri.disabled}`]:{cursor:"default"},[`& .${Ri.label}`]:{[`&.${Ri.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}}]}))),bk=Q("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(be(({theme:e})=>({[`&.${Ri.error}`]:{color:(e.vars||e).palette.error.main}}))),fn=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:a={},control:l,disabled:d,disableTypography:p,inputRef:u,label:f,labelPlacement:y="end",name:x,onChange:g,required:h,slots:m={},slotProps:S={},value:C,...b}=r,v=Bn(),w=d??l.props.disabled??v?.disabled,A=h??l.props.required,k={disabled:w,required:A};["checked","name","onChange","value","inputRef"].forEach(W=>{typeof l.props[W]>"u"&&typeof r[W]<"u"&&(k[W]=r[W])});const D=gr({props:r,muiFormControl:v,states:["error"]}),O={...r,disabled:w,labelPlacement:y,required:A,error:D.error},B=mk(O),L={slots:m,slotProps:{...a,...S}},[E,I]=Oe("typography",{elementType:U,externalForwardedProps:L,ownerState:O});let $=f;return $!=null&&$.type!==U&&!p&&($=c.jsx(E,{component:"span",...I,className:pe(B.label,I?.className),children:$})),c.jsxs(yk,{className:pe(B.root,s),ownerState:O,ref:n,...b,children:[T.cloneElement(l,k),A?c.jsxs("div",{children:[$,c.jsxs(bk,{ownerState:O,"aria-hidden":!0,className:B.asterisk,children:[" ","*"]})]}):$]})});process.env.NODE_ENV!=="production"&&(fn.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:Wt,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 xk(e){return Se("MuiFormGroup",e)}we("MuiFormGroup",["root","row","error"]);const vk=e=>{const{classes:t,row:n,error:r}=e;return Ce({root:["root",n&&"row",r&&"error"]},xk,t)},Sk=Q("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"}}]}),fm=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFormGroup"}),{className:i,row:s=!1,...a}=r,l=Bn(),d=gr({props:r,muiFormControl:l,states:["error"]}),p={...r,row:s,error:d.error},u=vk(p);return c.jsx(Sk,{className:pe(u.root,i),ownerState:p,ref:n,...a})});process.env.NODE_ENV!=="production"&&(fm.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 wk(e){return Se("MuiFormHelperText",e)}const hm=we("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var gm;const Ck=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 Ce(p,wk,t)},Ek=Q("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]}})(be(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${hm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hm.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}}]}))),mm=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFormHelperText"}),{children:i,className:s,component:a="p",disabled:l,error:d,filled:p,focused:u,margin:f,required:y,variant:x,...g}=r,h=Bn(),m=gr({props:r,muiFormControl:h,states:["variant","size","disabled","error","filled","focused","required"]}),S={...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 S.ownerState;const C=Ck(S);return c.jsx(Ek,{as:a,className:pe(C.root,s),ref:n,...g,ownerState:S,children:i===" "?gm||(gm=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});process.env.NODE_ENV!=="production"&&(mm.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 Tk(e){return Se("MuiFormLabel",e)}const qi=we("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ak=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 Ce(d,Tk,t)},Pk=Q("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(be(({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(gt()).map(([t])=>({props:{color:t},style:{[`&.${qi.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${qi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${qi.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),kk=Q("span",{name:"MuiFormLabel",slot:"Asterisk"})(be(({theme:e})=>({[`&.${qi.error}`]:{color:(e.vars||e).palette.error.main}}))),Eo=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFormLabel"}),{children:i,className:s,color:a,component:l="label",disabled:d,error:p,filled:u,focused:f,required:y,...x}=r,g=Bn(),h=gr({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),m={...r,color:h.color||"primary",component:l,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},S=Ak(m);return c.jsxs(Pk,{as:l,ownerState:m,className:pe(S.root,s),ref:n,...x,children:[i,h.required&&c.jsxs(kk,{ownerState:m,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Eo.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 Nd(e){return`scale(${e}, ${e**2})`}const Ok={entering:{opacity:1,transform:Nd(1)},entered:{opacity:1,transform:"none"}},Fd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),To=T.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:s,easing:a,in:l,onEnter:d,onEntered:p,onEntering:u,onExit:f,onExited:y,onExiting:x,style:g,timeout:h="auto",TransitionComponent:m=Dn,...S}=t,C=Dr(),b=T.useRef(),v=Mn(),w=T.useRef(null),A=xt(w,Br(s),n),k=W=>_=>{if(W){const z=w.current;_===void 0?W(z):W(z,_)}},D=k(u),O=k((W,_)=>{vg(W);const{duration:z,delay:N,easing:V}=_a({style:g,timeout:h,easing:a},{mode:"enter"});let j;h==="auto"?(j=v.transitions.getAutoHeightDuration(W.clientHeight),b.current=j):j=z,W.style.transition=[v.transitions.create("opacity",{duration:j,delay:N}),v.transitions.create("transform",{duration:Fd?j:j*.666,delay:N,easing:V})].join(","),d&&d(W,_)}),B=k(p),L=k(x),E=k(W=>{const{duration:_,delay:z,easing:N}=_a({style:g,timeout:h,easing:a},{mode:"exit"});let V;h==="auto"?(V=v.transitions.getAutoHeightDuration(W.clientHeight),b.current=V):V=_,W.style.transition=[v.transitions.create("opacity",{duration:V,delay:z}),v.transitions.create("transform",{duration:Fd?V:V*.666,delay:Fd?z:z||V*.333,easing:N})].join(","),W.style.opacity=0,W.style.transform=Nd(.75),f&&f(W)}),I=k(y),$=W=>{h==="auto"&&C.start(b.current||0,W),r&&r(w.current,W)};return c.jsx(m,{appear:i,in:l,nodeRef:w,onEnter:O,onEntered:B,onEntering:D,onExit:E,onExited:I,onExiting:L,addEndListener:$,timeout:h==="auto"?null:h,...S,children:(W,{ownerState:_,...z})=>T.cloneElement(s,{style:{opacity:0,transform:Nd(.75),visibility:W==="exited"&&!l?"hidden":void 0,...Ok[W],...g,...s.props.style},ref:A,...z})})});process.env.NODE_ENV!=="production"&&(To.propTypes={addEndListener:o.func,appear:o.bool,children:Wr.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})])}),To&&(To.muiSupportAuto=!0);const Ik=e=>{const{classes:t,disableUnderline:n}=e,i=Ce({root:["root",!n&&"underline"],input:["input"]},BA,t);return{...t,...i}},Nk=Q(Ka,{shouldForwardProp:e=>Dt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ya(e,t),!n.disableUnderline&&t.underline]}})(be(({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"},[`&.${ji.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ji.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(.${ji.disabled}, .${ji.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ji.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(gt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Fk=Q(Xa,{name:"MuiInput",slot:"Input",overridesResolver:Ga})({}),ol=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,inputComponent:d="input",multiline:p=!1,slotProps:u,slots:f={},type:y="text",...x}=r,g=Ik(r),m={root:{ownerState:{disableUnderline:i}}},S=u??a?Mt(u??a,m):m,C=f.root??s.Root??Nk,b=f.input??s.Input??Fk;return c.jsx(Li,{slots:{root:C,input:b},slotProps:S,fullWidth:l,inputComponent:d,multiline:p,ref:n,type:y,...x,classes:g})});process.env.NODE_ENV!=="production"&&(ol.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:Wt,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}),ol.muiName="Input";function Mk(e){return Se("MuiInputLabel",e)}we("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Dk=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=Ce(d,Mk,t);return{...t,...p}},_k=Q(Eo,{shouldForwardProp:e=>Dt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qi.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]]}})(be(({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)"}}]}))),ym=T.forwardRef(function(t,n){const r=Te({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:s,shrink:a,variant:l,className:d,...p}=r,u=Bn();let f=a;typeof f>"u"&&u&&(f=u.filled||u.focused||u.adornedStart);const y=gr({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),x={...r,disableAnimation:i,formControl:u,shrink:f,size:y.size,variant:y.variant,required:y.required,focused:y.focused},g=Dk(x);return c.jsx(_k,{"data-shrink":f,ref:n,className:pe(g.root,d),...p,ownerState:x,classes:g})});process.env.NODE_ENV!=="production"&&(ym.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 zk(e){return Se("MuiLinearProgress",e)}we("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Md=4,Dd=lr`
167
+ `))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([nr,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:Wt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const FA=Q(Xg,{name:"MuiPopper",slot:"Root"})({}),Ed=T.forwardRef(function(t,n){const r=Ti(),i=Te({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:d,container:p,disablePortal:u,keepMounted:f,modifiers:y,open:x,placement:g,popperOptions:h,popperRef:m,transition:S,slots:C,slotProps:b,...v}=i,w=C?.root??l?.Root,A={anchorEl:s,container:p,disablePortal:u,keepMounted:f,modifiers:y,open:x,placement:g,popperOptions:h,popperRef:m,transition:S,...v};return c.jsx(FA,{as:a,direction:r?"rtl":"ltr",slots:{root:w},slotProps:b??d,...A,ref:n})});process.env.NODE_ENV!=="production"&&(Ed.propTypes={anchorEl:o.oneOfType([nr,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([nr,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:Wt,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 Ua(e){return parseInt(e,10)||0}const MA={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function DA(e){for(const t in e)return!1;return!0}function Jg(e){return DA(e)||e.outerHeightStyle===0&&!e.overflowing}const Qg=T.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:s=1,style:a,value:l,...d}=t,{current:p}=T.useRef(l!=null),u=T.useRef(null),f=xt(n,u),y=T.useRef(null),x=T.useRef(null),g=T.useCallback(()=>{const b=u.current,v=x.current;if(!b||!v)return;const A=er(b).getComputedStyle(b);if(A.width==="0px")return{outerHeightStyle:0,overflowing:!1};v.style.width=A.width,v.value=b.value||t.placeholder||"x",v.value.slice(-1)===`
168
+ `&&(v.value+=" ");const k=A.boxSizing,D=Ua(A.paddingBottom)+Ua(A.paddingTop),O=Ua(A.borderBottomWidth)+Ua(A.borderTopWidth),B=v.scrollHeight;v.value="x";const L=v.scrollHeight;let E=B;s&&(E=Math.max(Number(s)*L,E)),i&&(E=Math.min(Number(i)*L,E)),E=Math.max(E,L);const I=E+(k==="border-box"?D+O:0),$=Math.abs(E-B)<=1;return{outerHeightStyle:I,overflowing:$}},[i,s,t.placeholder]),h=jt(()=>{const b=u.current,v=g();if(!b||!v||Jg(v))return!1;const w=v.outerHeightStyle;return y.current!=null&&y.current!==w}),m=T.useCallback(()=>{const b=u.current,v=g();if(!b||!v||Jg(v))return;const w=v.outerHeightStyle;y.current!==w&&(y.current=w,b.style.height=`${w}px`),b.style.overflow=v.overflowing?"hidden":""},[g]),S=T.useRef(-1);an(()=>{const b=cg(m),v=u?.current;if(!v)return;const w=er(v);w.addEventListener("resize",b);let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(()=>{h()&&(A.unobserve(v),cancelAnimationFrame(S.current),m(),S.current=requestAnimationFrame(()=>{A.observe(v)}))}),A.observe(v)),()=>{b.clear(),cancelAnimationFrame(S.current),w.removeEventListener("resize",b),A&&A.disconnect()}},[g,m,h]),an(()=>{m()});const C=b=>{p||m();const v=b.target,w=v.value.length,A=v.value.endsWith(`
169
+ `),k=v.selectionStart===w;A&&k&&v.setSelectionRange(w,w),r&&r(b)};return c.jsxs(T.Fragment,{children:[c.jsx("textarea",{value:l,onChange:C,ref:f,rows:s,style:a,...d}),c.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:x,tabIndex:-1,style:{...MA.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Qg.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 gr({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 Ra=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ra.displayName="FormControlContext");function Bn(){return T.useContext(Ra)}function Zg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function qa(e,t=!1){return e&&(Zg(e.value)&&e.value!==""||t&&Zg(e.defaultValue)&&e.defaultValue!=="")}function _A(e){return e.startAdornment}function zA(e){return Se("MuiInputBase",e)}const vo=we("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var em;const Ya=(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]},Ga=(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]},$A=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:s,focused:a,formControl:l,fullWidth:d,hiddenLabel:p,multiline:u,readOnly:f,size:y,startAdornment:x,type:g}=e,h={root:["root",`color${ee(n)}`,r&&"disabled",i&&"error",d&&"fullWidth",a&&"focused",l&&"formControl",y&&y!=="medium"&&`size${ee(y)}`,u&&"multiline",x&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",y==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",x&&"inputAdornedStart",s&&"inputAdornedEnd",f&&"readOnly"]};return Ce(h,zA,t)},Ka=Q("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ya})(be(({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",[`&.${vo.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%"}}]}))),Xa=Q("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ga})(be(({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] + .${vo.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},[`&.${vo.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"}}]}})),tm=yE({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Li=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,color:d,components:p={},componentsProps:u={},defaultValue:f,disabled:y,disableInjectingGlobalStyles:x,endAdornment:g,error:h,fullWidth:m=!1,id:S,inputComponent:C="input",inputProps:b={},inputRef:v,margin:w,maxRows:A,minRows:k,multiline:D=!1,name:O,onBlur:B,onChange:L,onClick:E,onFocus:I,onKeyDown:$,onKeyUp:W,placeholder:_,readOnly:z,renderSuffix:N,rows:V,size:j,slotProps:M={},slots:Y={},startAdornment:Z,type:J="text",value:q,...K}=r,U=b.value!=null?b.value:q,{current:oe}=T.useRef(U!=null),ne=T.useRef(),te=T.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
+ `))},[]),ie=xt(ne,v,b.ref,te),[R,le]=T.useState(!1),ae=Bn();process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(ae)return ae.registerEffect()},[ae]);const me=gr({props:r,muiFormControl:ae,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=ae?ae.focused:R,T.useEffect(()=>{!ae&&y&&R&&(le(!1),B&&B())},[ae,y,R,B]);const Ve=ae&&ae.onFilled,Ie=ae&&ae.onEmpty,Ne=T.useCallback(xe=>{qa(xe)?Ve&&Ve():Ie&&Ie()},[Ve,Ie]);an(()=>{oe&&Ne({value:U})},[U,Ne,oe]);const He=xe=>{I&&I(xe),b.onFocus&&b.onFocus(xe),ae&&ae.onFocus?ae.onFocus(xe):le(!0)},je=xe=>{B&&B(xe),b.onBlur&&b.onBlur(xe),ae&&ae.onBlur?ae.onBlur(xe):le(!1)},$e=(xe,...Ye)=>{if(!oe){const Fe=xe.target||ne.current;if(Fe==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.":Pn(1));Ne({value:Fe.value})}b.onChange&&b.onChange(xe,...Ye),L&&L(xe,...Ye)};T.useEffect(()=>{Ne(ne.current)},[]);const de=xe=>{ne.current&&xe.currentTarget===xe.target&&ne.current.focus(),E&&E(xe)};let Ue=C,De=b;D&&Ue==="input"&&(V?(process.env.NODE_ENV!=="production"&&(k||A)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),De={type:void 0,minRows:V,maxRows:V,...De}):De={type:void 0,maxRows:A,minRows:k,...De},Ue=Qg);const se=xe=>{Ne(xe.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};T.useEffect(()=>{ae&&ae.setAdornedStart(!!Z)},[ae,Z]);const re={...r,color:me.color||"primary",disabled:me.disabled,endAdornment:g,error:me.error,focused:me.focused,formControl:ae,fullWidth:m,hiddenLabel:me.hiddenLabel,multiline:D,size:me.size,startAdornment:Z,type:J},fe=$A(re),ve=Y.root||p.Root||Ka,Ae=M.root||u.root||{},Pe=Y.input||p.Input||Xa;return De={...De,...M.input??u.input},c.jsxs(T.Fragment,{children:[!x&&typeof tm=="function"&&(em||(em=c.jsx(tm,{}))),c.jsxs(ve,{...Ae,ref:n,onClick:de,...K,...!fr(ve)&&{ownerState:{...re,...Ae.ownerState}},className:pe(fe.root,Ae.className,l,z&&"MuiInputBase-readOnly"),children:[Z,c.jsx(Ra.Provider,{value:null,children:c.jsx(Pe,{"aria-invalid":me.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:f,disabled:me.disabled,id:S,onAnimationStart:se,name:O,placeholder:_,readOnly:z,required:me.required,rows:V,value:U,onKeyDown:$,onKeyUp:W,type:J,...De,...!fr(Pe)&&{as:Ue,ownerState:{...re,...De.ownerState}},ref:ie,className:pe(fe.input,De.className,z&&"MuiInputBase-readOnly"),onBlur:je,onChange:$e,onFocus:He})}),g,N?N({...me,startAdornment:Z}):null]})]})});process.env.NODE_ENV!=="production"&&(Li.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:dd,inputProps:o.object,inputRef:Wt,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 BA(e){return Se("MuiInput",e)}const ji={...vo,...we("MuiInput",["root","underline","input"])};function LA(e){return Se("MuiOutlinedInput",e)}const Ln={...vo,...we("MuiOutlinedInput",["root","notchedOutline","input"])};function jA(e){return Se("MuiFilledInput",e)}const Lr={...vo,...we("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},WA=dt(c.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),VA=dt(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 HA(e){return Se("MuiAvatar",e)}we("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const UA=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ce({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},HA,t)},RA=Q("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(be(({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]})}}}]}))),qA=Q("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),YA=Q(VA,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function GA({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,s]=T.useState(!1);return T.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 jr=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiAvatar"}),{alt:i,children:s,className:a,component:l="div",slots:d={},slotProps:p={},imgProps:u,sizes:f,src:y,srcSet:x,variant:g="circular",...h}=r;let m=null;const S={...r,component:l,variant:g},C=GA({...u,...typeof p.img=="function"?p.img(S):p.img,src:y,srcSet:x}),b=y||x,v=b&&C!=="error";S.colorDefault=!v,delete S.ownerState;const w=UA(S),[A,k]=Oe("root",{ref:n,className:pe(w.root,a),elementType:RA,externalForwardedProps:{slots:d,slotProps:p,component:l,...h},ownerState:S}),[D,O]=Oe("img",{className:w.img,elementType:qA,externalForwardedProps:{slots:d,slotProps:{img:{...u,...p.img}}},additionalProps:{alt:i,src:y,srcSet:x,sizes:f},ownerState:S}),[B,L]=Oe("fallback",{className:w.fallback,elementType:YA,externalForwardedProps:{slots:d,slotProps:p},shouldForwardComponentProp:!0,ownerState:S});return v?m=c.jsx(D,{...O}):s||s===0?m=s:b&&i?m=i[0]:m=c.jsx(B,{...L}),c.jsx(A,{...k,children:m})});process.env.NODE_ENV!=="production"&&(jr.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 KA(e){const{prototype:t={}}=e;return!!t.isReactComponent}function nm(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"&&!KA(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 Wr=vn(o.element,nm);Wr.isRequired=vn(o.element.isRequired,nm);const XA={entering:{opacity:1},entered:{opacity:1}},Ja=T.forwardRef(function(t,n){const r=Mn(),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:f,onEntering:y,onExit:x,onExited:g,onExiting:h,style:m,timeout:S=i,TransitionComponent:C=Dn,...b}=t,v=T.useRef(null),w=xt(v,Br(l),n),A=$=>W=>{if($){const _=v.current;W===void 0?$(_):$(_,W)}},k=A(y),D=A(($,W)=>{vg($);const _=_a({style:m,timeout:S,easing:d},{mode:"enter"});$.style.webkitTransition=r.transitions.create("opacity",_),$.style.transition=r.transitions.create("opacity",_),u&&u($,W)}),O=A(f),B=A(h),L=A($=>{const W=_a({style:m,timeout:S,easing:d},{mode:"exit"});$.style.webkitTransition=r.transitions.create("opacity",W),$.style.transition=r.transitions.create("opacity",W),x&&x($)}),E=A(g),I=$=>{s&&s(v.current,$)};return c.jsx(C,{appear:a,in:p,nodeRef:v,onEnter:D,onEntered:O,onEntering:k,onExit:L,onExited:E,onExiting:B,addEndListener:I,timeout:S,...b,children:($,{ownerState:W,..._})=>T.cloneElement(l,{style:{opacity:0,visibility:$==="exited"&&!p?"hidden":void 0,...XA[$],...m,...l.props.style},ref:w,..._})})});process.env.NODE_ENV!=="production"&&(Ja.propTypes={addEndListener:o.func,appear:o.bool,children:Wr.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 JA(e){return Se("MuiBackdrop",e)}we("MuiBackdrop",["root","invisible"]);const QA=e=>{const{classes:t,invisible:n}=e;return Ce({root:["root",n&&"invisible"]},JA,t)},ZA=Q("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=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:a="div",invisible:l=!1,open:d,components:p={},componentsProps:u={},slotProps:f={},slots:y={},TransitionComponent:x,transitionDuration:g,...h}=r,m={...r,component:a,invisible:l},S=QA(m),C={transition:x,root:p.Root,...y},b={...u,...f},v={component:a,slots:C,slotProps:b},[w,A]=Oe("root",{elementType:ZA,externalForwardedProps:v,className:pe(S.root,s),ownerState:m}),[k,D]=Oe("transition",{elementType:Ja,externalForwardedProps:v,ownerState:m});return c.jsx(k,{in:d,timeout:g,...h,...D,children:c.jsx(w,{"aria-hidden":!0,...A,classes:S,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 eP=we("MuiBox",["root"]),tP=ag(),P=sC({themeId:pi,defaultTheme:tP,defaultClassName:eP.root,generateClassName:Nh.generate});process.env.NODE_ENV!=="production"&&(P.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 nP(e){return Se("MuiButton",e)}const Vr=we("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"]),rm=T.createContext({});process.env.NODE_ENV!=="production"&&(rm.displayName="ButtonGroupContext");const om=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(om.displayName="ButtonGroupButtonContext");const rP=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=Ce(p,nP,d);return{...d,...u}},im=[{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}}}],oP=Q(Oi,{shouldForwardProp:e=>Dt(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]}})(be(({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"},[`&.${Vr.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]},[`&.${Vr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Vr.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)",[`&.${Vr.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(gt()).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"},[`&.${Vr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vr.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}),[`&.${Vr.loading}`]:{color:"transparent"}}}]}})),iP=Q("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}},...im]})),sP=Q("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}},...im]})),aP=Q("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}}]})),sm=Q("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),tt=T.forwardRef(function(t,n){const r=T.useContext(rm),i=T.useContext(om),s=Ci(r,t),a=Te({props:s,name:"MuiButton"}),{children:l,color:d="primary",component:p="button",className:u,disabled:f=!1,disableElevation:y=!1,disableFocusRipple:x=!1,endIcon:g,focusVisibleClassName:h,fullWidth:m=!1,id:S,loading:C=null,loadingIndicator:b,loadingPosition:v="center",size:w="medium",startIcon:A,type:k,variant:D="text",...O}=a,B=Ir(S),L=b??c.jsx(Ii,{"aria-labelledby":B,color:"inherit",size:16}),E={...a,color:d,component:p,disabled:f,disableElevation:y,disableFocusRipple:x,fullWidth:m,loading:C,loadingIndicator:L,loadingPosition:v,size:w,type:k,variant:D},I=rP(E),$=(A||C&&v==="start")&&c.jsx(iP,{className:I.startIcon,ownerState:E,children:A||c.jsx(sm,{className:I.loadingIconPlaceholder,ownerState:E})}),W=(g||C&&v==="end")&&c.jsx(sP,{className:I.endIcon,ownerState:E,children:g||c.jsx(sm,{className:I.loadingIconPlaceholder,ownerState:E})}),_=i||"",z=typeof C=="boolean"?c.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:C&&c.jsx(aP,{className:I.loadingIndicator,ownerState:E,children:L})}):null;return c.jsxs(oP,{ownerState:E,className:pe(r.className,I.root,u,_),component:p,disabled:f||C,focusRipple:!x,focusVisibleClassName:pe(I.focusVisible,h),ref:n,type:k,id:C?B:S,...O,classes:I,children:[$,v!=="end"&&z,l,v==="end"&&z,W]})});process.env.NODE_ENV!=="production"&&(tt.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 lP(e){return Se("MuiCard",e)}we("MuiCard",["root"]);const cP=e=>{const{classes:t}=e;return Ce({root:["root"]},lP,t)},dP=Q(Sn,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Qa=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiCard"}),{className:i,raised:s=!1,...a}=r,l={...r,raised:s},d=cP(l);return c.jsx(dP,{className:pe(d.root,i),elevation:s?8:void 0,ref:n,ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Qa.propTypes={children:o.node,classes:o.object,className:o.string,raised:vn(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 uP(e){return Se("PrivateSwitchBase",e)}we("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const pP=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 Ce(s,uP,t)},fP=Q(Oi,{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}}]}),hP=Q("input",{name:"MuiSwitchBase",shouldForwardProp:Dt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Za=T.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:s,defaultChecked:a,disabled:l,disableFocusRipple:d=!1,edge:p=!1,icon:u,id:f,inputProps:y,inputRef:x,name:g,onBlur:h,onChange:m,onFocus:S,readOnly:C,required:b=!1,tabIndex:v,type:w,value:A,slots:k={},slotProps:D={},...O}=t,[B,L]=po({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),E=Bn(),I=q=>{S&&S(q),E&&E.onFocus&&E.onFocus(q)},$=q=>{h&&h(q),E&&E.onBlur&&E.onBlur(q)},W=q=>{if(q.nativeEvent.defaultPrevented)return;const K=q.target.checked;L(K),m&&m(q,K)};let _=l;E&&typeof _>"u"&&(_=E.disabled);const z=w==="checkbox"||w==="radio",N={...t,checked:B,disabled:_,disableFocusRipple:d,edge:p},V=pP(N),j={slots:k,slotProps:{input:y,...D}},[M,Y]=Oe("root",{ref:n,elementType:fP,className:V.root,shouldForwardComponentProp:!0,externalForwardedProps:{...j,component:"span",...O},getSlotProps:q=>({...q,onFocus:K=>{q.onFocus?.(K),I(K)},onBlur:K=>{q.onBlur?.(K),$(K)}}),ownerState:N,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:_,role:void 0,tabIndex:null}}),[Z,J]=Oe("input",{ref:x,elementType:hP,className:V.input,externalForwardedProps:j,getSlotProps:q=>({...q,onChange:K=>{q.onChange?.(K),W(K)}}),ownerState:N,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:_,id:z?f:void 0,name:g,readOnly:C,required:b,tabIndex:v,type:w,...w==="checkbox"&&A===void 0?{}:{value:A}}});return c.jsxs(M,{...Y,children:[c.jsx(Z,{...J}),B?s:u]})});process.env.NODE_ENV!=="production"&&(Za.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:Wt,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 gP=dt(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"),mP=dt(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"),yP=dt(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 bP(e){return Se("MuiCheckbox",e)}const Ad=we("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),xP=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,s={root:["root",n&&"indeterminate",`color${ee(r)}`,`size${ee(i)}`]},a=Ce(s,bP,t);return{...t,...a}},vP=Q(Za,{shouldForwardProp:e=>Dt(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)}`]]}})(be(({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(gt()).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(gt()).map(([t])=>({props:{color:t},style:{[`&.${Ad.checked}, &.${Ad.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ad.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),SP=c.jsx(mP,{}),wP=c.jsx(gP,{}),CP=c.jsx(yP,{}),Ct=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiCheckbox"}),{checkedIcon:i=SP,color:s="primary",icon:a=wP,indeterminate:l=!1,indeterminateIcon:d=CP,inputProps:p,size:u="medium",disableRipple:f=!1,className:y,slots:x={},slotProps:g={},...h}=r,m=l?d:a,S=l?d:i,C={...r,disableRipple:f,color:s,indeterminate:l,size:u},b=xP(C),v=g.input??p,[w,A]=Oe("root",{ref:n,elementType:vP,className:pe(b.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:g,...h},ownerState:C,additionalProps:{type:"checkbox",icon:T.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:T.cloneElement(S,{fontSize:S.props.fontSize??u}),disableRipple:f,slots:x,slotProps:{input:ug(typeof v=="function"?v(C):v,{"data-indeterminate":l})}}});return c.jsx(w,{...A,classes:b})});process.env.NODE_ENV!=="production"&&(Ct.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 am(e){return e.substring(2).toLowerCase()}function EP(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function el(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=e,a=T.useRef(!1),l=T.useRef(null),d=T.useRef(!1),p=T.useRef(!1);T.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const u=xt(Br(t),l),f=jt(g=>{const h=p.current;p.current=!1;const m=wt(l.current);if(!d.current||!l.current||"clientX"in g&&EP(g,m))return;if(a.current){a.current=!1;return}let S;g.composedPath?S=g.composedPath().includes(l.current):S=!m.documentElement.contains(g.target)||l.current.contains(g.target),!S&&(n||!h)&&i(g)}),y=g=>h=>{p.current=!0;const m=t.props[g];m&&m(h)},x={ref:u};return s!==!1&&(x[s]=y(s)),T.useEffect(()=>{if(s!==!1){const g=am(s),h=wt(l.current),m=()=>{a.current=!0};return h.addEventListener(g,f),h.addEventListener("touchmove",m),()=>{h.removeEventListener(g,f),h.removeEventListener("touchmove",m)}}},[f,s]),r!==!1&&(x[r]=y(r)),T.useEffect(()=>{if(r!==!1){const g=am(r),h=wt(l.current);return h.addEventListener(g,f),()=>{h.removeEventListener(g,f)}}},[f,r]),T.cloneElement(t,x)}process.env.NODE_ENV!=="production"&&(el.propTypes={children:Wr.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"&&(el.propTypes=Kc(el.propTypes));const pn=BC({createStyledComponent:Q("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ee(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Te({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(pn.propTypes={children:o.node,classes:o.object,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function lm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function TP(e){const t=wt(e);return t.body===e?er(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Wi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cm(e){return parseInt(er(e).getComputedStyle(e).paddingRight,10)||0}function AP(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 dm(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,a=>{const l=!s.includes(a),d=!AP(a);l&&d&&Wi(a,i)})}function Pd(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function PP(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(TP(r)){const a=lm(er(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${cm(r)+a}px`;const l=wt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${cm(d)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=wt(r).body;else{const a=r.parentElement,l=er(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 kP(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class OP{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&&Wi(t.modalRef,!1);const i=kP(n);dm(n,t.mount,t.modalRef,i,!0);const s=Pd(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=Pd(this.containers,s=>s.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=PP(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Pd(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&&Wi(t.modalRef,n),dm(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&&Wi(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Vi(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const IP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function NP(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 FP(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 MP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||FP(e))}function DP(e){const t=[],n=[];return Array.from(e.querySelectorAll(IP)).forEach((r,i)=>{const s=NP(r);s===-1||!MP(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 _P(){return!0}function tl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=DP,isEnabled:a=_P,open:l}=e,d=T.useRef(!1),p=T.useRef(null),u=T.useRef(null),f=T.useRef(null),y=T.useRef(null),x=T.useRef(!1),g=T.useRef(null),h=xt(Br(t),g),m=T.useRef(null);T.useEffect(()=>{!l||!g.current||(x.current=!n)},[n,l]),T.useEffect(()=>{if(!l||!g.current)return;const b=wt(g.current),v=Vi(b);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")),x.current&&g.current.focus()),()=>{i||(f.current&&f.current.focus&&(d.current=!0,f.current.focus()),f.current=null)}},[l]),T.useEffect(()=>{if(!l||!g.current)return;const b=wt(g.current),v=Vi(b),w=D=>{m.current=D,!(r||!a()||D.key!=="Tab")&&v===g.current&&D.shiftKey&&(d.current=!0,u.current&&u.current.focus())},A=()=>{const D=g.current;if(D===null)return;const O=Vi(b);if(!b.hasFocus()||!a()||d.current){d.current=!1;return}if(D.contains(O)||r&&O!==p.current&&O!==u.current)return;if(O!==y.current)y.current=null;else if(y.current!==null)return;if(!x.current)return;let B=[];if((O===p.current||O===u.current)&&(B=s(g.current)),B.length>0){const L=!!(m.current?.shiftKey&&m.current?.key==="Tab"),E=B[0],I=B[B.length-1];typeof E!="string"&&typeof I!="string"&&(L?I.focus():E.focus())}else D.focus()};b.addEventListener("focusin",A),b.addEventListener("keydown",w,!0);const k=setInterval(()=>{const D=Vi(b);D&&D.tagName==="BODY"&&A()},50);return()=>{clearInterval(k),b.removeEventListener("focusin",A),b.removeEventListener("keydown",w,!0)}},[n,r,i,a,l,s]);const S=b=>{f.current===null&&(f.current=b.relatedTarget),x.current=!0,y.current=b.target;const v=t.props.onFocus;v&&v(b)},C=b=>{f.current===null&&(f.current=b.relatedTarget),x.current=!0};return c.jsxs(T.Fragment,{children:[c.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:p,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:h,onFocus:S}),c.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(tl.propTypes={children:Wr,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(tl.propTypes=Kc(tl.propTypes));function zP(e){return typeof e=="function"?e():e}function $P(e){return e?e.props.hasOwnProperty("in"):!1}const um=()=>{},nl=new OP;function BP(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,f=T.useRef({}),y=T.useRef(null),x=T.useRef(null),g=xt(x,u),[h,m]=T.useState(!p),S=$P(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const b=()=>wt(y.current),v=()=>(f.current.modalRef=x.current,f.current.mount=y.current,f.current),w=()=>{nl.mount(v(),{disableScrollLock:r}),x.current&&(x.current.scrollTop=0)},A=jt(()=>{const W=zP(t)||b().body;nl.add(v(),W),x.current&&w()}),k=()=>nl.isTopModal(v()),D=jt(W=>{y.current=W,W&&(p&&k()?w():x.current&&Wi(x.current,C))}),O=T.useCallback(()=>{nl.remove(v(),C)},[C]);T.useEffect(()=>()=>{O()},[O]),T.useEffect(()=>{p?A():(!S||!i)&&O()},[p,O,S,i,A]);const B=W=>_=>{W.onKeyDown?.(_),!(_.key!=="Escape"||_.which===229||!k())&&(n||(_.stopPropagation(),d&&d(_,"escapeKeyDown")))},L=W=>_=>{W.onClick?.(_),_.target===_.currentTarget&&d&&d(_,"backdropClick")};return{getRootProps:(W={})=>{const _=_r(e);delete _.onTransitionEnter,delete _.onTransitionExited;const z={..._,...W};return{role:"presentation",...z,onKeyDown:B(z),ref:g}},getBackdropProps:(W={})=>{const _=W;return{"aria-hidden":!0,..._,onClick:L(_),open:p}},getTransitionProps:()=>{const W=()=>{m(!1),s&&s()},_=()=>{m(!0),a&&a(),i&&O()};return{onEnter:od(W,l?.props.onEnter??um),onExited:od(_,l?.props.onExited??um)}},rootRef:g,portalRef:D,isTopModal:k,exited:h,hasTransition:S}}function LP(e){return Se("MuiModal",e)}we("MuiModal",["root","hidden","backdrop"]);const jP=e=>{const{open:t,exited:n,classes:r}=e;return Ce({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},LP,r)},WP=Q("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(be(({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"}}]}))),VP=Q(Td,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),So=T.forwardRef(function(t,n){const r=Te({name:"MuiModal",props:t}),{BackdropComponent:i=VP,BackdropProps:s,classes:a,className:l,closeAfterTransition:d=!1,children:p,container:u,component:f,components:y={},componentsProps:x={},disableAutoFocus:g=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:m=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:b=!1,hideBackdrop:v=!1,keepMounted:w=!1,onClose:A,onTransitionEnter:k,onTransitionExited:D,open:O,slotProps:B={},slots:L={},theme:E,...I}=r,$={...r,closeAfterTransition:d,disableAutoFocus:g,disableEnforceFocus:h,disableEscapeKeyDown:m,disablePortal:S,disableRestoreFocus:C,disableScrollLock:b,hideBackdrop:v,keepMounted:w},{getRootProps:W,getBackdropProps:_,getTransitionProps:z,portalRef:N,isTopModal:V,exited:j,hasTransition:M}=BP({...$,rootRef:n}),Y={...$,exited:j},Z=jP(Y),J={};if(p.props.tabIndex===void 0&&(J.tabIndex="-1"),M){const{onEnter:te,onExited:ie}=z();J.onEnter=te,J.onExited=ie}const q={slots:{root:y.Root,backdrop:y.Backdrop,...L},slotProps:{...x,...B}},[K,U]=Oe("root",{ref:n,elementType:WP,externalForwardedProps:{...q,...I,component:f},getSlotProps:W,ownerState:Y,className:pe(l,Z?.root,!Y.open&&Y.exited&&Z?.hidden)}),[oe,ne]=Oe("backdrop",{ref:s?.ref,elementType:i,externalForwardedProps:q,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:te=>_({...te,onClick:ie=>{te?.onClick&&te.onClick(ie)}}),className:pe(s?.className,Z?.backdrop),ownerState:Y});return!w&&!O&&(!M||j)?null:c.jsx(Bi,{ref:N,container:u,disablePortal:S,children:c.jsxs(K,{...U,children:[!v&&i?c.jsx(oe,{...ne}):null,c.jsx(tl,{disableEnforceFocus:h,disableAutoFocus:g,disableRestoreFocus:C,isEnabled:V,open:O,children:T.cloneElement(p,J)})]})})});process.env.NODE_ENV!=="production"&&(So.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Wr.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([nr,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 HP(e){return Se("MuiDialog",e)}const kd=we("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Od=T.createContext({});process.env.NODE_ENV!=="production"&&(Od.displayName="DialogContext");const UP=Q(Td,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),RP=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 Ce(a,HP,t)},qP=Q(So,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),YP=Q("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"}}}]}),GP=Q(Sn,{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]}})(be(({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)`,[`&.${kd.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}`,[`&.${kd.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,[`&.${kd.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),wo=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialog"}),i=Mn(),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:f,className:y,disableEscapeKeyDown:x=!1,fullScreen:g=!1,fullWidth:h=!1,maxWidth:m="sm",onClick:S,onClose:C,open:b,PaperComponent:v=Sn,PaperProps:w={},scroll:A="paper",slots:k={},slotProps:D={},TransitionComponent:O=Ja,transitionDuration:B=s,TransitionProps:L,...E}=r,I={...r,disableEscapeKeyDown:x,fullScreen:g,fullWidth:h,maxWidth:m,scroll:A},$=RP(I),W=T.useRef(),_=le=>{W.current=le.target===le.currentTarget},z=le=>{S&&S(le),W.current&&(W.current=null,C&&C(le,"backdropClick"))},N=Ir(l),V=T.useMemo(()=>({titleId:N}),[N]),j={transition:O,...k},M={transition:L,paper:w,backdrop:u,...D},Y={slots:j,slotProps:M},[Z,J]=Oe("root",{elementType:qP,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:I,className:pe($.root,y),ref:n}),[q,K]=Oe("backdrop",{elementType:UP,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:I}),[U,oe]=Oe("paper",{elementType:GP,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:I,className:pe($.paper,w.className)}),[ne,te]=Oe("container",{elementType:YP,externalForwardedProps:Y,ownerState:I,className:$.container}),[ie,R]=Oe("transition",{elementType:Ja,externalForwardedProps:Y,ownerState:I,additionalProps:{appear:!0,in:b,timeout:B,role:"presentation"}});return c.jsx(Z,{closeAfterTransition:!0,slots:{backdrop:q},slotProps:{backdrop:{transitionDuration:B,as:p,...K}},disableEscapeKeyDown:x,onClose:C,open:b,onClick:z,...J,...E,children:c.jsx(ie,{...R,children:c.jsx(ne,{onMouseDown:_,...te,children:c.jsx(U,{as:v,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":N,"aria-modal":d,...oe,children:c.jsx(Od.Provider,{value:V,children:f})})})})})});process.env.NODE_ENV!=="production"&&(wo.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 KP(e){return Se("MuiDialogActions",e)}we("MuiDialogActions",["root","spacing"]);const XP=e=>{const{classes:t,disableSpacing:n}=e;return Ce({root:["root",!n&&"spacing"]},KP,t)},JP=Q("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}}}]}),Id=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:s=!1,...a}=r,l={...r,disableSpacing:s},d=XP(l);return c.jsx(JP,{className:pe(d.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Id.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 QP(e){return Se("MuiDialogContent",e)}we("MuiDialogContent",["root","dividers"]);function ZP(e){return Se("MuiDialogTitle",e)}const ek=we("MuiDialogTitle",["root"]),tk=e=>{const{classes:t,dividers:n}=e;return Ce({root:["root",n&&"dividers"]},QP,t)},nk=Q("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(be(({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:{[`.${ek.root} + &`]:{paddingTop:0}}}]}))),Hi=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogContent"}),{className:i,dividers:s=!1,...a}=r,l={...r,dividers:s},d=tk(l);return c.jsx(nk,{className:pe(d.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Hi.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 rk=e=>{const{classes:t}=e;return Ce({root:["root"]},ZP,t)},ok=Q(H,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Co=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogTitle"}),{className:i,id:s,...a}=r,l=r,d=rk(l),{titleId:p=s}=T.useContext(Od);return c.jsx(ok,{component:"h2",className:pe(d.root,i),ownerState:l,ref:n,variant:"h6",id:s??p,...a})});process.env.NODE_ENV!=="production"&&(Co.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 ik(e){return Se("MuiDivider",e)}const pm=we("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),sk=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:s,orientation:a,textAlign:l,variant:d}=e;return Ce({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"]},ik,r)},ak=Q("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]}})(be(({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%"}}}]}))),lk=Q("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(be(({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=T.forwardRef(function(t,n){const r=Te({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:f=d!=="hr"?"separator":void 0,textAlign:y="center",variant:x="fullWidth",...g}=r,h={...r,absolute:i,component:d,flexItem:p,light:u,orientation:l,role:f,textAlign:y,variant:x},m=sk(h);return c.jsx(ak,{as:d,className:pe(m.root,a),role:f,ref:n,ownerState:h,"aria-orientation":f==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...g,children:s?c.jsx(lk,{className:m.wrapper,ownerState:h,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 ck=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=Ce(d,jA,t);return{...t,...p}},dk=Q(Ka,{shouldForwardProp:e=>Dt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ya(e,t),!n.disableUnderline&&t.underline]}})(be(({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}},[`&.${Lr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Lr.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"},[`&.${Lr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Lr.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(.${Lr.disabled}, .${Lr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Lr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(gt()).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}}]}})),uk=Q(Xa,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ga})(be(({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}}]}))),rl=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,hiddenLabel:d,inputComponent:p="input",multiline:u=!1,slotProps:f,slots:y={},type:x="text",...g}=r,h={...r,disableUnderline:i,fullWidth:l,inputComponent:p,multiline:u,type:x},m=ck(r),S={root:{ownerState:h},input:{ownerState:h}},C=f??a?Mt(S,f??a):S,b=y.root??s.Root??dk,v=y.input??s.Input??uk;return c.jsx(Li,{slots:{root:b,input:v},slotProps:C,fullWidth:l,inputComponent:p,multiline:u,ref:n,type:x,...g,classes:m})});process.env.NODE_ENV!=="production"&&(rl.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:Wt,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}),rl.muiName="Input";function pk(e){return Se("MuiFormControl",e)}we("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const fk=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ee(n)}`,r&&"fullWidth"]};return Ce(i,pk,t)},hk=Q("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%"}}]}),Ui=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFormControl"}),{children:i,className:s,color:a="primary",component:l="div",disabled:d=!1,error:p=!1,focused:u,fullWidth:f=!1,hiddenLabel:y=!1,margin:x="none",required:g=!1,size:h="medium",variant:m="outlined",...S}=r,C={...r,color:a,component:l,disabled:d,error:p,fullWidth:f,hiddenLabel:y,margin:x,required:g,size:h,variant:m},b=fk(C),[v,w]=T.useState(()=>{let _=!1;return i&&T.Children.forEach(i,z=>{if(!Jc(z,["Input","Select"]))return;const N=Jc(z,["Select"])?z.props.input:z;N&&_A(N.props)&&(_=!0)}),_}),[A,k]=T.useState(()=>{let _=!1;return i&&T.Children.forEach(i,z=>{Jc(z,["Input","Select"])&&(qa(z.props,!0)||qa(z.props.inputProps,!0))&&(_=!0)}),_}),[D,O]=T.useState(!1);d&&D&&O(!1);const B=u!==void 0&&!d?u:D;let L;const E=T.useRef(!1);process.env.NODE_ENV!=="production"&&(L=()=>(E.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
172
+ `)),E.current=!0,()=>{E.current=!1}));const I=T.useCallback(()=>{k(!0)},[]),$=T.useCallback(()=>{k(!1)},[]),W=T.useMemo(()=>({adornedStart:v,setAdornedStart:w,color:a,disabled:d,error:p,filled:A,focused:B,fullWidth:f,hiddenLabel:y,size:h,onBlur:()=>{O(!1)},onFocus:()=>{O(!0)},onEmpty:$,onFilled:I,registerEffect:L,required:g,variant:m}),[v,a,d,p,A,B,f,y,L,$,I,g,h,m]);return c.jsx(Ra.Provider,{value:W,children:c.jsx(hk,{as:l,ownerState:C,className:pe(b.root,s),ref:n,...S,children:i})})});process.env.NODE_ENV!=="production"&&(Ui.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 gk(e){return Se("MuiFormControlLabel",e)}const Ri=we("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),mk=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 Ce(a,gk,t)},yk=Q("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ri.label}`]:t.label},t.root,t[`labelPlacement${ee(n.labelPlacement)}`]]}})(be(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ri.disabled}`]:{cursor:"default"},[`& .${Ri.label}`]:{[`&.${Ri.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}}]}))),bk=Q("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(be(({theme:e})=>({[`&.${Ri.error}`]:{color:(e.vars||e).palette.error.main}}))),fn=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:a={},control:l,disabled:d,disableTypography:p,inputRef:u,label:f,labelPlacement:y="end",name:x,onChange:g,required:h,slots:m={},slotProps:S={},value:C,...b}=r,v=Bn(),w=d??l.props.disabled??v?.disabled,A=h??l.props.required,k={disabled:w,required:A};["checked","name","onChange","value","inputRef"].forEach(W=>{typeof l.props[W]>"u"&&typeof r[W]<"u"&&(k[W]=r[W])});const D=gr({props:r,muiFormControl:v,states:["error"]}),O={...r,disabled:w,labelPlacement:y,required:A,error:D.error},B=mk(O),L={slots:m,slotProps:{...a,...S}},[E,I]=Oe("typography",{elementType:H,externalForwardedProps:L,ownerState:O});let $=f;return $!=null&&$.type!==H&&!p&&($=c.jsx(E,{component:"span",...I,className:pe(B.label,I?.className),children:$})),c.jsxs(yk,{className:pe(B.root,s),ownerState:O,ref:n,...b,children:[T.cloneElement(l,k),A?c.jsxs("div",{children:[$,c.jsxs(bk,{ownerState:O,"aria-hidden":!0,className:B.asterisk,children:[" ","*"]})]}):$]})});process.env.NODE_ENV!=="production"&&(fn.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:Wt,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 xk(e){return Se("MuiFormGroup",e)}we("MuiFormGroup",["root","row","error"]);const vk=e=>{const{classes:t,row:n,error:r}=e;return Ce({root:["root",n&&"row",r&&"error"]},xk,t)},Sk=Q("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"}}]}),fm=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFormGroup"}),{className:i,row:s=!1,...a}=r,l=Bn(),d=gr({props:r,muiFormControl:l,states:["error"]}),p={...r,row:s,error:d.error},u=vk(p);return c.jsx(Sk,{className:pe(u.root,i),ownerState:p,ref:n,...a})});process.env.NODE_ENV!=="production"&&(fm.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 wk(e){return Se("MuiFormHelperText",e)}const hm=we("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var gm;const Ck=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 Ce(p,wk,t)},Ek=Q("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]}})(be(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${hm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hm.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}}]}))),mm=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFormHelperText"}),{children:i,className:s,component:a="p",disabled:l,error:d,filled:p,focused:u,margin:f,required:y,variant:x,...g}=r,h=Bn(),m=gr({props:r,muiFormControl:h,states:["variant","size","disabled","error","filled","focused","required"]}),S={...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 S.ownerState;const C=Ck(S);return c.jsx(Ek,{as:a,className:pe(C.root,s),ref:n,...g,ownerState:S,children:i===" "?gm||(gm=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});process.env.NODE_ENV!=="production"&&(mm.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 Tk(e){return Se("MuiFormLabel",e)}const qi=we("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ak=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 Ce(d,Tk,t)},Pk=Q("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(be(({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(gt()).map(([t])=>({props:{color:t},style:{[`&.${qi.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${qi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${qi.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),kk=Q("span",{name:"MuiFormLabel",slot:"Asterisk"})(be(({theme:e})=>({[`&.${qi.error}`]:{color:(e.vars||e).palette.error.main}}))),Eo=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFormLabel"}),{children:i,className:s,color:a,component:l="label",disabled:d,error:p,filled:u,focused:f,required:y,...x}=r,g=Bn(),h=gr({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),m={...r,color:h.color||"primary",component:l,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},S=Ak(m);return c.jsxs(Pk,{as:l,ownerState:m,className:pe(S.root,s),ref:n,...x,children:[i,h.required&&c.jsxs(kk,{ownerState:m,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Eo.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 Nd(e){return`scale(${e}, ${e**2})`}const Ok={entering:{opacity:1,transform:Nd(1)},entered:{opacity:1,transform:"none"}},Fd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),To=T.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:s,easing:a,in:l,onEnter:d,onEntered:p,onEntering:u,onExit:f,onExited:y,onExiting:x,style:g,timeout:h="auto",TransitionComponent:m=Dn,...S}=t,C=Dr(),b=T.useRef(),v=Mn(),w=T.useRef(null),A=xt(w,Br(s),n),k=W=>_=>{if(W){const z=w.current;_===void 0?W(z):W(z,_)}},D=k(u),O=k((W,_)=>{vg(W);const{duration:z,delay:N,easing:V}=_a({style:g,timeout:h,easing:a},{mode:"enter"});let j;h==="auto"?(j=v.transitions.getAutoHeightDuration(W.clientHeight),b.current=j):j=z,W.style.transition=[v.transitions.create("opacity",{duration:j,delay:N}),v.transitions.create("transform",{duration:Fd?j:j*.666,delay:N,easing:V})].join(","),d&&d(W,_)}),B=k(p),L=k(x),E=k(W=>{const{duration:_,delay:z,easing:N}=_a({style:g,timeout:h,easing:a},{mode:"exit"});let V;h==="auto"?(V=v.transitions.getAutoHeightDuration(W.clientHeight),b.current=V):V=_,W.style.transition=[v.transitions.create("opacity",{duration:V,delay:z}),v.transitions.create("transform",{duration:Fd?V:V*.666,delay:Fd?z:z||V*.333,easing:N})].join(","),W.style.opacity=0,W.style.transform=Nd(.75),f&&f(W)}),I=k(y),$=W=>{h==="auto"&&C.start(b.current||0,W),r&&r(w.current,W)};return c.jsx(m,{appear:i,in:l,nodeRef:w,onEnter:O,onEntered:B,onEntering:D,onExit:E,onExited:I,onExiting:L,addEndListener:$,timeout:h==="auto"?null:h,...S,children:(W,{ownerState:_,...z})=>T.cloneElement(s,{style:{opacity:0,transform:Nd(.75),visibility:W==="exited"&&!l?"hidden":void 0,...Ok[W],...g,...s.props.style},ref:A,...z})})});process.env.NODE_ENV!=="production"&&(To.propTypes={addEndListener:o.func,appear:o.bool,children:Wr.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})])}),To&&(To.muiSupportAuto=!0);const Ik=e=>{const{classes:t,disableUnderline:n}=e,i=Ce({root:["root",!n&&"underline"],input:["input"]},BA,t);return{...t,...i}},Nk=Q(Ka,{shouldForwardProp:e=>Dt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ya(e,t),!n.disableUnderline&&t.underline]}})(be(({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"},[`&.${ji.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ji.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(.${ji.disabled}, .${ji.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ji.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(gt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Fk=Q(Xa,{name:"MuiInput",slot:"Input",overridesResolver:Ga})({}),ol=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,inputComponent:d="input",multiline:p=!1,slotProps:u,slots:f={},type:y="text",...x}=r,g=Ik(r),m={root:{ownerState:{disableUnderline:i}}},S=u??a?Mt(u??a,m):m,C=f.root??s.Root??Nk,b=f.input??s.Input??Fk;return c.jsx(Li,{slots:{root:C,input:b},slotProps:S,fullWidth:l,inputComponent:d,multiline:p,ref:n,type:y,...x,classes:g})});process.env.NODE_ENV!=="production"&&(ol.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:Wt,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}),ol.muiName="Input";function Mk(e){return Se("MuiInputLabel",e)}we("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Dk=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=Ce(d,Mk,t);return{...t,...p}},_k=Q(Eo,{shouldForwardProp:e=>Dt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qi.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]]}})(be(({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)"}}]}))),ym=T.forwardRef(function(t,n){const r=Te({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:s,shrink:a,variant:l,className:d,...p}=r,u=Bn();let f=a;typeof f>"u"&&u&&(f=u.filled||u.focused||u.adornedStart);const y=gr({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),x={...r,disableAnimation:i,formControl:u,shrink:f,size:y.size,variant:y.variant,required:y.required,focused:y.focused},g=Dk(x);return c.jsx(_k,{"data-shrink":f,ref:n,className:pe(g.root,d),...p,ownerState:x,classes:g})});process.env.NODE_ENV!=="production"&&(ym.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 zk(e){return Se("MuiLinearProgress",e)}we("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Md=4,Dd=lr`
173
173
  0% {
174
174
  left: -35%;
175
175
  right: 100%;
@@ -220,19 +220,19 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
220
220
  }
221
221
  `,Lk=typeof zd!="string"?lo`
222
222
  animation: ${zd} 3s infinite linear;
223
- `:null,jk=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 Ce(i,zk,t)},$d=(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),Wk=Q("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ee(n.color)}`],t[n.variant]]}})(be(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(gt()).map(([t])=>({props:{color:t},style:{backgroundColor:$d(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)"}}]}))),Vk=Q("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ee(n.color)}`]]}})(be(({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(gt()).map(([t])=>{const n=$d(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Lk||{animation:`${zd} 3s infinite linear`}),Uk=Q("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]}})(be(({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(gt()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Md}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Md}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:$k||{animation:`${Dd} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Hk=Q("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]}})(be(({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(gt()).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(gt()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:$d(e,t),transition:`transform .${Md}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:Bk||{animation:`${_d} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),bm=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiLinearProgress"}),{className:i,color:s="primary",value:a,valueBuffer:l,variant:d="indeterminate",...p}=r,u={...r,color:s,variant:d},f=jk(u),y=Ti(),x={},g={bar1:{},bar2:{}};if(d==="determinate"||d==="buffer")if(a!==void 0){x["aria-valuenow"]=Math.round(a),x["aria-valuemin"]=0,x["aria-valuemax"]=100;let h=a-100;y&&(h=-h),g.bar1.transform=`translateX(${h}%)`}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 h=(l||0)-100;y&&(h=-h),g.bar2.transform=`translateX(${h}%)`}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(Wk,{className:pe(f.root,i),ownerState:u,role:"progressbar",...x,ref:n,...p,children:[d==="buffer"?c.jsx(Vk,{className:f.dashed,ownerState:u}):null,c.jsx(Uk,{className:f.bar1,ownerState:u,style:g.bar1}),d==="determinate"?null:c.jsx(Hk,{className:f.bar2,ownerState:u,style:g.bar2})]})});process.env.NODE_ENV!=="production"&&(bm.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 Yi=T.createContext({});process.env.NODE_ENV!=="production"&&(Yi.displayName="ListContext");function Rk(e){return Se("MuiList",e)}we("MuiList",["root","padding","dense","subheader"]);const qk=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ce({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Rk,t)},Yk=Q("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}}]}),xm=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiList"}),{children:i,className:s,component:a="ul",dense:l=!1,disablePadding:d=!1,subheader:p,...u}=r,f=T.useMemo(()=>({dense:l}),[l]),y={...r,component:a,dense:l,disablePadding:d},x=qk(y);return c.jsx(Yi.Provider,{value:f,children:c.jsxs(Yk,{as:a,className:pe(x.root,s),ref:n,ownerState:y,...u,children:[p,i]})})});process.env.NODE_ENV!=="production"&&(xm.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 vm=we("MuiListItemIcon",["root","alignItemsFlexStart"]);function Gk(e){return Se("MuiListItemText",e)}const Ao=we("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Kk=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:s}=e;return Ce({root:["root",n&&"inset",s&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},Gk,t)},Xk=Q("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ao.primary}`]:t.primary},{[`& .${Ao.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,[`.${Ig.root}:where(& .${Ao.primary})`]:{display:"block"},[`.${Ig.root}:where(& .${Ao.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Bd=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiListItemText"}),{children:i,className:s,disableTypography:a=!1,inset:l=!1,primary:d,primaryTypographyProps:p,secondary:u,secondaryTypographyProps:f,slots:y={},slotProps:x={},...g}=r,{dense:h}=T.useContext(Yi);let m=d??i,S=u;const C={...r,disableTypography:a,inset:l,primary:!!m,secondary:!!S,dense:h},b=Kk(C),v={slots:y,slotProps:{primary:p,secondary:f,...x}},[w,A]=Oe("root",{className:pe(b.root,s),elementType:Xk,externalForwardedProps:{...v,...g},ownerState:C,ref:n}),[k,D]=Oe("primary",{className:b.primary,elementType:U,externalForwardedProps:v,ownerState:C}),[O,B]=Oe("secondary",{className:b.secondary,elementType:U,externalForwardedProps:v,ownerState:C});return m!=null&&m.type!==U&&!a&&(m=c.jsx(k,{variant:h?"body2":"body1",component:D?.variant?void 0:"span",...D,children:m})),S!=null&&S.type!==U&&!a&&(S=c.jsx(O,{variant:"body2",color:"textSecondary",...B,children:S})),c.jsxs(w,{...A,children:[m,S]})});process.env.NODE_ENV!=="production"&&(Bd.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 Ld(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Sm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function wm(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 Gi(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")||!wm(l,s)||d)l=i(e,l,n);else return l.focus(),!0}return!1}const Cm=T.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:f="selectedMenu",...y}=t,x=T.useRef(null),g=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});an(()=>{i&&x.current.focus()},[i]),T.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(b,{direction:v})=>{const w=!x.current.style.width;if(b.clientHeight<x.current.clientHeight&&w){const A=`${lm(Zn(b))}px`;x.current.style[v==="rtl"?"paddingLeft":"paddingRight"]=A,x.current.style.width=`calc(100% + ${A})`}return x.current}}),[]);const h=b=>{const v=x.current,w=b.key;if(b.ctrlKey||b.metaKey||b.altKey){u&&u(b);return}const k=Vi(wt(v));if(w==="ArrowDown")b.preventDefault(),Gi(v,k,p,d,Ld);else if(w==="ArrowUp")b.preventDefault(),Gi(v,k,p,d,Sm);else if(w==="Home")b.preventDefault(),Gi(v,null,p,d,Ld);else if(w==="End")b.preventDefault(),Gi(v,null,p,d,Sm);else if(w.length===1){const D=g.current,O=w.toLowerCase(),B=performance.now();D.keys.length>0&&(B-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&O!==D.keys[0]&&(D.repeating=!1)),D.lastTime=B,D.keys.push(O);const L=k&&!D.repeating&&wm(k,D);D.previousKeyMatched&&(L||Gi(v,k,!1,d,Ld,D))?b.preventDefault():D.previousKeyMatched=!1}u&&u(b)},m=xt(x,n);let S=-1;T.Children.forEach(a,(b,v)=>{if(!T.isValidElement(b)){S===v&&(S+=1,S>=a.length&&(S=-1));return}process.env.NODE_ENV!=="production"&&id.isFragment(b)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
223
+ `:null,jk=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 Ce(i,zk,t)},$d=(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),Wk=Q("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ee(n.color)}`],t[n.variant]]}})(be(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(gt()).map(([t])=>({props:{color:t},style:{backgroundColor:$d(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)"}}]}))),Vk=Q("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ee(n.color)}`]]}})(be(({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(gt()).map(([t])=>{const n=$d(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Lk||{animation:`${zd} 3s infinite linear`}),Hk=Q("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]}})(be(({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(gt()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Md}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Md}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:$k||{animation:`${Dd} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Uk=Q("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]}})(be(({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(gt()).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(gt()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:$d(e,t),transition:`transform .${Md}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:Bk||{animation:`${_d} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),bm=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiLinearProgress"}),{className:i,color:s="primary",value:a,valueBuffer:l,variant:d="indeterminate",...p}=r,u={...r,color:s,variant:d},f=jk(u),y=Ti(),x={},g={bar1:{},bar2:{}};if(d==="determinate"||d==="buffer")if(a!==void 0){x["aria-valuenow"]=Math.round(a),x["aria-valuemin"]=0,x["aria-valuemax"]=100;let h=a-100;y&&(h=-h),g.bar1.transform=`translateX(${h}%)`}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 h=(l||0)-100;y&&(h=-h),g.bar2.transform=`translateX(${h}%)`}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(Wk,{className:pe(f.root,i),ownerState:u,role:"progressbar",...x,ref:n,...p,children:[d==="buffer"?c.jsx(Vk,{className:f.dashed,ownerState:u}):null,c.jsx(Hk,{className:f.bar1,ownerState:u,style:g.bar1}),d==="determinate"?null:c.jsx(Uk,{className:f.bar2,ownerState:u,style:g.bar2})]})});process.env.NODE_ENV!=="production"&&(bm.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 Yi=T.createContext({});process.env.NODE_ENV!=="production"&&(Yi.displayName="ListContext");function Rk(e){return Se("MuiList",e)}we("MuiList",["root","padding","dense","subheader"]);const qk=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ce({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Rk,t)},Yk=Q("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}}]}),xm=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiList"}),{children:i,className:s,component:a="ul",dense:l=!1,disablePadding:d=!1,subheader:p,...u}=r,f=T.useMemo(()=>({dense:l}),[l]),y={...r,component:a,dense:l,disablePadding:d},x=qk(y);return c.jsx(Yi.Provider,{value:f,children:c.jsxs(Yk,{as:a,className:pe(x.root,s),ref:n,ownerState:y,...u,children:[p,i]})})});process.env.NODE_ENV!=="production"&&(xm.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 vm=we("MuiListItemIcon",["root","alignItemsFlexStart"]);function Gk(e){return Se("MuiListItemText",e)}const Ao=we("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Kk=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:s}=e;return Ce({root:["root",n&&"inset",s&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},Gk,t)},Xk=Q("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ao.primary}`]:t.primary},{[`& .${Ao.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,[`.${Ig.root}:where(& .${Ao.primary})`]:{display:"block"},[`.${Ig.root}:where(& .${Ao.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Bd=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiListItemText"}),{children:i,className:s,disableTypography:a=!1,inset:l=!1,primary:d,primaryTypographyProps:p,secondary:u,secondaryTypographyProps:f,slots:y={},slotProps:x={},...g}=r,{dense:h}=T.useContext(Yi);let m=d??i,S=u;const C={...r,disableTypography:a,inset:l,primary:!!m,secondary:!!S,dense:h},b=Kk(C),v={slots:y,slotProps:{primary:p,secondary:f,...x}},[w,A]=Oe("root",{className:pe(b.root,s),elementType:Xk,externalForwardedProps:{...v,...g},ownerState:C,ref:n}),[k,D]=Oe("primary",{className:b.primary,elementType:H,externalForwardedProps:v,ownerState:C}),[O,B]=Oe("secondary",{className:b.secondary,elementType:H,externalForwardedProps:v,ownerState:C});return m!=null&&m.type!==H&&!a&&(m=c.jsx(k,{variant:h?"body2":"body1",component:D?.variant?void 0:"span",...D,children:m})),S!=null&&S.type!==H&&!a&&(S=c.jsx(O,{variant:"body2",color:"textSecondary",...B,children:S})),c.jsxs(w,{...A,children:[m,S]})});process.env.NODE_ENV!=="production"&&(Bd.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 Ld(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Sm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function wm(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 Gi(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")||!wm(l,s)||d)l=i(e,l,n);else return l.focus(),!0}return!1}const Cm=T.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:f="selectedMenu",...y}=t,x=T.useRef(null),g=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});an(()=>{i&&x.current.focus()},[i]),T.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(b,{direction:v})=>{const w=!x.current.style.width;if(b.clientHeight<x.current.clientHeight&&w){const A=`${lm(er(b))}px`;x.current.style[v==="rtl"?"paddingLeft":"paddingRight"]=A,x.current.style.width=`calc(100% + ${A})`}return x.current}}),[]);const h=b=>{const v=x.current,w=b.key;if(b.ctrlKey||b.metaKey||b.altKey){u&&u(b);return}const k=Vi(wt(v));if(w==="ArrowDown")b.preventDefault(),Gi(v,k,p,d,Ld);else if(w==="ArrowUp")b.preventDefault(),Gi(v,k,p,d,Sm);else if(w==="Home")b.preventDefault(),Gi(v,null,p,d,Ld);else if(w==="End")b.preventDefault(),Gi(v,null,p,d,Sm);else if(w.length===1){const D=g.current,O=w.toLowerCase(),B=performance.now();D.keys.length>0&&(B-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&O!==D.keys[0]&&(D.repeating=!1)),D.lastTime=B,D.keys.push(O);const L=k&&!D.repeating&&wm(k,D);D.previousKeyMatched&&(L||Gi(v,k,!1,d,Ld,D))?b.preventDefault():D.previousKeyMatched=!1}u&&u(b)},m=xt(x,n);let S=-1;T.Children.forEach(a,(b,v)=>{if(!T.isValidElement(b)){S===v&&(S+=1,S>=a.length&&(S=-1));return}process.env.NODE_ENV!=="production"&&id.isFragment(b)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
224
224
  `)),b.props.disabled||(f==="selectedMenu"&&b.props.selected||S===-1)&&(S=v),S===v&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(S+=1,S>=a.length&&(S=-1))});const C=T.Children.map(a,(b,v)=>{if(v===S){const w={};return s&&(w.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(w.tabIndex=0),T.cloneElement(b,w)}return b});return c.jsx(xm,{role:"menu",ref:m,className:l,onKeyDown:h,tabIndex:i?0:-1,...y,children:C})});process.env.NODE_ENV!=="production"&&(Cm.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 Jk(e){return Se("MuiPopover",e)}we("MuiPopover",["root","paper"]);function Em(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Tm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Am(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ki(e){return typeof e=="function"?e():e}const Qk=e=>{const{classes:t}=e;return Ce({root:["root"],paper:["paper"]},Jk,t)},Zk=Q(So,{name:"MuiPopover",slot:"Root"})({}),Pm=Q(Sn,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),jd=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:p,className:u,container:f,elevation:y=8,marginThreshold:x=16,open:g,PaperProps:h={},slots:m={},slotProps:S={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:b,transitionDuration:v="auto",TransitionProps:w={},disableScrollLock:A=!1,...k}=r,D=T.useRef(),O={...r,anchorOrigin:a,anchorReference:d,elevation:y,marginThreshold:x,transformOrigin:C,TransitionComponent:b,transitionDuration:v,TransitionProps:w},B=Qk(O),L=T.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 te=Ki(s),ie=te&&te.nodeType===1?te:wt(D.current).body,R=ie.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const le=ie.getBoundingClientRect();process.env.NODE_ENV!=="test"&&le.top===0&&le.left===0&&le.right===0&&le.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:R.top+Em(R,a.vertical),left:R.left+Tm(R,a.horizontal)}},[s,a.horizontal,a.vertical,l,d]),E=T.useCallback(te=>({vertical:Em(te,C.vertical),horizontal:Tm(te,C.horizontal)}),[C.horizontal,C.vertical]),I=T.useCallback(te=>{const ie={width:te.offsetWidth,height:te.offsetHeight},R=E(ie);if(d==="none")return{top:null,left:null,transformOrigin:Am(R)};const le=L();let ae=le.top-R.vertical,me=le.left-R.horizontal;const Ve=ae+ie.height,Ie=me+ie.width,Ne=Zn(Ki(s)),Ue=Ne.innerHeight-x,je=Ne.innerWidth-x;if(x!==null&&ae<x){const $e=ae-x;ae-=$e,R.vertical+=$e}else if(x!==null&&Ve>Ue){const $e=Ve-Ue;ae-=$e,R.vertical+=$e}if(process.env.NODE_ENV!=="production"&&ie.height>Ue&&ie.height&&Ue&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ie.height-Ue}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
226
- `)),x!==null&&me<x){const $e=me-x;me-=$e,R.horizontal+=$e}else if(Ie>je){const $e=Ie-je;me-=$e,R.horizontal+=$e}return{top:`${Math.round(ae)}px`,left:`${Math.round(me)}px`,transformOrigin:Am(R)}},[s,d,L,E,x]),[$,W]=T.useState(g),_=T.useCallback(()=>{const te=D.current;if(!te)return;const ie=I(te);ie.top!==null&&te.style.setProperty("top",ie.top),ie.left!==null&&(te.style.left=ie.left),te.style.transformOrigin=ie.transformOrigin,W(!0)},[I]);T.useEffect(()=>(A&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,A,_]);const z=()=>{_()},N=()=>{W(!1)};T.useEffect(()=>{g&&_()}),T.useImperativeHandle(i,()=>g?{updatePosition:()=>{_()}}:null,[g,_]),T.useEffect(()=>{if(!g)return;const te=cg(()=>{_()}),ie=Zn(Ki(s));return ie.addEventListener("resize",te),()=>{te.clear(),ie.removeEventListener("resize",te)}},[s,g,_]);let V=v;const j={slots:{transition:b,...m},slotProps:{transition:w,paper:h,...S}},[M,Y]=Oe("transition",{elementType:To,externalForwardedProps:j,ownerState:O,getSlotProps:te=>({...te,onEntering:(ie,R)=>{te.onEntering?.(ie,R),z()},onExited:ie=>{te.onExited?.(ie),N()}}),additionalProps:{appear:!0,in:g}});v==="auto"&&!M.muiSupportAuto&&(V=void 0);const Z=f||(s?wt(Ki(s)).body:void 0),[J,{slots:q,slotProps:K,...H}]=Oe("root",{ref:n,elementType:Zk,externalForwardedProps:{...j,...k},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:ug(typeof S.backdrop=="function"?S.backdrop(O):S.backdrop,{invisible:!0})},container:Z,open:g},ownerState:O,className:pe(B.root,u)}),[oe,ne]=Oe("paper",{ref:D,className:B.paper,elementType:Pm,externalForwardedProps:j,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:$?void 0:{opacity:0}},ownerState:O});return c.jsx(J,{...H,...!fr(J)&&{slots:q,slotProps:K,disableScrollLock:A},children:c.jsx(M,{...Y,timeout:V,children:c.jsx(oe,{...ne,children:p})})})});process.env.NODE_ENV!=="production"&&(jd.propTypes={action:Wt,anchorEl:vn(o.oneOfType([tr,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Ki(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(`
225
+ `))}return{top:R.top+Em(R,a.vertical),left:R.left+Tm(R,a.horizontal)}},[s,a.horizontal,a.vertical,l,d]),E=T.useCallback(te=>({vertical:Em(te,C.vertical),horizontal:Tm(te,C.horizontal)}),[C.horizontal,C.vertical]),I=T.useCallback(te=>{const ie={width:te.offsetWidth,height:te.offsetHeight},R=E(ie);if(d==="none")return{top:null,left:null,transformOrigin:Am(R)};const le=L();let ae=le.top-R.vertical,me=le.left-R.horizontal;const Ve=ae+ie.height,Ie=me+ie.width,Ne=er(Ki(s)),He=Ne.innerHeight-x,je=Ne.innerWidth-x;if(x!==null&&ae<x){const $e=ae-x;ae-=$e,R.vertical+=$e}else if(x!==null&&Ve>He){const $e=Ve-He;ae-=$e,R.vertical+=$e}if(process.env.NODE_ENV!=="production"&&ie.height>He&&ie.height&&He&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ie.height-He}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
226
+ `)),x!==null&&me<x){const $e=me-x;me-=$e,R.horizontal+=$e}else if(Ie>je){const $e=Ie-je;me-=$e,R.horizontal+=$e}return{top:`${Math.round(ae)}px`,left:`${Math.round(me)}px`,transformOrigin:Am(R)}},[s,d,L,E,x]),[$,W]=T.useState(g),_=T.useCallback(()=>{const te=D.current;if(!te)return;const ie=I(te);ie.top!==null&&te.style.setProperty("top",ie.top),ie.left!==null&&(te.style.left=ie.left),te.style.transformOrigin=ie.transformOrigin,W(!0)},[I]);T.useEffect(()=>(A&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,A,_]);const z=()=>{_()},N=()=>{W(!1)};T.useEffect(()=>{g&&_()}),T.useImperativeHandle(i,()=>g?{updatePosition:()=>{_()}}:null,[g,_]),T.useEffect(()=>{if(!g)return;const te=cg(()=>{_()}),ie=er(Ki(s));return ie.addEventListener("resize",te),()=>{te.clear(),ie.removeEventListener("resize",te)}},[s,g,_]);let V=v;const j={slots:{transition:b,...m},slotProps:{transition:w,paper:h,...S}},[M,Y]=Oe("transition",{elementType:To,externalForwardedProps:j,ownerState:O,getSlotProps:te=>({...te,onEntering:(ie,R)=>{te.onEntering?.(ie,R),z()},onExited:ie=>{te.onExited?.(ie),N()}}),additionalProps:{appear:!0,in:g}});v==="auto"&&!M.muiSupportAuto&&(V=void 0);const Z=f||(s?wt(Ki(s)).body:void 0),[J,{slots:q,slotProps:K,...U}]=Oe("root",{ref:n,elementType:Zk,externalForwardedProps:{...j,...k},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:ug(typeof S.backdrop=="function"?S.backdrop(O):S.backdrop,{invisible:!0})},container:Z,open:g},ownerState:O,className:pe(B.root,u)}),[oe,ne]=Oe("paper",{ref:D,className:B.paper,elementType:Pm,externalForwardedProps:j,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:$?void 0:{opacity:0}},ownerState:O});return c.jsx(J,{...U,...!fr(J)&&{slots:q,slotProps:K,disableScrollLock:A},children:c.jsx(M,{...Y,timeout:V,children:c.jsx(oe,{...ne,children:p})})})});process.env.NODE_ENV!=="production"&&(jd.propTypes={action:Wt,anchorEl:vn(o.oneOfType([nr,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Ki(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([tr,o.func]),disableScrollLock:o.bool,elevation:za,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:dd}),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 eO(e){return Se("MuiMenu",e)}we("MuiMenu",["root","paper","list"]);const tO={vertical:"top",horizontal:"right"},nO={vertical:"top",horizontal:"left"},rO=e=>{const{classes:t}=e;return Ce({root:["root"],paper:["paper"],list:["list"]},eO,t)},oO=Q(jd,{shouldForwardProp:e=>Dt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),iO=Q(Pm,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sO=Q(Cm,{name:"MuiMenu",slot:"List"})({outline:0}),Xi=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:a,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:p,open:u,PaperProps:f={},PopoverClasses:y,transitionDuration:x="auto",TransitionProps:{onEntering:g,...h}={},variant:m="selectedMenu",slots:S={},slotProps:C={},...b}=r,v=Ti(),w={...r,autoFocus:i,disableAutoFocusItem:l,MenuListProps:d,onEntering:g,PaperProps:f,transitionDuration:x,TransitionProps:h,variant:m},A=rO(w),k=i&&!l&&u,D=T.useRef(null),O=(V,j)=>{D.current&&D.current.adjustStyleForScrollbar(V,{direction:v?"rtl":"ltr"}),g&&g(V,j)},B=V=>{V.key==="Tab"&&(V.preventDefault(),p&&p(V,"tabKeyDown"))};let L=-1;T.Children.map(s,(V,j)=>{T.isValidElement(V)&&(process.env.NODE_ENV!=="production"&&id.isFragment(V)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
229
- `)),V.props.disabled||(m==="selectedMenu"&&V.props.selected||L===-1)&&(L=j))});const E={slots:S,slotProps:{list:d,transition:h,paper:f,...C}},I=$n({elementType:S.root,externalSlotProps:C.root,ownerState:w,className:[A.root,a]}),[$,W]=Oe("paper",{className:A.paper,elementType:iO,externalForwardedProps:E,shouldForwardComponentProp:!0,ownerState:w}),[_,z]=Oe("list",{className:pe(A.list,d.className),elementType:sO,shouldForwardComponentProp:!0,externalForwardedProps:E,getSlotProps:V=>({...V,onKeyDown:j=>{B(j),V.onKeyDown?.(j)}}),ownerState:w}),N=typeof E.slotProps.transition=="function"?E.slotProps.transition(w):E.slotProps.transition;return c.jsx(oO,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?tO:nO,slots:{root:S.root,paper:$,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:I,paper:W,backdrop:typeof C.backdrop=="function"?C.backdrop(w):C.backdrop,transition:{...N,onEntering:(...V)=>{O(...V),N?.onEntering?.(...V)}}},open:u,ref:n,transitionDuration:x,ownerState:w,...b,classes:y,children:c.jsx(_,{actions:D,autoFocus:i&&(L===-1||l),autoFocusItem:k,variant:m,...z,children:s})})});process.env.NODE_ENV!=="production"&&(Xi.propTypes={anchorEl:o.oneOfType([tr,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 aO(e){return Se("MuiMenuItem",e)}const Ji=we("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),lO=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},cO=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:s,classes:a}=e,d=Ce({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},aO,a);return{...a,...d}},dO=Q(Oi,{shouldForwardProp:e=>Dt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:lO})(be(({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"}},[`&.${Ji.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ji.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ji.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)}},[`&.${Ji.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ji.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${pm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${pm.inset}`]:{marginLeft:52},[`& .${Ao.root}`]:{marginTop:0,marginBottom:0},[`& .${Ao.inset}`]:{paddingLeft:36},[`& .${vm.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,[`& .${vm.root} svg`]:{fontSize:"1.25rem"}}}]}))),Et=T.forwardRef(function(t,n){const r=Te({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:f,className:y,...x}=r,g=T.useContext(Yi),h=T.useMemo(()=>({dense:a||g.dense||!1,disableGutters:d}),[g.dense,a,d]),m=T.useRef(null);an(()=>{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 S={...r,dense:h.dense,divider:l,disableGutters:d},C=cO(r),b=xt(m,n);let v;return r.disabled||(v=f!==void 0?f:-1),c.jsx(Yi.Provider,{value:h,children:c.jsx(dO,{ref:b,role:u,tabIndex:v,component:s,focusVisibleClassName:pe(C.focusVisible,p),className:pe(C.root,y),...x,ownerState:S,classes:C})})});process.env.NODE_ENV!=="production"&&(Et.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 uO(e){return Se("MuiMobileStepper",e)}we("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const pO=e=>{const{classes:t,position:n}=e,r={root:["root",`position${ee(n)}`],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return Ce(r,uO,t)},fO=Q(Sn,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ee(n.position)}`]]}})(be(({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}}]}))),hO=Q("div",{name:"MuiMobileStepper",slot:"Dots"})({variants:[{props:{variant:"dots"},style:{display:"flex",flexDirection:"row"}}]}),gO=Q("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>Pi(e)&&e!=="dotActive",overridesResolver:(e,t)=>{const{dotActive:n}=e;return[t.dot,n&&t.dotActive]}})(be(({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}}]}))),mO=Q(bm,{name:"MuiMobileStepper",slot:"Progress"})({variants:[{props:{variant:"progress"},style:{width:"50%"}}]}),km=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiMobileStepper"}),{activeStep:i=0,backButton:s,className:a,LinearProgressProps:l,nextButton:d,position:p="bottom",steps:u,variant:f="dots",slots:y={},slotProps:x={},...g}=r,h={...r,activeStep:i,position:p,variant:f};let m;f==="progress"&&(u===1?m=100:m=Math.ceil(i/(u-1)*100));const S=pO(h),C={slots:y,slotProps:{progress:l,...x}},[b,v]=Oe("root",{ref:n,elementType:fO,shouldForwardComponentProp:!0,className:pe(S.root,a),externalForwardedProps:{...C,...g},ownerState:h,additionalProps:{square:!0,elevation:0}}),[w,A]=Oe("dots",{className:S.dots,elementType:hO,externalForwardedProps:C,ownerState:h}),[k,D]=Oe("dot",{elementType:gO,externalForwardedProps:C,ownerState:h}),[O,B]=Oe("progress",{className:S.progress,elementType:mO,shouldForwardComponentProp:!0,externalForwardedProps:C,ownerState:h,additionalProps:{value:m,variant:"determinate"}});return c.jsxs(b,{...v,children:[s,f==="text"&&c.jsxs(T.Fragment,{children:[i+1," / ",u]}),f==="dots"&&c.jsx(w,{...A,children:[...new Array(u)].map((L,E)=>c.jsx(k,{...D,className:pe(S.dot,D.className,E===i&&S.dotActive),dotActive:E===i},E))}),f==="progress"&&c.jsx(O,{...B}),d]})});process.env.NODE_ENV!=="production"&&(km.propTypes={activeStep:za,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:za.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 yO(e){return Se("MuiNativeSelect",e)}const Wd=we("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),bO=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 Ce(l,yO,t)},Om=Q("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Wd.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}}}]})),xO=Q(Om,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Wd.multiple}`]:t.multiple}]}})({}),Im=Q("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Wd.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}}]})),vO=Q(Im,{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=T.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},f=bO(u);return c.jsxs(T.Fragment,{children:[c.jsx(xO,{ownerState:u,className:pe(f.select,r),disabled:i,ref:l||n,...p}),t.multiple?null:c.jsx(vO,{as:a,ownerState:u,className:f.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:Wt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var Fm;const SO=Q("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Dt})({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%"}),wO=Q("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Dt})(be(({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 Mm(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(SO,{"aria-hidden":!0,className:r,ownerState:d,...a,children:c.jsx(wO,{ownerState:d,children:l?c.jsx("span",{children:i}):Fm||(Fm=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(Mm.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const CO=e=>{const{classes:t}=e,r=Ce({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},LA,t);return{...t,...r}},EO=Q(Ka,{shouldForwardProp:e=>Dt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ya})(be(({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 .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ln.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(gt()).map(([n])=>({props:{color:n},style:{[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ln.error} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ln.disabled} .${Ln.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"}}]}})),TO=Q(Mm,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(be(({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}})),AO=Q(Xa,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ga})(be(({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}}]}))),il=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:d=!1,notched:p,slots:u={},slotProps:f={},type:y="text",...x}=r,g=CO(r),h=Bn(),m=gr({props:r,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...r,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:h,fullWidth:s,hiddenLabel:m.hiddenLabel,multiline:d,size:m.size,type:y},C=u.root??i.Root??EO,b=u.input??i.Input??AO,[v,w]=Oe("notchedOutline",{elementType:TO,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:u,slotProps:f},additionalProps:{label:l!=null&&l!==""&&m.required?c.jsxs(T.Fragment,{children:[l," ","*"]}):l}});return c.jsx(Li,{slots:{root:C,input:b},slotProps:f,renderSuffix:A=>c.jsx(v,{...w,notched:typeof p<"u"?p:!!(A.startAdornment||A.filled||A.focused)}),fullWidth:s,inputComponent:a,multiline:d,ref:n,type:y,...x,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(il.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:Wt,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}),il.muiName="Input";const PO=dt(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"),kO=dt(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"),OO=Q("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Dt})({position:"relative",display:"flex"}),IO=Q(PO,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),NO=Q(kO,{name:"MuiRadioButtonIcon"})(be(({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(OO,{className:n.root,ownerState:i,children:[c.jsx(IO,{fontSize:r,className:n.background,ownerState:i}),c.jsx(NO,{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 Ud=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ud.displayName="RadioGroupContext");function FO(){return T.useContext(Ud)}function MO(e){return Se("MuiRadio",e)}const Dm=we("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),DO=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ee(n)}`,r!=="medium"&&`size${ee(r)}`]};return{...t,...Ce(i,MO,t)}},_O=Q(Za,{shouldForwardProp:e=>Dt(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)}`]]}})(be(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Dm.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(gt()).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(gt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Dm.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function zO(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const $O=c.jsx(Vd,{checked:!0}),BO=c.jsx(Vd,{}),mr=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=$O,color:a="primary",icon:l=BO,name:d,onChange:p,size:u="medium",className:f,disabled:y,disableRipple:x=!1,slots:g={},slotProps:h={},inputProps:m,...S}=r,C=Bn();let b=y;C&&typeof b>"u"&&(b=C.disabled),b??=!1;const v={...r,disabled:b,disableRipple:x,color:a,size:u},w=DO(v),A=FO();let k=i;const D=od(p,A&&A.onChange);let O=d;A&&(typeof k>"u"&&(k=zO(A.value,r.value)),typeof O>"u"&&(O=A.name));const B=h.input??m,[L,E]=Oe("root",{ref:n,elementType:_O,className:pe(w.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:h,...S},getSlotProps:I=>({...I,onChange:($,...W)=>{I.onChange?.($,...W),D($,...W)}}),ownerState:v,additionalProps:{type:"radio",icon:T.cloneElement(l,{fontSize:l.props.fontSize??u}),checkedIcon:T.cloneElement(s,{fontSize:s.props.fontSize??u}),disabled:b,name:O,checked:k,slots:g,slotProps:{input:typeof B=="function"?B(v):B}}});return c.jsx(L,{...E,classes:w})});process.env.NODE_ENV!=="production"&&(mr.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:Wt,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 LO(e){return Se("MuiRadioGroup",e)}we("MuiRadioGroup",["root","row","error"]);const jO=e=>{const{classes:t,row:n,error:r}=e;return Ce({root:["root",n&&"row",r&&"error"]},LO,t)},Qi=T.forwardRef(function(t,n){const{actions:r,children:i,className:s,defaultValue:a,name:l,onChange:d,value:p,...u}=t,f=T.useRef(null),y=jO(t),[x,g]=po({controlled:p,default:a,name:"RadioGroup"});T.useImperativeHandle(r,()=>({focus:()=>{let C=f.current.querySelector("input:not(:disabled):checked");C||(C=f.current.querySelector("input:not(:disabled)")),C&&C.focus()}}),[]);const h=xt(n,f),m=Ir(l),S=T.useMemo(()=>({name:m,onChange(C){g(C.target.value),d&&d(C,C.target.value)},value:x}),[m,d,g,x]);return c.jsx(Ud.Provider,{value:S,children:c.jsx(fm,{role:"radiogroup",ref:h,className:pe(y.root,s),...u,children:i})})});process.env.NODE_ENV!=="production"&&(Qi.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const WO={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function _m(e){return Se("MuiSelect",e)}const Zi=we("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var zm;const VO=Q(Om,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Zi.select}`]:t.select},{[`&.${Zi.select}`]:t[n.variant]},{[`&.${Zi.error}`]:t.error},{[`&.${Zi.multiple}`]:t.multiple}]}})({[`&.${Zi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),UO=Q(Im,{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]}})({}),HO=Q("input",{shouldForwardProp:e=>Pi(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function $m(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function RO(e){return e==null||typeof e=="string"&&!e.trim()}const qO=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 Ce(l,_m,t)},Bm=T.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:d,defaultOpen:p,defaultValue:u,disabled:f,displayEmpty:y,error:x=!1,IconComponent:g,inputRef:h,labelId:m,MenuProps:S={},multiple:C,name:b,onBlur:v,onChange:w,onClose:A,onFocus:k,onKeyDown:D,onMouseDown:O,onOpen:B,open:L,readOnly:E,renderValue:I,required:$,SelectDisplayProps:W={},tabIndex:_,type:z,value:N,variant:V="standard",...j}=t,[M,Y]=po({controlled:N,default:u,name:"Select"}),[Z,J]=po({controlled:L,default:p,name:"Select"}),q=T.useRef(null),K=T.useRef(null),[H,oe]=T.useState(null),{current:ne}=T.useRef(L!=null),[te,ie]=T.useState(),R=xt(n,h),le=T.useCallback(ue=>{K.current=ue,ue&&oe(ue)},[]),ae=H?.parentNode;T.useImperativeHandle(R,()=>({focus:()=>{K.current.focus()},node:q.current,value:M}),[M]),T.useEffect(()=>{p&&Z&&H&&!ne&&(ie(a?null:ae.clientWidth),K.current.focus())},[H,a]),T.useEffect(()=>{s&&K.current.focus()},[s]),T.useEffect(()=>{if(!m)return;const ue=wt(K.current).getElementById(m);if(ue){const he=()=>{getSelection().isCollapsed&&K.current.focus()};return ue.addEventListener("click",he),()=>{ue.removeEventListener("click",he)}}},[m]);const me=(ue,he)=>{ue?B&&B(he):A&&A(he),ne||(ie(a?null:ae.clientWidth),J(ue))},Ve=ue=>{O?.(ue),ue.button===0&&(ue.preventDefault(),K.current.focus(),me(!0,ue))},Ie=ue=>{me(!1,ue)},Ne=T.Children.toArray(l),Ue=ue=>{const he=Ne.find(ze=>ze.props.value===ue.target.value);he!==void 0&&(Y(he.props.value),w&&w(ue,he))},je=ue=>he=>{let ze;if(he.currentTarget.hasAttribute("tabindex")){if(C){ze=Array.isArray(M)?M.slice():[];const At=M.indexOf(ue.props.value);At===-1?ze.push(ue.props.value):ze.splice(At,1)}else ze=ue.props.value;if(ue.props.onClick&&ue.props.onClick(he),M!==ze&&(Y(ze),w)){const At=he.nativeEvent||he,ke=new At.constructor(At.type,At);Object.defineProperty(ke,"target",{writable:!0,value:{value:ze,name:b}}),w(ke,ue)}C||me(!1,he)}},$e=ue=>{E||([" ","ArrowUp","ArrowDown","Enter"].includes(ue.key)&&(ue.preventDefault(),me(!0,ue)),D?.(ue))},de=H!==null&&Z,He=ue=>{!de&&v&&(Object.defineProperty(ue,"target",{writable:!0,value:{value:M,name:b}}),v(ue))};delete j["aria-invalid"];let De,se;const re=[];let fe=!1,ve=!1;(qa({value:M})||y)&&(I?De=I(M):fe=!0);const Ae=Ne.map(ue=>{if(!T.isValidElement(ue))return null;process.env.NODE_ENV!=="production"&&id.isFragment(ue)&&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([nr,o.func]),disableScrollLock:o.bool,elevation:za,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:dd}),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 eO(e){return Se("MuiMenu",e)}we("MuiMenu",["root","paper","list"]);const tO={vertical:"top",horizontal:"right"},nO={vertical:"top",horizontal:"left"},rO=e=>{const{classes:t}=e;return Ce({root:["root"],paper:["paper"],list:["list"]},eO,t)},oO=Q(jd,{shouldForwardProp:e=>Dt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),iO=Q(Pm,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sO=Q(Cm,{name:"MuiMenu",slot:"List"})({outline:0}),Xi=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:a,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:p,open:u,PaperProps:f={},PopoverClasses:y,transitionDuration:x="auto",TransitionProps:{onEntering:g,...h}={},variant:m="selectedMenu",slots:S={},slotProps:C={},...b}=r,v=Ti(),w={...r,autoFocus:i,disableAutoFocusItem:l,MenuListProps:d,onEntering:g,PaperProps:f,transitionDuration:x,TransitionProps:h,variant:m},A=rO(w),k=i&&!l&&u,D=T.useRef(null),O=(V,j)=>{D.current&&D.current.adjustStyleForScrollbar(V,{direction:v?"rtl":"ltr"}),g&&g(V,j)},B=V=>{V.key==="Tab"&&(V.preventDefault(),p&&p(V,"tabKeyDown"))};let L=-1;T.Children.map(s,(V,j)=>{T.isValidElement(V)&&(process.env.NODE_ENV!=="production"&&id.isFragment(V)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
229
+ `)),V.props.disabled||(m==="selectedMenu"&&V.props.selected||L===-1)&&(L=j))});const E={slots:S,slotProps:{list:d,transition:h,paper:f,...C}},I=$n({elementType:S.root,externalSlotProps:C.root,ownerState:w,className:[A.root,a]}),[$,W]=Oe("paper",{className:A.paper,elementType:iO,externalForwardedProps:E,shouldForwardComponentProp:!0,ownerState:w}),[_,z]=Oe("list",{className:pe(A.list,d.className),elementType:sO,shouldForwardComponentProp:!0,externalForwardedProps:E,getSlotProps:V=>({...V,onKeyDown:j=>{B(j),V.onKeyDown?.(j)}}),ownerState:w}),N=typeof E.slotProps.transition=="function"?E.slotProps.transition(w):E.slotProps.transition;return c.jsx(oO,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?tO:nO,slots:{root:S.root,paper:$,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:I,paper:W,backdrop:typeof C.backdrop=="function"?C.backdrop(w):C.backdrop,transition:{...N,onEntering:(...V)=>{O(...V),N?.onEntering?.(...V)}}},open:u,ref:n,transitionDuration:x,ownerState:w,...b,classes:y,children:c.jsx(_,{actions:D,autoFocus:i&&(L===-1||l),autoFocusItem:k,variant:m,...z,children:s})})});process.env.NODE_ENV!=="production"&&(Xi.propTypes={anchorEl:o.oneOfType([nr,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 aO(e){return Se("MuiMenuItem",e)}const Ji=we("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),lO=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},cO=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:s,classes:a}=e,d=Ce({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},aO,a);return{...a,...d}},dO=Q(Oi,{shouldForwardProp:e=>Dt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:lO})(be(({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"}},[`&.${Ji.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ji.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ji.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)}},[`&.${Ji.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ji.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${pm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${pm.inset}`]:{marginLeft:52},[`& .${Ao.root}`]:{marginTop:0,marginBottom:0},[`& .${Ao.inset}`]:{paddingLeft:36},[`& .${vm.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,[`& .${vm.root} svg`]:{fontSize:"1.25rem"}}}]}))),Et=T.forwardRef(function(t,n){const r=Te({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:f,className:y,...x}=r,g=T.useContext(Yi),h=T.useMemo(()=>({dense:a||g.dense||!1,disableGutters:d}),[g.dense,a,d]),m=T.useRef(null);an(()=>{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 S={...r,dense:h.dense,divider:l,disableGutters:d},C=cO(r),b=xt(m,n);let v;return r.disabled||(v=f!==void 0?f:-1),c.jsx(Yi.Provider,{value:h,children:c.jsx(dO,{ref:b,role:u,tabIndex:v,component:s,focusVisibleClassName:pe(C.focusVisible,p),className:pe(C.root,y),...x,ownerState:S,classes:C})})});process.env.NODE_ENV!=="production"&&(Et.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 uO(e){return Se("MuiMobileStepper",e)}we("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const pO=e=>{const{classes:t,position:n}=e,r={root:["root",`position${ee(n)}`],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return Ce(r,uO,t)},fO=Q(Sn,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ee(n.position)}`]]}})(be(({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}}]}))),hO=Q("div",{name:"MuiMobileStepper",slot:"Dots"})({variants:[{props:{variant:"dots"},style:{display:"flex",flexDirection:"row"}}]}),gO=Q("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>Pi(e)&&e!=="dotActive",overridesResolver:(e,t)=>{const{dotActive:n}=e;return[t.dot,n&&t.dotActive]}})(be(({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}}]}))),mO=Q(bm,{name:"MuiMobileStepper",slot:"Progress"})({variants:[{props:{variant:"progress"},style:{width:"50%"}}]}),km=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiMobileStepper"}),{activeStep:i=0,backButton:s,className:a,LinearProgressProps:l,nextButton:d,position:p="bottom",steps:u,variant:f="dots",slots:y={},slotProps:x={},...g}=r,h={...r,activeStep:i,position:p,variant:f};let m;f==="progress"&&(u===1?m=100:m=Math.ceil(i/(u-1)*100));const S=pO(h),C={slots:y,slotProps:{progress:l,...x}},[b,v]=Oe("root",{ref:n,elementType:fO,shouldForwardComponentProp:!0,className:pe(S.root,a),externalForwardedProps:{...C,...g},ownerState:h,additionalProps:{square:!0,elevation:0}}),[w,A]=Oe("dots",{className:S.dots,elementType:hO,externalForwardedProps:C,ownerState:h}),[k,D]=Oe("dot",{elementType:gO,externalForwardedProps:C,ownerState:h}),[O,B]=Oe("progress",{className:S.progress,elementType:mO,shouldForwardComponentProp:!0,externalForwardedProps:C,ownerState:h,additionalProps:{value:m,variant:"determinate"}});return c.jsxs(b,{...v,children:[s,f==="text"&&c.jsxs(T.Fragment,{children:[i+1," / ",u]}),f==="dots"&&c.jsx(w,{...A,children:[...new Array(u)].map((L,E)=>c.jsx(k,{...D,className:pe(S.dot,D.className,E===i&&S.dotActive),dotActive:E===i},E))}),f==="progress"&&c.jsx(O,{...B}),d]})});process.env.NODE_ENV!=="production"&&(km.propTypes={activeStep:za,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:za.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 yO(e){return Se("MuiNativeSelect",e)}const Wd=we("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),bO=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 Ce(l,yO,t)},Om=Q("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Wd.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}}}]})),xO=Q(Om,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Wd.multiple}`]:t.multiple}]}})({}),Im=Q("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Wd.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}}]})),vO=Q(Im,{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=T.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},f=bO(u);return c.jsxs(T.Fragment,{children:[c.jsx(xO,{ownerState:u,className:pe(f.select,r),disabled:i,ref:l||n,...p}),t.multiple?null:c.jsx(vO,{as:a,ownerState:u,className:f.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:Wt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var Fm;const SO=Q("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Dt})({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%"}),wO=Q("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Dt})(be(({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 Mm(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(SO,{"aria-hidden":!0,className:r,ownerState:d,...a,children:c.jsx(wO,{ownerState:d,children:l?c.jsx("span",{children:i}):Fm||(Fm=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(Mm.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const CO=e=>{const{classes:t}=e,r=Ce({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},LA,t);return{...t,...r}},EO=Q(Ka,{shouldForwardProp:e=>Dt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ya})(be(({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 .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ln.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(gt()).map(([n])=>({props:{color:n},style:{[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ln.error} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ln.disabled} .${Ln.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"}}]}})),TO=Q(Mm,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(be(({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}})),AO=Q(Xa,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ga})(be(({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}}]}))),il=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:d=!1,notched:p,slots:u={},slotProps:f={},type:y="text",...x}=r,g=CO(r),h=Bn(),m=gr({props:r,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...r,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:h,fullWidth:s,hiddenLabel:m.hiddenLabel,multiline:d,size:m.size,type:y},C=u.root??i.Root??EO,b=u.input??i.Input??AO,[v,w]=Oe("notchedOutline",{elementType:TO,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:u,slotProps:f},additionalProps:{label:l!=null&&l!==""&&m.required?c.jsxs(T.Fragment,{children:[l," ","*"]}):l}});return c.jsx(Li,{slots:{root:C,input:b},slotProps:f,renderSuffix:A=>c.jsx(v,{...w,notched:typeof p<"u"?p:!!(A.startAdornment||A.filled||A.focused)}),fullWidth:s,inputComponent:a,multiline:d,ref:n,type:y,...x,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(il.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:Wt,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}),il.muiName="Input";const PO=dt(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"),kO=dt(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"),OO=Q("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Dt})({position:"relative",display:"flex"}),IO=Q(PO,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),NO=Q(kO,{name:"MuiRadioButtonIcon"})(be(({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(OO,{className:n.root,ownerState:i,children:[c.jsx(IO,{fontSize:r,className:n.background,ownerState:i}),c.jsx(NO,{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 Hd=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(Hd.displayName="RadioGroupContext");function FO(){return T.useContext(Hd)}function MO(e){return Se("MuiRadio",e)}const Dm=we("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),DO=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ee(n)}`,r!=="medium"&&`size${ee(r)}`]};return{...t,...Ce(i,MO,t)}},_O=Q(Za,{shouldForwardProp:e=>Dt(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)}`]]}})(be(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Dm.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(gt()).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(gt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Dm.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function zO(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const $O=c.jsx(Vd,{checked:!0}),BO=c.jsx(Vd,{}),mr=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=$O,color:a="primary",icon:l=BO,name:d,onChange:p,size:u="medium",className:f,disabled:y,disableRipple:x=!1,slots:g={},slotProps:h={},inputProps:m,...S}=r,C=Bn();let b=y;C&&typeof b>"u"&&(b=C.disabled),b??=!1;const v={...r,disabled:b,disableRipple:x,color:a,size:u},w=DO(v),A=FO();let k=i;const D=od(p,A&&A.onChange);let O=d;A&&(typeof k>"u"&&(k=zO(A.value,r.value)),typeof O>"u"&&(O=A.name));const B=h.input??m,[L,E]=Oe("root",{ref:n,elementType:_O,className:pe(w.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:h,...S},getSlotProps:I=>({...I,onChange:($,...W)=>{I.onChange?.($,...W),D($,...W)}}),ownerState:v,additionalProps:{type:"radio",icon:T.cloneElement(l,{fontSize:l.props.fontSize??u}),checkedIcon:T.cloneElement(s,{fontSize:s.props.fontSize??u}),disabled:b,name:O,checked:k,slots:g,slotProps:{input:typeof B=="function"?B(v):B}}});return c.jsx(L,{...E,classes:w})});process.env.NODE_ENV!=="production"&&(mr.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:Wt,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 LO(e){return Se("MuiRadioGroup",e)}we("MuiRadioGroup",["root","row","error"]);const jO=e=>{const{classes:t,row:n,error:r}=e;return Ce({root:["root",n&&"row",r&&"error"]},LO,t)},Qi=T.forwardRef(function(t,n){const{actions:r,children:i,className:s,defaultValue:a,name:l,onChange:d,value:p,...u}=t,f=T.useRef(null),y=jO(t),[x,g]=po({controlled:p,default:a,name:"RadioGroup"});T.useImperativeHandle(r,()=>({focus:()=>{let C=f.current.querySelector("input:not(:disabled):checked");C||(C=f.current.querySelector("input:not(:disabled)")),C&&C.focus()}}),[]);const h=xt(n,f),m=Ir(l),S=T.useMemo(()=>({name:m,onChange(C){g(C.target.value),d&&d(C,C.target.value)},value:x}),[m,d,g,x]);return c.jsx(Hd.Provider,{value:S,children:c.jsx(fm,{role:"radiogroup",ref:h,className:pe(y.root,s),...u,children:i})})});process.env.NODE_ENV!=="production"&&(Qi.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const WO={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function _m(e){return Se("MuiSelect",e)}const Zi=we("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var zm;const VO=Q(Om,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Zi.select}`]:t.select},{[`&.${Zi.select}`]:t[n.variant]},{[`&.${Zi.error}`]:t.error},{[`&.${Zi.multiple}`]:t.multiple}]}})({[`&.${Zi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),HO=Q(Im,{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]}})({}),UO=Q("input",{shouldForwardProp:e=>Pi(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function $m(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function RO(e){return e==null||typeof e=="string"&&!e.trim()}const qO=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 Ce(l,_m,t)},Bm=T.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:d,defaultOpen:p,defaultValue:u,disabled:f,displayEmpty:y,error:x=!1,IconComponent:g,inputRef:h,labelId:m,MenuProps:S={},multiple:C,name:b,onBlur:v,onChange:w,onClose:A,onFocus:k,onKeyDown:D,onMouseDown:O,onOpen:B,open:L,readOnly:E,renderValue:I,required:$,SelectDisplayProps:W={},tabIndex:_,type:z,value:N,variant:V="standard",...j}=t,[M,Y]=po({controlled:N,default:u,name:"Select"}),[Z,J]=po({controlled:L,default:p,name:"Select"}),q=T.useRef(null),K=T.useRef(null),[U,oe]=T.useState(null),{current:ne}=T.useRef(L!=null),[te,ie]=T.useState(),R=xt(n,h),le=T.useCallback(ue=>{K.current=ue,ue&&oe(ue)},[]),ae=U?.parentNode;T.useImperativeHandle(R,()=>({focus:()=>{K.current.focus()},node:q.current,value:M}),[M]),T.useEffect(()=>{p&&Z&&U&&!ne&&(ie(a?null:ae.clientWidth),K.current.focus())},[U,a]),T.useEffect(()=>{s&&K.current.focus()},[s]),T.useEffect(()=>{if(!m)return;const ue=wt(K.current).getElementById(m);if(ue){const he=()=>{getSelection().isCollapsed&&K.current.focus()};return ue.addEventListener("click",he),()=>{ue.removeEventListener("click",he)}}},[m]);const me=(ue,he)=>{ue?B&&B(he):A&&A(he),ne||(ie(a?null:ae.clientWidth),J(ue))},Ve=ue=>{O?.(ue),ue.button===0&&(ue.preventDefault(),K.current.focus(),me(!0,ue))},Ie=ue=>{me(!1,ue)},Ne=T.Children.toArray(l),He=ue=>{const he=Ne.find(ze=>ze.props.value===ue.target.value);he!==void 0&&(Y(he.props.value),w&&w(ue,he))},je=ue=>he=>{let ze;if(he.currentTarget.hasAttribute("tabindex")){if(C){ze=Array.isArray(M)?M.slice():[];const At=M.indexOf(ue.props.value);At===-1?ze.push(ue.props.value):ze.splice(At,1)}else ze=ue.props.value;if(ue.props.onClick&&ue.props.onClick(he),M!==ze&&(Y(ze),w)){const At=he.nativeEvent||he,ke=new At.constructor(At.type,At);Object.defineProperty(ke,"target",{writable:!0,value:{value:ze,name:b}}),w(ke,ue)}C||me(!1,he)}},$e=ue=>{E||([" ","ArrowUp","ArrowDown","Enter"].includes(ue.key)&&(ue.preventDefault(),me(!0,ue)),D?.(ue))},de=U!==null&&Z,Ue=ue=>{!de&&v&&(Object.defineProperty(ue,"target",{writable:!0,value:{value:M,name:b}}),v(ue))};delete j["aria-invalid"];let De,se;const re=[];let fe=!1,ve=!1;(qa({value:M})||y)&&(I?De=I(M):fe=!0);const Ae=Ne.map(ue=>{if(!T.isValidElement(ue))return null;process.env.NODE_ENV!=="production"&&id.isFragment(ue)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
230
230
  `));let he;if(C){if(!Array.isArray(M))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Pn(2));he=M.some(ze=>$m(ze,ue.props.value)),he&&fe&&re.push(ue.props.children)}else he=$m(M,ue.props.value),he&&fe&&(se=ue.props.children);return he&&(ve=!0),T.cloneElement(ue,{"aria-selected":he?"true":"false",onClick:je(ue),onKeyUp:ze=>{ze.key===" "&&ze.preventDefault(),ue.props.onKeyUp&&ue.props.onKeyUp(ze)},role:"option",selected:he,value:void 0,"data-value":ue.props.value})});process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(!ve&&!C&&M!==""){const ue=Ne.map(he=>he.props.value);console.warn([`MUI: You have provided an out-of-range value \`${M}\` for the select ${b?`(name="${b}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ue.filter(he=>he!=null).map(he=>`\`${he}\``).join(", ")||'""'}.`].join(`
231
- `))}},[ve,Ne,C,b,M]),fe&&(C?re.length===0?De=null:De=re.reduce((ue,he,ze)=>(ue.push(he),ze<re.length-1&&ue.push(", "),ue),[]):De=se);let Pe=te;!a&&ne&&H&&(Pe=ae.clientWidth);let xe;typeof _<"u"?xe=_:xe=f?null:0;const Ye=W.id||(b?`mui-component-select-${b}`:void 0),Fe={...t,variant:V,value:M,open:de,error:x},ce=qO(Fe),Ee={...S.PaperProps,...typeof S.slotProps?.paper=="function"?S.slotProps.paper(Fe):S.slotProps?.paper},We={...S.MenuListProps,...typeof S.slotProps?.list=="function"?S.slotProps.list(Fe):S.slotProps?.list},st=Ir();return c.jsxs(T.Fragment,{children:[c.jsx(VO,{as:"div",ref:le,tabIndex:xe,role:"combobox","aria-controls":de?st:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":de?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[m,Ye].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":$?"true":void 0,"aria-invalid":x?"true":void 0,onKeyDown:$e,onMouseDown:f||E?null:Ve,onBlur:He,onFocus:k,...W,ownerState:Fe,className:pe(W.className,ce.select,d),id:Ye,children:RO(De)?zm||(zm=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):De}),c.jsx(HO,{"aria-invalid":x,value:Array.isArray(M)?M.join(","):M,name:b,ref:q,"aria-hidden":!0,onChange:Ue,tabIndex:-1,disabled:f,className:ce.nativeInput,autoFocus:s,required:$,...j,ownerState:Fe}),c.jsx(UO,{as:g,className:ce.icon,ownerState:Fe}),c.jsx(Xi,{id:`menu-${b||""}`,anchorEl:ae,open:de,onClose:Ie,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":m,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:st,...We},paper:{...Ee,style:{minWidth:Pe,...Ee!=null?Ee.style:null}}},children:Ae})]})});process.env.NODE_ENV!=="production"&&(Bm.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:Wt,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 YO=e=>{const{classes:t}=e,r=Ce({root:["root"]},_m,t);return{...t,...r}},Hd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Dt(e)&&e!=="variant"},GO=Q(ol,Hd)(""),KO=Q(il,Hd)(""),XO=Q(rl,Hd)(""),Cn=T.forwardRef(function(t,n){const r=Te({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:s,classes:a={},className:l,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:u=WA,id:f,input:y,inputProps:x,label:g,labelId:h,MenuProps:m,multiple:S=!1,native:C=!1,onClose:b,onOpen:v,open:w,renderValue:A,SelectDisplayProps:k,variant:D="outlined",...O}=r,B=C?Nm:Bm,L=Bn(),E=gr({props:r,muiFormControl:L,states:["variant","error"]}),I=E.variant||D,$={...r,variant:I,classes:a},W=YO($),{root:_,...z}=W,N=y||{standard:c.jsx(GO,{ownerState:$}),outlined:c.jsx(KO,{label:g,ownerState:$}),filled:c.jsx(XO,{ownerState:$})}[I],V=xt(n,Br(N));return c.jsx(T.Fragment,{children:T.cloneElement(N,{inputComponent:B,inputProps:{children:s,error:E.error,IconComponent:u,variant:I,type:void 0,multiple:S,...C?{id:f}:{autoWidth:i,defaultOpen:d,displayEmpty:p,labelId:h,MenuProps:m,onClose:b,onOpen:v,open:w,renderValue:A,SelectDisplayProps:{id:f,...k}},...x,classes:x?Mt(z,x.classes):z,...y?y.props.inputProps:{}},...(S&&C||p)&&I==="outlined"?{notched:!0}:{},ref:V,className:pe(N.props.className,l,W.root),...!y&&{variant:I},...O})})});process.env.NODE_ENV!=="production"&&(Cn.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"])}),Cn.muiName="Select";function JO(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const QO=2;function Po(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function Lm(e,t){return e-t}function jm(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 sl(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 al(e,t,n){return(e-t)*100/(n-t)}function ZO(e,t,n){return(n-t)*e+t}function e2(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 t2(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(e2(t)))}function Wm({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Lm)}function ll({sliderRef:e,activeIndex:t,setActive:n}){const r=wt(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 cl(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?JO(e,t):!1}const n2={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}%`})}},r2=e=>e;let dl;function Vm(){return dl===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?dl=CSS.supports("touch-action","none"):dl=!0),dl}function o2(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:f,orientation:y="horizontal",rootRef:x,scale:g=r2,step:h=1,shiftStep:m=10,tabIndex:S,value:C}=e,b=T.useRef(void 0),[v,w]=T.useState(-1),[A,k]=T.useState(-1),[D,O]=T.useState(!1),B=T.useRef(0),L=T.useRef(null),[E,I]=po({controlled:C,default:n??d,name:"Slider"}),$=u&&((se,re,fe)=>{const ve=se.nativeEvent||se,Ae=new ve.constructor(ve.type,ve);Object.defineProperty(Ae,"target",{writable:!0,value:{value:re,name:p}}),L.current=re,u(Ae,re,fe)}),W=Array.isArray(E);let _=W?E.slice().sort(Lm):[E];_=_.map(se=>se==null?d:uo(se,d,l));const z=a===!0&&h!==null?[...Array(Math.floor((l-d)/h)+1)].map((se,re)=>({value:d+h*re})):a||[],N=z.map(se=>se.value),[V,j]=T.useState(-1),M=T.useRef(null),Y=xt(x,M),Z=se=>re=>{const fe=Number(re.currentTarget.getAttribute("data-index"));go(re.target)&&j(fe),k(fe),se?.onFocus?.(re)},J=se=>re=>{go(re.target)||j(-1),k(-1),se?.onBlur?.(re)},q=(se,re)=>{const fe=Number(se.currentTarget.getAttribute("data-index")),ve=_[fe],Ae=N.indexOf(ve);let Pe=re;if(z&&h==null){const xe=N[N.length-1];Pe>=xe?Pe=xe:Pe<=N[0]?Pe=N[0]:Pe=Pe<ve?N[Ae-1]:N[Ae+1]}if(Pe=uo(Pe,d,l),W){i&&(Pe=uo(Pe,_[fe-1]||-1/0,_[fe+1]||1/0));const xe=Pe;Pe=Wm({values:_,newValue:Pe,index:fe});let Ye=fe;i||(Ye=Pe.indexOf(xe)),ll({sliderRef:M,activeIndex:Ye})}I(Pe),j(fe),$&&!cl(Pe,E)&&$(se,Pe,fe),f&&f(se,L.current??Pe)},K=se=>re=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(re.key)){re.preventDefault();const fe=Number(re.currentTarget.getAttribute("data-index")),ve=_[fe];let Ae=null;if(h!=null){const Pe=re.shiftKey?m:h;switch(re.key){case"ArrowUp":Ae=Po(ve,Pe,1,d,l);break;case"ArrowRight":Ae=Po(ve,Pe,s?-1:1,d,l);break;case"ArrowDown":Ae=Po(ve,Pe,-1,d,l);break;case"ArrowLeft":Ae=Po(ve,Pe,s?1:-1,d,l);break;case"PageUp":Ae=Po(ve,m,1,d,l);break;case"PageDown":Ae=Po(ve,m,-1,d,l);break;case"Home":Ae=d;break;case"End":Ae=l;break}}else if(z){const Pe=N[N.length-1],xe=N.indexOf(ve),Ye=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Fe=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ye.includes(re.key)?xe===0?Ae=N[0]:Ae=N[xe-1]:Fe.includes(re.key)&&(xe===N.length-1?Ae=Pe:Ae=N[xe+1])}Ae!=null&&q(re,Ae)}se?.onKeyDown?.(re)};an(()=>{r&&M.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&v!==-1&&w(-1),r&&V!==-1&&j(-1);const H=se=>re=>{se.onChange?.(re),q(re,re.target.valueAsNumber)},oe=T.useRef(void 0);let ne=y;s&&y==="horizontal"&&(ne+="-reverse");const te=({finger:se,move:re=!1})=>{const{current:fe}=M,{width:ve,height:Ae,bottom:Pe,left:xe}=fe.getBoundingClientRect();let Ye;ne.startsWith("vertical")?Ye=(Pe-se.y)/Ae:Ye=(se.x-xe)/ve,ne.includes("-reverse")&&(Ye=1-Ye);let Fe;if(Fe=ZO(Ye,d,l),h)Fe=t2(Fe,h,d);else{const Ee=jm(N,Fe);Fe=N[Ee]}Fe=uo(Fe,d,l);let ce=0;if(W){re?ce=oe.current:ce=jm(_,Fe),i&&(Fe=uo(Fe,_[ce-1]||-1/0,_[ce+1]||1/0));const Ee=Fe;Fe=Wm({values:_,newValue:Fe,index:ce}),i&&re||(ce=Fe.indexOf(Ee),oe.current=ce)}return{newValue:Fe,activeIndex:ce}},ie=jt(se=>{const re=sl(se,b);if(!re)return;if(B.current+=1,se.type==="mousemove"&&se.buttons===0){R(se);return}const{newValue:fe,activeIndex:ve}=te({finger:re,move:!0});ll({sliderRef:M,activeIndex:ve,setActive:w}),I(fe),!D&&B.current>QO&&O(!0),$&&!cl(fe,E)&&$(se,fe,ve)}),R=jt(se=>{const re=sl(se,b);if(O(!1),!re)return;const{newValue:fe}=te({finger:re,move:!0});w(-1),se.type==="touchend"&&k(-1),f&&f(se,L.current??fe),b.current=void 0,ae()}),le=jt(se=>{if(r)return;Vm()||se.preventDefault();const re=se.changedTouches[0];re!=null&&(b.current=re.identifier);const fe=sl(se,b);if(fe!==!1){const{newValue:Ae,activeIndex:Pe}=te({finger:fe});ll({sliderRef:M,activeIndex:Pe,setActive:w}),I(Ae),$&&!cl(Ae,E)&&$(se,Ae,Pe)}B.current=0;const ve=wt(M.current);ve.addEventListener("touchmove",ie,{passive:!0}),ve.addEventListener("touchend",R,{passive:!0})}),ae=T.useCallback(()=>{const se=wt(M.current);se.removeEventListener("mousemove",ie),se.removeEventListener("mouseup",R),se.removeEventListener("touchmove",ie),se.removeEventListener("touchend",R)},[R,ie]);T.useEffect(()=>{const{current:se}=M;return se.addEventListener("touchstart",le,{passive:Vm()}),()=>{se.removeEventListener("touchstart",le),ae()}},[ae,le]),T.useEffect(()=>{r&&ae()},[r,ae]);const me=se=>re=>{if(se.onMouseDown?.(re),r||re.defaultPrevented||re.button!==0)return;re.preventDefault();const fe=sl(re,b);if(fe!==!1){const{newValue:Ae,activeIndex:Pe}=te({finger:fe});ll({sliderRef:M,activeIndex:Pe,setActive:w}),I(Ae),$&&!cl(Ae,E)&&$(re,Ae,Pe)}B.current=0;const ve=wt(M.current);ve.addEventListener("mousemove",ie,{passive:!0}),ve.addEventListener("mouseup",R)},Ve=al(W?_[0]:d,d,l),Ie=al(_[_.length-1],d,l)-Ve,Ne=(se={})=>{const re=_r(se),fe={onMouseDown:me(re||{})},ve={...re,...fe};return{...se,ref:Y,...ve}},Ue=se=>re=>{se.onMouseOver?.(re);const fe=Number(re.currentTarget.getAttribute("data-index"));k(fe)},je=se=>re=>{se.onMouseLeave?.(re),k(-1)},$e=(se={})=>{const re=_r(se),fe={onMouseOver:Ue(re||{}),onMouseLeave:je(re||{})};return{...se,...re,...fe}},de=se=>({pointerEvents:v!==-1&&v!==se?"none":void 0});let He;return y==="vertical"&&(He=s?"vertical-rl":"vertical-lr"),{active:v,axis:ne,axisProps:n2,dragging:D,focusedThumbIndex:V,getHiddenInputProps:(se={})=>{const re=_r(se),fe={onChange:H(re||{}),onFocus:Z(re||{}),onBlur:J(re||{}),onKeyDown:K(re||{})},ve={...re,...fe};return{tabIndex:S,"aria-labelledby":t,"aria-orientation":y,"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,...se,...ve,style:{...WO,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:He}}},getRootProps:Ne,getThumbProps:$e,marks:z,open:A,range:W,rootRef:Y,trackLeap:Ie,trackOffset:Ve,values:_,getThumbStyle:de}}const i2=e=>!e||!fr(e);function s2(e){return Se("MuiSlider",e)}const hn=we("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"]),a2=e=>{const{open:t}=e;return{offset:pe(t&&hn.valueLabelOpen),circle:hn.valueLabelCircle,label:hn.valueLabelLabel}};function Um(e){const{children:t,className:n,value:r}=e,i=a2(e);return t?T.cloneElement(t,{className:t.props.className},c.jsxs(T.Fragment,{children:[t.props.children,c.jsx("span",{className:pe(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"&&(Um.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function Hm(e){return e}const l2=Q("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]}})(be(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${hn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${hn.dragging}`]:{[`& .${hn.thumb}, & .${hn.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(gt()).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}}]}))),c2=Q("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}}]}),d2=Q("span",{name:"MuiSlider",slot:"Track"})(be(({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(gt()).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)})}}}))]}))),u2=Q("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)}`]]}})(be(({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%)"},[`&.${hn.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(gt()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${hn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${hn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Rm=Q(Um,{name:"MuiSlider",slot:"ValueLabel"})(be(({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%"},[`&.${hn.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%"},[`&.${hn.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"&&(Rm.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const p2=Q("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Pi(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(be(({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}}]}))),f2=Q("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Pi(e)&&e!=="markLabelActive"})(be(({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}}]}))),h2=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 Ce(p,s2,a)},g2=({children:e})=>e,qm=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSlider"}),i=Ti(),{"aria-label":s,"aria-valuetext":a,"aria-labelledby":l,component:d="span",components:p={},componentsProps:u={},color:f="primary",classes:y,className:x,disableSwap:g=!1,disabled:h=!1,getAriaLabel:m,getAriaValueText:S,marks:C=!1,max:b=100,min:v=0,name:w,onChange:A,onChangeCommitted:k,orientation:D="horizontal",shiftStep:O=10,size:B="medium",step:L=1,scale:E=Hm,slotProps:I,slots:$,tabIndex:W,track:_="normal",value:z,valueLabelDisplay:N="off",valueLabelFormat:V=Hm,...j}=r,M={...r,isRtl:i,max:b,min:v,classes:y,disabled:h,disableSwap:g,orientation:D,marks:C,color:f,size:B,step:L,shiftStep:O,scale:E,track:_,valueLabelDisplay:N,valueLabelFormat:V},{axisProps:Y,getRootProps:Z,getHiddenInputProps:J,getThumbProps:q,open:K,active:H,axis:oe,focusedThumbIndex:ne,range:te,dragging:ie,marks:R,values:le,trackOffset:ae,trackLeap:me,getThumbStyle:Ve}=o2({...M,rootRef:n});M.marked=R.length>0&&R.some(ke=>ke.label),M.dragging=ie,M.focusedThumbIndex=ne;const Ie=h2(M),Ne=$?.root??p.Root??l2,Ue=$?.rail??p.Rail??c2,je=$?.track??p.Track??d2,$e=$?.thumb??p.Thumb??u2,de=$?.valueLabel??p.ValueLabel??Rm,He=$?.mark??p.Mark??p2,De=$?.markLabel??p.MarkLabel??f2,se=$?.input??p.Input??"input",re=I?.root??u.root,fe=I?.rail??u.rail,ve=I?.track??u.track,Ae=I?.thumb??u.thumb,Pe=I?.valueLabel??u.valueLabel,xe=I?.mark??u.mark,Ye=I?.markLabel??u.markLabel,Fe=I?.input??u.input,ce=$n({elementType:Ne,getSlotProps:Z,externalSlotProps:re,externalForwardedProps:j,additionalProps:{...i2(Ne)&&{as:d}},ownerState:{...M,...re?.ownerState},className:[Ie.root,x]}),Ee=$n({elementType:Ue,externalSlotProps:fe,ownerState:M,className:Ie.rail}),We=$n({elementType:je,externalSlotProps:ve,additionalProps:{style:{...Y[oe].offset(ae),...Y[oe].leap(me)}},ownerState:{...M,...ve?.ownerState},className:Ie.track}),st=$n({elementType:$e,getSlotProps:q,externalSlotProps:Ae,ownerState:{...M,...Ae?.ownerState},className:Ie.thumb}),ue=$n({elementType:de,externalSlotProps:Pe,ownerState:{...M,...Pe?.ownerState},className:Ie.valueLabel}),he=$n({elementType:He,externalSlotProps:xe,ownerState:M,className:Ie.mark}),ze=$n({elementType:De,externalSlotProps:Ye,ownerState:M,className:Ie.markLabel}),At=$n({elementType:se,getSlotProps:J,externalSlotProps:Fe,ownerState:M});return c.jsxs(Ne,{...ce,children:[c.jsx(Ue,{...Ee}),c.jsx(je,{...We}),R.filter(ke=>ke.value>=v&&ke.value<=b).map((ke,Je)=>{const Hn=al(ke.value,v,b),$t=Y[oe].offset(Hn);let Ut;return _===!1?Ut=le.includes(ke.value):Ut=_==="normal"&&(te?ke.value>=le[0]&&ke.value<=le[le.length-1]:ke.value<=le[0])||_==="inverted"&&(te?ke.value<=le[0]||ke.value>=le[le.length-1]:ke.value>=le[0]),c.jsxs(T.Fragment,{children:[c.jsx(He,{"data-index":Je,...he,...!fr(He)&&{markActive:Ut},style:{...$t,...he.style},className:pe(he.className,Ut&&Ie.markActive)}),ke.label!=null?c.jsx(De,{"aria-hidden":!0,"data-index":Je,...ze,...!fr(De)&&{markLabelActive:Ut},style:{...$t,...ze.style},className:pe(Ie.markLabel,ze.className,Ut&&Ie.markLabelActive),children:ke.label}):null]},Je)}),le.map((ke,Je)=>{const Hn=al(ke,v,b),$t=Y[oe].offset(Hn),Ut=N==="off"?g2:de;return c.jsx(Ut,{...!fr(Ut)&&{valueLabelFormat:V,valueLabelDisplay:N,value:typeof V=="function"?V(E(ke),Je):V,index:Je,open:K===Je||H===Je||N==="on",disabled:h},...ue,children:c.jsx($e,{"data-index":Je,...st,className:pe(Ie.thumb,st.className,H===Je&&Ie.active,ne===Je&&Ie.focusVisible),style:{...$t,...Ve(Je),...st.style},children:c.jsx(se,{"data-index":Je,"aria-label":m?m(Je):s,"aria-valuenow":E(ke),"aria-labelledby":l,"aria-valuetext":S?S(E(ke),Je):a,value:le[Je],...At})})},Je)})]})});process.env.NODE_ENV!=="production"&&(qm.propTypes={"aria-label":vn(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":vn(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 m2(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:s}=e,a=Dr();T.useEffect(()=>{if(!i)return;function S(C){C.defaultPrevented||C.key==="Escape"&&r?.(C,"escapeKeyDown")}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[i,r]);const l=jt((S,C)=>{r?.(S,C)}),d=jt(S=>{!r||S==null||a.start(S,()=>{l(null,"timeout")})});T.useEffect(()=>(i&&d(t),a.clear),[i,t,d,a]);const p=S=>{r?.(S,"clickaway")},u=a.clear,f=T.useCallback(()=>{t!=null&&d(s??t*.5)},[t,s,d]),y=S=>C=>{const b=S.onBlur;b?.(C),f()},x=S=>C=>{const b=S.onFocus;b?.(C),u()},g=S=>C=>{const b=S.onMouseEnter;b?.(C),u()},h=S=>C=>{const b=S.onMouseLeave;b?.(C),f()};return T.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,i,f,u]),{getRootProps:(S={})=>{const C={..._r(e),..._r(S)};return{role:"presentation",...S,...C,onBlur:y(C),onFocus:x(C),onMouseEnter:g(C),onMouseLeave:h(C)}},onClickAway:p}}function y2(e){return Se("MuiSnackbarContent",e)}we("MuiSnackbarContent",["root","message","action"]);const b2=e=>{const{classes:t}=e;return Ce({root:["root"],action:["action"],message:["message"]},y2,t)},x2=Q(Sn,{name:"MuiSnackbarContent",slot:"Root"})(be(({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(Gc(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Gc(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),v2=Q("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),S2=Q("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Ym=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSnackbarContent"}),{action:i,className:s,message:a,role:l="alert",...d}=r,p=r,u=b2(p);return c.jsxs(x2,{role:l,elevation:6,className:pe(u.root,s),ownerState:p,ref:n,...d,children:[c.jsx(v2,{className:u.message,ownerState:p,children:a}),i?c.jsx(S2,{className:u.action,ownerState:p,children:i}):null]})});process.env.NODE_ENV!=="production"&&(Ym.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 w2(e){return Se("MuiSnackbar",e)}we("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const C2=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ee(n.vertical)}${ee(n.horizontal)}`]};return Ce(r,w2,t)},E2=Q("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)}`]]}})(be(({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%)"}}}]}))),ko=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSnackbar"}),i=Mn(),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:f,ClickAwayListenerProps:y,ContentProps:x,disableWindowBlurListener:g=!1,message:h,onBlur:m,onClose:S,onFocus:C,onMouseEnter:b,onMouseLeave:v,open:w,resumeHideDuration:A,slots:k={},slotProps:D={},TransitionComponent:O,transitionDuration:B=s,TransitionProps:{onEnter:L,onExited:E,...I}={},...$}=r,W={...r,anchorOrigin:{vertical:l,horizontal:d},autoHideDuration:p,disableWindowBlurListener:g,TransitionComponent:O,transitionDuration:B},_=C2(W),{getRootProps:z,onClickAway:N}=m2(W),[V,j]=T.useState(!0),M=le=>{j(!0),E&&E(le)},Y=(le,ae)=>{j(!1),L&&L(le,ae)},Z={slots:{transition:O,...k},slotProps:{content:x,clickAwayListener:y,transition:I,...D}},[J,q]=Oe("root",{ref:n,className:[_.root,f],elementType:E2,getSlotProps:z,externalForwardedProps:{...Z,...$},ownerState:W}),[K,{ownerState:H,...oe}]=Oe("clickAwayListener",{elementType:el,externalForwardedProps:Z,getSlotProps:le=>({onClickAway:(...ae)=>{const me=ae[0];le.onClickAway?.(...ae),!me?.defaultMuiPrevented&&N(...ae)}}),ownerState:W}),[ne,te]=Oe("content",{elementType:Ym,shouldForwardComponentProp:!0,externalForwardedProps:Z,additionalProps:{message:h,action:a},ownerState:W}),[ie,R]=Oe("transition",{elementType:To,externalForwardedProps:Z,getSlotProps:le=>({onEnter:(...ae)=>{le.onEnter?.(...ae),Y(...ae)},onExited:(...ae)=>{le.onExited?.(...ae),M(...ae)}}),additionalProps:{appear:!0,in:w,timeout:B,direction:l==="top"?"down":"up"},ownerState:W});return!w&&V?null:c.jsx(K,{...oe,...k.clickAwayListener&&{ownerState:H},children:c.jsx(J,{...q,children:c.jsx(ie,{...R,children:u||c.jsx(ne,{...te})})})})});process.env.NODE_ENV!=="production"&&(ko.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 T2(e){return Se("MuiTooltip",e)}const mt=we("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function A2(e){return Math.round(e*1e5)/1e5}const P2=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 Ce(a,T2,t)},k2=Q(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]}})(be(({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"] .${mt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${mt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${mt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${mt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${mt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${mt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${mt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${mt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),O2=Q("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])}`]]}})(be(({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,[`.${mt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${mt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${mt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${mt.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:`${A2(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${mt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${mt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${mt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${mt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${mt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${mt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${mt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${mt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${mt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${mt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),I2=Q("span",{name:"MuiTooltip",slot:"Arrow"})(be(({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 ul=!1;const Gm=new Da;let es={x:0,y:0};function pl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Oo=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:s,classes:a,components:l={},componentsProps:d={},describeChild:p=!1,disableFocusListener:u=!1,disableHoverListener:f=!1,disableInteractive:y=!1,disableTouchListener:x=!1,enterDelay:g=100,enterNextDelay:h=0,enterTouchDelay:m=700,followCursor:S=!1,id:C,leaveDelay:b=0,leaveTouchDelay:v=1500,onClose:w,onOpen:A,open:k,placement:D="bottom",PopperComponent:O,PopperProps:B={},slotProps:L={},slots:E={},title:I,TransitionComponent:$,TransitionProps:W,..._}=r,z=T.isValidElement(s)?s:c.jsx("span",{children:s}),N=Mn(),V=Ti(),[j,M]=T.useState(),[Y,Z]=T.useState(null),J=T.useRef(!1),q=y||S,K=Dr(),H=Dr(),oe=Dr(),ne=Dr(),[te,ie]=po({controlled:k,default:!1,name:"Tooltip",state:"open"});let R=te;if(process.env.NODE_ENV!=="production"){const{current:Me}=T.useRef(k!==void 0);T.useEffect(()=>{j&&j.disabled&&!Me&&I!==""&&j.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,j,Me])}const le=Ir(C),ae=T.useRef(),me=jt(()=>{ae.current!==void 0&&(document.body.style.WebkitUserSelect=ae.current,ae.current=void 0),ne.clear()});T.useEffect(()=>me,[me]);const Ve=Me=>{Gm.clear(),ul=!0,ie(!0),A&&!R&&A(Me)},Ie=jt(Me=>{Gm.start(800+b,()=>{ul=!1}),ie(!1),w&&R&&w(Me),K.start(N.transitions.duration.shortest,()=>{J.current=!1})}),Ne=Me=>{J.current&&Me.type!=="touchstart"||(j&&j.removeAttribute("title"),H.clear(),oe.clear(),g||ul&&h?H.start(ul?h:g,()=>{Ve(Me)}):Ve(Me))},Ue=Me=>{H.clear(),oe.start(b,()=>{Ie(Me)})},[,je]=T.useState(!1),$e=Me=>{go(Me.target)||(je(!1),Ue(Me))},de=Me=>{j||M(Me.currentTarget),go(Me.target)&&(je(!0),Ne(Me))},He=Me=>{J.current=!0;const gn=z.props;gn.onTouchStart&&gn.onTouchStart(Me)},De=Me=>{He(Me),oe.clear(),K.clear(),me(),ae.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.start(m,()=>{document.body.style.WebkitUserSelect=ae.current,Ne(Me)})},se=Me=>{z.props.onTouchEnd&&z.props.onTouchEnd(Me),me(),oe.start(v,()=>{Ie(Me)})};T.useEffect(()=>{if(!R)return;function Me(gn){gn.key==="Escape"&&Ie(gn)}return document.addEventListener("keydown",Me),()=>{document.removeEventListener("keydown",Me)}},[Ie,R]);const re=xt(Br(z),M,n);!I&&I!==0&&(R=!1);const fe=T.useRef(),ve=Me=>{const gn=z.props;gn.onMouseMove&&gn.onMouseMove(Me),es={x:Me.clientX,y:Me.clientY},fe.current&&fe.current.update()},Ae={},Pe=typeof I=="string";p?(Ae.title=!R&&Pe&&!f?I:null,Ae["aria-describedby"]=R?le:null):(Ae["aria-label"]=Pe?I:null,Ae["aria-labelledby"]=R&&!Pe?le:null);const xe={...Ae,..._,...z.props,className:pe(_.className,z.props.className),onTouchStart:He,ref:re,...S?{onMouseMove:ve}:{}};process.env.NODE_ENV!=="production"&&(xe["data-mui-internal-clone-element"]=!0,T.useEffect(()=>{j&&!j.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
- `))},[j]));const Ye={};x||(xe.onTouchStart=De,xe.onTouchEnd=se),f||(xe.onMouseOver=pl(Ne,xe.onMouseOver),xe.onMouseLeave=pl(Ue,xe.onMouseLeave),q||(Ye.onMouseOver=Ne,Ye.onMouseLeave=Ue)),u||(xe.onFocus=pl(de,xe.onFocus),xe.onBlur=pl($e,xe.onBlur),q||(Ye.onFocus=de,Ye.onBlur=$e)),process.env.NODE_ENV!=="production"&&z.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${z.props.title}\` or the Tooltip component.`].join(`
234
- `));const Fe={...r,isRtl:V,arrow:i,disableInteractive:q,placement:D,PopperComponentProp:O,touch:J.current},ce=typeof L.popper=="function"?L.popper(Fe):L.popper,Ee=T.useMemo(()=>{let Me=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return B.popperOptions?.modifiers&&(Me=Me.concat(B.popperOptions.modifiers)),ce?.popperOptions?.modifiers&&(Me=Me.concat(ce.popperOptions.modifiers)),{...B.popperOptions,...ce?.popperOptions,modifiers:Me}},[Y,B.popperOptions,ce?.popperOptions]),We=P2(Fe),st=typeof L.transition=="function"?L.transition(Fe):L.transition,ue={slots:{popper:l.Popper,transition:l.Transition??$,tooltip:l.Tooltip,arrow:l.Arrow,...E},slotProps:{arrow:L.arrow??d.arrow,popper:{...B,...ce??d.popper},tooltip:L.tooltip??d.tooltip,transition:{...W,...st??d.transition}}},[he,ze]=Oe("popper",{elementType:k2,externalForwardedProps:ue,ownerState:Fe,className:pe(We.popper,B?.className)}),[At,ke]=Oe("transition",{elementType:To,externalForwardedProps:ue,ownerState:Fe}),[Je,Hn]=Oe("tooltip",{elementType:O2,className:We.tooltip,externalForwardedProps:ue,ownerState:Fe}),[$t,Ut]=Oe("arrow",{elementType:I2,className:We.arrow,externalForwardedProps:ue,ownerState:Fe,ref:Z});return c.jsxs(T.Fragment,{children:[T.cloneElement(z,xe),c.jsx(he,{as:O??Ed,placement:D,anchorEl:S?{getBoundingClientRect:()=>({top:es.y,left:es.x,right:es.x,bottom:es.y,width:0,height:0})}:j,popperRef:fe,open:j?R:!1,id:le,transition:!0,...Ye,...ze,popperOptions:Ee,children:({TransitionProps:Me})=>c.jsx(At,{timeout:N.transitions.duration.shorter,...Me,...ke,children:c.jsxs(Je,{...Hn,children:[I,i?c.jsx($t,{...Ut}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Oo.propTypes={arrow:o.bool,children:Wr.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 N2(e){return Se("MuiSwitch",e)}const Vt=we("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),F2=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=Ce(l,N2,t);return{...t,...d}},M2=Q("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,[`& .${Vt.thumb}`]:{width:16,height:16},[`& .${Vt.switchBase}`]:{padding:4,[`&.${Vt.checked}`]:{transform:"translateX(16px)"}}}}]}),D2=Q(Za,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Vt.input}`]:t.input},n.color!=="default"&&t[`color${ee(n.color)}`]]}})(be(({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}),[`&.${Vt.checked}`]:{transform:"translateX(20px)"},[`&.${Vt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Vt.checked} + .${Vt.track}`]:{opacity:.5},[`&.${Vt.disabled} + .${Vt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Vt.input}`]:{left:"-100%",width:"300%"}})),be(({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(gt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Vt.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"}},[`&.${Vt.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)}`}},[`&.${Vt.checked} + .${Vt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),_2=Q("span",{name:"MuiSwitch",slot:"Track"})(be(({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}`}))),z2=Q("span",{name:"MuiSwitch",slot:"Thumb"})(be(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Km=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSwitch"}),{className:i,color:s="primary",edge:a=!1,size:l="medium",sx:d,slots:p={},slotProps:u={},...f}=r,y={...r,color:s,edge:a,size:l},x=F2(y),g={slots:p,slotProps:u},[h,m]=Oe("root",{className:pe(x.root,i),elementType:M2,externalForwardedProps:g,ownerState:y,additionalProps:{sx:d}}),[S,C]=Oe("thumb",{className:x.thumb,elementType:z2,externalForwardedProps:g,ownerState:y}),b=c.jsx(S,{...C}),[v,w]=Oe("track",{className:x.track,elementType:_2,externalForwardedProps:g,ownerState:y});return c.jsxs(h,{...m,children:[c.jsx(D2,{type:"checkbox",icon:b,checkedIcon:b,ref:n,ownerState:y,...f,classes:{...x,root:x.switchBase},slots:{...p.switchBase&&{root:p.switchBase},...p.input&&{input:p.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(y):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(y):u.input}}}),c.jsx(v,{...w})]})});process.env.NODE_ENV!=="production"&&(Km.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:Wt,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 Rd=T.createContext();process.env.NODE_ENV!=="production"&&(Rd.displayName="TableContext");function $2(e){return Se("MuiTable",e)}we("MuiTable",["root","stickyHeader"]);const B2=e=>{const{classes:t,stickyHeader:n}=e;return Ce({root:["root",n&&"stickyHeader"]},$2,t)},L2=Q("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(be(({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"}}]}))),Xm="table",Jm=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTable"}),{className:i,component:s=Xm,padding:a="normal",size:l="medium",stickyHeader:d=!1,...p}=r,u={...r,component:s,padding:a,size:l,stickyHeader:d},f=B2(u),y=T.useMemo(()=>({padding:a,size:l,stickyHeader:d}),[a,l,d]);return c.jsx(Rd.Provider,{value:y,children:c.jsx(L2,{as:s,role:s===Xm?null:"table",ref:n,className:pe(f.root,i),ownerState:u,...p})})});process.env.NODE_ENV!=="production"&&(Jm.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 ts=T.createContext();process.env.NODE_ENV!=="production"&&(ts.displayName="Tablelvl2Context");function j2(e){return Se("MuiTableBody",e)}we("MuiTableBody",["root"]);const W2=e=>{const{classes:t}=e;return Ce({root:["root"]},j2,t)},V2=Q("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),U2={variant:"body"},Qm="tbody",Zm=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTableBody"}),{className:i,component:s=Qm,...a}=r,l={...r,component:s},d=W2(l);return c.jsx(ts.Provider,{value:U2,children:c.jsx(V2,{className:pe(d.root,i),as:s,ref:n,role:s===Qm?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Zm.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 H2(e){return Se("MuiTableCell",e)}const R2=we("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),q2=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 Ce(l,H2,t)},Y2=Q("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]}})(be(({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",[`&.${R2.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}}]}))),yr=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTableCell"}),{align:i="inherit",className:s,component:a,padding:l,scope:d,size:p,sortDirection:u,variant:f,...y}=r,x=T.useContext(Rd),g=T.useContext(ts),h=g&&g.variant==="head";let m;a?m=a:m=h?"th":"td";let S=d;m==="td"?S=void 0:!S&&h&&(S="col");const C=f||g&&g.variant,b={...r,align:i,component:m,padding:l||(x&&x.padding?x.padding:"normal"),size:p||(x&&x.size?x.size:"medium"),sortDirection:u,stickyHeader:C==="head"&&x&&x.stickyHeader,variant:C},v=q2(b);let w=null;return u&&(w=u==="asc"?"ascending":"descending"),c.jsx(Y2,{as:m,ref:n,className:pe(v.root,s),"aria-sort":w,scope:S,ownerState:b,...y})});process.env.NODE_ENV!=="production"&&(yr.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 G2(e){return Se("MuiTableContainer",e)}we("MuiTableContainer",["root"]);const K2=e=>{const{classes:t}=e;return Ce({root:["root"]},G2,t)},X2=Q("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),ey=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTableContainer"}),{className:i,component:s="div",...a}=r,l={...r,component:s},d=K2(l);return c.jsx(X2,{ref:n,as:s,className:pe(d.root,i),ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(ey.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 J2(e){return Se("MuiTableHead",e)}we("MuiTableHead",["root"]);const Q2=e=>{const{classes:t}=e;return Ce({root:["root"]},J2,t)},Z2=Q("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),eI={variant:"head"},ty="thead",ny=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTableHead"}),{className:i,component:s=ty,...a}=r,l={...r,component:s},d=Q2(l);return c.jsx(ts.Provider,{value:eI,children:c.jsx(Z2,{as:s,className:pe(d.root,i),ref:n,role:s===ty?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(ny.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 tI(e){return Se("MuiTableRow",e)}const ry=we("MuiTableRow",["root","selected","hover","head","footer"]),nI=e=>{const{classes:t,selected:n,hover:r,head:i,footer:s}=e;return Ce({root:["root",n&&"selected",r&&"hover",i&&"head",s&&"footer"]},tI,t)},rI=Q("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(be(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${ry.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ry.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}`)}}}))),oy="tr",ns=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTableRow"}),{className:i,component:s=oy,hover:a=!1,selected:l=!1,...d}=r,p=T.useContext(ts),u={...r,component:s,hover:a,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},f=nI(u);return c.jsx(rI,{as:s,ref:n,className:pe(f.root,i),role:s===oy?null:"row",ownerState:u,...d})});process.env.NODE_ENV!=="production"&&(ns.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 oI(e){return Se("MuiTextField",e)}we("MuiTextField",["root"]);const iI={standard:ol,filled:rl,outlined:il},sI=e=>{const{classes:t}=e;return Ce({root:["root"]},oI,t)},aI=Q(Hi,{name:"MuiTextField",slot:"Root"})({}),rs=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:a,className:l,color:d="primary",defaultValue:p,disabled:u=!1,error:f=!1,FormHelperTextProps:y,fullWidth:x=!1,helperText:g,id:h,InputLabelProps:m,inputProps:S,InputProps:C,inputRef:b,label:v,maxRows:w,minRows:A,multiline:k=!1,name:D,onBlur:O,onChange:B,onFocus:L,placeholder:E,required:I=!1,rows:$,select:W=!1,SelectProps:_,slots:z={},slotProps:N={},type:V,value:j,variant:M="outlined",...Y}=r,Z={...r,autoFocus:s,color:d,disabled:u,error:f,fullWidth:x,multiline:k,required:I,select:W,variant:M},J=sI(Z);process.env.NODE_ENV!=="production"&&W&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const q=Ir(h),K=g&&q?`${q}-helper-text`:void 0,H=v&&q?`${q}-label`:void 0,oe=iI[M],ne={slots:z,slotProps:{input:C,inputLabel:m,htmlInput:S,formHelperText:y,select:_,...N}},te={},ie=ne.slotProps.inputLabel;M==="outlined"&&(ie&&typeof ie.shrink<"u"&&(te.notched=ie.shrink),te.label=v),W&&((!_||!_.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const[R,le]=Oe("root",{elementType:aI,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...Y},ownerState:Z,className:pe(J.root,l),ref:n,additionalProps:{disabled:u,error:f,fullWidth:x,required:I,color:d,variant:M}}),[ae,me]=Oe("input",{elementType:oe,externalForwardedProps:ne,additionalProps:te,ownerState:Z}),[Ve,Ie]=Oe("inputLabel",{elementType:ym,externalForwardedProps:ne,ownerState:Z}),[Ne,Ue]=Oe("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:Z}),[je,$e]=Oe("formHelperText",{elementType:mm,externalForwardedProps:ne,ownerState:Z}),[de,He]=Oe("select",{elementType:Cn,externalForwardedProps:ne,ownerState:Z}),De=c.jsx(ae,{"aria-describedby":K,autoComplete:i,autoFocus:s,defaultValue:p,fullWidth:x,multiline:k,name:D,rows:$,maxRows:w,minRows:A,type:V,value:j,id:q,inputRef:b,onBlur:O,onChange:B,onFocus:L,placeholder:E,inputProps:Ue,slots:{input:z.htmlInput?Ne:void 0},...me});return c.jsxs(R,{...le,children:[v!=null&&v!==""&&c.jsx(Ve,{htmlFor:q,id:H,...Ie,children:v}),W?c.jsx(de,{"aria-describedby":K,id:q,labelId:H,value:j,input:De,...He,children:a}):De,g&&c.jsx(je,{id:K,...$e,children:g})]})});process.env.NODE_ENV!=="production"&&(rs.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:Wt,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 _t=Wh({themeId:pi}),lI=dt(c.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function iy(e){return c.jsx(lI,{...e})}const cI=44;function dI({children:e,styles:t,gap:n=8,overflowTooltip:r="More options",OverflowIcon:i=iy}){const s=F.useRef(null),a=F.useRef(null),l=F.useRef([]),d=F.useRef(!1),p=F.useRef(null),[u,f]=F.useState(9999),[y,x]=F.useState(null),g=!!y,h=T.Children.toArray(e).filter(Boolean),m=h.length,S=F.useCallback(()=>{if(!a.current)return!1;const L=Array.from(a.current.children);if(L.length!==m)return!1;const E=L.map(I=>I.getBoundingClientRect().width);return E.some(I=>I===0)?!1:(l.current=E,d.current=!0,!0)},[m]),C=F.useCallback(L=>{const E=l.current;if(!E.length||E.reduce((_,z)=>_+z,0)+Math.max(0,m-1)*n<=L)return m;let $=0,W=0;for(let _=0;_<m;_++){const z=E[_]+(_>0?n:0);if($+z+cI+n<=L)$+=z,W++;else break}return m>0?Math.max(1,W):0},[m,n]),b=F.useCallback(()=>{p.current&&cancelAnimationFrame(p.current),p.current=requestAnimationFrame(()=>{if(!s.current||(d.current||S(),!d.current))return;const L=s.current.getBoundingClientRect().width;f(C(L))})},[S,C]);F.useLayoutEffect(()=>{const L=requestAnimationFrame(()=>{if(S()&&s.current){const $=s.current.getBoundingClientRect().width;f(C($))}}),E=new ResizeObserver(b);return s.current&&E.observe(s.current),()=>{cancelAnimationFrame(L),p.current&&cancelAnimationFrame(p.current),E.disconnect()}},[S,C,b]),F.useEffect(()=>{d.current=!1,l.current=[],b()},[m,b]);const v=L=>T.isValidElement(L)&&L.props?.["data-overflow-divider"],w=Math.min(u,m);let A=h.slice(0,w),k=h.slice(w);for(;A.length>1&&v(A[A.length-1]);)k=[A.pop(),...k];const D=k.length>0,O=A[0]??null,B=A.slice(1);return c.jsxs(c.Fragment,{children:[c.jsx(P,{ref:a,"aria-hidden":"true",sx:{position:"fixed",top:0,left:"-9999px",visibility:"hidden",display:"flex",alignItems:"center",gap:`${n}px`,pointerEvents:"none",zIndex:-1},children:h.map((L,E)=>c.jsx(P,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:L},E))}),c.jsxs(P,{ref:s,sx:{display:"flex",alignItems:"center",overflow:"hidden",minWidth:0,flex:"1 1 auto",justifyContent:"space-between"},children:[O&&c.jsx(P,{sx:{flexShrink:1,flexGrow:1,display:"flex",alignItems:"center",minWidth:0},children:O}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:`${n}px`,flexShrink:0},children:[B.map((L,E)=>c.jsx(P,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:L},E)),D&&c.jsxs(c.Fragment,{children:[c.jsx(Oo,{title:r,sx:{alignSelf:"flex-end"},children:c.jsx(vt,{onClick:L=>x(L.currentTarget),size:"small",sx:{flexShrink:0,border:t?.border?.grey||"1px solid #e0e0e0",borderRadius:"8px",width:32,height:32,mx:0,color:t?.colors?.grey?.black||"#333",backgroundColor:g?t?.colors?.grey?.bg||"#f5f5f5":"transparent","&:hover":{backgroundColor:t?.colors?.grey?.bg||"#f5f5f5"},transition:"background 0.15s ease"},children:c.jsx(i,{fontSize:"small"})})}),c.jsx(Xi,{anchorEl:y,open:g,onClose:()=>x(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},disableAutoFocusItem:!0,PaperProps:{sx:{mt:.5,borderRadius:"10px",minWidth:240,maxWidth:"90vw",boxShadow:"0 4px 20px rgba(0,0,0,0.10)",border:t?.border?.grey||"1px solid #e0e0e0",overflow:"visible"}},children:k.map((L,E)=>{const I=v(L);return[E>0&&!I&&!v(k[E-1])&&c.jsx(Xt,{sx:{my:0,borderColor:t?.colors?.grey?.bg||"#f0f0f0"}},`auto-divider-${E}`),I?c.jsx(Xt,{sx:{my:0,borderColor:t?.colors?.grey?.bg||"#f0f0f0"}},`divider-${E}`):c.jsx(P,{sx:{display:"flex",alignItems:"center",width:"100%",boxSizing:"border-box",px:2,py:1,cursor:"pointer",fontSize:"14px","&:hover":{backgroundColor:t?.colors?.grey?.bg||"#f5f5f5"}},onClick:W=>{W.target===W.currentTarget&&x(null)},children:c.jsx(P,{sx:{width:"100%",minWidth:0,display:"flex",alignItems:"center"},children:L})},`item-${E}`)].filter(Boolean)})})]})]})]})]})}function qd(){return qd=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},qd.apply(this,arguments)}function uI(e,t){if(e==null)return{};var n=pI(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 pI(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 Yd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=uI(e,["color","size"]);return F.createElement("svg",qd({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),F.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),F.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});Yd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Yd.displayName="Bell";function Gd(){return Gd=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},Gd.apply(this,arguments)}function fI(e,t){if(e==null)return{};var n=hI(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 hI(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 fl=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=fI(e,["color","size"]);return F.createElement("svg",Gd({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),F.createElement("polyline",{points:"6 9 12 15 18 9"}))});fl.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},fl.displayName="ChevronDown";function Kd(){return Kd=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},Kd.apply(this,arguments)}function gI(e,t){if(e==null)return{};var n=mI(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 mI(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 Xd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=gI(e,["color","size"]);return F.createElement("svg",Kd({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),F.createElement("circle",{cx:"11",cy:"11",r:"8"}),F.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});Xd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Xd.displayName="Search";function Jd(){return Jd=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},Jd.apply(this,arguments)}function yI(e,t){if(e==null)return{};var n=bI(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 bI(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 Qd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=yI(e,["color","size"]);return F.createElement("svg",Jd({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),F.createElement("circle",{cx:"12",cy:"12",r:"3"}),F.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"}))});Qd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Qd.displayName="Settings";function jn(){const e={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",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},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:{width:379,height:520,maxWidth:379,maxHeight:520,borderRadius:"12px",background:"#FFFFFF",display:"flex",flexDirection:"column",overflow:"hidden"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:328,height:20,pt:"24px",px:"24px",pb:"20px"},headerTitle:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000",margin:0},crossIconCard:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",backgroundColor:"transparent",outline:"none","&:focus":{outline:"none"}},crossIcon:{width:8,height:8,opacity:1,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:8,height:8,stroke:"#454545"}},content:{pt:"8px",px:"24px",overflowY:"hidden",overflowX:"hidden",flex:1,minHeight:0},middleCard:{width:328,minHeight:280,display:"flex",flexDirection:"column",gap:"24px"},section:{width:328,gap:"8px",display:"flex",flexDirection:"column"},itemsToShowSection:{width:328,minHeight:68,gap:"8px",display:"flex",flexDirection:"column"},sectionTitle:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",verticalAlign:"middle",marginBottom:"8px"},checkboxRow:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px 16px",width:328,alignItems:"center"},checkboxCard:{width:160,height:16,gap:"8px",display:"flex",alignItems:"center"},checkboxLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",marginLeft:0,marginRight:0,"& .MuiTypography-root":{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545"},"& .MuiCheckbox-root":{p:0,width:16,height:16,mr:1},"& .MuiSvgIcon-root":{width:16,height:16}},checkboxSx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#2563EB",border:"0.5px solid #2563EB"}},designSection:{width:328,display:"flex",flexDirection:"column",gap:"8px"},designContainer:{display:"flex",flexDirection:"row",flexWrap:"nowrap",gap:2,overflowX:"auto",overflowY:"hidden",pb:1,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-track":{bgcolor:"#f0f0f0",borderRadius:1},"&::-webkit-scrollbar-thumb":{bgcolor:"#c0c0c0",borderRadius:1}},designCard:{base:{width:120,minWidth:120,height:92,borderRadius:"6px",border:"2px solid",borderColor:"#E0E0E0",p:1.5,cursor:"pointer",flexShrink:0,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)",overflow:"hidden",minHeight:0},selected:{borderColor:"#2D64B8",border:"2px solid #2D64B8",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0",border:"2px solid #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,minHeight:0,overflow:"hidden"},offerLine:{fontFamily:"Inter, sans-serif",fontSize:"10px",fontWeight:700,color:"#000000",lineHeight:1.2,textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},mrpBlock:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right",mb:.5,width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},productName:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3,overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},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"}},sheetSizeSection:{width:328,minHeight:56,gap:"8px",display:"flex",flexDirection:"column"},sheetSizeHeader:{width:328,height:20,fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",verticalAlign:"middle"},sheetSizeRow:{width:328,minHeight:28,gap:"4px",display:"flex",alignItems:"center",flexWrap:"wrap"},sheetSizeGroup:{display:"flex",gap:"4px",alignItems:"center"},sheetSizeBtn:{width:36,height:28,borderRadius:"6px",padding:"6px 10px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s",bgcolor:"#F5F5F5",border:"none","&:hover":{bgcolor:"#EEEEEE"}},sheetSizeBtnText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",color:"#454545"},sheetSizeBtnTextSelected:{color:"#000000"},sheetSizeBtnSelected:{bgcolor:"#F3F8FF",border:"0.5px solid #2D64B8","&:hover":{bgcolor:"#E8F0FE"}},copyPerItemRow:{display:"flex",alignItems:"center",gap:"8px",mt:.5},copyPerItemLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",color:"#454545"},actions:{px:"24px",pt:"2px",pb:"10px",display:"flex",flexDirection:"column",alignItems:"center"},printButtonWrapper:{height:40,borderRadius:"8px",padding:"0px 6px",display:"flex",alignItems:"center",justifyContent:"center"},printButton:{width:"100%",height:"100%",minHeight:40,borderRadius:"8px",padding:"12px 16px",bgcolor:"#2D64B8",color:"#FFFFFF",fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center","&:hover":{bgcolor:"#2557A3"}}},createCatalog:{dialog:{width:600,height:384,maxWidth:600,maxHeight:384,borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pt:"24px",px:"24px",pb:"20px"},headerTitle:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000"},clearIconCard:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",backgroundColor:"transparent",outline:"none","&:focus":{outline:"none"}},content:{pt:"20px",px:"24px",pb:"24px",overflowY:"auto",overflowX:"hidden",flex:1,minHeight:0,display:"flex",flexDirection:"column",gap:"24px"},fieldBlock:{width:"100%",maxWidth:552,display:"flex",flexDirection:"column",gap:"4px"},fieldLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},input:{width:"100%",height:40,borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",outline:"none",boxSizing:"border-box"},inputReadOnly:{background:"#FFFFFF",color:"#454545"},storeDropdown:{width:"100%",height:40,borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",display:"flex",alignItems:"center",cursor:"pointer",userSelect:"none",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",boxSizing:"border-box",bgcolor:"#FFFFFF"},createButton:{width:160,height:40,borderRadius:"8px",padding:"12px 16px",minWidth:160,bgcolor:"#2D64B8",color:"#FFFFFF",fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",boxShadow:"none","&:hover":{bgcolor:"#2557A3"}}},emptyProduct:{wrapper:{position:"relative",mx:"auto",my:2,width:"100%",maxWidth:1200,px:{xs:2,sm:4,md:6},pt:"72px",boxSizing:"border-box",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:{xs:320,sm:380,md:440},bgcolor:"#fff",mx:{xs:0,sm:4,md:8},py:{xs:6,md:8},px:{xs:3,md:6},borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},inboxIcon:{width:190,height:170,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},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"}}},t={root:{width:"100%",maxWidth:"100%",marginLeft:0,marginRight:0,display:"flex",flexDirection:"column",alignItems:"stretch",py:{xs:2,sm:3,md:4},px:{xs:0,sm:0,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:"100%",maxWidth:"100%",minHeight:448,display:"flex",flexDirection:"column",boxShadow:"none",borderRadius:0,bgcolor:"transparent",overflow:"visible",marginLeft:0,marginRight:0,gap:"4px",opacity:1,background:"#f7f8fa",p:0,mb:3,boxSizing:"border-box"},categoryTableContainer:{width:"100%",px:0},categoryTableShared:{checkboxHeaderSx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"}},checkboxRowSx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#2563EB",border:"0.5px solid #2563EB"}},checkboxIconSpanHeader:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:"#FFFFFF"},checkboxCheckedIconSpan:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #1976d2",background:"#FFFFFF",position:"relative"},checkboxCheckedIconInner:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:8,height:2,background:"#1976d2",borderRadius:2},checkboxIconSpanRow:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:"#FFFFFF"},checkboxRowCheckedIconSpan:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2563EB",background:"#FFFFFF",position:"relative"},avatar:{width:56,height:56,borderRadius:"8px"},avatarPlaceholder:{width:56,height:56,borderRadius:"8px",bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:20},popoverPaper:{p:2,minWidth:220},popoverTitle:{fontWeight:700,mb:1},popoverItem:{fontSize:14,color:"#222",mb:.5},mrpText:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},discountText:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},errorIcon:{color:"#d32f2f",fontSize:16,mr:.5},moreOffersLink:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},paginationIcon:{width:16,height:16,opacity:1}},categoryTableHeader:{width:"100%",minHeight:28,height:"auto",display:"flex",alignItems:"center",gap:"16px",padding:"8px 16px 4px 16px",opacity:1,background:"#F8F8F8",boxSizing:"border-box",flexWrap:"wrap"},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:{flex:"2 1 0",minWidth:0,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center",gap:"4px"},categoryTableHeaderArrow:{fontSize:16,height:12,color:"#454545",marginLeft:"8px",marginTop:"2px"},categoryTableHeaderStockCell:{flex:"1 1 0",minWidth:0,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080","@media (max-width: 477px)":{minWidth:80}},categoryTableHeaderProductsCell:{flex:"1.5 1 0",minWidth:0,height:16,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:(...n)=>({width:"100%",minHeight:"auto",display:"flex",alignItems:"center",gap:"16px",padding:"8px 16px",opacity:1,border:"1px solid #F1F1F1",borderRadius:"8px",background:"#FFFFFF",boxSizing:"border-box",flexWrap:"wrap"}),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:{flex:"2 1 0",minWidth:0,minHeight:72,height:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",gap:"4px",opacity:1},categoryName:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",opacity:1},categoryProducts:{height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"18px",letterSpacing:0,color:"#454545",opacity:1},categoryUpdated:{width:"100%",height:12,fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1},categoryStockCell:{flex:"1 1 0",minWidth:0,height:32,display:"flex",flexDirection:"column",gap:"4px",opacity:1,"@media (max-width: 477px)":{minWidth:80}},categoryStock:n=>({width:67,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",opacity:1}),categoryOSA:(...n)=>({width:"100%",height:12,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1}),categoryImagesCell:{flex:"1.5 1 0",minWidth:0,height:"auto",display:"flex",gap:"4px",opacity:1,flexWrap:"wrap"},categoryImage:{width:56,height:56,flex:"0 0 56px",borderRadius:"8px",border:"1px solid #F1F1F1",objectFit:"cover",background:"#f5f5f5",opacity:1},categoryMoreImageBox:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"#f0f0f0",cursor:"pointer"},categoryMoreImageText:{fontFamily:"Inter, sans-serif",fontSize:12,fontWeight:500,color:"#454545"},categoryViewCell:{width:"auto",height:56,flex:"0 0 auto",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:"100%",maxWidth:"100%",minHeight:480,gap:"4px",opacity:1},categoryNameBox:{width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",height:28,gap:"32px",padding:"8px 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:"100%",height:28,gap:"16px",padding:"8px 16px 4px 16px",opacity:1},headerProduct:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerStatusOsa:{gap:"40px",minWidth:0,flex:"0 1 auto"},headerStatusText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerOsaText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},arrowDown:{width:12,height:12,color:"#454545"},arrowDownAllStore:{fontSize:12,height:12,color:"#808080",marginLeft:"8px",marginTop:"8px"},rowCard:{width:"100%",maxWidth:"100%",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:{height:56,gap:"16px",minWidth:0,flex:"1 1 0"},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:{height:32,gap:"40px",minWidth:0,flex:"0 1 auto"},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:"100%",maxWidth:"100%",minHeight:520,gap:"6px",opacity:1},tableHeader:{width:"100%",maxWidth:"100%",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:{minWidth:0,flex:"1 1 0"},headerStatus:{minWidth:0,flex:"0 1 auto"},headerPrice:{minWidth:0,flex:"0 1 auto"},headerStock:{minWidth:0,flex:"0 1 auto"},headerOffer:{minWidth:0,flex:"0 1 auto"},stockOfferGap:"12px",checkboxBlue:{border:"0.5px solid #2D64B8",bgcolor:"#F3F8FF",color:"#2D64B8"},rowCard:{width:"100%",maxWidth:"100%",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"},clockIconSx:{fontSize:14,color:"#808080"},stockBlock:{height:32,gap:"4px",minWidth:0,flex:"0 1 auto"},offerBlock:{height:36,gap:"4px",minWidth:0,flex:"0 1 auto"},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",flexWrap:"nowrap",opacity:1,marginLeft:"auto",marginRight:"auto",mt:2,"@media (max-width:400px)":{width:"100%",justifyContent:"space-between",gap:"8px"}},resultsPerPageBox:{width:128,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1,flex:"0 0 auto","@media (max-width:400px)":{width:"auto",minWidth:0}},resultsPerPageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap","@media (max-width:400px)":{fontSize:"11px"}},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"},"@media (max-width:400px)":{minWidth:28}},navBox:{width:200,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1,flex:"0 1 auto",minWidth:0,"@media (max-width:400px)":{width:"auto",gap:"8px"}},iconButton:{p:0,width:16,height:16,color:"#454545","&.Mui-disabled":{color:"#c0c0c0"}},paginationIcon:{width:16,height:16,opacity:1},pageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap","@media (max-width:400px)":{fontSize:"11px"}}},contentWrapper:{position:"relative",zIndex:0,width:"100%",boxSizing:"border-box"},loadingBox:{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},categoryImageDialogTitleRow:{display:"flex",alignItems:"center",justifyContent:"space-between"},categoryImageDialogTitleText:{fontFamily:"Inter, sans-serif",fontSize:16,fontWeight:500},categoryImageDialogCloseButton:{textTransform:"none",fontSize:14},categoryImageDialogContent:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",pb:3},categoryImageDialogImageBox:{maxWidth:"100%",maxHeight:"70vh",display:"flex",alignItems:"center",justifyContent:"center"},categoryImageDialogImage:{maxWidth:"100%",maxHeight:"70vh",borderRadius:2,objectFit:"contain"},categoryImageDialogFallbackText:{fontFamily:"Inter, sans-serif",fontSize:14,color:"#808080",textAlign:"center"},categoryImageDialogFooterRow:{mt:2,display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},categoryImageDialogNavButton:{textTransform:"none"},categoryImageDialogCounterText:{fontFamily:"Inter, sans-serif",fontSize:12,color:"#808080"}};return e.categoryDetail=t,e}const sy=0,ay=1e4;function xI({open:e,filters:t={},onChange:n,onClose:r,onApply:i,priceRange:s}){const a=F.useMemo(()=>{const A=s?.min??t.minPrice??sy,k=s?.max??t.maxPrice??ay;return{min:Number(A)||sy,max:Math.max(Number(k)||ay,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.sortBy==="price"||t.sortBy==="productName"||t.sortBy==="stock"?t.sortBy:"price",u=t.sortOrder==="asc"||t.sortOrder==="desc"?t.sortOrder:"",f=t.minPrice!=null&&Number.isFinite(Number(t.minPrice))?Number(t.minPrice):null,y=t.maxPrice!=null&&Number.isFinite(Number(t.maxPrice))?Number(t.maxPrice):null,x=f??a.min,g=y??a.max,h=(A,k)=>{n({...t,status:k===l?void 0:k||void 0})},m=(A,k)=>{n({...t,stock:k===d?void 0:k||void 0})},S=A=>{const k=A.target.value;k!=="price"&&k!=="productName"&&k!=="stock"||n({...t,sortBy:k})},C=(A,k)=>{const D=k===u?void 0:k;if(!D){n({...t,sortOrder:void 0});return}n({...t,sortBy:p,sortOrder:D})},b=(A,k)=>{if(!Array.isArray(k)||k.length!==2)return;const D=Number(k[0]),O=Number(k[1]),B=Math.min(D,O),L=Math.max(D,O);n({...t,minPrice:B,maxPrice:L})},v=!!(t.status==="active"||t.status==="inactive"||t.stock==="inStock"||t.stock==="outOfStock"||t.sortBy&&t.sortOrder||t.minPrice!=null||t.maxPrice!=null),w=()=>{const A={...t,status:void 0,stock:void 0,sortBy:void 0,sortOrder:void 0,minPrice:void 0,maxPrice:void 0};n(A),typeof i=="function"&&i(A)};return c.jsxs(wo,{open:e,onClose:r,maxWidth:"xs",fullWidth:!0,children:[c.jsx(Co,{children:"Filter Products"}),c.jsx(Ui,{children:c.jsxs(P,{display:"flex",flexDirection:"column",gap:2,pt:.5,children:[c.jsxs(Hi,{component:"fieldset",children:[c.jsx(Eo,{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(Qi,{row:!0,value:l,onChange:h,name:"status",children:[c.jsx(fn,{value:"active",control:c.jsx(mr,{size:"small"}),label:"Active"}),c.jsx(fn,{value:"inactive",control:c.jsx(mr,{size:"small"}),label:"Inactive"})]})]}),c.jsxs(Hi,{component:"fieldset",children:[c.jsx(Eo,{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(Qi,{row:!0,value:d,onChange:m,name:"stock",children:[c.jsx(fn,{value:"inStock",control:c.jsx(mr,{size:"small"}),label:"In Stock"}),c.jsx(fn,{value:"outOfStock",control:c.jsx(mr,{size:"small"}),label:"Out of Stock"})]})]}),c.jsx(Hi,{component:"fieldset",children:c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:1},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1.5,width:"100%",justifyContent:"space-between"},children:[c.jsx(Eo,{sx:{fontWeight:600,color:"text.primary",mb:0,display:"block",whiteSpace:"nowrap",flexShrink:0,cursor:"pointer"},onClick:()=>n({...t,sortBy:void 0,sortOrder:void 0}),children:"Sort"}),c.jsxs(Cn,{value:p,onChange:S,size:"small",variant:"standard",disableUnderline:!0,sx:{width:"140px",maxWidth:"100%"},MenuProps:{PaperProps:{sx:{width:"140px"}}},children:[c.jsx(Et,{value:"price",children:"Price"}),c.jsx(Et,{value:"productName",children:"ProductName"}),c.jsx(Et,{value:"stock",children:"Stock"})]})]}),c.jsxs(Qi,{row:!0,value:u,onChange:C,name:"sortOrder",sx:{mt:.5},children:[c.jsx(fn,{value:"asc",control:c.jsx(mr,{size:"small"}),label:"Ascending"}),c.jsx(fn,{value:"desc",control:c.jsx(mr,{size:"small"}),label:"Descending"})]})]})}),c.jsxs(P,{children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1.5,mb:1.5},children:[c.jsx(Eo,{sx:{fontWeight:600,color:"text.primary",mb:0,whiteSpace:"nowrap"},children:"Price"}),c.jsxs(U,{variant:"body2",color:"text.secondary",sx:{mb:0},children:["Min: ₹",x," — Max: ₹",g]})]}),c.jsx(P,{sx:{px:.5},children:c.jsx(qm,{value:[x,g],onChange:b,min:a.min,max:a.max,valueLabelDisplay:"on",valueLabelFormat:A=>`₹${A}`,size:"small",disableSwap:!1,sx:{mt:2}})})]})]})}),c.jsxs(Id,{sx:{gap:.5,flexWrap:"wrap"},children:[c.jsx(tt,{onClick:r,children:"Cancel"}),v&&c.jsx(tt,{variant:"contained",onClick:w,children:"Clear Filters"}),c.jsx(tt,{variant:"contained",onClick:()=>i&&i(),children:"Apply"})]})]})}const vI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAM5JREFUeAHVUUEOgjAQXGtJOPIADhw96g8wAcLRL/AS8Af6A3/AAyCBn+gTuLdN3RpqSG2TJlxkkmbb2elutwOwGaRpGhVF0Zo8tYmzLGuWZ875LQzDSAhxNLXE1snkxnGcwAHqEDfgCWrpbnvBy6tAEAQXDLUpwsInWIuyLJM8z58mT2AldnqD1rWEkB+bpJQTY+w82zioPY5ad11Xqfz3D9BrRUS2LsoZHOGTw8sDhqvO0aUIg9PvGQmuO3Z/aGIPnojjGHDEQ9/3FfwV3mNqQTvMf4BBAAAAAElFTkSuQmCC";function SI(e){const{sx:t,style:n,...r}=e||{},i=t&&typeof t=="object"?t:{},s={display:"block",...n||{},...typeof i.width<"u"?{width:i.width}:{},...typeof i.height<"u"?{height:i.height}:{},...typeof i.opacity<"u"?{opacity:i.opacity}:{}};return c.jsx("img",{src:vI,alt:"Sort",style:s,...r})}const wI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPdJREFUeAGlUtENgjAQbUkHYAQdwREkwBriBjKBOIFsIK4BfLiBI+AG8MkP1HeEmoa0JcRLmsdx7+7d9cqZw8IwvHDO78qXUqZ1Xec6x2Nu85F0q6qKE5K/JKwVYOjgGkWRJITbLeNirQApo+3MKqA7UGoAO+bu6FOW5d5KoHa3xKwjxHF8Gscxh2KHk0H1aeIJWhUz3C5mz4QQB/oehuENmAqAn2m0btrCfMMqMZ3R7/ue0aEu9Ngyxzgb/iUYowG2QRAkhrh03gEeTwEo2IoJkzLgYeGf58I/8yzKTD1f9ZT1mLPAVvu7wNQadttiLf7G3BdGOn4B2S1yLsw0kyQAAAAASUVORK5CYII=";function Zd({sx:e={},...t}){const n=e?.width??14,r=e?.height??14;return c.jsx(P,{component:"img",src:wI,alt:"",role:"presentation",sx:{width:n,height:r,display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const CI=dt(c.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");function os(e){return c.jsx(CI,{...e})}const EI=dt(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 is(e){return c.jsx(EI,{...e})}function TI(e){return c.jsx(Qd,{...e})}const AI={minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"};function ly(e){const{sx:t={},...n}=e;return c.jsx(P,{component:"button",sx:{...AI,...t},title:"Notifications","aria-label":"Notifications",...n,children:c.jsx(Yd,{size:20})})}const PI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACJSURBVHgBlVBBDYAwDGxQgAQkTMIk4AALczAk4AAcgBMkTAISSge3x0iXjUsuS9q79joiBcwchEbrdYp4kCeyzSCweCeqIU5HnJ1fTCVhL/TCS3iiNsO0ZvdgYsLxGeQ4h4lFi0aK4SE22BjQH7VoaaKDcItxqXL4AlOgFuCnni3UChjsH0NRfAPyobTjv0sWNAAAAABJRU5ErkJggg==",kI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABGSURBVHgBXYtBDQAgDAMrBSlIQAIScIYEJCABCUgYbdhj2SXNku4KOGa2mYYIi2qfiWSK5fcyXY8m08vDDKbEpcyBjObRfCpVS/aG0GXFAAAAAElFTkSuQmCC";function cy(e){const{sx:t={},...n}=e;return c.jsx(P,{sx:{flexShrink:0,...t},...n,children:c.jsx(P,{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(P,{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(P,{sx:{position:"relative",width:20,height:20,opacity:1,flexShrink:0},children:[c.jsx(P,{component:"img",src:PI,alt:"",sx:{position:"absolute",width:10,height:10,top:"3.33px",left:"3.34px",opacity:1,objectFit:"contain",display:"block"}}),c.jsx(P,{component:"img",src:kI,alt:"",sx:{position:"absolute",width:4.166666507720947,height:4.166666507720947,top:"12.5px",left:"12.5px",opacity:1,objectFit:"contain",display:"block"}})]})})})})}const OI=({filters:e,onFilterChange:t,stores:n=[],onOpenFilterModal:r,StoresModal:i,storesModalProps:s,onStoreSelect:a,showBackButton:l=!1,backTo:d="/",backState:p,tenantStatus:u={matched:!0},priceRange:f,styles:y,hasProducts:x,onSortToggle:g,sortIconRotationDeg:h=0})=>{const m=Bt(),S=jn(),[C,b]=F.useState(null),v=!!C,[w,A]=F.useState(!1),[k,D]=F.useState(!1),[O,B]=F.useState(e||{}),[L,E]=F.useState(e?.search??""),I=Array.isArray(e?.store)?e.store:[],$=()=>{b(null)},[W,_]=F.useState(I),z=q=>{_(q==="all"?["all"]:[q])},N=q=>{i?A(!0):(_(I.length===0?["all"]:I),b(q.currentTarget))},V=()=>{t({...e,store:W}),b(null)},j=q=>{a?a(q):t({...e,store:q}),A(!1)},M=()=>{A(!1)};F.useEffect(()=>{E(e?.search??"")},[e?.search]);const Y=q=>{if(q.key==="Enter"){q.preventDefault();const K=(L??"").trim();t({...e,search:K})}},Z=S,J=y!=null&&y.root!==void 0?y:(y!=null&&y.topBar!=null?y.topBar:Z.topBar)||{};return c.jsxs(c.Fragment,{children:[c.jsx(pn,{maxWidth:!1,disableGutters:!0,sx:S.categoryTableContainer,children:c.jsx(P,{sx:{...J.root,position:"relative",width:"100%",height:72,minHeight:72,maxHeight:72,display:"flex",alignItems:"center",paddingTop:0,paddingBottom:0,gap:"16px",boxSizing:"border-box",overflow:"visible"},children:c.jsx(pn,{maxWidth:!1,disableGutters:!0,sx:{width:"100%",display:"flex",justifyContent:"flex-start",boxSizing:"border-box",px:{xs:1,sm:2,md:4}},children:c.jsx(P,{sx:{...J.inner,width:"100%",minWidth:0,height:32,minHeight:32,maxHeight:32,maxWidth:"100%",boxSizing:"border-box",gap:"16px",display:"flex",flexDirection:"row",alignItems:"center",overflow:"hidden",flexShrink:0,flexWrap:"nowrap"},children:c.jsxs(dI,{styles:y,gap:12,OverflowIcon:iy,overflowTooltip:"Menu",children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",flex:1,minWidth:0},children:[l&&c.jsxs(c.Fragment,{children:[c.jsxs(P,{component:"button",onClick:()=>m(d,p?{state:p}:void 0),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(os,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),c.jsx(U,{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:"clamp(6px, 2vw, 16px)",height:24,alignSelf:"center",borderColor:"#e0e0e0"}})]}),c.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:1,maxWidth:"min(480px, 100%)"},children:c.jsxs(P,{sx:{...J.searchBox,display:"flex",flexDirection:"row",alignItems:"center",width:"100%",maxWidth:"min(414px, 100%)",height:20,gap:"clamp(6px, 2vw, 12px)",borderRadius:2,border:"none",backgroundColor:"#fff",px:1.5,py:0,boxSizing:"border-box"},children:[c.jsx(Xd,{size:16,style:{position:"absolute",left:12,color:"#000000",top:"50%",transform:"translateY(-50%)"}}),c.jsx(Li,{placeholder:l?"Search Products":"Search Products & Categories",value:L,onChange:q=>E(q.target.value),onKeyDown:Y,sx:{...J.searchInput||{},pl:3.5,width:"100%","& .MuiInputBase-input":{py:1.25,boxSizing:"border-box",fontSize:"clamp(12px, 1.6vw, 14px)"},"&::placeholder":{color:"#a0a0a0",opacity:1}}})]})})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,"data-overflow-divider":!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:"clamp(4px, 1.2vw, 10px)"}}),c.jsxs(P,{sx:{display:"flex",gap:0,alignItems:"center"},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",flex:"0 1 216px",maxWidth: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:N,tabIndex:0,"aria-label":"Select stores",children:[c.jsx(Zd,{size:12,style:{color:"#555",marginRight:4}}),c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",minWidth:56,height:16,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:I.length===0||I.includes("all")?"All Stores":I.length===1?"1 Store":`${I.length} Stores`}),c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",width:61,height:16,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:` ${n.filter(q=>q.id!=="all"&&q.storeCode!=="all").length} stores`}),c.jsx(fl,{size:16,style:{width:16,height:16,opacity:1,flexShrink:0,color:"#454545"}})]}),c.jsxs(Xi,{anchorEl:C,open:v,onClose:$,disableScrollLock:!0,PaperProps:{style:{minWidth:180}},children:[c.jsxs(Et,{onClick:()=>z("all"),children:[c.jsx(Ct,{checked:W.length===0||W.includes("all")}),c.jsx(Bd,{primary:"All Stores"})]}),c.jsx(Xt,{}),c.jsx(P,{sx:{maxHeight:104,overflowY:"auto"},children:n.filter(q=>q.id!=="all").map(q=>c.jsxs(Et,{onClick:()=>z(q.id),children:[c.jsx(Ct,{checked:W.includes(q.id)}),c.jsx(Bd,{primary:q.name})]},q.id))}),c.jsx(Xt,{}),c.jsx(P,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:c.jsx(tt,{variant:"contained",size:"small",onClick:V,children:"Apply"})})]})]}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",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():(B(e||{}),D(!0))},children:[c.jsx(U,{sx:{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:"Filters"}),c.jsx(fl,{size:16,style:{width:16,height:16,opacity:1,color:"#454545",flexShrink:0}})]}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",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:()=>{u?.loading||g&&g()},children:[c.jsx(U,{sx:{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:"Sort"}),c.jsx(SI,{sx:{width:16,height:16,opacity:1,color:"#454545"},style:{transform:`rotate(${h}deg)`,transformOrigin:"50% 50%"}})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,"data-overflow-divider":!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:"clamp(4px, 1.2vw, 10px)"}}),c.jsx(P,{component:"button",sx:J.iconOnly,title:"Refresh",children:c.jsx(is,{sx:{width:20,height:20,opacity:1}})}),c.jsx(P,{component:"button",sx:{...J.iconOnly,cursor:u.loading?"not-allowed":"pointer",opacity:u.loading?.5:1,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:u.loading?"none":"auto"},title:u.loading?"Loading...":"Settings",tabIndex:-1,onClick:()=>{u.loading||m("/product-setting",{state:{tenantIntegrationMatched:!!u.matched}})},children:c.jsx(TI,{size:18.33,color:"#454545"})}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,"data-overflow-divider":!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:"clamp(4px, 1.2vw, 10px)"}}),c.jsx(ly,{}),c.jsx(cy,{})]})})})})}),i&&(()=>{const{open:q,onClose:K,onStoreSelect:H,...oe}=s||{};return c.jsx(i,{open:w,onClose:M,onStoreSelect:j,selectedStores:I,...oe})})(),!r&&c.jsx(xI,{open:k,filters:O,onChange:B,onClose:()=>D(!1),onApply:q=>{t&&t(q!==void 0?q:O),D(!1)},priceRange:f})]})};const II=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),NI=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),dy=e=>{const t=NI(e);return t.charAt(0).toUpperCase()+t.slice(1)},uy=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),FI=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var MI={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 DI=F.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...l},d)=>F.createElement("svg",{ref:d,...MI,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:uy("lucide",i),...!s&&!FI(l)&&{"aria-hidden":"true"},...l},[...a.map(([p,u])=>F.createElement(p,u)),...Array.isArray(s)?s:[s]]));const Ur=(e,t)=>{const n=F.forwardRef(({className:r,...i},s)=>F.createElement(DI,{ref:s,iconNode:t,className:uy(`lucide-${II(dy(e))}`,`lucide-${e}`,r),...i}));return n.displayName=dy(e),n};const _I=Ur("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 zI=Ur("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const py=Ur("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const $I=Ur("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const BI=Ur("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 LI=Ur("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 jI=Ur("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),WI="(max-width:480px)",VI="(max-width:370px)",UI=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:n})=>{const r=It(),i=Bt(),s=r.pathname||"",a=_t(WI),l=_t(VI),d=t||(()=>i(-1)),p=()=>{const y=s.replace(/\/+$/,"");return y==="/product-setting"?[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"}]:y==="/products/settings/ftp-sync"?[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}]:y==="/catalogs/manage-shared"?[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs",to:"/catalogs/manage-shared"}]:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"}]},u=n&&Array.isArray(n)&&n.length>0?n:p(),f=(y=12)=>{if(!u||!Array.isArray(u)||u.length===0)return null;const x=l?"0 1px":a?"0 2px":"0 4px",g=l?"1px":a?"2px":"4px";return c.jsx(P,{sx:{display:"flex",alignItems:"center",gap:g,minWidth:0,flex:1,overflow:"hidden"},children:u.map((h,m)=>c.jsxs(F.Fragment,{children:[m>0&&c.jsx(py,{size:y,color:"#808080",style:{margin:x,flexShrink:0}}),c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:m===u.length-1?700:400,fontSize:m===u.length-1?a?l?"12px":"13px":"16px":a?l?"10px":"11px":"12px",lineHeight:m===u.length-1?"18px":"16px",letterSpacing:0,color:m===u.length-1?"#000000":"#808080",verticalAlign:"middle",...m===u.length-1?{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{flexShrink:0}},children:h.label})]},h.label))})};return c.jsx(P,{sx:{position:"sticky",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(P,{sx:{width:"100%",maxWidth:1200,minWidth:0,height:32,paddingRight:"20px",paddingLeft:"20px",gap:"16px",opacity:1,boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:"center","@media (max-width: 480px)":{paddingRight:"8px",paddingLeft:"8px",gap:"6px"},"@media (max-width: 370px)":{paddingRight:"4px",paddingLeft:"4px",gap:"3px"}},children:[c.jsxs(P,{sx:{flex:1,minWidth:0,height:32,gap:"16px",opacity:1,display:"flex",alignItems:"center",flexShrink:0,overflow:"hidden","@media (max-width: 480px)":{gap:"6px",flexShrink:1},"@media (max-width: 370px)":{gap:"3px"}},children:[c.jsxs(P,{onClick:d,sx:{width:"auto",minWidth:l?32:40,maxWidth:48,height:16,gap:l?"1px":a?"2px":"4px",opacity:1,display:"flex",alignItems:"center",cursor:"pointer",flexShrink:0,background:"none",border:"none",padding:0,"&:hover":{opacity:.85}},children:[c.jsx(os,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),c.jsx(U,{component:"span",sx:{width:"auto",height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:l?"10px":a?"11px":"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center",flexShrink:0},children:"Back"})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{mx:0,height:24,alignSelf:"center",borderColor:"#e0e0e0"}}),c.jsx(P,{sx:{flex:1,minWidth:0,height:20,paddingLeft:l?"2px":"8px",gap:"4px",opacity:1,display:"flex",alignItems:"center"},children:u&&u.length>0?f(l?9:12):c.jsxs(c.Fragment,{children:[c.jsx(U,{sx:{width:"auto",height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:l?"10px":a?"11px":"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",verticalAlign:"middle",flexShrink:0},children:"Products"}),c.jsx(py,{size:l?9:a?10:12,color:"#808080",style:{margin:l?"0 1px":a?"0 2px":"0 4px",flexShrink:0}}),c.jsx(U,{sx:{flex:1,minWidth:0,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:l?"12px":a?"13px":"16px",lineHeight:a?"18px":"20px",letterSpacing:0,color:"#000000",verticalAlign:"middle",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e})]})})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",flexShrink:0,marginRight:a?0:"-8px"}}),c.jsxs(P,{sx:{marginLeft:"auto",display:"flex",alignItems:"center",gap:l?"4px":a?"8px":"16px",flexShrink:0},children:[c.jsx(ly,{}),c.jsx(cy,{})]})]})})},fy=F.createContext(null);function ss(){return F.useContext(fy)}function HI(){const t=It().pathname||"",[n,r]=F.useState({}),[i,s]=F.useState({}),a=t.startsWith("/product-setting")||t.startsWith("/products/settings")||t.startsWith("/catalogs/manage-shared"),l=F.useMemo(()=>({setTopbarProps:r,setSettingTopbarProps:s}),[]);return c.jsx(fy.Provider,{value:l,children:c.jsxs(P,{sx:{display:"flex",flexDirection:"column",width:"100%",minHeight:"100vh",boxSizing:"border-box"},children:[c.jsx(P,{sx:{position:"sticky",top:0,zIndex:1100,flexShrink:0,width:"100%"},children:a?c.jsx(UI,{onBack:i.onBack,breadcrumbs:i.breadcrumbs}):n.hide?null:(()=>{const{hide:d,...p}=n;return c.jsx(OI,{...p})})()}),c.jsx(P,{component:"main",sx:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"100%",minWidth:0},children:c.jsx(Tb,{})})]})})}function Io({text:e="Fetching",fullScreen:t=!0,textVisible:n=!0}){const r=jn(),i=t?{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 64px)"}:r?.loadingBox||{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"};return c.jsx(P,{sx:{...i,animation:"fade-in 1s ease-in-out","@keyframes fade-in":{from:{opacity:0},to:{opacity:1}}},children:c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:2,bgcolor:"#f5f7fa"},children:[c.jsx(Ii,{size:24}),n&&c.jsxs(U,{sx:{animation:"fade-in 1s ease-in-out","@keyframes fade-in":{from:{opacity:0},to:{opacity:1}}},children:[e," ..."]})]})})}const RI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACgCAYAAABJ/yOpAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAC2pJREFUeAHt3VtsHFcZB/Bvdr3rK6lTOU7pLbRQkcTmlqYtRKliEAGkSG2eEnjgIp6QKt6AVwpvSEg8IKQKIbU8oRQJNUFFEFdKiNKg0ARwIYkDwm2aNE0TK7XcxLHXuzudb2ZOvN3sfjs7tz1n5v+TLFtK4uza5z/nO5c5Y9kOAoCWCgQAbSEgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIgQEAABAgIgAABARAgIAACBARAgIAACBAQAAECAiBAQAAECAiAAAEBECAgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIgQEAABAgIgAABARAgIJo4NWfTc6/YdKtCoBEERBOn5ojm3iV6Z4FAIwgIgAABCWF5lejMJdLe5ffQI0WFgIRweMam3/7VpkOnbdLVezeJnpu26RcvY1wTBQISwvaPWzRQJjo+SzT9b/1CosLBPd3OzRYNlglCQkBCuHc90f7PW+7X0687QTmvT0hUOPgzv86nHiWIAAEJaeIBbnxeSA6d8maheo17DC79OBzrh4m+t9siiAYBiWDnZqLdn/Ia4R+d8QgPinvp4CnvNahwDJQIIuqjnLGdami1TlR3PuIojHZuIVpcJjr5P+/q/Z0pi0aHqWt1/8WsVIlurXb++wUnl+UikeV3EtOv23R6bi0c60O8BrhTrgKyWiOq1LyQxOmrn7Fo4aZN5y8TPX/Epm9xSIa6+ha3XxMHt1bv/Pedt+G+n37nN3j0jO1MFpDbY3x7F8IRp9yUWNWad3W2ExpPP/2YRRtHiRaWiF484c0gpeHYOS8c7Kntljswh/jkJiDccySJr977d3g9xxVnce7AieRnts5ftukvM97Xuz9t0faHCWKWi4BwyVJPYSaWw6HKqwvXnEHza8n9p9xTHXzN+3rXVou+NEmQgFwExE5xmYLDsW+HN4M0c8HrTYLodsaJw8dl3BOPWE5AnPcYYNwC3bNs29Z3v0RMePyxXKVUcTBmLtjuAD6Jvz/rTAi8u0BuOBgHrA+T9rHLRUC4vFrK+H6k4fLalC/EJxfXHF4zKGb4nXLPgXAkIzed8kCfF5Ss4ffUn7vl3vTkosRS+J3ydO9qwlO+aSla3tgDvUdyUg8I/28125t67VUy+TXwuMTkS0MxI2UVv4Wipe/7STUg3Ch5arKemz4LguJSsVT0PnSSWvXKMeRNeKYXdEsrdXpr3swpsbF1fTT2ET0HLHzRXPGn4nUKSWo/rSyE4+DJBXrp72bf5L338VF6+olR0lWlqtesXCoBqdfNL6vmF6u3wzHxwACZ6MzFZfc9fPL+Adp8n57vgZtJta5PL5JOQDIw5jj8r0X389TkCD3ztTEy0fNHrtOfTi/S7KVlbQPCdGov2JwQ0D/nltzPUxMjZKrHP+HdpPLq7A2CYFIJiOkLdDwon3+/ShucQa6p5RXj1z40UHDLxdm3l0lXRY3aSzoBKZi91eP4We+KO/GgueFQVA/IZZaOdNsWlNpL4e0Qpi5sZaG8UnQvs0pFvdpJatO8fGUYLJm3UBikvErqXvewLH/RrdxiJqi5zNJlsG75h1DotlCYamfGIRkqe/uH+AfB891xf8TdPU/7s1ftyivbTvZe9zDcPWdVb0tPKzqVWRwMLsHVCS08xRv2I4nfQU+WVVVjTkqcmxJVI2pXXlU03vjIN4oVW/yGuczi6d7pmUXa2+NFQ9vfE7cS0x2RJef9lmNcaMzkNK/lbwGP2l1zCSKVV3zBqsX0i01CtU3Zp8os3jaj82xWGKsBzxULKtPrIOWI94C8ek6evarV9B5PqVXpVlSP+I//L1HW1O34evZMB4SzEaWUM7m8UtoFJOuLhqsxnUGQ+ZX0Qsh32Km8Susooaj4ddZyVmYxfstxDNozH5CwFZYqr9SVtlnVoGN22k1W7Nm2zv2cxTKLxfErynxAwl5EVHn1xck7yyv3AGyDbtutCYN1ltUyK47GnfmAhJllaiyvNo2XY/mevcTZWG3xmjkg4857zGKZFdc9JZkOSDXkWkin8sqEwXmzdoPWXZPZm82yYjzpJbMB4av8SsiGLJVXpgzOm7lrNjkosyx/S1NcC4WxraS7J4VQ76nxQdgyqFN5ZfKRQbz9ZLDpDGBVZl3t4d4sXquK2qAtWjv4Ic7NjpEDorZ0ZOV0Lam84vdo0uxVs5q/X6m5AXGZ9fsTC26ZlWZA1IZKnXd5hy6xbP+824pmG/WiksorE8cezdoN1lmaZRbvcjDhFojQPUhF820WYbQqr968WqGbzizPcH+BxkfXSi7eBr8UcIfdg2NlGuqPd7jHr5O3rHeL22OrRy24i4bL9VTKrL5C6634OgoVENPWAYJS5dWeR70FtKP/uUG/+vP87T///p5x2vbwEL10coEOdnn8zzeevJu+8tl1FIffHbtOh2cWKQlplFkmnSUc6qXWMnoyoroif/Tusls+blxfpi33e42Fe4BNG8ruQHCrU5L893LwRnTOKdsOOYF6cusIDZaj9STcc3E41OuJC/ceF5zvnfSheJalf1nVKFyWM350KF/h+MauLfeV6adfv+eOP9/20IDzcU/g7/fMry+5s0RcqkUNiCrrHnJKwGf3B38NnfCZWc8euEJJM+2261C/LZwmHk4cPzYVkOF+M5ewTHtUXKifcqGAkHRj00avFIrjFlf1PXgiwUTtFix1Fa4HIe+2Rghmwh/HHD8XfRpVnbDy2CNDZKpKys+LjCJ0M3fv/TVkqq7X+LhSnkblKdSLEQbBHLAsHGDHC5amrClF6gd4sYcfbZaVh7kkhccL6t6L37wyH3j9pBHPsPHp8mzfDn1PZw+KexGeKaxqvgsjciHbV/Q+eoGvRO6+KwOeFsVrK7yu8ta1Ch04fp2+++WxwK+Zw/HLl6+6vcfHnKndqUnzD7Bj7gOVOpRban+VtH3dXZere2Gr+1tp3H9XiN42jR1JcDD49IqkzkOKG/ciP3GmZbnUOnb2Bv3ghUtug++Ey7Kf/eGKuz7BpdWP9o5TnqgH67R7vox6MBP3SGpnh+0/4o/DF7WUM3IqxN3KbtBAT9lwVx/9/Jv30o+d9YZrTq/wQyckO7eM0Oec1Xl++hNvSWEcHJ6t4pV9dSMT9xwcDv4eeVT3gzDUtDZ6q8NJnRwc7njCHgFl5E97xeBtLtzAuSd58W8LbsnFA29pdotXzLk8y8K4I6q6v8VJNfZqwP2AUZ5aZVxA+OdRN3jLOeOQ8EN49n1h1F3BPnrmBr1xdW3z47i/WZJnqnhX8ZChi4JJqDU8fSrorQdum3E+wnQixgXE9HA04qBM3TWSmUF3Guw2X3f8dyETYtylCdPJoHTVFEK2G+MCUrDMf2IVhFdqaLHdtINiXgLCSijJc6n56VOlgHckRrlP3cyAYJtL7nADH2g6rYS/7HSCScGK1laMnVRXJ7dn8dZf+LBii3Ao7kOZSnc+D8byV9LLEVu40atOapuLe+RQHAcVY2zjNsbBEmnBvfuQOpdH6qA47im4HcRxjJCSiWVZ/mHE8ehgzJD5P0tDx3hxtYNGGO4CCPK5sacDPuonb/L4noNAQBrwaSW89eOFI9cpr7YafCNWEhCQBmpD4NmL2XviUhAcDmyK/DDLtrN0cChAvDBIBxAgIAACBARAgIAACBAQAAECAiBAQAAECAiAAAEBECAgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIgQEAABAgIgAABARAgIAACBARAgIAACBAQAAECAiBAQAAECAiAAAEBECAgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIg+AALFhbc8PnnZAAAAABJRU5ErkJggg==";function eu({loading:e,handleStartSyncing:t,categoryName:n,sessionExpired:r=!1,hasIntegration:i=!1,hideSubtitleAndAction:s=!1,isHomeCategorySearchEmpty:a=!1,isHomeCategorySearch:l=!1,categoryHasNoProducts:d=!1,hideActionLink:p=!1,hideIconAndTitle:u=!1,showFetchingCategoriesLabel:f=!1}){const y=Bt(),x=jn(),[g]=F.useState({matched:!1,error:"",apiResponse:null,loading:!1});let h=x&&x.emptyProduct?x.emptyProduct:{wrapper:{},card:{},iconContainer:{},inboxIcon:{},title:{},subtitle:{},actionLink:{}};const S=Qe(w=>w?.dashboard)?.products||[],C=t||(()=>y("/product-setting")),b=!r&&!e&&Array.isArray(S)&&S.length===0,v=d?!1:b;if(e&&!r){let w="Fetching";return f?w="Fetching Categories":(l||a||n)&&(w="Fetching Category"),c.jsx(Io,{text:w,fullScreen:!0})}return c.jsx(P,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:c.jsx(P,{sx:h.wrapper,children:c.jsxs(P,{sx:h.card,children:[!(u||a)&&c.jsx(P,{sx:h.iconContainer,children:c.jsx(P,{component:"img",src:RI,alt:"No products",sx:{display:"block",objectFit:"contain",maxWidth:"100%",width:280,height:240,...h.inboxIcon,border:"none",outline:"none",borderRadius:0,bgcolor:"transparent"}})}),c.jsx(U,{sx:h.title,children:!r&&(a||n?"No Category Found":"No Products")}),!a&&!s&&!e&&c.jsx(U,{sx:h.subtitle,children:r?"Your session has expired or your token is invalid. Please log in again.":n&&!v?`No products found in the "${n}" category.`:v?i?"No products found in store inventory. Start syncing to add products.":"Start by setting up sync":g.matched?"Active integrations fetched successfully":n?"No Category Found":g.error?g.error:"No active integration found for this tenant id"}),!a&&!s&&!e&&!r&&!p&&v&&!i&&c.jsx(U,{component:"a",href:"#",sx:h.actionLink,onClick:w=>{w.preventDefault(),C()},children:"Start Syncing Products"})]})})})}const hy=dt(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"),qI="#22c55e";function tu(e){const{sx:t,color:n=qI,fontSize:r,...i}=e;return c.jsxs(pr,{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 YI({catalogSlug:e="",onClose:t,autoHideDurationMs:n=3e3}){const r=typeof window<"u"?`${window.location.origin}${e.startsWith("/")?e:`/${e}`}`:"",i=()=>{r&&navigator.clipboard.writeText(r).then(()=>{}).catch(()=>{})};return F.useEffect(()=>{if(!n||n<=0||typeof t!="function")return;const s=window.setTimeout(()=>{t()},n);return()=>window.clearTimeout(s)},[n,t]),c.jsxs(P,{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(P,{sx:{flexShrink:0,mt:.25,display:"flex",alignItems:"center"},children:c.jsx(tu,{sx:{fontSize:40}})}),c.jsxs(P,{sx:{flex:1,minWidth:0,pt:.25},children:[c.jsx(U,{sx:{fontWeight:700,fontSize:16,color:"#111",lineHeight:1.3},children:"Catalog created"}),c.jsx(U,{sx:{fontWeight:400,fontSize:14,color:"#666",mt:.25,lineHeight:1.4},children:"You can now share it for collecting orders"}),c.jsx(U,{component:"button",onClick:i,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(vt,{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(hy,{sx:{fontSize:20}})})]})}const GI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMFJREFUeAGNUgENwjAQbBcM4AAcgALmAByAhE3BWgXDQTcHSCgKkEBwAArKXfJNnjIWPrnc//e+/VtmzUw452oQEZFH9qoZcQB1UgbUPRP7Q+xAK9BJ9W6g1po/Qy4xC9303ncppUbKAZpWHR/5QqV3hniNlNgCy7yS+LmCL1Y1LAUi2vFB4An0+YzaCskBXKvbBtALoMk78NDm6WEDjIVB+mjMRNBDBPbFQMhfpYzs4SxDo+z/scbXgAzVpvgNpuINgHBRUvbxfqsAAAAASUVORK5CYII=";function KI(e){const{sx:t,alt:n="link icon",...r}=e;return c.jsx(P,{component:"img",src:GI,alt:n,sx:{display:"inline-block",width:16,height:16,objectFit:"contain",...t},...r})}const XI=dt(c.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function zt({size:e,style:t,sx:n,...r}){return c.jsx(XI,{...r,sx:{...e&&{width:e,height:e},...t,...n}})}const hl={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#454545"},gy={fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},JI={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},my=e=>{if(!e)return"";const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const n=Date.now()-t.getTime();if(n<0)return"Sync just now";const r=Math.floor(n/(1e3*60*60));if(r>=24){const i=Math.floor(r/24);return`Sync ${i} day${i>1?"s":""} ago`}return`Sync ${r}h ago`},gl=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))},yy=({productState:e,categoryName:t,categoryProductCount:n,categoryCount:r,activeCatalogsCount:i=0,onManageClick:s,matchHomePageLayout:a=!1,equalCardWidths:l=!1})=>{const d=e?.metrics||{},p=e?.productDashboardMetrics||{},u=!t,f=a||u,y=!!t&&!f,x=f?"12px":"8px",g=f?void 0:261.3333435058594,h=101,m=t?p.productCount!=null?p.productCount:n:u&&(d.activeCategories!=null||d.activeProducts!=null)?d.activeCategories??r??0:r??e?.homePageCardSummary?.totalCategories??0,S=t?"":"Products",C=t?"":u&&d.activeProducts!=null?d.activeProducts:e?.homePageCardSummary?.totalProducts??0,b=d?.lastSyncTime,v=p?.lastSyncTime,w=my(u?b:v||b),A=u&&d.activeCatalogues!=null?d.activeCatalogues:t&&p.activeCatalogues!=null?p.activeCatalogues:i,k=d.onShelfYesterdayPerc!=null?Math.round(Number(d.onShelfYesterdayPerc)):null,D=d.totalOnShelfYesterdayCount!=null?Number(d.totalOnShelfYesterdayCount):null,O=d.totalStockYesterdayCount!=null?Number(d.totalStockYesterdayCount):null,B=d.missingOnShelfYesterdayPercent!=null?Math.round(Number(d.missingOnShelfYesterdayPercent)):null,L=p.onShelfYesterdayPerc!=null?Math.round(Number(p.onShelfYesterdayPerc)):null,E=p.totalOnShelfYesterdayCount!=null?Number(p.totalOnShelfYesterdayCount):null,I=p.totalStockYesterdayCount!=null?Number(p.totalStockYesterdayCount):null,$=p.missingOnShelfYesterdayPercent!=null?Math.round(Number(p.missingOnShelfYesterdayPercent)):null,W=u?k!=null?`${k}%`:"78%":L!=null?`${L}%`:"78%",_=u?D!=null&&O!=null?`${gl(D)}/${gl(O)}`:"78/100k":E!=null&&I!=null?`${gl(E)}/${gl(I)}`:"78/100k",z=u?B!=null?`${B}% Missing`:"22% missing":$!=null?`${$}% Missing`:"22% missing",N=t?`${t} Products`:"Categories";return c.jsx(pn,{maxWidth:!1,sx:{width:"100%",maxWidth:"100%",minWidth:"100%",px:0},children:c.jsxs(P,{sx:{width:"100%",maxWidth:"100%",height:f?"auto":y?101:"auto",gap:x,opacity:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"stretch",mb:3},children:[c.jsx(nu,{cardWidth:g??344,cardHeight:h,title:N,titleValue:m,subtitle:S,subtitleValue:C,recentText:w,tickMarkRequired:!0,btnLabel:"History",flexGrow:!0,flexOverride:f?l?"1 1 200px":"2 1 180px":y?void 0:"2 1 180px"}),c.jsx(nu,{cardWidth:g??220,cardHeight:h,title:"Active Catalogs",titleValue:A,recentText:"4 public links",linkRequired:!0,btnLabel:"Manage",onBtnClick:s,flexGrow:!0,flexOverride:f?"1 1 200px":y?void 0:"1 1 200px"}),c.jsx(nu,{cardWidth:g??220,cardHeight:h,title:"On Shelf Yesterday",titleValue:W,thirdVaue:_,recentText:z,recentTextColor:"#FF2929",btnLabel:"Report",isThirdCard:!0,flexGrow:!0,flexOverride:f?"1 1 200px":y?void 0:"1 1 200px"})]})})};function nu({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:f=!1,onBtnClick:y,isThirdCard:x=!1,flexGrow:g=!1,flexOverride:h}){const m={fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},S={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},C={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#FF2929"},b={fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#2D64B8"};return c.jsxs(Qa,{sx:{width:g?void 0:e,minWidth:g?200:void 0,flex:h??(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(P,{sx:{width:g?"100%":e,height:68,opacity:1,gap:"4px","@media (max-width: 790px)":{gap:0},"@media (max-width: 490px)":{gap:0},padding:"8px 12px",display:"flex",alignItems:"flex-start",boxSizing:"border-box"},children:x?c.jsx(c.Fragment,{children:c.jsxs(P,{sx:{width:"100%",height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[c.jsx(U,{sx:{...hl,height:16},children:n}),c.jsxs(P,{sx:{minWidth:0,height:32,opacity:1,gap:"6px",display:"flex",alignItems:"baseline",flexWrap:"nowrap"},children:[c.jsx(U,{sx:{...m},children:i}),c.jsx(U,{sx:{...S},children:s})]})]})}):c.jsxs(c.Fragment,{children:[n&&c.jsxs(P,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column","@media (max-width: 790px)":{width:"auto",minWidth:0,flex:"1 1 0"}},children:[c.jsx(U,{sx:{...hl,width:158,height:16,"@media (max-width: 790px)":{width:"100%",maxWidth:"100%"}},children:n}),c.jsx(U,{sx:{...gy,width:32,height:32},children:i}),s&&c.jsx(U,{component:"span",sx:{...hl,fontSize:12,color:"#808080",ml:.5},children:s})]}),r&&c.jsxs(P,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column","@media (max-width: 790px)":{width:"auto",minWidth:0,flex:"1 1 0"}},children:[c.jsx(U,{sx:{...hl,width:158,height:16,"@media (max-width: 790px)":{width:"100%",maxWidth:"100%"}},children:r}),c.jsx(U,{sx:{...gy,width:47,height:32},children:a})]})]})}),c.jsx(Xt,{}),c.jsx(P,{sx:{width:g?"100%":e,height:32,opacity:1,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box"},children:x?c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:{minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:c.jsx(U,{sx:{...C,whiteSpace:"nowrap"},children:l})}),p&&c.jsxs(P,{sx:{width:58,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:[c.jsx(tt,{variant:"text",size:"small",onClick:y,sx:{...b,width:40,height:16,textTransform:"none",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:"#2D64B8"}},children:p}),c.jsx(zt,{sx:{width:16,height:16,color:"#2D64B8"}})]})]}):c.jsxs(c.Fragment,{children:[c.jsxs(P,{sx:{flex:1,minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:[u&&c.jsx(tu,{sx:{width:12,height:12,mr:.5}}),f&&c.jsx(KI,{sx:{color:"#2563eb",width:12,height:12,mr:.5}}),c.jsx(U,{sx:{...JI,height:12,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l})]}),p&&c.jsx(P,{sx:{width:65,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:c.jsxs(tt,{variant:"text",size:"small",onClick:y,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(zt,{sx:{width:16,height:16,color:"#2D64B8"}})]})})]})})]})}const QI=dt(c.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");function ml(e){return c.jsx(QI,{...e})}function as(e){return c.jsx(pr,{viewBox:"0 0 14 14",...e,children:c.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}function by(e){if(!e)return"";try{return new Date(e).toLocaleDateString()}catch{return e}}function xy(e){return e?.categoryName??e?.name??""}function ZI({categoryData:e=[],styles:t={},onView:n,selectedCategories:r=[],pinnedCategoryNames:i=[],categoryNamesFromProductSelection:s=[],onToggleCategory:a,totalCategoryCount:l=0,onClearAllCategories:d}){const p=F.useMemo(()=>new Set(i.map(M=>String(M).trim()).filter(Boolean)),[i]),u=F.useMemo(()=>new Set(s.map(M=>String(M).trim()).filter(Boolean)),[s]),f=M=>{const Y=String(xy(M)??"").trim();return Y&&r.some(Z=>String(xy(Z)??"").trim()===Y)||Y&&p.has(Y)||Y&&u.has(Y)},y=r.length,x=Number(l)||0,g=x>0&&y===x,h=y>0||s.length>0,m=e.some(f),S=h&&!g&&m,[C,b]=F.useState(!1),[v,w]=F.useState([]),[A,k]=F.useState(0),[D,O]=F.useState(""),[B,L]=F.useState(0),E=t.categoryTableShared??{},I=_t("(max-width:600px)"),$=_t("(max-width:900px)"),W=_t("(max-width:400px)");let _=4;I?_=1:$&&(_=2);const z=(M,Y,Z,J)=>{const q=Array.isArray(M)?M:[],K=Number.isFinite(Number(J))?Number(J):q.length;if(K<=0)return;const H=K-1,oe=Math.max(0,Math.min(Y,H));w(q),k(oe),L(K),O(Z||""),b(!0)},N=()=>{b(!1)},V=()=>{k(M=>M>0?M-1:M)},j=()=>{k(M=>M<B-1?M+1:M)};return c.jsxs(c.Fragment,{children:[c.jsx(pn,{maxWidth:!1,sx:t.categoryTableContainer,children:c.jsxs(Qa,{sx:t.categoryTable,children:[c.jsxs(P,{sx:{...t.categoryTableHeader,width:"100%"},children:[a&&c.jsx(P,{sx:t.categoryTableHeaderCheckboxCol,children:c.jsx(Ct,{checked:g,indeterminate:S,onChange:()=>{(g||S)&&typeof d=="function"?d():e.forEach(M=>{f(M)||a(M)})},size:"small",sx:E.checkboxHeaderSx,icon:c.jsx("span",{style:E.checkboxIconSpanHeader}),checkedIcon:c.jsx("span",{style:E.checkboxCheckedIconSpan,children:c.jsx(as,{sx:{fontSize:10,color:"#1976d2",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})}),indeterminateIcon:c.jsx("span",{style:E.checkboxCheckedIconSpan,children:c.jsx("span",{style:E.checkboxCheckedIconInner})})})}),c.jsxs(P,{sx:t.categoryTableHeaderCategoryCell,children:["Category",c.jsx(ml,{sx:t.categoryTableHeaderArrow})]}),!W&&c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:t.categoryTableHeaderStockCell,children:"Stock / OSA"}),c.jsx(P,{sx:t.categoryTableHeaderProductsCell,children:"Products"})]}),c.jsx(P,{sx:t.categoryTableHeaderEmptyCell})]}),e.map((M,Y)=>{const Z=Array.isArray(M.images)?M.images:[],J=Z.slice(0,_),q=Number.isFinite(Number(M.productCount))?Number(M.productCount):Z.length,K=Math.max(q-J.length,0);return c.jsx(P,{sx:{...t.categoryTableRow(Y),width:"100%",flexDirection:W?"column":t.categoryTableRow?.flexDirection,alignItems:W?"flex-start":t.categoryTableRow?.alignItems},children:W?c.jsxs(c.Fragment,{children:[c.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",width:"100%",gap:1},children:[c.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:1,minWidth:0,flex:1},children:[a&&c.jsx(P,{sx:t.categoryTableRowCheckboxFrame,children:c.jsx(Ct,{checked:f(M),onChange:()=>a(M),size:"small",sx:{...E.checkboxRowSx,outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"}},icon:c.jsx("span",{style:E.checkboxIconSpanRow}),checkedIcon:c.jsx("span",{style:E.checkboxRowCheckedIconSpan,children:c.jsx(as,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),c.jsxs(P,{sx:{...t.categoryNameCell,flex:"1 1 auto",minWidth:0},children:[c.jsx(U,{sx:t.categoryName,children:M.categoryName}),c.jsxs(U,{sx:t.categoryProducts,children:[M.productCount," Products"]}),c.jsxs(U,{sx:t.categoryUpdated,children:["Updated ",by(M.lastUpdated)]})]})]}),c.jsx(P,{sx:{...t.categoryViewCell,flexShrink:0,mt:"5px",alignSelf:"flex-start",alignItems:"flex-start"},children:c.jsxs(tt,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:M.categoryName,...M}),children:["View",c.jsx(zt,{sx:t.categoryViewButtonIcon})]})})]}),c.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:2,width:"100%",mt:.5,...a&&{ml:"24px"}},children:[c.jsxs(P,{sx:{...t.categoryStockCell,flex:"0 0 auto"},children:[c.jsxs(U,{sx:t.categoryStock(Y),children:[M.totalStock,"/",M.totalOsa]}),c.jsx(U,{sx:t.categoryOSA(Y),children:M.osaPercent!=null?c.jsxs(c.Fragment,{children:[c.jsxs(P,{component:"span",sx:Number(M.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(M.osaPercent)),"%"]})," on shelf"]}):""})]}),c.jsxs(P,{sx:{...t.categoryImagesCell,flex:"1 1 auto",minWidth:0},children:[J.map((H,oe)=>c.jsx(jr,{src:H,alt:(M.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>z(Z,oe,M.categoryName||"",q)},oe)),K>0&&c.jsx(P,{onClick:()=>z(Z,J.length,M.categoryName||"",q),sx:{...t.categoryImage,...t.categoryMoreImageBox},children:c.jsxs(U,{sx:t.categoryMoreImageText,children:["+",K," More"]})})]})]})]}):c.jsxs(c.Fragment,{children:[a&&c.jsx(P,{sx:t.categoryTableRowCheckboxFrame,children:c.jsx(Ct,{checked:f(M),onChange:()=>a(M),size:"small",sx:{...E.checkboxRowSx,outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"}},icon:c.jsx("span",{style:E.checkboxIconSpanRow}),checkedIcon:c.jsx("span",{style:E.checkboxRowCheckedIconSpan,children:c.jsx(as,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),c.jsxs(P,{sx:{...t.categoryNameCell,width:"auto"},children:[c.jsx(U,{sx:t.categoryName,children:M.categoryName}),c.jsxs(U,{sx:t.categoryProducts,children:[M.productCount," Products"]}),c.jsxs(U,{sx:t.categoryUpdated,children:["Updated ",by(M.lastUpdated)]})]}),c.jsxs(P,{sx:{...t.categoryStockCell,width:"auto"},children:[c.jsxs(U,{sx:t.categoryStock(Y),children:[M.totalStock,"/",M.totalOsa]}),c.jsx(U,{sx:t.categoryOSA(Y),children:M.osaPercent!=null?c.jsxs(c.Fragment,{children:[c.jsxs(P,{component:"span",sx:Number(M.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(M.osaPercent)),"%"]})," on shelf"]}):""})]}),c.jsxs(P,{sx:{...t.categoryImagesCell,width:"auto"},children:[J.map((H,oe)=>c.jsx(jr,{src:H,alt:(M.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>z(Z,oe,M.categoryName||"",q)},oe)),K>0&&c.jsx(P,{onClick:()=>z(Z,J.length,M.categoryName||"",q),sx:{...t.categoryImage,...t.categoryMoreImageBox},children:c.jsxs(U,{sx:t.categoryMoreImageText,children:["+",K," More"]})})]}),c.jsx(P,{sx:{...t.categoryViewCell,width:"auto"},children:c.jsxs(tt,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:M.categoryName,...M}),children:["View",c.jsx(zt,{sx:t.categoryViewButtonIcon})]})})]})},M.categoryName||Y)})]})}),c.jsxs(wo,{open:C,onClose:N,maxWidth:"lg",fullWidth:!0,children:[c.jsxs(Co,{sx:t.categoryImageDialogTitleRow,children:[c.jsxs(U,{sx:t.categoryImageDialogTitleText,children:["Image Preview",D?` - ${D}`:""]}),c.jsx(tt,{onClick:N,sx:t.categoryImageDialogCloseButton,children:"Close"})]}),c.jsx(Ui,{sx:t.categoryImageDialogContent,children:B>0&&c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:t.categoryImageDialogImageBox,children:v[A]?c.jsx(P,{component:"img",src:v[A],alt:(D||"Category")+` image ${A+1}`,sx:t.categoryImageDialogImage}):c.jsx(U,{sx:t.categoryImageDialogFallbackText,children:(D||"Category")+` image ${A+1}`})}),c.jsxs(P,{sx:t.categoryImageDialogFooterRow,children:[c.jsx(tt,{variant:"outlined",size:"small",onClick:V,disabled:A<=0,sx:t.categoryImageDialogNavButton,children:"Previous"}),c.jsxs(U,{sx:t.categoryImageDialogCounterText,children:[A+1," of ",B]}),c.jsx(tt,{variant:"outlined",size:"small",onClick:j,disabled:A>=B-1,sx:t.categoryImageDialogNavButton,children:"Next"})]})]})})]})]})}const eN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAKpJREFUeAHFko0NgkAMhR+EARjhRtAJZATcQDfRCRxBRnAE3eBGYJP6qsU0F4FLIOFLyv20r6TtAYaItDLPHY7S7WtaV4xA3xkJJRawSFzph7U0XA60wP1pJHbwt1wjK+kLHm487Gg98qgtfq9isYZkQ0nH5blOwzaZc2TGC77dnGOYhsZ+aj7aX0OO2IRXHdXvVjOmNXn++askpplIEJC8BS9+YJoXLfqLN/KniiDmJ/GnAAAAAElFTkSuQmCC";function tN({sx:e={},...t}){return c.jsx(P,{component:"img",src:eN,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const nN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMlJREFUeAGdUgERwyAMDLsJqIRKQEIlVAIOhoPVQSV0Diahc7A6QMJwwMLt2bGMtlxz98cR8n+fBKKdCCFcGC584skwVBNcOIGgcdcQsntEy7gxGpFvIdDQkUhuzoWHlo+O4RkPpZRf0WgkcWS80OsMe72oMTEviZPsEQO6i7tLA/whCnUtxIvEa66eFSb7JmtHS7vuL0nflQwQsMXVxG9DB+PEWJjfFUSj9XGTDUsO+025fq2dksCA4hlnFVFlAnEgkeD5Vy1UEW+PYQ9FgjWUTgAAAABJRU5ErkJggg==";function rN({sx:e={},...t}){return c.jsx(P,{component:"img",src:nN,alt:"",role:"presentation",sx:{width:"13.26px",height:"13.24px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const oN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAANBJREFUeAGtU4ERwiAMDL0O4AbiJDKCKziJdBI7CpuIG7gBfir0Igbqnf5dSvr9hiQEoh9h+JFSslgugo/GmEkKoblW/07QxCG/eJgTHy194i58VzYcBRkQ8UytVI3xIpu5+AN1wKXl8poYGykWeI4D0zLT9MuuJ9gt+3NpHnMwV+u1EnakN9FqfLcH30ALELNp/KMmlyaiNo9lz8cIC/APtRD8ykl9OQVLr27X8KRj1Y/UAY8qbUAGcGLet+7CERbYkXch0HuKNeTgsHaif+AJ5CBPR1lDq+wAAAAASUVORK5CYII=";function iN({sx:e={},...t}){return c.jsx(P,{component:"img",src:oN,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const ru=640,ou={borderRadius:"6px",padding:"6px 24px",gap:"8px",border:"none",backgroundColor:"#2D64B8",height:40,display:"flex",alignItems:"center",cursor:"pointer",boxSizing:"border-box",font:"inherit",outline:"none","&:hover":{backgroundColor:"#255aa3"},"@media (max-width: 350px)":{padding:"6px 12px"}},iu={width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},su={width:"13.33px",height:"13.33px",objectFit:"contain",boxSizing:"border-box"},au={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",color:"#FFFFFF",whiteSpace:"nowrap"},vy=({onPromoPrint:e,onCreateCatalog:t,onOsaRequest:n,selectedProducts:r,selectedCategories:i,containerRef:s})=>{const a=r||[],l=i||[],d=a.length>0,p=l.length>0,u=_t("(max-width:450px)"),[f,y]=F.useState(null),x=F.useRef(null);if(F.useEffect(()=>{const O=s?.current;if(!O){queueMicrotask(()=>y(null));return}const B=()=>{x.current&&cancelAnimationFrame(x.current),x.current=requestAnimationFrame(()=>{x.current=null,y(O.getBoundingClientRect())})};B();const L=new ResizeObserver(B);return L.observe(O),window.addEventListener("resize",B),()=>{L.disconnect(),window.removeEventListener("resize",B),x.current&&cancelAnimationFrame(x.current)}},[s]),!d&&!p)return null;const g=l.length,h=new Set(l.map(O=>(O?.categoryName||O?.name||"").toString().trim()).filter(Boolean)),m=a.filter(O=>{const B=(O.categoryName||O.category||"").toString().trim();return B?!h.has(B):!0}),S=m.length,C=m.map(O=>(O.categoryName||O.category||"").toString().trim()).filter(Boolean),b=Array.from(new Set(C)),v=b.length===1?b[0]:null;let w;const A=S>0;if(p&&A){const O=`${g} categor${g===1?"y":"ies"}`,B=`product${S===1?"":"s"}`;v?w=`${O} + ${S} ${B} of ${v} category`:w=`${O} + ${S} ${B}`}else p?w=`${g} categor${g===1?"y":"ies"} selected`:w=`${S} item${S===1?"":"s"} selected`;const k=f?Math.min(ru,f.width):ru,D=f?{left:f.left+(f.width-k)/2,width:k}:{left:"50%",transform:"translateX(-50%)",width:"100%",maxWidth:ru};return c.jsxs(P,{sx:{position:"fixed",bottom:24,...D,height:56,borderRadius:"12px",padding:"8px 12px 8px 16px",background:"#000000",boxShadow:"3px 1px 30px 0px #2222223D",display:"flex",alignItems:"center",zIndex:1300,boxSizing:"border-box",overflow:"hidden","@media (max-width: 600px)":{height:"auto",padding:"10px 16px 12px",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px"}},children:[c.jsx(U,{sx:{minWidth:100,flexShrink:1,fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",color:"#FFFFFF",marginRight:"12px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","@media (max-width: 600px)":{marginRight:0,textAlign:"center"}},children:w}),c.jsx(P,{sx:{flex:1,minWidth:8,flexShrink:1,"@media (max-width: 600px)":{display:"none"}}}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0,"@media (max-width: 600px)":{width:"100%",justifyContent:"center"}},children:[(d||p)&&c.jsxs(P,{component:"button",onClick:e,sx:{...ou,width:139},children:[c.jsx(P,{sx:iu,children:c.jsx(tN,{sx:su})}),c.jsx(U,{component:"span",sx:au,children:u?"Promo":"Promo Print"})]}),c.jsxs(P,{component:"button",onClick:t,sx:{...ou,width:158},children:[c.jsx(P,{sx:iu,children:c.jsx(rN,{sx:su})}),c.jsx(U,{component:"span",sx:au,children:u?"Catalog":"Create Catalog"})]}),c.jsxs(P,{component:"button",onClick:n,sx:{...ou,width:147},children:[c.jsx(P,{sx:iu,children:c.jsx(iN,{sx:su})}),c.jsx(U,{component:"span",sx:au,children:u?"OSA":"OSA Request"})]})]})]})},sN=dt(c.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function Hr(e){return c.jsx(sN,{...e})}const Sy=dt(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"}),"Clear");function lu(e){return!e||typeof e!="string"?"":e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function wy({onClose:e,selectedProducts:t=[],selectedCategories:n=[],open:r,stores:i=[],onCreateSuccess:s}){const a=yn(),{createdById:l,createdByName:d,createCatalogLoading:p,createCatalogError:u}=Qe(N=>N.dashboard),f=Array.isArray(t)?t.length:0,y=Array.isArray(n)?n.length:0,x=f+y,[g,h]=F.useState("Christmas Super Sale 2025"),[m]=F.useState(""),[S,C]=F.useState(["all"]),[b,v]=F.useState(!1),w=F.useRef(null),[A,k]=F.useState(null),[D,O]=F.useState(280),B=F.useMemo(()=>lu(g),[g]),L=F.useMemo(()=>B?`/${B}`:"",[B]);F.useEffect(()=>{r&&a(Pf())},[r,a]),F.useEffect(()=>{u&&a(Pf())},[g,B,u,a]);const E=F.useMemo(()=>i.filter(N=>N.id!=="all"),[i]),I=S.includes("all")||S.length===0,$=F.useMemo(()=>I?E.map(N=>N.storeCode).filter(Boolean):S.filter(N=>N!=="all").map(N=>E.find(V=>V.id===N)?.storeCode).filter(Boolean),[I,S,E]),W=N=>{C(V=>{const j=V.filter(Y=>Y!=="all");if(j.includes(N)){const Y=j.filter(Z=>Z!==N);return Y.length===0?["all"]:Y}const M=[...j,N];return M.length===E.length?["all"]:M})},_=()=>{const N=g?.trim();if(!N)return;const V=(t||[]).map((M,Y)=>({productId:M.catalogProductId||M.productId||M.id,sorting:Y+1})).filter(M=>M.productId),j=(n||[]).map(M=>typeof M=="string"?M:M?.categoryName??M?.name).filter(Boolean);a(Gs({name:N,slug:B||lu(N),description:m?.trim()||"",storeCode:$,createdById:l,createdByName:d||"Admin",products:V,categories:j})).unwrap().then(()=>{const M=B||lu(N);typeof s=="function"&&s(M),e()}).catch(()=>{})},z=jn().createCatalog;return c.jsxs(wo,{open:r,onClose:e,maxWidth:!1,PaperProps:{sx:z.dialog},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[c.jsx(Co,{sx:{p:0},children:c.jsxs(P,{sx:z.header,children:[c.jsxs(U,{sx:z.headerTitle,children:["Create Catalog of ",x," ",y>0&&f===0?x===1?"Category":"Categories":"Items"]}),c.jsx(P,{component:"button",onClick:e,sx:z.clearIconCard,"aria-label":"Close",children:c.jsx(Sy,{sx:{fontSize:16,color:"#454545"}})})]})}),c.jsxs(Ui,{sx:z.content,children:[c.jsxs(P,{sx:z.fieldBlock,children:[c.jsx(U,{sx:z.fieldLabel,children:"Catalog Name"}),c.jsx("input",{type:"text",value:g,onChange:N=>h(N.target.value),style:z.input})]}),c.jsxs(P,{sx:z.fieldBlock,children:[c.jsx(U,{sx:z.fieldLabel,children:"Catalog Link"}),c.jsxs("div",{style:{position:"relative",width:"100%"},children:[c.jsx("input",{type:"text",readOnly:!0,value:L,style:{...z.input,...z.inputReadOnly,paddingRight:36}}),L&&c.jsx(tu,{color:"green",fontSize:"18px",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]})]}),c.jsxs(P,{sx:z.fieldBlock,children:[c.jsx(U,{sx:z.fieldLabel,children:"For These Stores"}),c.jsxs(P,{sx:{width:"100%"},children:[c.jsxs(P,{ref:w,sx:z.storeDropdown,onClick:()=>{const N=!b;v(N),N&&w.current?(k(w.current),O(w.current.offsetWidth??280)):N||k(null)},children:[c.jsx(P,{sx:{display:"flex",alignItems:"center",mr:1},children:c.jsx(Zd,{sx:{width:20,height:20}})}),c.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:I?"All Stores":`${S.length} store(s) selected`}),c.jsx("span",{style:{color:"#454545",fontWeight:400,fontSize:12,marginLeft:4},children:` out of ${E.length} stores`}),c.jsx(Hr,{sx:{color:"#454545",ml:"auto"}})]}),c.jsxs(Xi,{open:b,onClose:()=>{v(!1),k(null)},anchorEl:A,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{mt:1,minWidth:D,maxHeight:280,border:"1px solid #F1F1F1",borderRadius:"6px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)"}}},MenuListProps:{sx:{maxHeight:120,overflowY:"auto",py:0},disablePadding:!0},children:[c.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:I?700:400,color:I?"#222":"#444",background:I?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{C(["all"]),v(!1)},children:[c.jsx(Ct,{size:"small",checked:I,sx:{p:.5,mr:1}}),"All Stores"]}),E.map(N=>{const V=S.includes(N.id);return c.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:V?700:400,color:V?"#222":"#444",background:V?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>W(N.id),children:[c.jsx(Ct,{size:"small",checked:V,sx:{p:.5,mr:1}}),N.name]},N.id)})]})]})]}),u&&c.jsx(U,{color:"error",fontSize:14,sx:{mb:2},children:u}),c.jsx(P,{sx:{display:"flex",justifyContent:"flex-end"},children:c.jsx(tt,{variant:"contained",color:"primary",disabled:p||!g?.trim()||x===0,onClick:_,sx:z.createButton,children:p?"Creating...":"Create"})})]})]})}function Cy({onClose:e,open:t,stores:n=[],selectedProducts:r=[],selectedCategories:i=[],onSuccess:s}){const a=yn(),{createOsaRequestLoading:l,createOsaRequestError:d}=Qe(w=>w.dashboard),[p,u]=F.useState(["all"]),[f,y]=F.useState(!1),x=F.useMemo(()=>n.filter(w=>w.id!=="all"&&w.storeCode!=="all"),[n]),g=p.includes("all")||p.length===0,h=F.useMemo(()=>g?x.map(w=>w.storeCode).filter(Boolean):p.filter(w=>w!=="all").map(w=>x.find(A=>A.id===w)?.storeCode).filter(Boolean),[g,p,x]),m=F.useMemo(()=>(r||[]).map(w=>w.catalogProductId||w.productId||w.id).filter(Boolean).map(String),[r]),S=F.useMemo(()=>(Array.isArray(i)?i:[]).filter(Boolean).map(String),[i]),C=h.length>0&&(m.length>0||S.length>0);F.useEffect(()=>{t&&a(j1())},[t,a]);const b=w=>{u(A=>{const k=A.filter(O=>O!=="all");if(k.includes(w)){const O=k.filter(B=>B!==w);return O.length===0?["all"]:O}const D=[...k,w];return D.length===x.length?["all"]:D})},v=()=>{C&&a(Xs({storeCodes:h,products:m,categories:S})).unwrap().then(()=>{typeof s=="function"&&s(),e()}).catch(()=>{})};return c.jsxs(wo,{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(Co,{children:c.jsxs(P,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsx(U,{variant:"h6",fontWeight:600,ml:-3,children:"New OSA Request"}),c.jsx(vt,{onClick:e,size:"small","aria-label":"Close",children:c.jsx(hy,{})})]})}),c.jsx(U,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),c.jsxs(P,{sx:{position:"relative",mb:3},children:[c.jsxs(P,{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(w=>!w),children:[c.jsx(P,{sx:{display:"flex",alignItems:"center",mr:1},children:c.jsx(Zd,{size:12,style:{color:"#555",marginRight:4}})}),c.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:g?"All Stores":`${p.length} store(s) selected`}),c.jsx("span",{style:{color:"#454545",fontWeight:400,fontSize:12,marginLeft:4},children:`out of ${x.length} stores`}),c.jsx(Hr,{sx:{color:"#888",ml:"auto"}})]}),f&&c.jsxs(P,{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(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:g?700:400,color:g?"#222":"#444",background:g?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{u(["all"]),y(!1)},children:[c.jsx(Ct,{size:"small",checked:g,sx:{p:.5,mr:1}}),"All Stores"]}),x.map(w=>{const A=p.includes(w.id);return c.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:A?700:400,color:A?"#222":"#444",background:A?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>b(w.id),children:[c.jsx(Ct,{size:"small",checked:A,sx:{p:.5,mr:1}}),w.name]},w.id)})]})]}),d&&c.jsx(U,{color:"error",fontSize:14,sx:{mb:2},children:d}),c.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:c.jsx(tt,{variant:"contained",color:"primary",disabled:!C||l,onClick:v,sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:l?"Sending...":"Send Request"})})]})}const Wn=(e,t=0)=>{const n=Number(e);return Number.isFinite(n)?n:t},Vn=()=>{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}`}},ls=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=Wn(r,0),a=Wn(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}},aN=(e,t,n={})=>{const{productName:r,mrp:i,discountPrice:s}=ls(e),a=Math.max(0,Wn(i,0)-Wn(s,0)),l=n.validTo||Vn().validTo,d=n.ppd||Vn().ppd;return`
231
+ `))}},[ve,Ne,C,b,M]),fe&&(C?re.length===0?De=null:De=re.reduce((ue,he,ze)=>(ue.push(he),ze<re.length-1&&ue.push(", "),ue),[]):De=se);let Pe=te;!a&&ne&&U&&(Pe=ae.clientWidth);let xe;typeof _<"u"?xe=_:xe=f?null:0;const Ye=W.id||(b?`mui-component-select-${b}`:void 0),Fe={...t,variant:V,value:M,open:de,error:x},ce=qO(Fe),Ee={...S.PaperProps,...typeof S.slotProps?.paper=="function"?S.slotProps.paper(Fe):S.slotProps?.paper},We={...S.MenuListProps,...typeof S.slotProps?.list=="function"?S.slotProps.list(Fe):S.slotProps?.list},st=Ir();return c.jsxs(T.Fragment,{children:[c.jsx(VO,{as:"div",ref:le,tabIndex:xe,role:"combobox","aria-controls":de?st:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":de?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[m,Ye].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":$?"true":void 0,"aria-invalid":x?"true":void 0,onKeyDown:$e,onMouseDown:f||E?null:Ve,onBlur:Ue,onFocus:k,...W,ownerState:Fe,className:pe(W.className,ce.select,d),id:Ye,children:RO(De)?zm||(zm=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):De}),c.jsx(UO,{"aria-invalid":x,value:Array.isArray(M)?M.join(","):M,name:b,ref:q,"aria-hidden":!0,onChange:He,tabIndex:-1,disabled:f,className:ce.nativeInput,autoFocus:s,required:$,...j,ownerState:Fe}),c.jsx(HO,{as:g,className:ce.icon,ownerState:Fe}),c.jsx(Xi,{id:`menu-${b||""}`,anchorEl:ae,open:de,onClose:Ie,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":m,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:st,...We},paper:{...Ee,style:{minWidth:Pe,...Ee!=null?Ee.style:null}}},children:Ae})]})});process.env.NODE_ENV!=="production"&&(Bm.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:Wt,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 YO=e=>{const{classes:t}=e,r=Ce({root:["root"]},_m,t);return{...t,...r}},Ud={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Dt(e)&&e!=="variant"},GO=Q(ol,Ud)(""),KO=Q(il,Ud)(""),XO=Q(rl,Ud)(""),Cn=T.forwardRef(function(t,n){const r=Te({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:s,classes:a={},className:l,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:u=WA,id:f,input:y,inputProps:x,label:g,labelId:h,MenuProps:m,multiple:S=!1,native:C=!1,onClose:b,onOpen:v,open:w,renderValue:A,SelectDisplayProps:k,variant:D="outlined",...O}=r,B=C?Nm:Bm,L=Bn(),E=gr({props:r,muiFormControl:L,states:["variant","error"]}),I=E.variant||D,$={...r,variant:I,classes:a},W=YO($),{root:_,...z}=W,N=y||{standard:c.jsx(GO,{ownerState:$}),outlined:c.jsx(KO,{label:g,ownerState:$}),filled:c.jsx(XO,{ownerState:$})}[I],V=xt(n,Br(N));return c.jsx(T.Fragment,{children:T.cloneElement(N,{inputComponent:B,inputProps:{children:s,error:E.error,IconComponent:u,variant:I,type:void 0,multiple:S,...C?{id:f}:{autoWidth:i,defaultOpen:d,displayEmpty:p,labelId:h,MenuProps:m,onClose:b,onOpen:v,open:w,renderValue:A,SelectDisplayProps:{id:f,...k}},...x,classes:x?Mt(z,x.classes):z,...y?y.props.inputProps:{}},...(S&&C||p)&&I==="outlined"?{notched:!0}:{},ref:V,className:pe(N.props.className,l,W.root),...!y&&{variant:I},...O})})});process.env.NODE_ENV!=="production"&&(Cn.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"])}),Cn.muiName="Select";function JO(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const QO=2;function Po(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function Lm(e,t){return e-t}function jm(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 sl(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 al(e,t,n){return(e-t)*100/(n-t)}function ZO(e,t,n){return(n-t)*e+t}function e2(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 t2(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(e2(t)))}function Wm({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Lm)}function ll({sliderRef:e,activeIndex:t,setActive:n}){const r=wt(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 cl(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?JO(e,t):!1}const n2={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}%`})}},r2=e=>e;let dl;function Vm(){return dl===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?dl=CSS.supports("touch-action","none"):dl=!0),dl}function o2(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:f,orientation:y="horizontal",rootRef:x,scale:g=r2,step:h=1,shiftStep:m=10,tabIndex:S,value:C}=e,b=T.useRef(void 0),[v,w]=T.useState(-1),[A,k]=T.useState(-1),[D,O]=T.useState(!1),B=T.useRef(0),L=T.useRef(null),[E,I]=po({controlled:C,default:n??d,name:"Slider"}),$=u&&((se,re,fe)=>{const ve=se.nativeEvent||se,Ae=new ve.constructor(ve.type,ve);Object.defineProperty(Ae,"target",{writable:!0,value:{value:re,name:p}}),L.current=re,u(Ae,re,fe)}),W=Array.isArray(E);let _=W?E.slice().sort(Lm):[E];_=_.map(se=>se==null?d:uo(se,d,l));const z=a===!0&&h!==null?[...Array(Math.floor((l-d)/h)+1)].map((se,re)=>({value:d+h*re})):a||[],N=z.map(se=>se.value),[V,j]=T.useState(-1),M=T.useRef(null),Y=xt(x,M),Z=se=>re=>{const fe=Number(re.currentTarget.getAttribute("data-index"));go(re.target)&&j(fe),k(fe),se?.onFocus?.(re)},J=se=>re=>{go(re.target)||j(-1),k(-1),se?.onBlur?.(re)},q=(se,re)=>{const fe=Number(se.currentTarget.getAttribute("data-index")),ve=_[fe],Ae=N.indexOf(ve);let Pe=re;if(z&&h==null){const xe=N[N.length-1];Pe>=xe?Pe=xe:Pe<=N[0]?Pe=N[0]:Pe=Pe<ve?N[Ae-1]:N[Ae+1]}if(Pe=uo(Pe,d,l),W){i&&(Pe=uo(Pe,_[fe-1]||-1/0,_[fe+1]||1/0));const xe=Pe;Pe=Wm({values:_,newValue:Pe,index:fe});let Ye=fe;i||(Ye=Pe.indexOf(xe)),ll({sliderRef:M,activeIndex:Ye})}I(Pe),j(fe),$&&!cl(Pe,E)&&$(se,Pe,fe),f&&f(se,L.current??Pe)},K=se=>re=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(re.key)){re.preventDefault();const fe=Number(re.currentTarget.getAttribute("data-index")),ve=_[fe];let Ae=null;if(h!=null){const Pe=re.shiftKey?m:h;switch(re.key){case"ArrowUp":Ae=Po(ve,Pe,1,d,l);break;case"ArrowRight":Ae=Po(ve,Pe,s?-1:1,d,l);break;case"ArrowDown":Ae=Po(ve,Pe,-1,d,l);break;case"ArrowLeft":Ae=Po(ve,Pe,s?1:-1,d,l);break;case"PageUp":Ae=Po(ve,m,1,d,l);break;case"PageDown":Ae=Po(ve,m,-1,d,l);break;case"Home":Ae=d;break;case"End":Ae=l;break}}else if(z){const Pe=N[N.length-1],xe=N.indexOf(ve),Ye=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Fe=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ye.includes(re.key)?xe===0?Ae=N[0]:Ae=N[xe-1]:Fe.includes(re.key)&&(xe===N.length-1?Ae=Pe:Ae=N[xe+1])}Ae!=null&&q(re,Ae)}se?.onKeyDown?.(re)};an(()=>{r&&M.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&v!==-1&&w(-1),r&&V!==-1&&j(-1);const U=se=>re=>{se.onChange?.(re),q(re,re.target.valueAsNumber)},oe=T.useRef(void 0);let ne=y;s&&y==="horizontal"&&(ne+="-reverse");const te=({finger:se,move:re=!1})=>{const{current:fe}=M,{width:ve,height:Ae,bottom:Pe,left:xe}=fe.getBoundingClientRect();let Ye;ne.startsWith("vertical")?Ye=(Pe-se.y)/Ae:Ye=(se.x-xe)/ve,ne.includes("-reverse")&&(Ye=1-Ye);let Fe;if(Fe=ZO(Ye,d,l),h)Fe=t2(Fe,h,d);else{const Ee=jm(N,Fe);Fe=N[Ee]}Fe=uo(Fe,d,l);let ce=0;if(W){re?ce=oe.current:ce=jm(_,Fe),i&&(Fe=uo(Fe,_[ce-1]||-1/0,_[ce+1]||1/0));const Ee=Fe;Fe=Wm({values:_,newValue:Fe,index:ce}),i&&re||(ce=Fe.indexOf(Ee),oe.current=ce)}return{newValue:Fe,activeIndex:ce}},ie=jt(se=>{const re=sl(se,b);if(!re)return;if(B.current+=1,se.type==="mousemove"&&se.buttons===0){R(se);return}const{newValue:fe,activeIndex:ve}=te({finger:re,move:!0});ll({sliderRef:M,activeIndex:ve,setActive:w}),I(fe),!D&&B.current>QO&&O(!0),$&&!cl(fe,E)&&$(se,fe,ve)}),R=jt(se=>{const re=sl(se,b);if(O(!1),!re)return;const{newValue:fe}=te({finger:re,move:!0});w(-1),se.type==="touchend"&&k(-1),f&&f(se,L.current??fe),b.current=void 0,ae()}),le=jt(se=>{if(r)return;Vm()||se.preventDefault();const re=se.changedTouches[0];re!=null&&(b.current=re.identifier);const fe=sl(se,b);if(fe!==!1){const{newValue:Ae,activeIndex:Pe}=te({finger:fe});ll({sliderRef:M,activeIndex:Pe,setActive:w}),I(Ae),$&&!cl(Ae,E)&&$(se,Ae,Pe)}B.current=0;const ve=wt(M.current);ve.addEventListener("touchmove",ie,{passive:!0}),ve.addEventListener("touchend",R,{passive:!0})}),ae=T.useCallback(()=>{const se=wt(M.current);se.removeEventListener("mousemove",ie),se.removeEventListener("mouseup",R),se.removeEventListener("touchmove",ie),se.removeEventListener("touchend",R)},[R,ie]);T.useEffect(()=>{const{current:se}=M;return se.addEventListener("touchstart",le,{passive:Vm()}),()=>{se.removeEventListener("touchstart",le),ae()}},[ae,le]),T.useEffect(()=>{r&&ae()},[r,ae]);const me=se=>re=>{if(se.onMouseDown?.(re),r||re.defaultPrevented||re.button!==0)return;re.preventDefault();const fe=sl(re,b);if(fe!==!1){const{newValue:Ae,activeIndex:Pe}=te({finger:fe});ll({sliderRef:M,activeIndex:Pe,setActive:w}),I(Ae),$&&!cl(Ae,E)&&$(re,Ae,Pe)}B.current=0;const ve=wt(M.current);ve.addEventListener("mousemove",ie,{passive:!0}),ve.addEventListener("mouseup",R)},Ve=al(W?_[0]:d,d,l),Ie=al(_[_.length-1],d,l)-Ve,Ne=(se={})=>{const re=_r(se),fe={onMouseDown:me(re||{})},ve={...re,...fe};return{...se,ref:Y,...ve}},He=se=>re=>{se.onMouseOver?.(re);const fe=Number(re.currentTarget.getAttribute("data-index"));k(fe)},je=se=>re=>{se.onMouseLeave?.(re),k(-1)},$e=(se={})=>{const re=_r(se),fe={onMouseOver:He(re||{}),onMouseLeave:je(re||{})};return{...se,...re,...fe}},de=se=>({pointerEvents:v!==-1&&v!==se?"none":void 0});let Ue;return y==="vertical"&&(Ue=s?"vertical-rl":"vertical-lr"),{active:v,axis:ne,axisProps:n2,dragging:D,focusedThumbIndex:V,getHiddenInputProps:(se={})=>{const re=_r(se),fe={onChange:U(re||{}),onFocus:Z(re||{}),onBlur:J(re||{}),onKeyDown:K(re||{})},ve={...re,...fe};return{tabIndex:S,"aria-labelledby":t,"aria-orientation":y,"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,...se,...ve,style:{...WO,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:Ue}}},getRootProps:Ne,getThumbProps:$e,marks:z,open:A,range:W,rootRef:Y,trackLeap:Ie,trackOffset:Ve,values:_,getThumbStyle:de}}const i2=e=>!e||!fr(e);function s2(e){return Se("MuiSlider",e)}const hn=we("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"]),a2=e=>{const{open:t}=e;return{offset:pe(t&&hn.valueLabelOpen),circle:hn.valueLabelCircle,label:hn.valueLabelLabel}};function Hm(e){const{children:t,className:n,value:r}=e,i=a2(e);return t?T.cloneElement(t,{className:t.props.className},c.jsxs(T.Fragment,{children:[t.props.children,c.jsx("span",{className:pe(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 Um(e){return e}const l2=Q("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]}})(be(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${hn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${hn.dragging}`]:{[`& .${hn.thumb}, & .${hn.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(gt()).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}}]}))),c2=Q("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}}]}),d2=Q("span",{name:"MuiSlider",slot:"Track"})(be(({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(gt()).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)})}}}))]}))),u2=Q("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)}`]]}})(be(({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%)"},[`&.${hn.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(gt()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${hn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${hn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Rm=Q(Hm,{name:"MuiSlider",slot:"ValueLabel"})(be(({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%"},[`&.${hn.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%"},[`&.${hn.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"&&(Rm.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const p2=Q("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Pi(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(be(({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}}]}))),f2=Q("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Pi(e)&&e!=="markLabelActive"})(be(({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}}]}))),h2=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 Ce(p,s2,a)},g2=({children:e})=>e,qm=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSlider"}),i=Ti(),{"aria-label":s,"aria-valuetext":a,"aria-labelledby":l,component:d="span",components:p={},componentsProps:u={},color:f="primary",classes:y,className:x,disableSwap:g=!1,disabled:h=!1,getAriaLabel:m,getAriaValueText:S,marks:C=!1,max:b=100,min:v=0,name:w,onChange:A,onChangeCommitted:k,orientation:D="horizontal",shiftStep:O=10,size:B="medium",step:L=1,scale:E=Um,slotProps:I,slots:$,tabIndex:W,track:_="normal",value:z,valueLabelDisplay:N="off",valueLabelFormat:V=Um,...j}=r,M={...r,isRtl:i,max:b,min:v,classes:y,disabled:h,disableSwap:g,orientation:D,marks:C,color:f,size:B,step:L,shiftStep:O,scale:E,track:_,valueLabelDisplay:N,valueLabelFormat:V},{axisProps:Y,getRootProps:Z,getHiddenInputProps:J,getThumbProps:q,open:K,active:U,axis:oe,focusedThumbIndex:ne,range:te,dragging:ie,marks:R,values:le,trackOffset:ae,trackLeap:me,getThumbStyle:Ve}=o2({...M,rootRef:n});M.marked=R.length>0&&R.some(ke=>ke.label),M.dragging=ie,M.focusedThumbIndex=ne;const Ie=h2(M),Ne=$?.root??p.Root??l2,He=$?.rail??p.Rail??c2,je=$?.track??p.Track??d2,$e=$?.thumb??p.Thumb??u2,de=$?.valueLabel??p.ValueLabel??Rm,Ue=$?.mark??p.Mark??p2,De=$?.markLabel??p.MarkLabel??f2,se=$?.input??p.Input??"input",re=I?.root??u.root,fe=I?.rail??u.rail,ve=I?.track??u.track,Ae=I?.thumb??u.thumb,Pe=I?.valueLabel??u.valueLabel,xe=I?.mark??u.mark,Ye=I?.markLabel??u.markLabel,Fe=I?.input??u.input,ce=$n({elementType:Ne,getSlotProps:Z,externalSlotProps:re,externalForwardedProps:j,additionalProps:{...i2(Ne)&&{as:d}},ownerState:{...M,...re?.ownerState},className:[Ie.root,x]}),Ee=$n({elementType:He,externalSlotProps:fe,ownerState:M,className:Ie.rail}),We=$n({elementType:je,externalSlotProps:ve,additionalProps:{style:{...Y[oe].offset(ae),...Y[oe].leap(me)}},ownerState:{...M,...ve?.ownerState},className:Ie.track}),st=$n({elementType:$e,getSlotProps:q,externalSlotProps:Ae,ownerState:{...M,...Ae?.ownerState},className:Ie.thumb}),ue=$n({elementType:de,externalSlotProps:Pe,ownerState:{...M,...Pe?.ownerState},className:Ie.valueLabel}),he=$n({elementType:Ue,externalSlotProps:xe,ownerState:M,className:Ie.mark}),ze=$n({elementType:De,externalSlotProps:Ye,ownerState:M,className:Ie.markLabel}),At=$n({elementType:se,getSlotProps:J,externalSlotProps:Fe,ownerState:M});return c.jsxs(Ne,{...ce,children:[c.jsx(He,{...Ee}),c.jsx(je,{...We}),R.filter(ke=>ke.value>=v&&ke.value<=b).map((ke,Je)=>{const Un=al(ke.value,v,b),$t=Y[oe].offset(Un);let Ht;return _===!1?Ht=le.includes(ke.value):Ht=_==="normal"&&(te?ke.value>=le[0]&&ke.value<=le[le.length-1]:ke.value<=le[0])||_==="inverted"&&(te?ke.value<=le[0]||ke.value>=le[le.length-1]:ke.value>=le[0]),c.jsxs(T.Fragment,{children:[c.jsx(Ue,{"data-index":Je,...he,...!fr(Ue)&&{markActive:Ht},style:{...$t,...he.style},className:pe(he.className,Ht&&Ie.markActive)}),ke.label!=null?c.jsx(De,{"aria-hidden":!0,"data-index":Je,...ze,...!fr(De)&&{markLabelActive:Ht},style:{...$t,...ze.style},className:pe(Ie.markLabel,ze.className,Ht&&Ie.markLabelActive),children:ke.label}):null]},Je)}),le.map((ke,Je)=>{const Un=al(ke,v,b),$t=Y[oe].offset(Un),Ht=N==="off"?g2:de;return c.jsx(Ht,{...!fr(Ht)&&{valueLabelFormat:V,valueLabelDisplay:N,value:typeof V=="function"?V(E(ke),Je):V,index:Je,open:K===Je||U===Je||N==="on",disabled:h},...ue,children:c.jsx($e,{"data-index":Je,...st,className:pe(Ie.thumb,st.className,U===Je&&Ie.active,ne===Je&&Ie.focusVisible),style:{...$t,...Ve(Je),...st.style},children:c.jsx(se,{"data-index":Je,"aria-label":m?m(Je):s,"aria-valuenow":E(ke),"aria-labelledby":l,"aria-valuetext":S?S(E(ke),Je):a,value:le[Je],...At})})},Je)})]})});process.env.NODE_ENV!=="production"&&(qm.propTypes={"aria-label":vn(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":vn(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 m2(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:s}=e,a=Dr();T.useEffect(()=>{if(!i)return;function S(C){C.defaultPrevented||C.key==="Escape"&&r?.(C,"escapeKeyDown")}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[i,r]);const l=jt((S,C)=>{r?.(S,C)}),d=jt(S=>{!r||S==null||a.start(S,()=>{l(null,"timeout")})});T.useEffect(()=>(i&&d(t),a.clear),[i,t,d,a]);const p=S=>{r?.(S,"clickaway")},u=a.clear,f=T.useCallback(()=>{t!=null&&d(s??t*.5)},[t,s,d]),y=S=>C=>{const b=S.onBlur;b?.(C),f()},x=S=>C=>{const b=S.onFocus;b?.(C),u()},g=S=>C=>{const b=S.onMouseEnter;b?.(C),u()},h=S=>C=>{const b=S.onMouseLeave;b?.(C),f()};return T.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,i,f,u]),{getRootProps:(S={})=>{const C={..._r(e),..._r(S)};return{role:"presentation",...S,...C,onBlur:y(C),onFocus:x(C),onMouseEnter:g(C),onMouseLeave:h(C)}},onClickAway:p}}function y2(e){return Se("MuiSnackbarContent",e)}we("MuiSnackbarContent",["root","message","action"]);const b2=e=>{const{classes:t}=e;return Ce({root:["root"],action:["action"],message:["message"]},y2,t)},x2=Q(Sn,{name:"MuiSnackbarContent",slot:"Root"})(be(({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(Gc(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Gc(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),v2=Q("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),S2=Q("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Ym=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSnackbarContent"}),{action:i,className:s,message:a,role:l="alert",...d}=r,p=r,u=b2(p);return c.jsxs(x2,{role:l,elevation:6,className:pe(u.root,s),ownerState:p,ref:n,...d,children:[c.jsx(v2,{className:u.message,ownerState:p,children:a}),i?c.jsx(S2,{className:u.action,ownerState:p,children:i}):null]})});process.env.NODE_ENV!=="production"&&(Ym.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 w2(e){return Se("MuiSnackbar",e)}we("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const C2=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ee(n.vertical)}${ee(n.horizontal)}`]};return Ce(r,w2,t)},E2=Q("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)}`]]}})(be(({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%)"}}}]}))),ko=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSnackbar"}),i=Mn(),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:f,ClickAwayListenerProps:y,ContentProps:x,disableWindowBlurListener:g=!1,message:h,onBlur:m,onClose:S,onFocus:C,onMouseEnter:b,onMouseLeave:v,open:w,resumeHideDuration:A,slots:k={},slotProps:D={},TransitionComponent:O,transitionDuration:B=s,TransitionProps:{onEnter:L,onExited:E,...I}={},...$}=r,W={...r,anchorOrigin:{vertical:l,horizontal:d},autoHideDuration:p,disableWindowBlurListener:g,TransitionComponent:O,transitionDuration:B},_=C2(W),{getRootProps:z,onClickAway:N}=m2(W),[V,j]=T.useState(!0),M=le=>{j(!0),E&&E(le)},Y=(le,ae)=>{j(!1),L&&L(le,ae)},Z={slots:{transition:O,...k},slotProps:{content:x,clickAwayListener:y,transition:I,...D}},[J,q]=Oe("root",{ref:n,className:[_.root,f],elementType:E2,getSlotProps:z,externalForwardedProps:{...Z,...$},ownerState:W}),[K,{ownerState:U,...oe}]=Oe("clickAwayListener",{elementType:el,externalForwardedProps:Z,getSlotProps:le=>({onClickAway:(...ae)=>{const me=ae[0];le.onClickAway?.(...ae),!me?.defaultMuiPrevented&&N(...ae)}}),ownerState:W}),[ne,te]=Oe("content",{elementType:Ym,shouldForwardComponentProp:!0,externalForwardedProps:Z,additionalProps:{message:h,action:a},ownerState:W}),[ie,R]=Oe("transition",{elementType:To,externalForwardedProps:Z,getSlotProps:le=>({onEnter:(...ae)=>{le.onEnter?.(...ae),Y(...ae)},onExited:(...ae)=>{le.onExited?.(...ae),M(...ae)}}),additionalProps:{appear:!0,in:w,timeout:B,direction:l==="top"?"down":"up"},ownerState:W});return!w&&V?null:c.jsx(K,{...oe,...k.clickAwayListener&&{ownerState:U},children:c.jsx(J,{...q,children:c.jsx(ie,{...R,children:u||c.jsx(ne,{...te})})})})});process.env.NODE_ENV!=="production"&&(ko.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 T2(e){return Se("MuiTooltip",e)}const mt=we("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function A2(e){return Math.round(e*1e5)/1e5}const P2=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 Ce(a,T2,t)},k2=Q(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]}})(be(({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"] .${mt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${mt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${mt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${mt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${mt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${mt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${mt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${mt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),O2=Q("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])}`]]}})(be(({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,[`.${mt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${mt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${mt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${mt.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:`${A2(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${mt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${mt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${mt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${mt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${mt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${mt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${mt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${mt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${mt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${mt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),I2=Q("span",{name:"MuiTooltip",slot:"Arrow"})(be(({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 ul=!1;const Gm=new Da;let es={x:0,y:0};function pl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Oo=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:s,classes:a,components:l={},componentsProps:d={},describeChild:p=!1,disableFocusListener:u=!1,disableHoverListener:f=!1,disableInteractive:y=!1,disableTouchListener:x=!1,enterDelay:g=100,enterNextDelay:h=0,enterTouchDelay:m=700,followCursor:S=!1,id:C,leaveDelay:b=0,leaveTouchDelay:v=1500,onClose:w,onOpen:A,open:k,placement:D="bottom",PopperComponent:O,PopperProps:B={},slotProps:L={},slots:E={},title:I,TransitionComponent:$,TransitionProps:W,..._}=r,z=T.isValidElement(s)?s:c.jsx("span",{children:s}),N=Mn(),V=Ti(),[j,M]=T.useState(),[Y,Z]=T.useState(null),J=T.useRef(!1),q=y||S,K=Dr(),U=Dr(),oe=Dr(),ne=Dr(),[te,ie]=po({controlled:k,default:!1,name:"Tooltip",state:"open"});let R=te;if(process.env.NODE_ENV!=="production"){const{current:Me}=T.useRef(k!==void 0);T.useEffect(()=>{j&&j.disabled&&!Me&&I!==""&&j.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,j,Me])}const le=Ir(C),ae=T.useRef(),me=jt(()=>{ae.current!==void 0&&(document.body.style.WebkitUserSelect=ae.current,ae.current=void 0),ne.clear()});T.useEffect(()=>me,[me]);const Ve=Me=>{Gm.clear(),ul=!0,ie(!0),A&&!R&&A(Me)},Ie=jt(Me=>{Gm.start(800+b,()=>{ul=!1}),ie(!1),w&&R&&w(Me),K.start(N.transitions.duration.shortest,()=>{J.current=!1})}),Ne=Me=>{J.current&&Me.type!=="touchstart"||(j&&j.removeAttribute("title"),U.clear(),oe.clear(),g||ul&&h?U.start(ul?h:g,()=>{Ve(Me)}):Ve(Me))},He=Me=>{U.clear(),oe.start(b,()=>{Ie(Me)})},[,je]=T.useState(!1),$e=Me=>{go(Me.target)||(je(!1),He(Me))},de=Me=>{j||M(Me.currentTarget),go(Me.target)&&(je(!0),Ne(Me))},Ue=Me=>{J.current=!0;const gn=z.props;gn.onTouchStart&&gn.onTouchStart(Me)},De=Me=>{Ue(Me),oe.clear(),K.clear(),me(),ae.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.start(m,()=>{document.body.style.WebkitUserSelect=ae.current,Ne(Me)})},se=Me=>{z.props.onTouchEnd&&z.props.onTouchEnd(Me),me(),oe.start(v,()=>{Ie(Me)})};T.useEffect(()=>{if(!R)return;function Me(gn){gn.key==="Escape"&&Ie(gn)}return document.addEventListener("keydown",Me),()=>{document.removeEventListener("keydown",Me)}},[Ie,R]);const re=xt(Br(z),M,n);!I&&I!==0&&(R=!1);const fe=T.useRef(),ve=Me=>{const gn=z.props;gn.onMouseMove&&gn.onMouseMove(Me),es={x:Me.clientX,y:Me.clientY},fe.current&&fe.current.update()},Ae={},Pe=typeof I=="string";p?(Ae.title=!R&&Pe&&!f?I:null,Ae["aria-describedby"]=R?le:null):(Ae["aria-label"]=Pe?I:null,Ae["aria-labelledby"]=R&&!Pe?le:null);const xe={...Ae,..._,...z.props,className:pe(_.className,z.props.className),onTouchStart:Ue,ref:re,...S?{onMouseMove:ve}:{}};process.env.NODE_ENV!=="production"&&(xe["data-mui-internal-clone-element"]=!0,T.useEffect(()=>{j&&!j.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
+ `))},[j]));const Ye={};x||(xe.onTouchStart=De,xe.onTouchEnd=se),f||(xe.onMouseOver=pl(Ne,xe.onMouseOver),xe.onMouseLeave=pl(He,xe.onMouseLeave),q||(Ye.onMouseOver=Ne,Ye.onMouseLeave=He)),u||(xe.onFocus=pl(de,xe.onFocus),xe.onBlur=pl($e,xe.onBlur),q||(Ye.onFocus=de,Ye.onBlur=$e)),process.env.NODE_ENV!=="production"&&z.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${z.props.title}\` or the Tooltip component.`].join(`
234
+ `));const Fe={...r,isRtl:V,arrow:i,disableInteractive:q,placement:D,PopperComponentProp:O,touch:J.current},ce=typeof L.popper=="function"?L.popper(Fe):L.popper,Ee=T.useMemo(()=>{let Me=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return B.popperOptions?.modifiers&&(Me=Me.concat(B.popperOptions.modifiers)),ce?.popperOptions?.modifiers&&(Me=Me.concat(ce.popperOptions.modifiers)),{...B.popperOptions,...ce?.popperOptions,modifiers:Me}},[Y,B.popperOptions,ce?.popperOptions]),We=P2(Fe),st=typeof L.transition=="function"?L.transition(Fe):L.transition,ue={slots:{popper:l.Popper,transition:l.Transition??$,tooltip:l.Tooltip,arrow:l.Arrow,...E},slotProps:{arrow:L.arrow??d.arrow,popper:{...B,...ce??d.popper},tooltip:L.tooltip??d.tooltip,transition:{...W,...st??d.transition}}},[he,ze]=Oe("popper",{elementType:k2,externalForwardedProps:ue,ownerState:Fe,className:pe(We.popper,B?.className)}),[At,ke]=Oe("transition",{elementType:To,externalForwardedProps:ue,ownerState:Fe}),[Je,Un]=Oe("tooltip",{elementType:O2,className:We.tooltip,externalForwardedProps:ue,ownerState:Fe}),[$t,Ht]=Oe("arrow",{elementType:I2,className:We.arrow,externalForwardedProps:ue,ownerState:Fe,ref:Z});return c.jsxs(T.Fragment,{children:[T.cloneElement(z,xe),c.jsx(he,{as:O??Ed,placement:D,anchorEl:S?{getBoundingClientRect:()=>({top:es.y,left:es.x,right:es.x,bottom:es.y,width:0,height:0})}:j,popperRef:fe,open:j?R:!1,id:le,transition:!0,...Ye,...ze,popperOptions:Ee,children:({TransitionProps:Me})=>c.jsx(At,{timeout:N.transitions.duration.shorter,...Me,...ke,children:c.jsxs(Je,{...Un,children:[I,i?c.jsx($t,{...Ht}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Oo.propTypes={arrow:o.bool,children:Wr.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 N2(e){return Se("MuiSwitch",e)}const Vt=we("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),F2=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=Ce(l,N2,t);return{...t,...d}},M2=Q("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,[`& .${Vt.thumb}`]:{width:16,height:16},[`& .${Vt.switchBase}`]:{padding:4,[`&.${Vt.checked}`]:{transform:"translateX(16px)"}}}}]}),D2=Q(Za,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Vt.input}`]:t.input},n.color!=="default"&&t[`color${ee(n.color)}`]]}})(be(({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}),[`&.${Vt.checked}`]:{transform:"translateX(20px)"},[`&.${Vt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Vt.checked} + .${Vt.track}`]:{opacity:.5},[`&.${Vt.disabled} + .${Vt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Vt.input}`]:{left:"-100%",width:"300%"}})),be(({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(gt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Vt.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"}},[`&.${Vt.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)}`}},[`&.${Vt.checked} + .${Vt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),_2=Q("span",{name:"MuiSwitch",slot:"Track"})(be(({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}`}))),z2=Q("span",{name:"MuiSwitch",slot:"Thumb"})(be(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Km=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSwitch"}),{className:i,color:s="primary",edge:a=!1,size:l="medium",sx:d,slots:p={},slotProps:u={},...f}=r,y={...r,color:s,edge:a,size:l},x=F2(y),g={slots:p,slotProps:u},[h,m]=Oe("root",{className:pe(x.root,i),elementType:M2,externalForwardedProps:g,ownerState:y,additionalProps:{sx:d}}),[S,C]=Oe("thumb",{className:x.thumb,elementType:z2,externalForwardedProps:g,ownerState:y}),b=c.jsx(S,{...C}),[v,w]=Oe("track",{className:x.track,elementType:_2,externalForwardedProps:g,ownerState:y});return c.jsxs(h,{...m,children:[c.jsx(D2,{type:"checkbox",icon:b,checkedIcon:b,ref:n,ownerState:y,...f,classes:{...x,root:x.switchBase},slots:{...p.switchBase&&{root:p.switchBase},...p.input&&{input:p.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(y):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(y):u.input}}}),c.jsx(v,{...w})]})});process.env.NODE_ENV!=="production"&&(Km.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:Wt,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 Rd=T.createContext();process.env.NODE_ENV!=="production"&&(Rd.displayName="TableContext");function $2(e){return Se("MuiTable",e)}we("MuiTable",["root","stickyHeader"]);const B2=e=>{const{classes:t,stickyHeader:n}=e;return Ce({root:["root",n&&"stickyHeader"]},$2,t)},L2=Q("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(be(({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"}}]}))),Xm="table",Jm=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTable"}),{className:i,component:s=Xm,padding:a="normal",size:l="medium",stickyHeader:d=!1,...p}=r,u={...r,component:s,padding:a,size:l,stickyHeader:d},f=B2(u),y=T.useMemo(()=>({padding:a,size:l,stickyHeader:d}),[a,l,d]);return c.jsx(Rd.Provider,{value:y,children:c.jsx(L2,{as:s,role:s===Xm?null:"table",ref:n,className:pe(f.root,i),ownerState:u,...p})})});process.env.NODE_ENV!=="production"&&(Jm.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 ts=T.createContext();process.env.NODE_ENV!=="production"&&(ts.displayName="Tablelvl2Context");function j2(e){return Se("MuiTableBody",e)}we("MuiTableBody",["root"]);const W2=e=>{const{classes:t}=e;return Ce({root:["root"]},j2,t)},V2=Q("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),H2={variant:"body"},Qm="tbody",Zm=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTableBody"}),{className:i,component:s=Qm,...a}=r,l={...r,component:s},d=W2(l);return c.jsx(ts.Provider,{value:H2,children:c.jsx(V2,{className:pe(d.root,i),as:s,ref:n,role:s===Qm?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Zm.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 U2(e){return Se("MuiTableCell",e)}const R2=we("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),q2=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 Ce(l,U2,t)},Y2=Q("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]}})(be(({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",[`&.${R2.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}}]}))),yr=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTableCell"}),{align:i="inherit",className:s,component:a,padding:l,scope:d,size:p,sortDirection:u,variant:f,...y}=r,x=T.useContext(Rd),g=T.useContext(ts),h=g&&g.variant==="head";let m;a?m=a:m=h?"th":"td";let S=d;m==="td"?S=void 0:!S&&h&&(S="col");const C=f||g&&g.variant,b={...r,align:i,component:m,padding:l||(x&&x.padding?x.padding:"normal"),size:p||(x&&x.size?x.size:"medium"),sortDirection:u,stickyHeader:C==="head"&&x&&x.stickyHeader,variant:C},v=q2(b);let w=null;return u&&(w=u==="asc"?"ascending":"descending"),c.jsx(Y2,{as:m,ref:n,className:pe(v.root,s),"aria-sort":w,scope:S,ownerState:b,...y})});process.env.NODE_ENV!=="production"&&(yr.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 G2(e){return Se("MuiTableContainer",e)}we("MuiTableContainer",["root"]);const K2=e=>{const{classes:t}=e;return Ce({root:["root"]},G2,t)},X2=Q("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),ey=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTableContainer"}),{className:i,component:s="div",...a}=r,l={...r,component:s},d=K2(l);return c.jsx(X2,{ref:n,as:s,className:pe(d.root,i),ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(ey.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 J2(e){return Se("MuiTableHead",e)}we("MuiTableHead",["root"]);const Q2=e=>{const{classes:t}=e;return Ce({root:["root"]},J2,t)},Z2=Q("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),eI={variant:"head"},ty="thead",ny=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTableHead"}),{className:i,component:s=ty,...a}=r,l={...r,component:s},d=Q2(l);return c.jsx(ts.Provider,{value:eI,children:c.jsx(Z2,{as:s,className:pe(d.root,i),ref:n,role:s===ty?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(ny.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 tI(e){return Se("MuiTableRow",e)}const ry=we("MuiTableRow",["root","selected","hover","head","footer"]),nI=e=>{const{classes:t,selected:n,hover:r,head:i,footer:s}=e;return Ce({root:["root",n&&"selected",r&&"hover",i&&"head",s&&"footer"]},tI,t)},rI=Q("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(be(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${ry.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ry.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}`)}}}))),oy="tr",ns=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTableRow"}),{className:i,component:s=oy,hover:a=!1,selected:l=!1,...d}=r,p=T.useContext(ts),u={...r,component:s,hover:a,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},f=nI(u);return c.jsx(rI,{as:s,ref:n,className:pe(f.root,i),role:s===oy?null:"row",ownerState:u,...d})});process.env.NODE_ENV!=="production"&&(ns.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 oI(e){return Se("MuiTextField",e)}we("MuiTextField",["root"]);const iI={standard:ol,filled:rl,outlined:il},sI=e=>{const{classes:t}=e;return Ce({root:["root"]},oI,t)},aI=Q(Ui,{name:"MuiTextField",slot:"Root"})({}),rs=T.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:a,className:l,color:d="primary",defaultValue:p,disabled:u=!1,error:f=!1,FormHelperTextProps:y,fullWidth:x=!1,helperText:g,id:h,InputLabelProps:m,inputProps:S,InputProps:C,inputRef:b,label:v,maxRows:w,minRows:A,multiline:k=!1,name:D,onBlur:O,onChange:B,onFocus:L,placeholder:E,required:I=!1,rows:$,select:W=!1,SelectProps:_,slots:z={},slotProps:N={},type:V,value:j,variant:M="outlined",...Y}=r,Z={...r,autoFocus:s,color:d,disabled:u,error:f,fullWidth:x,multiline:k,required:I,select:W,variant:M},J=sI(Z);process.env.NODE_ENV!=="production"&&W&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const q=Ir(h),K=g&&q?`${q}-helper-text`:void 0,U=v&&q?`${q}-label`:void 0,oe=iI[M],ne={slots:z,slotProps:{input:C,inputLabel:m,htmlInput:S,formHelperText:y,select:_,...N}},te={},ie=ne.slotProps.inputLabel;M==="outlined"&&(ie&&typeof ie.shrink<"u"&&(te.notched=ie.shrink),te.label=v),W&&((!_||!_.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const[R,le]=Oe("root",{elementType:aI,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...Y},ownerState:Z,className:pe(J.root,l),ref:n,additionalProps:{disabled:u,error:f,fullWidth:x,required:I,color:d,variant:M}}),[ae,me]=Oe("input",{elementType:oe,externalForwardedProps:ne,additionalProps:te,ownerState:Z}),[Ve,Ie]=Oe("inputLabel",{elementType:ym,externalForwardedProps:ne,ownerState:Z}),[Ne,He]=Oe("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:Z}),[je,$e]=Oe("formHelperText",{elementType:mm,externalForwardedProps:ne,ownerState:Z}),[de,Ue]=Oe("select",{elementType:Cn,externalForwardedProps:ne,ownerState:Z}),De=c.jsx(ae,{"aria-describedby":K,autoComplete:i,autoFocus:s,defaultValue:p,fullWidth:x,multiline:k,name:D,rows:$,maxRows:w,minRows:A,type:V,value:j,id:q,inputRef:b,onBlur:O,onChange:B,onFocus:L,placeholder:E,inputProps:He,slots:{input:z.htmlInput?Ne:void 0},...me});return c.jsxs(R,{...le,children:[v!=null&&v!==""&&c.jsx(Ve,{htmlFor:q,id:U,...Ie,children:v}),W?c.jsx(de,{"aria-describedby":K,id:q,labelId:U,value:j,input:De,...Ue,children:a}):De,g&&c.jsx(je,{id:K,...$e,children:g})]})});process.env.NODE_ENV!=="production"&&(rs.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:Wt,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 _t=Wh({themeId:pi}),lI=dt(c.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function iy(e){return c.jsx(lI,{...e})}const cI=44;function dI({children:e,styles:t,gap:n=8,overflowTooltip:r="More options",OverflowIcon:i=iy}){const s=F.useRef(null),a=F.useRef(null),l=F.useRef([]),d=F.useRef(!1),p=F.useRef(null),[u,f]=F.useState(9999),[y,x]=F.useState(null),g=!!y,h=T.Children.toArray(e).filter(Boolean),m=h.length,S=F.useCallback(()=>{if(!a.current)return!1;const L=Array.from(a.current.children);if(L.length!==m)return!1;const E=L.map(I=>I.getBoundingClientRect().width);return E.some(I=>I===0)?!1:(l.current=E,d.current=!0,!0)},[m]),C=F.useCallback(L=>{const E=l.current;if(!E.length||E.reduce((_,z)=>_+z,0)+Math.max(0,m-1)*n<=L)return m;let $=0,W=0;for(let _=0;_<m;_++){const z=E[_]+(_>0?n:0);if($+z+cI+n<=L)$+=z,W++;else break}return m>0?Math.max(1,W):0},[m,n]),b=F.useCallback(()=>{p.current&&cancelAnimationFrame(p.current),p.current=requestAnimationFrame(()=>{if(!s.current||(d.current||S(),!d.current))return;const L=s.current.getBoundingClientRect().width;f(C(L))})},[S,C]);F.useLayoutEffect(()=>{const L=requestAnimationFrame(()=>{if(S()&&s.current){const $=s.current.getBoundingClientRect().width;f(C($))}}),E=new ResizeObserver(b);return s.current&&E.observe(s.current),()=>{cancelAnimationFrame(L),p.current&&cancelAnimationFrame(p.current),E.disconnect()}},[S,C,b]),F.useEffect(()=>{d.current=!1,l.current=[],b()},[m,b]);const v=L=>T.isValidElement(L)&&L.props?.["data-overflow-divider"],w=Math.min(u,m);let A=h.slice(0,w),k=h.slice(w);for(;A.length>1&&v(A[A.length-1]);)k=[A.pop(),...k];const D=k.length>0,O=A[0]??null,B=A.slice(1);return c.jsxs(c.Fragment,{children:[c.jsx(P,{ref:a,"aria-hidden":"true",sx:{position:"fixed",top:0,left:"-9999px",visibility:"hidden",display:"flex",alignItems:"center",gap:`${n}px`,pointerEvents:"none",zIndex:-1},children:h.map((L,E)=>c.jsx(P,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:L},E))}),c.jsxs(P,{ref:s,sx:{display:"flex",alignItems:"center",overflow:"hidden",minWidth:0,flex:"1 1 auto",justifyContent:"space-between"},children:[O&&c.jsx(P,{sx:{flexShrink:1,flexGrow:1,display:"flex",alignItems:"center",minWidth:0},children:O}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:`${n}px`,flexShrink:0},children:[B.map((L,E)=>c.jsx(P,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:L},E)),D&&c.jsxs(c.Fragment,{children:[c.jsx(Oo,{title:r,sx:{alignSelf:"flex-end"},children:c.jsx(vt,{onClick:L=>x(L.currentTarget),size:"small",sx:{flexShrink:0,border:t?.border?.grey||"1px solid #e0e0e0",borderRadius:"8px",width:32,height:32,mx:0,color:t?.colors?.grey?.black||"#333",backgroundColor:g?t?.colors?.grey?.bg||"#f5f5f5":"transparent","&:hover":{backgroundColor:t?.colors?.grey?.bg||"#f5f5f5"},transition:"background 0.15s ease"},children:c.jsx(i,{fontSize:"small"})})}),c.jsx(Xi,{anchorEl:y,open:g,onClose:()=>x(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},disableAutoFocusItem:!0,PaperProps:{sx:{mt:.5,borderRadius:"10px",minWidth:240,maxWidth:"90vw",boxShadow:"0 4px 20px rgba(0,0,0,0.10)",border:t?.border?.grey||"1px solid #e0e0e0",overflow:"visible"}},children:k.map((L,E)=>{const I=v(L);return[E>0&&!I&&!v(k[E-1])&&c.jsx(Xt,{sx:{my:0,borderColor:t?.colors?.grey?.bg||"#f0f0f0"}},`auto-divider-${E}`),I?c.jsx(Xt,{sx:{my:0,borderColor:t?.colors?.grey?.bg||"#f0f0f0"}},`divider-${E}`):c.jsx(P,{sx:{display:"flex",alignItems:"center",width:"100%",boxSizing:"border-box",px:2,py:1,cursor:"pointer",fontSize:"14px","&:hover":{backgroundColor:t?.colors?.grey?.bg||"#f5f5f5"}},onClick:W=>{W.target===W.currentTarget&&x(null)},children:c.jsx(P,{sx:{width:"100%",minWidth:0,display:"flex",alignItems:"center"},children:L})},`item-${E}`)].filter(Boolean)})})]})]})]})]})}function qd(){return qd=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},qd.apply(this,arguments)}function uI(e,t){if(e==null)return{};var n=pI(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 pI(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 Yd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=uI(e,["color","size"]);return F.createElement("svg",qd({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),F.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),F.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});Yd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Yd.displayName="Bell";function Gd(){return Gd=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},Gd.apply(this,arguments)}function fI(e,t){if(e==null)return{};var n=hI(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 hI(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 fl=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=fI(e,["color","size"]);return F.createElement("svg",Gd({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),F.createElement("polyline",{points:"6 9 12 15 18 9"}))});fl.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},fl.displayName="ChevronDown";function Kd(){return Kd=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},Kd.apply(this,arguments)}function gI(e,t){if(e==null)return{};var n=mI(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 mI(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 Xd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=gI(e,["color","size"]);return F.createElement("svg",Kd({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),F.createElement("circle",{cx:"11",cy:"11",r:"8"}),F.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});Xd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Xd.displayName="Search";function Jd(){return Jd=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},Jd.apply(this,arguments)}function yI(e,t){if(e==null)return{};var n=bI(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 bI(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 Qd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=yI(e,["color","size"]);return F.createElement("svg",Jd({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),F.createElement("circle",{cx:"12",cy:"12",r:"3"}),F.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"}))});Qd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Qd.displayName="Settings";function jn(){const e={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",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},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:{width:379,height:520,maxWidth:379,maxHeight:520,borderRadius:"12px",background:"#FFFFFF",display:"flex",flexDirection:"column",overflow:"hidden"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:328,height:20,pt:"24px",px:"24px",pb:"20px"},headerTitle:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000",margin:0},crossIconCard:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",backgroundColor:"transparent",outline:"none","&:focus":{outline:"none"}},crossIcon:{width:8,height:8,opacity:1,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:8,height:8,stroke:"#454545"}},content:{pt:"8px",px:"24px",overflowY:"hidden",overflowX:"hidden",flex:1,minHeight:0},middleCard:{width:328,minHeight:280,display:"flex",flexDirection:"column",gap:"24px"},section:{width:328,gap:"8px",display:"flex",flexDirection:"column"},itemsToShowSection:{width:328,minHeight:68,gap:"8px",display:"flex",flexDirection:"column"},sectionTitle:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",verticalAlign:"middle",marginBottom:"8px"},checkboxRow:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px 16px",width:328,alignItems:"center"},checkboxCard:{width:160,height:16,gap:"8px",display:"flex",alignItems:"center"},checkboxLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",marginLeft:0,marginRight:0,"& .MuiTypography-root":{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545"},"& .MuiCheckbox-root":{p:0,width:16,height:16,mr:1},"& .MuiSvgIcon-root":{width:16,height:16}},checkboxSx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#2563EB",border:"0.5px solid #2563EB"}},designSection:{width:328,display:"flex",flexDirection:"column",gap:"8px"},designContainer:{display:"flex",flexDirection:"row",flexWrap:"nowrap",gap:2,overflowX:"auto",overflowY:"hidden",pb:1,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-track":{bgcolor:"#f0f0f0",borderRadius:1},"&::-webkit-scrollbar-thumb":{bgcolor:"#c0c0c0",borderRadius:1}},designCard:{base:{width:120,minWidth:120,height:92,borderRadius:"6px",border:"2px solid",borderColor:"#E0E0E0",p:1.5,cursor:"pointer",flexShrink:0,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)",overflow:"hidden",minHeight:0},selected:{borderColor:"#2D64B8",border:"2px solid #2D64B8",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0",border:"2px solid #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,minHeight:0,overflow:"hidden"},offerLine:{fontFamily:"Inter, sans-serif",fontSize:"10px",fontWeight:700,color:"#000000",lineHeight:1.2,textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},mrpBlock:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right",mb:.5,width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},productName:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3,overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},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"}},sheetSizeSection:{width:328,minHeight:56,gap:"8px",display:"flex",flexDirection:"column"},sheetSizeHeader:{width:328,height:20,fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",verticalAlign:"middle"},sheetSizeRow:{width:328,minHeight:28,gap:"4px",display:"flex",alignItems:"center",flexWrap:"wrap"},sheetSizeGroup:{display:"flex",gap:"4px",alignItems:"center"},sheetSizeBtn:{width:36,height:28,borderRadius:"6px",padding:"6px 10px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s",bgcolor:"#F5F5F5",border:"none","&:hover":{bgcolor:"#EEEEEE"}},sheetSizeBtnText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",color:"#454545"},sheetSizeBtnTextSelected:{color:"#000000"},sheetSizeBtnSelected:{bgcolor:"#F3F8FF",border:"0.5px solid #2D64B8","&:hover":{bgcolor:"#E8F0FE"}},copyPerItemRow:{display:"flex",alignItems:"center",gap:"8px",mt:.5},copyPerItemLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",color:"#454545"},actions:{px:"24px",pt:"2px",pb:"10px",display:"flex",flexDirection:"column",alignItems:"center"},printButtonWrapper:{height:40,borderRadius:"8px",padding:"0px 6px",display:"flex",alignItems:"center",justifyContent:"center"},printButton:{width:"100%",height:"100%",minHeight:40,borderRadius:"8px",padding:"12px 16px",bgcolor:"#2D64B8",color:"#FFFFFF",fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center","&:hover":{bgcolor:"#2557A3"}}},createCatalog:{dialog:{width:600,height:384,maxWidth:600,maxHeight:384,borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pt:"24px",px:"24px",pb:"20px"},headerTitle:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000"},clearIconCard:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",backgroundColor:"transparent",outline:"none","&:focus":{outline:"none"}},content:{pt:"20px",px:"24px",pb:"24px",overflowY:"auto",overflowX:"hidden",flex:1,minHeight:0,display:"flex",flexDirection:"column",gap:"24px"},fieldBlock:{width:"100%",maxWidth:552,display:"flex",flexDirection:"column",gap:"4px"},fieldLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},input:{width:"100%",height:40,borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",outline:"none",boxSizing:"border-box"},inputReadOnly:{background:"#FFFFFF",color:"#454545"},storeDropdown:{width:"100%",height:40,borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",display:"flex",alignItems:"center",cursor:"pointer",userSelect:"none",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",boxSizing:"border-box",bgcolor:"#FFFFFF"},createButton:{width:160,height:40,borderRadius:"8px",padding:"12px 16px",minWidth:160,bgcolor:"#2D64B8",color:"#FFFFFF",fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",boxShadow:"none","&:hover":{bgcolor:"#2557A3"}}},emptyProduct:{wrapper:{position:"relative",mx:"auto",my:2,width:"100%",maxWidth:1200,px:{xs:2,sm:4,md:6},pt:"72px",boxSizing:"border-box",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:{xs:320,sm:380,md:440},bgcolor:"#fff",mx:{xs:0,sm:4,md:8},py:{xs:6,md:8},px:{xs:3,md:6},borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},inboxIcon:{width:190,height:170,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},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"}}},t={root:{width:"100%",maxWidth:"100%",marginLeft:0,marginRight:0,display:"flex",flexDirection:"column",alignItems:"stretch",py:{xs:2,sm:3,md:4},px:{xs:0,sm:0,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:"100%",maxWidth:"100%",minHeight:448,display:"flex",flexDirection:"column",boxShadow:"none",borderRadius:0,bgcolor:"transparent",overflow:"visible",marginLeft:0,marginRight:0,gap:"4px",opacity:1,background:"#f7f8fa",p:0,mb:3,boxSizing:"border-box"},categoryTableContainer:{width:"100%",px:0},categoryTableShared:{checkboxHeaderSx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"}},checkboxRowSx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#2563EB",border:"0.5px solid #2563EB"}},checkboxIconSpanHeader:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:"#FFFFFF"},checkboxCheckedIconSpan:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #1976d2",background:"#FFFFFF",position:"relative"},checkboxCheckedIconInner:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:8,height:2,background:"#1976d2",borderRadius:2},checkboxIconSpanRow:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:"#FFFFFF"},checkboxRowCheckedIconSpan:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2563EB",background:"#FFFFFF",position:"relative"},avatar:{width:56,height:56,borderRadius:"8px"},avatarPlaceholder:{width:56,height:56,borderRadius:"8px",bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:20},popoverPaper:{p:2,minWidth:220},popoverTitle:{fontWeight:700,mb:1},popoverItem:{fontSize:14,color:"#222",mb:.5},mrpText:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},discountText:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},errorIcon:{color:"#d32f2f",fontSize:16,mr:.5},moreOffersLink:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},paginationIcon:{width:16,height:16,opacity:1}},categoryTableHeader:{width:"100%",minHeight:28,height:"auto",display:"flex",alignItems:"center",gap:"16px",padding:"8px 16px 4px 16px",opacity:1,background:"#F8F8F8",boxSizing:"border-box",flexWrap:"wrap"},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:{flex:"2 1 0",minWidth:0,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center",gap:"4px"},categoryTableHeaderArrow:{fontSize:16,height:12,color:"#454545",marginLeft:"8px",marginTop:"2px"},categoryTableHeaderStockCell:{flex:"1 1 0",minWidth:0,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080","@media (max-width: 477px)":{minWidth:80}},categoryTableHeaderProductsCell:{flex:"1.5 1 0",minWidth:0,height:16,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:(...n)=>({width:"100%",minHeight:"auto",display:"flex",alignItems:"center",gap:"16px",padding:"8px 16px",opacity:1,border:"1px solid #F1F1F1",borderRadius:"8px",background:"#FFFFFF",boxSizing:"border-box",flexWrap:"wrap"}),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:{flex:"2 1 0",minWidth:0,minHeight:72,height:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",gap:"4px",opacity:1},categoryName:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",opacity:1},categoryProducts:{height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"18px",letterSpacing:0,color:"#454545",opacity:1},categoryUpdated:{width:"100%",height:12,fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1},categoryStockCell:{flex:"1 1 0",minWidth:0,height:32,display:"flex",flexDirection:"column",gap:"4px",opacity:1,"@media (max-width: 477px)":{minWidth:80}},categoryStock:n=>({width:67,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",opacity:1}),categoryOSA:(...n)=>({width:"100%",height:12,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1}),categoryImagesCell:{flex:"1.5 1 0",minWidth:0,height:"auto",display:"flex",gap:"4px",opacity:1,flexWrap:"wrap"},categoryImage:{width:56,height:56,flex:"0 0 56px",borderRadius:"8px",border:"1px solid #F1F1F1",objectFit:"cover",background:"#f5f5f5",opacity:1},categoryMoreImageBox:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"#f0f0f0",cursor:"pointer"},categoryMoreImageText:{fontFamily:"Inter, sans-serif",fontSize:12,fontWeight:500,color:"#454545"},categoryViewCell:{width:"auto",height:56,flex:"0 0 auto",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:"100%",maxWidth:"100%",minHeight:480,gap:"4px",opacity:1},categoryNameBox:{width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",height:28,gap:"32px",padding:"8px 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:"100%",height:28,gap:"16px",padding:"8px 16px 4px 16px",opacity:1},headerProduct:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerStatusOsa:{gap:"40px",minWidth:0,flex:"0 1 auto"},headerStatusText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerOsaText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},arrowDown:{width:12,height:12,color:"#454545"},arrowDownAllStore:{fontSize:12,height:12,color:"#808080",marginLeft:"8px",marginTop:"8px"},rowCard:{width:"100%",maxWidth:"100%",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:{height:56,gap:"16px",minWidth:0,flex:"1 1 0"},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:{height:32,gap:"40px",minWidth:0,flex:"0 1 auto"},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:"100%",maxWidth:"100%",minHeight:520,gap:"6px",opacity:1},tableHeader:{width:"100%",maxWidth:"100%",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:{minWidth:0,flex:"1 1 0"},headerStatus:{minWidth:0,flex:"0 1 auto"},headerPrice:{minWidth:0,flex:"0 1 auto"},headerStock:{minWidth:0,flex:"0 1 auto"},headerOffer:{minWidth:0,flex:"0 1 auto"},stockOfferGap:"12px",checkboxBlue:{border:"0.5px solid #2D64B8",bgcolor:"#F3F8FF",color:"#2D64B8"},rowCard:{width:"100%",maxWidth:"100%",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"},clockIconSx:{fontSize:14,color:"#808080"},stockBlock:{height:32,gap:"4px",minWidth:0,flex:"0 1 auto"},offerBlock:{height:36,gap:"4px",minWidth:0,flex:"0 1 auto"},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",flexWrap:"nowrap",opacity:1,marginLeft:"auto",marginRight:"auto",mt:2,"@media (max-width:400px)":{width:"100%",justifyContent:"space-between",gap:"8px"}},resultsPerPageBox:{width:128,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1,flex:"0 0 auto","@media (max-width:400px)":{width:"auto",minWidth:0}},resultsPerPageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap","@media (max-width:400px)":{fontSize:"11px"}},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"},"@media (max-width:400px)":{minWidth:28}},navBox:{width:200,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1,flex:"0 1 auto",minWidth:0,"@media (max-width:400px)":{width:"auto",gap:"8px"}},iconButton:{p:0,width:16,height:16,color:"#454545","&.Mui-disabled":{color:"#c0c0c0"}},paginationIcon:{width:16,height:16,opacity:1},pageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap","@media (max-width:400px)":{fontSize:"11px"}}},contentWrapper:{position:"relative",zIndex:0,width:"100%",boxSizing:"border-box"},loadingBox:{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},categoryImageDialogTitleRow:{display:"flex",alignItems:"center",justifyContent:"space-between"},categoryImageDialogTitleText:{fontFamily:"Inter, sans-serif",fontSize:16,fontWeight:500},categoryImageDialogCloseButton:{textTransform:"none",fontSize:14},categoryImageDialogContent:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",pb:3},categoryImageDialogImageBox:{maxWidth:"100%",maxHeight:"70vh",display:"flex",alignItems:"center",justifyContent:"center"},categoryImageDialogImage:{maxWidth:"100%",maxHeight:"70vh",borderRadius:2,objectFit:"contain"},categoryImageDialogFallbackText:{fontFamily:"Inter, sans-serif",fontSize:14,color:"#808080",textAlign:"center"},categoryImageDialogFooterRow:{mt:2,display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},categoryImageDialogNavButton:{textTransform:"none"},categoryImageDialogCounterText:{fontFamily:"Inter, sans-serif",fontSize:12,color:"#808080"}};return e.categoryDetail=t,e}const sy=0,ay=1e4;function xI({open:e,filters:t={},onChange:n,onClose:r,onApply:i,priceRange:s}){const a=F.useMemo(()=>{const A=s?.min??t.minPrice??sy,k=s?.max??t.maxPrice??ay;return{min:Number(A)||sy,max:Math.max(Number(k)||ay,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.sortBy==="price"||t.sortBy==="productName"||t.sortBy==="stock"?t.sortBy:"price",u=t.sortOrder==="asc"||t.sortOrder==="desc"?t.sortOrder:"",f=t.minPrice!=null&&Number.isFinite(Number(t.minPrice))?Number(t.minPrice):null,y=t.maxPrice!=null&&Number.isFinite(Number(t.maxPrice))?Number(t.maxPrice):null,x=f??a.min,g=y??a.max,h=(A,k)=>{n({...t,status:k===l?void 0:k||void 0})},m=(A,k)=>{n({...t,stock:k===d?void 0:k||void 0})},S=A=>{const k=A.target.value;k!=="price"&&k!=="productName"&&k!=="stock"||n({...t,sortBy:k})},C=(A,k)=>{const D=k===u?void 0:k;if(!D){n({...t,sortOrder:void 0});return}n({...t,sortBy:p,sortOrder:D})},b=(A,k)=>{if(!Array.isArray(k)||k.length!==2)return;const D=Number(k[0]),O=Number(k[1]),B=Math.min(D,O),L=Math.max(D,O);n({...t,minPrice:B,maxPrice:L})},v=!!(t.status==="active"||t.status==="inactive"||t.stock==="inStock"||t.stock==="outOfStock"||t.sortBy&&t.sortOrder||t.minPrice!=null||t.maxPrice!=null),w=()=>{const A={...t,status:void 0,stock:void 0,sortBy:void 0,sortOrder:void 0,minPrice:void 0,maxPrice:void 0};n(A),typeof i=="function"&&i(A)};return c.jsxs(wo,{open:e,onClose:r,maxWidth:"xs",fullWidth:!0,children:[c.jsx(Co,{children:"Filter Products"}),c.jsx(Hi,{children:c.jsxs(P,{display:"flex",flexDirection:"column",gap:2,pt:.5,children:[c.jsxs(Ui,{component:"fieldset",children:[c.jsx(Eo,{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(Qi,{row:!0,value:l,onChange:h,name:"status",children:[c.jsx(fn,{value:"active",control:c.jsx(mr,{size:"small"}),label:"Active"}),c.jsx(fn,{value:"inactive",control:c.jsx(mr,{size:"small"}),label:"Inactive"})]})]}),c.jsxs(Ui,{component:"fieldset",children:[c.jsx(Eo,{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(Qi,{row:!0,value:d,onChange:m,name:"stock",children:[c.jsx(fn,{value:"inStock",control:c.jsx(mr,{size:"small"}),label:"In Stock"}),c.jsx(fn,{value:"outOfStock",control:c.jsx(mr,{size:"small"}),label:"Out of Stock"})]})]}),c.jsx(Ui,{component:"fieldset",children:c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:1},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1.5,width:"100%",justifyContent:"space-between"},children:[c.jsx(Eo,{sx:{fontWeight:600,color:"text.primary",mb:0,display:"block",whiteSpace:"nowrap",flexShrink:0,cursor:"pointer"},onClick:()=>n({...t,sortBy:void 0,sortOrder:void 0}),children:"Sort"}),c.jsxs(Cn,{value:p,onChange:S,size:"small",variant:"standard",disableUnderline:!0,sx:{width:"140px",maxWidth:"100%"},MenuProps:{PaperProps:{sx:{width:"140px"}}},children:[c.jsx(Et,{value:"price",children:"Price"}),c.jsx(Et,{value:"productName",children:"ProductName"}),c.jsx(Et,{value:"stock",children:"Stock"})]})]}),c.jsxs(Qi,{row:!0,value:u,onChange:C,name:"sortOrder",sx:{mt:.5},children:[c.jsx(fn,{value:"asc",control:c.jsx(mr,{size:"small"}),label:"Ascending"}),c.jsx(fn,{value:"desc",control:c.jsx(mr,{size:"small"}),label:"Descending"})]})]})}),c.jsxs(P,{children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1.5,mb:1.5},children:[c.jsx(Eo,{sx:{fontWeight:600,color:"text.primary",mb:0,whiteSpace:"nowrap"},children:"Price"}),c.jsxs(H,{variant:"body2",color:"text.secondary",sx:{mb:0},children:["Min: ₹",x," — Max: ₹",g]})]}),c.jsx(P,{sx:{px:.5},children:c.jsx(qm,{value:[x,g],onChange:b,min:a.min,max:a.max,valueLabelDisplay:"on",valueLabelFormat:A=>`₹${A}`,size:"small",disableSwap:!1,sx:{mt:2}})})]})]})}),c.jsxs(Id,{sx:{gap:.5,flexWrap:"wrap"},children:[c.jsx(tt,{onClick:r,children:"Cancel"}),v&&c.jsx(tt,{variant:"contained",onClick:w,children:"Clear Filters"}),c.jsx(tt,{variant:"contained",onClick:()=>i&&i(),children:"Apply"})]})]})}const vI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAM5JREFUeAHVUUEOgjAQXGtJOPIADhw96g8wAcLRL/AS8Af6A3/AAyCBn+gTuLdN3RpqSG2TJlxkkmbb2elutwOwGaRpGhVF0Zo8tYmzLGuWZ875LQzDSAhxNLXE1snkxnGcwAHqEDfgCWrpbnvBy6tAEAQXDLUpwsInWIuyLJM8z58mT2AldnqD1rWEkB+bpJQTY+w82zioPY5ad11Xqfz3D9BrRUS2LsoZHOGTw8sDhqvO0aUIg9PvGQmuO3Z/aGIPnojjGHDEQ9/3FfwV3mNqQTvMf4BBAAAAAElFTkSuQmCC";function SI(e){const{sx:t,style:n,...r}=e||{},i=t&&typeof t=="object"?t:{},s={display:"block",...n||{},...typeof i.width<"u"?{width:i.width}:{},...typeof i.height<"u"?{height:i.height}:{},...typeof i.opacity<"u"?{opacity:i.opacity}:{}};return c.jsx("img",{src:vI,alt:"Sort",style:s,...r})}const wI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPdJREFUeAGlUtENgjAQbUkHYAQdwREkwBriBjKBOIFsIK4BfLiBI+AG8MkP1HeEmoa0JcRLmsdx7+7d9cqZw8IwvHDO78qXUqZ1Xec6x2Nu85F0q6qKE5K/JKwVYOjgGkWRJITbLeNirQApo+3MKqA7UGoAO+bu6FOW5d5KoHa3xKwjxHF8Gscxh2KHk0H1aeIJWhUz3C5mz4QQB/oehuENmAqAn2m0btrCfMMqMZ3R7/ue0aEu9Ngyxzgb/iUYowG2QRAkhrh03gEeTwEo2IoJkzLgYeGf58I/8yzKTD1f9ZT1mLPAVvu7wNQadttiLf7G3BdGOn4B2S1yLsw0kyQAAAAASUVORK5CYII=";function Zd({sx:e={},...t}){const n=e?.width??14,r=e?.height??14;return c.jsx(P,{component:"img",src:wI,alt:"",role:"presentation",sx:{width:n,height:r,display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const CI=dt(c.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");function os(e){return c.jsx(CI,{...e})}const EI=dt(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 is(e){return c.jsx(EI,{...e})}function TI(e){return c.jsx(Qd,{...e})}const AI={minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"};function ly(e){const{sx:t={},...n}=e;return c.jsx(P,{component:"button",sx:{...AI,...t},title:"Notifications","aria-label":"Notifications",...n,children:c.jsx(Yd,{size:20})})}const PI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACJSURBVHgBlVBBDYAwDGxQgAQkTMIk4AALczAk4AAcgBMkTAISSge3x0iXjUsuS9q79joiBcwchEbrdYp4kCeyzSCweCeqIU5HnJ1fTCVhL/TCS3iiNsO0ZvdgYsLxGeQ4h4lFi0aK4SE22BjQH7VoaaKDcItxqXL4AlOgFuCnni3UChjsH0NRfAPyobTjv0sWNAAAAABJRU5ErkJggg==",kI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABGSURBVHgBXYtBDQAgDAMrBSlIQAIScIYEJCABCUgYbdhj2SXNku4KOGa2mYYIi2qfiWSK5fcyXY8m08vDDKbEpcyBjObRfCpVS/aG0GXFAAAAAElFTkSuQmCC";function cy(e){const{sx:t={},...n}=e;return c.jsx(P,{sx:{flexShrink:0,...t},...n,children:c.jsx(P,{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(P,{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(P,{sx:{position:"relative",width:20,height:20,opacity:1,flexShrink:0},children:[c.jsx(P,{component:"img",src:PI,alt:"",sx:{position:"absolute",width:10,height:10,top:"3.33px",left:"3.34px",opacity:1,objectFit:"contain",display:"block"}}),c.jsx(P,{component:"img",src:kI,alt:"",sx:{position:"absolute",width:4.166666507720947,height:4.166666507720947,top:"12.5px",left:"12.5px",opacity:1,objectFit:"contain",display:"block"}})]})})})})}const OI=({filters:e,onFilterChange:t,stores:n=[],onOpenFilterModal:r,StoresModal:i,storesModalProps:s,onStoreSelect:a,showBackButton:l=!1,backTo:d="/",backState:p,tenantStatus:u={matched:!0},priceRange:f,styles:y,hasProducts:x,onSortToggle:g,sortIconRotationDeg:h=0})=>{const m=Bt(),S=jn(),[C,b]=F.useState(null),v=!!C,[w,A]=F.useState(!1),[k,D]=F.useState(!1),[O,B]=F.useState(e||{}),[L,E]=F.useState(e?.search??""),I=Array.isArray(e?.store)?e.store:[],$=()=>{b(null)},[W,_]=F.useState(I),z=q=>{_(q==="all"?["all"]:[q])},N=q=>{i?A(!0):(_(I.length===0?["all"]:I),b(q.currentTarget))},V=()=>{t({...e,store:W}),b(null)},j=q=>{a?a(q):t({...e,store:q}),A(!1)},M=()=>{A(!1)};F.useEffect(()=>{E(e?.search??"")},[e?.search]);const Y=q=>{if(q.key==="Enter"){q.preventDefault();const K=(L??"").trim();t({...e,search:K})}},Z=S,J=y!=null&&y.root!==void 0?y:(y!=null&&y.topBar!=null?y.topBar:Z.topBar)||{};return c.jsxs(c.Fragment,{children:[c.jsx(pn,{maxWidth:!1,disableGutters:!0,sx:S.categoryTableContainer,children:c.jsx(P,{sx:{...J.root,position:"relative",width:"100%",height:72,minHeight:72,maxHeight:72,display:"flex",alignItems:"center",paddingTop:0,paddingBottom:0,gap:"16px",boxSizing:"border-box",overflow:"visible"},children:c.jsx(pn,{maxWidth:!1,disableGutters:!0,sx:{width:"100%",display:"flex",justifyContent:"flex-start",boxSizing:"border-box",px:{xs:1,sm:2,md:4}},children:c.jsx(P,{sx:{...J.inner,width:"100%",minWidth:0,height:32,minHeight:32,maxHeight:32,maxWidth:"100%",boxSizing:"border-box",gap:"16px",display:"flex",flexDirection:"row",alignItems:"center",overflow:"hidden",flexShrink:0,flexWrap:"nowrap"},children:c.jsxs(dI,{styles:y,gap:12,OverflowIcon:iy,overflowTooltip:"Menu",children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",flex:1,minWidth:0},children:[l&&c.jsxs(c.Fragment,{children:[c.jsxs(P,{component:"button",onClick:()=>m(d,p?{state:p}:void 0),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(os,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),c.jsx(H,{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:"clamp(6px, 2vw, 16px)",height:24,alignSelf:"center",borderColor:"#e0e0e0"}})]}),c.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:1,maxWidth:"min(480px, 100%)"},children:c.jsxs(P,{sx:{...J.searchBox,display:"flex",flexDirection:"row",alignItems:"center",width:"100%",maxWidth:"min(414px, 100%)",height:20,gap:"clamp(6px, 2vw, 12px)",borderRadius:2,border:"none",backgroundColor:"#fff",px:1.5,py:0,boxSizing:"border-box"},children:[c.jsx(Xd,{size:16,style:{position:"absolute",left:12,color:"#000000",top:"50%",transform:"translateY(-50%)"}}),c.jsx(Li,{placeholder:l?"Search Products":"Search Products & Categories",value:L,onChange:q=>E(q.target.value),onKeyDown:Y,sx:{...J.searchInput||{},pl:3.5,width:"100%","& .MuiInputBase-input":{py:1.25,boxSizing:"border-box",fontSize:"clamp(12px, 1.6vw, 14px)"},"&::placeholder":{color:"#a0a0a0",opacity:1}}})]})})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,"data-overflow-divider":!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:"clamp(4px, 1.2vw, 10px)"}}),c.jsxs(P,{sx:{display:"flex",gap:0,alignItems:"center"},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",flex:"0 1 216px",maxWidth: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:N,tabIndex:0,"aria-label":"Select stores",children:[c.jsx(Zd,{size:12,style:{color:"#555",marginRight:4}}),c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",minWidth:56,height:16,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:I.length===0||I.includes("all")?"All Stores":I.length===1?"1 Store":`${I.length} Stores`}),c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",width:61,height:16,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:` ${n.filter(q=>q.id!=="all"&&q.storeCode!=="all").length} stores`}),c.jsx(fl,{size:16,style:{width:16,height:16,opacity:1,flexShrink:0,color:"#454545"}})]}),c.jsxs(Xi,{anchorEl:C,open:v,onClose:$,disableScrollLock:!0,PaperProps:{style:{minWidth:180}},children:[c.jsxs(Et,{onClick:()=>z("all"),children:[c.jsx(Ct,{checked:W.length===0||W.includes("all")}),c.jsx(Bd,{primary:"All Stores"})]}),c.jsx(Xt,{}),c.jsx(P,{sx:{maxHeight:104,overflowY:"auto"},children:n.filter(q=>q.id!=="all").map(q=>c.jsxs(Et,{onClick:()=>z(q.id),children:[c.jsx(Ct,{checked:W.includes(q.id)}),c.jsx(Bd,{primary:q.name})]},q.id))}),c.jsx(Xt,{}),c.jsx(P,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:c.jsx(tt,{variant:"contained",size:"small",onClick:V,children:"Apply"})})]})]}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",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():(B(e||{}),D(!0))},children:[c.jsx(H,{sx:{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:"Filters"}),c.jsx(fl,{size:16,style:{width:16,height:16,opacity:1,color:"#454545",flexShrink:0}})]}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",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:()=>{u?.loading||g&&g()},children:[c.jsx(H,{sx:{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:"Sort"}),c.jsx(SI,{sx:{width:16,height:16,opacity:1,color:"#454545"},style:{transform:`rotate(${h}deg)`,transformOrigin:"50% 50%"}})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,"data-overflow-divider":!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:"clamp(4px, 1.2vw, 10px)"}}),c.jsx(P,{component:"button",sx:J.iconOnly,title:"Refresh",children:c.jsx(is,{sx:{width:20,height:20,opacity:1}})}),c.jsx(P,{component:"button",sx:{...J.iconOnly,cursor:u.loading?"not-allowed":"pointer",opacity:u.loading?.5:1,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:u.loading?"none":"auto"},title:u.loading?"Loading...":"Settings",tabIndex:-1,onClick:()=>{u.loading||m("/product-setting",{state:{tenantIntegrationMatched:!!u.matched}})},children:c.jsx(TI,{size:18.33,color:"#454545"})}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,"data-overflow-divider":!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:"clamp(4px, 1.2vw, 10px)"}}),c.jsx(ly,{}),c.jsx(cy,{})]})})})})}),i&&(()=>{const{open:q,onClose:K,onStoreSelect:U,...oe}=s||{};return c.jsx(i,{open:w,onClose:M,onStoreSelect:j,selectedStores:I,...oe})})(),!r&&c.jsx(xI,{open:k,filters:O,onChange:B,onClose:()=>D(!1),onApply:q=>{t&&t(q!==void 0?q:O),D(!1)},priceRange:f})]})};const II=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),NI=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),dy=e=>{const t=NI(e);return t.charAt(0).toUpperCase()+t.slice(1)},uy=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),FI=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var MI={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 DI=F.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...l},d)=>F.createElement("svg",{ref:d,...MI,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:uy("lucide",i),...!s&&!FI(l)&&{"aria-hidden":"true"},...l},[...a.map(([p,u])=>F.createElement(p,u)),...Array.isArray(s)?s:[s]]));const Hr=(e,t)=>{const n=F.forwardRef(({className:r,...i},s)=>F.createElement(DI,{ref:s,iconNode:t,className:uy(`lucide-${II(dy(e))}`,`lucide-${e}`,r),...i}));return n.displayName=dy(e),n};const _I=Hr("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 zI=Hr("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const py=Hr("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const $I=Hr("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const BI=Hr("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 LI=Hr("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 jI=Hr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),WI="(max-width:480px)",VI="(max-width:370px)",HI=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:n})=>{const r=It(),i=Bt(),s=r.pathname||"",a=_t(WI),l=_t(VI),d=t||(()=>i(-1)),p=()=>{const y=s.replace(/\/+$/,"");return y==="/product-setting"?[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"}]:y==="/products/settings/ftp-sync"?[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}]:y==="/catalogs/manage-shared"?[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs",to:"/catalogs/manage-shared"}]:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"}]},u=n&&Array.isArray(n)&&n.length>0?n:p(),f=(y=12)=>{if(!u||!Array.isArray(u)||u.length===0)return null;const x=l?"0 1px":a?"0 2px":"0 4px",g=l?"1px":a?"2px":"4px";return c.jsx(P,{sx:{display:"flex",alignItems:"center",gap:g,minWidth:0,flex:1,overflow:"hidden"},children:u.map((h,m)=>c.jsxs(F.Fragment,{children:[m>0&&c.jsx(py,{size:y,color:"#808080",style:{margin:x,flexShrink:0}}),c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:m===u.length-1?700:400,fontSize:m===u.length-1?a?l?"12px":"13px":"16px":a?l?"10px":"11px":"12px",lineHeight:m===u.length-1?"18px":"16px",letterSpacing:0,color:m===u.length-1?"#000000":"#808080",verticalAlign:"middle",...m===u.length-1?{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{flexShrink:0}},children:h.label})]},h.label))})};return c.jsx(P,{sx:{position:"sticky",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(P,{sx:{width:"100%",maxWidth:1200,minWidth:0,height:32,paddingRight:"20px",paddingLeft:"20px",gap:"16px",opacity:1,boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:"center","@media (max-width: 480px)":{paddingRight:"8px",paddingLeft:"8px",gap:"6px"},"@media (max-width: 370px)":{paddingRight:"4px",paddingLeft:"4px",gap:"3px"}},children:[c.jsxs(P,{sx:{flex:1,minWidth:0,height:32,gap:"16px",opacity:1,display:"flex",alignItems:"center",flexShrink:0,overflow:"hidden","@media (max-width: 480px)":{gap:"6px",flexShrink:1},"@media (max-width: 370px)":{gap:"3px"}},children:[c.jsxs(P,{onClick:d,sx:{width:"auto",minWidth:l?32:40,maxWidth:48,height:16,gap:l?"1px":a?"2px":"4px",opacity:1,display:"flex",alignItems:"center",cursor:"pointer",flexShrink:0,background:"none",border:"none",padding:0,"&:hover":{opacity:.85}},children:[c.jsx(os,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),c.jsx(H,{component:"span",sx:{width:"auto",height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:l?"10px":a?"11px":"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center",flexShrink:0},children:"Back"})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{mx:0,height:24,alignSelf:"center",borderColor:"#e0e0e0"}}),c.jsx(P,{sx:{flex:1,minWidth:0,height:20,paddingLeft:l?"2px":"8px",gap:"4px",opacity:1,display:"flex",alignItems:"center"},children:u&&u.length>0?f(l?9:12):c.jsxs(c.Fragment,{children:[c.jsx(H,{sx:{width:"auto",height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:l?"10px":a?"11px":"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",verticalAlign:"middle",flexShrink:0},children:"Products"}),c.jsx(py,{size:l?9:a?10:12,color:"#808080",style:{margin:l?"0 1px":a?"0 2px":"0 4px",flexShrink:0}}),c.jsx(H,{sx:{flex:1,minWidth:0,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:l?"12px":a?"13px":"16px",lineHeight:a?"18px":"20px",letterSpacing:0,color:"#000000",verticalAlign:"middle",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e})]})})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",flexShrink:0,marginRight:a?0:"-8px"}}),c.jsxs(P,{sx:{marginLeft:"auto",display:"flex",alignItems:"center",gap:l?"4px":a?"8px":"16px",flexShrink:0},children:[c.jsx(ly,{}),c.jsx(cy,{})]})]})})},fy=F.createContext(null);function ss(){return F.useContext(fy)}function UI(){const t=It().pathname||"",[n,r]=F.useState({}),[i,s]=F.useState({}),a=t.startsWith("/product-setting")||t.startsWith("/products/settings")||t.startsWith("/catalogs/manage-shared"),l=F.useMemo(()=>({setTopbarProps:r,setSettingTopbarProps:s}),[]);return c.jsx(fy.Provider,{value:l,children:c.jsxs(P,{sx:{display:"flex",flexDirection:"column",width:"100%",minHeight:"100vh",boxSizing:"border-box"},children:[c.jsx(P,{sx:{position:"sticky",top:0,zIndex:1100,flexShrink:0,width:"100%"},children:a?c.jsx(HI,{onBack:i.onBack,breadcrumbs:i.breadcrumbs}):n.hide?null:(()=>{const{hide:d,...p}=n;return c.jsx(OI,{...p})})()}),c.jsx(P,{component:"main",sx:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"100%",minWidth:0},children:c.jsx(Tb,{})})]})})}function Io({text:e="Fetching",fullScreen:t=!0,textVisible:n=!0}){const r=jn(),i=t?{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 64px)"}:r?.loadingBox||{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"};return c.jsx(P,{sx:{...i,animation:"fade-in 1s ease-in-out","@keyframes fade-in":{from:{opacity:0},to:{opacity:1}}},children:c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:2,bgcolor:"#f5f7fa"},children:[c.jsx(Ii,{size:24}),n&&c.jsxs(H,{sx:{animation:"fade-in 1s ease-in-out","@keyframes fade-in":{from:{opacity:0},to:{opacity:1}}},children:[e," ..."]})]})})}const RI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACgCAYAAABJ/yOpAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAC2pJREFUeAHt3VtsHFcZB/Bvdr3rK6lTOU7pLbRQkcTmlqYtRKliEAGkSG2eEnjgIp6QKt6AVwpvSEg8IKQKIbU8oRQJNUFFEFdKiNKg0ARwIYkDwm2aNE0TK7XcxLHXuzudb2ZOvN3sfjs7tz1n5v+TLFtK4uza5z/nO5c5Y9kOAoCWCgQAbSEgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIgQEAABAgIgAABARAgIAACBARAgIAACBAQAAECAiBAQAAECAiAAAEBECAgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIgQEAABAgIgAABARAgIJo4NWfTc6/YdKtCoBEERBOn5ojm3iV6Z4FAIwgIgAABCWF5lejMJdLe5ffQI0WFgIRweMam3/7VpkOnbdLVezeJnpu26RcvY1wTBQISwvaPWzRQJjo+SzT9b/1CosLBPd3OzRYNlglCQkBCuHc90f7PW+7X0687QTmvT0hUOPgzv86nHiWIAAEJaeIBbnxeSA6d8maheo17DC79OBzrh4m+t9siiAYBiWDnZqLdn/Ia4R+d8QgPinvp4CnvNahwDJQIIuqjnLGdami1TlR3PuIojHZuIVpcJjr5P+/q/Z0pi0aHqWt1/8WsVIlurXb++wUnl+UikeV3EtOv23R6bi0c60O8BrhTrgKyWiOq1LyQxOmrn7Fo4aZN5y8TPX/Epm9xSIa6+ha3XxMHt1bv/Pedt+G+n37nN3j0jO1MFpDbY3x7F8IRp9yUWNWad3W2ExpPP/2YRRtHiRaWiF484c0gpeHYOS8c7Kntljswh/jkJiDccySJr977d3g9xxVnce7AieRnts5ftukvM97Xuz9t0faHCWKWi4BwyVJPYSaWw6HKqwvXnEHza8n9p9xTHXzN+3rXVou+NEmQgFwExE5xmYLDsW+HN4M0c8HrTYLodsaJw8dl3BOPWE5AnPcYYNwC3bNs29Z3v0RMePyxXKVUcTBmLtjuAD6Jvz/rTAi8u0BuOBgHrA+T9rHLRUC4vFrK+H6k4fLalC/EJxfXHF4zKGb4nXLPgXAkIzed8kCfF5Ss4ffUn7vl3vTkosRS+J3ydO9qwlO+aSla3tgDvUdyUg8I/28125t67VUy+TXwuMTkS0MxI2UVv4Wipe/7STUg3Ch5arKemz4LguJSsVT0PnSSWvXKMeRNeKYXdEsrdXpr3swpsbF1fTT2ET0HLHzRXPGn4nUKSWo/rSyE4+DJBXrp72bf5L338VF6+olR0lWlqtesXCoBqdfNL6vmF6u3wzHxwACZ6MzFZfc9fPL+Adp8n57vgZtJta5PL5JOQDIw5jj8r0X389TkCD3ztTEy0fNHrtOfTi/S7KVlbQPCdGov2JwQ0D/nltzPUxMjZKrHP+HdpPLq7A2CYFIJiOkLdDwon3+/ShucQa6p5RXj1z40UHDLxdm3l0lXRY3aSzoBKZi91eP4We+KO/GgueFQVA/IZZaOdNsWlNpL4e0Qpi5sZaG8UnQvs0pFvdpJatO8fGUYLJm3UBikvErqXvewLH/RrdxiJqi5zNJlsG75h1DotlCYamfGIRkqe/uH+AfB891xf8TdPU/7s1ftyivbTvZe9zDcPWdVb0tPKzqVWRwMLsHVCS08xRv2I4nfQU+WVVVjTkqcmxJVI2pXXlU03vjIN4oVW/yGuczi6d7pmUXa2+NFQ9vfE7cS0x2RJef9lmNcaMzkNK/lbwGP2l1zCSKVV3zBqsX0i01CtU3Zp8os3jaj82xWGKsBzxULKtPrIOWI94C8ek6evarV9B5PqVXpVlSP+I//L1HW1O34evZMB4SzEaWUM7m8UtoFJOuLhqsxnUGQ+ZX0Qsh32Km8Susooaj4ddZyVmYxfstxDNozH5CwFZYqr9SVtlnVoGN22k1W7Nm2zv2cxTKLxfErynxAwl5EVHn1xck7yyv3AGyDbtutCYN1ltUyK47GnfmAhJllaiyvNo2XY/mevcTZWG3xmjkg4857zGKZFdc9JZkOSDXkWkin8sqEwXmzdoPWXZPZm82yYjzpJbMB4av8SsiGLJVXpgzOm7lrNjkosyx/S1NcC4WxraS7J4VQ76nxQdgyqFN5ZfKRQbz9ZLDpDGBVZl3t4d4sXquK2qAtWjv4Ic7NjpEDorZ0ZOV0Lam84vdo0uxVs5q/X6m5AXGZ9fsTC26ZlWZA1IZKnXd5hy6xbP+824pmG/WiksorE8cezdoN1lmaZRbvcjDhFojQPUhF820WYbQqr968WqGbzizPcH+BxkfXSi7eBr8UcIfdg2NlGuqPd7jHr5O3rHeL22OrRy24i4bL9VTKrL5C6634OgoVENPWAYJS5dWeR70FtKP/uUG/+vP87T///p5x2vbwEL10coEOdnn8zzeevJu+8tl1FIffHbtOh2cWKQlplFkmnSUc6qXWMnoyoroif/Tusls+blxfpi33e42Fe4BNG8ruQHCrU5L893LwRnTOKdsOOYF6cusIDZaj9STcc3E41OuJC/ceF5zvnfSheJalf1nVKFyWM350KF/h+MauLfeV6adfv+eOP9/20IDzcU/g7/fMry+5s0RcqkUNiCrrHnJKwGf3B38NnfCZWc8euEJJM+2261C/LZwmHk4cPzYVkOF+M5ewTHtUXKifcqGAkHRj00avFIrjFlf1PXgiwUTtFix1Fa4HIe+2Rghmwh/HHD8XfRpVnbDy2CNDZKpKys+LjCJ0M3fv/TVkqq7X+LhSnkblKdSLEQbBHLAsHGDHC5amrClF6gd4sYcfbZaVh7kkhccL6t6L37wyH3j9pBHPsPHp8mzfDn1PZw+KexGeKaxqvgsjciHbV/Q+eoGvRO6+KwOeFsVrK7yu8ta1Ch04fp2+++WxwK+Zw/HLl6+6vcfHnKndqUnzD7Bj7gOVOpRban+VtH3dXZere2Gr+1tp3H9XiN42jR1JcDD49IqkzkOKG/ciP3GmZbnUOnb2Bv3ghUtug++Ey7Kf/eGKuz7BpdWP9o5TnqgH67R7vox6MBP3SGpnh+0/4o/DF7WUM3IqxN3KbtBAT9lwVx/9/Jv30o+d9YZrTq/wQyckO7eM0Oec1Xl++hNvSWEcHJ6t4pV9dSMT9xwcDv4eeVT3gzDUtDZ6q8NJnRwc7njCHgFl5E97xeBtLtzAuSd58W8LbsnFA29pdotXzLk8y8K4I6q6v8VJNfZqwP2AUZ5aZVxA+OdRN3jLOeOQ8EN49n1h1F3BPnrmBr1xdW3z47i/WZJnqnhX8ZChi4JJqDU8fSrorQdum3E+wnQixgXE9HA04qBM3TWSmUF3Guw2X3f8dyETYtylCdPJoHTVFEK2G+MCUrDMf2IVhFdqaLHdtINiXgLCSijJc6n56VOlgHckRrlP3cyAYJtL7nADH2g6rYS/7HSCScGK1laMnVRXJ7dn8dZf+LBii3Ao7kOZSnc+D8byV9LLEVu40atOapuLe+RQHAcVY2zjNsbBEmnBvfuQOpdH6qA47im4HcRxjJCSiWVZ/mHE8ehgzJD5P0tDx3hxtYNGGO4CCPK5sacDPuonb/L4noNAQBrwaSW89eOFI9cpr7YafCNWEhCQBmpD4NmL2XviUhAcDmyK/DDLtrN0cChAvDBIBxAgIAACBARAgIAACBAQAAECAiBAQAAECAiAAAEBECAgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIgQEAABAgIgAABARAgIAACBARAgIAACBAQAAECAiBAQAAECAiAAAEBECAgAAIEBECAgAAIEBAAAQICIEBAAAQICIAAAQEQICAAAgQEQICAAAgQEAABAgIg+AALFhbc8PnnZAAAAABJRU5ErkJggg==";function eu({loading:e,handleStartSyncing:t,categoryName:n,sessionExpired:r=!1,hasIntegration:i=!1,hideSubtitleAndAction:s=!1,isHomeCategorySearchEmpty:a=!1,isHomeCategorySearch:l=!1,categoryHasNoProducts:d=!1,hideActionLink:p=!1,hideIconAndTitle:u=!1,showFetchingCategoriesLabel:f=!1}){const y=Bt(),x=jn(),[g]=F.useState({matched:!1,error:"",apiResponse:null,loading:!1});let h=x&&x.emptyProduct?x.emptyProduct:{wrapper:{},card:{},iconContainer:{},inboxIcon:{},title:{},subtitle:{},actionLink:{}};const S=Qe(w=>w?.dashboard)?.products||[],C=t||(()=>y("/product-setting")),b=!r&&!e&&Array.isArray(S)&&S.length===0,v=d?!1:b;if(e&&!r){let w="Fetching";return f?w="Fetching Categories":(l||a||n)&&(w="Fetching Category"),c.jsx(Io,{text:w,fullScreen:!0})}return c.jsx(P,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:c.jsx(P,{sx:h.wrapper,children:c.jsxs(P,{sx:h.card,children:[!(u||a)&&c.jsx(P,{sx:h.iconContainer,children:c.jsx(P,{component:"img",src:RI,alt:"No products",sx:{display:"block",objectFit:"contain",maxWidth:"100%",width:280,height:240,...h.inboxIcon,border:"none",outline:"none",borderRadius:0,bgcolor:"transparent"}})}),c.jsx(H,{sx:h.title,children:!r&&(a||n?"No Category Found":"No Products")}),!a&&!s&&!e&&c.jsx(H,{sx:h.subtitle,children:r?"Your session has expired or your token is invalid. Please log in again.":n&&!v?`No products found in the "${n}" category.`:v?i?"No products found in store inventory. Start syncing to add products.":"Start by setting up sync":g.matched?"Active integrations fetched successfully":n?"No Category Found":g.error?g.error:"No active integration found for this tenant id"}),!a&&!s&&!e&&!r&&!p&&v&&!i&&c.jsx(H,{component:"a",href:"#",sx:h.actionLink,onClick:w=>{w.preventDefault(),C()},children:"Start Syncing Products"})]})})})}const hy=dt(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"),qI="#22c55e";function tu(e){const{sx:t,color:n=qI,fontSize:r,...i}=e;return c.jsxs(pr,{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 YI({catalogSlug:e="",onClose:t,autoHideDurationMs:n=3e3}){const r=typeof window<"u"?`${window.location.origin}${e.startsWith("/")?e:`/${e}`}`:"",i=()=>{r&&navigator.clipboard.writeText(r).then(()=>{}).catch(()=>{})};return F.useEffect(()=>{if(!n||n<=0||typeof t!="function")return;const s=window.setTimeout(()=>{t()},n);return()=>window.clearTimeout(s)},[n,t]),c.jsxs(P,{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(P,{sx:{flexShrink:0,mt:.25,display:"flex",alignItems:"center"},children:c.jsx(tu,{sx:{fontSize:40}})}),c.jsxs(P,{sx:{flex:1,minWidth:0,pt:.25},children:[c.jsx(H,{sx:{fontWeight:700,fontSize:16,color:"#111",lineHeight:1.3},children:"Catalog created"}),c.jsx(H,{sx:{fontWeight:400,fontSize:14,color:"#666",mt:.25,lineHeight:1.4},children:"You can now share it for collecting orders"}),c.jsx(H,{component:"button",onClick:i,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(vt,{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(hy,{sx:{fontSize:20}})})]})}const GI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMFJREFUeAGNUgENwjAQbBcM4AAcgALmAByAhE3BWgXDQTcHSCgKkEBwAArKXfJNnjIWPrnc//e+/VtmzUw452oQEZFH9qoZcQB1UgbUPRP7Q+xAK9BJ9W6g1po/Qy4xC9303ncppUbKAZpWHR/5QqV3hniNlNgCy7yS+LmCL1Y1LAUi2vFB4An0+YzaCskBXKvbBtALoMk78NDm6WEDjIVB+mjMRNBDBPbFQMhfpYzs4SxDo+z/scbXgAzVpvgNpuINgHBRUvbxfqsAAAAASUVORK5CYII=";function KI(e){const{sx:t,alt:n="link icon",...r}=e;return c.jsx(P,{component:"img",src:GI,alt:n,sx:{display:"inline-block",width:16,height:16,objectFit:"contain",...t},...r})}const XI=dt(c.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function zt({size:e,style:t,sx:n,...r}){return c.jsx(XI,{...r,sx:{...e&&{width:e,height:e},...t,...n}})}const hl={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#454545"},gy={fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},JI={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},my=e=>{if(!e)return"";const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const n=Date.now()-t.getTime();if(n<0)return"Sync just now";const r=Math.floor(n/(1e3*60*60));if(r>=24){const i=Math.floor(r/24);return`Sync ${i} day${i>1?"s":""} ago`}return`Sync ${r}h ago`},gl=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))},yy=({productState:e,categoryName:t,categoryProductCount:n,categoryCount:r,activeCatalogsCount:i=0,onManageClick:s,matchHomePageLayout:a=!1,equalCardWidths:l=!1})=>{const d=e?.metrics||{},p=e?.productDashboardMetrics||{},u=!t,f=a||u,y=!!t&&!f,x=f?"12px":"8px",g=f?void 0:261.3333435058594,h=101,m=t?p.productCount!=null?p.productCount:n:u&&(d.activeCategories!=null||d.activeProducts!=null)?d.activeCategories??r??0:r??e?.homePageCardSummary?.totalCategories??0,S=t?"":"Products",C=t?"":u&&d.activeProducts!=null?d.activeProducts:e?.homePageCardSummary?.totalProducts??0,b=d?.lastSyncTime,v=p?.lastSyncTime,w=my(u?b:v||b),A=u&&d.activeCatalogues!=null?d.activeCatalogues:t&&p.activeCatalogues!=null?p.activeCatalogues:i,k=d.onShelfYesterdayPerc!=null?Math.round(Number(d.onShelfYesterdayPerc)):null,D=d.totalOnShelfYesterdayCount!=null?Number(d.totalOnShelfYesterdayCount):null,O=d.totalStockYesterdayCount!=null?Number(d.totalStockYesterdayCount):null,B=d.missingOnShelfYesterdayPercent!=null?Math.round(Number(d.missingOnShelfYesterdayPercent)):null,L=p.onShelfYesterdayPerc!=null?Math.round(Number(p.onShelfYesterdayPerc)):null,E=p.totalOnShelfYesterdayCount!=null?Number(p.totalOnShelfYesterdayCount):null,I=p.totalStockYesterdayCount!=null?Number(p.totalStockYesterdayCount):null,$=p.missingOnShelfYesterdayPercent!=null?Math.round(Number(p.missingOnShelfYesterdayPercent)):null,W=u?k!=null?`${k}%`:"78%":L!=null?`${L}%`:"78%",_=u?D!=null&&O!=null?`${gl(D)}/${gl(O)}`:"78/100k":E!=null&&I!=null?`${gl(E)}/${gl(I)}`:"78/100k",z=u?B!=null?`${B}% Missing`:"22% missing":$!=null?`${$}% Missing`:"22% missing",N=t?`${t} Products`:"Categories";return c.jsx(pn,{maxWidth:!1,sx:{width:"100%",maxWidth:"100%",minWidth:"100%",px:0},children:c.jsxs(P,{sx:{width:"100%",maxWidth:"100%",height:f?"auto":y?101:"auto",gap:x,opacity:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"stretch",mb:3},children:[c.jsx(nu,{cardWidth:g??344,cardHeight:h,title:N,titleValue:m,subtitle:S,subtitleValue:C,recentText:w,tickMarkRequired:!0,btnLabel:"History",flexGrow:!0,flexOverride:f?l?"1 1 200px":"2 1 180px":y?void 0:"2 1 180px"}),c.jsx(nu,{cardWidth:g??220,cardHeight:h,title:"Active Catalogs",titleValue:A,recentText:"4 public links",linkRequired:!0,btnLabel:"Manage",onBtnClick:s,flexGrow:!0,flexOverride:f?"1 1 200px":y?void 0:"1 1 200px"}),c.jsx(nu,{cardWidth:g??220,cardHeight:h,title:"On Shelf Yesterday",titleValue:W,thirdVaue:_,recentText:z,recentTextColor:"#FF2929",btnLabel:"Report",isThirdCard:!0,flexGrow:!0,flexOverride:f?"1 1 200px":y?void 0:"1 1 200px"})]})})};function nu({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:f=!1,onBtnClick:y,isThirdCard:x=!1,flexGrow:g=!1,flexOverride:h}){const m={fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},S={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},C={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#FF2929"},b={fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#2D64B8"};return c.jsxs(Qa,{sx:{width:g?void 0:e,minWidth:g?200:void 0,flex:h??(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(P,{sx:{width:g?"100%":e,height:68,opacity:1,gap:"4px","@media (max-width: 790px)":{gap:0},"@media (max-width: 490px)":{gap:0},padding:"8px 12px",display:"flex",alignItems:"flex-start",boxSizing:"border-box"},children:x?c.jsx(c.Fragment,{children:c.jsxs(P,{sx:{width:"100%",height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[c.jsx(H,{sx:{...hl,height:16},children:n}),c.jsxs(P,{sx:{minWidth:0,height:32,opacity:1,gap:"6px",display:"flex",alignItems:"baseline",flexWrap:"nowrap"},children:[c.jsx(H,{sx:{...m},children:i}),c.jsx(H,{sx:{...S},children:s})]})]})}):c.jsxs(c.Fragment,{children:[n&&c.jsxs(P,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column","@media (max-width: 790px)":{width:"auto",minWidth:0,flex:"1 1 0"}},children:[c.jsx(H,{sx:{...hl,width:158,height:16,"@media (max-width: 790px)":{width:"100%",maxWidth:"100%"}},children:n}),c.jsx(H,{sx:{...gy,width:32,height:32},children:i}),s&&c.jsx(H,{component:"span",sx:{...hl,fontSize:12,color:"#808080",ml:.5},children:s})]}),r&&c.jsxs(P,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column","@media (max-width: 790px)":{width:"auto",minWidth:0,flex:"1 1 0"}},children:[c.jsx(H,{sx:{...hl,width:158,height:16,"@media (max-width: 790px)":{width:"100%",maxWidth:"100%"}},children:r}),c.jsx(H,{sx:{...gy,width:47,height:32},children:a})]})]})}),c.jsx(Xt,{}),c.jsx(P,{sx:{width:g?"100%":e,height:32,opacity:1,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box"},children:x?c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:{minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:c.jsx(H,{sx:{...C,whiteSpace:"nowrap"},children:l})}),p&&c.jsxs(P,{sx:{width:58,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:[c.jsx(tt,{variant:"text",size:"small",onClick:y,sx:{...b,width:40,height:16,textTransform:"none",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:"#2D64B8"}},children:p}),c.jsx(zt,{sx:{width:16,height:16,color:"#2D64B8"}})]})]}):c.jsxs(c.Fragment,{children:[c.jsxs(P,{sx:{flex:1,minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:[u&&c.jsx(tu,{sx:{width:12,height:12,mr:.5}}),f&&c.jsx(KI,{sx:{color:"#2563eb",width:12,height:12,mr:.5}}),c.jsx(H,{sx:{...JI,height:12,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l})]}),p&&c.jsx(P,{sx:{width:65,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:c.jsxs(tt,{variant:"text",size:"small",onClick:y,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(zt,{sx:{width:16,height:16,color:"#2D64B8"}})]})})]})})]})}const QI=dt(c.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");function ml(e){return c.jsx(QI,{...e})}function as(e){return c.jsx(pr,{viewBox:"0 0 14 14",...e,children:c.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}function by(e){if(!e)return"";try{return new Date(e).toLocaleDateString()}catch{return e}}function xy(e){return e?.categoryName??e?.name??""}function ZI({categoryData:e=[],styles:t={},onView:n,selectedCategories:r=[],pinnedCategoryNames:i=[],categoryNamesFromProductSelection:s=[],onToggleCategory:a,totalCategoryCount:l=0,onClearAllCategories:d}){const p=F.useMemo(()=>new Set(i.map(M=>String(M).trim()).filter(Boolean)),[i]),u=F.useMemo(()=>new Set(s.map(M=>String(M).trim()).filter(Boolean)),[s]),f=M=>{const Y=String(xy(M)??"").trim();return Y&&r.some(Z=>String(xy(Z)??"").trim()===Y)||Y&&p.has(Y)||Y&&u.has(Y)},y=r.length,x=Number(l)||0,g=x>0&&y===x,h=y>0||s.length>0,m=e.some(f),S=h&&!g&&m,[C,b]=F.useState(!1),[v,w]=F.useState([]),[A,k]=F.useState(0),[D,O]=F.useState(""),[B,L]=F.useState(0),E=t.categoryTableShared??{},I=_t("(max-width:600px)"),$=_t("(max-width:900px)"),W=_t("(max-width:400px)");let _=4;I?_=1:$&&(_=2);const z=(M,Y,Z,J)=>{const q=Array.isArray(M)?M:[],K=Number.isFinite(Number(J))?Number(J):q.length;if(K<=0)return;const U=K-1,oe=Math.max(0,Math.min(Y,U));w(q),k(oe),L(K),O(Z||""),b(!0)},N=()=>{b(!1)},V=()=>{k(M=>M>0?M-1:M)},j=()=>{k(M=>M<B-1?M+1:M)};return c.jsxs(c.Fragment,{children:[c.jsx(pn,{maxWidth:!1,sx:t.categoryTableContainer,children:c.jsxs(Qa,{sx:t.categoryTable,children:[c.jsxs(P,{sx:{...t.categoryTableHeader,width:"100%"},children:[a&&c.jsx(P,{sx:t.categoryTableHeaderCheckboxCol,children:c.jsx(Ct,{checked:g,indeterminate:S,onChange:()=>{(g||S)&&typeof d=="function"?d():e.forEach(M=>{f(M)||a(M)})},size:"small",sx:E.checkboxHeaderSx,icon:c.jsx("span",{style:E.checkboxIconSpanHeader}),checkedIcon:c.jsx("span",{style:E.checkboxCheckedIconSpan,children:c.jsx(as,{sx:{fontSize:10,color:"#1976d2",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})}),indeterminateIcon:c.jsx("span",{style:E.checkboxCheckedIconSpan,children:c.jsx("span",{style:E.checkboxCheckedIconInner})})})}),c.jsxs(P,{sx:t.categoryTableHeaderCategoryCell,children:["Category",c.jsx(ml,{sx:t.categoryTableHeaderArrow})]}),!W&&c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:t.categoryTableHeaderStockCell,children:"Stock / OSA"}),c.jsx(P,{sx:t.categoryTableHeaderProductsCell,children:"Products"})]}),c.jsx(P,{sx:t.categoryTableHeaderEmptyCell})]}),e.map((M,Y)=>{const Z=Array.isArray(M.images)?M.images:[],J=Z.slice(0,_),q=Number.isFinite(Number(M.productCount))?Number(M.productCount):Z.length,K=Math.max(q-J.length,0);return c.jsx(P,{sx:{...t.categoryTableRow(Y),width:"100%",flexDirection:W?"column":t.categoryTableRow?.flexDirection,alignItems:W?"flex-start":t.categoryTableRow?.alignItems},children:W?c.jsxs(c.Fragment,{children:[c.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",width:"100%",gap:1},children:[c.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:1,minWidth:0,flex:1},children:[a&&c.jsx(P,{sx:t.categoryTableRowCheckboxFrame,children:c.jsx(Ct,{checked:f(M),onChange:()=>a(M),size:"small",sx:{...E.checkboxRowSx,outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"}},icon:c.jsx("span",{style:E.checkboxIconSpanRow}),checkedIcon:c.jsx("span",{style:E.checkboxRowCheckedIconSpan,children:c.jsx(as,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),c.jsxs(P,{sx:{...t.categoryNameCell,flex:"1 1 auto",minWidth:0},children:[c.jsx(H,{sx:t.categoryName,children:M.categoryName}),c.jsxs(H,{sx:t.categoryProducts,children:[M.productCount," Products"]}),c.jsxs(H,{sx:t.categoryUpdated,children:["Updated ",by(M.lastUpdated)]})]})]}),c.jsx(P,{sx:{...t.categoryViewCell,flexShrink:0,mt:"5px",alignSelf:"flex-start",alignItems:"flex-start"},children:c.jsxs(tt,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:M.categoryName,...M}),children:["View",c.jsx(zt,{sx:t.categoryViewButtonIcon})]})})]}),c.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:2,width:"100%",mt:.5,...a&&{ml:"24px"}},children:[c.jsxs(P,{sx:{...t.categoryStockCell,flex:"0 0 auto"},children:[c.jsxs(H,{sx:t.categoryStock(Y),children:[M.totalStock,"/",M.totalOsa]}),c.jsx(H,{sx:t.categoryOSA(Y),children:M.osaPercent!=null?c.jsxs(c.Fragment,{children:[c.jsxs(P,{component:"span",sx:Number(M.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(M.osaPercent)),"%"]})," on shelf"]}):""})]}),c.jsxs(P,{sx:{...t.categoryImagesCell,flex:"1 1 auto",minWidth:0},children:[J.map((U,oe)=>c.jsx(jr,{src:U,alt:(M.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>z(Z,oe,M.categoryName||"",q)},oe)),K>0&&c.jsx(P,{onClick:()=>z(Z,J.length,M.categoryName||"",q),sx:{...t.categoryImage,...t.categoryMoreImageBox},children:c.jsxs(H,{sx:t.categoryMoreImageText,children:["+",K," More"]})})]})]})]}):c.jsxs(c.Fragment,{children:[a&&c.jsx(P,{sx:t.categoryTableRowCheckboxFrame,children:c.jsx(Ct,{checked:f(M),onChange:()=>a(M),size:"small",sx:{...E.checkboxRowSx,outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"}},icon:c.jsx("span",{style:E.checkboxIconSpanRow}),checkedIcon:c.jsx("span",{style:E.checkboxRowCheckedIconSpan,children:c.jsx(as,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),c.jsxs(P,{sx:{...t.categoryNameCell,width:"auto"},children:[c.jsx(H,{sx:t.categoryName,children:M.categoryName}),c.jsxs(H,{sx:t.categoryProducts,children:[M.productCount," Products"]}),c.jsxs(H,{sx:t.categoryUpdated,children:["Updated ",by(M.lastUpdated)]})]}),c.jsxs(P,{sx:{...t.categoryStockCell,width:"auto"},children:[c.jsxs(H,{sx:t.categoryStock(Y),children:[M.totalStock,"/",M.totalOsa]}),c.jsx(H,{sx:t.categoryOSA(Y),children:M.osaPercent!=null?c.jsxs(c.Fragment,{children:[c.jsxs(P,{component:"span",sx:Number(M.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(M.osaPercent)),"%"]})," on shelf"]}):""})]}),c.jsxs(P,{sx:{...t.categoryImagesCell,width:"auto"},children:[J.map((U,oe)=>c.jsx(jr,{src:U,alt:(M.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>z(Z,oe,M.categoryName||"",q)},oe)),K>0&&c.jsx(P,{onClick:()=>z(Z,J.length,M.categoryName||"",q),sx:{...t.categoryImage,...t.categoryMoreImageBox},children:c.jsxs(H,{sx:t.categoryMoreImageText,children:["+",K," More"]})})]}),c.jsx(P,{sx:{...t.categoryViewCell,width:"auto"},children:c.jsxs(tt,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:M.categoryName,...M}),children:["View",c.jsx(zt,{sx:t.categoryViewButtonIcon})]})})]})},M.categoryName||Y)})]})}),c.jsxs(wo,{open:C,onClose:N,maxWidth:"lg",fullWidth:!0,children:[c.jsxs(Co,{sx:t.categoryImageDialogTitleRow,children:[c.jsxs(H,{sx:t.categoryImageDialogTitleText,children:["Image Preview",D?` - ${D}`:""]}),c.jsx(tt,{onClick:N,sx:t.categoryImageDialogCloseButton,children:"Close"})]}),c.jsx(Hi,{sx:t.categoryImageDialogContent,children:B>0&&c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:t.categoryImageDialogImageBox,children:v[A]?c.jsx(P,{component:"img",src:v[A],alt:(D||"Category")+` image ${A+1}`,sx:t.categoryImageDialogImage}):c.jsx(H,{sx:t.categoryImageDialogFallbackText,children:(D||"Category")+` image ${A+1}`})}),c.jsxs(P,{sx:t.categoryImageDialogFooterRow,children:[c.jsx(tt,{variant:"outlined",size:"small",onClick:V,disabled:A<=0,sx:t.categoryImageDialogNavButton,children:"Previous"}),c.jsxs(H,{sx:t.categoryImageDialogCounterText,children:[A+1," of ",B]}),c.jsx(tt,{variant:"outlined",size:"small",onClick:j,disabled:A>=B-1,sx:t.categoryImageDialogNavButton,children:"Next"})]})]})})]})]})}const eN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAKpJREFUeAHFko0NgkAMhR+EARjhRtAJZATcQDfRCRxBRnAE3eBGYJP6qsU0F4FLIOFLyv20r6TtAYaItDLPHY7S7WtaV4xA3xkJJRawSFzph7U0XA60wP1pJHbwt1wjK+kLHm487Gg98qgtfq9isYZkQ0nH5blOwzaZc2TGC77dnGOYhsZ+aj7aX0OO2IRXHdXvVjOmNXn++askpplIEJC8BS9+YJoXLfqLN/KniiDmJ/GnAAAAAElFTkSuQmCC";function tN({sx:e={},...t}){return c.jsx(P,{component:"img",src:eN,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const nN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMlJREFUeAGdUgERwyAMDLsJqIRKQEIlVAIOhoPVQSV0Diahc7A6QMJwwMLt2bGMtlxz98cR8n+fBKKdCCFcGC584skwVBNcOIGgcdcQsntEy7gxGpFvIdDQkUhuzoWHlo+O4RkPpZRf0WgkcWS80OsMe72oMTEviZPsEQO6i7tLA/whCnUtxIvEa66eFSb7JmtHS7vuL0nflQwQsMXVxG9DB+PEWJjfFUSj9XGTDUsO+025fq2dksCA4hlnFVFlAnEgkeD5Vy1UEW+PYQ9FgjWUTgAAAABJRU5ErkJggg==";function rN({sx:e={},...t}){return c.jsx(P,{component:"img",src:nN,alt:"",role:"presentation",sx:{width:"13.26px",height:"13.24px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const oN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAANBJREFUeAGtU4ERwiAMDL0O4AbiJDKCKziJdBI7CpuIG7gBfir0Igbqnf5dSvr9hiQEoh9h+JFSslgugo/GmEkKoblW/07QxCG/eJgTHy194i58VzYcBRkQ8UytVI3xIpu5+AN1wKXl8poYGykWeI4D0zLT9MuuJ9gt+3NpHnMwV+u1EnakN9FqfLcH30ALELNp/KMmlyaiNo9lz8cIC/APtRD8ykl9OQVLr27X8KRj1Y/UAY8qbUAGcGLet+7CERbYkXch0HuKNeTgsHaif+AJ5CBPR1lDq+wAAAAASUVORK5CYII=";function iN({sx:e={},...t}){return c.jsx(P,{component:"img",src:oN,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const ru=640,ou={borderRadius:"6px",padding:"6px 24px",gap:"8px",border:"none",backgroundColor:"#2D64B8",height:40,display:"flex",alignItems:"center",cursor:"pointer",boxSizing:"border-box",font:"inherit",outline:"none","&:hover":{backgroundColor:"#255aa3"},"@media (max-width: 350px)":{padding:"6px 12px"}},iu={width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},su={width:"13.33px",height:"13.33px",objectFit:"contain",boxSizing:"border-box"},au={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",color:"#FFFFFF",whiteSpace:"nowrap"},vy=({onPromoPrint:e,onCreateCatalog:t,onOsaRequest:n,selectedProducts:r,selectedCategories:i,containerRef:s})=>{const a=r||[],l=i||[],d=a.length>0,p=l.length>0,u=_t("(max-width:450px)"),[f,y]=F.useState(null),x=F.useRef(null);if(F.useEffect(()=>{const O=s?.current;if(!O){queueMicrotask(()=>y(null));return}const B=()=>{x.current&&cancelAnimationFrame(x.current),x.current=requestAnimationFrame(()=>{x.current=null,y(O.getBoundingClientRect())})};B();const L=new ResizeObserver(B);return L.observe(O),window.addEventListener("resize",B),()=>{L.disconnect(),window.removeEventListener("resize",B),x.current&&cancelAnimationFrame(x.current)}},[s]),!d&&!p)return null;const g=l.length,h=new Set(l.map(O=>(O?.categoryName||O?.name||"").toString().trim()).filter(Boolean)),m=a.filter(O=>{const B=(O.categoryName||O.category||"").toString().trim();return B?!h.has(B):!0}),S=m.length,C=m.map(O=>(O.categoryName||O.category||"").toString().trim()).filter(Boolean),b=Array.from(new Set(C)),v=b.length===1?b[0]:null;let w;const A=S>0;if(p&&A){const O=`${g} categor${g===1?"y":"ies"}`,B=`product${S===1?"":"s"}`;v?w=`${O} + ${S} ${B} of ${v} category`:w=`${O} + ${S} ${B}`}else p?w=`${g} categor${g===1?"y":"ies"} selected`:w=`${S} item${S===1?"":"s"} selected`;const k=f?Math.min(ru,f.width):ru,D=f?{left:f.left+(f.width-k)/2,width:k}:{left:"50%",transform:"translateX(-50%)",width:"100%",maxWidth:ru};return c.jsxs(P,{sx:{position:"fixed",bottom:24,...D,height:56,borderRadius:"12px",padding:"8px 12px 8px 16px",background:"#000000",boxShadow:"3px 1px 30px 0px #2222223D",display:"flex",alignItems:"center",zIndex:1300,boxSizing:"border-box",overflow:"hidden","@media (max-width: 600px)":{height:"auto",padding:"10px 16px 12px",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px"}},children:[c.jsx(H,{sx:{minWidth:100,flexShrink:1,fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",color:"#FFFFFF",marginRight:"12px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","@media (max-width: 600px)":{marginRight:0,textAlign:"center"}},children:w}),c.jsx(P,{sx:{flex:1,minWidth:8,flexShrink:1,"@media (max-width: 600px)":{display:"none"}}}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0,"@media (max-width: 600px)":{width:"100%",justifyContent:"center"}},children:[(d||p)&&c.jsxs(P,{component:"button",onClick:e,sx:{...ou,width:139},children:[c.jsx(P,{sx:iu,children:c.jsx(tN,{sx:su})}),c.jsx(H,{component:"span",sx:au,children:u?"Promo":"Promo Print"})]}),c.jsxs(P,{component:"button",onClick:t,sx:{...ou,width:158},children:[c.jsx(P,{sx:iu,children:c.jsx(rN,{sx:su})}),c.jsx(H,{component:"span",sx:au,children:u?"Catalog":"Create Catalog"})]}),c.jsxs(P,{component:"button",onClick:n,sx:{...ou,width:147},children:[c.jsx(P,{sx:iu,children:c.jsx(iN,{sx:su})}),c.jsx(H,{component:"span",sx:au,children:u?"OSA":"OSA Request"})]})]})]})},sN=dt(c.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function Ur(e){return c.jsx(sN,{...e})}const Sy=dt(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"}),"Clear");function lu(e){return!e||typeof e!="string"?"":e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function wy({onClose:e,selectedProducts:t=[],selectedCategories:n=[],open:r,stores:i=[],onCreateSuccess:s}){const a=yn(),{createdById:l,createdByName:d,createCatalogLoading:p,createCatalogError:u}=Qe(N=>N.dashboard),f=Array.isArray(t)?t.length:0,y=Array.isArray(n)?n.length:0,x=f+y,[g,h]=F.useState("Christmas Super Sale 2025"),[m]=F.useState(""),[S,C]=F.useState(["all"]),[b,v]=F.useState(!1),w=F.useRef(null),[A,k]=F.useState(null),[D,O]=F.useState(280),B=F.useMemo(()=>lu(g),[g]),L=F.useMemo(()=>B?`/${B}`:"",[B]);F.useEffect(()=>{r&&a(Pf())},[r,a]),F.useEffect(()=>{u&&a(Pf())},[g,B,u,a]);const E=F.useMemo(()=>i.filter(N=>N.id!=="all"),[i]),I=S.includes("all")||S.length===0,$=F.useMemo(()=>I?E.map(N=>N.storeCode).filter(Boolean):S.filter(N=>N!=="all").map(N=>E.find(V=>V.id===N)?.storeCode).filter(Boolean),[I,S,E]),W=N=>{C(V=>{const j=V.filter(Y=>Y!=="all");if(j.includes(N)){const Y=j.filter(Z=>Z!==N);return Y.length===0?["all"]:Y}const M=[...j,N];return M.length===E.length?["all"]:M})},_=()=>{const N=g?.trim();if(!N)return;const V=(t||[]).map((M,Y)=>({productId:M.catalogProductId||M.productId||M.id,sorting:Y+1})).filter(M=>M.productId),j=(n||[]).map(M=>typeof M=="string"?M:M?.categoryName??M?.name).filter(Boolean);a(Gs({name:N,slug:B||lu(N),description:m?.trim()||"",storeCode:$,createdById:l,createdByName:d||"Admin",products:V,categories:j})).unwrap().then(()=>{const M=B||lu(N);typeof s=="function"&&s(M),e()}).catch(()=>{})},z=jn().createCatalog;return c.jsxs(wo,{open:r,onClose:e,maxWidth:!1,PaperProps:{sx:z.dialog},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[c.jsx(Co,{sx:{p:0},children:c.jsxs(P,{sx:z.header,children:[c.jsxs(H,{sx:z.headerTitle,children:["Create Catalog of ",x," ",y>0&&f===0?x===1?"Category":"Categories":"Items"]}),c.jsx(P,{component:"button",onClick:e,sx:z.clearIconCard,"aria-label":"Close",children:c.jsx(Sy,{sx:{fontSize:16,color:"#454545"}})})]})}),c.jsxs(Hi,{sx:z.content,children:[c.jsxs(P,{sx:z.fieldBlock,children:[c.jsx(H,{sx:z.fieldLabel,children:"Catalog Name"}),c.jsx("input",{type:"text",value:g,onChange:N=>h(N.target.value),style:z.input})]}),c.jsxs(P,{sx:z.fieldBlock,children:[c.jsx(H,{sx:z.fieldLabel,children:"Catalog Link"}),c.jsxs("div",{style:{position:"relative",width:"100%"},children:[c.jsx("input",{type:"text",readOnly:!0,value:L,style:{...z.input,...z.inputReadOnly,paddingRight:36}}),L&&c.jsx(tu,{color:"green",fontSize:"18px",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]})]}),c.jsxs(P,{sx:z.fieldBlock,children:[c.jsx(H,{sx:z.fieldLabel,children:"For These Stores"}),c.jsxs(P,{sx:{width:"100%"},children:[c.jsxs(P,{ref:w,sx:z.storeDropdown,onClick:()=>{const N=!b;v(N),N&&w.current?(k(w.current),O(w.current.offsetWidth??280)):N||k(null)},children:[c.jsx(P,{sx:{display:"flex",alignItems:"center",mr:1},children:c.jsx(Zd,{sx:{width:20,height:20}})}),c.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:I?"All Stores":`${S.length} store(s) selected`}),c.jsx("span",{style:{color:"#454545",fontWeight:400,fontSize:12,marginLeft:4},children:` out of ${E.length} stores`}),c.jsx(Ur,{sx:{color:"#454545",ml:"auto"}})]}),c.jsxs(Xi,{open:b,onClose:()=>{v(!1),k(null)},anchorEl:A,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{mt:1,minWidth:D,maxHeight:280,border:"1px solid #F1F1F1",borderRadius:"6px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)"}}},MenuListProps:{sx:{maxHeight:120,overflowY:"auto",py:0},disablePadding:!0},children:[c.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:I?700:400,color:I?"#222":"#444",background:I?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{C(["all"]),v(!1)},children:[c.jsx(Ct,{size:"small",checked:I,sx:{p:.5,mr:1}}),"All Stores"]}),E.map(N=>{const V=S.includes(N.id);return c.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:V?700:400,color:V?"#222":"#444",background:V?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>W(N.id),children:[c.jsx(Ct,{size:"small",checked:V,sx:{p:.5,mr:1}}),N.name]},N.id)})]})]})]}),u&&c.jsx(H,{color:"error",fontSize:14,sx:{mb:2},children:u}),c.jsx(P,{sx:{display:"flex",justifyContent:"flex-end"},children:c.jsx(tt,{variant:"contained",color:"primary",disabled:p||!g?.trim()||x===0,onClick:_,sx:z.createButton,children:p?"Creating...":"Create"})})]})]})}function Cy({onClose:e,open:t,stores:n=[],selectedProducts:r=[],selectedCategories:i=[],onSuccess:s}){const a=yn(),{createOsaRequestLoading:l,createOsaRequestError:d}=Qe(w=>w.dashboard),[p,u]=F.useState(["all"]),[f,y]=F.useState(!1),x=F.useMemo(()=>n.filter(w=>w.id!=="all"&&w.storeCode!=="all"),[n]),g=p.includes("all")||p.length===0,h=F.useMemo(()=>g?x.map(w=>w.storeCode).filter(Boolean):p.filter(w=>w!=="all").map(w=>x.find(A=>A.id===w)?.storeCode).filter(Boolean),[g,p,x]),m=F.useMemo(()=>(r||[]).map(w=>w.catalogProductId||w.productId||w.id).filter(Boolean).map(String),[r]),S=F.useMemo(()=>(Array.isArray(i)?i:[]).filter(Boolean).map(String),[i]),C=h.length>0&&(m.length>0||S.length>0);F.useEffect(()=>{t&&a(j1())},[t,a]);const b=w=>{u(A=>{const k=A.filter(O=>O!=="all");if(k.includes(w)){const O=k.filter(B=>B!==w);return O.length===0?["all"]:O}const D=[...k,w];return D.length===x.length?["all"]:D})},v=()=>{C&&a(Xs({storeCodes:h,products:m,categories:S})).unwrap().then(()=>{typeof s=="function"&&s(),e()}).catch(()=>{})};return c.jsxs(wo,{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(Co,{children:c.jsxs(P,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsx(H,{variant:"h6",fontWeight:600,ml:-3,children:"New OSA Request"}),c.jsx(vt,{onClick:e,size:"small","aria-label":"Close",children:c.jsx(hy,{})})]})}),c.jsx(H,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),c.jsxs(P,{sx:{position:"relative",mb:3},children:[c.jsxs(P,{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(w=>!w),children:[c.jsx(P,{sx:{display:"flex",alignItems:"center",mr:1},children:c.jsx(Zd,{size:12,style:{color:"#555",marginRight:4}})}),c.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:g?"All Stores":`${p.length} store(s) selected`}),c.jsx("span",{style:{color:"#454545",fontWeight:400,fontSize:12,marginLeft:4},children:`out of ${x.length} stores`}),c.jsx(Ur,{sx:{color:"#888",ml:"auto"}})]}),f&&c.jsxs(P,{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(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:g?700:400,color:g?"#222":"#444",background:g?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{u(["all"]),y(!1)},children:[c.jsx(Ct,{size:"small",checked:g,sx:{p:.5,mr:1}}),"All Stores"]}),x.map(w=>{const A=p.includes(w.id);return c.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:A?700:400,color:A?"#222":"#444",background:A?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>b(w.id),children:[c.jsx(Ct,{size:"small",checked:A,sx:{p:.5,mr:1}}),w.name]},w.id)})]})]}),d&&c.jsx(H,{color:"error",fontSize:14,sx:{mb:2},children:d}),c.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:c.jsx(tt,{variant:"contained",color:"primary",disabled:!C||l,onClick:v,sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:l?"Sending...":"Send Request"})})]})}const Wn=(e,t=0)=>{const n=Number(e);return Number.isFinite(n)?n:t},Vn=()=>{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}`}},ls=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=Wn(r,0),a=Wn(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}},aN=(e,t,n={})=>{const{productName:r,mrp:i,discountPrice:s}=ls(e),a=Math.max(0,Wn(i,0)-Wn(s,0)),l=n.validTo||Vn().validTo,d=n.ppd||Vn().ppd;return`
236
236
  <div class="sticker design-1">
237
237
  ${t.discountPrice?`
238
238
  <div class="our-price-header">SAVE</div>
@@ -1577,7 +1577,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
1577
1577
  <\/script>
1578
1578
  </body>
1579
1579
  </html>
1580
- `},hN=({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(f=>{for(let y=0;y<a;y++)l.push(f)});const d={A4:pN,A7:fN},u=(d[n]||d.A4)({selectedProducts:l,selectedDesign:t,itemsToShow:r});try{s.document.open(),s.document.write(u),s.document.close()}catch(f){console.error("Error writing to print window:",f),alert("Error generating print preview. Please check console for details.")}},yl=c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:"#FFFFFF"}}),bl=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(as,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})}),gN=()=>{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}`}},Ty=({open:e,onClose:t,selectedProducts:n=[]})=>{const r=jn(),i=F.useMemo(()=>gN(),[]),[s,a]=F.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[l,d]=F.useState("design1"),[p,u]=F.useState(""),[f,y]=F.useState(1),[x,g]=F.useState(!1),[h,m]=F.useState(!1),S=z=>a(N=>({...N,[z]:!N[z]})),C=()=>{if(!n||n.length===0){m(!0);return}if(!p){g(!0);return}g(!1);const z=f>0?f:1;hN({selectedProducts:n,selectedDesign:l,sheetSize:p,itemsToShow:s,copyPerItem:z}),t()};F.useEffect(()=>{(e&&n&&n.length>0||!e)&&queueMicrotask(()=>m(!1))},[e,n]);const b=r.promoPrintModal,v=_t("(max-width:430px)"),w=v?{...b.dialog,width:"min(379px, calc(100vw - 32px))",maxWidth:"min(379px, calc(100vw - 32px))",height:"auto",maxHeight:"90vh"}:b.dialog,A=v?{...b.header,width:"100%",height:"auto",pt:"18px",pb:"14px",px:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",boxSizing:"border-box",overflow:"visible"}:b.header,k=v?{...b.headerTitle,fontSize:"14px",lineHeight:"18px"}:b.headerTitle,D=v?{...b.sectionTitle,fontSize:"12px",lineHeight:"16px",marginBottom:"6px"}:b.sectionTitle,O=v?{...b.itemsToShowSection,width:"100%"}:b.itemsToShowSection,B=v?{...b.checkboxRow,width:"100%",gridTemplateColumns:"1fr 1fr",gap:"8px 12px"}:b.checkboxRow,L=v?{...b.middleCard,width:"100%",gap:"16px"}:b.middleCard,E=v?{...b.designSection,width:"100%"}:b.designSection,I=v?{...b.sheetSizeSection,width:"100%",gap:"6px",minHeight:52}:b.sheetSizeSection,$=v?{...b.sheetSizeHeader,width:"100%",fontSize:"12px",lineHeight:"16px",height:18}:b.sheetSizeHeader,W=v?{...b.sheetSizeRow,width:"100%",flexDirection:"column",alignItems:"flex-start",gap:"8px"}:b.sheetSizeRow,_=v?{...b.copyPerItemRow,width:"100%",mt:0}:b.copyPerItemRow;return c.jsxs(wo,{open:e,onClose:t,maxWidth:!1,PaperProps:{sx:w},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[c.jsx(Co,{sx:{p:0},children:c.jsxs(P,{sx:A,children:[c.jsx(U,{sx:{...k,flex:"1 1 auto",minWidth:0},children:"Promo Print"}),c.jsx(P,{component:"button",onClick:t,sx:{...b.crossIconCard,flexShrink:0,ml:"auto"},"aria-label":"Close",children:c.jsx(Sy,{sx:{fontSize:16,color:"#454545"}})})]})}),c.jsx(Ui,{sx:v?{...b.content,px:"12px",pt:"6px"}:b.content,children:c.jsxs(P,{sx:L,children:[c.jsxs(P,{sx:O,children:[c.jsx(U,{sx:D,children:"Items to show"}),c.jsxs(P,{sx:B,children:[c.jsx(fn,{control:c.jsx(Ct,{checked:s.productName,onChange:()=>S("productName"),size:"small",sx:b.checkboxSx,icon:yl,checkedIcon:bl}),label:"Product Name",sx:b.checkboxLabel}),c.jsx(fn,{control:c.jsx(Ct,{checked:s.percentOff,onChange:()=>S("percentOff"),size:"small",sx:b.checkboxSx,icon:yl,checkedIcon:bl}),label:"Percent OFF",sx:b.checkboxLabel}),c.jsx(fn,{control:c.jsx(Ct,{checked:s.mrp,onChange:()=>S("mrp"),size:"small",sx:b.checkboxSx,icon:yl,checkedIcon:bl}),label:"MRP",sx:b.checkboxLabel}),c.jsx(fn,{control:c.jsx(Ct,{checked:s.discountPrice,onChange:()=>S("discountPrice"),size:"small",sx:b.checkboxSx,icon:yl,checkedIcon:bl}),label:"Discount Price",sx:b.checkboxLabel})]})]}),c.jsxs(P,{sx:E,children:[c.jsx(U,{sx:D,children:"Promo Design"}),c.jsxs(P,{sx:b.designContainer,children:[c.jsxs(P,{onClick:()=>d("design1"),sx:{...b.designCard.base,...l==="design1"?b.designCard.selected:b.designCard.unselected},children:[c.jsx(U,{sx:{...b.design1.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"SAVE"}),c.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(U,{component:"span",sx:{...b.design1.rupeeSymbol},children:"₹"}),c.jsx(U,{component:"span",sx:{...b.design1.bigPrice},children:"1387"})]})}),c.jsxs(P,{sx:{...b.design1.bottomInfo,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[c.jsxs(U,{sx:{...b.design1.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["OUR PRICE: ",c.jsx(U,{component:"span",sx:b.design1.rupeeSymbolSmall,children:"₹"}),"73"]}),c.jsxs(U,{sx:{...b.design1.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP: ",c.jsx(U,{component:"span",sx:b.design1.rupeeSymbolSmall,children:"₹"}),"1460"]})]}),c.jsx(U,{sx:{...b.design1.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"}),c.jsxs(P,{sx:b.design1.dateRow,children:[c.jsxs(U,{sx:b.design1.validFromText,children:["VALID TO: ",i.validTo]}),c.jsxs(U,{sx:b.design1.validToText,children:["PPD: ",i.ppd]})]})]}),c.jsxs(P,{onClick:()=>d("design2"),sx:{...b.designCard.base,...l==="design2"?b.designCard.selected:b.designCard.unselected},children:[c.jsxs(P,{sx:b.design2.mainOfferBlock,children:[c.jsx(U,{sx:{...b.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 1PC @5.00% Off"}),c.jsx(U,{sx:{...b.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 2PC @5.00% Off"})]}),c.jsxs(U,{sx:{...b.design2.mrpBlock,visibility:s.mrp?"visible":"hidden"},children:["MRP:",c.jsx(U,{component:"span",sx:b.design2.rupeeSymbolSmall,children:"₹"}),"1460"]}),c.jsx(U,{sx:{...b.design2.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),c.jsxs(P,{sx:b.design2.dateRow,children:[c.jsxs(U,{sx:b.design2.validFromText,children:["(Valid till: ",i.validTo,")"]}),c.jsxs(U,{sx:b.design2.validToText,children:["(PPD: ",i.ppd,")"]})]})]}),c.jsxs(P,{onClick:()=>d("design3"),sx:{...b.designCard.base,...l==="design3"?b.designCard.selected:b.designCard.unselected},children:[c.jsx(U,{sx:{...b.design3.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),c.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(U,{component:"span",sx:{...b.design3.rupeeSymbol},children:"₹"}),c.jsx(U,{component:"span",sx:{...b.design3.bigPrice},children:"29"})]})}),c.jsx(U,{sx:{...b.design3.productName,visibility:s.productName?"visible":"hidden"},children:"POTATO BIG KG"}),c.jsxs(P,{sx:b.design3.dateRow,children:[c.jsxs(U,{sx:b.design3.validFromText,children:["[ValidTo: ",i.validTo,"]"]}),c.jsxs(U,{sx:b.design3.validToText,children:["[PPD: ",i.ppd,"]"]})]})]}),c.jsxs(P,{onClick:()=>d("design4"),sx:{...b.designCard.base,...l==="design4"?b.designCard.selected:b.designCard.unselected},children:[c.jsx(U,{sx:{...b.design4.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),c.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(U,{component:"span",sx:{...b.design4.rupeeSymbol},children:"₹"}),c.jsx(U,{component:"span",sx:{...b.design4.priceWhole},children:"899"}),c.jsx(U,{component:"span",sx:{...b.design4.priceDecimal},children:".70"})]})}),c.jsxs(P,{sx:{...b.design4.saveMrpRow,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[c.jsxs(U,{sx:{...b.design4.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["SAVE: ",c.jsx(U,{component:"span",sx:b.design4.rupeeSymbolSmall,children:"₹"}),"2099.30"]}),c.jsxs(U,{sx:{...b.design4.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP:",c.jsx(U,{component:"span",sx:b.design4.rupeeSymbolSmall,children:"₹"}),"2999"]})]}),c.jsx(U,{sx:{...b.design4.productCode,visibility:s.productName?"visible":"hidden"},children:"MCS-SWE-CP-SO-RG-XXL-1402A5-PuLa"}),c.jsxs(P,{sx:b.design4.dateRow,children:[c.jsxs(U,{sx:b.design4.validFromText,children:["[VALIDITY: ",i.validTo,"]"]}),c.jsxs(U,{sx:b.design4.validToText,children:["[PPID: ",i.ppd,"]"]})]})]}),c.jsxs(P,{onClick:()=>d("design5"),sx:{...b.designCard.base,...l==="design5"?b.designCard.selected:b.designCard.unselected},children:[c.jsxs(P,{sx:b.design5.topSection,children:[c.jsxs(P,{sx:b.design5.leftColumn,children:[c.jsxs(P,{sx:b.design5.rewardsLogo,children:[c.jsxs(P,{sx:b.design5.logoLine1,children:[c.jsx(U,{sx:b.design5.logoMy,children:"My"}),c.jsx(U,{sx:b.design5.logoSpencer,children:"spencers"})]}),c.jsxs(U,{sx:b.design5.logoRewards,children:["Rewa",c.jsx(U,{component:"span",sx:b.design5.rupeeSymbol1,children:"₹"}),"ds"]})]}),c.jsxs(U,{sx:{...b.design5.memberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["MEMBER",c.jsx("br",{}),"PRICE"]}),c.jsxs(U,{sx:{...b.design5.memberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[c.jsx(U,{component:"span",sx:b.design5.rupeeSymbol,children:"₹"}),"99"]})]}),c.jsx(P,{sx:b.design5.verticalDivider}),c.jsxs(P,{sx:b.design5.rightColumn,children:[c.jsxs(U,{sx:{...b.design5.nonMemberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["NON",c.jsx("br",{}),"MEMBER",c.jsx("br",{}),"PRICE"]}),c.jsxs(U,{sx:{...b.design5.nonMemberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[c.jsx(U,{component:"span",sx:b.design5.rupeeSymbol,children:"₹"}),"116"]})]})]}),c.jsxs(P,{sx:b.design5.middleSection,children:[c.jsx(U,{sx:{...b.design5.productName,visibility:s.productName?"visible":"hidden"},children:"MAGGI 2-MINUTE MASALA NOODLES 560G"}),c.jsxs(U,{sx:{...b.design5.mrpText,visibility:s.mrp?"visible":"hidden"},children:["MRP ",c.jsx(U,{component:"span",sx:b.design5.rupeeSymbolSmall,children:"₹"}),"120"]})]}),c.jsx(P,{sx:b.design5.horizontalDivider}),c.jsx(P,{sx:b.design5.bottomSection,children:c.jsx(U,{sx:b.design5.savingsMessage,children:"SAVE UPTO 6% EXTRA MONTHLY WITH MY SPENCERS REWARDS"})})]})]})]}),c.jsxs(P,{sx:I,children:[c.jsx(U,{sx:$,children:"Sheet Size"}),c.jsxs(P,{sx:W,children:[c.jsx(P,{sx:b.sheetSizeGroup,children:["A4","A7"].map(z=>c.jsx(P,{onClick:()=>{u(z),g(!1)},sx:{...b.sheetSizeBtn,...p===z?b.sheetSizeBtnSelected:{}},children:c.jsx(U,{sx:p===z?{...b.sheetSizeBtnText,...b.sheetSizeBtnTextSelected,fontSize:v?"11px":void 0}:{...b.sheetSizeBtnText,fontSize:v?"11px":void 0},children:z})},z))}),c.jsxs(P,{sx:_,children:[c.jsx(U,{sx:b.copyPerItemLabel,children:"Enter Copy per item:"}),c.jsx(rs,{type:"number",value:f,onChange:z=>{const N=parseInt(z.target.value,10);!isNaN(N)&&N>0?y(N):z.target.value===""&&y(1)},inputProps:{min:1,style:{padding:"4px 8px",textAlign:"center",width:"60px"}},sx:{"& .MuiOutlinedInput-root":{height:28,width:"80px",bgcolor:"#F5F5F5"},"& .MuiOutlinedInput-input":{padding:"4px 8px",fontSize:"12px"}},size:"small"})]})]})]})]})}),c.jsxs(Id,{sx:{...b.actions,flexDirection:"column",alignItems:"flex-start"},children:[x&&c.jsx(U,{variant:"body2",sx:{color:"red",mb:.5},children:"Please select a sheet size."}),h&&c.jsx(U,{variant:"body2",sx:{color:"red",mb:.5},children:"No products selected. Please select products first."}),c.jsx(P,{sx:{...b.printButtonWrapper,alignSelf:"stretch",display:"flex",justifyContent:"flex-end"},children:c.jsx(tt,{type:"button",onClick:C,variant:"contained",sx:b.printButton,children:"Print"})})]})]})},mN=dt([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");function cu(e){return c.jsx(mN,{...e})}const yN=dt([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");function du(e){return c.jsx(yN,{...e})}const bN=()=>{const e=yn(),t=Bt(),n=It(),r=jn(),i=n.state?.catalogCreated&&n.state?.catalogSlug?{catalogSlug:n.state.catalogSlug}:null,s=()=>{t(n.pathname,{replace:!0,state:{}})},a=r.categoryDetail,[l,d]=F.useState({category:"all",status:"all",search:"",store:[]}),{integrationData:p,companyId:u,loading:f,categoriesLoading:y,categoriesFetchSettled:x,error:g}=Qe(ce=>ce.dashboard),h=F.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]),m=Qe(ce=>ce.dashboard),{categoryList:S=[],stores:C=[],categoryPagination:b={}}=m||{},v=S,{currentPage:w=1,limit:A=10,totalCount:k=0,totalPages:D=1,hasNextPage:O=!1}=b,{sharedCatalogues:B=[],sharedCataloguesTotal:L=0,lastStableActiveCatalogsCount:E=null}=Qe(ce=>ce.productSettings??{}),I=F.useMemo(()=>Array.isArray(B)?B.filter(ce=>ce.status===!0).length:0,[B]),W=L>0&&B.length>=L?I:E??I,_=Array.isArray(S)&&S.length>0,z=()=>{h.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},N=F.useMemo(()=>C.length>0?C:[{id:"all",name:"All Stores",storeCode:"all"}],[C]),V=F.useCallback(ce=>{d(ce)},[d]),j=F.useCallback((ce={})=>{const Ee=Array.isArray(l.store)?l.store:[],We={...ce};if(Ee.length>0&&!Ee.includes("all")){const st=Ee.map(ue=>C.find(ze=>ze.id===ue)?.storeCode).filter(Boolean);st.length>0&&(We.storeCode=st[0])}return l.search!=null&&String(l.search).trim()!==""&&(We.search=String(l.search).trim()),l.minOsa!=null&&l.minOsa!==""&&(We.minOsa=l.minOsa),l.maxOsa!=null&&l.maxOsa!==""&&(We.maxOsa=l.maxOsa),l.order!=null&&l.order!==""&&(We.order=l.order),We},[l.store,l.search,l.minOsa,l.maxOsa,l.order,C]),M=F.useRef(null);F.useEffect(()=>{if(!u)return;const ce=j({page:w,limit:A}),Ee=JSON.stringify(ce);M.current!==Ee&&(M.current=Ee,e(An(ce)))},[u,w,A,j,e]);const Y=ce=>{const Ee=j({page:ce,limit:A});e(An(Ee))},Z=ce=>{const Ee=j({page:1,limit:ce});e(An(Ee))},[J,q]=F.useState(!1);F.useEffect(()=>{!u&&!J?e(ni()).finally(()=>{q(!0)}):u&&queueMicrotask(()=>q(!0))},[e,u,J]);const K=F.useRef(null),H=F.useRef(n.pathname),oe=F.useRef(null);F.useEffect(()=>{n.pathname==="/"&&e(kf())},[e,n.pathname]),F.useEffect(()=>{u&&u!==K.current&&(K.current=u,e(qt(u)),e(An({page:1,limit:10})),e(ri()),e(ti()),e(rn({page:1})))},[e,u]),F.useEffect(()=>{const ce=H.current;H.current=n.pathname;const Ee=u&&n.pathname==="/"&&ce!=="/",We=u&&n.pathname==="/"&&!!n.state?.catalogCreated;(Ee||We)&&(e(rn({page:1})),e(An(j({page:w,limit:A}))),e(ti()))},[n.pathname,n.state?.catalogCreated,u,e,j,w,A]),F.useEffect(()=>{if(!u||L<=0)return;(Array.isArray(B)?B.length:0)<L&&e(rn({page:1,limit:L}))},[u,L,B?.length,e,B]);const[ne,te]=F.useState(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]),[ie,R]=F.useState(Array.isArray(n.state?.selectedProducts)?n.state.selectedProducts:[]),[le,ae]=F.useState(()=>Array.isArray(n.state?.pinnedCategoryNames)?n.state.pinnedCategoryNames.map(ce=>String(ce).trim()).filter(Boolean):Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories.map(ce=>(ce?.categoryName??ce?.name??"").toString().trim()).filter(Boolean):[]),me=F.useRef(ne),Ve=F.useRef(le),Ie=F.useRef(ie);F.useEffect(()=>{me.current=ne},[ne]),F.useEffect(()=>{Ve.current=le},[le]),F.useEffect(()=>{Ie.current=ie},[ie]);const Ne=F.useMemo(()=>{const ce=Array.isArray(ie)?ie:[],Ee=new Set;return ce.forEach(We=>{const st=(We?.categoryName??We?.category??"").toString().trim();st&&Ee.add(st)}),Array.from(Ee)},[ie]),Ue=ce=>{t(`/category?categoryName=${encodeURIComponent(ce.name||ce.categoryName)}`,{state:{filters:l,selectedCategories:ne,selectedProducts:ie,pinnedCategoryNames:le}})},[je,$e]=F.useState(!1),[de,He]=F.useState(!1),[De,se]=F.useState(!1),[re,fe]=F.useState([]),[,ve]=F.useState(!1),Ae=F.useCallback((ce,Ee={})=>{const We=Array.isArray(l.store)?l.store:[],st={page:1,limit:5e3,...Ee};if(ce&&String(ce).trim()!==""&&(st.categoryName=String(ce).trim()),We.length>0&&!We.includes("all")){const ue=We.map(he=>C.find(At=>At.id===he)?.storeCode).filter(Boolean);ue.length>0&&(st.storeCode=ue.join(","))}return l.search!=null&&String(l.search).trim()!==""&&(st.search=String(l.search).trim()),st},[l.store,l.search,C]),Pe=F.useCallback(async()=>{const ce=(Array.isArray(ne)?ne:[]).map(ue=>(ue?.categoryName??ue?.name??"").toString().trim()).filter(Boolean),Ee=Array.isArray(ie)?ie:[],We={};Ee.forEach(ue=>{const he=(ue?.categoryName??ue?.category??"").toString().trim();he&&(We[he]||(We[he]=[]),We[he].push(ue))});const st=new Set(Object.keys(We));if(ce.length===0&&Ee.length===0){fe([]),se(!0);return}ve(!0);try{const ue=[];for(const ke of ce){const Je=We[ke];if(Je&&Je.length>0)ue.push(Je);else{const Hn=Ae(ke),$t=await e(Ys(Hn)).unwrap().catch(()=>({})),Ut=Array.isArray($t?.data)?$t.data:Array.isArray($t?.products)?$t.products:Array.isArray($t)?$t:[];ue.push(Ut)}}ce.forEach(ke=>st.delete(ke)),st.forEach(ke=>{We[ke]?.length&&ue.push(We[ke])});const he=ue.flat().filter(Boolean),ze=new Set,At=he.map(ke=>({...ke,catalogProductId:ke?.productId??ke?.catalogProductId??ke?.id,id:ke?.id||ke?.sku||ke?.productName})).filter(ke=>{const Je=(ke?.productId||ke?.id||ke?.sku||ke?.productName||"").toString();return!Je||ze.has(Je)?!1:(ze.add(Je),!0)});fe(At),se(!0)}catch{fe([]),se(!0)}finally{ve(!1)}},[e,ie,ne,Ae]),xe=F.useCallback(ce=>{const Ee=ce?.categoryName??ce?.name??"",We=Ee,st=me.current.some(he=>(he?.categoryName??he?.name)===Ee),ue=!!Ee&&Ve.current.includes(Ee);if(st||ue){ae(he=>he.filter(ze=>ze!==Ee)),st?(R(he=>!Array.isArray(he)||!We?he||[]:he.filter(ze=>(ze?.categoryName??ze?.category??"").toString().trim()!==We)),te(he=>he.filter(ze=>(ze?.categoryName??ze?.name)!==Ee))):R(he=>!Array.isArray(he)||!We?he||[]:he.filter(ze=>(ze?.categoryName??ze?.category??"").toString().trim()!==We));return}Ee&&ae(he=>[...new Set([...he,Ee])]),te(he=>[...he,ce])},[]),Ye=J&&g&&!u,{setTopbarProps:Fe}=ss()||{};return F.useEffect(()=>{if(Fe)return Ye?(Fe({hide:!0}),()=>Fe({})):(Fe({filters:l,onFilterChange:V,styles:a.topBar,stores:N,tenantStatus:h,hasProducts:_}),()=>Fe({}))},[Fe,Ye,l,V,a.topBar,N,h,_]),c.jsxs(c.Fragment,{children:[i&&c.jsx(YI,{catalogSlug:i.catalogSlug,onClose:s}),c.jsx(P,{sx:Ye?{marginTop:0}:_?a.contentWrapper??{marginTop:0,display:"flex",flexDirection:"column",alignItems:"center"}:{marginTop:0},children:Ye?c.jsx(eu,{handleStartSyncing:z,loading:!1,sessionExpired:!0}):!J&&!u?c.jsx(Io,{text:"Fetching",fullScreen:!0}):y?c.jsx(Io,{text:"Fetching Categories",fullScreen:!0}):_?c.jsx(P,{sx:a.root,children:c.jsxs(pn,{ref:oe,maxWidth:"lg",sx:{px:{xs:1,sm:2,md:4}},children:[c.jsx(yy,{productState:m,categoryCount:S.length,activeCatalogsCount:W,onManageClick:()=>t("/catalogs/manage-shared")}),S.length>0?c.jsxs(c.Fragment,{children:[c.jsx(ZI,{categoryData:v,styles:a,onView:Ue,selectedCategories:ne,pinnedCategoryNames:le,categoryNamesFromProductSelection:Ne,onToggleCategory:xe,totalCategoryCount:k,onClearAllCategories:()=>{te([]),ae([]),R([])}}),c.jsx(vy,{containerRef:oe,selectedCategories:ne,selectedProducts:ie,onPromoPrint:Pe,onCreateCatalog:()=>$e(!0),onOsaRequest:()=>He(!0)}),c.jsx(Ty,{open:De,onClose:()=>{se(!1),fe([])},selectedProducts:re},De?"open":"closed"),c.jsx(wy,{open:je,onClose:()=>$e(!1),stores:N,selectedProducts:ie,selectedCategories:ne,onCreateSuccess:ce=>{te([]),R([]),$e(!1),ce&&t("/",{state:{catalogCreated:!0,catalogSlug:ce}})}}),c.jsx(Cy,{open:de,onClose:()=>He(!1),stores:N,selectedProducts:ie,selectedCategories:ne.map(ce=>ce?.categoryName??ce?.name).filter(Boolean),onSuccess:()=>{te([]),R([]),ae([])}}),k>0&&(()=>{const ce=a?.categoryTablePagination??{};return c.jsxs(P,{sx:{...ce.wrapper||{},width:"100%",marginLeft:"auto",marginRight:0},children:[c.jsxs(P,{sx:ce.resultsPerPageBox,children:[c.jsx(U,{component:"span",sx:ce.resultsPerPageText,children:"Results per page"}),c.jsx(Cn,{value:A,onChange:Ee=>Z(Number(Ee.target.value)),IconComponent:Hr,variant:"standard",disableUnderline:!0,sx:ce.select,children:[5,10,20,50].map(Ee=>c.jsx(Et,{value:Ee,children:Ee},Ee))})]}),c.jsxs(P,{sx:ce.navBox,children:[c.jsx(vt,{size:"small",disabled:w<=1,onClick:()=>Y(1),sx:ce.iconButton,title:"First page",children:c.jsx(cu,{sx:ce.paginationIcon})}),c.jsx(vt,{size:"small",disabled:w<=1,onClick:()=>Y(w-1),sx:ce.iconButton,title:"Previous page",children:c.jsx(os,{sx:ce.paginationIcon})}),c.jsx(U,{component:"span",sx:ce.pageText,children:k===0?"0 of 0":`${(w-1)*A+1}-${Math.min(w*A,k)} of ${k}`}),c.jsx(vt,{size:"small",disabled:!O||w>=D,onClick:()=>Y(w+1),sx:ce.iconButton,title:"Next page",children:c.jsx(zt,{sx:ce.paginationIcon})}),c.jsx(vt,{size:"small",disabled:!O||w>=D,onClick:()=>Y(D),sx:ce.iconButton,title:"Last page",children:c.jsx(du,{sx:ce.paginationIcon})})]})]})})()]}):c.jsxs(P,{sx:{minHeight:280,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:"#f5f7fa",borderRadius:2,p:3},children:[c.jsx(U,{sx:{fontSize:18,fontWeight:600,color:"#454545",mb:1},children:"No Category"}),c.jsx(U,{sx:{fontSize:14,color:"#808080"},children:l.search&&String(l.search).trim()?"No category found for your search.":"No category available."})]})]})}):c.jsx(eu,{handleStartSyncing:z,loading:f||y||!x,sessionExpired:!1,hasIntegration:h.matched,showFetchingCategoriesLabel:!0,isHomeCategorySearch:!!(l.search&&String(l.search).trim()),isHomeCategorySearchEmpty:!!(l.search&&String(l.search).trim())&&x&&!y&&!f})})]})};function Un({icon:e,title:t,subtitle:n,subtitleValue:r,onClick:i,selected:s,highlightStyle:a={},action:l,disabled:d=!1,customStyle:p={},titleColorWhenDisabled:u,titleColor:f,subtitleColor:y}){const x={width:"100%",maxWidth:"100%",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":f||"#000000",h=d?"#bbbbbb":y||"#808080",m={card:{...x,...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:h,fontSize:12,fontWeight:400,mt:.5,lineHeight:"16px"}};return c.jsxs(P,{onClick:d?void 0:i,sx:{...m.card,...p||{}},children:[e&&c.jsx(P,{sx:m.icon,children:e}),c.jsxs(P,{sx:m.cardInner,children:[c.jsxs(P,{children:[c.jsx(U,{sx:m.title,children:t}),n&&c.jsx(U,{sx:m.subtitle,children:r?`${r} ${n}`:n})]}),l&&c.jsx(P,{sx:{ml:"auto",display:"flex",alignItems:"center",justifyContent:"center"},children:l})]})]})}function uu({size:e=15,color:t="#454545",...n}){return c.jsx(LI,{size:e,color:t,...n})}const xN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAASpJREFUeAGVUT1OhGAQ5b/2BPxewhISIHSyJ/AKlnbunsBsZenuCdQOgWQp7VY7C0i+0u2w00DAN2ZNYMOXyCSTGZh5897MJwgcC4Jg7/u+y6tLvELf92bXdeYsIDGJonimKMrFLCBAlwivYI1d1zX/BQzD8AYhlmV5AalrVVV3U2B5KM9xnHsCwb00Td8Nw3iRJOkcQ65R+9R1ncG+flXR9egQtBOcodFLkoQJ452vULs9rsHQv5Ityzrg4w1+wH+XilVVPQ+VINxh4AcAa+RPTdM8isPJURTRE+zQwLIs87BvjPyBGPI8X44OeLo0gdu23YNhQ1eFb09Bo+P8WVmWtW3b30iXkF+DeSFM2OQ7gnFDEbK3AscmgUVR1AgMQDYLeLSVpmkFr/gDCe+DRKwM0doAAAAASUVORK5CYII=",vN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAIpJREFUeAFVTsENwyAMxCkPnowQNmgnCB8Qv46QrtNfV+gG/YPUjtABeGSEDIAgPimJEkvnO9ln+YRYyzn38N5/xKG6gx5aa4O1Vm8DwgXzyLgyJoZm07uU8upYjETUY8H8Y4a+K6U04TyE0Ndav2zE4hZj/GN+Qcs5z8YYGFVK6bn9lLuQEklPaRdNCCms4XdYvwAAAABJRU5ErkJggg==";function SN(e){const{sx:t={},...n}=e;return c.jsxs(P,{sx:{width:20,height:20,opacity:1,position:"relative",flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",...t},...n,children:[c.jsx(P,{component:"img",src:xN,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(P,{component:"img",src:vN,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 Ay({size:e=15,color:t="#454545",...n}){return c.jsx(_I,{size:e,color:t,...n})}function wN({size:e=15,color:t="#454545",...n}){return c.jsx($I,{size:e,color:t,...n})}function CN({size:e=15,color:t="#454545",...n}){return c.jsx(BI,{size:e,color:t,...n})}function EN({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"},f=Bt(),y=d?.configs?.sync_frequency||"Daily",x=d?.configs?.sync_time||"10:00 AM",g=d?.type||s||"FTP",h={width:"100%",maxWidth:900,minHeight:468,mx:"auto",mt:4,px:"20px",boxSizing:"border-box",display:"flex",flexDirection:"column",gap:3},m=()=>c.jsxs(P,{sx:{width:"100%",minHeight:156,display:"flex",flexDirection:"column",gap:1.5},children:[c.jsx(P,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",width:67,height:20},children:[c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"General"}),c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]})}),c.jsxs(P,{sx:{width:"100%",minHeight:124,display:"flex",flexDirection:"column",gap:"4px"},children:[c.jsx(Un,{icon:c.jsx(uu,{size:15,color:"#454545"}),title:"Manage Shared Catalogs",onClick:()=>f("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:u,action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(Un,{icon:c.jsx(SN,{}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:u,action:c.jsx(P,{sx:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(Km,{checked:e,onChange:v=>t&&t(v.target.checked),size:"small"})})})]})]}),S=(v,w)=>c.jsxs(P,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",width:48,height:20},children:[c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"Sync"}),c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]}),c.jsxs(P,{sx:{width:78,height:16,display:"flex",alignItems:"center",gap:"4px",cursor:v?"not-allowed":"pointer",opacity:v?.5:1},onClick:v?void 0:w,children:[c.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(is,{sx:{width:14.66,height:12,color:"#2D64B8"}})}),c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",color:"#2D64B8",width:62},children:"Sync Now"})]})]}),C=v=>{const w=v?y:"Daily",A=v?x:"10:00 AM",k=!v&&i===0;return c.jsxs(P,{sx:{width:"100%",minHeight:288,display:"flex",flexDirection:"column",gap:"4px"},children:[S(k,l),!v&&i===0&&c.jsx(Un,{icon:c.jsx(is,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Setup Sync",subtitle:"Sync products",onClick:a,highlightStyle:u,action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})}),!v&&i===1&&c.jsxs(c.Fragment,{children:[c.jsx(Un,{icon:c.jsx(is,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:g,highlightStyle:u,action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(Un,{icon:c.jsx(uu,{size:15,color:"#454545"}),title:`Setup ${g} Details`,subtitle:"Start setup",onClick:()=>{f("/products/settings/ftp-sync",{state:{fromSyncStep:i}})},highlightStyle:u,action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})})]}),i===3&&c.jsxs(c.Fragment,{children:[c.jsx(Un,{icon:c.jsx(is,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:s||"FTP",highlightStyle:u,disabled:!0,titleColorWhenDisabled:"#454545",action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(Un,{icon:c.jsx(uu,{size:15,color:"#454545"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>f("/products/settings/ftp-sync",{state:{fromSyncStep:i}}),action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsxs(P,{sx:{width:"100%",display:"flex",flexWrap:"nowrap",justifyContent:"space-between","@media (max-width:450px)":{flexDirection:"column",gap:"4px"}},children:[c.jsx(P,{sx:{width:"50%","@media (max-width:450px)":{width:"100%"}},children:c.jsx(Un,{icon:c.jsx(Ay,{size:15,color:"#454545"}),title:"Sync Frequency",subtitle:w,highlightStyle:u,customStyle:{mb:0},onClick:()=>f("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:d}}),action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})})}),c.jsx(P,{sx:{width:"50%","@media (max-width:450px)":{width:"100%"}},children:c.jsx(Un,{icon:c.jsx(wN,{size:15,color:"#454545"}),title:"Sync Time",subtitle:A,highlightStyle:u,customStyle:{mb:0},onClick:()=>f("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:d}}),action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})})})]}),c.jsx(Un,{icon:c.jsx(CN,{size:15,color:"#454545"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u,action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})})]})]})},b=i===3&&d&&Object.keys(d||{}).length>0;return c.jsxs(P,{sx:h,children:[m(),C(b)]})}function TN({open:e,onClose:t,onSave:n}){Mn();const r=jn(),[i,s]=F.useState("sftp"),a=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],l=f=>s(f.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(P,{sx:u.container,children:[c.jsxs(P,{sx:u.header,children:[c.jsx(U,{sx:u.headerTitle,children:"Sync Method"}),c.jsx(vt,{onClick:t,size:"small",sx:u.closeButton,children:c.jsx(jI,{size:20})})]}),c.jsxs(P,{sx:u.content,children:[c.jsx(Qi,{value:i,onChange:l,children:a.map(f=>c.jsx(fn,{value:f.value,control:c.jsx(mr,{icon:c.jsx(P,{sx:u.radioIcon}),checkedIcon:c.jsx(zI,{size:18,color:"#000"}),sx:u.radioChecked}),label:c.jsx(U,{sx:u.radioLabel,children:f.label}),sx:{...u.formControlLabel,...i===f.value&&{backgroundColor:"#F3F8FF"}}},f.value))}),c.jsxs(P,{sx:u.upgradeSection,children:[c.jsx(U,{sx:u.upgradeText,children:"Upgrade for higher sync limits and more features"}),c.jsx(U,{onClick:p,sx:u.managePlanLink,children:"Manage Plan >"})]})]}),c.jsx(P,{sx:u.footer,children:c.jsx(tt,{fullWidth:!0,variant:"contained",onClick:d,sx:u.saveButton,children:"Save"})})]})})}const AN=({isOpen:e,onClose:t,onConfirm:n})=>{const r=jn();let i;return i=r.productSettingModal,c.jsx(So,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:i.modal,children:c.jsxs(P,{sx:i.container,children:[c.jsx(P,{sx:i.header,children:c.jsx(U,{sx:{...i.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),c.jsxs(P,{sx:{...i.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[c.jsx(tt,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),c.jsx(tt,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function PN(){const e=It(),t=Bt(),n=yn(),{companyId:r,integrationData:i,loading:s}=Qe($=>$?.dashboard||{}),[a,l]=F.useState(!0),[d,p]=F.useState(),[u,f]=F.useState(0),[y,x]=F.useState(""),[g,h]=F.useState(!1),[m,S]=F.useState(!1),[C,b]=F.useState(!1),[v,w]=F.useState(""),A=F.useRef(null),k=F.useRef(!1);F.useEffect(()=>{const $=e.state?.tenantIntegrationMatched===!0;r&&r!==A.current&&!s&&(i&&(i?.id||i?.channelId||i?.configs||typeof i=="object"&&Object.keys(i).length>0)?A.current=r:(A.current=r,n(qt(r)))),$&&r&&!s&&!k.current&&(k.current=!0,n(qt(r))),$||(k.current=!1)},[r,n,s,i,e.state]),F.useEffect(()=>{let $=!1;e.state&&typeof e.state.tenantIntegrationMatched=="boolean"&&($=e.state.tenantIntegrationMatched);const W=i&&(i?.id||i?.channelId||i?.configs||Array.isArray(i?.data)&&i.data.length>0||typeof i=="object"&&Object.keys(i).length>0),_=e.state?.fromSyncStep===1?1:$===!0||W?3:0;queueMicrotask(()=>f(_))},[e.state,i]);const D=()=>h(!0),O=$=>{x($),f(1),h(!1)},B=()=>{t("/products/settings/ftp-sync",{state:{fromSyncStep:u}})},L=async()=>{const $=i?.channelId||i?.id;if(!$){w("Channel ID not found"),b(!0),S(!1);return}S(!1);try{const W=await n(ai($));if(ai.fulfilled.match(W)){const _=W.payload?.message==="Sync started successfully"?"Sync started successfully":"Sync not started successfully";w(_),b(!0),_==="Sync started successfully"&&setTimeout(()=>{n(qt(r)),n(Ar()),t("/")},2500)}else w("Sync not started successfully"),b(!0)}catch{w("Sync not started successfully"),b(!0)}},E=F.useCallback(()=>{u===1?(f(0),x("")):t("/")},[u,t]),{setSettingTopbarProps:I}=ss()||{};return F.useEffect(()=>{if(I)return I({onBack:E}),()=>I({})},[I,E]),c.jsxs(P,{sx:{width:"100%",minHeight:"100vh",background:"#f7f8fa",p:0,display:"flex",flexDirection:"column",alignItems:"center"},children:[c.jsx(TN,{open:g,onClose:()=>h(!1),onSave:O}),c.jsx(AN,{isOpen:m,onClose:()=>S(!1),onConfirm:L}),c.jsx(ko,{open:C,autoHideDuration:4e3,onClose:()=>b(!1),message:v,anchorOrigin:{vertical:"top",horizontal:"center"}}),c.jsx(EN,{airaAiEnabled:a,setAiraAiEnabled:l,selectedCard:d,setSelectedCard:p,syncStep:u,syncMethod:y,integrationData:i,onSetupSync:D,onSetupFTP:B,onSyncNow:()=>S(!0)})]})}const kN=["Setup FTP","Check data","Start Sync"],ON=e=>c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:c.jsxs(P,{sx:{width:"100%",maxWidth:800,mx:"auto",pt:2,px:{xs:2,sm:3},boxSizing:"border-box"},children:[c.jsx(P,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:2,mb:1},children:kN.map((t,n)=>c.jsx(U,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:n===0?600:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",verticalAlign:"middle",color:"#454545",opacity:1,width:"100%",minHeight:16,display:"inline-flex",alignItems:"center",justifyContent:"center",flex:1},children:t},t))}),c.jsx(P,{sx:{width:"100%",minHeight:504,gap:"8px",borderRadius:"16px",padding:"8px",background:"#FFFFFF",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box"},children:c.jsxs(Sn,{elevation:0,sx:{width:"100%",maxWidth:400,minHeight:210,gap:"24px",borderRadius:"20px",padding:{xs:"16px",sm:"24px"},background:"#fafafa",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsxs(P,{sx:{width:"100%",minHeight:98,gap:"12px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(U,{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(P,{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:"100%",minHeight: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(P,{sx:{display:"flex",justifyContent:"flex-end",marginTop:"auto"},children:c.jsx(tt,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})]})});function IN(e){const{sx:t,fontSize:n,...r}=e;return c.jsxs(pr,{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 NN(e){const{sx:t,fontSize:n,...r}=e;return c.jsxs(pr,{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 FN=({active:e,completed:t,showBlue:n})=>{const r=!e&&!t,i=n?"#2D64B8":"#bbb";return c.jsx(P,{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"})})})},xl=({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 y=Mn().transitions?.duration?.standard??400,[x,g]=F.useState(0),[h,m]=F.useState(!1),S=Math.max(1,e.length),C=50/S,b=100*(S-1)/S,v=40/S,w=S>1?100/S:0,A=100,k=F.useMemo(()=>{let D;if(typeof d=="number"){const B=typeof p=="number"?p:0,L=d-B;D=w*(B+x*L)}else typeof l=="number"?D=w*(l+x):s?D=x?b:0:r?D=x?b*.5:0:D=x?v:0;const O=Math.min(D,b)/b;return Math.round(O*A)},[x,d,p,l,s,r,w,b,v]);return F.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 O=setTimeout(()=>{g(1),setTimeout(()=>m(!0),y)},50);return()=>clearTimeout(O)}setTimeout(()=>{g(0),m(!1)},0);const D=setTimeout(()=>{g(1),setTimeout(()=>m(!0),y)},50);return()=>clearTimeout(D)},[t,e.length,r,a,d,p,y]),c.jsxs(P,{sx:{width:"100%",maxWidth:800,opacity:1},children:[c.jsx(P,{sx:{width:"100%",minHeight:44,gap:"16px",opacity:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:e.map((D,O)=>c.jsxs(P,{sx:{width:"calc(33.333% - 11px)",minHeight:44,gap:"12px",opacity:1,paddingLeft:"16px",paddingRight:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},children:[c.jsx(FN,{active:O===t,completed:O<t,showBlue:O===0&&i||O===1&&n&&(h||u)||O===2&&s}),c.jsx(P,{component:"span",sx:{width:"100%",minHeight:16,fontFamily:"Inter, sans-serif",fontWeight:O===0?600:400,fontSize:{xs:"11px",sm:"12px"},lineHeight:"16px",letterSpacing:"0px",textAlign:"center",color:"#454545",opacity:1,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap"},children:D})]},D))}),c.jsx(P,{sx:{width:"100%",mt:1,mb:0},children:c.jsx(P,{sx:{marginLeft:`${C}%`,width:`${b}%`},children:c.jsx(km,{variant:"progress",steps:A+1,position:"static",activeStep:k,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})})})]})},MN=e=>e.dashboard?.companyId||"";function DN(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 _N=e=>{const{ftpDetails:t={},stepperProps:n={}}=e,[r,i]=F.useState(null),s=It(),a=Bt(),l=Qe(MN),[d,p]=F.useState(!1);F.useEffect(()=>{let O,B;return setTimeout(()=>{p(!1),O=setTimeout(()=>{B=setTimeout(()=>p(!0),600)},100)},0),()=>{O&&clearTimeout(O),B&&clearTimeout(B)}},[]);const[u,f]=F.useState(!1),y=localStorage.getItem("selectedSyncMethod")||"sftp",[x,g]=F.useState(`${y}:`),[h,m]=F.useState(""),[S,C]=F.useState(""),b=yn(),v=Qe(O=>O.productSettings?.loading||!1),w=Qe(O=>O.productSettings?.error||null),A=Mn();_t(A.breakpoints.up("lg"));const k=Qe(O=>O.productSettings.syncData);F.useEffect(()=>{const O=s.state?.ftpConfig,B=s.state?.tenantIntegrationData;if(k&&k.serverAddress){setTimeout(()=>{g(k.serverAddress||""),m(k.configs&&k.configs.username||""),C(k.configs&&k.configs.password||"")},0);return}if(t&&(t.host||t.username||t.password)){const L=t.type||"sftp",E=t.host||"",I=t.port||"",$=t.path||"",W=`${L}://${E}${I?`:${I}`:""}${$?`/${$}`:""}`;setTimeout(()=>{g(W),m(t.username||""),C(t.password||"")},0);return}if(B&&B.configs){const L=B.configs,E=L.type||B.type||"sftp",I=L.host||"",$=L.port||"",W=L.path||"",_=`${E}://${I}:${$}/${W}`,z=L.username||"",N=L.password||"";setTimeout(()=>{g(_),m(z),C(N)},0);return}if(O){const E=`${O.type||"sftp"}://${O.host}:${O.port}/${O.path}`,I=O.username||"",$=O.password||"";setTimeout(()=>{g(E),m(I),C($)},0)}},[s.state,k,t]);const D=async()=>{if(!l){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:O,host:B,port:L,path:E}=DN(x),I=await b(ii({serverAddress:x,username:h,password:S,companyId:l}));if(!ii.fulfilled.match(I))return;const $=I.payload;if(s.state?.fromSettingsIcon){const z=$?.entity_type||r?.entity_type||"products",N={...r||{},companyId:l,tenantId:l,type:O,serverAddress:x,configs:{host:B,port:Number(L),path:E,username:h,password:S,sync_frequency:r?.configs?.sync_frequency||t?.sync_frequency||"",sync_time:r?.configs?.sync_time||t?.sync_time||""},entity_type:z,mappings:r?.mappings||$?.existing_mapping?.mappings||[]};i(N),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(N)),a("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:N}});return}const W=$?.entity_type||"",_={tenantId:l,type:O,serverAddress:x,configs:{host:B,port:Number(L),path:E,username:h,password:S,sync_frequency:"",sync_time:""},entity_type:W||"products",mappings:$?.existing_mapping?.mappings||[]};b(Js(_)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(_)),e.onNext&&e.onNext({putjson:_})};return c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:c.jsxs(P,{sx:{width:"100%",maxWidth:800,minHeight:600,gap:"32px",opacity:1,pt:2,px:{xs:2,sm:3},mx:"auto",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(P,{sx:{width:"100%",minHeight:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(xl,{...n,showSetupFtpBlueTick:d})}),c.jsx(P,{sx:{width:"100%",minHeight:{xs:420,md: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(P,{sx:{width:"100%",maxWidth:400,minHeight:380,borderRadius:"20px",padding:{xs:"16px",sm:"24px"},gap:"24px",opacity:1,bgcolor:"#F5F5F5",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(P,{sx:{width:"100%",height:20,justifyContent:"space-between",opacity:1,display:"flex",alignItems:"center"},children:c.jsx(U,{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(P,{component:"form",autoComplete:"off",sx:{width:"100%",minHeight:224,gap:"16px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsxs(P,{sx:{width:"100%",minHeight:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx("label",{style:{width:"100%",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:x,onChange:O=>g(O.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:"100%",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(P,{sx:{width:"100%",minHeight:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx("label",{style:{width:"100%",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:h,onChange:O=>m(O.target.value),placeholder:"Enter username",style:{width:"100%",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(P,{sx:{width:"100%",minHeight:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box",position:"relative"},children:[c.jsx("label",{style:{width:"100%",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:S,onChange:O=>C(O.target.value),placeholder:"Enter password",style:{width:"100%",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(vt,{"aria-label":"toggle password visibility",onClick:()=>f(O=>!O),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(NN,{}):c.jsx(IN,{})})]})]}),c.jsxs(P,{sx:{display:"flex",justifyContent:"flex-end",gap:2,marginTop:"auto"},children:[c.jsx(tt,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:e.onBack,children:"Back"}),c.jsx(tt,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:D,disabled:v,children:v?"Loading...":"Next"})]}),w&&c.jsx(U,{color:"error",sx:{mt:1,fontSize:14},children:"Fill the credentials"})]})})]})})},zN=e=>e.productSettings.ftpColumns||[],$N=e=>e.productSettings.preview||[],BN=e=>e.productSettings.loading,LN=e=>e.productSettings.error,jN=e=>e.productSettings.existingMapping,WN=e=>e.productSettings.entity_type||"products",VN=e=>{const{mapping:t=[],onBack:n,onNext:r,stepperProps:i={}}=e,s=It(),a=Bt(),l=s.state?.fromSettingsIcon,[d,p]=F.useState(()=>{if(s.state?.putjson)return s.state.putjson;const _=window.localStorage.getItem("ftpSyncPutjson");return _?JSON.parse(_):t.length>0?{mappings:t}:null}),[u,f]=F.useState([]),[y,x]=F.useState({}),g=Qe(zN),h=Qe($N),m=Qe(BN),S=Qe(LN),C=Qe(jN),b=Qe(WN),v=F.useRef(m);F.useEffect(()=>{m&&!v.current&&queueMicrotask(()=>x({})),v.current=m},[m]);const w=F.useRef(!1);F.useLayoutEffect(()=>{C==null||!C?.mappings||C.mappings.length===0?w.current||(w.current=!0,queueMicrotask(()=>x({}))):w.current=!1},[C]);const A=yn();F.useEffect(()=>{async function _(){try{let z=[];if(C?.mappings?.length>0){const N=C.mappings.map(V=>V.target_field).filter(V=>V&&typeof V=="string");z=[...new Set(N)]}try{const N=await A(li(b));li.fulfilled.match(N)&&Array.isArray(N.payload)&&N.payload.filter(j=>j&&typeof j=="string").forEach(j=>{z.includes(j)||z.push(j)})}catch{}if(t&&t.length>0){const N=t.map(V=>V.target_field).filter(V=>V&&typeof V=="string"&&!z.includes(V));N.length>0&&(z=[...z,...N])}z=z.filter(N=>N&&typeof N=="string"),f(z)}catch{if(C?.mappings?.length>0){const z=C.mappings.map(V=>V.target_field).filter(V=>V&&typeof V=="string"),N=[...new Set(z)];f(N)}else f([])}}(b||C?.mappings?.length>0||t&&t.length>0)&&_()},[b,C,t,A]);const k=F.useMemo(()=>{if(C?.mappings&&C.mappings.length>0){const _=C.mappings.map(z=>z.source_field).filter(z=>z);if(_.length>0)return _}return g&&g.length>0?g:[]},[C,g]),D=F.useMemo(()=>h.filter(z=>Object.keys(z).length>0),[h]),O=F.useMemo(()=>{if(C?.mappings&&C.mappings.length>0){const _={};return C.mappings.forEach(z=>{z.source_field&&z.target_field&&(_[z.source_field]=z.target_field)}),_}return{}},[C]),L=C?.mappings?.length>0?{...O,...y}:{...y},E=Mn();_t(E.breakpoints.up("lg"));const I=Qe(_=>_.productSettings.syncData),$=F.useMemo(()=>{if(I?.serverAddress)return I.serverAddress;const _=I?.configs||{},z=(I?.type||"sftp").toLowerCase(),N=_.host,V=_.port,j=_.path;if(!N)return"";let M=`${z}://${N}`;if(V!=null&&V!==""&&(M+=`:${V}`),j){const Y=String(j).replace(/^\/+/,"");M+=`/${Y}`}return M},[I]),W=()=>{const _=k.map(j=>({source_field:j||"",target_field:L[j]||""})).filter(j=>j.source_field&&j.target_field);if(_.length===0)return;if(l&&d){const j={...d,tenantId:d.tenantId||d.companyId,type:d.type||I.type||"sftp",entity_type:d.entity_type||I.entity_type||"products",mappings:_};p(j),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(j)),r?r({fromSettingsIcon:!0,putjson:j}):e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:j});return}const z=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),N=I.companyId||z.companyId||z.tenantId||"",V={...z,companyId:N,tenantId:N,type:I.type||z.type||"sftp",integration_type:I.integration_type||z.integration_type||"",entity_type:z.entity_type||I.entity_type||"products",configs:I.configs||z.configs||{},ftp_columns:k,preview:D,mappings:_};A(Js(V)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(V)),r?r({putjson:V}):e.onNext&&e.onNext({putjson:V})};return c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:c.jsxs(P,{sx:{width:"100%",maxWidth:800,px:{xs:2,sm:3},mx:"auto",pt:2,display:"flex",flexDirection:"column",gap:"32px",boxSizing:"border-box"},children:[c.jsx(P,{sx:{width:"100%",minHeight:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(xl,{...i})}),c.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},children:c.jsxs(Sn,{elevation:0,sx:{mt:0,p:0,borderRadius:4,width:"100%",maxWidth:800},children:[c.jsxs(P,{sx:{p:{xs:2,sm:3},pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",flexDirection:{xs:"column",sm:"row"},gap:{xs:1.5,sm:0}},children:[c.jsxs(P,{children:[c.jsx(U,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),$&&c.jsx(U,{variant:"body2",sx:{color:"#888",mt:.5},children:$})]}),c.jsxs(P,{sx:{width:{xs:"100%",sm:"auto"},display:"flex",justifyContent:{xs:"flex-end",sm:"initial"}},children:[c.jsx(tt,{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(tt,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:W,children:"Next"})]})]}),c.jsx(ey,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee",width:"100%",overflowX:"auto",overflowY:"auto",maxHeight:{xs:420,md:"none"}},children:m?c.jsx(P,{sx:{p:3,textAlign:"center"},children:"Loading..."}):S?c.jsx(P,{sx:{p:3,color:"red",textAlign:"center"},children:S}):k.length===0?c.jsx(P,{sx:{p:3,textAlign:"center",color:"#888"},children:"No columns available. Please check your FTP connection and try again."}):c.jsxs(Jm,{size:"small",sx:{minWidth:720},children:[c.jsxs(ny,{children:[c.jsxs(ns,{children:[c.jsx(yr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),k.map((_,z)=>c.jsx(yr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:_},_+z))]}),c.jsxs(ns,{children:[c.jsx(yr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),k.map((_,z)=>c.jsx(yr,{sx:{background:"#fafafa",borderBottom:"none"},children:c.jsxs(Cn,{value:L[_]||"",onChange:N=>x(V=>({...V,[_]:N.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(Et,{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(N=>c.jsx(Et,{value:N,sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:N},N))]})},z))]})]}),c.jsx(Zm,{children:D.length>0?D.map((_,z)=>c.jsxs(ns,{children:[c.jsx(yr,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:z===0?"Data preview":""}),k.map((N,V)=>c.jsx(yr,{sx:{background:"#fff",borderBottom:"none"},children:_[N]||""},V))]},z)):c.jsx(ns,{children:c.jsx(yr,{colSpan:k.length+1,sx:{textAlign:"center",color:"#888",py:2},children:"No preview data available"})})})]})})]})})]})})},UN=e=>e.dashboard?.companyId||"",HN=e=>e.dashboard?.integrationData||null,RN=e=>{const{syncFrequency:t="",syncTime:n="",stepperProps:r={}}=e,i=It(),s=Bt(),a=yn(),l=Qe(UN),d=Qe(HN),p=i.state?.fromSettingsIcon,[u,f]=F.useState(()=>{if(i.state?.putjson){const N=JSON.parse(JSON.stringify(i.state.putjson));return N.mappings&&(N.originalMappings=JSON.parse(JSON.stringify(N.mappings))),N.configs?.sync_frequency&&!N.originalSyncFrequency&&(N.originalSyncFrequency=N.configs.sync_frequency),N.configs?.sync_time&&!N.originalSyncTime&&(N.originalSyncTime=N.configs.sync_time),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(N)),N}const z=window.localStorage.getItem("ftpSyncPutjson");if(z){const N=JSON.parse(z);return N.mappings&&!N.originalMappings&&(N.originalMappings=JSON.parse(JSON.stringify(N.mappings))),N.configs?.sync_frequency&&!N.originalSyncFrequency&&(N.originalSyncFrequency=N.configs.sync_frequency),N.configs?.sync_time&&!N.originalSyncTime&&(N.originalSyncTime=N.configs.sync_time),N}return null});F.useEffect(()=>{u&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(u))},[u]);const[y,x]=F.useState(null),[g,h]=F.useState(null);F.useEffect(()=>{const z=i.state?.fromProductSetting;let N=null;if(z&&i.state?.integrationData)N=i.state.integrationData;else if(d&&Object.keys(d).length>0)N=d;else if(l&&!z){a(qt(l)).then(V=>{if(qt.fulfilled.match(V)){const j=V.payload;if(N=j&&j.data&&j.data[0]||null,N){x(N);const M=N.id||N.channelId||null;M&&h(M)}}});return}if(N){x(N);const V=N.id||N.channelId||null;V&&h(V)}},[l,i.state,d,a]);const m=!!p||!!y,S=z=>{if(!z)return"";const N=z.charAt(0).toUpperCase()+z.slice(1).toLowerCase();return N==="Daily"||N==="Day"?"Daily":N==="Weekly"||N==="Week"?"Weekly":N==="Monthly"||N==="Month"?"Monthly":N},[C,b]=F.useState(()=>{if(t)return S(t);const z=u?.configs?.sync_frequency?S(u.configs.sync_frequency):"";return z||"Daily"}),[v,w]=F.useState(n||u&&u.configs?.sync_time||"");F.useEffect(()=>{async function z(){if(l)try{const N=i.state?.fromProductSetting;let V=null;if(N&&i.state?.integrationData)V=i.state.integrationData;else if(d&&Object.keys(d).length>0)V=d;else{const j=await a(qt(l));if(qt.fulfilled.match(j)){const M=j.payload;V=M&&M.data&&M.data[0]||null}}if(V){const j=V.id||V.channelId||null;j&&h(j);const M=u||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),Y={...V,companyId:V.companyId||l,entity_type:V.entity_type||M?.entity_type||"product",mappings:V.mappings||M?.mappings||[]},Z=V.configs?.sync_frequency||"",J=V.configs?.sync_time||"",q=S(Z);if(f(Y),N){if(t){const K=S(t);b(K)}n&&w(n),f(K=>({...K,...Y,originalSyncFrequency:t?S(t):K.originalSyncFrequency||q,originalSyncTime:n||K.originalSyncTime||J,configs:{...Y.configs,sync_frequency:t?S(t).toLowerCase():Y.configs?.sync_frequency,sync_time:n||Y.configs?.sync_time}}))}else{const K=t?S(t):"";if(K)b(K);else if(q)b(q);else if(M?.configs?.sync_frequency){const H=S(M.configs.sync_frequency);b(H)}else b("Daily");n?w(n):J?w(J):M?.configs?.sync_time?w(M.configs.sync_time):w(""),f(Y),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Y))}}}catch{const N=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!t&&N?.configs?.sync_frequency?b(S(N.configs.sync_frequency)):t&&b(S(t)),!n&&N?.configs?.sync_time?w(N.configs.sync_time):n&&w(n)}}z()},[l]),F.useEffect(()=>{if(t){const z=S(t);b(z),u&&u.configs?.sync_frequency!==z&&f(N=>{const V={...N,configs:{...N.configs,sync_frequency:z}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(V)),V})}},[t]),F.useEffect(()=>{n&&(w(n),u&&u.configs?.sync_time!==n&&f(z=>{const N={...z,configs:{...z.configs,sync_time:n}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(N)),N}))},[n]),F.useEffect(()=>{if(u&&m&&(C||v)){const z=u.configs?.sync_frequency,N=u.configs?.sync_time;(z!==C||N!==v)&&f(V=>{const j={...V,configs:{...V.configs,sync_frequency:C||V.configs?.sync_frequency,sync_time:v||V.configs?.sync_time}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(j)),j})}},[C,v,m]);const A=Qe(z=>z.productSettings.syncData),k=z=>{const N=z.target.value;b(N),u&&f(V=>{const j={...V,configs:{...V.configs,sync_frequency:N}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(j)),j}),m||a(Js({...A,configs:{...A&&A.configs||{},sync_frequency:N,sync_time:v}}))},D=z=>{const N=z.target.value;w(N),u&&f(V=>{const j={...V,configs:{...V.configs,sync_time:N}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(j)),j}),m||a(Js({...A,configs:{...A&&A.configs||{},sync_frequency:C,sync_time:N}}))};function O(z){try{const N=new URL(z);return{type:N.protocol.replace(":",""),host:N.hostname,port:N.port,path:N.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[B,L]=F.useState(!1),[E,I]=F.useState(""),$=async()=>{const z=i.state?.fromProductSetting;if(m){if(!u){I("Update failed: missing data."),L(!0);return}let R={...u};u.originalMappings||(R.originalMappings=u.mappings?JSON.parse(JSON.stringify(u.mappings)):[],f(R)),!u.originalSyncFrequency&&u.configs?.sync_frequency&&(R.originalSyncFrequency=u.configs.sync_frequency||"",f(R)),!u.originalSyncTime&&u.configs?.sync_time&&(R.originalSyncTime=u.configs.sync_time||"",f(R));const le=JSON.parse(JSON.stringify(u.mappings||[])),ae=JSON.parse(JSON.stringify(u.originalMappings||[]));let me,Ve;z?(me=t?S(t):"",Ve=n||""):(me=u.originalSyncFrequency||u.configs?.sync_frequency||"",Ve=u.originalSyncTime||u.configs?.sync_time||"",me=S(me));const Ie=z?!1:JSON.stringify(le)!==JSON.stringify(ae),Ne=C!==me,Ue=v!==Ve,je=(Ne||Ue)&&!Ie,$e=Ie;if(je){const de=g||u?.id||u?.channelId||i.state?.integrationData?.id||i.state?.integrationData?.channelId;if(!de){I("Channel ID is missing. Please try again."),L(!0);return}const He={configs:{}};Ne&&(He.configs.sync_frequency=C.toLowerCase()),Ue&&(He.configs.sync_time=v);try{const De=await a(ci({channelId:de,data:He}));if(De.error||ci.rejected.match(De)){const fe=De.payload||De.error?.message||"Update failed. Please try again.";I(fe),L(!0);return}let se="";Ne&&!Ue?se="SyncFrequency Updated":!Ne&&Ue?se="SyncTime Updated":Ne&&Ue&&(se="SyncTime and SyncFrequency Updated"),I(se),L(!0),f(fe=>{const ve={...fe,configs:{...fe.configs,sync_frequency:C.toLowerCase(),sync_time:v},originalSyncFrequency:C,originalSyncTime:v};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(ve)),ve});const re=i.state?.fromProductSetting;re&&l&&await a(qt(l)),setTimeout(()=>{re&&s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500);return}catch(De){const se=De?.message||De?.response?.data?.message||"Update failed. Please try again.";I(se),L(!0);return}}if($e){const de={...u,configs:{...u.configs,sync_frequency:C.toLowerCase(),sync_time:v}};f(de),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(de));const He=de.tenantId||de.companyId;if(!de.configs){I("Configuration error. Please try again."),L(!0);return}const De=de.entity_type||u?.entity_type;if(!De){I("Entity type is missing. Please try again."),L(!0);return}const se={tenantId:He,type:de.type,entity_type:De,configs:{host:de.configs.host||"",port:de.configs.port?Number(de.configs.port):0,username:de.configs.username||"",password:de.configs.password||"",path:de.configs.path||"",sync_frequency:C.toLowerCase()||"",sync_time:v||""},mappings:(de.mappings||[]).map(re=>({source_field:re.source_field,target_field:re.target_field}))};if(!se.tenantId){I("Tenant ID is missing. Please try again."),L(!0);return}if(!se.type){I("Sync type is missing. Please try again."),L(!0);return}if(!se.entity_type){I("Entity type is missing. Please try again."),L(!0);return}try{const re=await a(Zr(se));if(Zr.rejected.match(re)){const fe=re.payload||re.error?.message||"Update failed. Please try again.";I(fe),L(!0);return}Zr.fulfilled.match(re)?(f(fe=>{const ve={...fe,originalSyncFrequency:C,originalSyncTime:v,originalMappings:JSON.parse(JSON.stringify(fe.mappings||[]))};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(ve)),ve}),I("Sync Update Successfully"),L(!0),setTimeout(()=>{s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)):(I("Update failed. Please try again."),L(!0))}catch(re){const fe=re?.message||re?.response?.data?.message||"Update failed. Please try again.";I(fe),L(!0)}}else I("No changes detected."),L(!0);return}const N=A.configs||{},V=O(A.serverAddress||""),j=N.host||V.host,M=N.port!=null?Number(N.port):parseInt(V.port,10),Y=(N.path||V.path||"").replace(/^\//,""),Z=A.type||V.type||"sftp",J=A.username||N.username||"",q=A.password||N.password||"",K=C||N.sync_frequency||"",H=typeof K=="string"?K.toLowerCase():K;let oe=v||N.sync_time||"";if(typeof oe=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(oe.trim())){const[R,le]=oe.trim().split(/\s+/),[ae,me]=R.split(":").map(Number),Ve=le.toUpperCase()==="PM"&&ae!==12?ae+12:le.toUpperCase()==="AM"&&ae===12?0:ae;oe=`${String(Ve).padStart(2,"0")}:${String(me).padStart(2,"0")}`}else typeof oe=="string"&&(oe=oe.trim());const ne=(A.mappings||[]).filter(R=>R.source_field&&R.target_field).map(R=>({source_field:R.source_field,target_field:R.target_field}));if(!l){I("Company ID is required. Please ensure the app is properly configured."),L(!0);return}if(!j||!M||!J||!q||ne.length===0){I("Please fill all required fields and mappings before saving."),L(!0);return}const te=A.entity_type||"products",ie={tenantId:l,type:Z,entity_type:te,configs:{host:j,port:Number(M),username:J,password:q,path:Y,sync_frequency:H,sync_time:oe},mappings:ne};try{const R=await a(si(ie));si.fulfilled.match(R)?(I("Save and Start Sync Updated Successfully"),L(!0),e.onNext&&e.onNext()):(I(R?.payload||"Save failed. Please try again."),L(!0))}catch{I("Save failed. Please try again."),L(!0)}},[W,_]=F.useState(!1);return F.useEffect(()=>{const z=setTimeout(()=>_(!0),850);return()=>clearTimeout(z)},[]),c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:c.jsxs(P,{sx:{width:"100%",maxWidth:800,px:{xs:2,sm:3},mx:"auto",pt:2,display:"flex",flexDirection:"column",gap:"32px",boxSizing:"border-box"},children:[c.jsx(P,{sx:{width:"100%",minHeight:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(xl,{...r,showStartSyncBlueTick:W})}),c.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:c.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:{xs:2,sm:4},mb:{xs:2,sm:4},width:"100%",px:{xs:2,sm:0},boxSizing:"border-box"},children:c.jsxs(Sn,{elevation:0,sx:{p:{xs:2,sm:2.5},borderRadius:4,minWidth:{xs:"100%",sm:300},maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[c.jsxs(P,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},gap:2,width:"100%",mb:2},children:[c.jsxs(P,{sx:{flex:1},children:[c.jsx(U,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Frequency"}),c.jsxs(Cn,{size:"small",value:C,onChange:k,sx:{width:"100%",minWidth:120,borderRadius:2,background:"#fafbfc",fontSize:15,height:40},children:[c.jsx(Et,{value:"Daily",children:"Daily"}),c.jsx(Et,{value:"Weekly",children:"Weekly"}),c.jsx(Et,{value:"Monthly",children:"Monthly"})]})]}),c.jsxs(P,{sx:{flex:1},children:[c.jsx(U,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Time"}),c.jsx(rs,{type:"time",size:"small",value:v,onChange:D,sx:{width:"100%",minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),c.jsxs(P,{sx:{display:"flex",justifyContent:"center",gap:1.5,mt:1,width:"100%",flexDirection:"row"},children:[c.jsx(tt,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:0,fontWeight:500,textTransform:"none",width:"50%",flex:1},onClick:e.onBack,children:"Back"}),c.jsx(tt,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:0,fontWeight:500,textTransform:"none",boxShadow:"none",width:"50%",flex:1},onClick:$,children:m&&(i.state?.fromSyncSetting||i.state?.editMode)?"Save":m?"Update Sync":"Save and Start Sync"})]}),c.jsx(ko,{open:B,autoHideDuration:4e3,onClose:()=>L(!1),message:E,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})})},qN=e=>{const{stepperProps:t={}}=e,n=yn(),i=!!Qe(d=>d.productSettings.saveResult),[s,a]=F.useState(i),l=Bt();return F.useEffect(()=>{i&&(a(!0),n(V1()))},[i,n]),c.jsxs(c.Fragment,{children:[c.jsx(ko,{open:s,autoHideDuration:4e3,onClose:()=>a(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:c.jsxs(P,{sx:{width:"100%",maxWidth:800,px:{xs:2,sm:3},mx:"auto",pt:2,display:"flex",flexDirection:"column",gap:"32px",boxSizing:"border-box"},children:[c.jsx(P,{sx:{width:"100%",minHeight:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(xl,{...t})}),c.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:c.jsxs(P,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",maxWidth:320,mx:2,py:6,bgcolor:"#f5f5f5",borderRadius:5},children:[c.jsx(P,{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(U,{sx:{fontSize:17,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),c.jsx(tt,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1},onClick:()=>l("/"),children:"Back to all products"})]})})]})}),c.jsx(ko,{open:s,autoHideDuration:4e3,onClose:()=>a(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function YN(e){const t=It(),n=Bt(),r=t.state?.fromProductSetting?3:0,[i,s]=F.useState(r),a=yn(),{companyId:l,integrationData:d}=Qe(D=>D.dashboard),p=t.state?.fromSyncStep;F.useEffect(()=>{const D=t.state?.fromProductSetting;l&&!D&&a(qt(l))},[l,a,t.state]);const u=()=>{s(D=>Math.min(D+1,4))},f=F.useCallback(()=>{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(D=>Math.max(D-1,0))},[i,p,t.state?.fromProductSetting,n]),y=F.useMemo(()=>[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],[]),x=F.useMemo(()=>[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"}],[]),{setSettingTopbarProps:g}=ss()||{};F.useEffect(()=>{if(g)return g({onBack:f,breadcrumbs:i===0||i===1?y:x}),()=>g({})},[g,f,i,y,x]);const h=d?.configs||{},m=d?.mappings||d?.dataMappings||[],C=(D=>{if(!D)return"";const O=D.charAt(0).toUpperCase()+D.slice(1).toLowerCase();return O==="Daily"||O==="Day"?"Daily":O==="Weekly"||O==="Week"?"Weekly":O==="Monthly"||O==="Month"?"Monthly":O})(d?.configs?.sync_frequency||""),b=d?.configs?.sync_time||"",v=["Setup FTP","Check data","Start Sync"],w=["Upload File","Check data","Start Sync"],A={0:{steps:v,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1},1:{steps:v,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,filledSegments:.5},2:{steps:v,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}};let k=null;switch(i){case 0:k=c.jsx(ON,{onNext:u,onBack:f,stepperProps:A[0],...e});break;case 1:k=c.jsx(_N,{onNext:u,onBack:f,ftpDetails:h,stepperProps:A[1],...e});break;case 2:k=c.jsx(VN,{onNext:u,onBack:f,mapping:m,stepperProps:A[2],...e});break;case 3:k=c.jsx(RN,{onNext:u,onBack:f,syncFrequency:C,syncTime:b,stepperProps:A[3],...e});break;case 4:k=c.jsx(qN,{onBack:f,stepperProps:A[4],...e});break;default:k=null;break}return c.jsx(pn,{maxWidth:!1,disableGutters:!0,sx:{width:"100%",boxSizing:"border-box"},children:k})}const GN=dt(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 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}),"Language");function KN(e){return c.jsx(P,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",opacity:1,...e.sx},children:c.jsx(P,{component:"span",sx:{width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",opacity:1},children:c.jsx(GN,{sx:{color:"#808080"}})})})}const XN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAPCAYAAAA/I0V3AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAUlJREFUeAGNUrttwzAQFfWrnS6VIGsCjyAB+rWZIM4EyQZ2Jog2UDJCOkESYGaC2BOIZcr0+uVdYBqyQMM+gCB5997x3R2ZNjPf913LsnI6Yr23bfvKORdTjD4BL+I4fgPhexzHr6qqGPaDbdu7KIpySnZGgvPZNM0GIIbMy7qut+THnum6HuDIkIzIa/Izyg4wXQJk32sXLE1Tt+/7HY7C8DyvYIz94HLvOM5BCPGrqhOYHGuB6+pfXlmWS6mfXpb6Z3V+Eu6sEVI/gnekn8CzOjOJNacyiqIQ2NZH/c2xTj6XqytqlmR6naviStI1I9I+SZKXW8Coc4MOCtMwjIeu63IaMIp+UkkKw9AHeDMMg4bmBEwGaNoUAJHTf0MHG+oa/UP4XRBOCZki6xatfwSZBioA/oCSDJ/2NHSm0k4txysrtJ1PwdL+AHzhuHE1We3IAAAAAElFTkSuQmCC";function JN({sx:e={},...t}){const n=e?.fontSize??12,r=e?.width??n,i=e?.height??n;return c.jsx(P,{component:"img",src:XN,alt:"",role:"presentation",sx:{width:r,height:i,display:"block",objectFit:"contain",...e},...t})}const QN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAYAAACdKY9CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPtJREFUeAGlUUsOgjAQpSWQuLJHQC6gR4DwCe70Bt5Ab6CewCPIEVwSQmKPoDt3uHQnrPn5SjRpTIkLJ2k6bd+b92ZKNCkcx7EMwzh2XTcjhBRYcZqmexlD5QPAZ2zXuq4nuq67IC58399pqsCDg3X+UmRBEDyVCqjGKKWlohZTEpqm4SBNRR+fO9M019himUDkA+RXIB2gJMgMTVvI3SRJ7kqCiCiKrKqq+illWca1f6NXCMNw27btBlXZAO6Ctz3+5EQEWMwbNlzOeaFCe563AOGIdKnbth3jk+bw+xiykef5DbgRSDMxVkuewqB3QgRmTN/Jz0CPwm75AifwYTaKH5pyAAAAAElFTkSuQmCC",ZN={fontSize:10.67,color:"#454545"};function eF({sx:e={},...t}){const n={...ZN,...e},r=n.fontSize??10.67,i=n.width??r,s=n.height??r;return c.jsx(P,{component:"img",src:QN,alt:"",role:"presentation",sx:{width:i,height:s,display:"block",objectFit:"contain",...n},...t})}const tF=dt(c.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save");function nF(e){return c.jsx(tF,{...e})}const rF=dt(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");function oF(e){return c.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:c.jsx(P,{component:"span",sx:{width:13.22,height:13.22,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(rF,{})})})}const iF=dt(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");function sF(e){return c.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:c.jsx(P,{component:"span",sx:{width:12,height:13.33,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(iF,{})})})}function aF(e){const{catalogs:t=[],totalCount:n=0,page:r=0,rowsPerPage:i=10,statusById:s={},getStatus:a,onPageChange:l,onRowsPerPageChange:d,onSave:p,onDelete:u,onStatusChange:f,updateCatalogError:y=null,updateCatalogLoading:x=!1}=e,[g,h]=F.useState(null),[m,S]=F.useState({name:"",slug:"",status:!0}),C=B=>{const L=B.slugRaw??(typeof B.slug=="string"?B.slug.replace(/^\//,""):"")??"",E=B.status==="Active"||B.status===!0;h(B.id),S({name:B.name??"",slug:L,status:E})},b=async B=>{if(typeof p!="function")return;const L=m.slug.trim().replace(/^\//,""),E={id:B.id,name:m.name.trim(),slug:L||m.name.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""),status:m.status};await p(E),h(null)},v=()=>{h(null)},w=t,A=Math.max(0,Number(n)||0),k=Math.max(0,Math.ceil(A/Math.max(1,i))-1),D={borderRadius:"4px",padding:"2px 4px",background:"#F5F5F5",display:"inline-flex",alignItems:"center",gap:"4px"},O={wrapper:{width:"100%",maxWidth:800,display:"flex",alignItems:"center",justifyContent:"flex-end",flexWrap:"wrap",gap:{xs:"12px",sm:"24px",md:"40px"},rowGap:"12px",opacity:1,marginLeft:"auto",marginRight:"auto",paddingLeft:{xs:0,sm:"24px"},mt:2},resultsPerPageBox:{minWidth:0,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1,flexShrink:0},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:{minWidth:0,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1,flexShrink:0},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"}};return c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:c.jsxs(pn,{maxWidth:"md",sx:{width:"100%",pt:2,pb:4,display:"flex",flexDirection:"column",gap:"24px",opacity:1,boxSizing:"border-box"},children:[c.jsx(P,{sx:{width:"100%",minHeight:20,display:"flex",alignItems:"center",gap:"24px",flexWrap:"wrap",opacity:1},children:c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",height:20,opacity:1},children:[c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#000000",opacity:1},children:"All Catalogs"}),c.jsx(U,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},children:n})]})}),y&&c.jsx(U,{color:"error",sx:{mb:0},children:y}),c.jsx(P,{sx:{display:"flex",flexDirection:"column",gap:"8px"},children:w.map(B=>{const L=g===B.id,E=typeof a=="function"?a(B):s[B.id]??B.status??"Active",I=E==="Active";return c.jsxs(Sn,{elevation:0,sx:{width:"100%",maxWidth:"100%",minHeight:106,borderRadius:"12px",border:"1px solid #F1F1F1",padding:"12px 16px",background:"#FFFFFF",display:"grid",gridTemplateColumns:"auto minmax(0, 1fr) auto",gridTemplateRows:"auto auto auto",columnGap:"16px",rowGap:"8px",alignItems:"start",opacity:1,boxSizing:"border-box"},children:[c.jsx(P,{sx:{gridColumn:1,gridRow:"1 / 4",pt:"2px",alignSelf:"start"},children:c.jsx(KN,{})}),c.jsx(P,{sx:{gridColumn:2,gridRow:1,minWidth:0,width:"100%"},children:L?c.jsx(rs,{label:"Name",size:"small",value:m.name,onChange:$=>S(W=>({...W,name:$.target.value})),fullWidth:!0,sx:{"& .MuiInputBase-root":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px"}}}):c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#000000",opacity:1,overflowWrap:"anywhere"},children:B.name})}),c.jsxs(P,{sx:{gridColumn:3,gridRow:"1 / 4",display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:"center",gap:{xs:"8px",sm:"12px"},flexShrink:0,flexWrap:"nowrap",justifySelf:"end",alignSelf:"start"},children:[c.jsx(P,{sx:{flexShrink:0},children:L?c.jsxs(Cn,{size:"small",value:m.status?"Active":"Inactive",onChange:$=>S(W=>({...W,status:$.target.value==="Active"})),IconComponent:Hr,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:m.status?"#D8FBE3":"#F5F5F5",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545","& .MuiSelect-select":{py:.75},"& .MuiSelect-icon":{width:12,height:12,top:"50%",transform:"translateY(-50%)"}},children:[c.jsx(Et,{value:"Active",children:"Active"}),c.jsx(Et,{value:"Inactive",children:"Inactive"})]}):c.jsxs(Cn,{value:E,onChange:$=>{if(typeof f!="function"||x)return;const W=$.target.value==="Active";f(B,W)},disabled:x,IconComponent:Hr,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:I?"#D8FBE3":"#F5F5F5",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545","& .MuiSelect-select":{py:.75},"& .MuiSelect-icon":{width:12,height:12,top:"50%",transform:"translateY(-50%)"},"& .MuiOutlinedInput-notchedOutline":{border:"none"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"none"}},variant:"outlined",children:[c.jsx(Et,{value:"Active",children:"Active"}),c.jsx(Et,{value:"Inactive",children:"Inactive"})]})}),c.jsx(P,{sx:{flexShrink:0,display:"flex",alignItems:"center",flexDirection:"row",gap:.5},children:L?c.jsxs(c.Fragment,{children:[c.jsx(vt,{size:"small","aria-label":"Save catalog",disabled:x,onClick:()=>b(B),sx:{p:0,color:"#454545"},children:c.jsx(nF,{sx:{fontSize:20}})}),c.jsx(tt,{size:"small",onClick:v,sx:{minWidth:0,px:1},children:"Cancel"})]}):c.jsx(vt,{size:"small","aria-label":"Edit catalog",onClick:()=>C(B),sx:{p:0,width:16,height:16},children:c.jsx(oF,{})})}),c.jsx(P,{sx:{flexShrink:0},children:c.jsx(vt,{size:"small","aria-label":"Delete catalog",onClick:()=>typeof u=="function"?u(B):null,sx:{p:0,width:16,height:16},children:c.jsx(sF,{})})})]}),c.jsx(P,{sx:{gridColumn:2,gridRow:2,minWidth:0,width:"100%"},children:L?c.jsx(rs,{label:"Slug",size:"small",value:m.slug,onChange:$=>S(W=>({...W,slug:$.target.value})),fullWidth:!0,placeholder:"/catalog-slug"}):c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1,overflowWrap:"anywhere"},children:B.slug})}),!L&&c.jsxs(P,{sx:{gridColumn:2,gridRow:3,minWidth:0,width:"100%",display:"flex",flexDirection:"column",gap:"8px"},children:[c.jsx(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:c.jsxs(P,{sx:D,children:[c.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(JN,{sx:{fontSize:12,color:"#454545"}})}),c.jsxs(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:[B.productsCount," Products"]})]})}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:[c.jsxs(P,{sx:D,children:[c.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(eF,{})}),c.jsxs(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:["By ",B.createdBy]})]}),c.jsxs(P,{sx:D,children:[c.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(Ay,{size:12,color:"#454545"})}),c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:B.date})]})]})]})]},B.id)})}),c.jsxs(P,{sx:O.wrapper,children:[c.jsxs(P,{sx:O.resultsPerPageBox,children:[c.jsx(U,{component:"span",sx:O.resultsPerPageText,children:"Results per page"}),c.jsxs(Cn,{value:i,onChange:B=>typeof d=="function"?d(B):null,IconComponent:Hr,variant:"standard",disableUnderline:!0,sx:O.select,children:[c.jsx(Et,{value:5,children:"5"}),c.jsx(Et,{value:10,children:"10"}),c.jsx(Et,{value:25,children:"25"})]})]}),c.jsxs(P,{sx:O.navBox,children:[c.jsx(vt,{size:"small",disabled:r===0,onClick:()=>typeof l=="function"?l(0):null,sx:O.iconButton,"aria-label":"First page",children:c.jsx(cu,{sx:{width:16,height:16,opacity:1}})}),c.jsx(vt,{size:"small",disabled:r===0,onClick:()=>typeof l=="function"?l(Math.max(0,r-1)):null,sx:O.iconButton,"aria-label":"Previous page",children:c.jsx(os,{sx:{width:16,height:16,opacity:1}})}),c.jsx(U,{component:"span",sx:O.pageText,children:A===0?"0-0 of 0":`${r*i+1}-${Math.min((r+1)*i,A)} of ${A}`}),c.jsx(vt,{size:"small",disabled:r>=k,onClick:()=>typeof l=="function"?l(r+1):null,sx:O.iconButton,"aria-label":"Next page",children:c.jsx(zt,{sx:{width:16,height:16,opacity:1}})}),c.jsx(vt,{size:"small",disabled:r>=k,onClick:()=>typeof l=="function"?l(k):null,sx:O.iconButton,"aria-label":"Last page",children:c.jsx(du,{sx:{width:16,height:16,opacity:1}})})]})]})]})})}const lF=({isOpen:e,onClose:t,onConfirm:n,catalogName:r})=>{const s=jn().productSettingModal;return c.jsx(So,{open:e,onClose:t,"aria-labelledby":"delete-catalog-modal",sx:{...s.modal,p:{xs:2,sm:0}},children:c.jsxs(P,{sx:{...s.container,width:"100%",maxWidth:{xs:"min(360px, 100%)",sm:360},boxSizing:"border-box"},children:[c.jsx(P,{sx:s.header,children:c.jsxs(U,{sx:{...s.headerTitle,fontSize:{xs:18,sm:22},overflowWrap:"anywhere",width:"100%"},children:["Are you sure you want to delete this catalog",r?` "${r}"`:"","?"]})}),c.jsxs(P,{sx:{...s.footer,display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:"stretch",gap:2,justifyContent:"center",pt:{xs:1,sm:0}},children:[c.jsx(tt,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:{xs:0,sm:100},width:{xs:"100%",sm:"auto"}},children:"Yes"}),c.jsx(tt,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:{xs:0,sm:100},width:{xs:"100%",sm:"auto"}},children:"No"})]})]})})};function cF(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 dF(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:cF(e.createdAt??e.date),createdAt:e.createdAt??e.date,status:e.status===!0?"Active":e.status===!1?"Inactive":e.status||"Active"}}function uF(e){const t=Bt(),n=yn(),{sharedCatalogues:r=[],sharedCataloguesTotal:i=0,sharedCataloguesLoading:s=!1,sharedCataloguesError:a=null}=Qe(V=>V.productSettings??{}),{updateCatalogLoading:l=!1,updateCatalogError:d=null}=Qe(V=>V.dashboard??{}),[p,u]=F.useState(0),[f,y]=F.useState(10),[x,g]=F.useState({}),[h,m]=F.useState(!1),[S,C]=F.useState(null),[b,v]=F.useState(!1),[w,A]=F.useState("");F.useEffect(()=>{n(rn({page:p+1,limit:f}))},[n,p,f]),F.useEffect(()=>()=>n({type:"dashboard/clearUpdateCatalogError"}),[n]);const k=F.useMemo(()=>Array.isArray(r)?r.map(dF).filter(Boolean):[],[r]),D=i,O=V=>u(V),B=V=>{const j=Number(V.target.value);y(j),u(0)},L=V=>x[V.id]??V.status,E=F.useCallback(()=>t(-1),[t]),{setSettingTopbarProps:I}=ss()||{};F.useEffect(()=>{if(I)return I({onBack:E}),()=>I({})},[I,E]);const $=async V=>{const{id:j,name:M,slug:Y,status:Z}=V;await n(oi({id:j,name:M,slug:Y,status:Z})).unwrap(),n(rn({page:p+1,limit:f}))},W=async(V,j)=>{const M=V.slugRaw??(typeof V.slug=="string"?V.slug.replace(/^\//,""):"")??"";g(Y=>({...Y,[V.id]:j?"Active":"Inactive"}));try{await n(oi({id:V.id,name:V.name??"",slug:M,status:j})).unwrap(),n(rn({page:p+1,limit:f}))}catch{g(Y=>({...Y,[V.id]:V.status}))}},_=V=>{C(V),m(!0)},z=()=>{m(!1),C(null)},N=async()=>{if(!S?.id){z();return}try{await n(Ks(S.id)).unwrap(),A("Catalog delete Successfully"),v(!0),z(),n(rn({page:p+1,limit:f}))}catch{A("Failed to delete catalog"),v(!0)}};return s&&k.length===0?c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:c.jsx(pn,{maxWidth:"md",sx:{boxSizing:"border-box"},children:c.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:c.jsx(Ii,{})})})}):a&&k.length===0?c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:c.jsx(pn,{maxWidth:"md",sx:{boxSizing:"border-box"},children:c.jsx(P,{sx:{textAlign:"center",py:4},children:c.jsx(U,{color:"error",children:a})})})}):c.jsxs(c.Fragment,{children:[c.jsx(aF,{catalogs:k,totalCount:D,page:p,rowsPerPage:f,statusById:x,getStatus:L,onBack:E,onPageChange:O,onRowsPerPageChange:B,onStatusChange:W,onSave:$,onDelete:_,updateCatalogError:d,updateCatalogLoading:l,...e}),c.jsx(lF,{isOpen:h,onClose:z,onConfirm:N,catalogName:S?.name}),c.jsx(ko,{open:b,autoHideDuration:4e3,onClose:()=>v(!1),message:w,anchorOrigin:{vertical:"top",horizontal:"center"}})]})}const vl=dt(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"),pF=dt([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 pu(e){return c.jsx(pF,{...e})}function fF({styles:e={},selectedProducts:t=[],data:n,onSelectProduct:r,categoryName:i,showLimitedColumns:s=!1,pagination:a=null,totalProductsCountForHeader:l=0,onPageChange:d,onLimitChange:p}){const u=e?.categoryTableAllStore??{},f=e?.categoryTableSingleStore??{},y=e?.categoryTablePagination??{},x=_t("(max-width:900px)"),g=_t("(max-width:400px)"),h=_t("(max-width:550px)"),m=_t("(max-width:770px)"),S=_t("(max-width:650px)"),C=_t("(max-width:500px)"),b=_t("(max-width:400px)"),v=!s,w=v&&m,A=q=>t.some(K=>K.id===q.id),k=Number(l>0?l:a?.totalCount??n?.length??0),D=t.length,O=k>0&&D===k,B=D>0,L=n.some(A),E=B&&!O&&L,I=()=>{O||E?t.forEach(q=>r(q,i)):n.forEach(q=>{A(q)||r(q,i)})},$=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(as,{sx:{fontSize:10,color:"#1976d2",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})}),W=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}})}),[_,z]=F.useState(null),[N,V]=F.useState([]),j=(q,K)=>{z(q.currentTarget),V(K)},M=()=>{z(null),V([])},Y=!!_,Z=v?f.outerCard:u.outerCard,J=v?"6px":"4px";return c.jsx(pn,{maxWidth:!1,sx:{width:"100%",px:0},children:c.jsxs(Qa,{sx:{...e.categoryTable,...Z,display:"flex",flexDirection:"column",boxShadow:"none",borderRadius:0,bgcolor:"transparent",overflow:"visible",width:"100%",maxWidth:"100%",marginLeft:0,marginRight:0},children:[c.jsx(P,{sx:{...u.categoryNameBox,display:"flex",alignItems:"center",mb:J,boxSizing:"border-box",overflow:"hidden"},children:c.jsx(U,{sx:{...u.categoryNameText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i})}),!(v&&!g)&&c.jsxs(P,{sx:{display:"flex",flexWrap:g&&v?"wrap":"nowrap",alignItems:"center",width:"100%",minWidth:0,...v?f.tableHeader:u.tableHeader,boxSizing:"border-box",gap:g?"8px":v&&x?"12px":"16px"},children:[s?c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:c.jsx(Ct,{checked:O,indeterminate:E,onChange:I,size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:"#FFFFFF"}}),checkedIcon:$,indeterminateIcon:W})}),c.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:"1 1 0"},children:c.jsx(U,{component:"span",sx:u.headerProduct,children:"Product"})})]}):c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:g?"8px":x?"12px":"16px",flex:"1 1 0",minWidth:0,...v&&!g&&{maxWidth:"40%"}},children:[c.jsx(Ct,{checked:O,indeterminate:E,onChange:I,size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:"#FFFFFF"}}),checkedIcon:$,indeterminateIcon:W}),s?c.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:"1 1 0"},children:c.jsx(U,{component:"span",sx:u.headerProduct,children:"Product"})}):c.jsx(U,{component:"span",sx:{...f.headerLabel,...f.headerProduct},children:"Product"})]}),!g&&(v?c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:{...f.headerStatus,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:c.jsx(U,{component:"span",sx:{...f.headerLabel},children:"Status"})}),c.jsx(P,{sx:{...f.headerPrice,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:c.jsx(U,{component:"span",sx:{...f.headerLabel},children:"Price"})}),c.jsx(P,{sx:{...f.headerStock,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:c.jsx(U,{component:"span",sx:{...f.headerLabel},children:"Stock"})}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0,flex:"0 1 auto",...f.headerOffer},children:[c.jsx(U,{component:"span",sx:{...f.headerLabel},children:"Offer"}),c.jsx(ml,{sx:{...u.arrowDown,fontSize:12,marginTop:"8px"}})]})]}):c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:6},children:c.jsx(U,{component:"span",sx:u.headerStatusText,children:"Status"})}),!h&&c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:2},children:c.jsx(U,{component:"span",sx:u.headerOsaText,children:"Stock / OSA"})}),c.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:0},children:c.jsx(ml,{sx:{fontSize:12,height:12,color:"#808080",marginLeft:"8px",marginTop:"8px"}})})]})]}))]}),(function(){const q=v&&!g,K=n.map((H,oe)=>{let ne=[];H.offers&&Array.isArray(H.offers)?ne=H.offers:H.offer&&typeof H.offer=="string"&&H.offer.includes(`
1581
- `)?ne=H.offer.split(`
1582
- `):H.offer&&Array.isArray(H.offer)?ne=H.offer:H.offer&&(ne=[H.offer]);const te=ne[0]||"",ie=ne.length>1?ne.slice(1):[];return c.jsxs(P,{sx:{...v&&!g?{gridColumn:"1 / -1",display:"grid",gridTemplateColumns:"subgrid",gap:"12px",alignItems:"flex-start",boxSizing:"border-box",mt:0,mb:0,width:"100%",maxWidth:"100%",minWidth:0,...f.rowCard,...m&&{height:"auto",minHeight:152}}:{display:"flex",flexDirection:g&&v?"column":"row",alignItems:"flex-start",flexWrap:g&&v?"nowrap":"wrap",...v?f.rowCard:u.rowCard,...w&&{height:"auto",minHeight:152},gap:g?"8px":"16px",boxSizing:"border-box",mt:oe===0?.5:0,mb:.5,width:"100%",maxWidth:"100%",minWidth:0}},children:[!(v&&b)&&c.jsx(P,{sx:{display:"flex",alignItems:"flex-start",width:16,minHeight:20,gap:"8px",flexShrink:0},children:c.jsx(Ct,{checked:A(H),onChange:()=>r(H,i),size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#2563EB",border:"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: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.jsx(P,{sx:{display:"flex",flexDirection:v&&m?"column":"row",alignItems:v&&m?"flex-start":v?"center":"flex-start",height:v&&!w&&!m?56:void 0,minHeight:56,gap:"16px",minWidth:0,flex:g?"0 0 auto":"1 1 0",width:g||v&&m?"100%":void 0,overflow:w||m?"visible":"hidden",...v?f.productBlock:u.productBlock,...v&&{width:void 0,maxWidth:"100%",flex:g?"0 0 auto":"1 1 0"},...(w||v&&m)&&{height:"auto"},...!v&&!g&&{height:void 0},...!v&&g&&{height:76,minHeight:76,maxHeight:76,overflow:"hidden"}},children:v&&m?c.jsxs(c.Fragment,{children:[c.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:"16px",minWidth:0,width:"100%",flex:"0 0 auto"},children:[b&&c.jsx(P,{sx:{display:"flex",alignItems:"flex-start",width:16,minHeight:20,flexShrink:0},children:c.jsx(Ct,{checked:A(H),onChange:()=>r(H,i),size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#2563EB",border:"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: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.jsx(P,{sx:{...u.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},children:H.productImage?c.jsx(jr,{src:H.productImage,alt:H.productName,sx:{width:56,height:56,borderRadius:"8px"}}):c.jsx(jr,{sx:{width:56,height:56,borderRadius:"8px",bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:20},children:H.productName&&H.productName[0]})}),c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0,maxWidth:"100%",overflow:"hidden"},children:[c.jsx(U,{sx:{...u.productName,wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal",overflow:"hidden",fontSize:"12px",lineHeight:"16px"},children:H.productName}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap",minWidth:0,overflow:"hidden"},children:[c.jsx(U,{sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis"},children:H.productWeight}),H.categoryName&&c.jsxs(c.Fragment,{children:[c.jsx(U,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px"},children:"•"}),c.jsx(U,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px"},children:H.categoryName})]})]}),c.jsxs(U,{sx:{...u.productSku,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis"},children:["SKU: ",H.sku]})]})]}),S?c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"24px",width:"100%",ml:b?"32px":0},children:[b&&c.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:"50px",alignItems:"center",flexWrap:"wrap",width:"100%"},children:[c.jsx(P,{component:"span",sx:H.status===!0?u.statusActiveBox:u.statusNoStockBox,children:H.status===!0?"Active":"No Stock"}),c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",...f.priceBlock},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[c.jsxs(U,{sx:f.priceText,children:["₹",H.price]}),c.jsx(P,{sx:{...f.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:c.jsx(pu,{sx:{fontSize:14,color:"#808080"}})})]}),H.mrp&&c.jsxs(U,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",H.mrp]}),H.discount&&c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:H.discount})]})]}),C&&!b&&c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",...f.priceBlock},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[c.jsxs(U,{sx:f.priceText,children:["₹",H.price]}),c.jsx(P,{sx:{...f.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:c.jsx(pu,{sx:{fontSize:14,color:"#808080"}})})]}),H.mrp&&c.jsxs(U,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",H.mrp]}),H.discount&&c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:H.discount})]}),c.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:"50px",alignItems:"center",flexWrap:"wrap",width:"100%"},children:[c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"2px",flexShrink:0},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:0},children:[H.stock===0&&c.jsx(Oo,{title:"No stock",children:c.jsx(vl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),c.jsx(U,{component:"span",sx:u.stockValue,children:H.stock}),c.jsx(U,{component:"span",sx:u.osaValue,children:H.quantity?`/${H.quantity}`:""})]}),(()=>{const R=typeof H.osa=="number"?H.osa:H.osa??0,le=Number(R),ae=le<50;return c.jsxs(U,{sx:{...u.onShelfText,fontSize:"10px",color:f.onShelfPercentNormal?.color||"#454545"},children:[c.jsxs(P,{component:"span",sx:ae?{color:f.onShelfPercentRed?.color||"#d32f2f"}:{},children:[Math.round(le),"%"]}),c.jsx(P,{component:"span",sx:{color:f.onShelfSpan?.color||"#808080"},children:" on shelf"})]})})()]}),c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:0,flex:1,minWidth:0},children:[c.jsx(U,{sx:{...f.offerText,whiteSpace:"pre-line",fontSize:"12px",lineHeight:"16px"},children:te}),ie.length>0&&c.jsxs(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:R=>j(R,ne),children:["+",ie.length," more"]})]})]})]}):c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:0,width:"100%"},children:[c.jsx(U,{sx:{...f.offerText,whiteSpace:"pre-line",fontSize:"12px",lineHeight:"16px"},children:te}),ie.length>0&&c.jsxs(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:R=>j(R,ne),children:["+",ie.length," more"]})]})]}):c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:{...u.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0,mb:0},children:H.productImage?c.jsx(jr,{src:H.productImage,alt:H.productName,sx:{width:56,height:56,borderRadius:"8px"}}):c.jsx(jr,{sx:{width:56,height:56,borderRadius:"8px",bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:20},children:H.productName&&H.productName[0]})}),c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0,maxWidth:"100%",overflow:"hidden",...!v&&g&&{height:76,minHeight:76,maxHeight:76}},children:[c.jsx(U,{sx:{...u.productName,wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal",overflow:"hidden",fontSize:"12px",lineHeight:"16px",...!v&&g&&{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}},children:H.productName}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",minWidth:0,overflow:"hidden",flexWrap:!v&&g?"nowrap":"wrap"},children:[c.jsx(U,{sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",flexShrink:!v&&g?0:void 0},children:H.productWeight}),H.categoryName&&c.jsxs(c.Fragment,{children:[c.jsx(U,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",flexShrink:0},children:"•"}),c.jsx(U,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",...!v&&g&&{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",flex:"1 1 0"}},children:H.categoryName})]})]}),c.jsxs(U,{sx:{...u.productSku,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",...!v&&g&&{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}},children:["SKU: ",H.sku]})]})]})}),(v&&!g||!v&&!g)&&c.jsx(P,{sx:{display:"flex",alignItems:"flex-start",justifyContent:v&&!g?"center":void 0,...v?f.statusBlock:{},flexShrink:0,minWidth:0,width:g?"100%":void 0,mt:g?1:0,mr:!v&&!g?4:0,...v&&!g&&{alignSelf:"flex-start",marginTop:"8px"}},children:c.jsx(P,{component:"span",sx:H.status===!0?u.statusActiveBox:u.statusNoStockBox,children:H.status===!0?"Active":"No Stock"})}),!v&&!h&&c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-start",flexShrink:0,minWidth:0,width:g?"100%":void 0,mt:g?1:0,ml:g?0:.5,textAlign:"left",marginRight:"56px"},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:0},children:[H.stock===0&&c.jsx(Oo,{title:"No stock",children:c.jsx(vl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),c.jsx(U,{component:"span",sx:u.stockValue,children:H.stock}),c.jsx(U,{component:"span",sx:u.osaValue,children:H.quantity?`/${H.quantity}`:""})]}),(()=>{const R=Number(typeof H.osa=="number"?H.osa:H.osa??0),le=R<50;return c.jsxs(U,{sx:{...u.onShelfText,color:"#808080",textAlign:"left"},children:[c.jsxs(P,{component:"span",sx:le?{color:"#d32f2f"}:{},children:[Math.round(R),"%"]})," on shelf"]})})()]}),!v&&h&&c.jsx(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-start",width:"100%",mt:1,ml:"32px",...g&&{minHeight:48}},children:c.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:12,flexWrap:g?"nowrap":"wrap"},children:[g&&c.jsx(P,{component:"span",sx:H.status===!0?u.statusActiveBox:u.statusNoStockBox,children:H.status===!0?"Active":"No Stock"}),c.jsxs(P,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:0},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:0},children:[H.stock===0&&c.jsx(Oo,{title:"No stock",children:c.jsx(vl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),c.jsx(U,{component:"span",sx:u.stockValue,children:H.stock}),c.jsx(U,{component:"span",sx:u.osaValue,children:H.quantity?`/${H.quantity}`:""})]}),(()=>{const R=Number(typeof H.osa=="number"?H.osa:H.osa??0),le=R<50;return c.jsxs(U,{sx:{...u.onShelfText,color:"#808080",textAlign:"left"},children:[c.jsxs(P,{component:"span",sx:le?{color:"#d32f2f"}:{},children:[Math.round(R),"%"]})," on shelf"]})})()]})]})}),v&&!C&&c.jsxs(P,{sx:{display:"flex",flexDirection:"column",...f.priceBlock,flexShrink:0,minWidth:0,flex:"0 1 auto",width:g?"100%":void 0,mt:g?1:0},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[c.jsxs(U,{sx:f.priceText,children:["₹",H.price]}),c.jsx(P,{sx:{...f.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:c.jsx(pu,{sx:{fontSize:14,color:"#808080"}})})]}),H.mrp&&c.jsxs(U,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",H.mrp]}),H.discount&&c.jsx(U,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:H.discount})]}),v&&!S&&c.jsxs(P,{sx:{display:"flex",flexDirection:"column",...f.stockBlock,flexShrink:0,minWidth:0,width:g?"100%":void 0,mt:g?1:0},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:0},children:[H.stock===0&&c.jsx(Oo,{title:"No stock",children:c.jsx(vl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),c.jsx(U,{component:"span",sx:u.stockValue,children:H.stock}),c.jsx(U,{component:"span",sx:u.osaValue,children:H.quantity?`/${H.quantity}`:""})]}),(()=>{const R=typeof H.osa=="number"?H.osa:H.osa??0,le=Number(R),ae=le<50;return c.jsxs(U,{sx:{...u.onShelfText,fontSize:"10px",color:f.onShelfPercentNormal.color},children:[c.jsxs(P,{component:"span",sx:ae?{color:f.onShelfPercentRed.color}:{},children:[Math.round(le),"%"]})," ",c.jsx(P,{component:"span",sx:{color:f.onShelfSpan.color},children:"on shelf"})]})})()]}),v&&!m&&c.jsxs(P,{sx:{display:"flex",flexDirection:"column",...f.offerBlock,minWidth:0,flex:"0 1 auto",width:g?"100%":void 0,mt:g?1:0},children:[c.jsx(U,{sx:{...f.offerText,whiteSpace:"pre-line"},children:te}),ie.length>0&&c.jsxs(U,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:R=>j(R,ne),children:["+",ie.length," more"]})]})]},H.id||oe)});return q?c.jsxs(P,{sx:{display:"grid",gridTemplateColumns:b?"minmax(0, 1fr)":C?"auto minmax(0, 1fr) auto":S?"auto minmax(0, 1fr) auto auto":m?"auto minmax(0, 1fr) auto auto auto":"auto minmax(0, 1fr) auto auto auto auto",columnGap:"12px",rowGap:"4px",alignItems:"start",width:"100%",minWidth:0,boxSizing:"border-box"},children:[c.jsx(P,{sx:{gridColumn:"1 / -1",display:"grid",gridTemplateColumns:"subgrid",gap:"12px",alignItems:"center",...f.tableHeader,boxSizing:"border-box"},children:b?c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0},children:[c.jsx(Ct,{checked:O,indeterminate:E,onChange:I,size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:"#FFFFFF"}}),checkedIcon:$,indeterminateIcon:W}),c.jsx(U,{component:"span",sx:{...f.headerLabel,...f.headerProduct},children:"Product"})]}):c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:c.jsx(Ct,{checked:O,indeterminate:E,onChange:I,size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:"#FFFFFF"}}),checkedIcon:$,indeterminateIcon:W})}),c.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0},children:c.jsx(U,{component:"span",sx:{...f.headerLabel,...f.headerProduct},children:"Product"})}),!b&&c.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"center",minWidth:0},children:c.jsx(U,{component:"span",sx:{...f.headerLabel},children:"Status"})}),!C&&c.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0},children:c.jsx(U,{component:"span",sx:{...f.headerLabel},children:"Price"})}),!S&&c.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0},children:c.jsx(U,{component:"span",sx:{...f.headerLabel},children:"Stock"})}),!m&&c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0,...f.headerOffer},children:[c.jsx(U,{component:"span",sx:{...f.headerLabel},children:"Offer"}),c.jsx(ml,{sx:{...u.arrowDown,fontSize:12,marginTop:"8px",marginLeft:"20px"}})]})]})}),K]}):K})(),c.jsxs(jd,{open:Y,anchorEl:_,onClose:M,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{p:2,minWidth:220}},children:[c.jsx(U,{sx:{fontWeight:700,mb:1},children:"Offers"}),N.map((q,K)=>c.jsxs(U,{sx:{fontSize:14,color:"#222",mb:.5},children:[K+1,". ",q]},K))]}),a&&typeof d=="function"&&typeof p=="function"&&c.jsxs(P,{sx:{...y.wrapper,width:"100%",maxWidth:"100%"},children:[c.jsxs(P,{sx:y.resultsPerPageBox,children:[c.jsx(U,{component:"span",sx:y.resultsPerPageText,children:"Results per page"}),c.jsx(Cn,{value:a.limit??10,onChange:q=>p(Number(q.target.value)),IconComponent:Hr,variant:"standard",disableUnderline:!0,sx:y.select,children:[5,10,20,50].map(q=>c.jsx(Et,{value:q,children:q},q))})]}),c.jsxs(P,{sx:y.navBox,children:[c.jsx(vt,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>d(1),sx:y.iconButton,title:"First page",children:c.jsx(cu,{sx:y.paginationIcon})}),c.jsx(vt,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>d((a.currentPage??1)-1),sx:y.iconButton,title:"Previous page",children:c.jsx(os,{sx:y.paginationIcon})}),c.jsx(U,{component:"span",sx:y.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(vt,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>d((a.currentPage??1)+1),sx:y.iconButton,title:"Next page",children:c.jsx(zt,{sx:y.paginationIcon})}),c.jsx(vt,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>d(a.totalPages??1),sx:y.iconButton,title:"Last page",children:c.jsx(du,{sx:y.paginationIcon})})]})]})]})})}const hF={category:"all",status:"all",search:"",store:[]},gF=()=>{const e=yn(),t=Bt(),n=It(),[r]=Kb(),i=r.get("categoryName"),s=jn(),a=s.categoryDetail,[l,d]=F.useState(()=>({...hF,...n.state?.filters||{}})),p=F.useMemo(()=>JSON.stringify(Array.isArray(l.store)?[...l.store].map(String).sort():[]),[l.store]),u=(Array.isArray(n.state?.selectedProducts)?n.state.selectedProducts:[]).reduce((ye,Le)=>{const Ge=(Le.categoryName||Le.category||i||"").toString().trim();if(!Ge)return ye;const Pt=ye[Ge]||[];return Pt.some(yt=>yt.id===Le.id)?ye[Ge]=Pt:ye[Ge]=[...Pt,Le],ye},{}),[f,y]=F.useState(u),[,x]=F.useState(null),[g,h]=F.useState(!1),[m,S]=F.useState([]),[C,b]=F.useState(!1),[v,w]=F.useState(!1),{integrationData:A,companyId:k,loading:D,productsLoading:O}=Qe(ge=>ge.dashboard),B=F.useRef(!1),L=F.useRef(!1),[E,I]=F.useState(!1);F.useEffect(()=>{!k&&!B.current&&(B.current=!0,e(ni()))},[e,k]),F.useEffect(()=>{I(!1)},[i]);const $=F.useMemo(()=>A&&typeof A=="object"&&Object.keys(A).length>0?{matched:!0,error:"",apiResponse:A,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[A]),W=Qe(ge=>ge.dashboard),{products:_=[],stores:z=[],pagination:N={},categoryList:V=[]}=W||{},{currentPage:j=1,limit:M=10,totalCount:Y=0,totalPages:Z=1,hasNextPage:J=!1}=N,q=Qe(ge=>{const ye=ge.dashboard?.stores;return!Array.isArray(ye)||ye.length===0?"":ye.map(Le=>`${Le.id??""}:${Le.storeCode??""}`).join("|")}),{sharedCatalogues:K=[],sharedCataloguesTotal:H=0,lastStableActiveCatalogsCount:oe=null}=Qe(ge=>ge.productSettings??{}),ne=F.useMemo(()=>Array.isArray(K)?K.filter(ge=>ge.status===!0).length:0,[K]),ie=H>0&&K.length>=H?ne:oe??ne,R=F.useMemo(()=>{if(!i||!Array.isArray(_))return[];const ge=i.trim().toLowerCase();return _.filter(ye=>{const Le=(ye.categoryName||ye.category||"").toString().trim().toLowerCase();return Le&&Le===ge}).map(ye=>({...ye,catalogProductId:ye.productId||ye.id,id:ye.id||ye.sku||ye.productName}))},[_,i]),le=R.length>0,ae=Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[],me=i?i.toString().trim().toLowerCase():"",Ve=ae.find(ge=>{const ye=(ge?.categoryName??ge?.name??"").toString().trim();return ye&&me&&ye.toLowerCase()===me}),Ie=Number(Ve?.productCount??Ve?.productsCount??Ve?.products)||0,Ne=Array.isArray(V)?V.find(ge=>{const ye=(ge?.categoryName??ge?.name??"").toString().trim().toLowerCase();return ye&&me&&ye===me}):null,Ue=Number(Ne?.productCount??Ne?.productsCount??Ne?.products)||0,je=Ie>0?Ie:Ue,$e=l?.status&&l.status!=="all"||l?.stock&&l.stock!=="all"||Array.isArray(l?.store)&&l.store.length>0&&!l.store.includes("all")||l?.search!=null&&String(l.search).trim()!==""||typeof l?.minPrice=="number"&&Number.isFinite(l.minPrice)||typeof l?.maxPrice=="number"&&Number.isFinite(l.maxPrice),de=i&&Number.isFinite(je)&&je>0&&Y>je,He=de?je:Y,se=de?Math.max(1,Math.ceil(He/((M??10)||10))):Z,re=de?(j??1)<se:J,fe=F.useMemo(()=>{if(!R||R.length===0)return;const ge=R.map(ye=>Number(ye.price??ye.sellingPrice??ye.mrp)).filter(ye=>Number.isFinite(ye)&&ye>=0);if(ge.length!==0)return{min:Math.min(...ge),max:Math.max(...ge)}},[R]),ve=F.useRef(!1);F.useEffect(()=>{k&&(Array.isArray(V)&&V.length>0||e(An({page:1,limit:10})))},[e,k,V]),F.useEffect(()=>{if(!k||!i||ve.current||!Array.isArray(V)||V.length===0)return;V.some(ye=>{const Le=(ye?.categoryName??ye?.name??"").toString().trim().toLowerCase();return Le&&Le===me})||(ve.current=!0,e(An({page:1,limit:5e3})))},[e,k,i,V,me]);const Ae=Array.isArray(_)&&_.length>0,Pe=Array.isArray(l.store)?l.store:[],Ye=!(Pe.length===1&&Pe[0]!=="all"),Fe=ge=>{ge.preventDefault(),t("/settings",{state:{tenantIntegrationData:$.apiResponse}})},ce=F.useMemo(()=>z.length>0?z:[{id:"all",name:"All Stores",storeCode:"all"}],[z]),Ee=F.useCallback(ge=>{d(ge)},[d]),We=F.useCallback(()=>{const ye=l?.sortBy==="productName"&&l?.sortOrder==="asc"?"desc":"asc";Ee({...l,sortBy:"productName",sortOrder:ye})},[l,Ee]),st=l?.sortBy==="productName"&&l?.sortOrder==="asc"?180:0,ue=F.useCallback((ge={})=>{const ye=Array.isArray(l.store)?l.store:[],Le={page:j,limit:M,...ge};if(i&&i.trim()&&(Le.categoryName=i.trim()),ye.length>0&&!ye.includes("all")){const Ge=ye.map(Pt=>z.find(br=>br.id===Pt)?.storeCode).filter(Boolean);Ge.length>0&&(Le.storeCode=Ge.join(","))}return(l.status==="active"||l.status==="inactive")&&(Le.status=l.status==="active"),(l.stock==="inStock"||l.stock==="outOfStock")&&(Le.inStock=l.stock==="inStock"),typeof l.minPrice=="number"&&Number.isFinite(l.minPrice)&&(Le.minPrice=l.minPrice),typeof l.maxPrice=="number"&&Number.isFinite(l.maxPrice)&&(Le.maxPrice=l.maxPrice),l.search!=null&&String(l.search).trim()!==""&&(Le.search=String(l.search).trim()),l.sortBy&&(l.sortOrder==="asc"||l.sortOrder==="desc")&&(Le.sortBy=l.sortBy,Le.sortOrder=l.sortOrder==="asc"?"ASC":"DESC"),Le},[i,j,M,p,l.status,l.stock,l.minPrice,l.maxPrice,l.search,l.sortBy,l.sortOrder,q]),he=ge=>{e(Ar(ue({page:ge})))},ze=ge=>{e(Ar(ue({page:1,limit:ge})))},At=F.useCallback((ge,ye={})=>{const Le=Array.isArray(l.store)?l.store:[],Ge={page:1,limit:5e3,...ye};if(ge&&String(ge).trim()!==""&&(Ge.categoryName=String(ge).trim()),Le.length>0&&!Le.includes("all")){const Pt=Le.map(yt=>z.find(No=>No.id===yt)?.storeCode).filter(Boolean);Pt.length>0&&(Ge.storeCode=Pt.join(","))}return l.search!=null&&String(l.search).trim()!==""&&(Ge.search=String(l.search).trim()),Ge},[l.store,l.search,z]),ke=F.useCallback(async()=>{const ye=(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]).map(ct=>(ct?.categoryName??ct?.name??"").toString().trim()).filter(Boolean),Le=Array.isArray(f[i])?f[i]:[],Ge=[];for(const ct of ye){if(ct===i){Le.length>0&&Ge.push(Le);continue}try{const qn=At(ct),xr=await e(Ys(qn)).unwrap().catch(()=>({})),SF=Array.isArray(xr?.data)?xr.data:Array.isArray(xr?.products)?xr.products:Array.isArray(xr)?xr:[];Ge.push(SF)}catch{Ge.push([])}}Le.length>0&&!ye.includes(i)&&Ge.push(Le);const Pt=new Set(ye);Object.keys(f||{}).forEach(ct=>{if(ct===i||Pt.has(ct))return;const qn=f[ct];Array.isArray(qn)&&qn.length>0&&Ge.push(qn)});const yt=Ge.flat().filter(Boolean),br=new Set,No=yt.map(ct=>({...ct,catalogProductId:ct?.productId??ct?.catalogProductId??ct?.id,id:ct?.id||ct?.sku||ct?.productName})).filter(ct=>{const qn=(ct?.productId||ct?.id||ct?.sku||ct?.productName||"").toString();return!qn||br.has(qn)?!1:(br.add(qn),!0)});S(No),h(!0)},[e,i,n.state,f,At]),Je=F.useRef(null),Hn=F.useRef(null),$t=F.useRef(null);F.useEffect(()=>{if(!k)return;const ge=i?.trim()||"",ye=$t.current,Le=!!ge&&ye!==ge;Le&&(e(kf()),$t.current=ge);const Ge=Le?1:j,Pt=Array.isArray(l.store)?l.store:[],yt={page:Ge,limit:M};if(i&&i.trim()&&(yt.categoryName=i.trim()),Pt.length>0&&!Pt.includes("all")){const No=Pt.map(ct=>z.find(xr=>xr.id===ct)?.storeCode).filter(Boolean);No.length>0&&(yt.storeCode=No.join(","))}(l.status==="active"||l.status==="inactive")&&(yt.status=l.status==="active"),(l.stock==="inStock"||l.stock==="outOfStock")&&(yt.inStock=l.stock==="inStock"),typeof l.minPrice=="number"&&Number.isFinite(l.minPrice)&&(yt.minPrice=l.minPrice),typeof l.maxPrice=="number"&&Number.isFinite(l.maxPrice)&&(yt.maxPrice=l.maxPrice),l.search!=null&&String(l.search).trim()!==""&&(yt.search=String(l.search).trim()),l.sortBy&&(l.sortOrder==="asc"||l.sortOrder==="desc")&&(yt.sortBy=l.sortBy,yt.sortOrder=l.sortOrder==="asc"?"ASC":"DESC");const br=JSON.stringify(yt);Je.current!==br&&(Je.current=br,e(Ar(yt)))},[k,i,j,M,p,l.status,l.stock,l.minPrice,l.maxPrice,l.search,l.sortBy,l.sortOrder,e,q]);const Ut=(ge,ye)=>{I(!0),y(Le=>{const Ge=Le[ye]||[];let Pt;return Ge.some(yt=>yt.id===ge.id)?Pt=Ge.filter(yt=>yt.id!==ge.id):Pt=[...Ge,ge],{...Le,[ye]:Pt}}),x(ye)};F.useEffect(()=>{if(L.current||!i||!Array.isArray(R)||R.length===0||!(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]).map(Ge=>Ge?.categoryName??Ge?.name??Ge).filter(Boolean).includes(i))return;if((f[i]||[]).length>0){L.current=!0;return}queueMicrotask(()=>{y(Ge=>({...Ge,[i]:R}))}),L.current=!0},[i,R,f,n.state?.selectedCategories]),F.useEffect(()=>{k&&(e(qt(k)),e(ri()),i&&i.trim()&&e(qs({categoryName:i.trim()})),e(rn({page:1})))},[e,k,i]),F.useEffect(()=>{if(!k||H<=0)return;(Array.isArray(K)?K.length:0)<H&&e(rn({page:1,limit:H}))},[k,H,K?.length,e]);const Me=Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[],gn=f[i]||[],Py=$e?He:je>0?je:He,ky=le&&Py>0&&gn.length===Py,Rn=i?i.toString().trim():"",Oy=!!Rn&&Me.some(ge=>(ge?.categoryName??ge?.name??"").toString().trim()===Rn),xF=Oy&&!E&&gn.length>0&&!ky,Sl=new Map(Me.map(ge=>{const ye=(ge?.categoryName??ge?.name??"").toString().trim();return ye?[ye,ge]:null}).filter(Boolean));Rn&&(ky||xF?Sl.has(Rn)||Sl.set(Rn,Ne||Ve||{categoryName:Rn}):Sl.delete(Rn));const cs=Array.from(Sl.values()),vF=Array.isArray(n.state?.pinnedCategoryNames)?n.state.pinnedCategoryNames.map(ge=>String(ge).trim()).filter(Boolean):Me.map(ge=>(ge?.categoryName??ge?.name??"").toString().trim()).filter(Boolean),fu=new Set(vF);Rn&&Oy&&(gn.length===0?fu.delete(Rn):fu.add(Rn));const Iy=Array.from(fu),{setTopbarProps:wl}=ss()||{};return F.useEffect(()=>{if(wl)return wl({filters:l,onFilterChange:Ee,styles:a.topBar,stores:ce,tenantStatus:$,onSortToggle:We,sortIconRotationDeg:st,hasProducts:Ae,priceRange:fe,showBackButton:!0,backTo:"/",backState:{selectedCategories:cs,selectedProducts:Object.values(f||{}).flat(),pinnedCategoryNames:Iy}}),()=>wl({})},[wl,l,Ee,We,st,a.topBar,ce,$,Ae,fe,cs,Iy,f]),c.jsx(c.Fragment,{children:c.jsxs(P,{sx:a.contentWrapper??{marginTop:0,position:"relative",zIndex:0},children:[D||!k?c.jsx(Io,{text:i?"Fetching Products":"Fetching",fullScreen:!1}):i?i&&O?c.jsx(Io,{text:"Fetching Products",fullScreen:!1}):le?c.jsxs(P,{sx:a.root,children:[c.jsxs(pn,{ref:Hn,maxWidth:"lg",sx:{width:"100%",px:{xs:1,sm:2,md:4},display:"flex",flexDirection:"column",alignItems:"stretch"},children:[c.jsx(yy,{productState:W,categoryName:i,categoryProductCount:R.length,activeCatalogsCount:ie,onManageClick:()=>t("/catalogs/manage-shared"),matchHomePageLayout:!0,equalCardWidths:!0}),c.jsx(fF,{data:R,styles:a,selectedProducts:f[i]||[],onSelectProduct:Ut,categoryName:i,showLimitedColumns:Ye,totalProductsCountForHeader:$e?0:je,pagination:{currentPage:j,limit:M,totalCount:He,totalPages:se,hasNextPage:re},onPageChange:he,onLimitChange:ze})]}),c.jsx(vy,{containerRef:Hn,onPromoPrint:ke,onCreateCatalog:()=>b(!0),onOsaRequest:()=>w(!0),selectedProducts:Object.values(f||{}).flat(),selectedCategories:cs})]}):c.jsx(P,{sx:a.loadingBox??{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(U,{sx:s?.emptyProduct&&s.emptyProduct.title||{fontSize:"16px",fontWeight:600,color:"#1a1a1a"},children:`No products found in the "${i}" category.`})}):c.jsx(eu,{handleStartSyncing:Fe,loading:!1}),c.jsx(Ty,{open:g,onClose:()=>{h(!1),S([])},selectedProducts:m},g?"open":"closed"),c.jsx(wy,{open:C,onClose:()=>b(!1),stores:ce,selectedProducts:Object.values(f||{}).flat(),selectedCategories:cs,onCreateSuccess:ge=>{y(ye=>({...ye,[i]:[]})),b(!1),ge&&t("/",{state:{catalogCreated:!0,catalogSlug:ge}})}}),c.jsx(Cy,{open:v,onClose:()=>w(!1),stores:ce,selectedProducts:Object.values(f||{}).flat(),selectedCategories:cs,onSuccess:()=>y(ge=>({...ge,[i]:[]}))})]})})};function mF(){return c.jsx(Pb,{children:c.jsxs(vr,{element:c.jsx(HI,{}),children:[c.jsx(vr,{path:"/",element:c.jsx(bN,{})}),c.jsx(vr,{path:"/category",element:c.jsx(gF,{})}),c.jsx(vr,{path:"/product-setting",element:c.jsx(PN,{})}),c.jsx(vr,{path:"/products/settings/ftp-sync",element:c.jsx(YN,{})}),c.jsx(vr,{path:"/catalogs/manage-shared",element:c.jsx(uF,{})})]})})}function yF({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return c.jsx(mF,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}const bF=()=>c.jsx(Io,{text:"Fetching",fullScreen:!0});return({apiUrl:e,authToken:t,basePath:n="/",StoresModal:r,storesModalProps:i,onStoreSelect:s})=>c.jsx("div",{style:{width:"100%",minHeight:"100vh",boxSizing:"border-box"},children:c.jsx(Q1,{apiUrl:e,authToken:t,children:c.jsx(x0,{store:Ff,children:c.jsx(T0.PersistGate,{loading:c.jsx(bF,{}),persistor:X1,children:c.jsx(Vb,{basename:n,children:c.jsx(yF,{StoresModal:r,storesModalProps:i,onStoreSelect:s})})})})})})}));
1580
+ `},hN=({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(f=>{for(let y=0;y<a;y++)l.push(f)});const d={A4:pN,A7:fN},u=(d[n]||d.A4)({selectedProducts:l,selectedDesign:t,itemsToShow:r});try{s.document.open(),s.document.write(u),s.document.close()}catch(f){console.error("Error writing to print window:",f),alert("Error generating print preview. Please check console for details.")}},yl=c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:"#FFFFFF"}}),bl=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(as,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})}),gN=()=>{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}`}},Ty=({open:e,onClose:t,selectedProducts:n=[]})=>{const r=jn(),i=F.useMemo(()=>gN(),[]),[s,a]=F.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[l,d]=F.useState("design1"),[p,u]=F.useState(""),[f,y]=F.useState(1),[x,g]=F.useState(!1),[h,m]=F.useState(!1),S=z=>a(N=>({...N,[z]:!N[z]})),C=()=>{if(!n||n.length===0){m(!0);return}if(!p){g(!0);return}g(!1);const z=f>0?f:1;hN({selectedProducts:n,selectedDesign:l,sheetSize:p,itemsToShow:s,copyPerItem:z}),t()};F.useEffect(()=>{(e&&n&&n.length>0||!e)&&queueMicrotask(()=>m(!1))},[e,n]);const b=r.promoPrintModal,v=_t("(max-width:430px)"),w=v?{...b.dialog,width:"min(379px, calc(100vw - 32px))",maxWidth:"min(379px, calc(100vw - 32px))",height:"auto",maxHeight:"90vh"}:b.dialog,A=v?{...b.header,width:"100%",height:"auto",pt:"18px",pb:"14px",px:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",boxSizing:"border-box",overflow:"visible"}:b.header,k=v?{...b.headerTitle,fontSize:"14px",lineHeight:"18px"}:b.headerTitle,D=v?{...b.sectionTitle,fontSize:"12px",lineHeight:"16px",marginBottom:"6px"}:b.sectionTitle,O=v?{...b.itemsToShowSection,width:"100%"}:b.itemsToShowSection,B=v?{...b.checkboxRow,width:"100%",gridTemplateColumns:"1fr 1fr",gap:"8px 12px"}:b.checkboxRow,L=v?{...b.middleCard,width:"100%",gap:"16px"}:b.middleCard,E=v?{...b.designSection,width:"100%"}:b.designSection,I=v?{...b.sheetSizeSection,width:"100%",gap:"6px",minHeight:52}:b.sheetSizeSection,$=v?{...b.sheetSizeHeader,width:"100%",fontSize:"12px",lineHeight:"16px",height:18}:b.sheetSizeHeader,W=v?{...b.sheetSizeRow,width:"100%",flexDirection:"column",alignItems:"flex-start",gap:"8px"}:b.sheetSizeRow,_=v?{...b.copyPerItemRow,width:"100%",mt:0}:b.copyPerItemRow;return c.jsxs(wo,{open:e,onClose:t,maxWidth:!1,PaperProps:{sx:w},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[c.jsx(Co,{sx:{p:0},children:c.jsxs(P,{sx:A,children:[c.jsx(H,{sx:{...k,flex:"1 1 auto",minWidth:0},children:"Promo Print"}),c.jsx(P,{component:"button",onClick:t,sx:{...b.crossIconCard,flexShrink:0,ml:"auto"},"aria-label":"Close",children:c.jsx(Sy,{sx:{fontSize:16,color:"#454545"}})})]})}),c.jsx(Hi,{sx:v?{...b.content,px:"12px",pt:"6px"}:b.content,children:c.jsxs(P,{sx:L,children:[c.jsxs(P,{sx:O,children:[c.jsx(H,{sx:D,children:"Items to show"}),c.jsxs(P,{sx:B,children:[c.jsx(fn,{control:c.jsx(Ct,{checked:s.productName,onChange:()=>S("productName"),size:"small",sx:b.checkboxSx,icon:yl,checkedIcon:bl}),label:"Product Name",sx:b.checkboxLabel}),c.jsx(fn,{control:c.jsx(Ct,{checked:s.percentOff,onChange:()=>S("percentOff"),size:"small",sx:b.checkboxSx,icon:yl,checkedIcon:bl}),label:"Percent OFF",sx:b.checkboxLabel}),c.jsx(fn,{control:c.jsx(Ct,{checked:s.mrp,onChange:()=>S("mrp"),size:"small",sx:b.checkboxSx,icon:yl,checkedIcon:bl}),label:"MRP",sx:b.checkboxLabel}),c.jsx(fn,{control:c.jsx(Ct,{checked:s.discountPrice,onChange:()=>S("discountPrice"),size:"small",sx:b.checkboxSx,icon:yl,checkedIcon:bl}),label:"Discount Price",sx:b.checkboxLabel})]})]}),c.jsxs(P,{sx:E,children:[c.jsx(H,{sx:D,children:"Promo Design"}),c.jsxs(P,{sx:b.designContainer,children:[c.jsxs(P,{onClick:()=>d("design1"),sx:{...b.designCard.base,...l==="design1"?b.designCard.selected:b.designCard.unselected},children:[c.jsx(H,{sx:{...b.design1.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"SAVE"}),c.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(H,{component:"span",sx:{...b.design1.rupeeSymbol},children:"₹"}),c.jsx(H,{component:"span",sx:{...b.design1.bigPrice},children:"1387"})]})}),c.jsxs(P,{sx:{...b.design1.bottomInfo,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[c.jsxs(H,{sx:{...b.design1.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["OUR PRICE: ",c.jsx(H,{component:"span",sx:b.design1.rupeeSymbolSmall,children:"₹"}),"73"]}),c.jsxs(H,{sx:{...b.design1.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP: ",c.jsx(H,{component:"span",sx:b.design1.rupeeSymbolSmall,children:"₹"}),"1460"]})]}),c.jsx(H,{sx:{...b.design1.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"}),c.jsxs(P,{sx:b.design1.dateRow,children:[c.jsxs(H,{sx:b.design1.validFromText,children:["VALID TO: ",i.validTo]}),c.jsxs(H,{sx:b.design1.validToText,children:["PPD: ",i.ppd]})]})]}),c.jsxs(P,{onClick:()=>d("design2"),sx:{...b.designCard.base,...l==="design2"?b.designCard.selected:b.designCard.unselected},children:[c.jsxs(P,{sx:b.design2.mainOfferBlock,children:[c.jsx(H,{sx:{...b.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 1PC @5.00% Off"}),c.jsx(H,{sx:{...b.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 2PC @5.00% Off"})]}),c.jsxs(H,{sx:{...b.design2.mrpBlock,visibility:s.mrp?"visible":"hidden"},children:["MRP:",c.jsx(H,{component:"span",sx:b.design2.rupeeSymbolSmall,children:"₹"}),"1460"]}),c.jsx(H,{sx:{...b.design2.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),c.jsxs(P,{sx:b.design2.dateRow,children:[c.jsxs(H,{sx:b.design2.validFromText,children:["(Valid till: ",i.validTo,")"]}),c.jsxs(H,{sx:b.design2.validToText,children:["(PPD: ",i.ppd,")"]})]})]}),c.jsxs(P,{onClick:()=>d("design3"),sx:{...b.designCard.base,...l==="design3"?b.designCard.selected:b.designCard.unselected},children:[c.jsx(H,{sx:{...b.design3.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),c.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(H,{component:"span",sx:{...b.design3.rupeeSymbol},children:"₹"}),c.jsx(H,{component:"span",sx:{...b.design3.bigPrice},children:"29"})]})}),c.jsx(H,{sx:{...b.design3.productName,visibility:s.productName?"visible":"hidden"},children:"POTATO BIG KG"}),c.jsxs(P,{sx:b.design3.dateRow,children:[c.jsxs(H,{sx:b.design3.validFromText,children:["[ValidTo: ",i.validTo,"]"]}),c.jsxs(H,{sx:b.design3.validToText,children:["[PPD: ",i.ppd,"]"]})]})]}),c.jsxs(P,{onClick:()=>d("design4"),sx:{...b.designCard.base,...l==="design4"?b.designCard.selected:b.designCard.unselected},children:[c.jsx(H,{sx:{...b.design4.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),c.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(H,{component:"span",sx:{...b.design4.rupeeSymbol},children:"₹"}),c.jsx(H,{component:"span",sx:{...b.design4.priceWhole},children:"899"}),c.jsx(H,{component:"span",sx:{...b.design4.priceDecimal},children:".70"})]})}),c.jsxs(P,{sx:{...b.design4.saveMrpRow,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[c.jsxs(H,{sx:{...b.design4.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["SAVE: ",c.jsx(H,{component:"span",sx:b.design4.rupeeSymbolSmall,children:"₹"}),"2099.30"]}),c.jsxs(H,{sx:{...b.design4.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP:",c.jsx(H,{component:"span",sx:b.design4.rupeeSymbolSmall,children:"₹"}),"2999"]})]}),c.jsx(H,{sx:{...b.design4.productCode,visibility:s.productName?"visible":"hidden"},children:"MCS-SWE-CP-SO-RG-XXL-1402A5-PuLa"}),c.jsxs(P,{sx:b.design4.dateRow,children:[c.jsxs(H,{sx:b.design4.validFromText,children:["[VALIDITY: ",i.validTo,"]"]}),c.jsxs(H,{sx:b.design4.validToText,children:["[PPID: ",i.ppd,"]"]})]})]}),c.jsxs(P,{onClick:()=>d("design5"),sx:{...b.designCard.base,...l==="design5"?b.designCard.selected:b.designCard.unselected},children:[c.jsxs(P,{sx:b.design5.topSection,children:[c.jsxs(P,{sx:b.design5.leftColumn,children:[c.jsxs(P,{sx:b.design5.rewardsLogo,children:[c.jsxs(P,{sx:b.design5.logoLine1,children:[c.jsx(H,{sx:b.design5.logoMy,children:"My"}),c.jsx(H,{sx:b.design5.logoSpencer,children:"spencers"})]}),c.jsxs(H,{sx:b.design5.logoRewards,children:["Rewa",c.jsx(H,{component:"span",sx:b.design5.rupeeSymbol1,children:"₹"}),"ds"]})]}),c.jsxs(H,{sx:{...b.design5.memberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["MEMBER",c.jsx("br",{}),"PRICE"]}),c.jsxs(H,{sx:{...b.design5.memberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[c.jsx(H,{component:"span",sx:b.design5.rupeeSymbol,children:"₹"}),"99"]})]}),c.jsx(P,{sx:b.design5.verticalDivider}),c.jsxs(P,{sx:b.design5.rightColumn,children:[c.jsxs(H,{sx:{...b.design5.nonMemberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["NON",c.jsx("br",{}),"MEMBER",c.jsx("br",{}),"PRICE"]}),c.jsxs(H,{sx:{...b.design5.nonMemberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[c.jsx(H,{component:"span",sx:b.design5.rupeeSymbol,children:"₹"}),"116"]})]})]}),c.jsxs(P,{sx:b.design5.middleSection,children:[c.jsx(H,{sx:{...b.design5.productName,visibility:s.productName?"visible":"hidden"},children:"MAGGI 2-MINUTE MASALA NOODLES 560G"}),c.jsxs(H,{sx:{...b.design5.mrpText,visibility:s.mrp?"visible":"hidden"},children:["MRP ",c.jsx(H,{component:"span",sx:b.design5.rupeeSymbolSmall,children:"₹"}),"120"]})]}),c.jsx(P,{sx:b.design5.horizontalDivider}),c.jsx(P,{sx:b.design5.bottomSection,children:c.jsx(H,{sx:b.design5.savingsMessage,children:"SAVE UPTO 6% EXTRA MONTHLY WITH MY SPENCERS REWARDS"})})]})]})]}),c.jsxs(P,{sx:I,children:[c.jsx(H,{sx:$,children:"Sheet Size"}),c.jsxs(P,{sx:W,children:[c.jsx(P,{sx:b.sheetSizeGroup,children:["A4","A7"].map(z=>c.jsx(P,{onClick:()=>{u(z),g(!1)},sx:{...b.sheetSizeBtn,...p===z?b.sheetSizeBtnSelected:{}},children:c.jsx(H,{sx:p===z?{...b.sheetSizeBtnText,...b.sheetSizeBtnTextSelected,fontSize:v?"11px":void 0}:{...b.sheetSizeBtnText,fontSize:v?"11px":void 0},children:z})},z))}),c.jsxs(P,{sx:_,children:[c.jsx(H,{sx:b.copyPerItemLabel,children:"Enter Copy per item:"}),c.jsx(rs,{type:"number",value:f,onChange:z=>{const N=parseInt(z.target.value,10);!isNaN(N)&&N>0?y(N):z.target.value===""&&y(1)},inputProps:{min:1,style:{padding:"4px 8px",textAlign:"center",width:"60px"}},sx:{"& .MuiOutlinedInput-root":{height:28,width:"80px",bgcolor:"#F5F5F5"},"& .MuiOutlinedInput-input":{padding:"4px 8px",fontSize:"12px"}},size:"small"})]})]})]})]})}),c.jsxs(Id,{sx:{...b.actions,flexDirection:"column",alignItems:"flex-start"},children:[x&&c.jsx(H,{variant:"body2",sx:{color:"red",mb:.5},children:"Please select a sheet size."}),h&&c.jsx(H,{variant:"body2",sx:{color:"red",mb:.5},children:"No products selected. Please select products first."}),c.jsx(P,{sx:{...b.printButtonWrapper,alignSelf:"stretch",display:"flex",justifyContent:"flex-end"},children:c.jsx(tt,{type:"button",onClick:C,variant:"contained",sx:b.printButton,children:"Print"})})]})]})},mN=dt([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");function cu(e){return c.jsx(mN,{...e})}const yN=dt([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");function du(e){return c.jsx(yN,{...e})}const bN=()=>{const e=yn(),t=Bt(),n=It(),r=jn(),i=n.state?.catalogCreated&&n.state?.catalogSlug?{catalogSlug:n.state.catalogSlug}:null,s=()=>{t(n.pathname,{replace:!0,state:{}})},a=r.categoryDetail,[l,d]=F.useState({category:"all",status:"all",search:"",store:[]}),{integrationData:p,companyId:u,loading:f,categoriesLoading:y,categoriesFetchSettled:x,error:g}=Qe(ce=>ce.dashboard),h=F.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]),m=Qe(ce=>ce.dashboard),{categoryList:S=[],stores:C=[],categoryPagination:b={}}=m||{},v=S,{currentPage:w=1,limit:A=10,totalCount:k=0,totalPages:D=1,hasNextPage:O=!1}=b,{sharedCatalogues:B=[],sharedCataloguesTotal:L=0,lastStableActiveCatalogsCount:E=null}=Qe(ce=>ce.productSettings??{}),I=F.useMemo(()=>Array.isArray(B)?B.filter(ce=>ce.status===!0).length:0,[B]),W=L>0&&B.length>=L?I:E??I,_=Array.isArray(S)&&S.length>0,z=()=>{h.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},N=F.useMemo(()=>C.length>0?C:[{id:"all",name:"All Stores",storeCode:"all"}],[C]),V=F.useCallback(ce=>{d(ce)},[d]),j=F.useCallback((ce={})=>{const Ee=Array.isArray(l.store)?l.store:[],We={...ce};if(Ee.length>0&&!Ee.includes("all")){const st=Ee.map(ue=>C.find(ze=>ze.id===ue)?.storeCode).filter(Boolean);st.length>0&&(We.storeCode=st[0])}return l.search!=null&&String(l.search).trim()!==""&&(We.search=String(l.search).trim()),l.minOsa!=null&&l.minOsa!==""&&(We.minOsa=l.minOsa),l.maxOsa!=null&&l.maxOsa!==""&&(We.maxOsa=l.maxOsa),l.order!=null&&l.order!==""&&(We.order=l.order),We},[l.store,l.search,l.minOsa,l.maxOsa,l.order,C]),M=F.useRef(null);F.useEffect(()=>{if(!u)return;const ce=j({page:w,limit:A}),Ee=JSON.stringify(ce);M.current!==Ee&&(M.current=Ee,e(An(ce)))},[u,w,A,j,e]);const Y=ce=>{const Ee=j({page:ce,limit:A});e(An(Ee))},Z=ce=>{const Ee=j({page:1,limit:ce});e(An(Ee))},[J,q]=F.useState(!1);F.useEffect(()=>{!u&&!J?e(ni()).finally(()=>{q(!0)}):u&&queueMicrotask(()=>q(!0))},[e,u,J]);const K=F.useRef(null),U=F.useRef(n.pathname),oe=F.useRef(null);F.useEffect(()=>{n.pathname==="/"&&e(kf())},[e,n.pathname]),F.useEffect(()=>{u&&u!==K.current&&(K.current=u,e(qt(u)),e(An({page:1,limit:10})),e(ri()),e(ti()),e(rn({page:1})))},[e,u]),F.useEffect(()=>{const ce=U.current;U.current=n.pathname;const Ee=u&&n.pathname==="/"&&ce!=="/",We=u&&n.pathname==="/"&&!!n.state?.catalogCreated;(Ee||We)&&(e(rn({page:1})),e(An(j({page:w,limit:A}))),e(ti()))},[n.pathname,n.state?.catalogCreated,u,e,j,w,A]),F.useEffect(()=>{if(!u||L<=0)return;(Array.isArray(B)?B.length:0)<L&&e(rn({page:1,limit:L}))},[u,L,B?.length,e,B]);const[ne,te]=F.useState(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]),[ie,R]=F.useState(Array.isArray(n.state?.selectedProducts)?n.state.selectedProducts:[]),[le,ae]=F.useState(()=>Array.isArray(n.state?.pinnedCategoryNames)?n.state.pinnedCategoryNames.map(ce=>String(ce).trim()).filter(Boolean):Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories.map(ce=>(ce?.categoryName??ce?.name??"").toString().trim()).filter(Boolean):[]),me=F.useRef(ne),Ve=F.useRef(le),Ie=F.useRef(ie);F.useEffect(()=>{me.current=ne},[ne]),F.useEffect(()=>{Ve.current=le},[le]),F.useEffect(()=>{Ie.current=ie},[ie]);const Ne=F.useMemo(()=>{const ce=Array.isArray(ie)?ie:[],Ee=new Set;return ce.forEach(We=>{const st=(We?.categoryName??We?.category??"").toString().trim();st&&Ee.add(st)}),Array.from(Ee)},[ie]),He=ce=>{t(`/category?categoryName=${encodeURIComponent(ce.name||ce.categoryName)}`,{state:{filters:l,selectedCategories:ne,selectedProducts:ie,pinnedCategoryNames:le}})},[je,$e]=F.useState(!1),[de,Ue]=F.useState(!1),[De,se]=F.useState(!1),[re,fe]=F.useState([]),[,ve]=F.useState(!1),Ae=F.useCallback((ce,Ee={})=>{const We=Array.isArray(l.store)?l.store:[],st={page:1,limit:5e3,...Ee};if(ce&&String(ce).trim()!==""&&(st.categoryName=String(ce).trim()),We.length>0&&!We.includes("all")){const ue=We.map(he=>C.find(At=>At.id===he)?.storeCode).filter(Boolean);ue.length>0&&(st.storeCode=ue.join(","))}return l.search!=null&&String(l.search).trim()!==""&&(st.search=String(l.search).trim()),st},[l.store,l.search,C]),Pe=F.useCallback(async()=>{const ce=(Array.isArray(ne)?ne:[]).map(ue=>(ue?.categoryName??ue?.name??"").toString().trim()).filter(Boolean),Ee=Array.isArray(ie)?ie:[],We={};Ee.forEach(ue=>{const he=(ue?.categoryName??ue?.category??"").toString().trim();he&&(We[he]||(We[he]=[]),We[he].push(ue))});const st=new Set(Object.keys(We));if(ce.length===0&&Ee.length===0){fe([]),se(!0);return}ve(!0);try{const ue=[];for(const ke of ce){const Je=We[ke];if(Je&&Je.length>0)ue.push(Je);else{const Un=Ae(ke),$t=await e(Ys(Un)).unwrap().catch(()=>({})),Ht=Array.isArray($t?.data)?$t.data:Array.isArray($t?.products)?$t.products:Array.isArray($t)?$t:[];ue.push(Ht)}}ce.forEach(ke=>st.delete(ke)),st.forEach(ke=>{We[ke]?.length&&ue.push(We[ke])});const he=ue.flat().filter(Boolean),ze=new Set,At=he.map(ke=>({...ke,catalogProductId:ke?.productId??ke?.catalogProductId??ke?.id,id:ke?.id||ke?.sku||ke?.productName})).filter(ke=>{const Je=(ke?.productId||ke?.id||ke?.sku||ke?.productName||"").toString();return!Je||ze.has(Je)?!1:(ze.add(Je),!0)});fe(At),se(!0)}catch{fe([]),se(!0)}finally{ve(!1)}},[e,ie,ne,Ae]),xe=F.useCallback(ce=>{const Ee=ce?.categoryName??ce?.name??"",We=Ee,st=me.current.some(he=>(he?.categoryName??he?.name)===Ee),ue=!!Ee&&Ve.current.includes(Ee);if(st||ue){ae(he=>he.filter(ze=>ze!==Ee)),st?(R(he=>!Array.isArray(he)||!We?he||[]:he.filter(ze=>(ze?.categoryName??ze?.category??"").toString().trim()!==We)),te(he=>he.filter(ze=>(ze?.categoryName??ze?.name)!==Ee))):R(he=>!Array.isArray(he)||!We?he||[]:he.filter(ze=>(ze?.categoryName??ze?.category??"").toString().trim()!==We));return}Ee&&ae(he=>[...new Set([...he,Ee])]),te(he=>[...he,ce])},[]),Ye=J&&g&&!u,{setTopbarProps:Fe}=ss()||{};return F.useEffect(()=>{if(Fe)return Ye?(Fe({hide:!0}),()=>Fe({})):(Fe({filters:l,onFilterChange:V,styles:a.topBar,stores:N,tenantStatus:h,hasProducts:_}),()=>Fe({}))},[Fe,Ye,l,V,a.topBar,N,h,_]),c.jsxs(c.Fragment,{children:[i&&c.jsx(YI,{catalogSlug:i.catalogSlug,onClose:s}),c.jsx(P,{sx:Ye?{marginTop:0}:_?a.contentWrapper??{marginTop:0,display:"flex",flexDirection:"column",alignItems:"center"}:{marginTop:0},children:Ye?c.jsx(eu,{handleStartSyncing:z,loading:!1,sessionExpired:!0}):!J&&!u?c.jsx(Io,{text:"Fetching",fullScreen:!0}):y?c.jsx(Io,{text:"Fetching Categories",fullScreen:!0}):_?c.jsx(P,{sx:a.root,children:c.jsxs(pn,{ref:oe,maxWidth:"lg",sx:{px:{xs:1,sm:2,md:4}},children:[c.jsx(yy,{productState:m,categoryCount:S.length,activeCatalogsCount:W,onManageClick:()=>t("/catalogs/manage-shared")}),S.length>0?c.jsxs(c.Fragment,{children:[c.jsx(ZI,{categoryData:v,styles:a,onView:He,selectedCategories:ne,pinnedCategoryNames:le,categoryNamesFromProductSelection:Ne,onToggleCategory:xe,totalCategoryCount:k,onClearAllCategories:()=>{te([]),ae([]),R([])}}),c.jsx(vy,{containerRef:oe,selectedCategories:ne,selectedProducts:ie,onPromoPrint:Pe,onCreateCatalog:()=>$e(!0),onOsaRequest:()=>Ue(!0)}),c.jsx(Ty,{open:De,onClose:()=>{se(!1),fe([])},selectedProducts:re},De?"open":"closed"),c.jsx(wy,{open:je,onClose:()=>$e(!1),stores:N,selectedProducts:ie,selectedCategories:ne,onCreateSuccess:ce=>{te([]),R([]),$e(!1),ce&&t("/",{state:{catalogCreated:!0,catalogSlug:ce}})}}),c.jsx(Cy,{open:de,onClose:()=>Ue(!1),stores:N,selectedProducts:ie,selectedCategories:ne.map(ce=>ce?.categoryName??ce?.name).filter(Boolean),onSuccess:()=>{te([]),R([]),ae([])}}),k>0&&(()=>{const ce=a?.categoryTablePagination??{};return c.jsxs(P,{sx:{...ce.wrapper||{},width:"100%",marginLeft:"auto",marginRight:0},children:[c.jsxs(P,{sx:ce.resultsPerPageBox,children:[c.jsx(H,{component:"span",sx:ce.resultsPerPageText,children:"Results per page"}),c.jsx(Cn,{value:A,onChange:Ee=>Z(Number(Ee.target.value)),IconComponent:Ur,variant:"standard",disableUnderline:!0,sx:ce.select,children:[5,10,20,50].map(Ee=>c.jsx(Et,{value:Ee,children:Ee},Ee))})]}),c.jsxs(P,{sx:ce.navBox,children:[c.jsx(vt,{size:"small",disabled:w<=1,onClick:()=>Y(1),sx:ce.iconButton,title:"First page",children:c.jsx(cu,{sx:ce.paginationIcon})}),c.jsx(vt,{size:"small",disabled:w<=1,onClick:()=>Y(w-1),sx:ce.iconButton,title:"Previous page",children:c.jsx(os,{sx:ce.paginationIcon})}),c.jsx(H,{component:"span",sx:ce.pageText,children:k===0?"0 of 0":`${(w-1)*A+1}-${Math.min(w*A,k)} of ${k}`}),c.jsx(vt,{size:"small",disabled:!O||w>=D,onClick:()=>Y(w+1),sx:ce.iconButton,title:"Next page",children:c.jsx(zt,{sx:ce.paginationIcon})}),c.jsx(vt,{size:"small",disabled:!O||w>=D,onClick:()=>Y(D),sx:ce.iconButton,title:"Last page",children:c.jsx(du,{sx:ce.paginationIcon})})]})]})})()]}):c.jsxs(P,{sx:{minHeight:280,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:"#f5f7fa",borderRadius:2,p:3},children:[c.jsx(H,{sx:{fontSize:18,fontWeight:600,color:"#454545",mb:1},children:"No Category"}),c.jsx(H,{sx:{fontSize:14,color:"#808080"},children:l.search&&String(l.search).trim()?"No category found for your search.":"No category available."})]})]})}):c.jsx(eu,{handleStartSyncing:z,loading:f||y||!x,sessionExpired:!1,hasIntegration:h.matched,showFetchingCategoriesLabel:!0,isHomeCategorySearch:!!(l.search&&String(l.search).trim()),isHomeCategorySearchEmpty:!!(l.search&&String(l.search).trim())&&x&&!y&&!f})})]})};function Hn({icon:e,title:t,subtitle:n,subtitleValue:r,onClick:i,selected:s,highlightStyle:a={},action:l,disabled:d=!1,customStyle:p={},titleColorWhenDisabled:u,titleColor:f,subtitleColor:y}){const x={width:"100%",maxWidth:"100%",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":f||"#000000",h=d?"#bbbbbb":y||"#808080",m={card:{...x,...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:h,fontSize:12,fontWeight:400,mt:.5,lineHeight:"16px"}};return c.jsxs(P,{onClick:d?void 0:i,sx:{...m.card,...p||{}},children:[e&&c.jsx(P,{sx:m.icon,children:e}),c.jsxs(P,{sx:m.cardInner,children:[c.jsxs(P,{children:[c.jsx(H,{sx:m.title,children:t}),n&&c.jsx(H,{sx:m.subtitle,children:r?`${r} ${n}`:n})]}),l&&c.jsx(P,{sx:{ml:"auto",display:"flex",alignItems:"center",justifyContent:"center"},children:l})]})]})}function uu({size:e=15,color:t="#454545",...n}){return c.jsx(LI,{size:e,color:t,...n})}const xN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAASpJREFUeAGVUT1OhGAQ5b/2BPxewhISIHSyJ/AKlnbunsBsZenuCdQOgWQp7VY7C0i+0u2w00DAN2ZNYMOXyCSTGZh5897MJwgcC4Jg7/u+y6tLvELf92bXdeYsIDGJonimKMrFLCBAlwivYI1d1zX/BQzD8AYhlmV5AalrVVV3U2B5KM9xnHsCwb00Td8Nw3iRJOkcQ65R+9R1ncG+flXR9egQtBOcodFLkoQJ452vULs9rsHQv5Ityzrg4w1+wH+XilVVPQ+VINxh4AcAa+RPTdM8isPJURTRE+zQwLIs87BvjPyBGPI8X44OeLo0gdu23YNhQ1eFb09Bo+P8WVmWtW3b30iXkF+DeSFM2OQ7gnFDEbK3AscmgUVR1AgMQDYLeLSVpmkFr/gDCe+DRKwM0doAAAAASUVORK5CYII=",vN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAIpJREFUeAFVTsENwyAMxCkPnowQNmgnCB8Qv46QrtNfV+gG/YPUjtABeGSEDIAgPimJEkvnO9ln+YRYyzn38N5/xKG6gx5aa4O1Vm8DwgXzyLgyJoZm07uU8upYjETUY8H8Y4a+K6U04TyE0Ndav2zE4hZj/GN+Qcs5z8YYGFVK6bn9lLuQEklPaRdNCCms4XdYvwAAAABJRU5ErkJggg==";function SN(e){const{sx:t={},...n}=e;return c.jsxs(P,{sx:{width:20,height:20,opacity:1,position:"relative",flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",...t},...n,children:[c.jsx(P,{component:"img",src:xN,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(P,{component:"img",src:vN,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 Ay({size:e=15,color:t="#454545",...n}){return c.jsx(_I,{size:e,color:t,...n})}function wN({size:e=15,color:t="#454545",...n}){return c.jsx($I,{size:e,color:t,...n})}function CN({size:e=15,color:t="#454545",...n}){return c.jsx(BI,{size:e,color:t,...n})}function EN({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"},f=Bt(),y=d?.configs?.sync_frequency||"Daily",x=d?.configs?.sync_time||"10:00 AM",g=d?.type||s||"FTP",h={width:"100%",maxWidth:900,minHeight:468,mx:"auto",mt:4,px:"20px",boxSizing:"border-box",display:"flex",flexDirection:"column",gap:3},m=()=>c.jsxs(P,{sx:{width:"100%",minHeight:156,display:"flex",flexDirection:"column",gap:1.5},children:[c.jsx(P,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",width:67,height:20},children:[c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"General"}),c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]})}),c.jsxs(P,{sx:{width:"100%",minHeight:124,display:"flex",flexDirection:"column",gap:"4px"},children:[c.jsx(Hn,{icon:c.jsx(uu,{size:15,color:"#454545"}),title:"Manage Shared Catalogs",onClick:()=>f("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:u,action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(Hn,{icon:c.jsx(SN,{}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:u,action:c.jsx(P,{sx:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(Km,{checked:e,onChange:v=>t&&t(v.target.checked),size:"small"})})})]})]}),S=(v,w)=>c.jsxs(P,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",width:48,height:20},children:[c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"Sync"}),c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]}),c.jsxs(P,{sx:{width:78,height:16,display:"flex",alignItems:"center",gap:"4px",cursor:v?"not-allowed":"pointer",opacity:v?.5:1},onClick:v?void 0:w,children:[c.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(is,{sx:{width:14.66,height:12,color:"#2D64B8"}})}),c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",color:"#2D64B8",width:62},children:"Sync Now"})]})]}),C=v=>{const w=v?y:"Daily",A=v?x:"10:00 AM",k=!v&&i===0;return c.jsxs(P,{sx:{width:"100%",minHeight:288,display:"flex",flexDirection:"column",gap:"4px"},children:[S(k,l),!v&&i===0&&c.jsx(Hn,{icon:c.jsx(is,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Setup Sync",subtitle:"Sync products",onClick:a,highlightStyle:u,action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})}),!v&&i===1&&c.jsxs(c.Fragment,{children:[c.jsx(Hn,{icon:c.jsx(is,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:g,highlightStyle:u,action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(Hn,{icon:c.jsx(uu,{size:15,color:"#454545"}),title:`Setup ${g} Details`,subtitle:"Start setup",onClick:()=>{f("/products/settings/ftp-sync",{state:{fromSyncStep:i}})},highlightStyle:u,action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})})]}),i===3&&c.jsxs(c.Fragment,{children:[c.jsx(Hn,{icon:c.jsx(is,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:s||"FTP",highlightStyle:u,disabled:!0,titleColorWhenDisabled:"#454545",action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(Hn,{icon:c.jsx(uu,{size:15,color:"#454545"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>f("/products/settings/ftp-sync",{state:{fromSyncStep:i}}),action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsxs(P,{sx:{width:"100%",display:"flex",flexWrap:"nowrap",justifyContent:"space-between","@media (max-width:450px)":{flexDirection:"column",gap:"4px"}},children:[c.jsx(P,{sx:{width:"50%","@media (max-width:450px)":{width:"100%"}},children:c.jsx(Hn,{icon:c.jsx(Ay,{size:15,color:"#454545"}),title:"Sync Frequency",subtitle:w,highlightStyle:u,customStyle:{mb:0},onClick:()=>f("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:d}}),action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})})}),c.jsx(P,{sx:{width:"50%","@media (max-width:450px)":{width:"100%"}},children:c.jsx(Hn,{icon:c.jsx(wN,{size:15,color:"#454545"}),title:"Sync Time",subtitle:A,highlightStyle:u,customStyle:{mb:0},onClick:()=>f("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:d}}),action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})})})]}),c.jsx(Hn,{icon:c.jsx(CN,{size:15,color:"#454545"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u,action:c.jsx(zt,{sx:{width:16,height:16,color:"#454545"}})})]})]})},b=i===3&&d&&Object.keys(d||{}).length>0;return c.jsxs(P,{sx:h,children:[m(),C(b)]})}function TN({open:e,onClose:t,onSave:n}){Mn();const r=jn(),[i,s]=F.useState("sftp"),a=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],l=f=>s(f.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(P,{sx:u.container,children:[c.jsxs(P,{sx:u.header,children:[c.jsx(H,{sx:u.headerTitle,children:"Sync Method"}),c.jsx(vt,{onClick:t,size:"small",sx:u.closeButton,children:c.jsx(jI,{size:20})})]}),c.jsxs(P,{sx:u.content,children:[c.jsx(Qi,{value:i,onChange:l,children:a.map(f=>c.jsx(fn,{value:f.value,control:c.jsx(mr,{icon:c.jsx(P,{sx:u.radioIcon}),checkedIcon:c.jsx(zI,{size:18,color:"#000"}),sx:u.radioChecked}),label:c.jsx(H,{sx:u.radioLabel,children:f.label}),sx:{...u.formControlLabel,...i===f.value&&{backgroundColor:"#F3F8FF"}}},f.value))}),c.jsxs(P,{sx:u.upgradeSection,children:[c.jsx(H,{sx:u.upgradeText,children:"Upgrade for higher sync limits and more features"}),c.jsx(H,{onClick:p,sx:u.managePlanLink,children:"Manage Plan >"})]})]}),c.jsx(P,{sx:u.footer,children:c.jsx(tt,{fullWidth:!0,variant:"contained",onClick:d,sx:u.saveButton,children:"Save"})})]})})}const AN=({isOpen:e,onClose:t,onConfirm:n})=>{const r=jn();let i;return i=r.productSettingModal,c.jsx(So,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:i.modal,children:c.jsxs(P,{sx:i.container,children:[c.jsx(P,{sx:i.header,children:c.jsx(H,{sx:{...i.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),c.jsxs(P,{sx:{...i.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[c.jsx(tt,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),c.jsx(tt,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function PN(){const e=It(),t=Bt(),n=yn(),{companyId:r,integrationData:i,loading:s}=Qe($=>$?.dashboard||{}),[a,l]=F.useState(!0),[d,p]=F.useState(),[u,f]=F.useState(0),[y,x]=F.useState(""),[g,h]=F.useState(!1),[m,S]=F.useState(!1),[C,b]=F.useState(!1),[v,w]=F.useState(""),A=F.useRef(null),k=F.useRef(!1);F.useEffect(()=>{const $=e.state?.tenantIntegrationMatched===!0;r&&r!==A.current&&!s&&(i&&(i?.id||i?.channelId||i?.configs||typeof i=="object"&&Object.keys(i).length>0)?A.current=r:(A.current=r,n(qt(r)))),$&&r&&!s&&!k.current&&(k.current=!0,n(qt(r))),$||(k.current=!1)},[r,n,s,i,e.state]),F.useEffect(()=>{let $=!1;e.state&&typeof e.state.tenantIntegrationMatched=="boolean"&&($=e.state.tenantIntegrationMatched);const W=i&&(i?.id||i?.channelId||i?.configs||Array.isArray(i?.data)&&i.data.length>0||typeof i=="object"&&Object.keys(i).length>0),_=e.state?.fromSyncStep===1?1:$===!0||W?3:0;queueMicrotask(()=>f(_))},[e.state,i]);const D=()=>h(!0),O=$=>{x($),f(1),h(!1)},B=()=>{t("/products/settings/ftp-sync",{state:{fromSyncStep:u}})},L=async()=>{const $=i?.channelId||i?.id;if(!$){w("Channel ID not found"),b(!0),S(!1);return}S(!1);try{const W=await n(ai($));if(ai.fulfilled.match(W)){const _=W.payload?.message==="Sync started successfully"?"Sync started successfully":"Sync not started successfully";w(_),b(!0),_==="Sync started successfully"&&setTimeout(()=>{n(qt(r)),n(Ar()),t("/")},2500)}else w("Sync not started successfully"),b(!0)}catch{w("Sync not started successfully"),b(!0)}},E=F.useCallback(()=>{u===1?(f(0),x("")):t("/")},[u,t]),{setSettingTopbarProps:I}=ss()||{};return F.useEffect(()=>{if(I)return I({onBack:E}),()=>I({})},[I,E]),c.jsxs(P,{sx:{width:"100%",minHeight:"100vh",background:"#f7f8fa",p:0,display:"flex",flexDirection:"column",alignItems:"center"},children:[c.jsx(TN,{open:g,onClose:()=>h(!1),onSave:O}),c.jsx(AN,{isOpen:m,onClose:()=>S(!1),onConfirm:L}),c.jsx(ko,{open:C,autoHideDuration:4e3,onClose:()=>b(!1),message:v,anchorOrigin:{vertical:"top",horizontal:"center"}}),c.jsx(EN,{airaAiEnabled:a,setAiraAiEnabled:l,selectedCard:d,setSelectedCard:p,syncStep:u,syncMethod:y,integrationData:i,onSetupSync:D,onSetupFTP:B,onSyncNow:()=>S(!0)})]})}const kN=["Setup FTP","Check data","Start Sync"],ON=e=>c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:c.jsxs(P,{sx:{width:"100%",maxWidth:800,mx:"auto",pt:2,px:{xs:2,sm:3},boxSizing:"border-box"},children:[c.jsx(P,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:2,mb:1},children:kN.map((t,n)=>c.jsx(H,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:n===0?600:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",verticalAlign:"middle",color:"#454545",opacity:1,width:"100%",minHeight:16,display:"inline-flex",alignItems:"center",justifyContent:"center",flex:1},children:t},t))}),c.jsx(P,{sx:{width:"100%",minHeight:504,gap:"8px",borderRadius:"16px",padding:"8px",background:"#FFFFFF",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box"},children:c.jsxs(Sn,{elevation:0,sx:{width:"100%",maxWidth:400,minHeight:210,gap:"24px",borderRadius:"20px",padding:{xs:"16px",sm:"24px"},background:"#fafafa",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsxs(P,{sx:{width:"100%",minHeight:98,gap:"12px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(H,{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(P,{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:"100%",minHeight: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(P,{sx:{display:"flex",justifyContent:"flex-end",marginTop:"auto"},children:c.jsx(tt,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})]})});function IN(e){const{sx:t,fontSize:n,...r}=e;return c.jsxs(pr,{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 NN(e){const{sx:t,fontSize:n,...r}=e;return c.jsxs(pr,{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 FN=({active:e,completed:t,showBlue:n})=>{const r=!e&&!t,i=n?"#2D64B8":"#bbb";return c.jsx(P,{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"})})})},xl=({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 y=Mn().transitions?.duration?.standard??400,[x,g]=F.useState(0),[h,m]=F.useState(!1),S=Math.max(1,e.length),C=50/S,b=100*(S-1)/S,v=40/S,w=S>1?100/S:0,A=100,k=F.useMemo(()=>{let D;if(typeof d=="number"){const B=typeof p=="number"?p:0,L=d-B;D=w*(B+x*L)}else typeof l=="number"?D=w*(l+x):s?D=x?b:0:r?D=x?b*.5:0:D=x?v:0;const O=Math.min(D,b)/b;return Math.round(O*A)},[x,d,p,l,s,r,w,b,v]);return F.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 O=setTimeout(()=>{g(1),setTimeout(()=>m(!0),y)},50);return()=>clearTimeout(O)}setTimeout(()=>{g(0),m(!1)},0);const D=setTimeout(()=>{g(1),setTimeout(()=>m(!0),y)},50);return()=>clearTimeout(D)},[t,e.length,r,a,d,p,y]),c.jsxs(P,{sx:{width:"100%",maxWidth:800,opacity:1},children:[c.jsx(P,{sx:{width:"100%",minHeight:44,gap:"16px",opacity:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:e.map((D,O)=>c.jsxs(P,{sx:{width:"calc(33.333% - 11px)",minHeight:44,gap:"12px",opacity:1,paddingLeft:"16px",paddingRight:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},children:[c.jsx(FN,{active:O===t,completed:O<t,showBlue:O===0&&i||O===1&&n&&(h||u)||O===2&&s}),c.jsx(P,{component:"span",sx:{width:"100%",minHeight:16,fontFamily:"Inter, sans-serif",fontWeight:O===0?600:400,fontSize:{xs:"11px",sm:"12px"},lineHeight:"16px",letterSpacing:"0px",textAlign:"center",color:"#454545",opacity:1,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap"},children:D})]},D))}),c.jsx(P,{sx:{width:"100%",mt:1,mb:0},children:c.jsx(P,{sx:{marginLeft:`${C}%`,width:`${b}%`},children:c.jsx(km,{variant:"progress",steps:A+1,position:"static",activeStep:k,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})})})]})},MN=e=>e.dashboard?.companyId||"";function DN(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 _N=e=>{const{ftpDetails:t={},stepperProps:n={}}=e,[r,i]=F.useState(null),s=It(),a=Bt(),l=Qe(MN),[d,p]=F.useState(!1);F.useEffect(()=>{let O,B;return setTimeout(()=>{p(!1),O=setTimeout(()=>{B=setTimeout(()=>p(!0),600)},100)},0),()=>{O&&clearTimeout(O),B&&clearTimeout(B)}},[]);const[u,f]=F.useState(!1),y=localStorage.getItem("selectedSyncMethod")||"sftp",[x,g]=F.useState(`${y}:`),[h,m]=F.useState(""),[S,C]=F.useState(""),b=yn(),v=Qe(O=>O.productSettings?.loading||!1),w=Qe(O=>O.productSettings?.error||null),A=Mn();_t(A.breakpoints.up("lg"));const k=Qe(O=>O.productSettings.syncData);F.useEffect(()=>{const O=s.state?.ftpConfig,B=s.state?.tenantIntegrationData;if(k&&k.serverAddress){setTimeout(()=>{g(k.serverAddress||""),m(k.configs&&k.configs.username||""),C(k.configs&&k.configs.password||"")},0);return}if(t&&(t.host||t.username||t.password)){const L=t.type||"sftp",E=t.host||"",I=t.port||"",$=t.path||"",W=`${L}://${E}${I?`:${I}`:""}${$?`/${$}`:""}`;setTimeout(()=>{g(W),m(t.username||""),C(t.password||"")},0);return}if(B&&B.configs){const L=B.configs,E=L.type||B.type||"sftp",I=L.host||"",$=L.port||"",W=L.path||"",_=`${E}://${I}:${$}/${W}`,z=L.username||"",N=L.password||"";setTimeout(()=>{g(_),m(z),C(N)},0);return}if(O){const E=`${O.type||"sftp"}://${O.host}:${O.port}/${O.path}`,I=O.username||"",$=O.password||"";setTimeout(()=>{g(E),m(I),C($)},0)}},[s.state,k,t]);const D=async()=>{if(!l){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:O,host:B,port:L,path:E}=DN(x),I=await b(ii({serverAddress:x,username:h,password:S,companyId:l}));if(!ii.fulfilled.match(I))return;const $=I.payload;if(s.state?.fromSettingsIcon){const z=$?.entity_type||r?.entity_type||"products",N={...r||{},companyId:l,tenantId:l,type:O,serverAddress:x,configs:{host:B,port:Number(L),path:E,username:h,password:S,sync_frequency:r?.configs?.sync_frequency||t?.sync_frequency||"",sync_time:r?.configs?.sync_time||t?.sync_time||""},entity_type:z,mappings:r?.mappings||$?.existing_mapping?.mappings||[]};i(N),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(N)),a("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:N}});return}const W=$?.entity_type||"",_={tenantId:l,type:O,serverAddress:x,configs:{host:B,port:Number(L),path:E,username:h,password:S,sync_frequency:"",sync_time:""},entity_type:W||"products",mappings:$?.existing_mapping?.mappings||[]};b(Js(_)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(_)),e.onNext&&e.onNext({putjson:_})};return c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:c.jsxs(P,{sx:{width:"100%",maxWidth:800,minHeight:600,gap:"32px",opacity:1,pt:2,px:{xs:2,sm:3},mx:"auto",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(P,{sx:{width:"100%",minHeight:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(xl,{...n,showSetupFtpBlueTick:d})}),c.jsx(P,{sx:{width:"100%",minHeight:{xs:420,md: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(P,{sx:{width:"100%",maxWidth:400,minHeight:380,borderRadius:"20px",padding:{xs:"16px",sm:"24px"},gap:"24px",opacity:1,bgcolor:"#F5F5F5",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(P,{sx:{width:"100%",height:20,justifyContent:"space-between",opacity:1,display:"flex",alignItems:"center"},children:c.jsx(H,{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(P,{component:"form",autoComplete:"off",sx:{width:"100%",minHeight:224,gap:"16px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsxs(P,{sx:{width:"100%",minHeight:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx("label",{style:{width:"100%",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:x,onChange:O=>g(O.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:"100%",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(P,{sx:{width:"100%",minHeight:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx("label",{style:{width:"100%",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:h,onChange:O=>m(O.target.value),placeholder:"Enter username",style:{width:"100%",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(P,{sx:{width:"100%",minHeight:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box",position:"relative"},children:[c.jsx("label",{style:{width:"100%",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:S,onChange:O=>C(O.target.value),placeholder:"Enter password",style:{width:"100%",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(vt,{"aria-label":"toggle password visibility",onClick:()=>f(O=>!O),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(NN,{}):c.jsx(IN,{})})]})]}),c.jsxs(P,{sx:{display:"flex",justifyContent:"flex-end",gap:2,marginTop:"auto"},children:[c.jsx(tt,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:e.onBack,children:"Back"}),c.jsx(tt,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:D,disabled:v,children:v?"Loading...":"Next"})]}),w&&c.jsx(H,{color:"error",sx:{mt:1,fontSize:14},children:"Fill the credentials"})]})})]})})},zN=e=>e.productSettings.ftpColumns||[],$N=e=>e.productSettings.preview||[],BN=e=>e.productSettings.loading,LN=e=>e.productSettings.error,jN=e=>e.productSettings.existingMapping,WN=e=>e.productSettings.entity_type||"products",VN=e=>{const{mapping:t=[],onBack:n,onNext:r,stepperProps:i={}}=e,s=It(),a=Bt(),l=s.state?.fromSettingsIcon,[d,p]=F.useState(()=>{if(s.state?.putjson)return s.state.putjson;const _=window.localStorage.getItem("ftpSyncPutjson");return _?JSON.parse(_):t.length>0?{mappings:t}:null}),[u,f]=F.useState([]),[y,x]=F.useState({}),g=Qe(zN),h=Qe($N),m=Qe(BN),S=Qe(LN),C=Qe(jN),b=Qe(WN),v=F.useRef(m);F.useEffect(()=>{m&&!v.current&&queueMicrotask(()=>x({})),v.current=m},[m]);const w=F.useRef(!1);F.useLayoutEffect(()=>{C==null||!C?.mappings||C.mappings.length===0?w.current||(w.current=!0,queueMicrotask(()=>x({}))):w.current=!1},[C]);const A=yn();F.useEffect(()=>{async function _(){try{let z=[];if(C?.mappings?.length>0){const N=C.mappings.map(V=>V.target_field).filter(V=>V&&typeof V=="string");z=[...new Set(N)]}try{const N=await A(li(b));li.fulfilled.match(N)&&Array.isArray(N.payload)&&N.payload.filter(j=>j&&typeof j=="string").forEach(j=>{z.includes(j)||z.push(j)})}catch{}if(t&&t.length>0){const N=t.map(V=>V.target_field).filter(V=>V&&typeof V=="string"&&!z.includes(V));N.length>0&&(z=[...z,...N])}z=z.filter(N=>N&&typeof N=="string"),f(z)}catch{if(C?.mappings?.length>0){const z=C.mappings.map(V=>V.target_field).filter(V=>V&&typeof V=="string"),N=[...new Set(z)];f(N)}else f([])}}(b||C?.mappings?.length>0||t&&t.length>0)&&_()},[b,C,t,A]);const k=F.useMemo(()=>{if(C?.mappings&&C.mappings.length>0){const _=C.mappings.map(z=>z.source_field).filter(z=>z);if(_.length>0)return _}return g&&g.length>0?g:[]},[C,g]),D=F.useMemo(()=>h.filter(z=>Object.keys(z).length>0),[h]),O=F.useMemo(()=>{if(C?.mappings&&C.mappings.length>0){const _={};return C.mappings.forEach(z=>{z.source_field&&z.target_field&&(_[z.source_field]=z.target_field)}),_}return{}},[C]),L=C?.mappings?.length>0?{...O,...y}:{...y},E=Mn();_t(E.breakpoints.up("lg"));const I=Qe(_=>_.productSettings.syncData),$=F.useMemo(()=>{if(I?.serverAddress)return I.serverAddress;const _=I?.configs||{},z=(I?.type||"sftp").toLowerCase(),N=_.host,V=_.port,j=_.path;if(!N)return"";let M=`${z}://${N}`;if(V!=null&&V!==""&&(M+=`:${V}`),j){const Y=String(j).replace(/^\/+/,"");M+=`/${Y}`}return M},[I]),W=()=>{const _=k.map(j=>({source_field:j||"",target_field:L[j]||""})).filter(j=>j.source_field&&j.target_field);if(_.length===0)return;if(l&&d){const j={...d,tenantId:d.tenantId||d.companyId,type:d.type||I.type||"sftp",entity_type:d.entity_type||I.entity_type||"products",mappings:_};p(j),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(j)),r?r({fromSettingsIcon:!0,putjson:j}):e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:j});return}const z=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),N=I.companyId||z.companyId||z.tenantId||"",V={...z,companyId:N,tenantId:N,type:I.type||z.type||"sftp",integration_type:I.integration_type||z.integration_type||"",entity_type:z.entity_type||I.entity_type||"products",configs:I.configs||z.configs||{},ftp_columns:k,preview:D,mappings:_};A(Js(V)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(V)),r?r({putjson:V}):e.onNext&&e.onNext({putjson:V})};return c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:c.jsxs(P,{sx:{width:"100%",maxWidth:800,px:{xs:2,sm:3},mx:"auto",pt:2,display:"flex",flexDirection:"column",gap:"32px",boxSizing:"border-box"},children:[c.jsx(P,{sx:{width:"100%",minHeight:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(xl,{...i})}),c.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},children:c.jsxs(Sn,{elevation:0,sx:{mt:0,p:0,borderRadius:4,width:"100%",maxWidth:800},children:[c.jsxs(P,{sx:{p:{xs:2,sm:3},pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",flexDirection:{xs:"column",sm:"row"},gap:{xs:1.5,sm:0}},children:[c.jsxs(P,{children:[c.jsx(H,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),$&&c.jsx(H,{variant:"body2",sx:{color:"#888",mt:.5},children:$})]}),c.jsxs(P,{sx:{width:{xs:"100%",sm:"auto"},display:"flex",justifyContent:{xs:"flex-end",sm:"initial"}},children:[c.jsx(tt,{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(tt,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:W,children:"Next"})]})]}),c.jsx(ey,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee",width:"100%",overflowX:"auto",overflowY:"auto",maxHeight:{xs:420,md:"none"}},children:m?c.jsx(P,{sx:{p:3,textAlign:"center"},children:"Loading..."}):S?c.jsx(P,{sx:{p:3,color:"red",textAlign:"center"},children:S}):k.length===0?c.jsx(P,{sx:{p:3,textAlign:"center",color:"#888"},children:"No columns available. Please check your FTP connection and try again."}):c.jsxs(Jm,{size:"small",sx:{minWidth:720},children:[c.jsxs(ny,{children:[c.jsxs(ns,{children:[c.jsx(yr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),k.map((_,z)=>c.jsx(yr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:_},_+z))]}),c.jsxs(ns,{children:[c.jsx(yr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),k.map((_,z)=>c.jsx(yr,{sx:{background:"#fafafa",borderBottom:"none"},children:c.jsxs(Cn,{value:L[_]||"",onChange:N=>x(V=>({...V,[_]:N.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(Et,{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(N=>c.jsx(Et,{value:N,sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:N},N))]})},z))]})]}),c.jsx(Zm,{children:D.length>0?D.map((_,z)=>c.jsxs(ns,{children:[c.jsx(yr,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:z===0?"Data preview":""}),k.map((N,V)=>c.jsx(yr,{sx:{background:"#fff",borderBottom:"none"},children:_[N]||""},V))]},z)):c.jsx(ns,{children:c.jsx(yr,{colSpan:k.length+1,sx:{textAlign:"center",color:"#888",py:2},children:"No preview data available"})})})]})})]})})]})})},HN=e=>e.dashboard?.companyId||"",UN=e=>e.dashboard?.integrationData||null,RN=e=>{const{syncFrequency:t="",syncTime:n="",stepperProps:r={}}=e,i=It(),s=Bt(),a=yn(),l=Qe(HN),d=Qe(UN),p=i.state?.fromSettingsIcon,[u,f]=F.useState(()=>{if(i.state?.putjson){const N=JSON.parse(JSON.stringify(i.state.putjson));return N.mappings&&(N.originalMappings=JSON.parse(JSON.stringify(N.mappings))),N.configs?.sync_frequency&&!N.originalSyncFrequency&&(N.originalSyncFrequency=N.configs.sync_frequency),N.configs?.sync_time&&!N.originalSyncTime&&(N.originalSyncTime=N.configs.sync_time),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(N)),N}const z=window.localStorage.getItem("ftpSyncPutjson");if(z){const N=JSON.parse(z);return N.mappings&&!N.originalMappings&&(N.originalMappings=JSON.parse(JSON.stringify(N.mappings))),N.configs?.sync_frequency&&!N.originalSyncFrequency&&(N.originalSyncFrequency=N.configs.sync_frequency),N.configs?.sync_time&&!N.originalSyncTime&&(N.originalSyncTime=N.configs.sync_time),N}return null});F.useEffect(()=>{u&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(u))},[u]);const[y,x]=F.useState(null),[g,h]=F.useState(null);F.useEffect(()=>{const z=i.state?.fromProductSetting;let N=null;if(z&&i.state?.integrationData)N=i.state.integrationData;else if(d&&Object.keys(d).length>0)N=d;else if(l&&!z){a(qt(l)).then(V=>{if(qt.fulfilled.match(V)){const j=V.payload;if(N=j&&j.data&&j.data[0]||null,N){x(N);const M=N.id||N.channelId||null;M&&h(M)}}});return}if(N){x(N);const V=N.id||N.channelId||null;V&&h(V)}},[l,i.state,d,a]);const m=!!p||!!y,S=z=>{if(!z)return"";const N=z.charAt(0).toUpperCase()+z.slice(1).toLowerCase();return N==="Daily"||N==="Day"?"Daily":N==="Weekly"||N==="Week"?"Weekly":N==="Monthly"||N==="Month"?"Monthly":N},[C,b]=F.useState(()=>{if(t)return S(t);const z=u?.configs?.sync_frequency?S(u.configs.sync_frequency):"";return z||"Daily"}),[v,w]=F.useState(n||u&&u.configs?.sync_time||"");F.useEffect(()=>{async function z(){if(l)try{const N=i.state?.fromProductSetting;let V=null;if(N&&i.state?.integrationData)V=i.state.integrationData;else if(d&&Object.keys(d).length>0)V=d;else{const j=await a(qt(l));if(qt.fulfilled.match(j)){const M=j.payload;V=M&&M.data&&M.data[0]||null}}if(V){const j=V.id||V.channelId||null;j&&h(j);const M=u||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),Y={...V,companyId:V.companyId||l,entity_type:V.entity_type||M?.entity_type||"product",mappings:V.mappings||M?.mappings||[]},Z=V.configs?.sync_frequency||"",J=V.configs?.sync_time||"",q=S(Z);if(f(Y),N){if(t){const K=S(t);b(K)}n&&w(n),f(K=>({...K,...Y,originalSyncFrequency:t?S(t):K.originalSyncFrequency||q,originalSyncTime:n||K.originalSyncTime||J,configs:{...Y.configs,sync_frequency:t?S(t).toLowerCase():Y.configs?.sync_frequency,sync_time:n||Y.configs?.sync_time}}))}else{const K=t?S(t):"";if(K)b(K);else if(q)b(q);else if(M?.configs?.sync_frequency){const U=S(M.configs.sync_frequency);b(U)}else b("Daily");n?w(n):J?w(J):M?.configs?.sync_time?w(M.configs.sync_time):w(""),f(Y),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Y))}}}catch{const N=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!t&&N?.configs?.sync_frequency?b(S(N.configs.sync_frequency)):t&&b(S(t)),!n&&N?.configs?.sync_time?w(N.configs.sync_time):n&&w(n)}}z()},[l]),F.useEffect(()=>{if(t){const z=S(t);b(z),u&&u.configs?.sync_frequency!==z&&f(N=>{const V={...N,configs:{...N.configs,sync_frequency:z}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(V)),V})}},[t]),F.useEffect(()=>{n&&(w(n),u&&u.configs?.sync_time!==n&&f(z=>{const N={...z,configs:{...z.configs,sync_time:n}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(N)),N}))},[n]),F.useEffect(()=>{if(u&&m&&(C||v)){const z=u.configs?.sync_frequency,N=u.configs?.sync_time;(z!==C||N!==v)&&f(V=>{const j={...V,configs:{...V.configs,sync_frequency:C||V.configs?.sync_frequency,sync_time:v||V.configs?.sync_time}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(j)),j})}},[C,v,m]);const A=Qe(z=>z.productSettings.syncData),k=z=>{const N=z.target.value;b(N),u&&f(V=>{const j={...V,configs:{...V.configs,sync_frequency:N}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(j)),j}),m||a(Js({...A,configs:{...A&&A.configs||{},sync_frequency:N,sync_time:v}}))},D=z=>{const N=z.target.value;w(N),u&&f(V=>{const j={...V,configs:{...V.configs,sync_time:N}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(j)),j}),m||a(Js({...A,configs:{...A&&A.configs||{},sync_frequency:C,sync_time:N}}))};function O(z){try{const N=new URL(z);return{type:N.protocol.replace(":",""),host:N.hostname,port:N.port,path:N.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[B,L]=F.useState(!1),[E,I]=F.useState(""),$=async()=>{const z=i.state?.fromProductSetting;if(m){if(!u){I("Update failed: missing data."),L(!0);return}let R={...u};u.originalMappings||(R.originalMappings=u.mappings?JSON.parse(JSON.stringify(u.mappings)):[],f(R)),!u.originalSyncFrequency&&u.configs?.sync_frequency&&(R.originalSyncFrequency=u.configs.sync_frequency||"",f(R)),!u.originalSyncTime&&u.configs?.sync_time&&(R.originalSyncTime=u.configs.sync_time||"",f(R));const le=JSON.parse(JSON.stringify(u.mappings||[])),ae=JSON.parse(JSON.stringify(u.originalMappings||[]));let me,Ve;z?(me=t?S(t):"",Ve=n||""):(me=u.originalSyncFrequency||u.configs?.sync_frequency||"",Ve=u.originalSyncTime||u.configs?.sync_time||"",me=S(me));const Ie=z?!1:JSON.stringify(le)!==JSON.stringify(ae),Ne=C!==me,He=v!==Ve,je=(Ne||He)&&!Ie,$e=Ie;if(je){const de=g||u?.id||u?.channelId||i.state?.integrationData?.id||i.state?.integrationData?.channelId;if(!de){I("Channel ID is missing. Please try again."),L(!0);return}const Ue={configs:{}};Ne&&(Ue.configs.sync_frequency=C.toLowerCase()),He&&(Ue.configs.sync_time=v);try{const De=await a(ci({channelId:de,data:Ue}));if(De.error||ci.rejected.match(De)){const fe=De.payload||De.error?.message||"Update failed. Please try again.";I(fe),L(!0);return}let se="";Ne&&!He?se="SyncFrequency Updated":!Ne&&He?se="SyncTime Updated":Ne&&He&&(se="SyncTime and SyncFrequency Updated"),I(se),L(!0),f(fe=>{const ve={...fe,configs:{...fe.configs,sync_frequency:C.toLowerCase(),sync_time:v},originalSyncFrequency:C,originalSyncTime:v};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(ve)),ve});const re=i.state?.fromProductSetting;re&&l&&await a(qt(l)),setTimeout(()=>{re&&s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500);return}catch(De){const se=De?.message||De?.response?.data?.message||"Update failed. Please try again.";I(se),L(!0);return}}if($e){const de={...u,configs:{...u.configs,sync_frequency:C.toLowerCase(),sync_time:v}};f(de),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(de));const Ue=de.tenantId||de.companyId;if(!de.configs){I("Configuration error. Please try again."),L(!0);return}const De=de.entity_type||u?.entity_type;if(!De){I("Entity type is missing. Please try again."),L(!0);return}const se={tenantId:Ue,type:de.type,entity_type:De,configs:{host:de.configs.host||"",port:de.configs.port?Number(de.configs.port):0,username:de.configs.username||"",password:de.configs.password||"",path:de.configs.path||"",sync_frequency:C.toLowerCase()||"",sync_time:v||""},mappings:(de.mappings||[]).map(re=>({source_field:re.source_field,target_field:re.target_field}))};if(!se.tenantId){I("Tenant ID is missing. Please try again."),L(!0);return}if(!se.type){I("Sync type is missing. Please try again."),L(!0);return}if(!se.entity_type){I("Entity type is missing. Please try again."),L(!0);return}try{const re=await a(Zr(se));if(Zr.rejected.match(re)){const fe=re.payload||re.error?.message||"Update failed. Please try again.";I(fe),L(!0);return}Zr.fulfilled.match(re)?(f(fe=>{const ve={...fe,originalSyncFrequency:C,originalSyncTime:v,originalMappings:JSON.parse(JSON.stringify(fe.mappings||[]))};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(ve)),ve}),I("Sync Update Successfully"),L(!0),setTimeout(()=>{s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)):(I("Update failed. Please try again."),L(!0))}catch(re){const fe=re?.message||re?.response?.data?.message||"Update failed. Please try again.";I(fe),L(!0)}}else I("No changes detected."),L(!0);return}const N=A.configs||{},V=O(A.serverAddress||""),j=N.host||V.host,M=N.port!=null?Number(N.port):parseInt(V.port,10),Y=(N.path||V.path||"").replace(/^\//,""),Z=A.type||V.type||"sftp",J=A.username||N.username||"",q=A.password||N.password||"",K=C||N.sync_frequency||"",U=typeof K=="string"?K.toLowerCase():K;let oe=v||N.sync_time||"";if(typeof oe=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(oe.trim())){const[R,le]=oe.trim().split(/\s+/),[ae,me]=R.split(":").map(Number),Ve=le.toUpperCase()==="PM"&&ae!==12?ae+12:le.toUpperCase()==="AM"&&ae===12?0:ae;oe=`${String(Ve).padStart(2,"0")}:${String(me).padStart(2,"0")}`}else typeof oe=="string"&&(oe=oe.trim());const ne=(A.mappings||[]).filter(R=>R.source_field&&R.target_field).map(R=>({source_field:R.source_field,target_field:R.target_field}));if(!l){I("Company ID is required. Please ensure the app is properly configured."),L(!0);return}if(!j||!M||!J||!q||ne.length===0){I("Please fill all required fields and mappings before saving."),L(!0);return}const te=A.entity_type||"products",ie={tenantId:l,type:Z,entity_type:te,configs:{host:j,port:Number(M),username:J,password:q,path:Y,sync_frequency:U,sync_time:oe},mappings:ne};try{const R=await a(si(ie));si.fulfilled.match(R)?(I("Save and Start Sync Updated Successfully"),L(!0),e.onNext&&e.onNext()):(I(R?.payload||"Save failed. Please try again."),L(!0))}catch{I("Save failed. Please try again."),L(!0)}},[W,_]=F.useState(!1);return F.useEffect(()=>{const z=setTimeout(()=>_(!0),850);return()=>clearTimeout(z)},[]),c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:c.jsxs(P,{sx:{width:"100%",maxWidth:800,px:{xs:2,sm:3},mx:"auto",pt:2,display:"flex",flexDirection:"column",gap:"32px",boxSizing:"border-box"},children:[c.jsx(P,{sx:{width:"100%",minHeight:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(xl,{...r,showStartSyncBlueTick:W})}),c.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:c.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:{xs:2,sm:4},mb:{xs:2,sm:4},width:"100%",px:{xs:2,sm:0},boxSizing:"border-box"},children:c.jsxs(Sn,{elevation:0,sx:{p:{xs:2,sm:2.5},borderRadius:4,minWidth:{xs:"100%",sm:300},maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[c.jsxs(P,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},gap:2,width:"100%",mb:2},children:[c.jsxs(P,{sx:{flex:1},children:[c.jsx(H,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Frequency"}),c.jsxs(Cn,{size:"small",value:C,onChange:k,sx:{width:"100%",minWidth:120,borderRadius:2,background:"#fafbfc",fontSize:15,height:40},children:[c.jsx(Et,{value:"Daily",children:"Daily"}),c.jsx(Et,{value:"Weekly",children:"Weekly"}),c.jsx(Et,{value:"Monthly",children:"Monthly"})]})]}),c.jsxs(P,{sx:{flex:1},children:[c.jsx(H,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Time"}),c.jsx(rs,{type:"time",size:"small",value:v,onChange:D,sx:{width:"100%",minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),c.jsxs(P,{sx:{display:"flex",justifyContent:"center",gap:1.5,mt:1,width:"100%",flexDirection:"row"},children:[c.jsx(tt,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:0,fontWeight:500,textTransform:"none",width:"50%",flex:1},onClick:e.onBack,children:"Back"}),c.jsx(tt,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:0,fontWeight:500,textTransform:"none",boxShadow:"none",width:"50%",flex:1},onClick:$,children:m&&(i.state?.fromSyncSetting||i.state?.editMode)?"Save":m?"Update Sync":"Save and Start Sync"})]}),c.jsx(ko,{open:B,autoHideDuration:4e3,onClose:()=>L(!1),message:E,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})})},qN=e=>{const{stepperProps:t={}}=e,n=yn(),i=!!Qe(d=>d.productSettings.saveResult),[s,a]=F.useState(i),l=Bt();return F.useEffect(()=>{i&&(a(!0),n(V1()))},[i,n]),c.jsxs(c.Fragment,{children:[c.jsx(ko,{open:s,autoHideDuration:4e3,onClose:()=>a(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:c.jsxs(P,{sx:{width:"100%",maxWidth:800,px:{xs:2,sm:3},mx:"auto",pt:2,display:"flex",flexDirection:"column",gap:"32px",boxSizing:"border-box"},children:[c.jsx(P,{sx:{width:"100%",minHeight:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(xl,{...t})}),c.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:c.jsxs(P,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",maxWidth:320,mx:2,py:6,bgcolor:"#f5f5f5",borderRadius:5},children:[c.jsx(P,{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(H,{sx:{fontSize:17,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),c.jsx(tt,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1},onClick:()=>l("/"),children:"Back to all products"})]})})]})}),c.jsx(ko,{open:s,autoHideDuration:4e3,onClose:()=>a(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function YN(e){const t=It(),n=Bt(),r=t.state?.fromProductSetting?3:0,[i,s]=F.useState(r),a=yn(),{companyId:l,integrationData:d}=Qe(D=>D.dashboard),p=t.state?.fromSyncStep;F.useEffect(()=>{const D=t.state?.fromProductSetting;l&&!D&&a(qt(l))},[l,a,t.state]);const u=()=>{s(D=>Math.min(D+1,4))},f=F.useCallback(()=>{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(D=>Math.max(D-1,0))},[i,p,t.state?.fromProductSetting,n]),y=F.useMemo(()=>[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],[]),x=F.useMemo(()=>[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"}],[]),{setSettingTopbarProps:g}=ss()||{};F.useEffect(()=>{if(g)return g({onBack:f,breadcrumbs:i===0||i===1?y:x}),()=>g({})},[g,f,i,y,x]);const h=d?.configs||{},m=d?.mappings||d?.dataMappings||[],C=(D=>{if(!D)return"";const O=D.charAt(0).toUpperCase()+D.slice(1).toLowerCase();return O==="Daily"||O==="Day"?"Daily":O==="Weekly"||O==="Week"?"Weekly":O==="Monthly"||O==="Month"?"Monthly":O})(d?.configs?.sync_frequency||""),b=d?.configs?.sync_time||"",v=["Setup FTP","Check data","Start Sync"],w=["Upload File","Check data","Start Sync"],A={0:{steps:v,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1},1:{steps:v,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,filledSegments:.5},2:{steps:v,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}};let k=null;switch(i){case 0:k=c.jsx(ON,{onNext:u,onBack:f,stepperProps:A[0],...e});break;case 1:k=c.jsx(_N,{onNext:u,onBack:f,ftpDetails:h,stepperProps:A[1],...e});break;case 2:k=c.jsx(VN,{onNext:u,onBack:f,mapping:m,stepperProps:A[2],...e});break;case 3:k=c.jsx(RN,{onNext:u,onBack:f,syncFrequency:C,syncTime:b,stepperProps:A[3],...e});break;case 4:k=c.jsx(qN,{onBack:f,stepperProps:A[4],...e});break;default:k=null;break}return c.jsx(pn,{maxWidth:!1,disableGutters:!0,sx:{width:"100%",boxSizing:"border-box"},children:k})}const GN=dt(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 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}),"Language");function KN(e){return c.jsx(P,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",opacity:1,...e.sx},children:c.jsx(P,{component:"span",sx:{width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",opacity:1},children:c.jsx(GN,{sx:{color:"#808080"}})})})}const XN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAPCAYAAAA/I0V3AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAUlJREFUeAGNUrttwzAQFfWrnS6VIGsCjyAB+rWZIM4EyQZ2Jog2UDJCOkESYGaC2BOIZcr0+uVdYBqyQMM+gCB5997x3R2ZNjPf913LsnI6Yr23bfvKORdTjD4BL+I4fgPhexzHr6qqGPaDbdu7KIpySnZGgvPZNM0GIIbMy7qut+THnum6HuDIkIzIa/Izyg4wXQJk32sXLE1Tt+/7HY7C8DyvYIz94HLvOM5BCPGrqhOYHGuB6+pfXlmWS6mfXpb6Z3V+Eu6sEVI/gnekn8CzOjOJNacyiqIQ2NZH/c2xTj6XqytqlmR6naviStI1I9I+SZKXW8Coc4MOCtMwjIeu63IaMIp+UkkKw9AHeDMMg4bmBEwGaNoUAJHTf0MHG+oa/UP4XRBOCZki6xatfwSZBioA/oCSDJ/2NHSm0k4txysrtJ1PwdL+AHzhuHE1We3IAAAAAElFTkSuQmCC";function JN({sx:e={},...t}){const n=e?.fontSize??12,r=e?.width??n,i=e?.height??n;return c.jsx(P,{component:"img",src:XN,alt:"",role:"presentation",sx:{width:r,height:i,display:"block",objectFit:"contain",...e},...t})}const QN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAYAAACdKY9CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPtJREFUeAGlUUsOgjAQpSWQuLJHQC6gR4DwCe70Bt5Ab6CewCPIEVwSQmKPoDt3uHQnrPn5SjRpTIkLJ2k6bd+b92ZKNCkcx7EMwzh2XTcjhBRYcZqmexlD5QPAZ2zXuq4nuq67IC58399pqsCDg3X+UmRBEDyVCqjGKKWlohZTEpqm4SBNRR+fO9M019himUDkA+RXIB2gJMgMTVvI3SRJ7kqCiCiKrKqq+illWca1f6NXCMNw27btBlXZAO6Ctz3+5EQEWMwbNlzOeaFCe563AOGIdKnbth3jk+bw+xiykef5DbgRSDMxVkuewqB3QgRmTN/Jz0CPwm75AifwYTaKH5pyAAAAAElFTkSuQmCC",ZN={fontSize:10.67,color:"#454545"};function eF({sx:e={},...t}){const n={...ZN,...e},r=n.fontSize??10.67,i=n.width??r,s=n.height??r;return c.jsx(P,{component:"img",src:QN,alt:"",role:"presentation",sx:{width:i,height:s,display:"block",objectFit:"contain",...n},...t})}const tF=dt(c.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save");function nF(e){return c.jsx(tF,{...e})}const rF=dt(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");function oF(e){return c.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:c.jsx(P,{component:"span",sx:{width:13.22,height:13.22,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(rF,{})})})}const iF=dt(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");function sF(e){return c.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:c.jsx(P,{component:"span",sx:{width:12,height:13.33,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(iF,{})})})}function aF(e){const{catalogs:t=[],totalCount:n=0,page:r=0,rowsPerPage:i=10,statusById:s={},getStatus:a,onPageChange:l,onRowsPerPageChange:d,onSave:p,onDelete:u,onStatusChange:f,updateCatalogError:y=null,updateCatalogLoading:x=!1}=e,[g,h]=F.useState(null),[m,S]=F.useState({name:"",slug:"",status:!0}),C=B=>{const L=B.slugRaw??(typeof B.slug=="string"?B.slug.replace(/^\//,""):"")??"",E=B.status==="Active"||B.status===!0;h(B.id),S({name:B.name??"",slug:L,status:E})},b=async B=>{if(typeof p!="function")return;const L=m.slug.trim().replace(/^\//,""),E={id:B.id,name:m.name.trim(),slug:L||m.name.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""),status:m.status};await p(E),h(null)},v=()=>{h(null)},w=t,A=Math.max(0,Number(n)||0),k=Math.max(0,Math.ceil(A/Math.max(1,i))-1),D={borderRadius:"4px",padding:"2px 4px",background:"#F5F5F5",display:"inline-flex",alignItems:"center",gap:"4px"},O={wrapper:{width:"100%",maxWidth:800,display:"flex",alignItems:"center",justifyContent:"flex-end",flexWrap:"wrap",gap:{xs:"12px",sm:"24px",md:"40px"},rowGap:"12px",opacity:1,marginLeft:"auto",marginRight:"auto",paddingLeft:{xs:0,sm:"24px"},mt:2},resultsPerPageBox:{minWidth:0,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1,flexShrink:0},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:{minWidth:0,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1,flexShrink:0},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"}};return c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:c.jsxs(pn,{maxWidth:"md",sx:{width:"100%",pt:2,pb:4,display:"flex",flexDirection:"column",gap:"24px",opacity:1,boxSizing:"border-box"},children:[c.jsx(P,{sx:{width:"100%",minHeight:20,display:"flex",alignItems:"center",gap:"24px",flexWrap:"wrap",opacity:1},children:c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",height:20,opacity:1},children:[c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#000000",opacity:1},children:"All Catalogs"}),c.jsx(H,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},children:n})]})}),y&&c.jsx(H,{color:"error",sx:{mb:0},children:y}),c.jsx(P,{sx:{display:"flex",flexDirection:"column",gap:"8px"},children:w.map(B=>{const L=g===B.id,E=typeof a=="function"?a(B):s[B.id]??B.status??"Active",I=E==="Active";return c.jsxs(Sn,{elevation:0,sx:{width:"100%",maxWidth:"100%",minHeight:106,borderRadius:"12px",border:"1px solid #F1F1F1",padding:"12px 16px",background:"#FFFFFF",display:"grid",gridTemplateColumns:"auto minmax(0, 1fr) auto",gridTemplateRows:"auto auto auto",columnGap:"16px",rowGap:"8px",alignItems:"start",opacity:1,boxSizing:"border-box"},children:[c.jsx(P,{sx:{gridColumn:1,gridRow:"1 / 4",pt:"2px",alignSelf:"start"},children:c.jsx(KN,{})}),c.jsx(P,{sx:{gridColumn:2,gridRow:1,minWidth:0,width:"100%"},children:L?c.jsx(rs,{label:"Name",size:"small",value:m.name,onChange:$=>S(W=>({...W,name:$.target.value})),fullWidth:!0,sx:{"& .MuiInputBase-root":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px"}}}):c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#000000",opacity:1,overflowWrap:"anywhere"},children:B.name})}),c.jsxs(P,{sx:{gridColumn:3,gridRow:"1 / 4",display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:"center",gap:{xs:"8px",sm:"12px"},flexShrink:0,flexWrap:"nowrap",justifySelf:"end",alignSelf:"start"},children:[c.jsx(P,{sx:{flexShrink:0},children:L?c.jsxs(Cn,{size:"small",value:m.status?"Active":"Inactive",onChange:$=>S(W=>({...W,status:$.target.value==="Active"})),IconComponent:Ur,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:m.status?"#D8FBE3":"#F5F5F5",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545","& .MuiSelect-select":{py:.75},"& .MuiSelect-icon":{width:12,height:12,top:"50%",transform:"translateY(-50%)"}},children:[c.jsx(Et,{value:"Active",children:"Active"}),c.jsx(Et,{value:"Inactive",children:"Inactive"})]}):c.jsxs(Cn,{value:E,onChange:$=>{if(typeof f!="function"||x)return;const W=$.target.value==="Active";f(B,W)},disabled:x,IconComponent:Ur,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:I?"#D8FBE3":"#F5F5F5",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545","& .MuiSelect-select":{py:.75},"& .MuiSelect-icon":{width:12,height:12,top:"50%",transform:"translateY(-50%)"},"& .MuiOutlinedInput-notchedOutline":{border:"none"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"none"}},variant:"outlined",children:[c.jsx(Et,{value:"Active",children:"Active"}),c.jsx(Et,{value:"Inactive",children:"Inactive"})]})}),c.jsx(P,{sx:{flexShrink:0,display:"flex",alignItems:"center",flexDirection:"row",gap:.5},children:L?c.jsxs(c.Fragment,{children:[c.jsx(vt,{size:"small","aria-label":"Save catalog",disabled:x,onClick:()=>b(B),sx:{p:0,color:"#454545"},children:c.jsx(nF,{sx:{fontSize:20}})}),c.jsx(tt,{size:"small",onClick:v,sx:{minWidth:0,px:1},children:"Cancel"})]}):c.jsx(vt,{size:"small","aria-label":"Edit catalog",onClick:()=>C(B),sx:{p:0,width:16,height:16},children:c.jsx(oF,{})})}),c.jsx(P,{sx:{flexShrink:0},children:c.jsx(vt,{size:"small","aria-label":"Delete catalog",onClick:()=>typeof u=="function"?u(B):null,sx:{p:0,width:16,height:16},children:c.jsx(sF,{})})})]}),c.jsx(P,{sx:{gridColumn:2,gridRow:2,minWidth:0,width:"100%"},children:L?c.jsx(rs,{label:"Slug",size:"small",value:m.slug,onChange:$=>S(W=>({...W,slug:$.target.value})),fullWidth:!0,placeholder:"/catalog-slug"}):c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1,overflowWrap:"anywhere"},children:B.slug})}),!L&&c.jsxs(P,{sx:{gridColumn:2,gridRow:3,minWidth:0,width:"100%",display:"flex",flexDirection:"column",gap:"8px"},children:[c.jsx(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:c.jsxs(P,{sx:D,children:[c.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(JN,{sx:{fontSize:12,color:"#454545"}})}),c.jsxs(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:[B.productsCount," Products"]})]})}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:[c.jsxs(P,{sx:D,children:[c.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(eF,{})}),c.jsxs(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:["By ",B.createdBy]})]}),c.jsxs(P,{sx:D,children:[c.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(Ay,{size:12,color:"#454545"})}),c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:B.date})]})]})]})]},B.id)})}),c.jsxs(P,{sx:O.wrapper,children:[c.jsxs(P,{sx:O.resultsPerPageBox,children:[c.jsx(H,{component:"span",sx:O.resultsPerPageText,children:"Results per page"}),c.jsxs(Cn,{value:i,onChange:B=>typeof d=="function"?d(B):null,IconComponent:Ur,variant:"standard",disableUnderline:!0,sx:O.select,children:[c.jsx(Et,{value:5,children:"5"}),c.jsx(Et,{value:10,children:"10"}),c.jsx(Et,{value:25,children:"25"})]})]}),c.jsxs(P,{sx:O.navBox,children:[c.jsx(vt,{size:"small",disabled:r===0,onClick:()=>typeof l=="function"?l(0):null,sx:O.iconButton,"aria-label":"First page",children:c.jsx(cu,{sx:{width:16,height:16,opacity:1}})}),c.jsx(vt,{size:"small",disabled:r===0,onClick:()=>typeof l=="function"?l(Math.max(0,r-1)):null,sx:O.iconButton,"aria-label":"Previous page",children:c.jsx(os,{sx:{width:16,height:16,opacity:1}})}),c.jsx(H,{component:"span",sx:O.pageText,children:A===0?"0-0 of 0":`${r*i+1}-${Math.min((r+1)*i,A)} of ${A}`}),c.jsx(vt,{size:"small",disabled:r>=k,onClick:()=>typeof l=="function"?l(r+1):null,sx:O.iconButton,"aria-label":"Next page",children:c.jsx(zt,{sx:{width:16,height:16,opacity:1}})}),c.jsx(vt,{size:"small",disabled:r>=k,onClick:()=>typeof l=="function"?l(k):null,sx:O.iconButton,"aria-label":"Last page",children:c.jsx(du,{sx:{width:16,height:16,opacity:1}})})]})]})]})})}const lF=({isOpen:e,onClose:t,onConfirm:n,catalogName:r})=>{const s=jn().productSettingModal;return c.jsx(So,{open:e,onClose:t,"aria-labelledby":"delete-catalog-modal",sx:{...s.modal,p:{xs:2,sm:0}},children:c.jsxs(P,{sx:{...s.container,width:"100%",maxWidth:{xs:"min(360px, 100%)",sm:360},boxSizing:"border-box"},children:[c.jsx(P,{sx:s.header,children:c.jsxs(H,{sx:{...s.headerTitle,fontSize:{xs:18,sm:22},overflowWrap:"anywhere",width:"100%"},children:["Are you sure you want to delete this catalog",r?` "${r}"`:"","?"]})}),c.jsxs(P,{sx:{...s.footer,display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:"stretch",gap:2,justifyContent:"center",pt:{xs:1,sm:0}},children:[c.jsx(tt,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:{xs:0,sm:100},width:{xs:"100%",sm:"auto"}},children:"Yes"}),c.jsx(tt,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:{xs:0,sm:100},width:{xs:"100%",sm:"auto"}},children:"No"})]})]})})};function cF(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 dF(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:cF(e.createdAt??e.date),createdAt:e.createdAt??e.date,status:e.status===!0?"Active":e.status===!1?"Inactive":e.status||"Active"}}function uF(e){const t=Bt(),n=yn(),{sharedCatalogues:r=[],sharedCataloguesTotal:i=0,sharedCataloguesLoading:s=!1,sharedCataloguesError:a=null}=Qe(V=>V.productSettings??{}),{updateCatalogLoading:l=!1,updateCatalogError:d=null}=Qe(V=>V.dashboard??{}),[p,u]=F.useState(0),[f,y]=F.useState(10),[x,g]=F.useState({}),[h,m]=F.useState(!1),[S,C]=F.useState(null),[b,v]=F.useState(!1),[w,A]=F.useState("");F.useEffect(()=>{n(rn({page:p+1,limit:f}))},[n,p,f]),F.useEffect(()=>()=>n({type:"dashboard/clearUpdateCatalogError"}),[n]);const k=F.useMemo(()=>Array.isArray(r)?r.map(dF).filter(Boolean):[],[r]),D=i,O=V=>u(V),B=V=>{const j=Number(V.target.value);y(j),u(0)},L=V=>x[V.id]??V.status,E=F.useCallback(()=>t(-1),[t]),{setSettingTopbarProps:I}=ss()||{};F.useEffect(()=>{if(I)return I({onBack:E}),()=>I({})},[I,E]);const $=async V=>{const{id:j,name:M,slug:Y,status:Z}=V;await n(oi({id:j,name:M,slug:Y,status:Z})).unwrap(),n(rn({page:p+1,limit:f}))},W=async(V,j)=>{const M=V.slugRaw??(typeof V.slug=="string"?V.slug.replace(/^\//,""):"")??"";g(Y=>({...Y,[V.id]:j?"Active":"Inactive"}));try{await n(oi({id:V.id,name:V.name??"",slug:M,status:j})).unwrap(),n(rn({page:p+1,limit:f}))}catch{g(Y=>({...Y,[V.id]:V.status}))}},_=V=>{C(V),m(!0)},z=()=>{m(!1),C(null)},N=async()=>{if(!S?.id){z();return}try{await n(Ks(S.id)).unwrap(),A("Catalog delete Successfully"),v(!0),z(),n(rn({page:p+1,limit:f}))}catch{A("Failed to delete catalog"),v(!0)}};return s&&k.length===0?c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:c.jsx(pn,{maxWidth:"md",sx:{boxSizing:"border-box"},children:c.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:c.jsx(Ii,{})})})}):a&&k.length===0?c.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:c.jsx(pn,{maxWidth:"md",sx:{boxSizing:"border-box"},children:c.jsx(P,{sx:{textAlign:"center",py:4},children:c.jsx(H,{color:"error",children:a})})})}):c.jsxs(c.Fragment,{children:[c.jsx(aF,{catalogs:k,totalCount:D,page:p,rowsPerPage:f,statusById:x,getStatus:L,onBack:E,onPageChange:O,onRowsPerPageChange:B,onStatusChange:W,onSave:$,onDelete:_,updateCatalogError:d,updateCatalogLoading:l,...e}),c.jsx(lF,{isOpen:h,onClose:z,onConfirm:N,catalogName:S?.name}),c.jsx(ko,{open:b,autoHideDuration:4e3,onClose:()=>v(!1),message:w,anchorOrigin:{vertical:"top",horizontal:"center"}})]})}const vl=dt(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"),pF=dt([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 pu(e){return c.jsx(pF,{...e})}function fF({styles:e={},selectedProducts:t=[],data:n,onSelectProduct:r,categoryName:i,showLimitedColumns:s=!1,pagination:a=null,totalProductsCountForHeader:l=0,onPageChange:d,onLimitChange:p}){const u=e?.categoryTableAllStore??{},f=e?.categoryTableSingleStore??{},y=e?.categoryTablePagination??{},x=_t("(max-width:900px)"),g=_t("(max-width:400px)"),h=_t("(max-width:550px)"),m=_t("(max-width:770px)"),S=_t("(max-width:650px)"),C=_t("(max-width:500px)"),b=_t("(max-width:400px)"),v=!s,w=v&&m,A=q=>t.some(K=>K.id===q.id),k=Number(l>0?l:a?.totalCount??n?.length??0),D=t.length,O=k>0&&D===k,B=D>0,L=n.some(A),E=B&&!O&&L,I=()=>{O||E?t.forEach(q=>r(q,i)):n.forEach(q=>{A(q)||r(q,i)})},$=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(as,{sx:{fontSize:10,color:"#1976d2",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})}),W=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}})}),[_,z]=F.useState(null),[N,V]=F.useState([]),j=(q,K)=>{z(q.currentTarget),V(K)},M=()=>{z(null),V([])},Y=!!_,Z=v?f.outerCard:u.outerCard,J=v?"6px":"4px";return c.jsx(pn,{maxWidth:!1,sx:{width:"100%",px:0},children:c.jsxs(Qa,{sx:{...e.categoryTable,...Z,display:"flex",flexDirection:"column",boxShadow:"none",borderRadius:0,bgcolor:"transparent",overflow:"visible",width:"100%",maxWidth:"100%",marginLeft:0,marginRight:0},children:[c.jsx(P,{sx:{...u.categoryNameBox,display:"flex",alignItems:"center",mb:J,boxSizing:"border-box",overflow:"hidden"},children:c.jsx(H,{sx:{...u.categoryNameText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i})}),!(v&&!g)&&c.jsxs(P,{sx:{display:"flex",flexWrap:g&&v?"wrap":"nowrap",alignItems:"center",width:"100%",minWidth:0,...v?f.tableHeader:u.tableHeader,boxSizing:"border-box",gap:g?"8px":v&&x?"12px":"16px"},children:[s?c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:c.jsx(Ct,{checked:O,indeterminate:E,onChange:I,size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:"#FFFFFF"}}),checkedIcon:$,indeterminateIcon:W})}),c.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:"1 1 0"},children:c.jsx(H,{component:"span",sx:u.headerProduct,children:"Product"})})]}):c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:g?"8px":x?"12px":"16px",flex:"1 1 0",minWidth:0,...v&&!g&&{maxWidth:"40%"}},children:[c.jsx(Ct,{checked:O,indeterminate:E,onChange:I,size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:"#FFFFFF"}}),checkedIcon:$,indeterminateIcon:W}),s?c.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:"1 1 0"},children:c.jsx(H,{component:"span",sx:u.headerProduct,children:"Product"})}):c.jsx(H,{component:"span",sx:{...f.headerLabel,...f.headerProduct},children:"Product"})]}),!g&&(v?c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:{...f.headerStatus,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:c.jsx(H,{component:"span",sx:{...f.headerLabel},children:"Status"})}),c.jsx(P,{sx:{...f.headerPrice,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:c.jsx(H,{component:"span",sx:{...f.headerLabel},children:"Price"})}),c.jsx(P,{sx:{...f.headerStock,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:c.jsx(H,{component:"span",sx:{...f.headerLabel},children:"Stock"})}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0,flex:"0 1 auto",...f.headerOffer},children:[c.jsx(H,{component:"span",sx:{...f.headerLabel},children:"Offer"}),c.jsx(ml,{sx:{...u.arrowDown,fontSize:12,marginTop:"8px"}})]})]}):c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:6},children:c.jsx(H,{component:"span",sx:u.headerStatusText,children:"Status"})}),!h&&c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:2},children:c.jsx(H,{component:"span",sx:u.headerOsaText,children:"Stock / OSA"})}),c.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:0},children:c.jsx(ml,{sx:{fontSize:12,height:12,color:"#808080",marginLeft:"8px",marginTop:"8px"}})})]})]}))]}),(function(){const q=v&&!g,K=n.map((U,oe)=>{let ne=[];U.offers&&Array.isArray(U.offers)?ne=U.offers:U.offer&&typeof U.offer=="string"&&U.offer.includes(`
1581
+ `)?ne=U.offer.split(`
1582
+ `):U.offer&&Array.isArray(U.offer)?ne=U.offer:U.offer&&(ne=[U.offer]);const te=ne[0]||"",ie=ne.length>1?ne.slice(1):[];return c.jsxs(P,{sx:{...v&&!g?{gridColumn:"1 / -1",display:"grid",gridTemplateColumns:"subgrid",gap:"12px",alignItems:"flex-start",boxSizing:"border-box",mt:0,mb:0,width:"100%",maxWidth:"100%",minWidth:0,...f.rowCard,...m&&{height:"auto",minHeight:152}}:{display:"flex",flexDirection:g&&v?"column":"row",alignItems:"flex-start",flexWrap:g&&v?"nowrap":"wrap",...v?f.rowCard:u.rowCard,...w&&{height:"auto",minHeight:152},gap:g?"8px":"16px",boxSizing:"border-box",mt:oe===0?.5:0,mb:.5,width:"100%",maxWidth:"100%",minWidth:0}},children:[!(v&&b)&&c.jsx(P,{sx:{display:"flex",alignItems:"flex-start",width:16,minHeight:20,gap:"8px",flexShrink:0},children:c.jsx(Ct,{checked:A(U),onChange:()=>r(U,i),size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#2563EB",border:"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: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.jsx(P,{sx:{display:"flex",flexDirection:v&&m?"column":"row",alignItems:v&&m?"flex-start":v?"center":"flex-start",height:v&&!w&&!m?56:void 0,minHeight:56,gap:"16px",minWidth:0,flex:g?"0 0 auto":"1 1 0",width:g||v&&m?"100%":void 0,overflow:w||m?"visible":"hidden",...v?f.productBlock:u.productBlock,...v&&{width:void 0,maxWidth:"100%",flex:g?"0 0 auto":"1 1 0"},...(w||v&&m)&&{height:"auto"},...!v&&!g&&{height:void 0},...!v&&g&&{height:76,minHeight:76,maxHeight:76,overflow:"hidden"}},children:v&&m?c.jsxs(c.Fragment,{children:[c.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:"16px",minWidth:0,width:"100%",flex:"0 0 auto"},children:[b&&c.jsx(P,{sx:{display:"flex",alignItems:"flex-start",width:16,minHeight:20,flexShrink:0},children:c.jsx(Ct,{checked:A(U),onChange:()=>r(U,i),size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#2563EB",border:"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: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.jsx(P,{sx:{...u.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},children:U.productImage?c.jsx(jr,{src:U.productImage,alt:U.productName,sx:{width:56,height:56,borderRadius:"8px"}}):c.jsx(jr,{sx:{width:56,height:56,borderRadius:"8px",bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:20},children:U.productName&&U.productName[0]})}),c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0,maxWidth:"100%",overflow:"hidden"},children:[c.jsx(H,{sx:{...u.productName,wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal",overflow:"hidden",fontSize:"12px",lineHeight:"16px"},children:U.productName}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap",minWidth:0,overflow:"hidden"},children:[c.jsx(H,{sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis"},children:U.productWeight}),U.categoryName&&c.jsxs(c.Fragment,{children:[c.jsx(H,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px"},children:"•"}),c.jsx(H,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px"},children:U.categoryName})]})]}),c.jsxs(H,{sx:{...u.productSku,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis"},children:["SKU: ",U.sku]})]})]}),S?c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"24px",width:"100%",ml:b?"32px":0},children:[b&&c.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:"50px",alignItems:"center",flexWrap:"wrap",width:"100%"},children:[c.jsx(P,{component:"span",sx:U.status===!0?u.statusActiveBox:u.statusNoStockBox,children:U.status===!0?"Active":"No Stock"}),c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",...f.priceBlock},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[c.jsxs(H,{sx:f.priceText,children:["₹",U.price]}),c.jsx(P,{sx:{...f.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:c.jsx(pu,{sx:{fontSize:14,color:"#808080"}})})]}),U.mrp&&c.jsxs(H,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",U.mrp]}),U.discount&&c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:U.discount})]})]}),C&&!b&&c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",...f.priceBlock},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[c.jsxs(H,{sx:f.priceText,children:["₹",U.price]}),c.jsx(P,{sx:{...f.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:c.jsx(pu,{sx:{fontSize:14,color:"#808080"}})})]}),U.mrp&&c.jsxs(H,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",U.mrp]}),U.discount&&c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:U.discount})]}),c.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:"50px",alignItems:"center",flexWrap:"wrap",width:"100%"},children:[c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"2px",flexShrink:0},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:0},children:[U.stock===0&&c.jsx(Oo,{title:"No stock",children:c.jsx(vl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),c.jsx(H,{component:"span",sx:u.stockValue,children:U.stock}),c.jsx(H,{component:"span",sx:u.osaValue,children:U.quantity?`/${U.quantity}`:""})]}),(()=>{const R=typeof U.osa=="number"?U.osa:U.osa??0,le=Number(R),ae=le<50;return c.jsxs(H,{sx:{...u.onShelfText,fontSize:"10px",color:f.onShelfPercentNormal?.color||"#454545"},children:[c.jsxs(P,{component:"span",sx:ae?{color:f.onShelfPercentRed?.color||"#d32f2f"}:{},children:[Math.round(le),"%"]}),c.jsx(P,{component:"span",sx:{color:f.onShelfSpan?.color||"#808080"},children:" on shelf"})]})})()]}),c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:0,flex:1,minWidth:0},children:[c.jsx(H,{sx:{...f.offerText,whiteSpace:"pre-line",fontSize:"12px",lineHeight:"16px"},children:te}),ie.length>0&&c.jsxs(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:R=>j(R,ne),children:["+",ie.length," more"]})]})]})]}):c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:0,width:"100%"},children:[c.jsx(H,{sx:{...f.offerText,whiteSpace:"pre-line",fontSize:"12px",lineHeight:"16px"},children:te}),ie.length>0&&c.jsxs(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:R=>j(R,ne),children:["+",ie.length," more"]})]})]}):c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:{...u.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0,mb:0},children:U.productImage?c.jsx(jr,{src:U.productImage,alt:U.productName,sx:{width:56,height:56,borderRadius:"8px"}}):c.jsx(jr,{sx:{width:56,height:56,borderRadius:"8px",bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:20},children:U.productName&&U.productName[0]})}),c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0,maxWidth:"100%",overflow:"hidden",...!v&&g&&{height:76,minHeight:76,maxHeight:76}},children:[c.jsx(H,{sx:{...u.productName,wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal",overflow:"hidden",fontSize:"12px",lineHeight:"16px",...!v&&g&&{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}},children:U.productName}),c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",minWidth:0,overflow:"hidden",flexWrap:!v&&g?"nowrap":"wrap"},children:[c.jsx(H,{sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",flexShrink:!v&&g?0:void 0},children:U.productWeight}),U.categoryName&&c.jsxs(c.Fragment,{children:[c.jsx(H,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",flexShrink:0},children:"•"}),c.jsx(H,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",...!v&&g&&{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",flex:"1 1 0"}},children:U.categoryName})]})]}),c.jsxs(H,{sx:{...u.productSku,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",...!v&&g&&{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}},children:["SKU: ",U.sku]})]})]})}),(v&&!g||!v&&!g)&&c.jsx(P,{sx:{display:"flex",alignItems:"flex-start",justifyContent:v&&!g?"center":void 0,...v?f.statusBlock:{},flexShrink:0,minWidth:0,width:g?"100%":void 0,mt:g?1:0,mr:!v&&!g?4:0,...v&&!g&&{alignSelf:"flex-start",marginTop:"8px"}},children:c.jsx(P,{component:"span",sx:U.status===!0?u.statusActiveBox:u.statusNoStockBox,children:U.status===!0?"Active":"No Stock"})}),!v&&!h&&c.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-start",flexShrink:0,minWidth:0,width:g?"100%":void 0,mt:g?1:0,ml:g?0:.5,textAlign:"left",marginRight:"56px"},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:0},children:[U.stock===0&&c.jsx(Oo,{title:"No stock",children:c.jsx(vl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),c.jsx(H,{component:"span",sx:u.stockValue,children:U.stock}),c.jsx(H,{component:"span",sx:u.osaValue,children:U.quantity?`/${U.quantity}`:""})]}),(()=>{const R=Number(typeof U.osa=="number"?U.osa:U.osa??0),le=R<50;return c.jsxs(H,{sx:{...u.onShelfText,color:"#808080",textAlign:"left"},children:[c.jsxs(P,{component:"span",sx:le?{color:"#d32f2f"}:{},children:[Math.round(R),"%"]})," on shelf"]})})()]}),!v&&h&&c.jsx(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-start",width:"100%",mt:1,ml:"32px",...g&&{minHeight:48}},children:c.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:12,flexWrap:g?"nowrap":"wrap"},children:[g&&c.jsx(P,{component:"span",sx:U.status===!0?u.statusActiveBox:u.statusNoStockBox,children:U.status===!0?"Active":"No Stock"}),c.jsxs(P,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:0},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:0},children:[U.stock===0&&c.jsx(Oo,{title:"No stock",children:c.jsx(vl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),c.jsx(H,{component:"span",sx:u.stockValue,children:U.stock}),c.jsx(H,{component:"span",sx:u.osaValue,children:U.quantity?`/${U.quantity}`:""})]}),(()=>{const R=Number(typeof U.osa=="number"?U.osa:U.osa??0),le=R<50;return c.jsxs(H,{sx:{...u.onShelfText,color:"#808080",textAlign:"left"},children:[c.jsxs(P,{component:"span",sx:le?{color:"#d32f2f"}:{},children:[Math.round(R),"%"]})," on shelf"]})})()]})]})}),v&&!C&&c.jsxs(P,{sx:{display:"flex",flexDirection:"column",...f.priceBlock,flexShrink:0,minWidth:0,flex:"0 1 auto",width:g?"100%":void 0,mt:g?1:0},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[c.jsxs(H,{sx:f.priceText,children:["₹",U.price]}),c.jsx(P,{sx:{...f.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:c.jsx(pu,{sx:{fontSize:14,color:"#808080"}})})]}),U.mrp&&c.jsxs(H,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",U.mrp]}),U.discount&&c.jsx(H,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:U.discount})]}),v&&!S&&c.jsxs(P,{sx:{display:"flex",flexDirection:"column",...f.stockBlock,flexShrink:0,minWidth:0,width:g?"100%":void 0,mt:g?1:0},children:[c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:0},children:[U.stock===0&&c.jsx(Oo,{title:"No stock",children:c.jsx(vl,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),c.jsx(H,{component:"span",sx:u.stockValue,children:U.stock}),c.jsx(H,{component:"span",sx:u.osaValue,children:U.quantity?`/${U.quantity}`:""})]}),(()=>{const R=typeof U.osa=="number"?U.osa:U.osa??0,le=Number(R),ae=le<50;return c.jsxs(H,{sx:{...u.onShelfText,fontSize:"10px",color:f.onShelfPercentNormal.color},children:[c.jsxs(P,{component:"span",sx:ae?{color:f.onShelfPercentRed.color}:{},children:[Math.round(le),"%"]})," ",c.jsx(P,{component:"span",sx:{color:f.onShelfSpan.color},children:"on shelf"})]})})()]}),v&&!m&&c.jsxs(P,{sx:{display:"flex",flexDirection:"column",...f.offerBlock,minWidth:0,flex:"0 1 auto",width:g?"100%":void 0,mt:g?1:0},children:[c.jsx(H,{sx:{...f.offerText,whiteSpace:"pre-line"},children:te}),ie.length>0&&c.jsxs(H,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:R=>j(R,ne),children:["+",ie.length," more"]})]})]},U.id||oe)});return q?c.jsxs(P,{sx:{display:"grid",gridTemplateColumns:b?"minmax(0, 1fr)":C?"auto minmax(0, 1fr) auto":S?"auto minmax(0, 1fr) auto auto":m?"auto minmax(0, 1fr) auto auto auto":"auto minmax(0, 1fr) auto auto auto auto",columnGap:"12px",rowGap:"4px",alignItems:"start",width:"100%",minWidth:0,boxSizing:"border-box"},children:[c.jsx(P,{sx:{gridColumn:"1 / -1",display:"grid",gridTemplateColumns:"subgrid",gap:"12px",alignItems:"center",...f.tableHeader,boxSizing:"border-box"},children:b?c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0},children:[c.jsx(Ct,{checked:O,indeterminate:E,onChange:I,size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:"#FFFFFF"}}),checkedIcon:$,indeterminateIcon:W}),c.jsx(H,{component:"span",sx:{...f.headerLabel,...f.headerProduct},children:"Product"})]}):c.jsxs(c.Fragment,{children:[c.jsx(P,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:c.jsx(Ct,{checked:O,indeterminate:E,onChange:I,size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:"#FFFFFF"}}),checkedIcon:$,indeterminateIcon:W})}),c.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0},children:c.jsx(H,{component:"span",sx:{...f.headerLabel,...f.headerProduct},children:"Product"})}),!b&&c.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"center",minWidth:0},children:c.jsx(H,{component:"span",sx:{...f.headerLabel},children:"Status"})}),!C&&c.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0},children:c.jsx(H,{component:"span",sx:{...f.headerLabel},children:"Price"})}),!S&&c.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0},children:c.jsx(H,{component:"span",sx:{...f.headerLabel},children:"Stock"})}),!m&&c.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0,...f.headerOffer},children:[c.jsx(H,{component:"span",sx:{...f.headerLabel},children:"Offer"}),c.jsx(ml,{sx:{...u.arrowDown,fontSize:12,marginTop:"8px",marginLeft:"20px"}})]})]})}),K]}):K})(),c.jsxs(jd,{open:Y,anchorEl:_,onClose:M,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{p:2,minWidth:220}},children:[c.jsx(H,{sx:{fontWeight:700,mb:1},children:"Offers"}),N.map((q,K)=>c.jsxs(H,{sx:{fontSize:14,color:"#222",mb:.5},children:[K+1,". ",q]},K))]}),a&&typeof d=="function"&&typeof p=="function"&&c.jsxs(P,{sx:{...y.wrapper,width:"100%",maxWidth:"100%"},children:[c.jsxs(P,{sx:y.resultsPerPageBox,children:[c.jsx(H,{component:"span",sx:y.resultsPerPageText,children:"Results per page"}),c.jsx(Cn,{value:a.limit??10,onChange:q=>p(Number(q.target.value)),IconComponent:Ur,variant:"standard",disableUnderline:!0,sx:y.select,children:[5,10,20,50].map(q=>c.jsx(Et,{value:q,children:q},q))})]}),c.jsxs(P,{sx:y.navBox,children:[c.jsx(vt,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>d(1),sx:y.iconButton,title:"First page",children:c.jsx(cu,{sx:y.paginationIcon})}),c.jsx(vt,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>d((a.currentPage??1)-1),sx:y.iconButton,title:"Previous page",children:c.jsx(os,{sx:y.paginationIcon})}),c.jsx(H,{component:"span",sx:y.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(vt,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>d((a.currentPage??1)+1),sx:y.iconButton,title:"Next page",children:c.jsx(zt,{sx:y.paginationIcon})}),c.jsx(vt,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>d(a.totalPages??1),sx:y.iconButton,title:"Last page",children:c.jsx(du,{sx:y.paginationIcon})})]})]})]})})}const hF={category:"all",status:"all",search:"",store:[]},gF=()=>{const e=yn(),t=Bt(),n=It(),[r]=Kb(),i=r.get("categoryName"),s=jn(),a=s.categoryDetail,[l,d]=F.useState(()=>({...hF,...n.state?.filters||{}})),p=F.useMemo(()=>JSON.stringify(Array.isArray(l.store)?[...l.store].map(String).sort():[]),[l.store]),u=(Array.isArray(n.state?.selectedProducts)?n.state.selectedProducts:[]).reduce((ye,Le)=>{const Ge=(Le.categoryName||Le.category||i||"").toString().trim();if(!Ge)return ye;const Pt=ye[Ge]||[];return Pt.some(yt=>yt.id===Le.id)?ye[Ge]=Pt:ye[Ge]=[...Pt,Le],ye},{}),[f,y]=F.useState(u),[,x]=F.useState(null),[g,h]=F.useState(!1),[m,S]=F.useState([]),[C,b]=F.useState(!1),[v,w]=F.useState(!1),{integrationData:A,companyId:k,loading:D,productsLoading:O}=Qe(ge=>ge.dashboard),B=F.useRef(!1),L=F.useRef(!1),[E,I]=F.useState(!1);F.useEffect(()=>{!k&&!B.current&&(B.current=!0,e(ni()))},[e,k]),F.useEffect(()=>{I(!1)},[i]);const $=F.useMemo(()=>A&&typeof A=="object"&&Object.keys(A).length>0?{matched:!0,error:"",apiResponse:A,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[A]),W=Qe(ge=>ge.dashboard),{products:_=[],stores:z=[],pagination:N={},categoryList:V=[]}=W||{},{currentPage:j=1,limit:M=10,totalCount:Y=0,totalPages:Z=1,hasNextPage:J=!1}=N,q=Qe(ge=>{const ye=ge.dashboard?.stores;return!Array.isArray(ye)||ye.length===0?"":ye.map(Le=>`${Le.id??""}:${Le.storeCode??""}`).join("|")}),{sharedCatalogues:K=[],sharedCataloguesTotal:U=0,lastStableActiveCatalogsCount:oe=null}=Qe(ge=>ge.productSettings??{}),ne=F.useMemo(()=>Array.isArray(K)?K.filter(ge=>ge.status===!0).length:0,[K]),ie=U>0&&K.length>=U?ne:oe??ne,R=F.useMemo(()=>{if(!i||!Array.isArray(_))return[];const ge=i.trim().toLowerCase();return _.filter(ye=>{const Le=(ye.categoryName||ye.category||"").toString().trim().toLowerCase();return Le&&Le===ge}).map(ye=>({...ye,catalogProductId:ye.productId||ye.id,id:ye.id||ye.sku||ye.productName}))},[_,i]),le=R.length>0,ae=Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[],me=i?i.toString().trim().toLowerCase():"",Ve=ae.find(ge=>{const ye=(ge?.categoryName??ge?.name??"").toString().trim();return ye&&me&&ye.toLowerCase()===me}),Ie=Number(Ve?.productCount??Ve?.productsCount??Ve?.products)||0,Ne=Array.isArray(V)?V.find(ge=>{const ye=(ge?.categoryName??ge?.name??"").toString().trim().toLowerCase();return ye&&me&&ye===me}):null,He=Number(Ne?.productCount??Ne?.productsCount??Ne?.products)||0,je=Ie>0?Ie:He,$e=l?.status&&l.status!=="all"||l?.stock&&l.stock!=="all"||Array.isArray(l?.store)&&l.store.length>0&&!l.store.includes("all")||l?.search!=null&&String(l.search).trim()!==""||typeof l?.minPrice=="number"&&Number.isFinite(l.minPrice)||typeof l?.maxPrice=="number"&&Number.isFinite(l.maxPrice),de=i&&Number.isFinite(je)&&je>0&&Y>je,Ue=de?je:Y,se=de?Math.max(1,Math.ceil(Ue/((M??10)||10))):Z,re=de?(j??1)<se:J,fe=F.useMemo(()=>{if(!R||R.length===0)return;const ge=R.map(ye=>Number(ye.price??ye.sellingPrice??ye.mrp)).filter(ye=>Number.isFinite(ye)&&ye>=0);if(ge.length!==0)return{min:Math.min(...ge),max:Math.max(...ge)}},[R]),ve=F.useRef(!1);F.useEffect(()=>{k&&(Array.isArray(V)&&V.length>0||e(An({page:1,limit:10})))},[e,k,V]),F.useEffect(()=>{if(!k||!i||ve.current||!Array.isArray(V)||V.length===0)return;V.some(ye=>{const Le=(ye?.categoryName??ye?.name??"").toString().trim().toLowerCase();return Le&&Le===me})||(ve.current=!0,e(An({page:1,limit:5e3})))},[e,k,i,V,me]);const Ae=Array.isArray(_)&&_.length>0,Pe=Array.isArray(l.store)?l.store:[],Ye=!(Pe.length===1&&Pe[0]!=="all"),Fe=ge=>{ge.preventDefault(),t("/settings",{state:{tenantIntegrationData:$.apiResponse}})},ce=F.useMemo(()=>z.length>0?z:[{id:"all",name:"All Stores",storeCode:"all"}],[z]),Ee=F.useCallback(ge=>{d(ge)},[d]),We=F.useCallback(()=>{const ye=l?.sortBy==="productName"&&l?.sortOrder==="asc"?"desc":"asc";Ee({...l,sortBy:"productName",sortOrder:ye})},[l,Ee]),st=l?.sortBy==="productName"&&l?.sortOrder==="asc"?180:0,ue=F.useCallback((ge={})=>{const ye=Array.isArray(l.store)?l.store:[],Le={page:j,limit:M,...ge};if(i&&i.trim()&&(Le.categoryName=i.trim()),ye.length>0&&!ye.includes("all")){const Ge=ye.map(Pt=>z.find(br=>br.id===Pt)?.storeCode).filter(Boolean);Ge.length>0&&(Le.storeCode=Ge.join(","))}return(l.status==="active"||l.status==="inactive")&&(Le.status=l.status==="active"),(l.stock==="inStock"||l.stock==="outOfStock")&&(Le.inStock=l.stock==="inStock"),typeof l.minPrice=="number"&&Number.isFinite(l.minPrice)&&(Le.minPrice=l.minPrice),typeof l.maxPrice=="number"&&Number.isFinite(l.maxPrice)&&(Le.maxPrice=l.maxPrice),l.search!=null&&String(l.search).trim()!==""&&(Le.search=String(l.search).trim()),l.sortBy&&(l.sortOrder==="asc"||l.sortOrder==="desc")&&(Le.sortBy=l.sortBy,Le.sortOrder=l.sortOrder==="asc"?"ASC":"DESC"),Le},[i,j,M,p,l.status,l.stock,l.minPrice,l.maxPrice,l.search,l.sortBy,l.sortOrder,q]),he=ge=>{e(Ar(ue({page:ge})))},ze=ge=>{e(Ar(ue({page:1,limit:ge})))},At=F.useCallback((ge,ye={})=>{const Le=Array.isArray(l.store)?l.store:[],Ge={page:1,limit:5e3,...ye};if(ge&&String(ge).trim()!==""&&(Ge.categoryName=String(ge).trim()),Le.length>0&&!Le.includes("all")){const Pt=Le.map(yt=>z.find(No=>No.id===yt)?.storeCode).filter(Boolean);Pt.length>0&&(Ge.storeCode=Pt.join(","))}return l.search!=null&&String(l.search).trim()!==""&&(Ge.search=String(l.search).trim()),Ge},[l.store,l.search,z]),ke=F.useCallback(async()=>{const ye=(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]).map(ct=>(ct?.categoryName??ct?.name??"").toString().trim()).filter(Boolean),Le=Array.isArray(f[i])?f[i]:[],Ge=[];for(const ct of ye){if(ct===i){Le.length>0&&Ge.push(Le);continue}try{const qn=At(ct),xr=await e(Ys(qn)).unwrap().catch(()=>({})),SF=Array.isArray(xr?.data)?xr.data:Array.isArray(xr?.products)?xr.products:Array.isArray(xr)?xr:[];Ge.push(SF)}catch{Ge.push([])}}Le.length>0&&!ye.includes(i)&&Ge.push(Le);const Pt=new Set(ye);Object.keys(f||{}).forEach(ct=>{if(ct===i||Pt.has(ct))return;const qn=f[ct];Array.isArray(qn)&&qn.length>0&&Ge.push(qn)});const yt=Ge.flat().filter(Boolean),br=new Set,No=yt.map(ct=>({...ct,catalogProductId:ct?.productId??ct?.catalogProductId??ct?.id,id:ct?.id||ct?.sku||ct?.productName})).filter(ct=>{const qn=(ct?.productId||ct?.id||ct?.sku||ct?.productName||"").toString();return!qn||br.has(qn)?!1:(br.add(qn),!0)});S(No),h(!0)},[e,i,n.state,f,At]),Je=F.useRef(null),Un=F.useRef(null),$t=F.useRef(null);F.useEffect(()=>{if(!k)return;const ge=i?.trim()||"",ye=$t.current,Le=!!ge&&ye!==ge;Le&&(e(kf()),$t.current=ge);const Ge=Le?1:j,Pt=Array.isArray(l.store)?l.store:[],yt={page:Ge,limit:M};if(i&&i.trim()&&(yt.categoryName=i.trim()),Pt.length>0&&!Pt.includes("all")){const No=Pt.map(ct=>z.find(xr=>xr.id===ct)?.storeCode).filter(Boolean);No.length>0&&(yt.storeCode=No.join(","))}(l.status==="active"||l.status==="inactive")&&(yt.status=l.status==="active"),(l.stock==="inStock"||l.stock==="outOfStock")&&(yt.inStock=l.stock==="inStock"),typeof l.minPrice=="number"&&Number.isFinite(l.minPrice)&&(yt.minPrice=l.minPrice),typeof l.maxPrice=="number"&&Number.isFinite(l.maxPrice)&&(yt.maxPrice=l.maxPrice),l.search!=null&&String(l.search).trim()!==""&&(yt.search=String(l.search).trim()),l.sortBy&&(l.sortOrder==="asc"||l.sortOrder==="desc")&&(yt.sortBy=l.sortBy,yt.sortOrder=l.sortOrder==="asc"?"ASC":"DESC");const br=JSON.stringify(yt);Je.current!==br&&(Je.current=br,e(Ar(yt)))},[k,i,j,M,p,l.status,l.stock,l.minPrice,l.maxPrice,l.search,l.sortBy,l.sortOrder,e,q]);const Ht=(ge,ye)=>{I(!0),y(Le=>{const Ge=Le[ye]||[];let Pt;return Ge.some(yt=>yt.id===ge.id)?Pt=Ge.filter(yt=>yt.id!==ge.id):Pt=[...Ge,ge],{...Le,[ye]:Pt}}),x(ye)};F.useEffect(()=>{if(L.current||!i||!Array.isArray(R)||R.length===0||!(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]).map(Ge=>Ge?.categoryName??Ge?.name??Ge).filter(Boolean).includes(i))return;if((f[i]||[]).length>0){L.current=!0;return}queueMicrotask(()=>{y(Ge=>({...Ge,[i]:R}))}),L.current=!0},[i,R,f,n.state?.selectedCategories]),F.useEffect(()=>{k&&(e(qt(k)),e(ri()),i&&i.trim()&&e(qs({categoryName:i.trim()})),e(rn({page:1})))},[e,k,i]),F.useEffect(()=>{if(!k||U<=0)return;(Array.isArray(K)?K.length:0)<U&&e(rn({page:1,limit:U}))},[k,U,K?.length,e]);const Me=Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[],gn=f[i]||[],Py=$e?Ue:je>0?je:Ue,ky=le&&Py>0&&gn.length===Py,Rn=i?i.toString().trim():"",Oy=!!Rn&&Me.some(ge=>(ge?.categoryName??ge?.name??"").toString().trim()===Rn),xF=Oy&&!E&&gn.length>0&&!ky,Sl=new Map(Me.map(ge=>{const ye=(ge?.categoryName??ge?.name??"").toString().trim();return ye?[ye,ge]:null}).filter(Boolean));Rn&&(ky||xF?Sl.has(Rn)||Sl.set(Rn,Ne||Ve||{categoryName:Rn}):Sl.delete(Rn));const cs=Array.from(Sl.values()),vF=Array.isArray(n.state?.pinnedCategoryNames)?n.state.pinnedCategoryNames.map(ge=>String(ge).trim()).filter(Boolean):Me.map(ge=>(ge?.categoryName??ge?.name??"").toString().trim()).filter(Boolean),fu=new Set(vF);Rn&&Oy&&(gn.length===0?fu.delete(Rn):fu.add(Rn));const Iy=Array.from(fu),{setTopbarProps:wl}=ss()||{};return F.useEffect(()=>{if(wl)return wl({filters:l,onFilterChange:Ee,styles:a.topBar,stores:ce,tenantStatus:$,onSortToggle:We,sortIconRotationDeg:st,hasProducts:Ae,priceRange:fe,showBackButton:!0,backTo:"/",backState:{selectedCategories:cs,selectedProducts:Object.values(f||{}).flat(),pinnedCategoryNames:Iy}}),()=>wl({})},[wl,l,Ee,We,st,a.topBar,ce,$,Ae,fe,cs,Iy,f]),c.jsx(c.Fragment,{children:c.jsxs(P,{sx:a.contentWrapper??{marginTop:0,position:"relative",zIndex:0},children:[D||!k?c.jsx(Io,{text:i?"Fetching Products":"Fetching",fullScreen:!1}):i?i&&O?c.jsx(Io,{text:"Fetching Products",fullScreen:!1}):le?c.jsxs(P,{sx:a.root,children:[c.jsxs(pn,{ref:Un,maxWidth:"lg",sx:{width:"100%",px:{xs:1,sm:2,md:4},display:"flex",flexDirection:"column",alignItems:"stretch"},children:[c.jsx(yy,{productState:W,categoryName:i,categoryProductCount:R.length,activeCatalogsCount:ie,onManageClick:()=>t("/catalogs/manage-shared"),matchHomePageLayout:!0,equalCardWidths:!0}),c.jsx(fF,{data:R,styles:a,selectedProducts:f[i]||[],onSelectProduct:Ht,categoryName:i,showLimitedColumns:Ye,totalProductsCountForHeader:$e?0:je,pagination:{currentPage:j,limit:M,totalCount:Ue,totalPages:se,hasNextPage:re},onPageChange:he,onLimitChange:ze})]}),c.jsx(vy,{containerRef:Un,onPromoPrint:ke,onCreateCatalog:()=>b(!0),onOsaRequest:()=>w(!0),selectedProducts:Object.values(f||{}).flat(),selectedCategories:cs})]}):c.jsx(P,{sx:a.loadingBox??{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(H,{sx:s?.emptyProduct&&s.emptyProduct.title||{fontSize:"16px",fontWeight:600,color:"#1a1a1a"},children:`No products found in the "${i}" category.`})}):c.jsx(eu,{handleStartSyncing:Fe,loading:!1}),c.jsx(Ty,{open:g,onClose:()=>{h(!1),S([])},selectedProducts:m},g?"open":"closed"),c.jsx(wy,{open:C,onClose:()=>b(!1),stores:ce,selectedProducts:Object.values(f||{}).flat(),selectedCategories:cs,onCreateSuccess:ge=>{y(ye=>({...ye,[i]:[]})),b(!1),ge&&t("/",{state:{catalogCreated:!0,catalogSlug:ge}})}}),c.jsx(Cy,{open:v,onClose:()=>w(!1),stores:ce,selectedProducts:Object.values(f||{}).flat(),selectedCategories:cs,onSuccess:()=>y(ge=>({...ge,[i]:[]}))})]})})};function mF(){return c.jsx(Pb,{children:c.jsxs(vr,{element:c.jsx(UI,{}),children:[c.jsx(vr,{path:"/",element:c.jsx(bN,{})}),c.jsx(vr,{path:"/category",element:c.jsx(gF,{})}),c.jsx(vr,{path:"/product-setting",element:c.jsx(PN,{})}),c.jsx(vr,{path:"/products/settings/ftp-sync",element:c.jsx(YN,{})}),c.jsx(vr,{path:"/catalogs/manage-shared",element:c.jsx(uF,{})})]})})}function yF({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return c.jsx(mF,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}const bF=()=>c.jsx(Io,{text:"Fetching",fullScreen:!0});return({apiUrl:e,authToken:t,basePath:n="/",StoresModal:r,storesModalProps:i,onStoreSelect:s})=>c.jsx("div",{style:{width:"100%",minHeight:"100vh",boxSizing:"border-box"},children:c.jsx(Q1,{apiUrl:e,authToken:t,children:c.jsx(x0,{store:Ff,children:c.jsx(T0.PersistGate,{loading:c.jsx(bF,{}),persistor:X1,children:c.jsx(Vb,{basename:n,children:c.jsx(yF,{StoresModal:r,storesModalProps:i,onStoreSelect:s})})})})})})}));
1583
1583
  //# sourceMappingURL=product-app.umd.js.map