@attabot/product-app 1.0.31 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/product-app.js +15220 -15230
- package/dist/product-app.js.map +1 -1
- package/dist/product-app.umd.js +86 -86
- package/dist/product-app.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/product-app.umd.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
(function(l,j){typeof exports=="object"&&typeof module<"u"?module.exports=j(require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-dom"],j):(l=typeof globalThis<"u"?globalThis:l||self,l.ProductApp=j(l["react/jsx-runtime"],l.React,l.ReactDOM))})(this,(function(l,j,xo){"use strict";var dl=typeof document<"u"?document.currentScript:null;function tp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=tp(j),py=tp(xo);function vo(){return vo=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},vo.apply(this,arguments)}var Rn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Rn||(Rn={}));const np="popstate";function uy(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:a,hash:c}=r.location;return pl("",{pathname:s,search:a,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:So(i)}return hy(t,n,null,e)}function $e(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Rt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fy(){return Math.random().toString(36).substr(2,8)}function rp(e,t){return{usr:e.state,key:e.key,idx:t}}function pl(e,t,n,r){return n===void 0&&(n=null),vo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Fr(t):t,{state:n,key:t&&t.key||r||fy()})}function So(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 Fr(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 hy(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,c=Rn.Pop,d=null,u=p();u==null&&(u=0,a.replaceState(vo({},a.state,{idx:u}),""));function p(){return(a.state||{idx:null}).idx}function h(){c=Rn.Pop;let m=p(),S=m==null?null:m-u;u=m,d&&d({action:c,location:f.location,delta:S})}function y(m,S){c=Rn.Push;let C=pl(f.location,m,S);u=p()+1;let b=rp(C,u),v=f.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:c,location:f.location,delta:1})}function x(m,S){c=Rn.Replace;let C=pl(f.location,m,S);u=p();let b=rp(C,u),v=f.createHref(C);a.replaceState(b,"",v),s&&d&&d({action:c,location:f.location,delta:0})}function g(m){let S=i.location.origin!=="null"?i.location.origin:i.location.href,C=typeof m=="string"?m:So(m);return C=C.replace(/ $/,"%20"),$e(S,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,S)}let f={get action(){return c},get location(){return e(i,a)},listen(m){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(np,h),d=m,()=>{i.removeEventListener(np,h),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 f}var op;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(op||(op={}));function gy(e,t,n){return n===void 0&&(n="/"),my(e,t,n)}function my(e,t,n,r){let i=typeof t=="string"?Fr(t):t,s=qn(i.pathname||"/",n);if(s==null)return null;let a=ip(e);yy(a);let c=null;for(let d=0;c==null&&d<a.length;++d){let u=Py(s);c=Ay(a[d],u)}return c}function ip(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,a,c)=>{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};d.relativePath.startsWith("/")&&($e(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 u=Fn([r,d.relativePath]),p=n.concat(d);s.children&&s.children.length>0&&($e(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ip(s.children,t,p,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:Ey(u,s.index),routesMeta:p})};return e.forEach((s,a)=>{var c;if(s.path===""||!((c=s.path)!=null&&c.includes("?")))i(s,a);else for(let d of sp(s.path))i(s,a,d)}),t}function sp(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=sp(r.join("/")),c=[];return c.push(...a.map(d=>d===""?s:[s,d].join("/"))),i&&c.push(...a),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function yy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ty(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const by=/^:[\w-]+$/,xy=3,vy=2,Sy=1,wy=10,Cy=-2,ap=e=>e==="*";function Ey(e,t){let n=e.split("/"),r=n.length;return n.some(ap)&&(r+=Cy),t&&(r+=vy),n.filter(i=>!ap(i)).reduce((i,s)=>i+(by.test(s)?xy:s===""?Sy:wy),r)}function Ty(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 Ay(e,t,n){let{routesMeta:r}=e,i={},s="/",a=[];for(let c=0;c<r.length;++c){let d=r[c],u=c===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",h=ul({path:d.relativePath,caseSensitive:d.caseSensitive,end:u},p),y=d.route;if(!h)return null;Object.assign(i,h.params),a.push({params:i,pathname:Fn([s,h.pathname]),pathnameBase:My(Fn([s,h.pathnameBase])),route:y}),h.pathnameBase!=="/"&&(s=Fn([s,h.pathnameBase]))}return a}function ul(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ky(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((u,p,h)=>{let{paramName:y,isOptional:x}=p;if(y==="*"){let f=c[h]||"";a=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}const g=c[h];return x&&!g?u[y]=void 0:u[y]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:a,pattern:e}}function ky(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Rt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,c,d)=>(r.push({paramName:c,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 Py(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Rt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function qn(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 Oy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Iy=e=>Oy.test(e);function Ny(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Fr(e):e,s;if(n)if(Iy(n))s=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),Rt(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?s=lp(n.substring(1),"/"):s=lp(n,t)}else s=t;return{pathname:s,search:Dy(r),hash:_y(i)}}function lp(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 fl(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 Fy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function cp(e,t){let n=Fy(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function dp(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Fr(e):(i=vo({},e),$e(!i.pathname||!i.pathname.includes("?"),fl("?","pathname","search",i)),$e(!i.pathname||!i.pathname.includes("#"),fl("#","pathname","hash",i)),$e(!i.search||!i.search.includes("#"),fl("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,c;if(a==null)c=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let y=a.split("/");for(;y[0]==="..";)y.shift(),h-=1;i.pathname=y.join("/")}c=h>=0?t[h]:"/"}let d=Ny(i,c),u=a&&a!=="/"&&a.endsWith("/"),p=(s||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(u||p)&&(d.pathname+="/"),d}const Fn=e=>e.join("/").replace(/\/\/+/g,"/"),My=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Dy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_y=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function $y(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const pp=["post","put","patch","delete"];new Set(pp);const zy=["get",...pp];new Set(zy);function wo(){return wo=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},wo.apply(this,arguments)}const Co=E.createContext(null);process.env.NODE_ENV!=="production"&&(Co.displayName="DataRouter");const hl=E.createContext(null);process.env.NODE_ENV!=="production"&&(hl.displayName="DataRouterState");const Ly=E.createContext(null);process.env.NODE_ENV!=="production"&&(Ly.displayName="Await");const rn=E.createContext(null);process.env.NODE_ENV!=="production"&&(rn.displayName="Navigation");const Eo=E.createContext(null);process.env.NODE_ENV!=="production"&&(Eo.displayName="Location");const Mn=E.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(Mn.displayName="Route");const gl=E.createContext(null);process.env.NODE_ENV!=="production"&&(gl.displayName="RouteError");function By(e,t){let{relative:n}=t===void 0?{}:t;To()||(process.env.NODE_ENV!=="production"?$e(!1,"useHref() may be used only in the context of a <Router> component."):$e(!1));let{basename:r,navigator:i}=E.useContext(rn),{hash:s,pathname:a,search:c}=Ao(e,{relative:n}),d=a;return r!=="/"&&(d=a==="/"?r:Fn([r,a])),i.createHref({pathname:d,search:c,hash:s})}function To(){return E.useContext(Eo)!=null}function Pt(){return To()||(process.env.NODE_ENV!=="production"?$e(!1,"useLocation() may be used only in the context of a <Router> component."):$e(!1)),E.useContext(Eo).location}const up="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fp(e){E.useContext(rn).static||E.useLayoutEffect(e)}function Ot(){let{isDataRoute:e}=E.useContext(Mn);return e?Zy():jy()}function jy(){To()||(process.env.NODE_ENV!=="production"?$e(!1,"useNavigate() may be used only in the context of a <Router> component."):$e(!1));let e=E.useContext(Co),{basename:t,future:n,navigator:r}=E.useContext(rn),{matches:i}=E.useContext(Mn),{pathname:s}=Pt(),a=JSON.stringify(cp(i,n.v7_relativeSplatPath)),c=E.useRef(!1);return fp(()=>{c.current=!0}),E.useCallback(function(u,p){if(p===void 0&&(p={}),process.env.NODE_ENV!=="production"&&Rt(c.current,up),!c.current)return;if(typeof u=="number"){r.go(u);return}let h=dp(u,JSON.parse(a),s,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Fn([t,h.pathname])),(p.replace?r.replace:r.push)(h,p.state,p)},[t,r,a,s,e])}function Ao(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(rn),{matches:i}=E.useContext(Mn),{pathname:s}=Pt(),a=JSON.stringify(cp(i,r.v7_relativeSplatPath));return E.useMemo(()=>dp(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function Wy(e,t){return Vy(e,t)}function Vy(e,t,n,r){To()||(process.env.NODE_ENV!=="production"?$e(!1,"useRoutes() may be used only in the context of a <Router> component."):$e(!1));let{navigator:i}=E.useContext(rn),{matches:s}=E.useContext(Mn),a=s[s.length-1],c=a?a.params:{},d=a?a.pathname:"/",u=a?a.pathnameBase:"/",p=a&&a.route;if(process.env.NODE_ENV!=="production"){let C=p&&p.path||"";mp(d,!p||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(l,z){typeof exports=="object"&&typeof module<"u"?module.exports=z(require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-dom"],z):(l=typeof globalThis<"u"?globalThis:l||self,l.ProductApp=z(l["react/jsx-runtime"],l.React,l.ReactDOM))})(this,(function(l,z,bo){"use strict";var dl=typeof document<"u"?document.currentScript:null;function tp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=tp(z),py=tp(bo);function xo(){return xo=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},xo.apply(this,arguments)}var Hn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Hn||(Hn={}));const np="popstate";function uy(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:a,hash:c}=r.location;return pl("",{pathname:s,search:a,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:vo(i)}return hy(t,n,null,e)}function $e(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fy(){return Math.random().toString(36).substr(2,8)}function rp(e,t){return{usr:e.state,key:e.key,idx:t}}function pl(e,t,n,r){return n===void 0&&(n=null),xo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Fr(t):t,{state:n,key:t&&t.key||r||fy()})}function vo(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 Fr(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 hy(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,c=Hn.Pop,d=null,u=p();u==null&&(u=0,a.replaceState(xo({},a.state,{idx:u}),""));function p(){return(a.state||{idx:null}).idx}function h(){c=Hn.Pop;let m=p(),S=m==null?null:m-u;u=m,d&&d({action:c,location:f.location,delta:S})}function y(m,S){c=Hn.Push;let C=pl(f.location,m,S);u=p()+1;let x=rp(C,u),v=f.createHref(C);try{a.pushState(x,"",v)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(v)}s&&d&&d({action:c,location:f.location,delta:1})}function b(m,S){c=Hn.Replace;let C=pl(f.location,m,S);u=p();let x=rp(C,u),v=f.createHref(C);a.replaceState(x,"",v),s&&d&&d({action:c,location:f.location,delta:0})}function g(m){let S=i.location.origin!=="null"?i.location.origin:i.location.href,C=typeof m=="string"?m:vo(m);return C=C.replace(/ $/,"%20"),$e(S,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,S)}let f={get action(){return c},get location(){return e(i,a)},listen(m){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(np,h),d=m,()=>{i.removeEventListener(np,h),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:b,go(m){return a.go(m)}};return f}var op;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(op||(op={}));function gy(e,t,n){return n===void 0&&(n="/"),my(e,t,n)}function my(e,t,n,r){let i=typeof t=="string"?Fr(t):t,s=Rn(i.pathname||"/",n);if(s==null)return null;let a=ip(e);yy(a);let c=null;for(let d=0;c==null&&d<a.length;++d){let u=Py(s);c=Ay(a[d],u)}return c}function ip(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,a,c)=>{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};d.relativePath.startsWith("/")&&($e(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 u=Mn([r,d.relativePath]),p=n.concat(d);s.children&&s.children.length>0&&($e(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ip(s.children,t,p,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:Ey(u,s.index),routesMeta:p})};return e.forEach((s,a)=>{var c;if(s.path===""||!((c=s.path)!=null&&c.includes("?")))i(s,a);else for(let d of sp(s.path))i(s,a,d)}),t}function sp(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=sp(r.join("/")),c=[];return c.push(...a.map(d=>d===""?s:[s,d].join("/"))),i&&c.push(...a),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function yy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ty(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const by=/^:[\w-]+$/,xy=3,vy=2,Sy=1,wy=10,Cy=-2,ap=e=>e==="*";function Ey(e,t){let n=e.split("/"),r=n.length;return n.some(ap)&&(r+=Cy),t&&(r+=vy),n.filter(i=>!ap(i)).reduce((i,s)=>i+(by.test(s)?xy:s===""?Sy:wy),r)}function Ty(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 Ay(e,t,n){let{routesMeta:r}=e,i={},s="/",a=[];for(let c=0;c<r.length;++c){let d=r[c],u=c===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",h=ul({path:d.relativePath,caseSensitive:d.caseSensitive,end:u},p),y=d.route;if(!h)return null;Object.assign(i,h.params),a.push({params:i,pathname:Mn([s,h.pathname]),pathnameBase:My(Mn([s,h.pathnameBase])),route:y}),h.pathnameBase!=="/"&&(s=Mn([s,h.pathnameBase]))}return a}function ul(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ky(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((u,p,h)=>{let{paramName:y,isOptional:b}=p;if(y==="*"){let f=c[h]||"";a=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}const g=c[h];return b&&!g?u[y]=void 0:u[y]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:a,pattern:e}}function ky(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),qt(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,c,d)=>(r.push({paramName:c,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 Py(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return qt(!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 Rn(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 Oy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Iy=e=>Oy.test(e);function Ny(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Fr(e):e,s;if(n)if(Iy(n))s=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),qt(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?s=lp(n.substring(1),"/"):s=lp(n,t)}else s=t;return{pathname:s,search:Dy(r),hash:_y(i)}}function lp(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 fl(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 Fy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function cp(e,t){let n=Fy(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function dp(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Fr(e):(i=xo({},e),$e(!i.pathname||!i.pathname.includes("?"),fl("?","pathname","search",i)),$e(!i.pathname||!i.pathname.includes("#"),fl("#","pathname","hash",i)),$e(!i.search||!i.search.includes("#"),fl("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,c;if(a==null)c=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let y=a.split("/");for(;y[0]==="..";)y.shift(),h-=1;i.pathname=y.join("/")}c=h>=0?t[h]:"/"}let d=Ny(i,c),u=a&&a!=="/"&&a.endsWith("/"),p=(s||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(u||p)&&(d.pathname+="/"),d}const Mn=e=>e.join("/").replace(/\/\/+/g,"/"),My=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Dy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_y=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function $y(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const pp=["post","put","patch","delete"];new Set(pp);const zy=["get",...pp];new Set(zy);function So(){return So=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},So.apply(this,arguments)}const wo=E.createContext(null);process.env.NODE_ENV!=="production"&&(wo.displayName="DataRouter");const hl=E.createContext(null);process.env.NODE_ENV!=="production"&&(hl.displayName="DataRouterState");const Ly=E.createContext(null);process.env.NODE_ENV!=="production"&&(Ly.displayName="Await");const rn=E.createContext(null);process.env.NODE_ENV!=="production"&&(rn.displayName="Navigation");const Co=E.createContext(null);process.env.NODE_ENV!=="production"&&(Co.displayName="Location");const un=E.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(un.displayName="Route");const gl=E.createContext(null);process.env.NODE_ENV!=="production"&&(gl.displayName="RouteError");function By(e,t){let{relative:n}=t===void 0?{}:t;Eo()||(process.env.NODE_ENV!=="production"?$e(!1,"useHref() may be used only in the context of a <Router> component."):$e(!1));let{basename:r,navigator:i}=E.useContext(rn),{hash:s,pathname:a,search:c}=To(e,{relative:n}),d=a;return r!=="/"&&(d=a==="/"?r:Mn([r,a])),i.createHref({pathname:d,search:c,hash:s})}function Eo(){return E.useContext(Co)!=null}function Et(){return Eo()||(process.env.NODE_ENV!=="production"?$e(!1,"useLocation() may be used only in the context of a <Router> component."):$e(!1)),E.useContext(Co).location}const up="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fp(e){E.useContext(rn).static||E.useLayoutEffect(e)}function It(){let{isDataRoute:e}=E.useContext(un);return e?tb():jy()}function jy(){Eo()||(process.env.NODE_ENV!=="production"?$e(!1,"useNavigate() may be used only in the context of a <Router> component."):$e(!1));let e=E.useContext(wo),{basename:t,future:n,navigator:r}=E.useContext(rn),{matches:i}=E.useContext(un),{pathname:s}=Et(),a=JSON.stringify(cp(i,n.v7_relativeSplatPath)),c=E.useRef(!1);return fp(()=>{c.current=!0}),E.useCallback(function(u,p){if(p===void 0&&(p={}),process.env.NODE_ENV!=="production"&&qt(c.current,up),!c.current)return;if(typeof u=="number"){r.go(u);return}let h=dp(u,JSON.parse(a),s,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Mn([t,h.pathname])),(p.replace?r.replace:r.push)(h,p.state,p)},[t,r,a,s,e])}const Wy=E.createContext(null);function Vy(e){let t=E.useContext(un).outlet;return t&&E.createElement(Wy.Provider,{value:e},t)}function To(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(rn),{matches:i}=E.useContext(un),{pathname:s}=Et(),a=JSON.stringify(cp(i,r.v7_relativeSplatPath));return E.useMemo(()=>dp(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function Uy(e,t){return Hy(e,t)}function Hy(e,t,n,r){Eo()||(process.env.NODE_ENV!=="production"?$e(!1,"useRoutes() may be used only in the context of a <Router> component."):$e(!1));let{navigator:i}=E.useContext(rn),{matches:s}=E.useContext(un),a=s[s.length-1],c=a?a.params:{},d=a?a.pathname:"/",u=a?a.pathnameBase:"/",p=a&&a.route;if(process.env.NODE_ENV!=="production"){let C=p&&p.path||"";mp(d,!p||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 h=Pt(),y;if(t){var x;let C=typeof t=="string"?Fr(t):t;u==="/"||(x=C.pathname)!=null&&x.startsWith(u)||(process.env.NODE_ENV!=="production"?$e(!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 "'+u+'" ')+('but pathname "'+C.pathname+'" was given in the `location` prop.')):$e(!1)),y=C}else y=h;let g=y.pathname||"/",f=g;if(u!=="/"){let C=u.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(C.length).join("/")}let m=gy(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&Rt(p||m!=null,'No routes matched location "'+y.pathname+y.search+y.hash+'" '),process.env.NODE_ENV!=="production"&&Rt(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,'Matched leaf route at location "'+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=Yy(m&&m.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Fn([u,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Fn([u,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,n,r);return t&&S?E.createElement(Eo.Provider,{value:{location:wo({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:Rn.Pop}},S):S}function Uy(){let e=Qy(),t=$y(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route."))),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:i},n):null,a)}const Hy=E.createElement(Uy,null);class Ry extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(Mn.Provider,{value:this.props.routeContext},E.createElement(gl.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qy(e){let{routeContext:t,match:n,children:r}=e,i=E.useContext(Co);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Mn.Provider,{value:t},r)}function Yy(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,c=(i=n)==null?void 0:i.errors;if(c!=null){let p=a.findIndex(h=>h.route.id&&c?.[h.route.id]!==void 0);p>=0||(process.env.NODE_ENV!=="production"?$e(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):$e(!1)),a=a.slice(0,Math.min(a.length,p+1))}let d=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<a.length;p++){let h=a[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=p),h.route.id){let{loaderData:y,errors:x}=n,g=h.route.loader&&y[h.route.id]===void 0&&(!x||x[h.route.id]===void 0);if(h.route.lazy||g){d=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((p,h,y)=>{let x,g=!1,f=null,m=null;n&&(x=c&&h.route.id?c[h.route.id]:void 0,f=h.route.errorElement||Hy,d&&(u<0&&y===0?(mp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):u===y&&(g=!0,m=h.route.hydrateFallbackElement||null)));let S=t.concat(a.slice(0,y+1)),C=()=>{let b;return x?b=f:g?b=m:h.route.Component?b=E.createElement(h.route.Component,null):h.route.element?b=h.route.element:b=p,E.createElement(qy,{match:h,routeContext:{outlet:p,matches:S,isDataRoute:n!=null},children:b})};return n&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?E.createElement(Ry,{location:n.location,revalidation:n.revalidation,component:f,error:x,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}var hp=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(hp||{}),ko=(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})(ko||{});function ml(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Ky(e){let t=E.useContext(Co);return t||(process.env.NODE_ENV!=="production"?$e(!1,ml(e)):$e(!1)),t}function Gy(e){let t=E.useContext(hl);return t||(process.env.NODE_ENV!=="production"?$e(!1,ml(e)):$e(!1)),t}function Xy(e){let t=E.useContext(Mn);return t||(process.env.NODE_ENV!=="production"?$e(!1,ml(e)):$e(!1)),t}function yl(e){let t=Xy(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?$e(!1,e+' can only be used on routes that contain a unique "id"'):$e(!1)),n.route.id}function Jy(){return yl(ko.UseRouteId)}function Qy(){var e;let t=E.useContext(gl),n=Gy(ko.UseRouteError),r=yl(ko.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Zy(){let{router:e}=Ky(hp.UseNavigateStable),t=yl(ko.UseNavigateStable),n=E.useRef(!1);return fp(()=>{n.current=!0}),E.useCallback(function(i,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&Rt(n.current,up),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,wo({fromRouteId:t},s)))},[e,t])}const gp={};function mp(e,t,n){!t&&!gp[e]&&(gp[e]=!0,process.env.NODE_ENV!=="production"&&Rt(!1,n))}const yp={};function eb(e,t){process.env.NODE_ENV!=="production"&&!yp[t]&&(yp[t]=!0,console.warn(t))}const bp=(e,t,n)=>eb(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function tb(e,t){e?.v7_startTransition===void 0&&bp("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&&bp("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Mr(e){process.env.NODE_ENV!=="production"?$e(!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>."):$e(!1)}function nb(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Rn.Pop,navigator:s,static:a=!1,future:c}=e;To()&&(process.env.NODE_ENV!=="production"?$e(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):$e(!1));let d=t.replace(/^\/*/,"/"),u=E.useMemo(()=>({basename:d,navigator:s,static:a,future:wo({v7_relativeSplatPath:!1},c)}),[d,c,s,a]);typeof r=="string"&&(r=Fr(r));let{pathname:p="/",search:h="",hash:y="",state:x=null,key:g="default"}=r,f=E.useMemo(()=>{let m=qn(p,d);return m==null?null:{location:{pathname:m,search:h,hash:y,state:x,key:g},navigationType:i}},[d,p,h,y,x,g,i]);return process.env.NODE_ENV!=="production"&&Rt(f!=null,'<Router basename="'+d+'"> is not able to match the URL '+('"'+p+h+y+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:E.createElement(rn.Provider,{value:u},E.createElement(Eo.Provider,{children:n,value:f}))}function rb(e){let{children:t,location:n}=e;return Wy(bl(t),n)}new Promise(()=>{});function bl(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,i)=>{if(!E.isValidElement(r))return;let s=[...t,i];if(r.type===E.Fragment){n.push.apply(n,bl(r.props.children,s));return}r.type!==Mr&&(process.env.NODE_ENV!=="production"?$e(!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>"):$e(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?$e(!1,"An index route cannot have child routes."):$e(!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=bl(r.props.children,s)),n.push(a)}),n}function Dr(){return Dr=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},Dr.apply(this,arguments)}function xl(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 Ji="get",Qi="application/x-www-form-urlencoded";function Zi(e){return e!=null&&typeof e.tagName=="string"}function ob(e){return Zi(e)&&e.tagName.toLowerCase()==="button"}function ib(e){return Zi(e)&&e.tagName.toLowerCase()==="form"}function sb(e){return Zi(e)&&e.tagName.toLowerCase()==="input"}function ab(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lb(e,t){return e.button===0&&(!t||t==="_self")&&!ab(e)}function vl(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 cb(e,t){let n=vl(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}let es=null;function db(){if(es===null)try{new FormData(document.createElement("form"),0),es=!1}catch{es=!0}return es}const pb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Sl(e){return e!=null&&!pb.has(e)?(process.env.NODE_ENV!=="production"&&Rt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Qi+'"')),null):e}function ub(e,t){let n,r,i,s,a;if(ib(e)){let c=e.getAttribute("action");r=c?qn(c,t):null,n=e.getAttribute("method")||Ji,i=Sl(e.getAttribute("enctype"))||Qi,s=new FormData(e)}else if(ob(e)||sb(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?qn(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Ji,i=Sl(e.getAttribute("formenctype"))||Sl(c.getAttribute("enctype"))||Qi,s=new FormData(c,e),!db()){let{name:u,type:p,value:h}=e;if(p==="image"){let y=u?u+".":"";s.append(y+"x","0"),s.append(y+"y","0")}else u&&s.append(u,h)}}else{if(Zi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ji,r=null,i=Qi,a=e}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}const fb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],hb=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],gb=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],mb="6";try{window.__reactRouterVersion=mb}catch{}const xp=E.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(xp.displayName="ViewTransition");const yb=E.createContext(new Map);process.env.NODE_ENV!=="production"&&(yb.displayName="Fetchers");const vp=E["startTransition"];function bb(e){let{basename:t,children:n,future:r,window:i}=e,s=E.useRef();s.current==null&&(s.current=uy({window:i,v5Compat:!0}));let a=s.current,[c,d]=E.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},p=E.useCallback(h=>{u&&vp?vp(()=>d(h)):d(h)},[d,u]);return E.useLayoutEffect(()=>a.listen(p),[a,p]),E.useEffect(()=>tb(r),[r]),E.createElement(nb,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:a,future:r})}process.env.NODE_ENV;const xb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sp=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:a,state:c,target:d,to:u,preventScrollReset:p,viewTransition:h}=t,y=xl(t,fb),{basename:x}=E.useContext(rn),g,f=!1;if(typeof u=="string"&&vb.test(u)&&(g=u,xb))try{let b=new URL(window.location.href),v=u.startsWith("//")?new URL(b.protocol+u):new URL(u),w=qn(v.pathname,x);v.origin===b.origin&&w!=null?u=w+v.search+v.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&Rt(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let m=By(u,{relative:i}),S=Eb(u,{replace:a,state:c,target:d,preventScrollReset:p,relative:i,viewTransition:h});function C(b){r&&r(b),b.defaultPrevented||S(b)}return E.createElement("a",Dr({},y,{href:g||m,onClick:f||s?r:C,ref:n,target:d}))});process.env.NODE_ENV!=="production"&&(Sp.displayName="Link");const Sb=E.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:a=!1,style:c,to:d,viewTransition:u,children:p}=t,h=xl(t,hb),y=Ao(d,{relative:h.relative}),x=Pt(),g=E.useContext(hl),{navigator:f,basename:m}=E.useContext(rn),S=g!=null&&Nb(y)&&u===!0,C=f.encodeLocation?f.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=qn(v,m)||v);const w=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let A=b===C||!a&&b.startsWith(C)&&b.charAt(w)==="/",I=v!=null&&(v===C||!a&&v.startsWith(C)&&v.charAt(C.length)==="/"),z={isActive:A,isPending:I,isTransitioning:S},M=A?r:void 0,L;typeof s=="function"?L=s(z):L=[s,A?"active":null,I?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let O=typeof c=="function"?c(z):c;return E.createElement(Sp,Dr({},h,{"aria-current":M,className:L,ref:n,style:O,to:d,viewTransition:u}),typeof p=="function"?p(z):p)});process.env.NODE_ENV!=="production"&&(Sb.displayName="NavLink");const wb=E.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:a,method:c=Ji,action:d,onSubmit:u,relative:p,preventScrollReset:h,viewTransition:y}=e,x=xl(e,gb),g=Ob(),f=Ib(d,{relative:p}),m=c.toLowerCase()==="get"?"get":"post",S=C=>{if(u&&u(C),C.defaultPrevented)return;C.preventDefault();let b=C.nativeEvent.submitter,v=b?.getAttribute("formmethod")||c;g(b||C.currentTarget,{fetcherKey:n,method:v,navigate:r,replace:s,state:a,relative:p,preventScrollReset:h,viewTransition:y})};return E.createElement("form",Dr({ref:t,method:m,action:f,onSubmit:i?u:S},x))});process.env.NODE_ENV!=="production"&&(wb.displayName="Form"),process.env.NODE_ENV;var ts;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ts||(ts={}));var wp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wp||(wp={}));function Cb(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Cp(e){let t=E.useContext(Co);return t||(process.env.NODE_ENV!=="production"?$e(!1,Cb(e)):$e(!1)),t}function Eb(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:a,viewTransition:c}=t===void 0?{}:t,d=Ot(),u=Pt(),p=Ao(e,{relative:a});return E.useCallback(h=>{if(lb(h,n)){h.preventDefault();let y=r!==void 0?r:So(u)===So(p);d(e,{replace:y,state:i,preventScrollReset:s,relative:a,viewTransition:c})}},[u,d,p,r,i,n,e,s,a,c])}function Tb(e){process.env.NODE_ENV!=="production"&&Rt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=E.useRef(vl(e)),n=E.useRef(!1),r=Pt(),i=E.useMemo(()=>cb(r.search,n.current?null:t.current),[r.search]),s=Ot(),a=E.useCallback((c,d)=>{const u=vl(typeof c=="function"?c(i):c);n.current=!0,s("?"+u,d)},[s,i]);return[i,a]}function Ab(){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 kb=0,Pb=()=>"__"+String(++kb)+"__";function Ob(){let{router:e}=Cp(ts.UseSubmit),{basename:t}=E.useContext(rn),n=Jy();return E.useCallback(function(r,i){i===void 0&&(i={}),Ab();let{action:s,method:a,encType:c,formData:d,body:u}=ub(r,t);if(i.navigate===!1){let p=i.fetcherKey||Pb();e.fetch(p,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:u,formMethod:i.method||a,formEncType:i.encType||c,flushSync:i.flushSync})}else e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:u,formMethod:i.method||a,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function Ib(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=E.useContext(rn),i=E.useContext(Mn);i||(process.env.NODE_ENV!=="production"?$e(!1,"useFormAction must be used inside a RouteContext"):$e(!1));let[s]=i.matches.slice(-1),a=Dr({},Ao(e||".",{relative:n})),c=Pt();if(e==null){a.search=c.search;let d=new URLSearchParams(a.search),u=d.getAll("index");if(u.some(h=>h==="")){d.delete("index"),u.filter(y=>y).forEach(y=>d.append("index",y));let h=d.toString();a.search=h?"?"+h:""}}return(!e||e===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Fn([r,a.pathname])),So(a)}function Nb(e,t){t===void 0&&(t={});let n=E.useContext(xp);n==null&&(process.env.NODE_ENV!=="production"?$e(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):$e(!1));let{basename:r}=Cp(ts.useViewTransitionState),i=Ao(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=qn(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=qn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ul(i.pathname,a)!=null||ul(i.pathname,s)!=null}function Ep(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ns={exports:{}},wl={};var Tp;function Fb(){if(Tp)return wl;Tp=1;var e=j;function t(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,c=e.useDebugValue;return wl.useSyncExternalStoreWithSelector=function(d,u,p,h,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=h(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 I=h(w);return y!==void 0&&y(A,I)?(C=w,A):(C=w,b=I)}var S=!1,C,b,v=p===void 0?null:p;return[function(){return m(u())},v===null?void 0:function(){return m(v())}]},[u,p,h,y]);var f=r(d,x[0],x[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),c(f),f},wl}var Cl={};var Ap;function Mb(){return Ap||(Ap=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=j,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,c=t.useDebugValue;Cl.useSyncExternalStoreWithSelector=function(d,u,p,h,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=h(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 I=h(w);return y!==void 0&&y(A,I)?(C=w,A):(C=w,b=I)}var S=!1,C,b,v=p===void 0?null:p;return[function(){return m(u())},v===null?void 0:function(){return m(v())}]},[u,p,h,y]);var f=r(d,x[0],x[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),c(f),f},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Cl}var kp;function Db(){return kp||(kp=1,process.env.NODE_ENV==="production"?ns.exports=Fb():ns.exports=Mb()),ns.exports}var _b=Db();function $b(e){e()}function zb(){let e=null,t=null;return{clear(){e=null,t=null},notify(){$b(()=>{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 Pp={notify(){},get:()=>[]};function Lb(e,t){let n,r=Pp,i=0,s=!1;function a(f){p();const m=r.subscribe(f);let S=!1;return()=>{S||(S=!0,m(),h())}}function c(){r.notify()}function d(){g.onStateChange&&g.onStateChange()}function u(){return s}function p(){i++,n||(n=e.subscribe(d),r=zb())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Pp)}function y(){s||(s=!0,p())}function x(){s&&(s=!1,h())}const g={addNestedSub:a,notifyNestedSubs:c,handleChangeWrapper:d,isSubscribed:u,trySubscribe:y,tryUnsubscribe:x,getListeners:()=>r};return g}var Bb=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jb=Bb(),Wb=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Vb=Wb(),Ub=()=>jb||Vb?E.useLayoutEffect:E.useEffect,Hb=Ub(),Rb=Symbol.for("react-redux-context"),qb=typeof globalThis<"u"?globalThis:{};function Yb(){if(!E.createContext)return{};const e=qb[Rb]??=new Map;let t=e.get(E.createContext);return t||(t=E.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(E.createContext,t)),t}var Yn=Yb();function Kb(e){const{children:t,context:n,serverState:r,store:i}=e,s=E.useMemo(()=>{const d=Lb(i),u={store:i,subscription:d,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return u;{const{identityFunctionCheck:p="once",stabilityCheck:h="once"}=e;return Object.assign(u,{stabilityCheck:h,identityFunctionCheck:p})}},[i,r]),a=E.useMemo(()=>i.getState(),[i]);Hb(()=>{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 c=n||Yn;return E.createElement(c.Provider,{value:s},t)}var Gb=Kb;function El(e=Yn){return function(){const n=E.useContext(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var Op=El();function Ip(e=Yn){const t=e===Yn?Op:El(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Xb=Ip();function Jb(e=Yn){const t=e===Yn?Xb:Ip(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var on=Jb(),Qb=(e,t)=>e===t;function Zb(e=Yn){const t=e===Yn?Op:El(e),n=(r,i={})=>{const{equalityFn:s=Qb}=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:c,subscription:d,getServerState:u}=a,p=E.useRef(!0),h=E.useCallback({[r.name](x){const g=r(x);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof i=="function"?{}:i,{identityFunctionCheck:m,stabilityCheck:S}=a,{identityFunctionCheck:C,stabilityCheck:b}={stabilityCheck:S,identityFunctionCheck:m,...f};if(b==="always"||b==="once"&&p.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
|
-
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:
|
|
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})}p.current&&(p.current=!1)}return g}}[r.name],[r]),y=_b.useSyncExternalStoreWithSelector(d.addNestedSub,c.getState,u||c.getState,h,s);return E.useDebugValue(y),y};return Object.assign(n,{withTypes:()=>n}),n}var Xe=Zb(),Po={},Np;function e0(){if(Np)return Po;Np=1,Po.__esModule=!0,Po.PersistGate=void 0;var e=t(j);function t(x){if(x&&x.__esModule)return x;var g={};if(x!=null){for(var f in x)if(Object.prototype.hasOwnProperty.call(x,f)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(x,f):{};m.get||m.set?Object.defineProperty(g,f,m):g[f]=x[f]}}return g.default=x,g}function n(x){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(f){return typeof f}:n=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},n(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 f=0;f<g.length;f++){var m=g[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(x,m.key,m)}}function s(x,g,f){return g&&i(x.prototype,g),x}function a(x,g){return g&&(n(g)==="object"||typeof g=="function")?g:d(x)}function c(x){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},c(x)}function d(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function u(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&&p(x,g)}function p(x,g){return p=Object.setPrototypeOf||function(m,S){return m.__proto__=S,m},p(x,g)}function h(x,g,f){return g in x?Object.defineProperty(x,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):x[g]=f,x}var y=(function(x){u(g,x);function g(){var f,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,(f=c(g)).call.apply(f,[this].concat(C))),h(d(m),"state",{bootstrapped:!1}),h(d(m),"_unsubscribe",void 0),h(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 Po.PersistGate=y,h(y,"defaultProps",{children:null,loading:null}),Po}var t0=e0();function vt(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 n0=typeof Symbol=="function"&&Symbol.observable||"@@observable",Fp=n0,Tl=()=>Math.random().toString(36).substring(7).split("").join("."),r0={INIT:`@@redux/INIT${Tl()}`,REPLACE:`@@redux/REPLACE${Tl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Tl()}`},lr=r0;function Oo(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 o0(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(a0(e))return"date";if(s0(e))return"error";const n=i0(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 i0(e){return typeof e.constructor=="function"?e.constructor.name:null}function s0(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function a0(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Kn(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=o0(e)),t}function Al(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?vt(2):`Expected the root reducer to be a function. Instead, received: '${Kn(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?vt(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"?vt(1):`Expected the enhancer to be a function. Instead, received: '${Kn(n)}'`);return n(Al)(e,t)}let r=e,i=t,s=new Map,a=s,c=0,d=!1;function u(){a===s&&(a=new Map,s.forEach((m,S)=>{a.set(S,m)}))}function p(){if(d)throw new Error(process.env.NODE_ENV==="production"?vt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function h(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?vt(4):`Expected the listener to be a function. Instead, received: '${Kn(m)}'`);if(d)throw new Error(process.env.NODE_ENV==="production"?vt(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;u();const C=c++;return a.set(C,m),function(){if(S){if(d)throw new Error(process.env.NODE_ENV==="production"?vt(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,u(),a.delete(C),s=null}}}function y(m){if(!Oo(m))throw new Error(process.env.NODE_ENV==="production"?vt(7):`Actions must be plain objects. Instead, the actual type was: '${Kn(m)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof m.type>"u")throw new Error(process.env.NODE_ENV==="production"?vt(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"?vt(17):`Action "type" property must be a string. Instead, the actual type was: '${Kn(m.type)}'. Value was: '${m.type}' (stringified)`);if(d)throw new Error(process.env.NODE_ENV==="production"?vt(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"?vt(10):`Expected the nextReducer to be a function. Instead, received: '${Kn(m)}`);r=m,y({type:lr.REPLACE})}function g(){const m=h;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(process.env.NODE_ENV==="production"?vt(11):`Expected the observer to be an object. Instead, received: '${Kn(S)}'`);function C(){const v=S;v.next&&v.next(p())}return C(),{unsubscribe:m(C)}},[Fp](){return this}}}return y({type:lr.INIT}),{dispatch:y,subscribe:h,getState:p,replaceReducer:x,[Fp]:g}}function Mp(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function l0(e,t,n,r){const i=Object.keys(t),s=n&&n.type===lr.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(!Oo(e))return`The ${s} has unexpected type of "${Kn(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(e).filter(c=>!t.hasOwnProperty(c)&&!r[c]);if(a.forEach(c=>{r[c]=!0}),!(n&&n.type===lr.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 c0(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:lr.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?vt(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:lr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?vt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${lr.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 Dp(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const c=t[a];process.env.NODE_ENV!=="production"&&typeof e[c]>"u"&&Mp(`No reducer provided for key "${c}"`),typeof e[c]=="function"&&(n[c]=e[c])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let s;try{c0(n)}catch(a){s=a}return function(c={},d){if(s)throw s;if(process.env.NODE_ENV!=="production"){const h=l0(c,n,d,i);h&&Mp(h)}let u=!1;const p={};for(let h=0;h<r.length;h++){const y=r[h],x=n[y],g=c[y],f=x(g,d);if(typeof f>"u"){const m=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?vt(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.`)}p[y]=f,u=u||f!==g}return u=u||r.length!==Object.keys(c).length,u?p:c}}function rs(...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"?vt(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,...u)=>s(d,...u)},c=e.map(d=>d(a));return s=rs(...c)(i.dispatch),{...i,dispatch:s}}}function _p(e){return Oo(e)&&"type"in e&&typeof e.type=="string"}var $p=Symbol.for("immer-nothing"),zp=Symbol.for("immer-draftable"),It=Symbol.for("immer-state"),p0=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=p0[e],r=cr(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 Wt=Object,_r=Wt.getPrototypeOf,os="constructor",is="prototype",kl="configurable",ss="enumerable",as="writable",Io="value",Dn=e=>!!e&&!!e[It];function sn(e){return e?Bp(e)||cs(e)||!!e[zp]||!!e[os]?.[zp]||ds(e)||ps(e):!1}var u0=Wt[is][os].toString(),Lp=new WeakMap;function Bp(e){if(!e||!Ol(e))return!1;const t=_r(e);if(t===null||t===Wt[is])return!0;const n=Wt.hasOwnProperty.call(t,os)&&t[os];if(n===Object)return!0;if(!cr(n))return!1;let r=Lp.get(n);return r===void 0&&(r=Function.toString.call(n),Lp.set(n,r)),r===u0}function No(e,t,n=!0){Fo(e)===0?(n?Reflect.ownKeys(e):Wt.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Fo(e){const t=e[It];return t?t.type_:cs(e)?1:ds(e)?2:ps(e)?3:0}var jp=(e,t,n=Fo(e))=>n===2?e.has(t):Wt[is].hasOwnProperty.call(e,t),Pl=(e,t,n=Fo(e))=>n===2?e.get(t):e[t],ls=(e,t,n,r=Fo(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function f0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var cs=Array.isArray,ds=e=>e instanceof Map,ps=e=>e instanceof Set,Ol=e=>typeof e=="object",cr=e=>typeof e=="function",Il=e=>typeof e=="boolean",_n=e=>e.copy_||e.base_,Nl=e=>e.modified_?e.copy_:e.base_;function Fl(e,t){if(ds(e))return new Map(e);if(ps(e))return new Set(e);if(cs(e))return Array[is].slice.call(e);const n=Bp(e);if(t===!0||t==="class_only"&&!n){const r=Wt.getOwnPropertyDescriptors(e);delete r[It];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const a=i[s],c=r[a];c[as]===!1&&(c[as]=!0,c[kl]=!0),(c.get||c.set)&&(r[a]={[kl]:!0,[as]:!0,[ss]:c[ss],[Io]:e[a]})}return Wt.create(_r(e),r)}else{const r=_r(e);if(r!==null&&n)return{...e};const i=Wt.create(r);return Wt.assign(i,e)}}function Ml(e,t=!1){return fs(e)||Dn(e)||!sn(e)||(Fo(e)>1&&Wt.defineProperties(e,{set:us,add:us,clear:us,delete:us}),Wt.freeze(e),t&&No(e,(n,r)=>{Ml(r,!0)},!1)),e}function h0(){jt(2)}var us={[Io]:h0};function fs(e){return e===null||!Ol(e)?!0:Wt.isFrozen(e)}var hs="MapSet",Dl="Patches",Wp={};function $r(e){const t=Wp[e];return t||jt(0,e),t}var g0=e=>!!Wp[e],Mo,Vp=()=>Mo,m0=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:g0(hs)?$r(hs):void 0});function Up(e,t){t&&(e.patchPlugin_=$r(Dl),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function _l(e){$l(e),e.drafts_.forEach(y0),e.drafts_=null}function $l(e){e===Mo&&(Mo=e.parent_)}var Hp=e=>Mo=m0(Mo,e);function y0(e){const t=e[It];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Rp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[It].modified_&&(_l(t),jt(4)),sn(e)&&(e=qp(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[It].base_,e,t)}else e=qp(t,n);return b0(t,e,!0),_l(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==$p?e:void 0}function qp(e,t){if(fs(t))return t;const n=t[It];if(!n)return zl(t,e.handledSet_,e);if(!gs(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);Gp(n,e)}return n.copy_}function b0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ml(t,n)}function Yp(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var gs=(e,t)=>e.scope_===t,x0=[];function Kp(e,t,n,r){const i=_n(e),s=e.type_;if(r!==void 0&&Pl(i,r,s)===t){ls(i,r,n,s);return}if(!e.draftLocations_){const c=e.draftLocations_=new Map;No(i,(d,u)=>{if(Dn(u)){const p=c.get(u)||[];p.push(d),c.set(u,p)}})}const a=e.draftLocations_.get(t)??x0;for(const c of a)ls(i,c,n,s)}function v0(e,t,n){e.callbacks_.push(function(i){const s=t;if(!s||!gs(s,i))return;i.mapSetPlugin_?.fixSetContents(s);const a=Nl(s);Kp(e,s.draft_??s,a,n),Gp(s,i)})}function Gp(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)}Yp(e)}}function S0(e,t,n){const{scope_:r}=e;if(Dn(n)){const i=n[It];gs(i,r)&&i.callbacks_.push(function(){ms(e);const a=Nl(i);Kp(e,n,a,t)})}else sn(n)&&e.callbacks_.push(function(){const s=_n(e);Pl(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&zl(Pl(e.copy_,t,e.type_),r.handledSet_,r)})}function zl(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Dn(e)||t.has(e)||!sn(e)||fs(e)||(t.add(e),No(e,(r,i)=>{if(Dn(i)){const s=i[It];if(gs(s,n)){const a=Nl(s);ls(e,r,a,e.type_),Yp(s)}}else sn(i)&&zl(i,t,n)})),e}function w0(e,t){const n=cs(e),r={type_:n?1:0,scope_:t?t.scope_:Vp(),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=Ll;n&&(i=[r],s=Do);const{revoke:a,proxy:c}=Proxy.revocable(i,s);return r.draft_=c,r.revoke_=a,[c,r]}var Ll={get(e,t){if(t===It)return e;const n=_n(e);if(!jp(n,t,e.type_))return C0(e,n,t);const r=n[t];if(e.finalized_||!sn(r))return r;if(r===Bl(e.base_,t)){ms(e);const i=e.type_===1?+t:t,s=Wl(e.scope_,r,e,i);return e.copy_[i]=s}return r},has(e,t){return t in _n(e)},ownKeys(e){return Reflect.ownKeys(_n(e))},set(e,t,n){const r=Xp(_n(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Bl(_n(e),t),s=i?.[It];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(f0(n,i)&&(n!==void 0||jp(e.base_,t,e.type_)))return!0;ms(e),jl(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),S0(e,t,n)),!0},deleteProperty(e,t){return ms(e),Bl(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),jl(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=_n(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[as]:!0,[kl]:e.type_!==1||t!=="length",[ss]:r[ss],[Io]:n[t]}},defineProperty(){jt(11)},getPrototypeOf(e){return _r(e.base_)},setPrototypeOf(){jt(12)}},Do={};No(Ll,(e,t)=>{Do[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}),Do.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&jt(13),Do.set.call(this,e,t,void 0)},Do.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&jt(14),Ll.set.call(this,e[0],t,n,e[0])};function Bl(e,t){const n=e[It];return(n?_n(n):e)[t]}function C0(e,t,n){const r=Xp(t,n);return r?Io in r?r[Io]:r.get?.call(e.draft_):void 0}function Xp(e,t){if(!(t in e))return;let n=_r(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=_r(n)}}function jl(e){e.modified_||(e.modified_=!0,e.parent_&&jl(e.parent_))}function ms(e){e.copy_||(e.assigned_=new Map,e.copy_=Fl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var E0=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(cr(t)&&!cr(n)){const s=n;n=t;const a=this;return function(d=s,...u){return a.produce(d,p=>n.call(this,p,...u))}}cr(n)||jt(6),r!==void 0&&!cr(r)&&jt(7);let i;if(sn(t)){const s=Hp(this),a=Wl(s,t,void 0);let c=!0;try{i=n(a),c=!1}finally{c?_l(s):$l(s)}return Up(s,r),Rp(i,s)}else if(!t||!Ol(t)){if(i=n(t),i===void 0&&(i=t),i===$p&&(i=void 0),this.autoFreeze_&&Ml(i,!0),r){const s=[],a=[];$r(Dl).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:a}),r(s,a)}return i}else jt(1,t)},this.produceWithPatches=(t,n)=>{if(cr(t))return(a,...c)=>this.produceWithPatches(a,d=>t(d,...c));let r,i;return[this.produce(t,n,(a,c)=>{r=a,i=c}),r,i]},Il(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Il(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Il(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){sn(e)||jt(8),Dn(e)&&(e=T0(e));const t=Hp(this),n=Wl(t,e,void 0);return n[It].isManual_=!0,$l(t),n}finishDraft(e,t){const n=e&&e[It];(!n||!n.isManual_)&&jt(9);const{scope_:r}=n;return Up(r,t),Rp(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=$r(Dl).applyPatches_;return Dn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Wl(e,t,n,r){const[i,s]=ds(t)?$r(hs).proxyMap_(t,n):ps(t)?$r(hs).proxySet_(t,n):w0(t,n);return(n?.scope_??Vp()).drafts_.push(i),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?v0(n,s,r):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:u}=d;s.modified_&&u&&u.generatePatches_(s,[],d)}),i}function T0(e){return Dn(e)||jt(10,e),Jp(e)}function Jp(e){if(!sn(e)||fs(e))return e;const t=e[It];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Fl(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Fl(e,!0);return No(n,(i,s)=>{ls(n,i,Jp(s))},r),t&&(t.finalized_=!1),n}var A0=new E0,Qp=A0.produce,k0=(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
|
|
3
|
+
`+('Please change the parent <Route path="'+C+'"> to <Route ')+('path="'+(C==="/"?"*":C+"/*")+'">.'))}let h=Et(),y;if(t){var b;let C=typeof t=="string"?Fr(t):t;u==="/"||(b=C.pathname)!=null&&b.startsWith(u)||(process.env.NODE_ENV!=="production"?$e(!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 "'+u+'" ')+('but pathname "'+C.pathname+'" was given in the `location` prop.')):$e(!1)),y=C}else y=h;let g=y.pathname||"/",f=g;if(u!=="/"){let C=u.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(C.length).join("/")}let m=gy(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&qt(p||m!=null,'No routes matched location "'+y.pathname+y.search+y.hash+'" '),process.env.NODE_ENV!=="production"&&qt(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=Gy(m&&m.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Mn([u,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Mn([u,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,n,r);return t&&S?E.createElement(Co.Provider,{value:{location:So({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:Hn.Pop}},S):S}function Ry(){let e=eb(),t=$y(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route."))),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:i},n):null,a)}const qy=E.createElement(Ry,null);class Yy extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(un.Provider,{value:this.props.routeContext},E.createElement(gl.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ky(e){let{routeContext:t,match:n,children:r}=e,i=E.useContext(wo);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(un.Provider,{value:t},r)}function Gy(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,c=(i=n)==null?void 0:i.errors;if(c!=null){let p=a.findIndex(h=>h.route.id&&c?.[h.route.id]!==void 0);p>=0||(process.env.NODE_ENV!=="production"?$e(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):$e(!1)),a=a.slice(0,Math.min(a.length,p+1))}let d=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<a.length;p++){let h=a[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=p),h.route.id){let{loaderData:y,errors:b}=n,g=h.route.loader&&y[h.route.id]===void 0&&(!b||b[h.route.id]===void 0);if(h.route.lazy||g){d=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((p,h,y)=>{let b,g=!1,f=null,m=null;n&&(b=c&&h.route.id?c[h.route.id]:void 0,f=h.route.errorElement||qy,d&&(u<0&&y===0?(mp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):u===y&&(g=!0,m=h.route.hydrateFallbackElement||null)));let S=t.concat(a.slice(0,y+1)),C=()=>{let x;return b?x=f:g?x=m:h.route.Component?x=E.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=p,E.createElement(Ky,{match:h,routeContext:{outlet:p,matches:S,isDataRoute:n!=null},children:x})};return n&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?E.createElement(Yy,{location:n.location,revalidation:n.revalidation,component:f,error:b,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}var hp=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(hp||{}),Ao=(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})(Ao||{});function ml(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Xy(e){let t=E.useContext(wo);return t||(process.env.NODE_ENV!=="production"?$e(!1,ml(e)):$e(!1)),t}function Jy(e){let t=E.useContext(hl);return t||(process.env.NODE_ENV!=="production"?$e(!1,ml(e)):$e(!1)),t}function Qy(e){let t=E.useContext(un);return t||(process.env.NODE_ENV!=="production"?$e(!1,ml(e)):$e(!1)),t}function yl(e){let t=Qy(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?$e(!1,e+' can only be used on routes that contain a unique "id"'):$e(!1)),n.route.id}function Zy(){return yl(Ao.UseRouteId)}function eb(){var e;let t=E.useContext(gl),n=Jy(Ao.UseRouteError),r=yl(Ao.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function tb(){let{router:e}=Xy(hp.UseNavigateStable),t=yl(Ao.UseNavigateStable),n=E.useRef(!1);return fp(()=>{n.current=!0}),E.useCallback(function(i,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&qt(n.current,up),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,So({fromRouteId:t},s)))},[e,t])}const gp={};function mp(e,t,n){!t&&!gp[e]&&(gp[e]=!0,process.env.NODE_ENV!=="production"&&qt(!1,n))}const yp={};function nb(e,t){process.env.NODE_ENV!=="production"&&!yp[t]&&(yp[t]=!0,console.warn(t))}const bp=(e,t,n)=>nb(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function rb(e,t){e?.v7_startTransition===void 0&&bp("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&&bp("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function ob(e){return Vy(e.context)}function ar(e){process.env.NODE_ENV!=="production"?$e(!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>."):$e(!1)}function ib(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Hn.Pop,navigator:s,static:a=!1,future:c}=e;Eo()&&(process.env.NODE_ENV!=="production"?$e(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):$e(!1));let d=t.replace(/^\/*/,"/"),u=E.useMemo(()=>({basename:d,navigator:s,static:a,future:So({v7_relativeSplatPath:!1},c)}),[d,c,s,a]);typeof r=="string"&&(r=Fr(r));let{pathname:p="/",search:h="",hash:y="",state:b=null,key:g="default"}=r,f=E.useMemo(()=>{let m=Rn(p,d);return m==null?null:{location:{pathname:m,search:h,hash:y,state:b,key:g},navigationType:i}},[d,p,h,y,b,g,i]);return process.env.NODE_ENV!=="production"&&qt(f!=null,'<Router basename="'+d+'"> is not able to match the URL '+('"'+p+h+y+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:E.createElement(rn.Provider,{value:u},E.createElement(Co.Provider,{children:n,value:f}))}function sb(e){let{children:t,location:n}=e;return Uy(bl(t),n)}new Promise(()=>{});function bl(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,i)=>{if(!E.isValidElement(r))return;let s=[...t,i];if(r.type===E.Fragment){n.push.apply(n,bl(r.props.children,s));return}r.type!==ar&&(process.env.NODE_ENV!=="production"?$e(!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>"):$e(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?$e(!1,"An index route cannot have child routes."):$e(!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=bl(r.props.children,s)),n.push(a)}),n}function Mr(){return Mr=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},Mr.apply(this,arguments)}function xl(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 Ji="get",Qi="application/x-www-form-urlencoded";function Zi(e){return e!=null&&typeof e.tagName=="string"}function ab(e){return Zi(e)&&e.tagName.toLowerCase()==="button"}function lb(e){return Zi(e)&&e.tagName.toLowerCase()==="form"}function cb(e){return Zi(e)&&e.tagName.toLowerCase()==="input"}function db(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pb(e,t){return e.button===0&&(!t||t==="_self")&&!db(e)}function vl(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 ub(e,t){let n=vl(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}let es=null;function fb(){if(es===null)try{new FormData(document.createElement("form"),0),es=!1}catch{es=!0}return es}const hb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Sl(e){return e!=null&&!hb.has(e)?(process.env.NODE_ENV!=="production"&&qt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Qi+'"')),null):e}function gb(e,t){let n,r,i,s,a;if(lb(e)){let c=e.getAttribute("action");r=c?Rn(c,t):null,n=e.getAttribute("method")||Ji,i=Sl(e.getAttribute("enctype"))||Qi,s=new FormData(e)}else if(ab(e)||cb(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?Rn(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Ji,i=Sl(e.getAttribute("formenctype"))||Sl(c.getAttribute("enctype"))||Qi,s=new FormData(c,e),!fb()){let{name:u,type:p,value:h}=e;if(p==="image"){let y=u?u+".":"";s.append(y+"x","0"),s.append(y+"y","0")}else u&&s.append(u,h)}}else{if(Zi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ji,r=null,i=Qi,a=e}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}const mb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],yb=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],bb=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],xb="6";try{window.__reactRouterVersion=xb}catch{}const xp=E.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(xp.displayName="ViewTransition");const vb=E.createContext(new Map);process.env.NODE_ENV!=="production"&&(vb.displayName="Fetchers");const vp=E["startTransition"];function Sb(e){let{basename:t,children:n,future:r,window:i}=e,s=E.useRef();s.current==null&&(s.current=uy({window:i,v5Compat:!0}));let a=s.current,[c,d]=E.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},p=E.useCallback(h=>{u&&vp?vp(()=>d(h)):d(h)},[d,u]);return E.useLayoutEffect(()=>a.listen(p),[a,p]),E.useEffect(()=>rb(r),[r]),E.createElement(ib,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:a,future:r})}process.env.NODE_ENV;const wb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Cb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sp=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:a,state:c,target:d,to:u,preventScrollReset:p,viewTransition:h}=t,y=xl(t,mb),{basename:b}=E.useContext(rn),g,f=!1;if(typeof u=="string"&&Cb.test(u)&&(g=u,wb))try{let x=new URL(window.location.href),v=u.startsWith("//")?new URL(x.protocol+u):new URL(u),w=Rn(v.pathname,b);v.origin===x.origin&&w!=null?u=w+v.search+v.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&qt(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let m=By(u,{relative:i}),S=kb(u,{replace:a,state:c,target:d,preventScrollReset:p,relative:i,viewTransition:h});function C(x){r&&r(x),x.defaultPrevented||S(x)}return E.createElement("a",Mr({},y,{href:g||m,onClick:f||s?r:C,ref:n,target:d}))});process.env.NODE_ENV!=="production"&&(Sp.displayName="Link");const Eb=E.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:a=!1,style:c,to:d,viewTransition:u,children:p}=t,h=xl(t,yb),y=To(d,{relative:h.relative}),b=Et(),g=E.useContext(hl),{navigator:f,basename:m}=E.useContext(rn),S=g!=null&&Db(y)&&u===!0,C=f.encodeLocation?f.encodeLocation(y).pathname:y.pathname,x=b.pathname,v=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(x=x.toLowerCase(),v=v?v.toLowerCase():null,C=C.toLowerCase()),v&&m&&(v=Rn(v,m)||v);const w=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let A=x===C||!a&&x.startsWith(C)&&x.charAt(w)==="/",O=v!=null&&(v===C||!a&&v.startsWith(C)&&v.charAt(C.length)==="/"),L={isActive:A,isPending:O,isTransitioning:S},M=A?r:void 0,_;typeof s=="function"?_=s(L):_=[s,A?"active":null,O?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let I=typeof c=="function"?c(L):c;return E.createElement(Sp,Mr({},h,{"aria-current":M,className:_,ref:n,style:I,to:d,viewTransition:u}),typeof p=="function"?p(L):p)});process.env.NODE_ENV!=="production"&&(Eb.displayName="NavLink");const Tb=E.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:a,method:c=Ji,action:d,onSubmit:u,relative:p,preventScrollReset:h,viewTransition:y}=e,b=xl(e,bb),g=Fb(),f=Mb(d,{relative:p}),m=c.toLowerCase()==="get"?"get":"post",S=C=>{if(u&&u(C),C.defaultPrevented)return;C.preventDefault();let x=C.nativeEvent.submitter,v=x?.getAttribute("formmethod")||c;g(x||C.currentTarget,{fetcherKey:n,method:v,navigate:r,replace:s,state:a,relative:p,preventScrollReset:h,viewTransition:y})};return E.createElement("form",Mr({ref:t,method:m,action:f,onSubmit:i?u:S},b))});process.env.NODE_ENV!=="production"&&(Tb.displayName="Form"),process.env.NODE_ENV;var ts;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ts||(ts={}));var wp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wp||(wp={}));function Ab(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Cp(e){let t=E.useContext(wo);return t||(process.env.NODE_ENV!=="production"?$e(!1,Ab(e)):$e(!1)),t}function kb(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:a,viewTransition:c}=t===void 0?{}:t,d=It(),u=Et(),p=To(e,{relative:a});return E.useCallback(h=>{if(pb(h,n)){h.preventDefault();let y=r!==void 0?r:vo(u)===vo(p);d(e,{replace:y,state:i,preventScrollReset:s,relative:a,viewTransition:c})}},[u,d,p,r,i,n,e,s,a,c])}function Pb(e){process.env.NODE_ENV!=="production"&&qt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=E.useRef(vl(e)),n=E.useRef(!1),r=Et(),i=E.useMemo(()=>ub(r.search,n.current?null:t.current),[r.search]),s=It(),a=E.useCallback((c,d)=>{const u=vl(typeof c=="function"?c(i):c);n.current=!0,s("?"+u,d)},[s,i]);return[i,a]}function Ob(){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 Ib=0,Nb=()=>"__"+String(++Ib)+"__";function Fb(){let{router:e}=Cp(ts.UseSubmit),{basename:t}=E.useContext(rn),n=Zy();return E.useCallback(function(r,i){i===void 0&&(i={}),Ob();let{action:s,method:a,encType:c,formData:d,body:u}=gb(r,t);if(i.navigate===!1){let p=i.fetcherKey||Nb();e.fetch(p,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:u,formMethod:i.method||a,formEncType:i.encType||c,flushSync:i.flushSync})}else e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:u,formMethod:i.method||a,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function Mb(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=E.useContext(rn),i=E.useContext(un);i||(process.env.NODE_ENV!=="production"?$e(!1,"useFormAction must be used inside a RouteContext"):$e(!1));let[s]=i.matches.slice(-1),a=Mr({},To(e||".",{relative:n})),c=Et();if(e==null){a.search=c.search;let d=new URLSearchParams(a.search),u=d.getAll("index");if(u.some(h=>h==="")){d.delete("index"),u.filter(y=>y).forEach(y=>d.append("index",y));let h=d.toString();a.search=h?"?"+h:""}}return(!e||e===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Mn([r,a.pathname])),vo(a)}function Db(e,t){t===void 0&&(t={});let n=E.useContext(xp);n==null&&(process.env.NODE_ENV!=="production"?$e(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):$e(!1));let{basename:r}=Cp(ts.useViewTransitionState),i=To(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Rn(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Rn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ul(i.pathname,a)!=null||ul(i.pathname,s)!=null}function Ep(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ns={exports:{}},wl={};var Tp;function _b(){if(Tp)return wl;Tp=1;var e=z;function t(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,c=e.useDebugValue;return wl.useSyncExternalStoreWithSelector=function(d,u,p,h,y){var b=i(null);if(b.current===null){var g={hasValue:!1,value:null};b.current=g}else g=b.current;b=a(function(){function m(w){if(!S){if(S=!0,C=w,w=h(w),y!==void 0&&g.hasValue){var A=g.value;if(y(A,w))return x=A}return x=w}if(A=x,n(C,w))return A;var O=h(w);return y!==void 0&&y(A,O)?(C=w,A):(C=w,x=O)}var S=!1,C,x,v=p===void 0?null:p;return[function(){return m(u())},v===null?void 0:function(){return m(v())}]},[u,p,h,y]);var f=r(d,b[0],b[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),c(f),f},wl}var Cl={};var Ap;function $b(){return Ap||(Ap=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=z,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,c=t.useDebugValue;Cl.useSyncExternalStoreWithSelector=function(d,u,p,h,y){var b=i(null);if(b.current===null){var g={hasValue:!1,value:null};b.current=g}else g=b.current;b=a(function(){function m(w){if(!S){if(S=!0,C=w,w=h(w),y!==void 0&&g.hasValue){var A=g.value;if(y(A,w))return x=A}return x=w}if(A=x,n(C,w))return A;var O=h(w);return y!==void 0&&y(A,O)?(C=w,A):(C=w,x=O)}var S=!1,C,x,v=p===void 0?null:p;return[function(){return m(u())},v===null?void 0:function(){return m(v())}]},[u,p,h,y]);var f=r(d,b[0],b[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),c(f),f},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Cl}var kp;function zb(){return kp||(kp=1,process.env.NODE_ENV==="production"?ns.exports=_b():ns.exports=$b()),ns.exports}var Lb=zb();function Bb(e){e()}function jb(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Bb(()=>{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 Pp={notify(){},get:()=>[]};function Wb(e,t){let n,r=Pp,i=0,s=!1;function a(f){p();const m=r.subscribe(f);let S=!1;return()=>{S||(S=!0,m(),h())}}function c(){r.notify()}function d(){g.onStateChange&&g.onStateChange()}function u(){return s}function p(){i++,n||(n=e.subscribe(d),r=jb())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Pp)}function y(){s||(s=!0,p())}function b(){s&&(s=!1,h())}const g={addNestedSub:a,notifyNestedSubs:c,handleChangeWrapper:d,isSubscribed:u,trySubscribe:y,tryUnsubscribe:b,getListeners:()=>r};return g}var Vb=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ub=Vb(),Hb=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Rb=Hb(),qb=()=>Ub||Rb?E.useLayoutEffect:E.useEffect,Yb=qb(),Kb=Symbol.for("react-redux-context"),Gb=typeof globalThis<"u"?globalThis:{};function Xb(){if(!E.createContext)return{};const e=Gb[Kb]??=new Map;let t=e.get(E.createContext);return t||(t=E.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(E.createContext,t)),t}var qn=Xb();function Jb(e){const{children:t,context:n,serverState:r,store:i}=e,s=E.useMemo(()=>{const d=Wb(i),u={store:i,subscription:d,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return u;{const{identityFunctionCheck:p="once",stabilityCheck:h="once"}=e;return Object.assign(u,{stabilityCheck:h,identityFunctionCheck:p})}},[i,r]),a=E.useMemo(()=>i.getState(),[i]);Yb(()=>{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 c=n||qn;return E.createElement(c.Provider,{value:s},t)}var Qb=Jb;function El(e=qn){return function(){const n=E.useContext(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var Op=El();function Ip(e=qn){const t=e===qn?Op:El(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Zb=Ip();function e0(e=qn){const t=e===qn?Zb:Ip(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var on=e0(),t0=(e,t)=>e===t;function n0(e=qn){const t=e===qn?Op:El(e),n=(r,i={})=>{const{equalityFn:s=t0}=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:c,subscription:d,getServerState:u}=a,p=E.useRef(!0),h=E.useCallback({[r.name](b){const g=r(b);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof i=="function"?{}:i,{identityFunctionCheck:m,stabilityCheck:S}=a,{identityFunctionCheck:C,stabilityCheck:x}={stabilityCheck:S,identityFunctionCheck:m,...f};if(x==="always"||x==="once"&&p.current){const v=r(b);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
|
+
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:b,selected:g,selected2:v,stack:w})}}if((C==="always"||C==="once"&&p.current)&&g===b){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})}p.current&&(p.current=!1)}return g}}[r.name],[r]),y=Lb.useSyncExternalStoreWithSelector(d.addNestedSub,c.getState,u||c.getState,h,s);return E.useDebugValue(y),y};return Object.assign(n,{withTypes:()=>n}),n}var Je=n0(),ko={},Np;function r0(){if(Np)return ko;Np=1,ko.__esModule=!0,ko.PersistGate=void 0;var e=t(z);function t(b){if(b&&b.__esModule)return b;var g={};if(b!=null){for(var f in b)if(Object.prototype.hasOwnProperty.call(b,f)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(b,f):{};m.get||m.set?Object.defineProperty(g,f,m):g[f]=b[f]}}return g.default=b,g}function n(b){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(f){return typeof f}:n=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},n(b)}function r(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function i(b,g){for(var f=0;f<g.length;f++){var m=g[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(b,m.key,m)}}function s(b,g,f){return g&&i(b.prototype,g),b}function a(b,g){return g&&(n(g)==="object"||typeof g=="function")?g:d(b)}function c(b){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},c(b)}function d(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function u(b,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(g&&g.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),g&&p(b,g)}function p(b,g){return p=Object.setPrototypeOf||function(m,S){return m.__proto__=S,m},p(b,g)}function h(b,g,f){return g in b?Object.defineProperty(b,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[g]=f,b}var y=(function(b){u(g,b);function g(){var f,m;r(this,g);for(var S=arguments.length,C=new Array(S),x=0;x<S;x++)C[x]=arguments[x];return m=a(this,(f=c(g)).call.apply(f,[this].concat(C))),h(d(m),"state",{bootstrapped:!1}),h(d(m),"_unsubscribe",void 0),h(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 ko.PersistGate=y,h(y,"defaultProps",{children:null,loading:null}),ko}var o0=r0();function St(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 i0=typeof Symbol=="function"&&Symbol.observable||"@@observable",Fp=i0,Tl=()=>Math.random().toString(36).substring(7).split("").join("."),s0={INIT:`@@redux/INIT${Tl()}`,REPLACE:`@@redux/REPLACE${Tl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Tl()}`},lr=s0;function Po(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 a0(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(d0(e))return"date";if(c0(e))return"error";const n=l0(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 l0(e){return typeof e.constructor=="function"?e.constructor.name:null}function c0(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function d0(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Yn(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=a0(e)),t}function Al(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?St(2):`Expected the root reducer to be a function. Instead, received: '${Yn(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?St(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"?St(1):`Expected the enhancer to be a function. Instead, received: '${Yn(n)}'`);return n(Al)(e,t)}let r=e,i=t,s=new Map,a=s,c=0,d=!1;function u(){a===s&&(a=new Map,s.forEach((m,S)=>{a.set(S,m)}))}function p(){if(d)throw new Error(process.env.NODE_ENV==="production"?St(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function h(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?St(4):`Expected the listener to be a function. Instead, received: '${Yn(m)}'`);if(d)throw new Error(process.env.NODE_ENV==="production"?St(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;u();const C=c++;return a.set(C,m),function(){if(S){if(d)throw new Error(process.env.NODE_ENV==="production"?St(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,u(),a.delete(C),s=null}}}function y(m){if(!Po(m))throw new Error(process.env.NODE_ENV==="production"?St(7):`Actions must be plain objects. Instead, the actual type was: '${Yn(m)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof m.type>"u")throw new Error(process.env.NODE_ENV==="production"?St(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"?St(17):`Action "type" property must be a string. Instead, the actual type was: '${Yn(m.type)}'. Value was: '${m.type}' (stringified)`);if(d)throw new Error(process.env.NODE_ENV==="production"?St(9):"Reducers may not dispatch actions.");try{d=!0,i=r(i,m)}finally{d=!1}return(s=a).forEach(C=>{C()}),m}function b(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?St(10):`Expected the nextReducer to be a function. Instead, received: '${Yn(m)}`);r=m,y({type:lr.REPLACE})}function g(){const m=h;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(process.env.NODE_ENV==="production"?St(11):`Expected the observer to be an object. Instead, received: '${Yn(S)}'`);function C(){const v=S;v.next&&v.next(p())}return C(),{unsubscribe:m(C)}},[Fp](){return this}}}return y({type:lr.INIT}),{dispatch:y,subscribe:h,getState:p,replaceReducer:b,[Fp]:g}}function Mp(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function p0(e,t,n,r){const i=Object.keys(t),s=n&&n.type===lr.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(!Po(e))return`The ${s} has unexpected type of "${Yn(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(e).filter(c=>!t.hasOwnProperty(c)&&!r[c]);if(a.forEach(c=>{r[c]=!0}),!(n&&n.type===lr.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 u0(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:lr.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?St(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:lr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?St(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${lr.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 Dp(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const c=t[a];process.env.NODE_ENV!=="production"&&typeof e[c]>"u"&&Mp(`No reducer provided for key "${c}"`),typeof e[c]=="function"&&(n[c]=e[c])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let s;try{u0(n)}catch(a){s=a}return function(c={},d){if(s)throw s;if(process.env.NODE_ENV!=="production"){const h=p0(c,n,d,i);h&&Mp(h)}let u=!1;const p={};for(let h=0;h<r.length;h++){const y=r[h],b=n[y],g=c[y],f=b(g,d);if(typeof f>"u"){const m=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?St(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.`)}p[y]=f,u=u||f!==g}return u=u||r.length!==Object.keys(c).length,u?p:c}}function rs(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function f0(...e){return t=>(n,r)=>{const i=t(n,r);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?St(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,...u)=>s(d,...u)},c=e.map(d=>d(a));return s=rs(...c)(i.dispatch),{...i,dispatch:s}}}function _p(e){return Po(e)&&"type"in e&&typeof e.type=="string"}var $p=Symbol.for("immer-nothing"),zp=Symbol.for("immer-draftable"),Nt=Symbol.for("immer-state"),h0=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 Wt(e,...t){if(process.env.NODE_ENV!=="production"){const n=h0[e],r=cr(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 Vt=Object,Dr=Vt.getPrototypeOf,os="constructor",is="prototype",kl="configurable",ss="enumerable",as="writable",Oo="value",Dn=e=>!!e&&!!e[Nt];function sn(e){return e?Bp(e)||cs(e)||!!e[zp]||!!e[os]?.[zp]||ds(e)||ps(e):!1}var g0=Vt[is][os].toString(),Lp=new WeakMap;function Bp(e){if(!e||!Ol(e))return!1;const t=Dr(e);if(t===null||t===Vt[is])return!0;const n=Vt.hasOwnProperty.call(t,os)&&t[os];if(n===Object)return!0;if(!cr(n))return!1;let r=Lp.get(n);return r===void 0&&(r=Function.toString.call(n),Lp.set(n,r)),r===g0}function Io(e,t,n=!0){No(e)===0?(n?Reflect.ownKeys(e):Vt.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function No(e){const t=e[Nt];return t?t.type_:cs(e)?1:ds(e)?2:ps(e)?3:0}var jp=(e,t,n=No(e))=>n===2?e.has(t):Vt[is].hasOwnProperty.call(e,t),Pl=(e,t,n=No(e))=>n===2?e.get(t):e[t],ls=(e,t,n,r=No(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function m0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var cs=Array.isArray,ds=e=>e instanceof Map,ps=e=>e instanceof Set,Ol=e=>typeof e=="object",cr=e=>typeof e=="function",Il=e=>typeof e=="boolean",_n=e=>e.copy_||e.base_,Nl=e=>e.modified_?e.copy_:e.base_;function Fl(e,t){if(ds(e))return new Map(e);if(ps(e))return new Set(e);if(cs(e))return Array[is].slice.call(e);const n=Bp(e);if(t===!0||t==="class_only"&&!n){const r=Vt.getOwnPropertyDescriptors(e);delete r[Nt];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const a=i[s],c=r[a];c[as]===!1&&(c[as]=!0,c[kl]=!0),(c.get||c.set)&&(r[a]={[kl]:!0,[as]:!0,[ss]:c[ss],[Oo]:e[a]})}return Vt.create(Dr(e),r)}else{const r=Dr(e);if(r!==null&&n)return{...e};const i=Vt.create(r);return Vt.assign(i,e)}}function Ml(e,t=!1){return fs(e)||Dn(e)||!sn(e)||(No(e)>1&&Vt.defineProperties(e,{set:us,add:us,clear:us,delete:us}),Vt.freeze(e),t&&Io(e,(n,r)=>{Ml(r,!0)},!1)),e}function y0(){Wt(2)}var us={[Oo]:y0};function fs(e){return e===null||!Ol(e)?!0:Vt.isFrozen(e)}var hs="MapSet",Dl="Patches",Wp={};function _r(e){const t=Wp[e];return t||Wt(0,e),t}var b0=e=>!!Wp[e],Fo,Vp=()=>Fo,x0=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:b0(hs)?_r(hs):void 0});function Up(e,t){t&&(e.patchPlugin_=_r(Dl),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function _l(e){$l(e),e.drafts_.forEach(v0),e.drafts_=null}function $l(e){e===Fo&&(Fo=e.parent_)}var Hp=e=>Fo=x0(Fo,e);function v0(e){const t=e[Nt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Rp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Nt].modified_&&(_l(t),Wt(4)),sn(e)&&(e=qp(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[Nt].base_,e,t)}else e=qp(t,n);return S0(t,e,!0),_l(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==$p?e:void 0}function qp(e,t){if(fs(t))return t;const n=t[Nt];if(!n)return zl(t,e.handledSet_,e);if(!gs(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);Gp(n,e)}return n.copy_}function S0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ml(t,n)}function Yp(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var gs=(e,t)=>e.scope_===t,w0=[];function Kp(e,t,n,r){const i=_n(e),s=e.type_;if(r!==void 0&&Pl(i,r,s)===t){ls(i,r,n,s);return}if(!e.draftLocations_){const c=e.draftLocations_=new Map;Io(i,(d,u)=>{if(Dn(u)){const p=c.get(u)||[];p.push(d),c.set(u,p)}})}const a=e.draftLocations_.get(t)??w0;for(const c of a)ls(i,c,n,s)}function C0(e,t,n){e.callbacks_.push(function(i){const s=t;if(!s||!gs(s,i))return;i.mapSetPlugin_?.fixSetContents(s);const a=Nl(s);Kp(e,s.draft_??s,a,n),Gp(s,i)})}function Gp(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)}Yp(e)}}function E0(e,t,n){const{scope_:r}=e;if(Dn(n)){const i=n[Nt];gs(i,r)&&i.callbacks_.push(function(){ms(e);const a=Nl(i);Kp(e,n,a,t)})}else sn(n)&&e.callbacks_.push(function(){const s=_n(e);Pl(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&zl(Pl(e.copy_,t,e.type_),r.handledSet_,r)})}function zl(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Dn(e)||t.has(e)||!sn(e)||fs(e)||(t.add(e),Io(e,(r,i)=>{if(Dn(i)){const s=i[Nt];if(gs(s,n)){const a=Nl(s);ls(e,r,a,e.type_),Yp(s)}}else sn(i)&&zl(i,t,n)})),e}function T0(e,t){const n=cs(e),r={type_:n?1:0,scope_:t?t.scope_:Vp(),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=Ll;n&&(i=[r],s=Mo);const{revoke:a,proxy:c}=Proxy.revocable(i,s);return r.draft_=c,r.revoke_=a,[c,r]}var Ll={get(e,t){if(t===Nt)return e;const n=_n(e);if(!jp(n,t,e.type_))return A0(e,n,t);const r=n[t];if(e.finalized_||!sn(r))return r;if(r===Bl(e.base_,t)){ms(e);const i=e.type_===1?+t:t,s=Wl(e.scope_,r,e,i);return e.copy_[i]=s}return r},has(e,t){return t in _n(e)},ownKeys(e){return Reflect.ownKeys(_n(e))},set(e,t,n){const r=Xp(_n(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Bl(_n(e),t),s=i?.[Nt];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(m0(n,i)&&(n!==void 0||jp(e.base_,t,e.type_)))return!0;ms(e),jl(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),E0(e,t,n)),!0},deleteProperty(e,t){return ms(e),Bl(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),jl(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=_n(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[as]:!0,[kl]:e.type_!==1||t!=="length",[ss]:r[ss],[Oo]:n[t]}},defineProperty(){Wt(11)},getPrototypeOf(e){return Dr(e.base_)},setPrototypeOf(){Wt(12)}},Mo={};Io(Ll,(e,t)=>{Mo[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}),Mo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Wt(13),Mo.set.call(this,e,t,void 0)},Mo.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Wt(14),Ll.set.call(this,e[0],t,n,e[0])};function Bl(e,t){const n=e[Nt];return(n?_n(n):e)[t]}function A0(e,t,n){const r=Xp(t,n);return r?Oo in r?r[Oo]:r.get?.call(e.draft_):void 0}function Xp(e,t){if(!(t in e))return;let n=Dr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Dr(n)}}function jl(e){e.modified_||(e.modified_=!0,e.parent_&&jl(e.parent_))}function ms(e){e.copy_||(e.assigned_=new Map,e.copy_=Fl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var k0=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(cr(t)&&!cr(n)){const s=n;n=t;const a=this;return function(d=s,...u){return a.produce(d,p=>n.call(this,p,...u))}}cr(n)||Wt(6),r!==void 0&&!cr(r)&&Wt(7);let i;if(sn(t)){const s=Hp(this),a=Wl(s,t,void 0);let c=!0;try{i=n(a),c=!1}finally{c?_l(s):$l(s)}return Up(s,r),Rp(i,s)}else if(!t||!Ol(t)){if(i=n(t),i===void 0&&(i=t),i===$p&&(i=void 0),this.autoFreeze_&&Ml(i,!0),r){const s=[],a=[];_r(Dl).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:a}),r(s,a)}return i}else Wt(1,t)},this.produceWithPatches=(t,n)=>{if(cr(t))return(a,...c)=>this.produceWithPatches(a,d=>t(d,...c));let r,i;return[this.produce(t,n,(a,c)=>{r=a,i=c}),r,i]},Il(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Il(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Il(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){sn(e)||Wt(8),Dn(e)&&(e=P0(e));const t=Hp(this),n=Wl(t,e,void 0);return n[Nt].isManual_=!0,$l(t),n}finishDraft(e,t){const n=e&&e[Nt];(!n||!n.isManual_)&&Wt(9);const{scope_:r}=n;return Up(r,t),Rp(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=_r(Dl).applyPatches_;return Dn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Wl(e,t,n,r){const[i,s]=ds(t)?_r(hs).proxyMap_(t,n):ps(t)?_r(hs).proxySet_(t,n):T0(t,n);return(n?.scope_??Vp()).drafts_.push(i),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?C0(n,s,r):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:u}=d;s.modified_&&u&&u.generatePatches_(s,[],d)}),i}function P0(e){return Dn(e)||Wt(10,e),Jp(e)}function Jp(e){if(!sn(e)||fs(e))return e;const t=e[Nt];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Fl(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Fl(e,!0);return Io(n,(i,s)=>{ls(n,i,Jp(s))},r),t&&(t.finalized_=!1),n}var O0=new k0,Qp=O0.produce,I0=(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
|
-
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},
|
|
8
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},N0=(e,t,n)=>{const{memoize:r,memoizeOptions:i}=t,{inputSelectorResults:s,inputSelectorResultsCopy:a}=e,c=r(()=>({}),...i);if(!(c.apply(null,s)===c.apply(null,a))){let u;try{throw new Error}catch(p){({stack:u}=p)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
9
9
|
This means your output selector will likely run more frequently than intended.
|
|
10
10
|
Avoid returning a new reference inside your input selector, e.g.
|
|
11
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:a,stack:u})}},
|
|
12
|
-
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function
|
|
11
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:a,stack:u})}},F0={inputStabilityCheck:"once",identityFunctionCheck:"once"};function M0(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function D0(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function _0(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Zp=e=>Array.isArray(e)?e:[e];function $0(e){const t=Array.isArray(e[0])?e[0]:e;return _0(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function eu(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var z0=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...F0,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:I0},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:N0}}},L0=class{constructor(e){this.value=e}deref(){return this.value}},B0=typeof WeakRef<"u"?WeakRef:L0,j0=0,tu=1;function ys(){return{s:j0,v:void 0,o:null,p:null}}function nu(e,t={}){let n=ys();const{resultEqualityCheck:r}=t;let i,s=0;function a(){let c=n;const{length:d}=arguments;for(let h=0,y=d;h<y;h++){const b=arguments[h];if(typeof b=="function"||typeof b=="object"&&b!==null){let g=c.o;g===null&&(c.o=g=new WeakMap);const f=g.get(b);f===void 0?(c=ys(),g.set(b,c)):c=f}else{let g=c.p;g===null&&(c.p=g=new Map);const f=g.get(b);f===void 0?(c=ys(),g.set(b,c)):c=f}}const u=c;let p;if(c.s===tu)p=c.v;else if(p=e.apply(null,arguments),s++,r){const h=i?.deref?.()??i;h!=null&&r(h,p)&&(p=h,s!==0&&s--),i=typeof p=="object"&&p!==null||typeof p=="function"?new B0(p):p}return u.s=tu,u.v=p,p}return a.clearCache=()=>{n=ys(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function W0(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let s=0,a=0,c,d={},u=i.pop();typeof u=="object"&&(d=u,u=i.pop()),M0(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const p={...n,...d},{memoize:h,memoizeOptions:y=[],argsMemoize:b=nu,argsMemoizeOptions:g=[],devModeChecks:f={}}=p,m=Zp(y),S=Zp(g),C=$0(i),x=h(function(){return s++,u.apply(null,arguments)},...m);let v=!0;const w=b(function(){a++;const O=eu(C,arguments);if(c=x.apply(null,O),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:L,inputStabilityCheck:M}=z0(v,f);if(L.shouldRun&&L.run(u,O,c),M.shouldRun){const _=eu(C,arguments);M.run({inputSelectorResults:O,inputSelectorResultsCopy:_},{memoize:h,memoizeOptions:m},arguments)}v&&(v=!1)}return c},...S);return Object.assign(w,{resultFunc:u,memoizedResultFunc:x,dependencies:C,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>c,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:h,argsMemoize:b})};return Object.assign(r,{withTypes:()=>r}),r}var V0=W0(nu),U0=Object.assign((e,t=V0)=>{D0(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(s=>e[s]);return t(r,(...s)=>s.reduce((a,c,d)=>(a[n[d]]=c,a),{}))},{withTypes:()=>U0});function ru(e){return({dispatch:n,getState:r})=>i=>s=>typeof s=="function"?s(n,r,e):i(s)}var H0=ru(),R0=ru,q0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?rs:rs.apply(null,arguments)},ou=e=>e&&typeof e.match=="function";function Do(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?nt(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>_p(r)&&r.type===e,n}function Y0(e){return typeof e=="function"&&"type"in e&&ou(e)}function K0(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
12
|
+
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function G0(e={}){if(process.env.NODE_ENV==="production")return()=>n=>r=>n(r);const{isActionCreator:t=Y0}=e;return()=>n=>r=>(t(r)&&console.warn(K0(r.type)),n(r))}function iu(e,t){let n=0;return{measureTime(r){const i=Date.now();try{return r()}finally{const s=Date.now();n+=s-i}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms.
|
|
13
13
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
14
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var su=class Xi extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Xi.prototype)}static get[Symbol.species](){return Xi}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Xi(...t[0].concat(this)):new Xi(...t.concat(this))}};function au(e){return sn(e)?Qp(e,()=>{}):e}function bs(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function
|
|
15
|
-
Take a look at the logic that dispatched this action: `,
|
|
14
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var su=class Xi extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Xi.prototype)}static get[Symbol.species](){return Xi}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Xi(...t[0].concat(this)):new Xi(...t.concat(this))}};function au(e){return sn(e)?Qp(e,()=>{}):e}function bs(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function X0(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function J0(e,t,n){const r=lu(e,t,n);return{detectMutations(){return cu(e,t,r,n)}}}function lu(e,t=[],n,r="",i=new Set){const s={value:n};if(!e(n)&&!i.has(n)){i.add(n),s.children={};const a=t.length>0;for(const c in n){const d=r?r+"."+c:c;a&&t.some(p=>p instanceof RegExp?p.test(d):d===p)||(s.children[c]=lu(e,t,n[c],d))}}return s}function cu(e,t=[],n,r,i=!1,s=""){const a=n?n.value:void 0,c=a===r;if(i&&!c&&!Number.isNaN(r))return{wasMutated:!0,path:s};if(e(a)||e(r))return{wasMutated:!1};const d={};for(let p in n.children)d[p]=!0;for(let p in r)d[p]=!0;const u=t.length>0;for(let p in d){const h=s?s+"."+p:p;if(u&&t.some(g=>g instanceof RegExp?g.test(h):h===g))continue;const y=cu(e,t,n.children[p],r[p],c,h);if(y.wasMutated)return y}return{wasMutated:!1}}function Q0(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(c,d,u,p){return JSON.stringify(c,n(d,p),u)},n=function(c,d){let u=[],p=[];return d||(d=function(h,y){return u[0]===y?"[Circular ~]":"[Circular ~."+p.slice(0,u.indexOf(y)).join(".")+"]"}),function(h,y){if(u.length>0){var b=u.indexOf(this);~b?u.splice(b+1):u.push(this),~b?p.splice(b,1/0,h):p.push(h),~u.indexOf(y)&&(y=d.call(this,h,y))}else u.push(y);return c==null?y:c.call(this,h,y)}},{isImmutable:r=X0,ignoredPaths:i,warnAfter:s=32}=e;const a=J0.bind(null,r,i);return({getState:c})=>{let d=c(),u=a(d),p;return h=>y=>{const b=iu(s,"ImmutableStateInvariantMiddleware");b.measureTime(()=>{if(d=c(),p=u.detectMutations(),u=a(d),p.wasMutated)throw new Error(process.env.NODE_ENV==="production"?nt(19):`A state mutation was detected between dispatches, in the path '${p.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=h(y);return b.measureTime(()=>{if(d=c(),p=u.detectMutations(),u=a(d),p.wasMutated)throw new Error(process.env.NODE_ENV==="production"?nt(20):`A state mutation was detected inside a dispatch, in the path: ${p.path||""}. Take a look at the reducer(s) handling the action ${t(y)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),b.warnIfExceeded(),g}}}}function du(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Po(e)}function Vl(e,t="",n=du,r,i=[],s){let a;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||s?.has(e))return!1;const c=r!=null?r(e):Object.entries(e),d=i.length>0;for(const[u,p]of c){const h=t?t+"."+u:u;if(!(d&&i.some(b=>b instanceof RegExp?b.test(h):h===b))){if(!n(p))return{keyPath:h,value:p};if(typeof p=="object"&&(a=Vl(p,h,n,r,i,s),a))return a}}return s&&pu(e)&&s.add(e),!1}function pu(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!pu(t))return!1;return!0}function Z0(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=du,getEntries:n,ignoredActions:r=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:s=[],warnAfter:a=32,ignoreState:c=!1,ignoreActions:d=!1,disableCache:u=!1}=e,p=!u&&WeakSet?new WeakSet:void 0;return h=>y=>b=>{if(!_p(b))return y(b);const g=y(b),f=iu(a,"SerializableStateInvariantMiddleware");return!d&&!(r.length&&r.indexOf(b.type)!==-1)&&f.measureTime(()=>{const m=Vl(b,"",t,n,i,p);if(m){const{keyPath:S,value:C}=m;console.error(`A non-serializable value was detected in an action, in the path: \`${S}\`. Value:`,C,`
|
|
15
|
+
Take a look at the logic that dispatched this action: `,b,`
|
|
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
|
-
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),c||(f.measureTime(()=>{const m=h.getState(),S=Vl(m,"",t,n,s,p);if(S){const{keyPath:C,value:
|
|
18
|
-
Take a look at the reducer(s) handling this action type: ${
|
|
19
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),f.warnIfExceeded()),g}}}function xs(e){return typeof e=="boolean"}var J0=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let a=new su;if(n&&(xs(n)?a.push(W0):a.push(V0(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let c={};xs(r)||(c=r),a.unshift(G0(c))}if(i){let c={};xs(i)||(c=i),a.push(X0(c))}if(s){let c={};xs(s)||(c=s),a.unshift(q0(c))}}return a},Q0="RTK_autoBatch",uu=e=>t=>{setTimeout(t,e)},Z0=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,s=!1,a=!1;const c=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:uu(10):e.type==="callback"?e.queueNotification:uu(e.timeout),u=()=>{a=!1,s&&(s=!1,c.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const h=()=>i&&p(),y=r.subscribe(h);return c.add(p),()=>{y(),c.delete(p)}},dispatch(p){try{return i=!p?.meta?.[Q0],s=!i,s&&(a||(a=!0,d(u))),r.dispatch(p)}finally{i=!0}}})},ex=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new su(e);return r&&i.push(Z0(typeof r=="object"?r:void 0)),i};function tx(e){const t=J0(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:s=!0,preloadedState:a=void 0,enhancers:c=void 0}=e||{};let d;if(typeof n=="function")d=n;else if(Oo(n))d=Dp(n);else throw new Error(process.env.NODE_ENV==="production"?tt(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"?tt(2):"`middleware` field must be a callback");let u;if(typeof r=="function"){if(u=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(process.env.NODE_ENV==="production"?tt(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(process.env.NODE_ENV!=="production"&&u.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?tt(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&s){let f=new Set;u.forEach(m=>{if(f.has(m))throw new Error(process.env.NODE_ENV==="production"?tt(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(m)})}let p=rs;i&&(p=U0({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const h=d0(...u),y=ex(h);if(process.env.NODE_ENV!=="production"&&c&&typeof c!="function")throw new Error(process.env.NODE_ENV==="production"?tt(5):"`enhancers` field must be a callback");let x=typeof c=="function"?c(y):y();if(process.env.NODE_ENV!=="production"&&!Array.isArray(x))throw new Error(process.env.NODE_ENV==="production"?tt(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&x.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?tt(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&u.length&&!x.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=p(...x);return Al(d,a,g)}function fu(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"?tt(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?tt(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const c=typeof s=="string"?s:s.type;if(!c)throw new Error(process.env.NODE_ENV==="production"?tt(28):"`builder.addCase` cannot be called with an empty action type");if(c in t)throw new Error(process.env.NODE_ENV==="production"?tt(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${c}'`);return t[c]=a,i},addAsyncThunk(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?tt(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"?tt(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"?tt(31):"`builder.addDefaultCase` can only be called once");return r=s,i}};return e(i),[t,n,r]}function nx(e){return typeof e=="function"}function rx(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?tt(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]=fu(t),s;if(nx(e))s=()=>au(e());else{const c=au(e);s=()=>c}function a(c=s(),d){let u=[n[d.type],...r.filter(({matcher:p})=>p(d)).map(({reducer:p})=>p)];return u.filter(p=>!!p).length===0&&(u=[i]),u.reduce((p,h)=>{if(h)if(Dn(p)){const x=h(p,d);return x===void 0?p:x}else{if(sn(p))return Qp(p,y=>h(y,d));{const y=h(p,d);if(y===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return p},c)}return a.getInitialState=s,a}var ox=(e,t)=>ou(e)?e.match(t):e(t);function ix(...e){return t=>e.some(n=>ox(n,t))}var sx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ax=(e=21)=>{let t="",n=e;for(;n--;)t+=sx[Math.random()*64|0];return t},lx=["name","message","stack","code"],Ul=class{constructor(e,t){this.payload=e,this.meta=t}_type},hu=class{constructor(e,t){this.payload=e,this.meta=t}_type},cx=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of lx)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},gu="External signal was aborted",bt=(()=>{function e(t,n,r){const i=_o(t+"/fulfilled",(d,u,p,h)=>({payload:d,meta:{...h||{},arg:p,requestId:u,requestStatus:"fulfilled"}})),s=_o(t+"/pending",(d,u,p)=>({payload:void 0,meta:{...p||{},arg:u,requestId:d,requestStatus:"pending"}})),a=_o(t+"/rejected",(d,u,p,h,y)=>({payload:h,error:(r&&r.serializeError||cx)(d||"Rejected"),meta:{...y||{},arg:p,requestId:u,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function c(d,{signal:u}={}){return(p,h,y)=>{const x=r?.idGenerator?r.idGenerator(d):ax(),g=new AbortController;let f,m;function S(b){m=b,g.abort()}u&&(u.aborted?S(gu):u.addEventListener("abort",()=>S(gu),{once:!0}));const C=(async function(){let b;try{let w=r?.condition?.(d,{getState:h,extra:y});if(px(w)&&(w=await w),w===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const A=new Promise((I,z)=>{f=()=>{z({name:"AbortError",message:m||"Aborted"})},g.signal.addEventListener("abort",f,{once:!0})});p(s(x,d,r?.getPendingMeta?.({requestId:x,arg:d},{getState:h,extra:y}))),b=await Promise.race([A,Promise.resolve(n(d,{dispatch:p,getState:h,extra:y,requestId:x,signal:g.signal,abort:S,rejectWithValue:(I,z)=>new Ul(I,z),fulfillWithValue:(I,z)=>new hu(I,z)})).then(I=>{if(I instanceof Ul)throw I;return I instanceof hu?i(I.payload,x,d,I.meta):i(I,x,d)})])}catch(w){b=w instanceof Ul?a(null,x,d,w.payload,w.meta):a(w,x,d)}finally{f&&g.signal.removeEventListener("abort",f)}return r&&!r.dispatchConditionRejection&&a.match(b)&&b.meta.condition||p(b),b})();return Object.assign(C,{abort:S,requestId:x,arg:d,unwrap(){return C.then(dx)}})}}return Object.assign(c,{pending:s,rejected:a,fulfilled:i,settled:ix(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 px(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ux=Symbol.for("rtk-slice-createasyncthunk");function fx(e,t){return`${e}/${t}`}function hx({creators:e}={}){const t=e?.asyncThunk?.[ux];return function(r){const{name:i,reducerPath:s=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?tt(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(mx()):r.reducers)||{},c=Object.keys(a),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(b,v){const w=typeof b=="string"?b:b.type;if(!w)throw new Error(process.env.NODE_ENV==="production"?tt(12):"`context.addCase` cannot be called with an empty action type");if(w in d.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?tt(13):"`context.addCase` cannot be called with two reducers for the same action type: "+w);return d.sliceCaseReducersByType[w]=v,u},addMatcher(b,v){return d.sliceMatchers.push({matcher:b,reducer:v}),u},exposeAction(b,v){return d.actionCreators[b]=v,u},exposeCaseReducer(b,v){return d.sliceCaseReducersByName[b]=v,u}};c.forEach(b=>{const v=a[b],w={reducerName:b,type:fx(i,b),createNotation:typeof r.reducers=="function"};bx(v)?vx(w,v,u,t):yx(w,v,u)});function p(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?tt(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"?fu(r.extraReducers):[r.extraReducers],A={...b,...d.sliceCaseReducersByType};return rx(r.initialState,I=>{for(let z in A)I.addCase(z,A[z]);for(let z of d.sliceMatchers)I.addMatcher(z.matcher,z.reducer);for(let z of v)I.addMatcher(z.matcher,z.reducer);w&&I.addDefaultCase(w)})}const h=b=>b,y=new Map,x=new WeakMap;let g;function f(b,v){return g||(g=p()),g(b,v)}function m(){return g||(g=p()),g.getInitialState()}function S(b,v=!1){function w(I){let z=I[b];if(typeof z>"u"){if(v)z=bs(x,w,m);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?tt(15):"selectSlice returned undefined for an uninjected slice reducer")}return z}function A(I=h){const z=bs(y,v,()=>new WeakMap);return bs(z,I,()=>{const M={};for(const[L,O]of Object.entries(r.selectors??{}))M[L]=gx(O,I,()=>bs(x,I,m),v);return M})}return{reducerPath:b,getSelectors:A,get selectors(){return A(w)},selectSlice:w}}const C={name:i,reducer:f,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:f},w),{...C,...S(A,!0)}}};return C}}function gx(e,t,n,r){function i(s,...a){let c=t(s);if(typeof c>"u"){if(r)c=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?tt(16):"selectState returned undefined for an uninjected slice reducer")}return e(c,...a)}return i.unwrapped=e,i}var mu=hx();function mx(){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 yx({type:e,reducerName:t,createNotation:n},r,i){let s,a;if("reducer"in r){if(n&&!xx(r))throw new Error(process.env.NODE_ENV==="production"?tt(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?_o(e,a):_o(e))}function bx(e){return e._reducerDefinitionType==="asyncThunk"}function xx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function vx({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?tt(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:c,rejected:d,settled:u,options:p}=n,h=i(e,s,p);r.exposeAction(t,h),a&&r.addCase(h.fulfilled,a),c&&r.addCase(h.pending,c),d&&r.addCase(h.rejected,d),u&&r.addMatcher(h.settled,u),r.exposeCaseReducer(t,{fulfilled:a||vs,pending:c||vs,rejected:d||vs,settled:u||vs})}function vs(){}function tt(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 Hl="persist:",yu="persist/FLUSH",Rl="persist/REHYDRATE",bu="persist/PAUSE",xu="persist/PERSIST",vu="persist/PURGE",Su="persist/REGISTER",Sx=-1;function $o(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$o=function(n){return typeof n}:$o=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$o(e)}function wu(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 wx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wu(n,!0).forEach(function(r){Cx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wu(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ex(e,t,n,r){var i=r.debug,s=wx({},n);return e&&$o(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&&$o(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function Tx(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:Hl).concat(e.key),a=e.storage,c;e.serialize===!1?c=function(w){return w}:typeof e.serialize=="function"?c=e.serialize:c=Ax;var d=e.writeFailHandler||null,u={},p={},h=[],y=null,x=null,g=function(w){Object.keys(w).forEach(function(A){S(A)&&u[A]!==w[A]&&h.indexOf(A)===-1&&h.push(A)}),Object.keys(u).forEach(function(A){w[A]===void 0&&S(A)&&h.indexOf(A)===-1&&u[A]!==void 0&&h.push(A)}),y===null&&(y=setInterval(f,i)),u=w};function f(){if(h.length===0){y&&clearInterval(y),y=null;return}var v=h.shift(),w=r.reduce(function(A,I){return I.in(A,v,u)},u[v]);if(w!==void 0)try{p[v]=c(w)}catch(A){console.error("redux-persist/createPersistoid: error serializing state",A)}else delete p[v];h.length===0&&m()}function m(){Object.keys(p).forEach(function(v){u[v]===void 0&&delete p[v]}),x=a.setItem(s,c(p)).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(;h.length!==0;)f();return x||Promise.resolve()};return{update:g,flush:b}}function Ax(e){return JSON.stringify(e)}function kx(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:Hl).concat(e.key),r=e.storage,i=e.debug,s;return e.deserialize===!1?s=function(c){return c}:typeof e.deserialize=="function"?s=e.deserialize:s=Px,r.getItem(n).then(function(a){if(a)try{var c={},d=s(a);return Object.keys(d).forEach(function(u){c[u]=t.reduceRight(function(p,h){return h.out(p,u,d)},s(d[u]))}),c}catch(u){throw process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/getStoredState: Error restoring data ".concat(a),u),u}else return})}function Px(e){return JSON.parse(e)}function Ox(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:Hl).concat(e.key);return t.removeItem(n,Ix)}function Ix(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function Cu(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 $n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cu(n,!0).forEach(function(r){Nx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cu(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fx(e,t){if(e==null)return{};var n=Mx(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 Mx(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 Dx=5e3;function _x(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:Sx;e.debug;var r=e.stateReconciler===void 0?Ex:e.stateReconciler,i=e.getStoredState||kx,s=e.timeout!==void 0?e.timeout:Dx,a=null,c=!1,d=!0,u=function(h){return h._persist.rehydrated&&a&&!d&&a.update(h),h};return function(p,h){var y=p||{},x=y._persist,g=Fx(y,["_persist"]),f=g;if(h.type===xu){var m=!1,S=function(z,M){process.env.NODE_ENV!=="production"&&m&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),z,M),m||(h.rehydrate(e.key,z,M),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=Tx(e)),x)return $n({},t(f,h),{_persist:x});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),i(e).then(function(I){var z=e.migrate||function(M,L){return Promise.resolve(M)};z(I,n).then(function(M){S(M)},function(M){process.env.NODE_ENV!=="production"&&M&&console.error("redux-persist: migration error",M),S(void 0,M)})},function(I){S(void 0,I)}),$n({},t(f,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===vu)return c=!0,h.result(Ox(e)),$n({},t(f,h),{_persist:x});if(h.type===yu)return h.result(a&&a.flush()),$n({},t(f,h),{_persist:x});if(h.type===bu)d=!0;else if(h.type===Rl){if(c)return $n({},f,{_persist:$n({},x,{rehydrated:!0})});if(h.key===e.key){var C=t(f,h),b=h.payload,v=r!==!1&&b!==void 0?r(b,p,C,e):C,w=$n({},v,{_persist:$n({},x,{rehydrated:!0})});return u(w)}}}if(!x)return t(p,h);var A=t(f,h);return A===f?p:u($n({},A,{_persist:x}))}}function Eu(e){return Lx(e)||zx(e)||$x()}function $x(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function zx(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Lx(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 Tu(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 ql(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tu(n,!0).forEach(function(r){Bx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tu(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Au={registry:[],bootstrapped:!1},jx=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Au,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Su:return ql({},t,{registry:[].concat(Eu(t.registry),[n.key])});case Rl:var r=t.registry.indexOf(n.key),i=Eu(t.registry);return i.splice(r,1),ql({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Wx(e,t,n){if(process.env.NODE_ENV!=="production"){var r={},i=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];i.forEach(function(u){r[u]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(u,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=Al(jx,Au,void 0),a=function(p){s.dispatch({type:Su,key:p})},c=function(p,h,y){var x={type:Rl,payload:h,err:y,key:p};e.dispatch(x),s.dispatch(x)},d=ql({},s,{purge:function(){var p=[];return e.dispatch({type:vu,result:function(y){p.push(y)}}),Promise.all(p)},flush:function(){var p=[];return e.dispatch({type:yu,result:function(y){p.push(y)}}),Promise.all(p)},pause:function(){e.dispatch({type:bu})},persist:function(){e.dispatch({type:xu,register:a,rehydrate:c})}});return d.persist(),d}function ku(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vx}=Object.prototype,{getPrototypeOf:Yl}=Object,{iterator:Ss,toStringTag:Pu}=Symbol,ws=(e=>t=>{const n=Vx.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),an=e=>(e=e.toLowerCase(),t=>ws(t)===e),Cs=e=>t=>typeof t===e,{isArray:zr}=Array,Lr=Cs("undefined");function zo(e){return e!==null&&!Lr(e)&&e.constructor!==null&&!Lr(e.constructor)&&Dt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ou=an("ArrayBuffer");function Ux(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ou(e.buffer),t}const Hx=Cs("string"),Dt=Cs("function"),Iu=Cs("number"),Lo=e=>e!==null&&typeof e=="object",Rx=e=>e===!0||e===!1,Es=e=>{if(ws(e)!=="object")return!1;const t=Yl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pu in e)&&!(Ss in e)},qx=e=>{if(!Lo(e)||zo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Yx=an("Date"),Kx=an("File"),Gx=an("Blob"),Xx=an("FileList"),Jx=e=>Lo(e)&&Dt(e.pipe),Qx=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Dt(e.append)&&((t=ws(e))==="formdata"||t==="object"&&Dt(e.toString)&&e.toString()==="[object FormData]"))},Zx=an("URLSearchParams"),[ev,tv,nv,rv]=["ReadableStream","Request","Response","Headers"].map(an),ov=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),zr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(zo(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let c;for(r=0;r<a;r++)c=s[r],t.call(null,e[c],c,e)}}function Nu(e,t){if(zo(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 dr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fu=e=>!Lr(e)&&e!==dr;function Kl(){const{caseless:e,skipUndefined:t}=Fu(this)&&this||{},n={},r=(i,s)=>{const a=e&&Nu(n,s)||s;Es(n[a])&&Es(i)?n[a]=Kl(n[a],i):Es(i)?n[a]=Kl({},i):zr(i)?n[a]=i.slice():(!t||!Lr(i))&&(n[a]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Bo(arguments[i],r);return n}const iv=(e,t,n,{allOwnKeys:r}={})=>(Bo(t,(i,s)=>{n&&Dt(i)?e[s]=ku(i,n):e[s]=i},{allOwnKeys:r}),e),sv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),av=(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)},lv=(e,t,n,r)=>{let i,s,a;const c={};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))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&Yl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cv=(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(zr(e))return e;let t=e.length;if(!Iu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},pv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Yl(Uint8Array)),uv=(e,t)=>{const r=(e&&e[Ss]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},fv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},hv=an("HTMLFormElement"),gv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Mu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),mv=an("RegExp"),Du=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bo(n,(i,s)=>{let a;(a=t(i,s,e))!==!1&&(r[s]=a||i)}),Object.defineProperties(e,r)},yv=e=>{Du(e,(t,n)=>{if(Dt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Dt(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+"'")})}})},bv=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return zr(e)?r(e):r(String(e).split(t)),n},xv=()=>{},vv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Sv(e){return!!(e&&Dt(e.append)&&e[Pu]==="FormData"&&e[Ss])}const wv=e=>{const t=new Array(10),n=(r,i)=>{if(Lo(r)){if(t.indexOf(r)>=0)return;if(zo(r))return r;if(!("toJSON"in r)){t[i]=r;const s=zr(r)?[]:{};return Bo(r,(a,c)=>{const d=n(a,i+1);!Lr(d)&&(s[c]=d)}),t[i]=void 0,s}}return r};return n(e,0)},Cv=an("AsyncFunction"),Ev=e=>e&&(Lo(e)||Dt(e))&&Dt(e.then)&&Dt(e.catch),_u=((e,t)=>e?setImmediate:t?((n,r)=>(dr.addEventListener("message",({source:i,data:s})=>{i===dr&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),dr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Dt(dr.postMessage)),Tv=typeof queueMicrotask<"u"?queueMicrotask.bind(dr):typeof process<"u"&&process.nextTick||_u,R={isArray:zr,isArrayBuffer:Ou,isBuffer:zo,isFormData:Qx,isArrayBufferView:Ux,isString:Hx,isNumber:Iu,isBoolean:Rx,isObject:Lo,isPlainObject:Es,isEmptyObject:qx,isReadableStream:ev,isRequest:tv,isResponse:nv,isHeaders:rv,isUndefined:Lr,isDate:Yx,isFile:Kx,isBlob:Gx,isRegExp:mv,isFunction:Dt,isStream:Jx,isURLSearchParams:Zx,isTypedArray:pv,isFileList:Xx,forEach:Bo,merge:Kl,extend:iv,trim:ov,stripBOM:sv,inherits:av,toFlatObject:lv,kindOf:ws,kindOfTest:an,endsWith:cv,toArray:dv,forEachEntry:uv,matchAll:fv,isHTMLForm:hv,hasOwnProperty:Mu,hasOwnProp:Mu,reduceDescriptors:Du,freezeMethods:yv,toObjectSet:bv,toCamelCase:gv,noop:xv,toFiniteNumber:vv,findKey:Nu,global:dr,isContextDefined:Fu,isSpecCompliantForm:Sv,toJSONObject:wv,isAsyncFn:Cv,isThenable:Ev,setImmediate:_u,asap:Tv,isIterable:e=>e!=null&&Dt(e[Ss])};function Me(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)}R.inherits(Me,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:R.toJSONObject(this.config),code:this.code,status:this.status}}});const $u=Me.prototype,zu={};["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=>{zu[e]={value:e}}),Object.defineProperties(Me,zu),Object.defineProperty($u,"isAxiosError",{value:!0}),Me.from=(e,t,n,r,i,s)=>{const a=Object.create($u);R.toFlatObject(e,a,function(p){return p!==Error.prototype},u=>u!=="isAxiosError");const c=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return Me.call(a,c,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 Av=null;function Gl(e){return R.isPlainObject(e)||R.isArray(e)}function Lu(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function Bu(e,t,n){return e?e.concat(t).map(function(i,s){return i=Lu(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function kv(e){return R.isArray(e)&&!e.some(Gl)}const Pv=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function Ts(e,t,n){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=R.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!R.isUndefined(m[f])});const r=n.metaTokens,i=n.visitor||p,s=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(R.isDate(g))return g.toISOString();if(R.isBoolean(g))return g.toString();if(!d&&R.isBlob(g))throw new Me("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(g)||R.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function p(g,f,m){let S=g;if(g&&!m&&typeof g=="object"){if(R.endsWith(f,"{}"))f=r?f:f.slice(0,-2),g=JSON.stringify(g);else if(R.isArray(g)&&kv(g)||(R.isFileList(g)||R.endsWith(f,"[]"))&&(S=R.toArray(g)))return f=Lu(f),S.forEach(function(b,v){!(R.isUndefined(b)||b===null)&&t.append(a===!0?Bu([f],v,s):a===null?f:f+"[]",u(b))}),!1}return Gl(g)?!0:(t.append(Bu(m,f,s),u(g)),!1)}const h=[],y=Object.assign(Pv,{defaultVisitor:p,convertValue:u,isVisitable:Gl});function x(g,f){if(!R.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));h.push(g),R.forEach(g,function(S,C){(!(R.isUndefined(S)||S===null)&&i.call(t,S,R.isString(C)?C.trim():C,f,y))===!0&&x(S,f?f.concat(C):[C])}),h.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return x(e),t}function ju(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Xl(e,t){this._pairs=[],e&&Ts(e,this,t)}const Wu=Xl.prototype;Wu.append=function(t,n){this._pairs.push([t,n])},Wu.toString=function(t){const n=t?function(r){return t.call(this,r,ju)}:ju;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Ov(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Vu(e,t,n){if(!t)return e;const r=n&&n.encode||Ov;R.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=R.isURLSearchParams(t)?t.toString():new Xl(t,n).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Uu{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){R.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Hu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Iv={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xl,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Jl=typeof window<"u"&&typeof document<"u",Ql=typeof navigator=="object"&&navigator||void 0,Nv=Jl&&(!Ql||["ReactNative","NativeScript","NS"].indexOf(Ql.product)<0),Fv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mv=Jl&&window.location.href||"http://localhost",wt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jl,hasStandardBrowserEnv:Nv,hasStandardBrowserWebWorkerEnv:Fv,navigator:Ql,origin:Mv},Symbol.toStringTag,{value:"Module"})),...Iv};function Dv(e,t){return Ts(e,new wt.classes.URLSearchParams,{visitor:function(n,r,i,s){return wt.isNode&&R.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function _v(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $v(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 Ru(e){function t(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),d=s>=n.length;return a=!a&&R.isArray(i)?i.length:a,d?(R.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!c):((!i[a]||!R.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],s)&&R.isArray(i[a])&&(i[a]=$v(i[a])),!c)}if(R.isFormData(e)&&R.isFunction(e.entries)){const n={};return R.forEachEntry(e,(r,i)=>{t(_v(r),i,n,0)}),n}return null}function zv(e,t,n){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const jo={transitional:Hu,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=R.isObject(t);if(s&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return i?JSON.stringify(Ru(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t)||R.isReadableStream(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Dv(t,this.formSerializer).toString();if((c=R.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ts(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),zv(t)):t}],transformResponse:[function(t){const n=this.transitional||jo.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(R.isResponse(t)||R.isReadableStream(t))return t;if(t&&R.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(c){if(a)throw c.name==="SyntaxError"?Me.from(c,Me.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wt.classes.FormData,Blob:wt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{jo.headers[e]={}});const Lv=R.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"]),Bv=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
20
|
-
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&
|
|
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[qu]=this[qu]={accessors:{}}).accessors,i=this.prototype;function s(a){const c=Wo(a);r[c]||(Uv(i,a),r[c]=!0)}return R.isArray(t)?t.forEach(s):s(t),this}};_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),R.reduceDescriptors(_t.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),R.freezeMethods(_t);function ec(e,t){const n=this||jo,r=t||n,i=_t.from(r.headers);let s=r.data;return R.forEach(e,function(c){s=c.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Yu(e){return!!(e&&e.__CANCEL__)}function Br(e,t,n){Me.call(this,e??"canceled",Me.ERR_CANCELED,t,n),this.name="CanceledError"}R.inherits(Br,Me,{__CANCEL__:!0});function Ku(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Me("Request failed with status code "+n.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Hv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Rv(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 u=Date.now(),p=r[s];a||(a=u),n[i]=d,r[i]=u;let h=s,y=0;for(;h!==i;)y+=n[h++],h=h%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-a<t)return;const x=p&&u-p;return x?Math.round(y*1e3/x):void 0}}function qv(e,t){let n=0,r=1e3/t,i,s;const a=(u,p=Date.now())=>{n=p,i=null,s&&(clearTimeout(s),s=null),e(...u)};return[(...u)=>{const p=Date.now(),h=p-n;h>=r?a(u,p):(i=u,s||(s=setTimeout(()=>{s=null,a(i)},r-h)))},()=>i&&a(i)]}const ks=(e,t,n=3)=>{let r=0;const i=Rv(50,250);return qv(s=>{const a=s.loaded,c=s.lengthComputable?s.total:void 0,d=a-r,u=i(d),p=a<=c;r=a;const h={loaded:a,total:c,progress:c?a/c:void 0,bytes:d,rate:u||void 0,estimated:u&&c&&p?(c-a)/u:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},Gu=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Xu=e=>(...t)=>R.asap(()=>e(...t)),Yv=wt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,wt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(wt.origin),wt.navigator&&/(msie|trident)/i.test(wt.navigator.userAgent)):()=>!0,Kv=wt.hasStandardBrowserEnv?{write(e,t,n,r,i,s,a){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];R.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),R.isString(r)&&c.push(`path=${r}`),R.isString(i)&&c.push(`domain=${i}`),s===!0&&c.push("secure"),R.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.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 Gv(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xv(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ju(e,t,n){let r=!Gv(t);return e&&(r||n==!1)?Xv(e,t):t}const Qu=e=>e instanceof _t?{...e}:e;function pr(e,t){t=t||{};const n={};function r(u,p,h,y){return R.isPlainObject(u)&&R.isPlainObject(p)?R.merge.call({caseless:y},u,p):R.isPlainObject(p)?R.merge({},p):R.isArray(p)?p.slice():p}function i(u,p,h,y){if(R.isUndefined(p)){if(!R.isUndefined(u))return r(void 0,u,h,y)}else return r(u,p,h,y)}function s(u,p){if(!R.isUndefined(p))return r(void 0,p)}function a(u,p){if(R.isUndefined(p)){if(!R.isUndefined(u))return r(void 0,u)}else return r(void 0,p)}function c(u,p,h){if(h in t)return r(u,p);if(h in e)return r(void 0,u)}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:c,headers:(u,p,h)=>i(Qu(u),Qu(p),h,!0)};return R.forEach(Object.keys({...e,...t}),function(p){const h=d[p]||i,y=h(e[p],t[p],p);R.isUndefined(y)&&h!==c||(n[p]=y)}),n}const Zu=e=>{const t=pr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=_t.from(a),t.url=Vu(Ju(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),R.isFormData(n)){if(wt.hasStandardBrowserEnv||wt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(R.isFunction(n.getHeaders)){const d=n.getHeaders(),u=["content-type","content-length"];Object.entries(d).forEach(([p,h])=>{u.includes(p.toLowerCase())&&a.set(p,h)})}}if(wt.hasStandardBrowserEnv&&(r&&R.isFunction(r)&&(r=r(t)),r||r!==!1&&Yv(t.url))){const d=i&&s&&Kv.read(s);d&&a.set(i,d)}return t},Jv=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=Zu(e);let s=i.data;const a=_t.from(i.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:u}=i,p,h,y,x,g;function f(){x&&x(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function S(){if(!m)return;const b=_t.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),w={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:e,request:m};Ku(function(I){n(I),f()},function(I){r(I),f()},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 Me("Request aborted",Me.ECONNABORTED,e,m)),m=null)},m.onerror=function(v){const w=v&&v.message?v.message:"Network Error",A=new Me(w,Me.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||Hu;i.timeoutErrorMessage&&(v=i.timeoutErrorMessage),r(new Me(v,w.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,e,m)),m=null},s===void 0&&a.setContentType(null),"setRequestHeader"in m&&R.forEach(a.toJSON(),function(v,w){m.setRequestHeader(w,v)}),R.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),c&&c!=="json"&&(m.responseType=i.responseType),u&&([y,g]=ks(u,!0),m.addEventListener("progress",y)),d&&m.upload&&([h,x]=ks(d),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",x)),(i.cancelToken||i.signal)&&(p=b=>{m&&(r(!b||b.type?new Br(null,e,m):b),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const C=Hv(i.url);if(C&&wt.protocols.indexOf(C)===-1){r(new Me("Unsupported protocol "+C+":",Me.ERR_BAD_REQUEST,e));return}m.send(s||null)})},Qv=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(u){if(!i){i=!0,c();const p=u instanceof Error?u:this.reason;r.abort(p instanceof Me?p:new Br(p instanceof Error?p.message:p))}};let a=t&&setTimeout(()=>{a=null,s(new Me(`timeout ${t} of ms exceeded`,Me.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:d}=r;return d.unsubscribe=()=>R.asap(c),d}},Zv=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},eS=async function*(e,t){for await(const n of tS(e))yield*Zv(n,t)},tS=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()}},ef=(e,t,n,r)=>{const i=eS(e,t);let s=0,a,c=d=>{a||(a=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:u,value:p}=await i.next();if(u){c(),d.close();return}let h=p.byteLength;if(n){let y=s+=h;n(y)}d.enqueue(new Uint8Array(p))}catch(u){throw c(u),u}},cancel(d){return c(d),i.return()}},{highWaterMark:2})},tf=64*1024,{isFunction:Ps}=R,nS=(({Request:e,Response:t})=>({Request:e,Response:t}))(R.global),{ReadableStream:nf,TextEncoder:rf}=R.global,of=(e,...t)=>{try{return!!e(...t)}catch{return!1}},rS=e=>{e=R.merge.call({skipUndefined:!0},nS,e);const{fetch:t,Request:n,Response:r}=e,i=t?Ps(t):typeof fetch=="function",s=Ps(n),a=Ps(r);if(!i)return!1;const c=i&&Ps(nf),d=i&&(typeof rf=="function"?(g=>f=>g.encode(f))(new rf):async g=>new Uint8Array(await new n(g).arrayBuffer())),u=s&&c&&of(()=>{let g=!1;const f=new n(wt.origin,{body:new nf,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!f}),p=a&&c&&of(()=>R.isReadableStream(new r("").body)),h={stream:p&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(f,m)=>{let S=f&&f[g];if(S)return S.call(f);throw new Me(`Response type '${g}' is not supported`,Me.ERR_NOT_SUPPORT,m)})});const y=async g=>{if(g==null)return 0;if(R.isBlob(g))return g.size;if(R.isSpecCompliantForm(g))return(await new n(wt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(R.isArrayBufferView(g)||R.isArrayBuffer(g))return g.byteLength;if(R.isURLSearchParams(g)&&(g=g+""),R.isString(g))return(await d(g)).byteLength},x=async(g,f)=>{const m=R.toFiniteNumber(g.getContentLength());return m??y(f)};return async g=>{let{url:f,method:m,data:S,signal:C,cancelToken:b,timeout:v,onDownloadProgress:w,onUploadProgress:A,responseType:I,headers:z,withCredentials:M="same-origin",fetchOptions:L}=Zu(g),O=t||fetch;I=I?(I+"").toLowerCase():"text";let T=Qv([C,b&&b.toAbortSignal()],v),N=null;const D=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let U;try{if(A&&u&&m!=="get"&&m!=="head"&&(U=await x(z,S))!==0){let W=new n(f,{method:"POST",body:S,duplex:"half"}),q;if(R.isFormData(S)&&(q=W.headers.get("content-type"))&&z.setContentType(q),W.body){const[J,X]=Gu(U,ks(Xu(A)));S=ef(W.body,tf,J,X)}}R.isString(M)||(M=M?"include":"omit");const F=s&&"credentials"in n.prototype,_={...L,signal:T,method:m.toUpperCase(),headers:z.normalize().toJSON(),body:S,duplex:"half",credentials:F?M:void 0};N=s&&new n(f,_);let k=await(s?O(N,L):O(f,_));const V=p&&(I==="stream"||I==="response");if(p&&(w||V&&D)){const W={};["status","statusText","headers"].forEach(ee=>{W[ee]=k[ee]});const q=R.toFiniteNumber(k.headers.get("content-length")),[J,X]=w&&Gu(q,ks(Xu(w),!0))||[];k=new r(ef(k.body,tf,J,()=>{X&&X(),D&&D()}),W)}I=I||"text";let $=await h[R.findKey(h,I)||"text"](k,g);return!V&&D&&D(),await new Promise((W,q)=>{Ku(W,q,{data:$,headers:_t.from(k.headers),status:k.status,statusText:k.statusText,config:g,request:N})})}catch(F){throw D&&D(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new Me("Network Error",Me.ERR_NETWORK,g,N),{cause:F.cause||F}):Me.from(F,F&&F.code,g,N)}}},oS=new Map,sf=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let a=s.length,c=a,d,u,p=oS;for(;c--;)d=s[c],u=p.get(d),u===void 0&&p.set(d,u=c?new Map:rS(t)),p=u;return u};sf();const tc={http:Av,xhr:Jv,fetch:{get:sf}};R.forEach(tc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const af=e=>`- ${e}`,iS=e=>R.isFunction(e)||e===null||e===!1;function sS(e,t){e=R.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let a=0;a<n;a++){r=e[a];let c;if(i=r,!iS(r)&&(i=tc[(c=String(r)).toLowerCase()],i===void 0))throw new Me(`Unknown adapter '${c}'`);if(i&&(R.isFunction(i)||(i=i.get(t))))break;s[c||"#"+a]=i}if(!i){const a=Object.entries(s).map(([d,u])=>`adapter ${d} `+(u===!1?"is not supported by the environment":"is not available in the build"));let c=n?a.length>1?`since :
|
|
17
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),c||(f.measureTime(()=>{const m=h.getState(),S=Vl(m,"",t,n,s,p);if(S){const{keyPath:C,value:x}=S;console.error(`A non-serializable value was detected in the state, in the path: \`${C}\`. Value:`,x,`
|
|
18
|
+
Take a look at the reducer(s) handling this action type: ${b.type}.
|
|
19
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),f.warnIfExceeded()),g}}}function xs(e){return typeof e=="boolean"}var ex=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let a=new su;if(n&&(xs(n)?a.push(H0):a.push(R0(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let c={};xs(r)||(c=r),a.unshift(Q0(c))}if(i){let c={};xs(i)||(c=i),a.push(Z0(c))}if(s){let c={};xs(s)||(c=s),a.unshift(G0(c))}}return a},tx="RTK_autoBatch",uu=e=>t=>{setTimeout(t,e)},nx=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,s=!1,a=!1;const c=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:uu(10):e.type==="callback"?e.queueNotification:uu(e.timeout),u=()=>{a=!1,s&&(s=!1,c.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const h=()=>i&&p(),y=r.subscribe(h);return c.add(p),()=>{y(),c.delete(p)}},dispatch(p){try{return i=!p?.meta?.[tx],s=!i,s&&(a||(a=!0,d(u))),r.dispatch(p)}finally{i=!0}}})},rx=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new su(e);return r&&i.push(nx(typeof r=="object"?r:void 0)),i};function ox(e){const t=ex(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:s=!0,preloadedState:a=void 0,enhancers:c=void 0}=e||{};let d;if(typeof n=="function")d=n;else if(Po(n))d=Dp(n);else throw new Error(process.env.NODE_ENV==="production"?nt(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"?nt(2):"`middleware` field must be a callback");let u;if(typeof r=="function"){if(u=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(process.env.NODE_ENV==="production"?nt(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(process.env.NODE_ENV!=="production"&&u.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?nt(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&s){let f=new Set;u.forEach(m=>{if(f.has(m))throw new Error(process.env.NODE_ENV==="production"?nt(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(m)})}let p=rs;i&&(p=q0({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const h=f0(...u),y=rx(h);if(process.env.NODE_ENV!=="production"&&c&&typeof c!="function")throw new Error(process.env.NODE_ENV==="production"?nt(5):"`enhancers` field must be a callback");let b=typeof c=="function"?c(y):y();if(process.env.NODE_ENV!=="production"&&!Array.isArray(b))throw new Error(process.env.NODE_ENV==="production"?nt(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&b.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?nt(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&u.length&&!b.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=p(...b);return Al(d,a,g)}function fu(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"?nt(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?nt(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const c=typeof s=="string"?s:s.type;if(!c)throw new Error(process.env.NODE_ENV==="production"?nt(28):"`builder.addCase` cannot be called with an empty action type");if(c in t)throw new Error(process.env.NODE_ENV==="production"?nt(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${c}'`);return t[c]=a,i},addAsyncThunk(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?nt(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"?nt(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"?nt(31):"`builder.addDefaultCase` can only be called once");return r=s,i}};return e(i),[t,n,r]}function ix(e){return typeof e=="function"}function sx(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?nt(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]=fu(t),s;if(ix(e))s=()=>au(e());else{const c=au(e);s=()=>c}function a(c=s(),d){let u=[n[d.type],...r.filter(({matcher:p})=>p(d)).map(({reducer:p})=>p)];return u.filter(p=>!!p).length===0&&(u=[i]),u.reduce((p,h)=>{if(h)if(Dn(p)){const b=h(p,d);return b===void 0?p:b}else{if(sn(p))return Qp(p,y=>h(y,d));{const y=h(p,d);if(y===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return p},c)}return a.getInitialState=s,a}var ax=(e,t)=>ou(e)?e.match(t):e(t);function lx(...e){return t=>e.some(n=>ax(n,t))}var cx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",dx=(e=21)=>{let t="",n=e;for(;n--;)t+=cx[Math.random()*64|0];return t},px=["name","message","stack","code"],Ul=class{constructor(e,t){this.payload=e,this.meta=t}_type},hu=class{constructor(e,t){this.payload=e,this.meta=t}_type},ux=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of px)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},gu="External signal was aborted",xt=(()=>{function e(t,n,r){const i=Do(t+"/fulfilled",(d,u,p,h)=>({payload:d,meta:{...h||{},arg:p,requestId:u,requestStatus:"fulfilled"}})),s=Do(t+"/pending",(d,u,p)=>({payload:void 0,meta:{...p||{},arg:u,requestId:d,requestStatus:"pending"}})),a=Do(t+"/rejected",(d,u,p,h,y)=>({payload:h,error:(r&&r.serializeError||ux)(d||"Rejected"),meta:{...y||{},arg:p,requestId:u,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function c(d,{signal:u}={}){return(p,h,y)=>{const b=r?.idGenerator?r.idGenerator(d):dx(),g=new AbortController;let f,m;function S(x){m=x,g.abort()}u&&(u.aborted?S(gu):u.addEventListener("abort",()=>S(gu),{once:!0}));const C=(async function(){let x;try{let w=r?.condition?.(d,{getState:h,extra:y});if(hx(w)&&(w=await w),w===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const A=new Promise((O,L)=>{f=()=>{L({name:"AbortError",message:m||"Aborted"})},g.signal.addEventListener("abort",f,{once:!0})});p(s(b,d,r?.getPendingMeta?.({requestId:b,arg:d},{getState:h,extra:y}))),x=await Promise.race([A,Promise.resolve(n(d,{dispatch:p,getState:h,extra:y,requestId:b,signal:g.signal,abort:S,rejectWithValue:(O,L)=>new Ul(O,L),fulfillWithValue:(O,L)=>new hu(O,L)})).then(O=>{if(O instanceof Ul)throw O;return O instanceof hu?i(O.payload,b,d,O.meta):i(O,b,d)})])}catch(w){x=w instanceof Ul?a(null,b,d,w.payload,w.meta):a(w,b,d)}finally{f&&g.signal.removeEventListener("abort",f)}return r&&!r.dispatchConditionRejection&&a.match(x)&&x.meta.condition||p(x),x})();return Object.assign(C,{abort:S,requestId:b,arg:d,unwrap(){return C.then(fx)}})}}return Object.assign(c,{pending:s,rejected:a,fulfilled:i,settled:lx(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function fx(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function hx(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var gx=Symbol.for("rtk-slice-createasyncthunk");function mx(e,t){return`${e}/${t}`}function yx({creators:e}={}){const t=e?.asyncThunk?.[gx];return function(r){const{name:i,reducerPath:s=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?nt(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(xx()):r.reducers)||{},c=Object.keys(a),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(x,v){const w=typeof x=="string"?x:x.type;if(!w)throw new Error(process.env.NODE_ENV==="production"?nt(12):"`context.addCase` cannot be called with an empty action type");if(w in d.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?nt(13):"`context.addCase` cannot be called with two reducers for the same action type: "+w);return d.sliceCaseReducersByType[w]=v,u},addMatcher(x,v){return d.sliceMatchers.push({matcher:x,reducer:v}),u},exposeAction(x,v){return d.actionCreators[x]=v,u},exposeCaseReducer(x,v){return d.sliceCaseReducersByName[x]=v,u}};c.forEach(x=>{const v=a[x],w={reducerName:x,type:mx(i,x),createNotation:typeof r.reducers=="function"};Sx(v)?Cx(w,v,u,t):vx(w,v,u)});function p(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?nt(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[x={},v=[],w=void 0]=typeof r.extraReducers=="function"?fu(r.extraReducers):[r.extraReducers],A={...x,...d.sliceCaseReducersByType};return sx(r.initialState,O=>{for(let L in A)O.addCase(L,A[L]);for(let L of d.sliceMatchers)O.addMatcher(L.matcher,L.reducer);for(let L of v)O.addMatcher(L.matcher,L.reducer);w&&O.addDefaultCase(w)})}const h=x=>x,y=new Map,b=new WeakMap;let g;function f(x,v){return g||(g=p()),g(x,v)}function m(){return g||(g=p()),g.getInitialState()}function S(x,v=!1){function w(O){let L=O[x];if(typeof L>"u"){if(v)L=bs(b,w,m);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?nt(15):"selectSlice returned undefined for an uninjected slice reducer")}return L}function A(O=h){const L=bs(y,v,()=>new WeakMap);return bs(L,O,()=>{const M={};for(const[_,I]of Object.entries(r.selectors??{}))M[_]=bx(I,O,()=>bs(b,O,m),v);return M})}return{reducerPath:x,getSelectors:A,get selectors(){return A(w)},selectSlice:w}}const C={name:i,reducer:f,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:m,...S(s),injectInto(x,{reducerPath:v,...w}={}){const A=v??s;return x.inject({reducerPath:A,reducer:f},w),{...C,...S(A,!0)}}};return C}}function bx(e,t,n,r){function i(s,...a){let c=t(s);if(typeof c>"u"){if(r)c=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?nt(16):"selectState returned undefined for an uninjected slice reducer")}return e(c,...a)}return i.unwrapped=e,i}var mu=yx();function xx(){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 vx({type:e,reducerName:t,createNotation:n},r,i){let s,a;if("reducer"in r){if(n&&!wx(r))throw new Error(process.env.NODE_ENV==="production"?nt(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?Do(e,a):Do(e))}function Sx(e){return e._reducerDefinitionType==="asyncThunk"}function wx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Cx({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?nt(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:c,rejected:d,settled:u,options:p}=n,h=i(e,s,p);r.exposeAction(t,h),a&&r.addCase(h.fulfilled,a),c&&r.addCase(h.pending,c),d&&r.addCase(h.rejected,d),u&&r.addMatcher(h.settled,u),r.exposeCaseReducer(t,{fulfilled:a||vs,pending:c||vs,rejected:d||vs,settled:u||vs})}function vs(){}function nt(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 Hl="persist:",yu="persist/FLUSH",Rl="persist/REHYDRATE",bu="persist/PAUSE",xu="persist/PERSIST",vu="persist/PURGE",Su="persist/REGISTER",Ex=-1;function _o(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_o=function(n){return typeof n}:_o=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_o(e)}function wu(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 Tx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wu(n,!0).forEach(function(r){Ax(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wu(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ax(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kx(e,t,n,r){var i=r.debug,s=Tx({},n);return e&&_o(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&&_o(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function Px(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:Hl).concat(e.key),a=e.storage,c;e.serialize===!1?c=function(w){return w}:typeof e.serialize=="function"?c=e.serialize:c=Ox;var d=e.writeFailHandler||null,u={},p={},h=[],y=null,b=null,g=function(w){Object.keys(w).forEach(function(A){S(A)&&u[A]!==w[A]&&h.indexOf(A)===-1&&h.push(A)}),Object.keys(u).forEach(function(A){w[A]===void 0&&S(A)&&h.indexOf(A)===-1&&u[A]!==void 0&&h.push(A)}),y===null&&(y=setInterval(f,i)),u=w};function f(){if(h.length===0){y&&clearInterval(y),y=null;return}var v=h.shift(),w=r.reduce(function(A,O){return O.in(A,v,u)},u[v]);if(w!==void 0)try{p[v]=c(w)}catch(A){console.error("redux-persist/createPersistoid: error serializing state",A)}else delete p[v];h.length===0&&m()}function m(){Object.keys(p).forEach(function(v){u[v]===void 0&&delete p[v]}),b=a.setItem(s,c(p)).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 x=function(){for(;h.length!==0;)f();return b||Promise.resolve()};return{update:g,flush:x}}function Ox(e){return JSON.stringify(e)}function Ix(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:Hl).concat(e.key),r=e.storage,i=e.debug,s;return e.deserialize===!1?s=function(c){return c}:typeof e.deserialize=="function"?s=e.deserialize:s=Nx,r.getItem(n).then(function(a){if(a)try{var c={},d=s(a);return Object.keys(d).forEach(function(u){c[u]=t.reduceRight(function(p,h){return h.out(p,u,d)},s(d[u]))}),c}catch(u){throw process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/getStoredState: Error restoring data ".concat(a),u),u}else return})}function Nx(e){return JSON.parse(e)}function Fx(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:Hl).concat(e.key);return t.removeItem(n,Mx)}function Mx(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function Cu(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 $n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cu(n,!0).forEach(function(r){Dx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cu(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _x(e,t){if(e==null)return{};var n=$x(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 $x(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 zx=5e3;function Lx(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:Ex;e.debug;var r=e.stateReconciler===void 0?kx:e.stateReconciler,i=e.getStoredState||Ix,s=e.timeout!==void 0?e.timeout:zx,a=null,c=!1,d=!0,u=function(h){return h._persist.rehydrated&&a&&!d&&a.update(h),h};return function(p,h){var y=p||{},b=y._persist,g=_x(y,["_persist"]),f=g;if(h.type===xu){var m=!1,S=function(L,M){process.env.NODE_ENV!=="production"&&m&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),L,M),m||(h.rehydrate(e.key,L,M),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=Px(e)),b)return $n({},t(f,h),{_persist:b});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),i(e).then(function(O){var L=e.migrate||function(M,_){return Promise.resolve(M)};L(O,n).then(function(M){S(M)},function(M){process.env.NODE_ENV!=="production"&&M&&console.error("redux-persist: migration error",M),S(void 0,M)})},function(O){S(void 0,O)}),$n({},t(f,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===vu)return c=!0,h.result(Fx(e)),$n({},t(f,h),{_persist:b});if(h.type===yu)return h.result(a&&a.flush()),$n({},t(f,h),{_persist:b});if(h.type===bu)d=!0;else if(h.type===Rl){if(c)return $n({},f,{_persist:$n({},b,{rehydrated:!0})});if(h.key===e.key){var C=t(f,h),x=h.payload,v=r!==!1&&x!==void 0?r(x,p,C,e):C,w=$n({},v,{_persist:$n({},b,{rehydrated:!0})});return u(w)}}}if(!b)return t(p,h);var A=t(f,h);return A===f?p:u($n({},A,{_persist:b}))}}function Eu(e){return Wx(e)||jx(e)||Bx()}function Bx(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function jx(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Wx(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 Tu(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 ql(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tu(n,!0).forEach(function(r){Vx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tu(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Au={registry:[],bootstrapped:!1},Ux=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Au,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Su:return ql({},t,{registry:[].concat(Eu(t.registry),[n.key])});case Rl:var r=t.registry.indexOf(n.key),i=Eu(t.registry);return i.splice(r,1),ql({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Hx(e,t,n){if(process.env.NODE_ENV!=="production"){var r={},i=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];i.forEach(function(u){r[u]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(u,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=Al(Ux,Au,void 0),a=function(p){s.dispatch({type:Su,key:p})},c=function(p,h,y){var b={type:Rl,payload:h,err:y,key:p};e.dispatch(b),s.dispatch(b)},d=ql({},s,{purge:function(){var p=[];return e.dispatch({type:vu,result:function(y){p.push(y)}}),Promise.all(p)},flush:function(){var p=[];return e.dispatch({type:yu,result:function(y){p.push(y)}}),Promise.all(p)},pause:function(){e.dispatch({type:bu})},persist:function(){e.dispatch({type:xu,register:a,rehydrate:c})}});return d.persist(),d}function ku(e,t){return function(){return e.apply(t,arguments)}}const{toString:Rx}=Object.prototype,{getPrototypeOf:Yl}=Object,{iterator:Ss,toStringTag:Pu}=Symbol,ws=(e=>t=>{const n=Rx.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),an=e=>(e=e.toLowerCase(),t=>ws(t)===e),Cs=e=>t=>typeof t===e,{isArray:$r}=Array,zr=Cs("undefined");function $o(e){return e!==null&&!zr(e)&&e.constructor!==null&&!zr(e.constructor)&&_t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ou=an("ArrayBuffer");function qx(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ou(e.buffer),t}const Yx=Cs("string"),_t=Cs("function"),Iu=Cs("number"),zo=e=>e!==null&&typeof e=="object",Kx=e=>e===!0||e===!1,Es=e=>{if(ws(e)!=="object")return!1;const t=Yl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pu in e)&&!(Ss in e)},Gx=e=>{if(!zo(e)||$o(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Xx=an("Date"),Jx=an("File"),Qx=an("Blob"),Zx=an("FileList"),ev=e=>zo(e)&&_t(e.pipe),tv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_t(e.append)&&((t=ws(e))==="formdata"||t==="object"&&_t(e.toString)&&e.toString()==="[object FormData]"))},nv=an("URLSearchParams"),[rv,ov,iv,sv]=["ReadableStream","Request","Response","Headers"].map(an),av=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),$r(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if($o(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let c;for(r=0;r<a;r++)c=s[r],t.call(null,e[c],c,e)}}function Nu(e,t){if($o(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 dr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fu=e=>!zr(e)&&e!==dr;function Kl(){const{caseless:e,skipUndefined:t}=Fu(this)&&this||{},n={},r=(i,s)=>{const a=e&&Nu(n,s)||s;Es(n[a])&&Es(i)?n[a]=Kl(n[a],i):Es(i)?n[a]=Kl({},i):$r(i)?n[a]=i.slice():(!t||!zr(i))&&(n[a]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Lo(arguments[i],r);return n}const lv=(e,t,n,{allOwnKeys:r}={})=>(Lo(t,(i,s)=>{n&&_t(i)?e[s]=ku(i,n):e[s]=i},{allOwnKeys:r}),e),cv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),dv=(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)},pv=(e,t,n,r)=>{let i,s,a;const c={};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))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&Yl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},uv=(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},fv=e=>{if(!e)return null;if($r(e))return e;let t=e.length;if(!Iu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},hv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Yl(Uint8Array)),gv=(e,t)=>{const r=(e&&e[Ss]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},mv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},yv=an("HTMLFormElement"),bv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Mu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xv=an("RegExp"),Du=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Lo(n,(i,s)=>{let a;(a=t(i,s,e))!==!1&&(r[s]=a||i)}),Object.defineProperties(e,r)},vv=e=>{Du(e,(t,n)=>{if(_t(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(_t(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+"'")})}})},Sv=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return $r(e)?r(e):r(String(e).split(t)),n},wv=()=>{},Cv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ev(e){return!!(e&&_t(e.append)&&e[Pu]==="FormData"&&e[Ss])}const Tv=e=>{const t=new Array(10),n=(r,i)=>{if(zo(r)){if(t.indexOf(r)>=0)return;if($o(r))return r;if(!("toJSON"in r)){t[i]=r;const s=$r(r)?[]:{};return Lo(r,(a,c)=>{const d=n(a,i+1);!zr(d)&&(s[c]=d)}),t[i]=void 0,s}}return r};return n(e,0)},Av=an("AsyncFunction"),kv=e=>e&&(zo(e)||_t(e))&&_t(e.then)&&_t(e.catch),_u=((e,t)=>e?setImmediate:t?((n,r)=>(dr.addEventListener("message",({source:i,data:s})=>{i===dr&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),dr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",_t(dr.postMessage)),Pv=typeof queueMicrotask<"u"?queueMicrotask.bind(dr):typeof process<"u"&&process.nextTick||_u,R={isArray:$r,isArrayBuffer:Ou,isBuffer:$o,isFormData:tv,isArrayBufferView:qx,isString:Yx,isNumber:Iu,isBoolean:Kx,isObject:zo,isPlainObject:Es,isEmptyObject:Gx,isReadableStream:rv,isRequest:ov,isResponse:iv,isHeaders:sv,isUndefined:zr,isDate:Xx,isFile:Jx,isBlob:Qx,isRegExp:xv,isFunction:_t,isStream:ev,isURLSearchParams:nv,isTypedArray:hv,isFileList:Zx,forEach:Lo,merge:Kl,extend:lv,trim:av,stripBOM:cv,inherits:dv,toFlatObject:pv,kindOf:ws,kindOfTest:an,endsWith:uv,toArray:fv,forEachEntry:gv,matchAll:mv,isHTMLForm:yv,hasOwnProperty:Mu,hasOwnProp:Mu,reduceDescriptors:Du,freezeMethods:vv,toObjectSet:Sv,toCamelCase:bv,noop:wv,toFiniteNumber:Cv,findKey:Nu,global:dr,isContextDefined:Fu,isSpecCompliantForm:Ev,toJSONObject:Tv,isAsyncFn:Av,isThenable:kv,setImmediate:_u,asap:Pv,isIterable:e=>e!=null&&_t(e[Ss])};function Fe(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)}R.inherits(Fe,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:R.toJSONObject(this.config),code:this.code,status:this.status}}});const $u=Fe.prototype,zu={};["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=>{zu[e]={value:e}}),Object.defineProperties(Fe,zu),Object.defineProperty($u,"isAxiosError",{value:!0}),Fe.from=(e,t,n,r,i,s)=>{const a=Object.create($u);R.toFlatObject(e,a,function(p){return p!==Error.prototype},u=>u!=="isAxiosError");const c=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return Fe.call(a,c,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 Ov=null;function Gl(e){return R.isPlainObject(e)||R.isArray(e)}function Lu(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function Bu(e,t,n){return e?e.concat(t).map(function(i,s){return i=Lu(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Iv(e){return R.isArray(e)&&!e.some(Gl)}const Nv=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function Ts(e,t,n){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=R.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!R.isUndefined(m[f])});const r=n.metaTokens,i=n.visitor||p,s=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(R.isDate(g))return g.toISOString();if(R.isBoolean(g))return g.toString();if(!d&&R.isBlob(g))throw new Fe("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(g)||R.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function p(g,f,m){let S=g;if(g&&!m&&typeof g=="object"){if(R.endsWith(f,"{}"))f=r?f:f.slice(0,-2),g=JSON.stringify(g);else if(R.isArray(g)&&Iv(g)||(R.isFileList(g)||R.endsWith(f,"[]"))&&(S=R.toArray(g)))return f=Lu(f),S.forEach(function(x,v){!(R.isUndefined(x)||x===null)&&t.append(a===!0?Bu([f],v,s):a===null?f:f+"[]",u(x))}),!1}return Gl(g)?!0:(t.append(Bu(m,f,s),u(g)),!1)}const h=[],y=Object.assign(Nv,{defaultVisitor:p,convertValue:u,isVisitable:Gl});function b(g,f){if(!R.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));h.push(g),R.forEach(g,function(S,C){(!(R.isUndefined(S)||S===null)&&i.call(t,S,R.isString(C)?C.trim():C,f,y))===!0&&b(S,f?f.concat(C):[C])}),h.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ju(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Xl(e,t){this._pairs=[],e&&Ts(e,this,t)}const Wu=Xl.prototype;Wu.append=function(t,n){this._pairs.push([t,n])},Wu.toString=function(t){const n=t?function(r){return t.call(this,r,ju)}:ju;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Fv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Vu(e,t,n){if(!t)return e;const r=n&&n.encode||Fv;R.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=R.isURLSearchParams(t)?t.toString():new Xl(t,n).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Uu{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){R.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Hu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mv={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xl,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Jl=typeof window<"u"&&typeof document<"u",Ql=typeof navigator=="object"&&navigator||void 0,Dv=Jl&&(!Ql||["ReactNative","NativeScript","NS"].indexOf(Ql.product)<0),_v=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$v=Jl&&window.location.href||"http://localhost",Tt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jl,hasStandardBrowserEnv:Dv,hasStandardBrowserWebWorkerEnv:_v,navigator:Ql,origin:$v},Symbol.toStringTag,{value:"Module"})),...Mv};function zv(e,t){return Ts(e,new Tt.classes.URLSearchParams,{visitor:function(n,r,i,s){return Tt.isNode&&R.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function Lv(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Bv(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 Ru(e){function t(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),d=s>=n.length;return a=!a&&R.isArray(i)?i.length:a,d?(R.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!c):((!i[a]||!R.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],s)&&R.isArray(i[a])&&(i[a]=Bv(i[a])),!c)}if(R.isFormData(e)&&R.isFunction(e.entries)){const n={};return R.forEachEntry(e,(r,i)=>{t(Lv(r),i,n,0)}),n}return null}function jv(e,t,n){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Bo={transitional:Hu,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=R.isObject(t);if(s&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return i?JSON.stringify(Ru(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t)||R.isReadableStream(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return zv(t,this.formSerializer).toString();if((c=R.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ts(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),jv(t)):t}],transformResponse:[function(t){const n=this.transitional||Bo.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(R.isResponse(t)||R.isReadableStream(t))return t;if(t&&R.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(c){if(a)throw c.name==="SyntaxError"?Fe.from(c,Fe.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Tt.classes.FormData,Blob:Tt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{Bo.headers[e]={}});const Wv=R.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"]),Vv=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
20
|
+
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&Wv[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},qu=Symbol("internals");function jo(e){return e&&String(e).trim().toLowerCase()}function As(e){return e===!1||e==null?e:R.isArray(e)?e.map(As):String(e)}function Uv(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 Hv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zl(e,t,n,r,i){if(R.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!R.isString(t)){if(R.isString(r))return t.indexOf(r)!==-1;if(R.isRegExp(r))return r.test(t)}}function Rv(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function qv(e,t){const n=R.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 $t=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(c,d,u){const p=jo(d);if(!p)throw new Error("header name must be a non-empty string");const h=R.findKey(i,p);(!h||i[h]===void 0||u===!0||u===void 0&&i[h]!==!1)&&(i[h||d]=As(c))}const a=(c,d)=>R.forEach(c,(u,p)=>s(u,p,d));if(R.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(R.isString(t)&&(t=t.trim())&&!Hv(t))a(Vv(t),n);else if(R.isObject(t)&&R.isIterable(t)){let c={},d,u;for(const p of t){if(!R.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[u=p[0]]=(d=c[u])?R.isArray(d)?[...d,p[1]]:[d,p[1]]:p[1]}a(c,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=jo(t),t){const r=R.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Uv(i);if(R.isFunction(n))return n.call(this,i,r);if(R.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=jo(t),t){const r=R.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Zl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(a){if(a=jo(a),a){const c=R.findKey(r,a);c&&(!n||Zl(r,r[c],c,n))&&(delete r[c],i=!0)}}return R.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||Zl(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return R.forEach(this,(i,s)=>{const a=R.findKey(r,s);if(a){n[a]=As(i),delete n[s];return}const c=t?Rv(s):String(s).trim();c!==s&&delete n[s],n[c]=As(i),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return R.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&R.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
21
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[qu]=this[qu]={accessors:{}}).accessors,i=this.prototype;function s(a){const c=jo(a);r[c]||(qv(i,a),r[c]=!0)}return R.isArray(t)?t.forEach(s):s(t),this}};$t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),R.reduceDescriptors($t.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),R.freezeMethods($t);function ec(e,t){const n=this||Bo,r=t||n,i=$t.from(r.headers);let s=r.data;return R.forEach(e,function(c){s=c.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Yu(e){return!!(e&&e.__CANCEL__)}function Lr(e,t,n){Fe.call(this,e??"canceled",Fe.ERR_CANCELED,t,n),this.name="CanceledError"}R.inherits(Lr,Fe,{__CANCEL__:!0});function Ku(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Fe("Request failed with status code "+n.status,[Fe.ERR_BAD_REQUEST,Fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Yv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kv(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 u=Date.now(),p=r[s];a||(a=u),n[i]=d,r[i]=u;let h=s,y=0;for(;h!==i;)y+=n[h++],h=h%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-a<t)return;const b=p&&u-p;return b?Math.round(y*1e3/b):void 0}}function Gv(e,t){let n=0,r=1e3/t,i,s;const a=(u,p=Date.now())=>{n=p,i=null,s&&(clearTimeout(s),s=null),e(...u)};return[(...u)=>{const p=Date.now(),h=p-n;h>=r?a(u,p):(i=u,s||(s=setTimeout(()=>{s=null,a(i)},r-h)))},()=>i&&a(i)]}const ks=(e,t,n=3)=>{let r=0;const i=Kv(50,250);return Gv(s=>{const a=s.loaded,c=s.lengthComputable?s.total:void 0,d=a-r,u=i(d),p=a<=c;r=a;const h={loaded:a,total:c,progress:c?a/c:void 0,bytes:d,rate:u||void 0,estimated:u&&c&&p?(c-a)/u:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},Gu=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Xu=e=>(...t)=>R.asap(()=>e(...t)),Xv=Tt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Tt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Tt.origin),Tt.navigator&&/(msie|trident)/i.test(Tt.navigator.userAgent)):()=>!0,Jv=Tt.hasStandardBrowserEnv?{write(e,t,n,r,i,s,a){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];R.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),R.isString(r)&&c.push(`path=${r}`),R.isString(i)&&c.push(`domain=${i}`),s===!0&&c.push("secure"),R.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.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 Qv(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Zv(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ju(e,t,n){let r=!Qv(t);return e&&(r||n==!1)?Zv(e,t):t}const Qu=e=>e instanceof $t?{...e}:e;function pr(e,t){t=t||{};const n={};function r(u,p,h,y){return R.isPlainObject(u)&&R.isPlainObject(p)?R.merge.call({caseless:y},u,p):R.isPlainObject(p)?R.merge({},p):R.isArray(p)?p.slice():p}function i(u,p,h,y){if(R.isUndefined(p)){if(!R.isUndefined(u))return r(void 0,u,h,y)}else return r(u,p,h,y)}function s(u,p){if(!R.isUndefined(p))return r(void 0,p)}function a(u,p){if(R.isUndefined(p)){if(!R.isUndefined(u))return r(void 0,u)}else return r(void 0,p)}function c(u,p,h){if(h in t)return r(u,p);if(h in e)return r(void 0,u)}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:c,headers:(u,p,h)=>i(Qu(u),Qu(p),h,!0)};return R.forEach(Object.keys({...e,...t}),function(p){const h=d[p]||i,y=h(e[p],t[p],p);R.isUndefined(y)&&h!==c||(n[p]=y)}),n}const Zu=e=>{const t=pr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=$t.from(a),t.url=Vu(Ju(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),R.isFormData(n)){if(Tt.hasStandardBrowserEnv||Tt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(R.isFunction(n.getHeaders)){const d=n.getHeaders(),u=["content-type","content-length"];Object.entries(d).forEach(([p,h])=>{u.includes(p.toLowerCase())&&a.set(p,h)})}}if(Tt.hasStandardBrowserEnv&&(r&&R.isFunction(r)&&(r=r(t)),r||r!==!1&&Xv(t.url))){const d=i&&s&&Jv.read(s);d&&a.set(i,d)}return t},e1=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=Zu(e);let s=i.data;const a=$t.from(i.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:u}=i,p,h,y,b,g;function f(){b&&b(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function S(){if(!m)return;const x=$t.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),w={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:x,config:e,request:m};Ku(function(O){n(O),f()},function(O){r(O),f()},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 Fe("Request aborted",Fe.ECONNABORTED,e,m)),m=null)},m.onerror=function(v){const w=v&&v.message?v.message:"Network Error",A=new Fe(w,Fe.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||Hu;i.timeoutErrorMessage&&(v=i.timeoutErrorMessage),r(new Fe(v,w.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,e,m)),m=null},s===void 0&&a.setContentType(null),"setRequestHeader"in m&&R.forEach(a.toJSON(),function(v,w){m.setRequestHeader(w,v)}),R.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),c&&c!=="json"&&(m.responseType=i.responseType),u&&([y,g]=ks(u,!0),m.addEventListener("progress",y)),d&&m.upload&&([h,b]=ks(d),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",b)),(i.cancelToken||i.signal)&&(p=x=>{m&&(r(!x||x.type?new Lr(null,e,m):x),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const C=Yv(i.url);if(C&&Tt.protocols.indexOf(C)===-1){r(new Fe("Unsupported protocol "+C+":",Fe.ERR_BAD_REQUEST,e));return}m.send(s||null)})},t1=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(u){if(!i){i=!0,c();const p=u instanceof Error?u:this.reason;r.abort(p instanceof Fe?p:new Lr(p instanceof Error?p.message:p))}};let a=t&&setTimeout(()=>{a=null,s(new Fe(`timeout ${t} of ms exceeded`,Fe.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:d}=r;return d.unsubscribe=()=>R.asap(c),d}},n1=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},r1=async function*(e,t){for await(const n of o1(e))yield*n1(n,t)},o1=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()}},ef=(e,t,n,r)=>{const i=r1(e,t);let s=0,a,c=d=>{a||(a=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:u,value:p}=await i.next();if(u){c(),d.close();return}let h=p.byteLength;if(n){let y=s+=h;n(y)}d.enqueue(new Uint8Array(p))}catch(u){throw c(u),u}},cancel(d){return c(d),i.return()}},{highWaterMark:2})},tf=64*1024,{isFunction:Ps}=R,i1=(({Request:e,Response:t})=>({Request:e,Response:t}))(R.global),{ReadableStream:nf,TextEncoder:rf}=R.global,of=(e,...t)=>{try{return!!e(...t)}catch{return!1}},s1=e=>{e=R.merge.call({skipUndefined:!0},i1,e);const{fetch:t,Request:n,Response:r}=e,i=t?Ps(t):typeof fetch=="function",s=Ps(n),a=Ps(r);if(!i)return!1;const c=i&&Ps(nf),d=i&&(typeof rf=="function"?(g=>f=>g.encode(f))(new rf):async g=>new Uint8Array(await new n(g).arrayBuffer())),u=s&&c&&of(()=>{let g=!1;const f=new n(Tt.origin,{body:new nf,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!f}),p=a&&c&&of(()=>R.isReadableStream(new r("").body)),h={stream:p&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(f,m)=>{let S=f&&f[g];if(S)return S.call(f);throw new Fe(`Response type '${g}' is not supported`,Fe.ERR_NOT_SUPPORT,m)})});const y=async g=>{if(g==null)return 0;if(R.isBlob(g))return g.size;if(R.isSpecCompliantForm(g))return(await new n(Tt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(R.isArrayBufferView(g)||R.isArrayBuffer(g))return g.byteLength;if(R.isURLSearchParams(g)&&(g=g+""),R.isString(g))return(await d(g)).byteLength},b=async(g,f)=>{const m=R.toFiniteNumber(g.getContentLength());return m??y(f)};return async g=>{let{url:f,method:m,data:S,signal:C,cancelToken:x,timeout:v,onDownloadProgress:w,onUploadProgress:A,responseType:O,headers:L,withCredentials:M="same-origin",fetchOptions:_}=Zu(g),I=t||fetch;O=O?(O+"").toLowerCase():"text";let T=t1([C,x&&x.toAbortSignal()],v),F=null;const D=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let U;try{if(A&&u&&m!=="get"&&m!=="head"&&(U=await b(L,S))!==0){let W=new n(f,{method:"POST",body:S,duplex:"half"}),q;if(R.isFormData(S)&&(q=W.headers.get("content-type"))&&L.setContentType(q),W.body){const[X,G]=Gu(U,ks(Xu(A)));S=ef(W.body,tf,X,G)}}R.isString(M)||(M=M?"include":"omit");const N=s&&"credentials"in n.prototype,$={..._,signal:T,method:m.toUpperCase(),headers:L.normalize().toJSON(),body:S,duplex:"half",credentials:N?M:void 0};F=s&&new n(f,$);let k=await(s?I(F,_):I(f,$));const V=p&&(O==="stream"||O==="response");if(p&&(w||V&&D)){const W={};["status","statusText","headers"].forEach(Q=>{W[Q]=k[Q]});const q=R.toFiniteNumber(k.headers.get("content-length")),[X,G]=w&&Gu(q,ks(Xu(w),!0))||[];k=new r(ef(k.body,tf,X,()=>{G&&G(),D&&D()}),W)}O=O||"text";let B=await h[R.findKey(h,O)||"text"](k,g);return!V&&D&&D(),await new Promise((W,q)=>{Ku(W,q,{data:B,headers:$t.from(k.headers),status:k.status,statusText:k.statusText,config:g,request:F})})}catch(N){throw D&&D(),N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new Fe("Network Error",Fe.ERR_NETWORK,g,F),{cause:N.cause||N}):Fe.from(N,N&&N.code,g,F)}}},a1=new Map,sf=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let a=s.length,c=a,d,u,p=a1;for(;c--;)d=s[c],u=p.get(d),u===void 0&&p.set(d,u=c?new Map:s1(t)),p=u;return u};sf();const tc={http:Ov,xhr:e1,fetch:{get:sf}};R.forEach(tc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const af=e=>`- ${e}`,l1=e=>R.isFunction(e)||e===null||e===!1;function c1(e,t){e=R.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let a=0;a<n;a++){r=e[a];let c;if(i=r,!l1(r)&&(i=tc[(c=String(r)).toLowerCase()],i===void 0))throw new Fe(`Unknown adapter '${c}'`);if(i&&(R.isFunction(i)||(i=i.get(t))))break;s[c||"#"+a]=i}if(!i){const a=Object.entries(s).map(([d,u])=>`adapter ${d} `+(u===!1?"is not supported by the environment":"is not available in the build"));let c=n?a.length>1?`since :
|
|
22
22
|
`+a.map(af).join(`
|
|
23
|
-
`):" "+af(a[0]):"as no adapter specified";throw new
|
|
24
|
-
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Is.assertOptions(r,{silentJSONParsing:un.transitional(un.boolean),forcedJSONParsing:un.transitional(un.boolean),clarifyTimeoutError:un.transitional(un.boolean)},!1),i!=null&&(R.isFunction(i)?n.paramsSerializer={serialize:i}:Is.assertOptions(i,{encode:un.function,serialize:un.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Is.assertOptions(n,{baseUrl:un.spelling("baseURL"),withXsrfToken:un.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&R.merge(s.common,s[n.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=_t.concat(a,s);const c=[];let d=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(d=d&&f.synchronous,c.unshift(f.fulfilled,f.rejected))});const u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let p,h=0,y;if(!d){const g=[cf.bind(this),void 0];for(g.unshift(...c),g.push(...u),y=g.length,p=Promise.resolve(n);h<y;)p=p.then(g[h++],g[h++]);return p}y=c.length;let x=n;for(;h<y;){const g=c[h++],f=c[h++];try{x=g(x)}catch(m){f.call(this,m);break}}try{p=cf.call(this,x)}catch(g){return Promise.reject(g)}for(h=0,y=u.length;h<y;)p=p.then(u[h++],u[h++]);return p}getUri(t){t=pr(this.defaults,t);const n=Ju(t.baseURL,t.url,t.allowAbsoluteUrls);return Vu(n,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(t){ur.prototype[t]=function(n,r){return this.request(pr(r||{},{method:t,url:n,data:(r||{}).data}))}}),R.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,c){return this.request(pr(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}ur.prototype[t]=n(),ur.prototype[t+"Form"]=n(!0)});let lS=class dy{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(c=>{r.subscribe(c),s=c}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,c){r.reason||(r.reason=new Br(s,a,c),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 dy(function(i){t=i}),cancel:t}}};function cS(e){return function(n){return e.apply(null,n)}}function dS(e){return R.isObject(e)&&e.isAxiosError===!0}const rc={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(rc).forEach(([e,t])=>{rc[t]=e});function uf(e){const t=new ur(e),n=ku(ur.prototype.request,t);return R.extend(n,ur.prototype,t,{allOwnKeys:!0}),R.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return uf(pr(e,i))},n}const it=uf(jo);it.Axios=ur,it.CanceledError=Br,it.CancelToken=lS,it.isCancel=Yu,it.VERSION=df,it.toFormData=Ts,it.AxiosError=Me,it.Cancel=it.CanceledError,it.all=function(t){return Promise.all(t)},it.spread=cS,it.isAxiosError=dS,it.mergeConfig=pr,it.AxiosHeaders=_t,it.formToJSON=e=>Ru(R.isHTMLForm(e)?new FormData(e):e),it.getAdapter=lf.getAdapter,it.HttpStatusCode=rc,it.default=it;const{Axios:KN,AxiosError:GN,CanceledError:XN,isCancel:JN,CancelToken:QN,VERSION:ZN,all:e5,Cancel:t5,isAxiosError:n5,spread:r5,toFormData:o5,AxiosHeaders:i5,HttpStatusCode:s5,formToJSON:a5,getAdapter:l5,mergeConfig:c5}=it;function Ns(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 pS={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 oc(e,t){function n(i,s,a){if(!(typeof document>"u")){a=Ns({},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 c="";for(var d in a)a[d]&&(c+="; "+d,a[d]!==!0&&(c+="="+a[d].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+c}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},c=0;c<s.length;c++){var d=s[c].split("="),u=d.slice(1).join("=");try{var p=decodeURIComponent(d[0]);if(a[p]=e.read(u,p),i===p)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",Ns({},s,{expires:-1}))},withAttributes:function(i){return oc(this.converter,Ns({},this.attributes,i))},withConverter:function(i){return oc(Ns({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var zn=oc(pS,{path:"/"});const uS={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let jr="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:dl&&dl.tagName.toUpperCase()==="SCRIPT"&&dl.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&uS?.VITE_API_URL)jr=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(jr=process.env.VITE_API_URL)}}catch{}const fS=e=>{jr=e,st.defaults.baseURL=jr},hS=e=>{e?zn.set("token",e,{secure:!0,sameSite:"Strict"}):zn.remove("token")},gS=()=>zn.get("token")||null,st=it.create({baseURL:jr,transformRequest:[function(e,t){const n=gS();return n?t.Authorization=`Bearer ${n}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let ic=!1,sc=null;st.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response;if(n&&(n.status===401||n.status===402)){const r=zn.get("refreshToken");if(r)try{ic||(ic=!0,sc=it.post(`${jr}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${r}`}}));const i=await sc,{token:s,refreshToken:a}=i.data;return zn.set("token",s,{secure:!0,sameSite:"Strict"}),zn.set("refreshToken",a),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${s}`,st(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(zn.remove("token"),zn.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{ic=!1,sc=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(zn.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const Vo=bt("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await st.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)}}),Fs=bt("dashboard/fetchProductDashboardMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await st.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)}}),Uo=bt("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{const n=await st.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(),c=(r?.lastName!=null?r.lastName:n.data?.lastName!=null?n.data.lastName:"").toString().trim(),d=[a,c].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)}}),$t=bt("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const n=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await st.get(n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),Ho=bt("dashboard/fetchStores",async(e={},{rejectWithValue:t})=>{try{return(await st.get("/store",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch stores";return t(r)}}),Gn=bt("dashboard/fetchCategories",async(e={},{rejectWithValue:t})=>{try{return(await st.get("/category",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch categories";return t(r)}}),Ln=bt("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await st.get("/store-inventory",{params:e})).data||{}}catch(n){return t(n.response?.data||n.message)}}),Ms=bt("dashboard/fetchStoreInventoryForPromo",async(e={},{rejectWithValue:t})=>{try{return(await st.get("/store-inventory",{params:e})).data||{}}catch(n){return t(n.response?.data||n.message)}}),Ds=bt("dashboard/createCatalog",async({name:e,slug:t,description:n="",storeCode:r,products:i,categories:s},{rejectWithValue:a})=>{try{const c=Array.isArray(r)?r:[r].filter(Boolean),d=Array.isArray(i)?i:[],u=Array.isArray(s)?s:[],p={name:e,slug:t,description:n||"",storeCode:c};return d.length>0&&(p.products=d),u.length>0&&(p.categories=u),(await st.post("/catalogues",p)).data}catch(c){const d=c.response?.data?.message||c.message||"Failed to create catalog";return a(d)}}),Ro=bt("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 st.put(s,a)).data}catch(s){const a=s.response?.data?.message||s.message||"Failed to update catalog";return i(a)}}),_s=bt("dashboard/deleteCatalog",async(e,{rejectWithValue:t})=>{try{const n=`/catalogues/${e}`;return await st.delete(n),e}catch(n){const r=n.response?.data?.message||n.message||"Failed to delete catalog";return t(r)}}),$s=bt("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:[],c={storeCodes:i};return s.length>0&&(c.products=s),a.length>0&&(c.categories=a),(await st.post("/osa",c)).data}catch(i){const s=i.response?.data?.message||i.message||"Failed to create OSA request";return r(s)}}),ff=mu({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},updateMetric:(e,t)=>{const{key:n,value:r}=t.payload;e.metrics&&(e.metrics[n]=r)}},extraReducers:e=>{e.addCase(Vo.pending,t=>{t.loading=!0,t.error=null}).addCase(Vo.fulfilled,(t,n)=>{t.loading=!1,t.metrics=n.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(Vo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch dashboard metrics"}),e.addCase(Fs.pending,t=>{t.loading=!0}).addCase(Fs.fulfilled,(t,n)=>{t.loading=!1,t.productDashboardMetrics=n.payload||{}}).addCase(Fs.rejected,t=>{t.loading=!1,t.productDashboardMetrics={}}),e.addCase($t.pending,t=>{t.loading=!0}).addCase($t.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($t.rejected,t=>{t.loading=!1}),e.addCase(Uo.pending,t=>{t.loading=!0,t.error=null}),e.addCase(Uo.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(Uo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to verify auth"}),e.addCase(Gn.pending,t=>{t.loading=!0,t.categoriesLoading=!0,t.error=null}).addCase(Gn.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(Gn.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(Ho.pending,t=>{t.loading=!0,t.error=null}).addCase(Ho.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 c=a.id??a.storeCode??a.storeId,d=a.name??a.storeName??a.storel??"",u=a.storeCode??a.id??c;return{id:c,name:d,storeCode:u}});t.stores=[{id:"all",name:"All Stores",storeCode:"all"},...s]}).addCase(Ho.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch stores",t.stores=[]}),e.addCase(Ln.pending,t=>{t.loading=!0,t.productsLoading=!0,t.error=null,t.loadingMessage="Fetching Schedules"}).addCase(Ln.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),f=s(y.inShelf??y.inshelf??y.in_shelf),m=g>0?Math.round(f/g*100):0;a[x].push({...y,stock:g,inShelf:f,quantity:f,osa:m})}),t.products=Object.values(a).flat();const c=Object.values(a).flat(),d=Object.keys(a).length,u=c.length;t.homePageCardSummary={...t.homePageCardSummary,totalCategories:d,totalProducts:u},t.productsByCategory=a;const p=r.pagination||{},h=typeof p.totalCount=="number"?p.totalCount:Object.values(a).reduce((y,x)=>y+x.length,0);t.pagination={currentPage:typeof p.currentPage=="number"?p.currentPage:1,limit:typeof p.limit=="number"?p.limit:20,totalCount:h,totalPages:typeof p.totalPages=="number"?p.totalPages:1,hasNextPage:typeof p.hasNextPage=="boolean"?p.hasNextPage:!1}}).addCase(Ln.rejected,(t,n)=>{t.loading=!1,t.productsLoading=!1,t.error=n.payload||"Failed to fetch products",t.loadingMessage=""}).addCase(Ms.fulfilled,()=>{}).addCase(Ms.rejected,()=>{}),e.addCase(Ds.pending,t=>{t.createCatalogLoading=!0,t.createCatalogError=null}).addCase(Ds.fulfilled,t=>{t.createCatalogLoading=!1,t.createCatalogError=null}).addCase(Ds.rejected,(t,n)=>{t.createCatalogLoading=!1,t.createCatalogError=n.payload||"Failed to create catalog"}),e.addCase(Ro.pending,t=>{t.updateCatalogLoading=!0,t.updateCatalogError=null}).addCase(Ro.fulfilled,t=>{t.updateCatalogLoading=!1,t.updateCatalogError=null}).addCase(Ro.rejected,(t,n)=>{t.updateCatalogLoading=!1,t.updateCatalogError=n.payload||"Failed to update catalog"}),e.addCase(_s.pending,t=>{t.deleteCatalogLoading=!0,t.deleteCatalogError=null}).addCase(_s.fulfilled,t=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=null}).addCase(_s.rejected,(t,n)=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=n.payload||"Failed to delete catalog"}),e.addCase($s.pending,t=>{t.createOsaRequestLoading=!0,t.createOsaRequestError=null}).addCase($s.fulfilled,t=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=null}).addCase($s.rejected,(t,n)=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=n.payload||"Failed to create OSA request"})}}),{updateMetric:p5,clearCreateCatalogError:hf,clearUpdateCatalogError:u5,clearDeleteCatalogError:f5,clearCreateOsaRequestError:mS}=ff.actions,yS=ff.reducer,qo=bt("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 c=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!c)throw new Error("Invalid server address format. Expected format: protocol://host:port/path");let[,d,u,p,h]=c;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:u,port:Number(p),username:t,password:n,path:h.replace(/^\//,"")},entity_type:""};return(await st.post("/ftp/sync/test-connection",y)).data}catch(a){const c=a.response?.data?.message||a.message||"Failed to test FTP connection";return s(c)}}),Yo=bt("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};return(await st.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)}}),Wr=bt("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 st.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)}}),Ko=bt("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const n=await st.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)}}),Go=bt("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const n=e?{entity_type:e}:{},r=await st.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)}}),Xo=bt("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 st.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)}}),qt=bt("productSettings/fetchSharedCatalogues",async(e,{rejectWithValue:t})=>{try{const n=e&&typeof e=="object"?e:{},r=await st.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)}}),ac={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},gf=mu({name:"productSettings",initialState:ac,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=ac.syncData}},extraReducers:e=>{e.addCase(qo.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(qo.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(qo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to test FTP connection"}),e.addCase(Go.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(Go.fulfilled,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(n.payload)?n.payload:[],t.mappingColumnsError=null}).addCase(Go.rejected,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=n.payload||"Failed to fetch mapping columns"}),e.addCase(qt.pending,t=>{t.sharedCataloguesLoading=!0,t.sharedCataloguesError=null}).addCase(qt.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(qt.rejected,(t,n)=>{t.sharedCataloguesLoading=!1,t.sharedCataloguesError=n.payload||"Failed to fetch shared catalogues"}),e.addCase(Yo.pending,t=>{t.loading=!0,t.error=null}).addCase(Yo.fulfilled,(t,n)=>{t.loading=!1,t.saveResult=n.payload,t.error=null,t.syncData=ac.syncData}).addCase(Yo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to save FTP sync configuration"}),e.addCase(Wr.pending,t=>{t.loading=!0,t.error=null}).addCase(Wr.fulfilled,(t,n)=>{t.loading=!1,t.updateDetailsResult=n.payload,t.error=null}).addCase(Wr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to update FTP sync details"}),e.addCase(Ko.pending,t=>{t.loading=!0,t.error=null}).addCase(Ko.fulfilled,(t,n)=>{t.loading=!1,t.syncNowResult=n.payload,t.error=null}).addCase(Ko.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to start sync"}),e.addCase(Xo.pending,t=>{t.updateIntegrationByChannelIdLoading=!0,t.updateIntegrationByChannelIdError=null}).addCase(Xo.fulfilled,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdResult=n.payload,t.updateIntegrationByChannelIdError=null}).addCase(Xo.rejected,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdError=n.payload||"Failed to update integration by channel ID"})}}),{clearError:h5,clearTestConnectionResult:g5,clearSaveResult:bS,clearAll:m5,clearTestConnectionData:y5,clearUpdateDetailsResult:b5,clearSyncNowResult:x5,setFtpSyncData:zs,clearFtpSyncData:v5,clearMappingColumnsError:S5,clearMappingColumns:w5,clearSharedCataloguesError:C5,clearSharedCatalogues:E5,clearUpdateIntegrationByChannelIdResult:T5}=gf.actions,xS=gf.reducer;var Ls={},Bs={},mf;function vS(){if(mf)return Bs;mf=1,Bs.__esModule=!0,Bs.default=i;function e(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(c){return typeof c}:e=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},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],c="redux-persist ".concat(s," test");a.setItem(c,"test"),a.getItem(c),a.removeItem(c)}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 Bs}var yf;function SS(){if(yf)return Ls;yf=1,Ls.__esModule=!0,Ls.default=n;var e=t(vS());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(c,d){c(i.getItem(a))})},setItem:function(a,c){return new Promise(function(d,u){d(i.setItem(a,c))})},removeItem:function(a){return new Promise(function(c,d){c(i.removeItem(a))})}}}return Ls}var wS=SS();const CS={key:"auth",storage:typeof window<"u"?Ep(wS)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},ES=Dp({dashboard:yS,productSettings:xS}),TS=_x(CS,ES),bf=tx({reducer:TS,middleware:e=>e({serializableCheck:!1})}),AS=Wx(bf),kS=j.createContext(null),PS=({children:e,apiUrl:t,authToken:n})=>(j.useEffect(()=>{t&&fS(t)},[t]),j.useEffect(()=>{hS(n||null)},[n]),l.jsx(kS.Provider,{value:{apiUrl:t},children:e}));function fn(){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},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},title:{fontSize:"16px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"14px",color:"#888",mb:1.5},actionLink:{fontSize:"14px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",borderRadius:2,boxShadow:24,width:"100%",maxWidth:360,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,py:2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"16px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:2.5,py:2},radioIcon:{width:20,height:20},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"14px",color:"#333"},formControlLabel:{mx:0,py:.75,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:2,pt:2,pl:2,pr:2,pb:2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"13px",color:"#000000",maxWidth:180},managePlanLink:{fontSize:"13px",fontWeight:500,color:"#2D64B8",cursor:"pointer"},footer:{px:2.5,pb:2.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"14px",fontWeight:500,py:1.25,borderRadius:1.5,boxShadow:"none"}}},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",opacity:1,marginLeft:"auto",marginRight:"auto",mt:2},resultsPerPageBox:{width:128,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1},resultsPerPageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap"},select:{minWidth:32,height:16,"& .MuiSelect-select":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",py:0,pr:"20px !important",display:"flex",alignItems:"center"},"& .MuiSelect-icon":{top:"50%",transform:"translateY(-50%)"},"& .MuiSvgIcon-root":{width:16,height:16,right:0,color:"#454545"}},navBox:{width:200,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1},iconButton:{p:0,width:16,height:16,color:"#454545","&.Mui-disabled":{color:"#c0c0c0"}},paginationIcon:{width:16,height:16,opacity:1},pageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"}},contentWrapper:{marginTop:8,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 Jo={black:"#000",white:"#fff"},Vr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ur={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Hr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Rr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},qr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Qo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},OS={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 hn(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 Zo="$$material";function js(){return js=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},js.apply(null,arguments)}function IS(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 NS(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 FS=(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(NS(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=IS(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})(),Ct="-ms-",Ws="-moz-",We="-webkit-",xf="comm",lc="rule",cc="decl",MS="@import",vf="@keyframes",DS="@layer",_S=Math.abs,Vs=String.fromCharCode,$S=Object.assign;function zS(e,t){return St(e,0)^45?(((t<<2^St(e,0))<<2^St(e,1))<<2^St(e,2))<<2^St(e,3):0}function Sf(e){return e.trim()}function LS(e,t){return(e=t.exec(e))?e[0]:e}function Ve(e,t,n){return e.replace(t,n)}function dc(e,t){return e.indexOf(t)}function St(e,t){return e.charCodeAt(t)|0}function ei(e,t,n){return e.slice(t,n)}function gn(e){return e.length}function pc(e){return e.length}function Us(e,t){return t.push(e),e}function BS(e,t){return e.map(t).join("")}var Hs=1,Yr=1,wf=0,zt=0,ht=0,Kr="";function Rs(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:Hs,column:Yr,length:a,return:""}}function ti(e,t){return $S(Rs("",null,null,"",null,null,0),e,{length:-e.length},t)}function jS(){return ht}function WS(){return ht=zt>0?St(Kr,--zt):0,Yr--,ht===10&&(Yr=1,Hs--),ht}function Vt(){return ht=zt<wf?St(Kr,zt++):0,Yr++,ht===10&&(Yr=1,Hs++),ht}function mn(){return St(Kr,zt)}function qs(){return zt}function ni(e,t){return ei(Kr,e,t)}function ri(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 Cf(e){return Hs=Yr=1,wf=gn(Kr=e),zt=0,[]}function Ef(e){return Kr="",e}function Ys(e){return Sf(ni(zt-1,uc(e===91?e+2:e===40?e+1:e)))}function VS(e){for(;(ht=mn())&&ht<33;)Vt();return ri(e)>2||ri(ht)>3?"":" "}function US(e,t){for(;--t&&Vt()&&!(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97););return ni(e,qs()+(t<6&&mn()==32&&Vt()==32))}function uc(e){for(;Vt();)switch(ht){case e:return zt;case 34:case 39:e!==34&&e!==39&&uc(ht);break;case 40:e===41&&uc(e);break;case 92:Vt();break}return zt}function HS(e,t){for(;Vt()&&e+ht!==57;)if(e+ht===84&&mn()===47)break;return"/*"+ni(t,zt-1)+"*"+Vs(e===47?e:Vt())}function RS(e){for(;!ri(mn());)Vt();return ni(e,zt)}function qS(e){return Ef(Ks("",null,null,null,[""],e=Cf(e),0,[0],e))}function Ks(e,t,n,r,i,s,a,c,d){for(var u=0,p=0,h=a,y=0,x=0,g=0,f=1,m=1,S=1,C=0,b="",v=i,w=s,A=r,I=b;m;)switch(g=C,C=Vt()){case 40:if(g!=108&&St(I,h-1)==58){dc(I+=Ve(Ys(C),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:I+=Ys(C);break;case 9:case 10:case 13:case 32:I+=VS(g);break;case 92:I+=US(qs()-1,7);continue;case 47:switch(mn()){case 42:case 47:Us(YS(HS(Vt(),qs()),t,n),d);break;default:I+="/"}break;case 123*f:c[u++]=gn(I)*S;case 125*f:case 59:case 0:switch(C){case 0:case 125:m=0;case 59+p:S==-1&&(I=Ve(I,/\f/g,"")),x>0&&gn(I)-h&&Us(x>32?Af(I+";",r,n,h-1):Af(Ve(I," ","")+";",r,n,h-2),d);break;case 59:I+=";";default:if(Us(A=Tf(I,t,n,u,p,i,c,b,v=[],w=[],h),s),C===123)if(p===0)Ks(I,t,A,A,v,s,h,c,w);else switch(y===99&&St(I,3)===110?100:y){case 100:case 108:case 109:case 115:Ks(e,A,A,r&&Us(Tf(e,A,A,0,0,i,c,b,i,v=[],h),w),i,w,h,c,r?v:w);break;default:Ks(I,A,A,A,[""],w,0,c,w)}}u=p=x=0,f=S=1,b=I="",h=a;break;case 58:h=1+gn(I),x=g;default:if(f<1){if(C==123)--f;else if(C==125&&f++==0&&WS()==125)continue}switch(I+=Vs(C),C*f){case 38:S=p>0?1:(I+="\f",-1);break;case 44:c[u++]=(gn(I)-1)*S,S=1;break;case 64:mn()===45&&(I+=Ys(Vt())),y=mn(),p=h=gn(b=I+=RS(qs())),C++;break;case 45:g===45&&gn(I)==2&&(f=0)}}return s}function Tf(e,t,n,r,i,s,a,c,d,u,p){for(var h=i-1,y=i===0?s:[""],x=pc(y),g=0,f=0,m=0;g<r;++g)for(var S=0,C=ei(e,h+1,h=_S(f=a[g])),b=e;S<x;++S)(b=Sf(f>0?y[S]+" "+C:Ve(C,/&\f/g,y[S])))&&(d[m++]=b);return Rs(e,t,n,i===0?lc:c,d,u,p)}function YS(e,t,n){return Rs(e,t,n,xf,Vs(jS()),ei(e,2,-2),0)}function Af(e,t,n,r){return Rs(e,t,n,cc,ei(e,0,r),ei(e,r+1,-1),r)}function Gr(e,t){for(var n="",r=pc(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function KS(e,t,n,r){switch(e.type){case DS:if(e.children.length)break;case MS:case cc:return e.return=e.return||e.value;case xf:return"";case vf:return e.return=e.value+"{"+Gr(e.children,r)+"}";case lc:e.value=e.props.join(",")}return gn(n=Gr(e.children,r))?e.return=e.value+"{"+n+"}":""}function GS(e){var t=pc(e);return function(n,r,i,s){for(var a="",c=0;c<t;c++)a+=e[c](n,r,i,s)||"";return a}}function XS(e){return function(t){t.root||(t=t.return)&&e(t)}}function kf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var JS=function(t,n,r){for(var i=0,s=0;i=s,s=mn(),i===38&&s===12&&(n[r]=1),!ri(s);)Vt();return ni(t,zt)},QS=function(t,n){var r=-1,i=44;do switch(ri(i)){case 0:i===38&&mn()===12&&(n[r]=1),t[r]+=JS(zt-1,n,r);break;case 2:t[r]+=Ys(i);break;case 4:if(i===44){t[++r]=mn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Vs(i)}while(i=Vt());return t},ZS=function(t,n){return Ef(QS(Cf(t),n))},Pf=new WeakMap,e1=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&&!Pf.get(r))&&!i){Pf.set(t,!0);for(var s=[],a=ZS(n,s),c=r.props,d=0,u=0;d<a.length;d++)for(var p=0;p<c.length;p++,u++)t.props[u]=s[d]?a[d].replace(/&\f/g,c[p]):c[p]+" "+a[d]}}},t1=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Of(e,t){switch(zS(e,t)){case 5103:return We+"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 We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+Ws+e+Ct+e+e;case 6828:case 4268:return We+e+Ct+e+e;case 6165:return We+e+Ct+"flex-"+e+e;case 5187:return We+e+Ve(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+Ct+"flex-$1$2")+e;case 5443:return We+e+Ct+"flex-item-"+Ve(e,/flex-|-self/,"")+e;case 4675:return We+e+Ct+"flex-line-pack"+Ve(e,/align-content|flex-|-self/,"")+e;case 5548:return We+e+Ct+Ve(e,"shrink","negative")+e;case 5292:return We+e+Ct+Ve(e,"basis","preferred-size")+e;case 6060:return We+"box-"+Ve(e,"-grow","")+We+e+Ct+Ve(e,"grow","positive")+e;case 4554:return We+Ve(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return Ve(Ve(Ve(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return Ve(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return Ve(Ve(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+Ct+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+We+e+e;case 4095:case 3583:case 4068:case 2532:return Ve(e,/(.+)-inline(.+)/,We+"$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(gn(e)-1-t>6)switch(St(e,t+1)){case 109:if(St(e,t+4)!==45)break;case 102:return Ve(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+Ws+(St(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~dc(e,"stretch")?Of(Ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(St(e,t+1)!==115)break;case 6444:switch(St(e,gn(e)-3-(~dc(e,"!important")&&10))){case 107:return Ve(e,":",":"+We)+e;case 101:return Ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(St(e,14)===45?"inline-":"")+"box$3$1"+We+"$2$3$1"+Ct+"$2box$3")+e}break;case 5936:switch(St(e,t+11)){case 114:return We+e+Ct+Ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+Ct+Ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+Ct+Ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+Ct+e+e}return e}var n1=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case cc:t.return=Of(t.value,t.length);break;case vf:return Gr([ti(t,{value:Ve(t.value,"@","@"+We)})],i);case lc:if(t.length)return BS(t.props,function(s){switch(LS(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Gr([ti(t,{props:[Ve(s,/:(read-\w+)/,":"+Ws+"$1")]})],i);case"::placeholder":return Gr([ti(t,{props:[Ve(s,/:(plac\w+)/,":"+We+"input-$1")]}),ti(t,{props:[Ve(s,/:(plac\w+)/,":"+Ws+"$1")]}),ti(t,{props:[Ve(s,/:(plac\w+)/,Ct+"input-$1")]})],i)}return""})}},r1=[n1],o1=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var m=f.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var i=t.stylisPlugins||r1,s={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var m=f.getAttribute("data-emotion").split(" "),S=1;S<m.length;S++)s[m[S]]=!0;c.push(f)});var d,u=[e1,t1];{var p,h=[KS,XS(function(f){p.insert(f)})],y=GS(u.concat(i,h)),x=function(m){return Gr(qS(m),y)};d=function(m,S,C,b){p=C,x(m?m+"{"+S.styles+"}":S.styles),b&&(g.inserted[S.name]=!0)}}var g={key:n,sheet:new FS({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(c),g},Gs={exports:{}},Ue={};var If;function i1(){if(If)return Ue;If=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,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=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,f=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 u:case r:case s:case i:case h:return w;default:switch(w=w&&w.$$typeof,w){case c:case p:case g:case x:case a:return w;default:return A}}case n:return A}}}function v(w){return b(w)===u}return Ue.AsyncMode=d,Ue.ConcurrentMode=u,Ue.ContextConsumer=c,Ue.ContextProvider=a,Ue.Element=t,Ue.ForwardRef=p,Ue.Fragment=r,Ue.Lazy=g,Ue.Memo=x,Ue.Portal=n,Ue.Profiler=s,Ue.StrictMode=i,Ue.Suspense=h,Ue.isAsyncMode=function(w){return v(w)||b(w)===d},Ue.isConcurrentMode=v,Ue.isContextConsumer=function(w){return b(w)===c},Ue.isContextProvider=function(w){return b(w)===a},Ue.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ue.isForwardRef=function(w){return b(w)===p},Ue.isFragment=function(w){return b(w)===r},Ue.isLazy=function(w){return b(w)===g},Ue.isMemo=function(w){return b(w)===x},Ue.isPortal=function(w){return b(w)===n},Ue.isProfiler=function(w){return b(w)===s},Ue.isStrictMode=function(w){return b(w)===i},Ue.isSuspense=function(w){return b(w)===h},Ue.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===u||w===s||w===i||w===h||w===y||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===x||w.$$typeof===a||w.$$typeof===c||w.$$typeof===p||w.$$typeof===m||w.$$typeof===S||w.$$typeof===C||w.$$typeof===f)},Ue.typeOf=b,Ue}var He={};var Nf;function s1(){return Nf||(Nf=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,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=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,f=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(H){return typeof H=="string"||typeof H=="function"||H===r||H===u||H===s||H===i||H===h||H===y||typeof H=="object"&&H!==null&&(H.$$typeof===g||H.$$typeof===x||H.$$typeof===a||H.$$typeof===c||H.$$typeof===p||H.$$typeof===m||H.$$typeof===S||H.$$typeof===C||H.$$typeof===f)}function v(H){if(typeof H=="object"&&H!==null){var ge=H.$$typeof;switch(ge){case t:var ue=H.type;switch(ue){case d:case u:case r:case s:case i:case h:return ue;default:var me=ue&&ue.$$typeof;switch(me){case c:case p:case g:case x:case a:return me;default:return ge}}case n:return ge}}}var w=d,A=u,I=c,z=a,M=t,L=p,O=r,T=g,N=x,D=n,U=s,F=i,_=h,k=!1;function V(H){return k||(k=!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.")),$(H)||v(H)===d}function $(H){return v(H)===u}function W(H){return v(H)===c}function q(H){return v(H)===a}function J(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function X(H){return v(H)===p}function ee(H){return v(H)===r}function te(H){return v(H)===g}function ie(H){return v(H)===x}function ce(H){return v(H)===n}function ae(H){return v(H)===s}function oe(H){return v(H)===i}function pe(H){return v(H)===h}He.AsyncMode=w,He.ConcurrentMode=A,He.ContextConsumer=I,He.ContextProvider=z,He.Element=M,He.ForwardRef=L,He.Fragment=O,He.Lazy=T,He.Memo=N,He.Portal=D,He.Profiler=U,He.StrictMode=F,He.Suspense=_,He.isAsyncMode=V,He.isConcurrentMode=$,He.isContextConsumer=W,He.isContextProvider=q,He.isElement=J,He.isForwardRef=X,He.isFragment=ee,He.isLazy=te,He.isMemo=ie,He.isPortal=ce,He.isProfiler=ae,He.isStrictMode=oe,He.isSuspense=pe,He.isValidElementType=b,He.typeOf=v})()),He}var Ff;function fc(){return Ff||(Ff=1,process.env.NODE_ENV==="production"?Gs.exports=i1():Gs.exports=s1()),Gs.exports}var hc,Mf;function a1(){if(Mf)return hc;Mf=1;var e=fc(),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 c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,y=Object.prototype;function x(g,f,m){if(typeof f!="string"){if(y){var S=h(f);S&&S!==y&&x(g,S,m)}var C=d(f);u&&(C=C.concat(u(f)));for(var b=a(g),v=a(f),w=0;w<C.length;++w){var A=C[w];if(!n[A]&&!(m&&m[A])&&!(v&&v[A])&&!(b&&b[A])){var I=p(f,A);try{c(g,A,I)}catch{}}}}return g}return hc=x,hc}a1();var l1=!0;function Df(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var gc=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||l1===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},mc=function(t,n,r){gc(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 c1(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 d1={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},p1=/[A-Z]|^ms/g,u1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_f=function(t){return t.charCodeAt(1)===45},$f=function(t){return t!=null&&typeof t!="boolean"},yc=kf(function(e){return _f(e)?e:e.replace(p1,"-$&").toLowerCase()}),zf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(u1,function(r,i,s){return yn={name:i,styles:s,next:yn},i})}return d1[t]!==1&&!_f(t)&&typeof n=="number"&&n!==0?n+"px":n};function oi(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 yn={name:i.name,styles:i.styles,next:yn},i.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)yn={name:a.name,styles:a.styles,next:yn},a=a.next;var c=s.styles+";";return c}return f1(e,t,n)}case"function":{if(e!==void 0){var d=yn,u=n(e);return yn=d,oi(e,t,u)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function f1(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=oi(e,t,n[i])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var c=a;t!=null&&t[c]!==void 0?r+=s+"{"+t[c]+"}":$f(c)&&(r+=yc(s)+":"+zf(s,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var d=0;d<a.length;d++)$f(a[d])&&(r+=yc(s)+":"+zf(s,a[d])+";");else{var u=oi(e,t,a);switch(s){case"animation":case"animationName":{r+=yc(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}return r}var Lf=/label:\s*([^\s;{]+)\s*(;|$)/g,yn;function ii(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="";yn=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=oi(n,t,s);else{var a=s;i+=a[0]}for(var c=1;c<e.length;c++)if(i+=oi(n,t,e[c]),r){var d=s;i+=d[c]}Lf.lastIndex=0;for(var u="",p;(p=Lf.exec(i))!==null;)u+="-"+p[1];var h=c1(i)+u;return{name:h,styles:i,next:yn}}var h1=function(t){return t()},Bf=E.useInsertionEffect?E.useInsertionEffect:!1,jf=Bf||h1,Wf=Bf||E.useLayoutEffect,Vf=E.createContext(typeof HTMLElement<"u"?o1({key:"css"}):null);Vf.Provider;var bc=function(t){return j.forwardRef(function(n,r){var i=j.useContext(Vf);return t(n,i,r)})},Xs=E.createContext({}),xc={}.hasOwnProperty,vc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",g1=function(t,n){var r={};for(var i in n)xc.call(n,i)&&(r[i]=n[i]);return r[vc]=t,r},m1=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return gc(n,r,i),jf(function(){return mc(n,r,i)}),null},y1=bc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[vc],s=[r],a="";typeof e.className=="string"?a=Df(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var c=ii(s,void 0,E.useContext(Xs));a+=t.key+"-"+c.name;var d={};for(var u in e)xc.call(e,u)&&u!=="css"&&u!==vc&&(d[u]=e[u]);return d.className=a,n&&(d.ref=n),E.createElement(E.Fragment,null,E.createElement(m1,{cache:t,serialized:c,isStringTag:typeof i=="string"}),E.createElement(i,d))}),b1=y1,Uf=function(t,n){var r=arguments;if(n==null||!xc.call(n,"css"))return E.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=b1,s[1]=g1(t,n);for(var a=2;a<i;a++)s[a]=r[a];return E.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Uf||(Uf={}));var x1=bc(function(e,t){var n=e.styles,r=ii([n],void 0,E.useContext(Xs)),i=E.useRef();return Wf(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}),c=!1,d=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),d!==null&&(c=!0,d.setAttribute("data-emotion",s),a.hydrate([d])),i.current=[a,c],function(){a.flush()}},[t]),Wf(function(){var s=i.current,a=s[0],c=s[1];if(c){s[1]=!1;return}if(r.next!==void 0&&mc(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 Xr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ii(t)}function Xn(){var e=Xr.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 v1=/^((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)-.*))$/,S1=kf(function(e){return v1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),w1=S1,C1=function(t){return t!=="theme"},Hf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?w1:C1},Rf=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},E1=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return gc(n,r,i),jf(function(){return mc(n,r,i)}),null},T1=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 c=Rf(t,n,r),d=c||Hf(i),u=!d("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{var y=p[0];h.push(y[0]);for(var x=p.length,g=1;g<x;g++)h.push(p[g],y[g])}var f=bc(function(m,S,C){var b=u&&m.as||i,v="",w=[],A=m;if(m.theme==null){A={};for(var I in m)A[I]=m[I];A.theme=E.useContext(Xs)}typeof m.className=="string"?v=Df(S.registered,w,m.className):m.className!=null&&(v=m.className+" ");var z=ii(h.concat(w),S.registered,A);v+=S.key+"-"+z.name,a!==void 0&&(v+=" "+a);var M=u&&c===void 0?Hf(b):d,L={};for(var O in m)u&&O==="as"||M(O)&&(L[O]=m[O]);return L.className=v,C&&(L.ref=C),E.createElement(E.Fragment,null,E.createElement(E1,{cache:S,serialized:z,isStringTag:typeof b=="string"}),E.createElement(b,L))});return f.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=i,f.__emotion_styles=h,f.__emotion_forwardProp=c,Object.defineProperty(f,"toString",{value:function(){return"."+a}}),f.withComponent=function(m,S){var C=e(m,js({},n,S,{shouldForwardProp:Rf(f,S,!0)}));return C.apply(void 0,h)},f}},A1=["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"],Sc=T1.bind(null);A1.forEach(function(e){Sc[e]=Sc(e)});var Js={exports:{}};var wc,qf;function k1(){if(qf)return wc;qf=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={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(a).map(function(p){return a[p]});if(d.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(p){u[p]=p}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return wc=i()?Object.assign:function(s,a){for(var c,d=r(s),u,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var h in c)t.call(c,h)&&(d[h]=c[h]);if(e){u=e(c);for(var y=0;y<u.length;y++)n.call(c,u[y])&&(d[u[y]]=c[u[y]])}}return d},wc}var Cc,Yf;function Ec(){if(Yf)return Cc;Yf=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Cc=e,Cc}var Tc,Kf;function Gf(){return Kf||(Kf=1,Tc=Function.call.bind(Object.prototype.hasOwnProperty)),Tc}var Ac,Xf;function P1(){if(Xf)return Ac;Xf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ec(),n={},r=Gf();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,c,d,u){if(process.env.NODE_ENV!=="production"){for(var p in s)if(r(s,p)){var h;try{if(typeof s[p]!="function"){var y=Error((d||"React class")+": "+c+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}h=s[p](a,p,d,c,null,t)}catch(g){h=g}if(h&&!(h instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var x=u?u():"";e("Failed "+c+" type: "+h.message+(x??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ac=i,Ac}var kc,Jf;function O1(){if(Jf)return kc;Jf=1;var e=fc(),t=k1(),n=Ec(),r=Gf(),i=P1(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return kc=function(c,d){var u=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function h($){var W=$&&(u&&$[u]||$[p]);if(typeof W=="function")return W}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:L(),objectOf:z,oneOf:I,oneOfType:M,shape:T,exact:N};function g($,W){return $===W?$!==0||1/$===1/W:$!==$&&W!==W}function f($,W){this.message=$,this.data=W&&typeof W=="object"?W:{},this.stack=""}f.prototype=Error.prototype;function m($){if(process.env.NODE_ENV!=="production")var W={},q=0;function J(ee,te,ie,ce,ae,oe,pe){if(ce=ce||y,oe=oe||ie,pe!==n){if(d){var H=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 H.name="Invariant Violation",H}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ge=ce+":"+ie;!W[ge]&&q<3&&(s("You are manually calling a React.PropTypes validation function for the `"+oe+"` prop on `"+ce+"`. 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."),W[ge]=!0,q++)}}return te[ie]==null?ee?te[ie]===null?new f("The "+ae+" `"+oe+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new f("The "+ae+" `"+oe+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:$(te,ie,ce,ae,oe)}var X=J.bind(null,!1);return X.isRequired=J.bind(null,!0),X}function S($){function W(q,J,X,ee,te,ie){var ce=q[J],ae=F(ce);if(ae!==$){var oe=_(ce);return new f("Invalid "+ee+" `"+te+"` of type "+("`"+oe+"` supplied to `"+X+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return m(W)}function C(){return m(a)}function b($){function W(q,J,X,ee,te){if(typeof $!="function")return new f("Property `"+te+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var ie=q[J];if(!Array.isArray(ie)){var ce=F(ie);return new f("Invalid "+ee+" `"+te+"` of type "+("`"+ce+"` supplied to `"+X+"`, expected an array."))}for(var ae=0;ae<ie.length;ae++){var oe=$(ie,ae,X,ee,te+"["+ae+"]",n);if(oe instanceof Error)return oe}return null}return m(W)}function v(){function $(W,q,J,X,ee){var te=W[q];if(!c(te)){var ie=F(te);return new f("Invalid "+X+" `"+ee+"` of type "+("`"+ie+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return m($)}function w(){function $(W,q,J,X,ee){var te=W[q];if(!e.isValidElementType(te)){var ie=F(te);return new f("Invalid "+X+" `"+ee+"` of type "+("`"+ie+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return m($)}function A($){function W(q,J,X,ee,te){if(!(q[J]instanceof $)){var ie=$.name||y,ce=V(q[J]);return new f("Invalid "+ee+" `"+te+"` of type "+("`"+ce+"` supplied to `"+X+"`, expected ")+("instance of `"+ie+"`."))}return null}return m(W)}function I($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function W(q,J,X,ee,te){for(var ie=q[J],ce=0;ce<$.length;ce++)if(g(ie,$[ce]))return null;var ae=JSON.stringify($,function(pe,H){var ge=_(H);return ge==="symbol"?String(H):H});return new f("Invalid "+ee+" `"+te+"` of value `"+String(ie)+"` "+("supplied to `"+X+"`, expected one of "+ae+"."))}return m(W)}function z($){function W(q,J,X,ee,te){if(typeof $!="function")return new f("Property `"+te+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var ie=q[J],ce=F(ie);if(ce!=="object")return new f("Invalid "+ee+" `"+te+"` of type "+("`"+ce+"` supplied to `"+X+"`, expected an object."));for(var ae in ie)if(r(ie,ae)){var oe=$(ie,ae,X,ee,te+"."+ae,n);if(oe instanceof Error)return oe}return null}return m(W)}function M($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var W=0;W<$.length;W++){var q=$[W];if(typeof q!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+k(q)+" at index "+W+"."),a}function J(X,ee,te,ie,ce){for(var ae=[],oe=0;oe<$.length;oe++){var pe=$[oe],H=pe(X,ee,te,ie,ce,n);if(H==null)return null;H.data&&r(H.data,"expectedType")&&ae.push(H.data.expectedType)}var ge=ae.length>0?", expected one of type ["+ae.join(", ")+"]":"";return new f("Invalid "+ie+" `"+ce+"` supplied to "+("`"+te+"`"+ge+"."))}return m(J)}function L(){function $(W,q,J,X,ee){return D(W[q])?null:new f("Invalid "+X+" `"+ee+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return m($)}function O($,W,q,J,X){return new f(($||"React class")+": "+W+" type `"+q+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function T($){function W(q,J,X,ee,te){var ie=q[J],ce=F(ie);if(ce!=="object")return new f("Invalid "+ee+" `"+te+"` of type `"+ce+"` "+("supplied to `"+X+"`, expected `object`."));for(var ae in $){var oe=$[ae];if(typeof oe!="function")return O(X,ee,te,ae,_(oe));var pe=oe(ie,ae,X,ee,te+"."+ae,n);if(pe)return pe}return null}return m(W)}function N($){function W(q,J,X,ee,te){var ie=q[J],ce=F(ie);if(ce!=="object")return new f("Invalid "+ee+" `"+te+"` of type `"+ce+"` "+("supplied to `"+X+"`, expected `object`."));var ae=t({},q[J],$);for(var oe in ae){var pe=$[oe];if(r($,oe)&&typeof pe!="function")return O(X,ee,te,oe,_(pe));if(!pe)return new f("Invalid "+ee+" `"+te+"` key `"+oe+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(q[J],null," ")+`
|
|
25
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
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
|
|
27
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:hn(18,`(${t})`));return null}const[,r,i]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(s)}function
|
|
23
|
+
`):" "+af(a[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return i}const lf={getAdapter:c1,adapters:tc};function nc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Lr(null,e)}function cf(e){return nc(e),e.headers=$t.from(e.headers),e.data=ec.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lf.getAdapter(e.adapter||Bo.adapter,e)(e).then(function(r){return nc(e),r.data=ec.call(e,e.transformResponse,r),r.headers=$t.from(r.headers),r},function(r){return Yu(r)||(nc(e),r&&r.response&&(r.response.data=ec.call(e,e.transformResponse,r.response),r.response.headers=$t.from(r.response.headers))),Promise.reject(r)})}const df="1.13.2",Os={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Os[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const pf={};Os.transitional=function(t,n,r){function i(s,a){return"[Axios v"+df+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,c)=>{if(t===!1)throw new Fe(i(a," has been removed"+(n?" in "+n:"")),Fe.ERR_DEPRECATED);return n&&!pf[a]&&(pf[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,a,c):!0}},Os.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function d1(e,t,n){if(typeof e!="object")throw new Fe("options must be an object",Fe.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 c=e[s],d=c===void 0||a(c,s,e);if(d!==!0)throw new Fe("option "+s+" must be "+d,Fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Fe("Unknown option "+s,Fe.ERR_BAD_OPTION)}}const Is={assertOptions:d1,validators:Os},fn=Is.validators;let ur=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Uu,response:new Uu}}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=pr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Is.assertOptions(r,{silentJSONParsing:fn.transitional(fn.boolean),forcedJSONParsing:fn.transitional(fn.boolean),clarifyTimeoutError:fn.transitional(fn.boolean)},!1),i!=null&&(R.isFunction(i)?n.paramsSerializer={serialize:i}:Is.assertOptions(i,{encode:fn.function,serialize:fn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Is.assertOptions(n,{baseUrl:fn.spelling("baseURL"),withXsrfToken:fn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&R.merge(s.common,s[n.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=$t.concat(a,s);const c=[];let d=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(d=d&&f.synchronous,c.unshift(f.fulfilled,f.rejected))});const u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let p,h=0,y;if(!d){const g=[cf.bind(this),void 0];for(g.unshift(...c),g.push(...u),y=g.length,p=Promise.resolve(n);h<y;)p=p.then(g[h++],g[h++]);return p}y=c.length;let b=n;for(;h<y;){const g=c[h++],f=c[h++];try{b=g(b)}catch(m){f.call(this,m);break}}try{p=cf.call(this,b)}catch(g){return Promise.reject(g)}for(h=0,y=u.length;h<y;)p=p.then(u[h++],u[h++]);return p}getUri(t){t=pr(this.defaults,t);const n=Ju(t.baseURL,t.url,t.allowAbsoluteUrls);return Vu(n,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(t){ur.prototype[t]=function(n,r){return this.request(pr(r||{},{method:t,url:n,data:(r||{}).data}))}}),R.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,c){return this.request(pr(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}ur.prototype[t]=n(),ur.prototype[t+"Form"]=n(!0)});let p1=class dy{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(c=>{r.subscribe(c),s=c}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,c){r.reason||(r.reason=new Lr(s,a,c),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 dy(function(i){t=i}),cancel:t}}};function u1(e){return function(n){return e.apply(null,n)}}function f1(e){return R.isObject(e)&&e.isAxiosError===!0}const rc={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(rc).forEach(([e,t])=>{rc[t]=e});function uf(e){const t=new ur(e),n=ku(ur.prototype.request,t);return R.extend(n,ur.prototype,t,{allOwnKeys:!0}),R.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return uf(pr(e,i))},n}const st=uf(Bo);st.Axios=ur,st.CanceledError=Lr,st.CancelToken=p1,st.isCancel=Yu,st.VERSION=df,st.toFormData=Ts,st.AxiosError=Fe,st.Cancel=st.CanceledError,st.all=function(t){return Promise.all(t)},st.spread=u1,st.isAxiosError=f1,st.mergeConfig=pr,st.AxiosHeaders=$t,st.formToJSON=e=>Ru(R.isHTMLForm(e)?new FormData(e):e),st.getAdapter=lf.getAdapter,st.HttpStatusCode=rc,st.default=st;const{Axios:e5,AxiosError:t5,CanceledError:n5,isCancel:r5,CancelToken:o5,VERSION:i5,all:s5,Cancel:a5,isAxiosError:l5,spread:c5,toFormData:d5,AxiosHeaders:p5,HttpStatusCode:u5,formToJSON:f5,getAdapter:h5,mergeConfig:g5}=st;function Ns(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 h1={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 oc(e,t){function n(i,s,a){if(!(typeof document>"u")){a=Ns({},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 c="";for(var d in a)a[d]&&(c+="; "+d,a[d]!==!0&&(c+="="+a[d].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+c}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},c=0;c<s.length;c++){var d=s[c].split("="),u=d.slice(1).join("=");try{var p=decodeURIComponent(d[0]);if(a[p]=e.read(u,p),i===p)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",Ns({},s,{expires:-1}))},withAttributes:function(i){return oc(this.converter,Ns({},this.attributes,i))},withConverter:function(i){return oc(Ns({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Kn=oc(h1,{path:"/"});const g1={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let Br="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:dl&&dl.tagName.toUpperCase()==="SCRIPT"&&dl.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&g1?.VITE_API_URL)Br=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(Br=process.env.VITE_API_URL)}}catch{}const m1=e=>{Br=e,at.defaults.baseURL=Br},y1=e=>{e?Kn.set("token",e,{secure:!0,sameSite:"Strict"}):Kn.remove("token")},b1=()=>"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NDE3NSwibmFtZSI6IlN1YmhhbSAiLCJjb21wYW55SWQiOiIxYzQzYzhjMi1jNzg0LTQ0MmUtOTU3NC03YTM4ZTgyODJkMWEiLCJyZWdpb25zIjpbXSwiY2x1c3RlcnMiOltdLCJmb3JtYXRzIjpbXSwic3RvcmVzIjpbeyJpZCI6IjA5NDYwODY4LTgzODgtNGNkNi04Y2QwLTc0OWFhZmEzY2NiMSIsIm5hbWUiOiJIUjA0In1dLCJyb2xlcyI6W3siaWQiOjc2NywibmFtZSI6IlNUT1JFTUFOQUdFUiJ9XSwic2Vzc2lvbklkIjo3ODEzLCJpYXQiOjE3NzM4MDQ1ODUsImV4cCI6MTc3Mzg5MDk4NX0.uTa0gBGtas-0UbZvY8PjDVx5l7c8C9m0_W-SRd7mEow",at=st.create({baseURL:Br,transformRequest:[function(e,t){const n=b1();return t.Authorization=`Bearer ${n}`,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let ic=!1,sc=null;at.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response;if(n&&(n.status===401||n.status===402)){const r=Kn.get("refreshToken");if(r)try{ic||(ic=!0,sc=st.post(`${Br}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${r}`}}));const i=await sc,{token:s,refreshToken:a}=i.data;return Kn.set("token",s,{secure:!0,sameSite:"Strict"}),Kn.set("refreshToken",a),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${s}`,at(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(Kn.remove("token"),Kn.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{ic=!1,sc=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(Kn.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const Wo=xt("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await at.get("/dashboard/metrics",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),Fs=xt("dashboard/fetchProductDashboardMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await at.get("/dashboard/metrics/category",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch product dashboard metrics";return t(r)}}),Vo=xt("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{const n=await at.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(),c=(r?.lastName!=null?r.lastName:n.data?.lastName!=null?n.data.lastName:"").toString().trim(),d=[a,c].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)}}),zt=xt("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const n=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await at.get(n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),Uo=xt("dashboard/fetchStores",async(e={},{rejectWithValue:t})=>{try{return(await at.get("/store",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch stores";return t(r)}}),Gn=xt("dashboard/fetchCategories",async(e={},{rejectWithValue:t})=>{try{return(await at.get("/category",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch categories";return t(r)}}),zn=xt("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await at.get("/store-inventory",{params:e})).data||{}}catch(n){return t(n.response?.data||n.message)}}),Ms=xt("dashboard/fetchStoreInventoryForPromo",async(e={},{rejectWithValue:t})=>{try{return(await at.get("/store-inventory",{params:e})).data||{}}catch(n){return t(n.response?.data||n.message)}}),Ds=xt("dashboard/createCatalog",async({name:e,slug:t,description:n="",storeCode:r,products:i,categories:s},{rejectWithValue:a})=>{try{const c=Array.isArray(r)?r:[r].filter(Boolean),d=Array.isArray(i)?i:[],u=Array.isArray(s)?s:[],p={name:e,slug:t,description:n||"",storeCode:c};return d.length>0&&(p.products=d),u.length>0&&(p.categories=u),(await at.post("/catalogues",p)).data}catch(c){const d=c.response?.data?.message||c.message||"Failed to create catalog";return a(d)}}),Ho=xt("dashboard/updateCatalog",async({id:e,name:t,slug:n,status:r},{rejectWithValue:i})=>{try{const s=`/catalogues/${e}`,a={name:t,slug:n,status:r===!0||r==="Active"};return(await at.put(s,a)).data}catch(s){const a=s.response?.data?.message||s.message||"Failed to update catalog";return i(a)}}),_s=xt("dashboard/deleteCatalog",async(e,{rejectWithValue:t})=>{try{const n=`/catalogues/${e}`;return await at.delete(n),e}catch(n){const r=n.response?.data?.message||n.message||"Failed to delete catalog";return t(r)}}),$s=xt("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:[],c={storeCodes:i};return s.length>0&&(c.products=s),a.length>0&&(c.categories=a),(await at.post("/osa",c)).data}catch(i){const s=i.response?.data?.message||i.message||"Failed to create OSA request";return r(s)}}),ff=mu({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},updateMetric:(e,t)=>{const{key:n,value:r}=t.payload;e.metrics&&(e.metrics[n]=r)}},extraReducers:e=>{e.addCase(Wo.pending,t=>{t.loading=!0,t.error=null}).addCase(Wo.fulfilled,(t,n)=>{t.loading=!1,t.metrics=n.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(Wo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch dashboard metrics"}),e.addCase(Fs.pending,t=>{t.loading=!0}).addCase(Fs.fulfilled,(t,n)=>{t.loading=!1,t.productDashboardMetrics=n.payload||{}}).addCase(Fs.rejected,t=>{t.loading=!1,t.productDashboardMetrics={}}),e.addCase(zt.pending,t=>{t.loading=!0}).addCase(zt.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(zt.rejected,t=>{t.loading=!1}),e.addCase(Vo.pending,t=>{t.loading=!0,t.error=null}),e.addCase(Vo.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(Vo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to verify auth"}),e.addCase(Gn.pending,t=>{t.loading=!0,t.categoriesLoading=!0,t.error=null}).addCase(Gn.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(Gn.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(Uo.pending,t=>{t.loading=!0,t.error=null}).addCase(Uo.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 c=a.id??a.storeCode??a.storeId,d=a.name??a.storeName??a.storel??"",u=a.storeCode??a.id??c;return{id:c,name:d,storeCode:u}});t.stores=[{id:"all",name:"All Stores",storeCode:"all"},...s]}).addCase(Uo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch stores",t.stores=[]}),e.addCase(zn.pending,t=>{t.loading=!0,t.productsLoading=!0,t.error=null,t.loadingMessage="Fetching Schedules"}).addCase(zn.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,b=0)=>{if(y==null||y==="")return b;const g=Number(y);return Number.isFinite(g)?g:b},a={};i.forEach(y=>{if(!y)return;const b=y.categoryName||"Uncategorized";a[b]||(a[b]=[]);const g=s(y.stock),f=s(y.inShelf??y.inshelf??y.in_shelf),m=g>0?Math.round(f/g*100):0;a[b].push({...y,stock:g,inShelf:f,quantity:f,osa:m})}),t.products=Object.values(a).flat();const c=Object.values(a).flat(),d=Object.keys(a).length,u=c.length;t.homePageCardSummary={...t.homePageCardSummary,totalCategories:d,totalProducts:u},t.productsByCategory=a;const p=r.pagination||{},h=typeof p.totalCount=="number"?p.totalCount:Object.values(a).reduce((y,b)=>y+b.length,0);t.pagination={currentPage:typeof p.currentPage=="number"?p.currentPage:1,limit:typeof p.limit=="number"?p.limit:20,totalCount:h,totalPages:typeof p.totalPages=="number"?p.totalPages:1,hasNextPage:typeof p.hasNextPage=="boolean"?p.hasNextPage:!1}}).addCase(zn.rejected,(t,n)=>{t.loading=!1,t.productsLoading=!1,t.error=n.payload||"Failed to fetch products",t.loadingMessage=""}).addCase(Ms.fulfilled,()=>{}).addCase(Ms.rejected,()=>{}),e.addCase(Ds.pending,t=>{t.createCatalogLoading=!0,t.createCatalogError=null}).addCase(Ds.fulfilled,t=>{t.createCatalogLoading=!1,t.createCatalogError=null}).addCase(Ds.rejected,(t,n)=>{t.createCatalogLoading=!1,t.createCatalogError=n.payload||"Failed to create catalog"}),e.addCase(Ho.pending,t=>{t.updateCatalogLoading=!0,t.updateCatalogError=null}).addCase(Ho.fulfilled,t=>{t.updateCatalogLoading=!1,t.updateCatalogError=null}).addCase(Ho.rejected,(t,n)=>{t.updateCatalogLoading=!1,t.updateCatalogError=n.payload||"Failed to update catalog"}),e.addCase(_s.pending,t=>{t.deleteCatalogLoading=!0,t.deleteCatalogError=null}).addCase(_s.fulfilled,t=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=null}).addCase(_s.rejected,(t,n)=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=n.payload||"Failed to delete catalog"}),e.addCase($s.pending,t=>{t.createOsaRequestLoading=!0,t.createOsaRequestError=null}).addCase($s.fulfilled,t=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=null}).addCase($s.rejected,(t,n)=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=n.payload||"Failed to create OSA request"})}}),{updateMetric:y5,clearCreateCatalogError:hf,clearUpdateCatalogError:b5,clearDeleteCatalogError:x5,clearCreateOsaRequestError:x1}=ff.actions,v1=ff.reducer,Ro=xt("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 c=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!c)throw new Error("Invalid server address format. Expected format: protocol://host:port/path");let[,d,u,p,h]=c;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:u,port:Number(p),username:t,password:n,path:h.replace(/^\//,"")},entity_type:""};return(await at.post("/ftp/sync/test-connection",y)).data}catch(a){const c=a.response?.data?.message||a.message||"Failed to test FTP connection";return s(c)}}),qo=xt("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};return(await at.post("/ftp/sync/save",n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to save FTP sync configuration";return t(r)}}),jr=xt("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 at.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)}}),Yo=xt("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const n=await at.post(`/ftp/sync/${e}/sync-now`);if(n.status>=200&&n.status<300)return n.data;{const r=n.data?.message||"Failed to start sync";return t(r)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to start sync";return t(r)}}),Ko=xt("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const n=e?{entity_type:e}:{},r=await at.get("/store-inventory/mapping-columns",{params:n});if(r.status>=200&&r.status<300)return r.data&&typeof r.data=="object"&&"status"in r.data&&r.data.status?r.data.data||[]:r.data||[];{const i=r.data?.message||"Failed to fetch mapping columns";return t(i)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch mapping columns";return t(r)}}),Go=xt("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 at.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)}}),Yt=xt("productSettings/fetchSharedCatalogues",async(e,{rejectWithValue:t})=>{try{const n=e&&typeof e=="object"?e:{},r=await at.get("/catalogues/shared",{params:n});if(r.status>=200&&r.status<300){const s=r.data;return s&&typeof s=="object"&&Array.isArray(s.data)&&typeof s.total=="number"?{total:s.total,page:s.page,limit:s.limit,data:s.data}:{total:0,page:1,limit:10,data:Array.isArray(s)?s:[]}}const i=r.data?.message||r.data?.error||"Failed to fetch shared catalogues";return t(i)}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch shared catalogues";return t(r)}}),ac={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},gf=mu({name:"productSettings",initialState:ac,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=ac.syncData}},extraReducers:e=>{e.addCase(Ro.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(Ro.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(Ro.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to test FTP connection"}),e.addCase(Ko.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(Ko.fulfilled,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(n.payload)?n.payload:[],t.mappingColumnsError=null}).addCase(Ko.rejected,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=n.payload||"Failed to fetch mapping columns"}),e.addCase(Yt.pending,t=>{t.sharedCataloguesLoading=!0,t.sharedCataloguesError=null}).addCase(Yt.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(Yt.rejected,(t,n)=>{t.sharedCataloguesLoading=!1,t.sharedCataloguesError=n.payload||"Failed to fetch shared catalogues"}),e.addCase(qo.pending,t=>{t.loading=!0,t.error=null}).addCase(qo.fulfilled,(t,n)=>{t.loading=!1,t.saveResult=n.payload,t.error=null,t.syncData=ac.syncData}).addCase(qo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to save FTP sync configuration"}),e.addCase(jr.pending,t=>{t.loading=!0,t.error=null}).addCase(jr.fulfilled,(t,n)=>{t.loading=!1,t.updateDetailsResult=n.payload,t.error=null}).addCase(jr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to update FTP sync details"}),e.addCase(Yo.pending,t=>{t.loading=!0,t.error=null}).addCase(Yo.fulfilled,(t,n)=>{t.loading=!1,t.syncNowResult=n.payload,t.error=null}).addCase(Yo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to start sync"}),e.addCase(Go.pending,t=>{t.updateIntegrationByChannelIdLoading=!0,t.updateIntegrationByChannelIdError=null}).addCase(Go.fulfilled,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdResult=n.payload,t.updateIntegrationByChannelIdError=null}).addCase(Go.rejected,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdError=n.payload||"Failed to update integration by channel ID"})}}),{clearError:v5,clearTestConnectionResult:S5,clearSaveResult:S1,clearAll:w5,clearTestConnectionData:C5,clearUpdateDetailsResult:E5,clearSyncNowResult:T5,setFtpSyncData:zs,clearFtpSyncData:A5,clearMappingColumnsError:k5,clearMappingColumns:P5,clearSharedCataloguesError:O5,clearSharedCatalogues:I5,clearUpdateIntegrationByChannelIdResult:N5}=gf.actions,w1=gf.reducer;var Ls={},Bs={},mf;function C1(){if(mf)return Bs;mf=1,Bs.__esModule=!0,Bs.default=i;function e(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(c){return typeof c}:e=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},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],c="redux-persist ".concat(s," test");a.setItem(c,"test"),a.getItem(c),a.removeItem(c)}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 Bs}var yf;function E1(){if(yf)return Ls;yf=1,Ls.__esModule=!0,Ls.default=n;var e=t(C1());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(c,d){c(i.getItem(a))})},setItem:function(a,c){return new Promise(function(d,u){d(i.setItem(a,c))})},removeItem:function(a){return new Promise(function(c,d){c(i.removeItem(a))})}}}return Ls}var T1=E1();const A1={key:"auth",storage:typeof window<"u"?Ep(T1)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},k1=Dp({dashboard:v1,productSettings:w1}),P1=Lx(A1,k1),bf=ox({reducer:P1,middleware:e=>e({serializableCheck:!1})}),O1=Hx(bf),I1=z.createContext(null),N1=({children:e,apiUrl:t,authToken:n})=>(z.useEffect(()=>{t&&m1(t)},[t]),z.useEffect(()=>{y1(n||null)},[n]),l.jsx(I1.Provider,{value:{apiUrl:t},children:e})),Xo={black:"#000",white:"#fff"},Wr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Vr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ur={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Hr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Rr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Jo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},F1={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 hn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Qo="$$material";function js(){return js=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},js.apply(null,arguments)}function M1(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 D1(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 _1=(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(D1(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=M1(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})(),At="-ms-",Ws="-moz-",Ue="-webkit-",xf="comm",lc="rule",cc="decl",$1="@import",vf="@keyframes",z1="@layer",L1=Math.abs,Vs=String.fromCharCode,B1=Object.assign;function j1(e,t){return wt(e,0)^45?(((t<<2^wt(e,0))<<2^wt(e,1))<<2^wt(e,2))<<2^wt(e,3):0}function Sf(e){return e.trim()}function W1(e,t){return(e=t.exec(e))?e[0]:e}function He(e,t,n){return e.replace(t,n)}function dc(e,t){return e.indexOf(t)}function wt(e,t){return e.charCodeAt(t)|0}function Zo(e,t,n){return e.slice(t,n)}function gn(e){return e.length}function pc(e){return e.length}function Us(e,t){return t.push(e),e}function V1(e,t){return e.map(t).join("")}var Hs=1,qr=1,wf=0,Lt=0,gt=0,Yr="";function Rs(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:Hs,column:qr,length:a,return:""}}function ei(e,t){return B1(Rs("",null,null,"",null,null,0),e,{length:-e.length},t)}function U1(){return gt}function H1(){return gt=Lt>0?wt(Yr,--Lt):0,qr--,gt===10&&(qr=1,Hs--),gt}function Ut(){return gt=Lt<wf?wt(Yr,Lt++):0,qr++,gt===10&&(qr=1,Hs++),gt}function mn(){return wt(Yr,Lt)}function qs(){return Lt}function ti(e,t){return Zo(Yr,e,t)}function ni(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 Cf(e){return Hs=qr=1,wf=gn(Yr=e),Lt=0,[]}function Ef(e){return Yr="",e}function Ys(e){return Sf(ti(Lt-1,uc(e===91?e+2:e===40?e+1:e)))}function R1(e){for(;(gt=mn())&><33;)Ut();return ni(e)>2||ni(gt)>3?"":" "}function q1(e,t){for(;--t&&Ut()&&!(gt<48||gt>102||gt>57&><65||gt>70&><97););return ti(e,qs()+(t<6&&mn()==32&&Ut()==32))}function uc(e){for(;Ut();)switch(gt){case e:return Lt;case 34:case 39:e!==34&&e!==39&&uc(gt);break;case 40:e===41&&uc(e);break;case 92:Ut();break}return Lt}function Y1(e,t){for(;Ut()&&e+gt!==57;)if(e+gt===84&&mn()===47)break;return"/*"+ti(t,Lt-1)+"*"+Vs(e===47?e:Ut())}function K1(e){for(;!ni(mn());)Ut();return ti(e,Lt)}function G1(e){return Ef(Ks("",null,null,null,[""],e=Cf(e),0,[0],e))}function Ks(e,t,n,r,i,s,a,c,d){for(var u=0,p=0,h=a,y=0,b=0,g=0,f=1,m=1,S=1,C=0,x="",v=i,w=s,A=r,O=x;m;)switch(g=C,C=Ut()){case 40:if(g!=108&&wt(O,h-1)==58){dc(O+=He(Ys(C),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:O+=Ys(C);break;case 9:case 10:case 13:case 32:O+=R1(g);break;case 92:O+=q1(qs()-1,7);continue;case 47:switch(mn()){case 42:case 47:Us(X1(Y1(Ut(),qs()),t,n),d);break;default:O+="/"}break;case 123*f:c[u++]=gn(O)*S;case 125*f:case 59:case 0:switch(C){case 0:case 125:m=0;case 59+p:S==-1&&(O=He(O,/\f/g,"")),b>0&&gn(O)-h&&Us(b>32?Af(O+";",r,n,h-1):Af(He(O," ","")+";",r,n,h-2),d);break;case 59:O+=";";default:if(Us(A=Tf(O,t,n,u,p,i,c,x,v=[],w=[],h),s),C===123)if(p===0)Ks(O,t,A,A,v,s,h,c,w);else switch(y===99&&wt(O,3)===110?100:y){case 100:case 108:case 109:case 115:Ks(e,A,A,r&&Us(Tf(e,A,A,0,0,i,c,x,i,v=[],h),w),i,w,h,c,r?v:w);break;default:Ks(O,A,A,A,[""],w,0,c,w)}}u=p=b=0,f=S=1,x=O="",h=a;break;case 58:h=1+gn(O),b=g;default:if(f<1){if(C==123)--f;else if(C==125&&f++==0&&H1()==125)continue}switch(O+=Vs(C),C*f){case 38:S=p>0?1:(O+="\f",-1);break;case 44:c[u++]=(gn(O)-1)*S,S=1;break;case 64:mn()===45&&(O+=Ys(Ut())),y=mn(),p=h=gn(x=O+=K1(qs())),C++;break;case 45:g===45&&gn(O)==2&&(f=0)}}return s}function Tf(e,t,n,r,i,s,a,c,d,u,p){for(var h=i-1,y=i===0?s:[""],b=pc(y),g=0,f=0,m=0;g<r;++g)for(var S=0,C=Zo(e,h+1,h=L1(f=a[g])),x=e;S<b;++S)(x=Sf(f>0?y[S]+" "+C:He(C,/&\f/g,y[S])))&&(d[m++]=x);return Rs(e,t,n,i===0?lc:c,d,u,p)}function X1(e,t,n){return Rs(e,t,n,xf,Vs(U1()),Zo(e,2,-2),0)}function Af(e,t,n,r){return Rs(e,t,n,cc,Zo(e,0,r),Zo(e,r+1,-1),r)}function Kr(e,t){for(var n="",r=pc(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function J1(e,t,n,r){switch(e.type){case z1:if(e.children.length)break;case $1:case cc:return e.return=e.return||e.value;case xf:return"";case vf:return e.return=e.value+"{"+Kr(e.children,r)+"}";case lc:e.value=e.props.join(",")}return gn(n=Kr(e.children,r))?e.return=e.value+"{"+n+"}":""}function Q1(e){var t=pc(e);return function(n,r,i,s){for(var a="",c=0;c<t;c++)a+=e[c](n,r,i,s)||"";return a}}function Z1(e){return function(t){t.root||(t=t.return)&&e(t)}}function kf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var eS=function(t,n,r){for(var i=0,s=0;i=s,s=mn(),i===38&&s===12&&(n[r]=1),!ni(s);)Ut();return ti(t,Lt)},tS=function(t,n){var r=-1,i=44;do switch(ni(i)){case 0:i===38&&mn()===12&&(n[r]=1),t[r]+=eS(Lt-1,n,r);break;case 2:t[r]+=Ys(i);break;case 4:if(i===44){t[++r]=mn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Vs(i)}while(i=Ut());return t},nS=function(t,n){return Ef(tS(Cf(t),n))},Pf=new WeakMap,rS=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&&!Pf.get(r))&&!i){Pf.set(t,!0);for(var s=[],a=nS(n,s),c=r.props,d=0,u=0;d<a.length;d++)for(var p=0;p<c.length;p++,u++)t.props[u]=s[d]?a[d].replace(/&\f/g,c[p]):c[p]+" "+a[d]}}},oS=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Of(e,t){switch(j1(e,t)){case 5103:return Ue+"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 Ue+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ue+e+Ws+e+At+e+e;case 6828:case 4268:return Ue+e+At+e+e;case 6165:return Ue+e+At+"flex-"+e+e;case 5187:return Ue+e+He(e,/(\w+).+(:[^]+)/,Ue+"box-$1$2"+At+"flex-$1$2")+e;case 5443:return Ue+e+At+"flex-item-"+He(e,/flex-|-self/,"")+e;case 4675:return Ue+e+At+"flex-line-pack"+He(e,/align-content|flex-|-self/,"")+e;case 5548:return Ue+e+At+He(e,"shrink","negative")+e;case 5292:return Ue+e+At+He(e,"basis","preferred-size")+e;case 6060:return Ue+"box-"+He(e,"-grow","")+Ue+e+At+He(e,"grow","positive")+e;case 4554:return Ue+He(e,/([^-])(transform)/g,"$1"+Ue+"$2")+e;case 6187:return He(He(He(e,/(zoom-|grab)/,Ue+"$1"),/(image-set)/,Ue+"$1"),e,"")+e;case 5495:case 3959:return He(e,/(image-set\([^]*)/,Ue+"$1$`$1");case 4968:return He(He(e,/(.+:)(flex-)?(.*)/,Ue+"box-pack:$3"+At+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ue+e+e;case 4095:case 3583:case 4068:case 2532:return He(e,/(.+)-inline(.+)/,Ue+"$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(gn(e)-1-t>6)switch(wt(e,t+1)){case 109:if(wt(e,t+4)!==45)break;case 102:return He(e,/(.+:)(.+)-([^]+)/,"$1"+Ue+"$2-$3$1"+Ws+(wt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~dc(e,"stretch")?Of(He(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(wt(e,t+1)!==115)break;case 6444:switch(wt(e,gn(e)-3-(~dc(e,"!important")&&10))){case 107:return He(e,":",":"+Ue)+e;case 101:return He(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ue+(wt(e,14)===45?"inline-":"")+"box$3$1"+Ue+"$2$3$1"+At+"$2box$3")+e}break;case 5936:switch(wt(e,t+11)){case 114:return Ue+e+At+He(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ue+e+At+He(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ue+e+At+He(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ue+e+At+e+e}return e}var iS=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case cc:t.return=Of(t.value,t.length);break;case vf:return Kr([ei(t,{value:He(t.value,"@","@"+Ue)})],i);case lc:if(t.length)return V1(t.props,function(s){switch(W1(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kr([ei(t,{props:[He(s,/:(read-\w+)/,":"+Ws+"$1")]})],i);case"::placeholder":return Kr([ei(t,{props:[He(s,/:(plac\w+)/,":"+Ue+"input-$1")]}),ei(t,{props:[He(s,/:(plac\w+)/,":"+Ws+"$1")]}),ei(t,{props:[He(s,/:(plac\w+)/,At+"input-$1")]})],i)}return""})}},sS=[iS],aS=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var m=f.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var i=t.stylisPlugins||sS,s={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var m=f.getAttribute("data-emotion").split(" "),S=1;S<m.length;S++)s[m[S]]=!0;c.push(f)});var d,u=[rS,oS];{var p,h=[J1,Z1(function(f){p.insert(f)})],y=Q1(u.concat(i,h)),b=function(m){return Kr(G1(m),y)};d=function(m,S,C,x){p=C,b(m?m+"{"+S.styles+"}":S.styles),x&&(g.inserted[S.name]=!0)}}var g={key:n,sheet:new _1({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(c),g},Gs={exports:{}},Re={};var If;function lS(){if(If)return Re;If=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,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function x(w){if(typeof w=="object"&&w!==null){var A=w.$$typeof;switch(A){case t:switch(w=w.type,w){case d:case u:case r:case s:case i:case h:return w;default:switch(w=w&&w.$$typeof,w){case c:case p:case g:case b:case a:return w;default:return A}}case n:return A}}}function v(w){return x(w)===u}return Re.AsyncMode=d,Re.ConcurrentMode=u,Re.ContextConsumer=c,Re.ContextProvider=a,Re.Element=t,Re.ForwardRef=p,Re.Fragment=r,Re.Lazy=g,Re.Memo=b,Re.Portal=n,Re.Profiler=s,Re.StrictMode=i,Re.Suspense=h,Re.isAsyncMode=function(w){return v(w)||x(w)===d},Re.isConcurrentMode=v,Re.isContextConsumer=function(w){return x(w)===c},Re.isContextProvider=function(w){return x(w)===a},Re.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Re.isForwardRef=function(w){return x(w)===p},Re.isFragment=function(w){return x(w)===r},Re.isLazy=function(w){return x(w)===g},Re.isMemo=function(w){return x(w)===b},Re.isPortal=function(w){return x(w)===n},Re.isProfiler=function(w){return x(w)===s},Re.isStrictMode=function(w){return x(w)===i},Re.isSuspense=function(w){return x(w)===h},Re.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===u||w===s||w===i||w===h||w===y||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===b||w.$$typeof===a||w.$$typeof===c||w.$$typeof===p||w.$$typeof===m||w.$$typeof===S||w.$$typeof===C||w.$$typeof===f)},Re.typeOf=x,Re}var qe={};var Nf;function cS(){return Nf||(Nf=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,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function x(H){return typeof H=="string"||typeof H=="function"||H===r||H===u||H===s||H===i||H===h||H===y||typeof H=="object"&&H!==null&&(H.$$typeof===g||H.$$typeof===b||H.$$typeof===a||H.$$typeof===c||H.$$typeof===p||H.$$typeof===m||H.$$typeof===S||H.$$typeof===C||H.$$typeof===f)}function v(H){if(typeof H=="object"&&H!==null){var he=H.$$typeof;switch(he){case t:var de=H.type;switch(de){case d:case u:case r:case s:case i:case h:return de;default:var ge=de&&de.$$typeof;switch(ge){case c:case p:case g:case b:case a:return ge;default:return he}}case n:return he}}}var w=d,A=u,O=c,L=a,M=t,_=p,I=r,T=g,F=b,D=n,U=s,N=i,$=h,k=!1;function V(H){return k||(k=!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.")),B(H)||v(H)===d}function B(H){return v(H)===u}function W(H){return v(H)===c}function q(H){return v(H)===a}function X(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function G(H){return v(H)===p}function Q(H){return v(H)===r}function ee(H){return v(H)===g}function oe(H){return v(H)===b}function le(H){return v(H)===n}function ae(H){return v(H)===s}function re(H){return v(H)===i}function ce(H){return v(H)===h}qe.AsyncMode=w,qe.ConcurrentMode=A,qe.ContextConsumer=O,qe.ContextProvider=L,qe.Element=M,qe.ForwardRef=_,qe.Fragment=I,qe.Lazy=T,qe.Memo=F,qe.Portal=D,qe.Profiler=U,qe.StrictMode=N,qe.Suspense=$,qe.isAsyncMode=V,qe.isConcurrentMode=B,qe.isContextConsumer=W,qe.isContextProvider=q,qe.isElement=X,qe.isForwardRef=G,qe.isFragment=Q,qe.isLazy=ee,qe.isMemo=oe,qe.isPortal=le,qe.isProfiler=ae,qe.isStrictMode=re,qe.isSuspense=ce,qe.isValidElementType=x,qe.typeOf=v})()),qe}var Ff;function fc(){return Ff||(Ff=1,process.env.NODE_ENV==="production"?Gs.exports=lS():Gs.exports=cS()),Gs.exports}var hc,Mf;function dS(){if(Mf)return hc;Mf=1;var e=fc(),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 c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,y=Object.prototype;function b(g,f,m){if(typeof f!="string"){if(y){var S=h(f);S&&S!==y&&b(g,S,m)}var C=d(f);u&&(C=C.concat(u(f)));for(var x=a(g),v=a(f),w=0;w<C.length;++w){var A=C[w];if(!n[A]&&!(m&&m[A])&&!(v&&v[A])&&!(x&&x[A])){var O=p(f,A);try{c(g,A,O)}catch{}}}}return g}return hc=b,hc}dS();var pS=!0;function Df(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var gc=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||pS===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},mc=function(t,n,r){gc(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 uS(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 fS={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},hS=/[A-Z]|^ms/g,gS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_f=function(t){return t.charCodeAt(1)===45},$f=function(t){return t!=null&&typeof t!="boolean"},yc=kf(function(e){return _f(e)?e:e.replace(hS,"-$&").toLowerCase()}),zf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(gS,function(r,i,s){return yn={name:i,styles:s,next:yn},i})}return fS[t]!==1&&!_f(t)&&typeof n=="number"&&n!==0?n+"px":n};function ri(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 yn={name:i.name,styles:i.styles,next:yn},i.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)yn={name:a.name,styles:a.styles,next:yn},a=a.next;var c=s.styles+";";return c}return mS(e,t,n)}case"function":{if(e!==void 0){var d=yn,u=n(e);return yn=d,ri(e,t,u)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function mS(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ri(e,t,n[i])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var c=a;t!=null&&t[c]!==void 0?r+=s+"{"+t[c]+"}":$f(c)&&(r+=yc(s)+":"+zf(s,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var d=0;d<a.length;d++)$f(a[d])&&(r+=yc(s)+":"+zf(s,a[d])+";");else{var u=ri(e,t,a);switch(s){case"animation":case"animationName":{r+=yc(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}return r}var Lf=/label:\s*([^\s;{]+)\s*(;|$)/g,yn;function oi(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="";yn=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=ri(n,t,s);else{var a=s;i+=a[0]}for(var c=1;c<e.length;c++)if(i+=ri(n,t,e[c]),r){var d=s;i+=d[c]}Lf.lastIndex=0;for(var u="",p;(p=Lf.exec(i))!==null;)u+="-"+p[1];var h=uS(i)+u;return{name:h,styles:i,next:yn}}var yS=function(t){return t()},Bf=E.useInsertionEffect?E.useInsertionEffect:!1,jf=Bf||yS,Wf=Bf||E.useLayoutEffect,Vf=E.createContext(typeof HTMLElement<"u"?aS({key:"css"}):null);Vf.Provider;var bc=function(t){return z.forwardRef(function(n,r){var i=z.useContext(Vf);return t(n,i,r)})},Xs=E.createContext({}),xc={}.hasOwnProperty,vc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",bS=function(t,n){var r={};for(var i in n)xc.call(n,i)&&(r[i]=n[i]);return r[vc]=t,r},xS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return gc(n,r,i),jf(function(){return mc(n,r,i)}),null},vS=bc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[vc],s=[r],a="";typeof e.className=="string"?a=Df(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var c=oi(s,void 0,E.useContext(Xs));a+=t.key+"-"+c.name;var d={};for(var u in e)xc.call(e,u)&&u!=="css"&&u!==vc&&(d[u]=e[u]);return d.className=a,n&&(d.ref=n),E.createElement(E.Fragment,null,E.createElement(xS,{cache:t,serialized:c,isStringTag:typeof i=="string"}),E.createElement(i,d))}),SS=vS,Uf=function(t,n){var r=arguments;if(n==null||!xc.call(n,"css"))return E.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=SS,s[1]=bS(t,n);for(var a=2;a<i;a++)s[a]=r[a];return E.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Uf||(Uf={}));var wS=bc(function(e,t){var n=e.styles,r=oi([n],void 0,E.useContext(Xs)),i=E.useRef();return Wf(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}),c=!1,d=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),d!==null&&(c=!0,d.setAttribute("data-emotion",s),a.hydrate([d])),i.current=[a,c],function(){a.flush()}},[t]),Wf(function(){var s=i.current,a=s[0],c=s[1];if(c){s[1]=!1;return}if(r.next!==void 0&&mc(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 Gr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return oi(t)}function Xn(){var e=Gr.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 CS=/^((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)-.*))$/,ES=kf(function(e){return CS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),TS=ES,AS=function(t){return t!=="theme"},Hf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?TS:AS},Rf=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},kS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return gc(n,r,i),jf(function(){return mc(n,r,i)}),null},PS=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 c=Rf(t,n,r),d=c||Hf(i),u=!d("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{var y=p[0];h.push(y[0]);for(var b=p.length,g=1;g<b;g++)h.push(p[g],y[g])}var f=bc(function(m,S,C){var x=u&&m.as||i,v="",w=[],A=m;if(m.theme==null){A={};for(var O in m)A[O]=m[O];A.theme=E.useContext(Xs)}typeof m.className=="string"?v=Df(S.registered,w,m.className):m.className!=null&&(v=m.className+" ");var L=oi(h.concat(w),S.registered,A);v+=S.key+"-"+L.name,a!==void 0&&(v+=" "+a);var M=u&&c===void 0?Hf(x):d,_={};for(var I in m)u&&I==="as"||M(I)&&(_[I]=m[I]);return _.className=v,C&&(_.ref=C),E.createElement(E.Fragment,null,E.createElement(kS,{cache:S,serialized:L,isStringTag:typeof x=="string"}),E.createElement(x,_))});return f.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=i,f.__emotion_styles=h,f.__emotion_forwardProp=c,Object.defineProperty(f,"toString",{value:function(){return"."+a}}),f.withComponent=function(m,S){var C=e(m,js({},n,S,{shouldForwardProp:Rf(f,S,!0)}));return C.apply(void 0,h)},f}},OS=["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"],Sc=PS.bind(null);OS.forEach(function(e){Sc[e]=Sc(e)});var Js={exports:{}};var wc,qf;function IS(){if(qf)return wc;qf=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={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(a).map(function(p){return a[p]});if(d.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(p){u[p]=p}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return wc=i()?Object.assign:function(s,a){for(var c,d=r(s),u,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var h in c)t.call(c,h)&&(d[h]=c[h]);if(e){u=e(c);for(var y=0;y<u.length;y++)n.call(c,u[y])&&(d[u[y]]=c[u[y]])}}return d},wc}var Cc,Yf;function Ec(){if(Yf)return Cc;Yf=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Cc=e,Cc}var Tc,Kf;function Gf(){return Kf||(Kf=1,Tc=Function.call.bind(Object.prototype.hasOwnProperty)),Tc}var Ac,Xf;function NS(){if(Xf)return Ac;Xf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ec(),n={},r=Gf();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,c,d,u){if(process.env.NODE_ENV!=="production"){for(var p in s)if(r(s,p)){var h;try{if(typeof s[p]!="function"){var y=Error((d||"React class")+": "+c+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}h=s[p](a,p,d,c,null,t)}catch(g){h=g}if(h&&!(h instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var b=u?u():"";e("Failed "+c+" type: "+h.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ac=i,Ac}var kc,Jf;function FS(){if(Jf)return kc;Jf=1;var e=fc(),t=IS(),n=Ec(),r=Gf(),i=NS(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return kc=function(c,d){var u=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function h(B){var W=B&&(u&&B[u]||B[p]);if(typeof W=="function")return W}var y="<<anonymous>>",b={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:x,element:v(),elementType:w(),instanceOf:A,node:_(),objectOf:L,oneOf:O,oneOfType:M,shape:T,exact:F};function g(B,W){return B===W?B!==0||1/B===1/W:B!==B&&W!==W}function f(B,W){this.message=B,this.data=W&&typeof W=="object"?W:{},this.stack=""}f.prototype=Error.prototype;function m(B){if(process.env.NODE_ENV!=="production")var W={},q=0;function X(Q,ee,oe,le,ae,re,ce){if(le=le||y,re=re||oe,ce!==n){if(d){var H=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 H.name="Invariant Violation",H}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var he=le+":"+oe;!W[he]&&q<3&&(s("You are manually calling a React.PropTypes validation function for the `"+re+"` prop on `"+le+"`. 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."),W[he]=!0,q++)}}return ee[oe]==null?Q?ee[oe]===null?new f("The "+ae+" `"+re+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new f("The "+ae+" `"+re+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:B(ee,oe,le,ae,re)}var G=X.bind(null,!1);return G.isRequired=X.bind(null,!0),G}function S(B){function W(q,X,G,Q,ee,oe){var le=q[X],ae=N(le);if(ae!==B){var re=$(le);return new f("Invalid "+Q+" `"+ee+"` of type "+("`"+re+"` supplied to `"+G+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return m(W)}function C(){return m(a)}function x(B){function W(q,X,G,Q,ee){if(typeof B!="function")return new f("Property `"+ee+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var oe=q[X];if(!Array.isArray(oe)){var le=N(oe);return new f("Invalid "+Q+" `"+ee+"` of type "+("`"+le+"` supplied to `"+G+"`, expected an array."))}for(var ae=0;ae<oe.length;ae++){var re=B(oe,ae,G,Q,ee+"["+ae+"]",n);if(re instanceof Error)return re}return null}return m(W)}function v(){function B(W,q,X,G,Q){var ee=W[q];if(!c(ee)){var oe=N(ee);return new f("Invalid "+G+" `"+Q+"` of type "+("`"+oe+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return m(B)}function w(){function B(W,q,X,G,Q){var ee=W[q];if(!e.isValidElementType(ee)){var oe=N(ee);return new f("Invalid "+G+" `"+Q+"` of type "+("`"+oe+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return m(B)}function A(B){function W(q,X,G,Q,ee){if(!(q[X]instanceof B)){var oe=B.name||y,le=V(q[X]);return new f("Invalid "+Q+" `"+ee+"` of type "+("`"+le+"` supplied to `"+G+"`, expected ")+("instance of `"+oe+"`."))}return null}return m(W)}function O(B){if(!Array.isArray(B))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 W(q,X,G,Q,ee){for(var oe=q[X],le=0;le<B.length;le++)if(g(oe,B[le]))return null;var ae=JSON.stringify(B,function(ce,H){var he=$(H);return he==="symbol"?String(H):H});return new f("Invalid "+Q+" `"+ee+"` of value `"+String(oe)+"` "+("supplied to `"+G+"`, expected one of "+ae+"."))}return m(W)}function L(B){function W(q,X,G,Q,ee){if(typeof B!="function")return new f("Property `"+ee+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var oe=q[X],le=N(oe);if(le!=="object")return new f("Invalid "+Q+" `"+ee+"` of type "+("`"+le+"` supplied to `"+G+"`, expected an object."));for(var ae in oe)if(r(oe,ae)){var re=B(oe,ae,G,Q,ee+"."+ae,n);if(re instanceof Error)return re}return null}return m(W)}function M(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var W=0;W<B.length;W++){var q=B[W];if(typeof q!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+k(q)+" at index "+W+"."),a}function X(G,Q,ee,oe,le){for(var ae=[],re=0;re<B.length;re++){var ce=B[re],H=ce(G,Q,ee,oe,le,n);if(H==null)return null;H.data&&r(H.data,"expectedType")&&ae.push(H.data.expectedType)}var he=ae.length>0?", expected one of type ["+ae.join(", ")+"]":"";return new f("Invalid "+oe+" `"+le+"` supplied to "+("`"+ee+"`"+he+"."))}return m(X)}function _(){function B(W,q,X,G,Q){return D(W[q])?null:new f("Invalid "+G+" `"+Q+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return m(B)}function I(B,W,q,X,G){return new f((B||"React class")+": "+W+" type `"+q+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function T(B){function W(q,X,G,Q,ee){var oe=q[X],le=N(oe);if(le!=="object")return new f("Invalid "+Q+" `"+ee+"` of type `"+le+"` "+("supplied to `"+G+"`, expected `object`."));for(var ae in B){var re=B[ae];if(typeof re!="function")return I(G,Q,ee,ae,$(re));var ce=re(oe,ae,G,Q,ee+"."+ae,n);if(ce)return ce}return null}return m(W)}function F(B){function W(q,X,G,Q,ee){var oe=q[X],le=N(oe);if(le!=="object")return new f("Invalid "+Q+" `"+ee+"` of type `"+le+"` "+("supplied to `"+G+"`, expected `object`."));var ae=t({},q[X],B);for(var re in ae){var ce=B[re];if(r(B,re)&&typeof ce!="function")return I(G,Q,ee,re,$(ce));if(!ce)return new f("Invalid "+Q+" `"+ee+"` key `"+re+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(q[X],null," ")+`
|
|
25
|
+
Valid keys: `+JSON.stringify(Object.keys(B),null," "));var H=ce(oe,re,G,Q,ee+"."+re,n);if(H)return H}return null}return m(W)}function D(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(D);if(B===null||c(B))return!0;var W=h(B);if(W){var q=W.call(B),X;if(W!==B.entries){for(;!(X=q.next()).done;)if(!D(X.value))return!1}else for(;!(X=q.next()).done;){var G=X.value;if(G&&!D(G[1]))return!1}}else return!1;return!0;default:return!1}}function U(B,W){return B==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function N(B){var W=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":U(W,B)?"symbol":W}function $(B){if(typeof B>"u"||B===null)return""+B;var W=N(B);if(W==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return W}function k(B){var W=$(B);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function V(B){return!B.constructor||!B.constructor.name?y:B.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},kc}var Pc,Qf;function MS(){if(Qf)return Pc;Qf=1;var e=Ec();function t(){}function n(){}return n.resetWarningCache=t,Pc=function(){function r(a,c,d,u,p,h){if(h!==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},Pc}var Zf;function DS(){if(Zf)return Js.exports;if(Zf=1,process.env.NODE_ENV!=="production"){var e=fc(),t=!0;Js.exports=FS()(e.isElement,t)}else Js.exports=MS()();return Js.exports}var _S=DS();const o=Ep(_S);function $S(e){return e==null||Object.keys(e).length===0}function eh(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t($S(i)?n:i):t;return l.jsx(wS,{styles:r})}process.env.NODE_ENV!=="production"&&(eh.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function th(e,t){const n=Sc(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
26
|
+
`)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}function zS(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const nh=[];function Jn(e){return nh[0]=e,oi(nh)}var Qs={exports:{}},Qe={};var rh;function LS(){if(rh)return Qe;rh=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"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case i:case r:case d:case u:case y:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case h:case p:return f;case s:return f;default:return m}}case t:return m}}}return Qe.ContextConsumer=s,Qe.ContextProvider=a,Qe.Element=e,Qe.ForwardRef=c,Qe.Fragment=n,Qe.Lazy=h,Qe.Memo=p,Qe.Portal=t,Qe.Profiler=i,Qe.StrictMode=r,Qe.Suspense=d,Qe.SuspenseList=u,Qe.isContextConsumer=function(f){return g(f)===s},Qe.isContextProvider=function(f){return g(f)===a},Qe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Qe.isForwardRef=function(f){return g(f)===c},Qe.isFragment=function(f){return g(f)===n},Qe.isLazy=function(f){return g(f)===h},Qe.isMemo=function(f){return g(f)===p},Qe.isPortal=function(f){return g(f)===t},Qe.isProfiler=function(f){return g(f)===i},Qe.isStrictMode=function(f){return g(f)===r},Qe.isSuspense=function(f){return g(f)===d},Qe.isSuspenseList=function(f){return g(f)===u},Qe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===d||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===p||f.$$typeof===a||f.$$typeof===s||f.$$typeof===c||f.$$typeof===b||f.getModuleId!==void 0)},Qe.typeOf=g,Qe}var Ze={};var oh;function BS(){return oh||(oh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case s:case i:case u:case p:case b:return f;default:switch(f=f&&f.$$typeof,f){case c:case d:case y:case h:return f;case a:return f;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Ze.ContextConsumer=a,Ze.ContextProvider=c,Ze.Element=t,Ze.ForwardRef=d,Ze.Fragment=r,Ze.Lazy=y,Ze.Memo=h,Ze.Portal=n,Ze.Profiler=s,Ze.StrictMode=i,Ze.Suspense=u,Ze.SuspenseList=p,Ze.isContextConsumer=function(f){return e(f)===a},Ze.isContextProvider=function(f){return e(f)===c},Ze.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Ze.isForwardRef=function(f){return e(f)===d},Ze.isFragment=function(f){return e(f)===r},Ze.isLazy=function(f){return e(f)===y},Ze.isMemo=function(f){return e(f)===h},Ze.isPortal=function(f){return e(f)===n},Ze.isProfiler=function(f){return e(f)===s},Ze.isStrictMode=function(f){return e(f)===i},Ze.isSuspense=function(f){return e(f)===u},Ze.isSuspenseList=function(f){return e(f)===p},Ze.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===u||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===y||f.$$typeof===h||f.$$typeof===c||f.$$typeof===a||f.$$typeof===d||f.$$typeof===g||f.getModuleId!==void 0)},Ze.typeOf=e})()),Ze}var ih;function jS(){return ih||(ih=1,process.env.NODE_ENV==="production"?Qs.exports=LS():Qs.exports=BS()),Qs.exports}var Zs=jS();function bn(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 sh(e){if(E.isValidElement(e)||Zs.isValidElementType(e)||!bn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=sh(e[n])}),t}function kt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return bn(e)&&bn(t)&&Object.keys(t).forEach(i=>{E.isValidElement(t[i])||Zs.isValidElementType(t[i])?r[i]=t[i]:bn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&bn(e[i])?r[i]=kt(e[i],t[i],n):n.clone?r[i]=bn(t[i])?sh(t[i]):t[i]:r[i]=t[i]}),r}const WS=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 VS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,s=WS(t),a=Object.keys(s);function c(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 u(y,b){const g=a.indexOf(b);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]]:b)-r/100}${n})`}function p(y){return a.indexOf(y)+1<a.length?u(y,a[a.indexOf(y)+1]):c(y)}function h(y){const b=a.indexOf(y);return b===0?c(a[1]):b===a.length-1?d(a[b]):u(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:c,down:d,between:u,only:p,not:h,unit:n,...i}}function ah(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 US(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function HS(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\`.`:hn(18,`(${t})`));return null}const[,r,i]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(s)}function RS(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function n(s,a){s.up=(...c)=>t(e.breakpoints.up(...c),a),s.down=(...c)=>t(e.breakpoints.down(...c),a),s.between=(...c)=>t(e.breakpoints.between(...c),a),s.only=(...c)=>t(e.breakpoints.only(...c),a),s.not=(...c)=>{const d=t(e.breakpoints.not(...c),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 qS={borderRadius:4},Qn=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function ii(e,t){return t?kt(e,t,{clone:!1}):e}const ea={xs:0,sm:600,md:900,lg:1200,xl:1536},lh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ea[e]}px)`},YS={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ea[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ln(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||lh;return t.reduce((a,c,d)=>(a[s.up(s.keys[d])]=n(t[d]),a),{})}if(typeof t=="object"){const s=r.breakpoints||lh;return Object.keys(t).reduce((a,c)=>{if(US(s.keys,c)){const d=HS(r.containerQueries?r:YS,c);d&&(a[d]=n(t[c],c))}else if(Object.keys(s.values||ea).includes(c)){const d=s.up(c);a[d]=n(t[c],c)}else{const d=c;a[d]=t[d]}return a},{})}return n(t)}function KS(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 te(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":hn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ta(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 na(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ta(e,n)||r,t&&(i=t(i,r,e)),i}function ut(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,s=a=>{if(a[t]==null)return null;const c=a[t],d=a.theme,u=ta(d,r)||{};return Ln(a,c,h=>{let y=na(u,i,h);return h===y&&typeof h=="string"&&(y=na(u,i,`${t}${h==="default"?"":te(h)}`,h)),n===!1?y:{[n]:y}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Qn}:{},s.filterProps=[t],s}function GS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const XS={m:"margin",p:"padding"},JS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},dh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},QS=GS(e=>{if(e.length>2)if(dh[e])e=dh[e];else return[e];const[t,n]=e.split(""),r=XS[t],i=JS[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),ra=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],oa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],ZS=[...ra,...oa];function si(e,t,n,r){const i=ta(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 c=i[a];return s>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}: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 Oc(e){return ai(e,"spacing",8,"spacing")}function li(e,t){return typeof t=="string"||t==null?t:e(t)}function J1(e,t){return n=>e.reduce((r,i)=>(r[i]=li(t,n),r),{})}function Q1(e,t,n,r){if(!t.includes(n))return null;const i=G1(n),s=J1(i,r),a=e[n];return Bn(e,a,s)}function ph(e,t){const n=Oc(e.theme);return Object.keys(e).map(r=>Q1(e,t,r,n)).reduce(si,{})}function at(e){return ph(e,ra)}at.propTypes=process.env.NODE_ENV!=="production"?ra.reduce((e,t)=>(e[t]=Qn,e),{}):{},at.filterProps=ra;function lt(e){return ph(e,oa)}lt.propTypes=process.env.NODE_ENV!=="production"?oa.reduce((e,t)=>(e[t]=Qn,e),{}):{},lt.filterProps=oa,process.env.NODE_ENV!=="production"&&X1.reduce((e,t)=>(e[t]=Qn,e),{});function uh(e=8,t=Oc({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 ia(...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]?si(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 Yt(e){return typeof e!="number"?e:`${e}px solid`}function Kt(e,t){return pt({prop:e,themeKey:"borders",transform:t})}const Z1=Kt("border",Yt),ew=Kt("borderTop",Yt),tw=Kt("borderRight",Yt),nw=Kt("borderBottom",Yt),rw=Kt("borderLeft",Yt),ow=Kt("borderColor"),iw=Kt("borderTopColor"),sw=Kt("borderRightColor"),aw=Kt("borderBottomColor"),lw=Kt("borderLeftColor"),cw=Kt("outline",Yt),dw=Kt("outlineColor"),sa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ai(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:li(t,r)});return Bn(e,e.borderRadius,n)}return null};sa.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Qn}:{},sa.filterProps=["borderRadius"],ia(Z1,ew,tw,nw,rw,ow,iw,sw,aw,lw,sa,cw,dw);const aa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ai(e.theme,"spacing",8,"gap"),n=r=>({gap:li(t,r)});return Bn(e,e.gap,n)}return null};aa.propTypes=process.env.NODE_ENV!=="production"?{gap:Qn}:{},aa.filterProps=["gap"];const la=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ai(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:li(t,r)});return Bn(e,e.columnGap,n)}return null};la.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Qn}:{},la.filterProps=["columnGap"];const ca=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ai(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:li(t,r)});return Bn(e,e.rowGap,n)}return null};ca.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Qn}:{},ca.filterProps=["rowGap"];const pw=pt({prop:"gridColumn"}),uw=pt({prop:"gridRow"}),fw=pt({prop:"gridAutoFlow"}),hw=pt({prop:"gridAutoColumns"}),gw=pt({prop:"gridAutoRows"}),mw=pt({prop:"gridTemplateColumns"}),yw=pt({prop:"gridTemplateRows"}),bw=pt({prop:"gridTemplateAreas"}),xw=pt({prop:"gridArea"});ia(aa,la,ca,pw,uw,fw,hw,gw,mw,yw,bw,xw);function Jr(e,t){return t==="grey"?t:e}const vw=pt({prop:"color",themeKey:"palette",transform:Jr}),Sw=pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Jr}),ww=pt({prop:"backgroundColor",themeKey:"palette",transform:Jr});ia(vw,Sw,ww);function Ut(e){return e<=1&&e!==0?`${e*100}%`:e}const Cw=pt({prop:"width",transform:Ut}),Ic=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||ea[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ut(n)}};return Bn(e,e.maxWidth,t)}return null};Ic.filterProps=["maxWidth"];const Ew=pt({prop:"minWidth",transform:Ut}),Tw=pt({prop:"height",transform:Ut}),Aw=pt({prop:"maxHeight",transform:Ut}),kw=pt({prop:"minHeight",transform:Ut});pt({prop:"size",cssProperty:"width",transform:Ut}),pt({prop:"size",cssProperty:"height",transform:Ut});const Pw=pt({prop:"boxSizing"});ia(Cw,Ic,Ew,Tw,Aw,kw,Pw);const ci={border:{themeKey:"borders",transform:Yt},borderTop:{themeKey:"borders",transform:Yt},borderRight:{themeKey:"borders",transform:Yt},borderBottom:{themeKey:"borders",transform:Yt},borderLeft:{themeKey:"borders",transform:Yt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Yt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:sa},color:{themeKey:"palette",transform:Jr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Jr},backgroundColor:{themeKey:"palette",transform:Jr},p:{style:lt},pt:{style:lt},pr:{style:lt},pb:{style:lt},pl:{style:lt},px:{style:lt},py:{style:lt},padding:{style:lt},paddingTop:{style:lt},paddingRight:{style:lt},paddingBottom:{style:lt},paddingLeft:{style:lt},paddingX:{style:lt},paddingY:{style:lt},paddingInline:{style:lt},paddingInlineStart:{style:lt},paddingInlineEnd:{style:lt},paddingBlock:{style:lt},paddingBlockStart:{style:lt},paddingBlockEnd:{style:lt},m:{style:at},mt:{style:at},mr:{style:at},mb:{style:at},ml:{style:at},mx:{style:at},my:{style:at},margin:{style:at},marginTop:{style:at},marginRight:{style:at},marginBottom:{style:at},marginLeft:{style:at},marginX:{style:at},marginY:{style:at},marginInline:{style:at},marginInlineStart:{style:at},marginInlineEnd:{style:at},marginBlock:{style:at},marginBlockStart:{style:at},marginBlockEnd:{style:at},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:aa},rowGap:{style:ca},columnGap:{style:la},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ut},maxWidth:{style:Ic},minWidth:{transform:Ut},height:{transform:Ut},maxHeight:{transform:Ut},minHeight:{transform:Ut},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 Ow(...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 Iw(e,t){return typeof e=="function"?e(t):e}function Nw(){function e(n,r,i,s){const a={[n]:r,theme:i},c=s[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:u,transform:p,style:h}=c;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const y=ta(i,u)||{};return h?h(a):Bn(a,r,g=>{let f=na(y,p,g);return g===f&&typeof g=="string"&&(f=na(y,p,`${n}${g==="default"?"":ne(g)}`,g)),d===!1?f:{[d]:f}})}function t(n){const{sx:r,theme:i={},nested:s}=n||{};if(!r)return null;const a=i.unstable_sxConfig??ci;function c(d){let u=d;if(typeof d=="function")u=d(i);else if(typeof d!="object")return d;if(!u)return null;const p=R1(i.breakpoints),h=Object.keys(p);let y=p;return Object.keys(u).forEach(x=>{const g=Iw(u[x],i);if(g!=null)if(typeof g=="object")if(a[x])y=si(y,e(x,g,i,a));else{const f=Bn({theme:i},g,m=>({[x]:m}));Ow(f,g)?y[x]=t({sx:g,theme:i,nested:!0}):y=si(y,f)}else y=si(y,e(x,g,i,a))}),!s&&i.modularCssLayers?{"@layer sx":ah(i,ch(h,y))}:ah(i,ch(h,y))}return Array.isArray(r)?r.map(c):c(r)}return t}const fr=Nw();fr.filterProps=["sx"];function Fw(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 da(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={},...a}=e,c=B1(n),d=uh(i);let u=Et({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...U1,...s}},a);return u=V1(u),u.applyStyles=Fw,u=t.reduce((p,h)=>Et(p,h),u),u.unstable_sxConfig={...ci,...a?.unstable_sxConfig},u.unstable_sx=function(h){return fr({sx:h,theme:this})},u}function Mw(e){return Object.keys(e).length===0}function fh(e=null){const t=E.useContext(Xs);return!t||Mw(t)?e:t}const Dw=da();function pa(e=Dw){return fh(e)}function Nc(e){const t=Jn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function hh({styles:e,themeId:t,defaultTheme:n={}}){const r=pa(n),i=t&&r[t]||r;let s=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>Nc(typeof a=="function"?a(i):a)):s=Nc(s)),l.jsx(eh,{styles:s})}process.env.NODE_ENV!=="production"&&(hh.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const _w=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??ci;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function gh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=_w(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const c=t(...a);return bn(c)?{...r,...c}:r}:s={...r,...t},{...i,sx:s}}const mh=e=>e,yh=(()=>{let e=mh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mh}}})();function bh(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=bh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function be(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=bh(e))&&(r&&(r+=" "),r+=t);return r}function $w(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=th("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(fr);return E.forwardRef(function(d,u){const p=pa(n),{className:h,component:y="div",...x}=gh(d);return l.jsx(s,{as:y,ref:u,className:be(h,i?i(r):r),theme:t&&p[t]||p,...x})})}const zw={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 Ce(e,t,n="Mui"){const r=zw[t];return r?`${n}-${r}`:`${yh.generate(e)}-${t}`}function Ee(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ce(e,i,n)}),r}function xh(e,t=""){return e.displayName||e.name||t}function vh(e,t,n){const r=xh(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Lw(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return xh(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Zs.ForwardRef:return vh(e,e.render,"ForwardRef");case Zs.Memo:return vh(e,e.type,"memo");default:return}}}function Sh(e){const{variants:t,...n}=e,r={variants:t,style:Jn(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Jn(i.style))}),r}const Bw=da();function Fc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function hr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function jw(e){return e?(t,n)=>n[e]:null}function Ww(e,t,n){e.theme=Hw(e.theme)?n:e.theme[t]||e.theme}function ua(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>ua(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?hr(r.style,n):r.style;else{const{variants:s,...a}=r;i=n?hr(Jn(a),n):a}return wh(e,r.variants,[i],n)}return r?.isProcessed?n?hr(Jn(r.style),n):r.style:n?hr(Jn(r),n):r}function wh(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 c in a.props)if(e[c]!==a.props[c]&&e.ownerState?.[c]!==a.props[c])continue e;typeof a.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?hr(Jn(a.style(i)),r):a.style(i))):n.push(r?hr(Jn(a.style),r):a.style)}return n}function Ch(e={}){const{themeId:t,defaultTheme:n=Bw,rootShouldForwardProp:r=Fc,slotShouldForwardProp:i=Fc}=e;function s(c){Ww(c,t,n)}return(c,d={})=>{D1(c,A=>A.filter(I=>I!==fr));const{name:u,slot:p,skipVariantsResolver:h,skipSx:y,overridesResolver:x=jw(Eh(p)),...g}=d,f=u&&u.startsWith("Mui")||p?"components":"custom",m=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,S=y||!1;let C=Fc;p==="Root"||p==="root"?C=r:p?C=i:Rw(c)&&(C=void 0);const b=th(c,{shouldForwardProp:C,label:Uw(u,p),...g}),v=A=>{if(A.__emotion_real===A)return A;if(typeof A=="function")return function(z){return ua(z,A,z.theme.modularCssLayers?f:void 0)};if(bn(A)){const I=Sh(A);return function(M){return I.variants?ua(M,I,M.theme.modularCssLayers?f:void 0):M.theme.modularCssLayers?hr(I.style,f):I.style}}return A},w=(...A)=>{const I=[],z=A.map(v),M=[];if(I.push(s),u&&x&&M.push(function(N){const U=N.theme.components?.[u]?.styleOverrides;if(!U)return null;const F={};for(const _ in U)F[_]=ua(N,U[_],N.theme.modularCssLayers?"theme":void 0);return x(N,F)}),u&&!m&&M.push(function(N){const U=N.theme?.components?.[u]?.variants;return U?wh(N,U,[],N.theme.modularCssLayers?"theme":void 0):null}),S||M.push(fr),Array.isArray(z[0])){const T=z.shift(),N=new Array(I.length).fill(""),D=new Array(M.length).fill("");let U;U=[...N,...T,...D],U.raw=[...N,...T.raw,...D],I.unshift(U)}const L=[...I,...z,...M],O=b(...L);return c.muiName&&(O.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(O.displayName=Vw(u,p,c)),O};return b.withConfig&&(w.withConfig=b.withConfig),w}}function Vw(e,t,n){return e?`${e}${ne(t||"")}`:`Styled(${Lw(n)})`}function Uw(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Eh(t||"Root")}`),n}function Hw(e){for(const t in e)return!1;return!0}function Rw(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Eh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const qw=Ch();function di(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],c=t[s];if(!c)r[s]=a||{};else if(!a)r[s]=c;else{r[s]={...c};for(const d in a)if(Object.prototype.hasOwnProperty.call(a,d)){const u=d;r[s][u]=di(a[u],c[u],n)}}}else s==="className"&&n&&t.className?r.className=be(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 Th(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:di(t.components[n].defaultProps,r)}function Yw({props:e,name:t,defaultTheme:n,themeId:r}){let i=pa(n);return r&&(i=i[r]||i),Th({theme:i,name:t,props:e})}const Gt=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Kw(e,t,n,r,i){const[s,a]=E.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Gt(()=>{if(!n)return;const c=n(e),d=()=>{a(c.matches)};return d(),c.addEventListener("change",d),()=>{c.removeEventListener("change",d)}},[e,n]),s}const Ah={...E}.useSyncExternalStore;function Gw(e,t,n,r,i){const s=E.useCallback(()=>t,[t]),a=E.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:p}=r(e);return()=>p}return s},[s,e,r,i,n]),[c,d]=E.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const p=n(e);return[()=>p.matches,h=>(p.addEventListener("change",h),()=>{p.removeEventListener("change",h)})]},[s,n,e]);return Ah(d,c,a)}function kh(e={}){const{themeId:t}=e;return function(r,i={}){let s=fh();s&&t&&(s=s[t]||s);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:d=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:p=!1}=Th({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 Oc(e){return si(e,"spacing",8,"spacing")}function ai(e,t){return typeof t=="string"||t==null?t:e(t)}function ew(e,t){return n=>e.reduce((r,i)=>(r[i]=ai(t,n),r),{})}function tw(e,t,n,r){if(!t.includes(n))return null;const i=QS(n),s=ew(i,r),a=e[n];return Ln(e,a,s)}function ph(e,t){const n=Oc(e.theme);return Object.keys(e).map(r=>tw(e,t,r,n)).reduce(ii,{})}function lt(e){return ph(e,ra)}lt.propTypes=process.env.NODE_ENV!=="production"?ra.reduce((e,t)=>(e[t]=Qn,e),{}):{},lt.filterProps=ra;function ct(e){return ph(e,oa)}ct.propTypes=process.env.NODE_ENV!=="production"?oa.reduce((e,t)=>(e[t]=Qn,e),{}):{},ct.filterProps=oa,process.env.NODE_ENV!=="production"&&ZS.reduce((e,t)=>(e[t]=Qn,e),{});function uh(e=8,t=Oc({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 ia(...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]?ii(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 Kt(e){return typeof e!="number"?e:`${e}px solid`}function Gt(e,t){return ut({prop:e,themeKey:"borders",transform:t})}const nw=Gt("border",Kt),rw=Gt("borderTop",Kt),ow=Gt("borderRight",Kt),iw=Gt("borderBottom",Kt),sw=Gt("borderLeft",Kt),aw=Gt("borderColor"),lw=Gt("borderTopColor"),cw=Gt("borderRightColor"),dw=Gt("borderBottomColor"),pw=Gt("borderLeftColor"),uw=Gt("outline",Kt),fw=Gt("outlineColor"),sa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=si(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:ai(t,r)});return Ln(e,e.borderRadius,n)}return null};sa.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Qn}:{},sa.filterProps=["borderRadius"],ia(nw,rw,ow,iw,sw,aw,lw,cw,dw,pw,sa,uw,fw);const aa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=si(e.theme,"spacing",8,"gap"),n=r=>({gap:ai(t,r)});return Ln(e,e.gap,n)}return null};aa.propTypes=process.env.NODE_ENV!=="production"?{gap:Qn}:{},aa.filterProps=["gap"];const la=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=si(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:ai(t,r)});return Ln(e,e.columnGap,n)}return null};la.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Qn}:{},la.filterProps=["columnGap"];const ca=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=si(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:ai(t,r)});return Ln(e,e.rowGap,n)}return null};ca.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Qn}:{},ca.filterProps=["rowGap"];const hw=ut({prop:"gridColumn"}),gw=ut({prop:"gridRow"}),mw=ut({prop:"gridAutoFlow"}),yw=ut({prop:"gridAutoColumns"}),bw=ut({prop:"gridAutoRows"}),xw=ut({prop:"gridTemplateColumns"}),vw=ut({prop:"gridTemplateRows"}),Sw=ut({prop:"gridTemplateAreas"}),ww=ut({prop:"gridArea"});ia(aa,la,ca,hw,gw,mw,yw,bw,xw,vw,Sw,ww);function Xr(e,t){return t==="grey"?t:e}const Cw=ut({prop:"color",themeKey:"palette",transform:Xr}),Ew=ut({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xr}),Tw=ut({prop:"backgroundColor",themeKey:"palette",transform:Xr});ia(Cw,Ew,Tw);function Ht(e){return e<=1&&e!==0?`${e*100}%`:e}const Aw=ut({prop:"width",transform:Ht}),Ic=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||ea[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ht(n)}};return Ln(e,e.maxWidth,t)}return null};Ic.filterProps=["maxWidth"];const kw=ut({prop:"minWidth",transform:Ht}),Pw=ut({prop:"height",transform:Ht}),Ow=ut({prop:"maxHeight",transform:Ht}),Iw=ut({prop:"minHeight",transform:Ht});ut({prop:"size",cssProperty:"width",transform:Ht}),ut({prop:"size",cssProperty:"height",transform:Ht});const Nw=ut({prop:"boxSizing"});ia(Aw,Ic,kw,Pw,Ow,Iw,Nw);const li={border:{themeKey:"borders",transform:Kt},borderTop:{themeKey:"borders",transform:Kt},borderRight:{themeKey:"borders",transform:Kt},borderBottom:{themeKey:"borders",transform:Kt},borderLeft:{themeKey:"borders",transform:Kt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Kt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:sa},color:{themeKey:"palette",transform:Xr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xr},backgroundColor:{themeKey:"palette",transform:Xr},p:{style:ct},pt:{style:ct},pr:{style:ct},pb:{style:ct},pl:{style:ct},px:{style:ct},py:{style:ct},padding:{style:ct},paddingTop:{style:ct},paddingRight:{style:ct},paddingBottom:{style:ct},paddingLeft:{style:ct},paddingX:{style:ct},paddingY:{style:ct},paddingInline:{style:ct},paddingInlineStart:{style:ct},paddingInlineEnd:{style:ct},paddingBlock:{style:ct},paddingBlockStart:{style:ct},paddingBlockEnd:{style:ct},m:{style:lt},mt:{style:lt},mr:{style:lt},mb:{style:lt},ml:{style:lt},mx:{style:lt},my:{style:lt},margin:{style:lt},marginTop:{style:lt},marginRight:{style:lt},marginBottom:{style:lt},marginLeft:{style:lt},marginX:{style:lt},marginY:{style:lt},marginInline:{style:lt},marginInlineStart:{style:lt},marginInlineEnd:{style:lt},marginBlock:{style:lt},marginBlockStart:{style:lt},marginBlockEnd:{style:lt},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:aa},rowGap:{style:ca},columnGap:{style:la},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ht},maxWidth:{style:Ic},minWidth:{transform:Ht},height:{transform:Ht},maxHeight:{transform:Ht},minHeight:{transform:Ht},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 Fw(...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 Mw(e,t){return typeof e=="function"?e(t):e}function Dw(){function e(n,r,i,s){const a={[n]:r,theme:i},c=s[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:u,transform:p,style:h}=c;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const y=ta(i,u)||{};return h?h(a):Ln(a,r,g=>{let f=na(y,p,g);return g===f&&typeof g=="string"&&(f=na(y,p,`${n}${g==="default"?"":te(g)}`,g)),d===!1?f:{[d]:f}})}function t(n){const{sx:r,theme:i={},nested:s}=n||{};if(!r)return null;const a=i.unstable_sxConfig??li;function c(d){let u=d;if(typeof d=="function")u=d(i);else if(typeof d!="object")return d;if(!u)return null;const p=KS(i.breakpoints),h=Object.keys(p);let y=p;return Object.keys(u).forEach(b=>{const g=Mw(u[b],i);if(g!=null)if(typeof g=="object")if(a[b])y=ii(y,e(b,g,i,a));else{const f=Ln({theme:i},g,m=>({[b]:m}));Fw(f,g)?y[b]=t({sx:g,theme:i,nested:!0}):y=ii(y,f)}else y=ii(y,e(b,g,i,a))}),!s&&i.modularCssLayers?{"@layer sx":ah(i,ch(h,y))}:ah(i,ch(h,y))}return Array.isArray(r)?r.map(c):c(r)}return t}const fr=Dw();fr.filterProps=["sx"];function _w(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 da(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={},...a}=e,c=VS(n),d=uh(i);let u=kt({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...qS,...s}},a);return u=RS(u),u.applyStyles=_w,u=t.reduce((p,h)=>kt(p,h),u),u.unstable_sxConfig={...li,...a?.unstable_sxConfig},u.unstable_sx=function(h){return fr({sx:h,theme:this})},u}function $w(e){return Object.keys(e).length===0}function fh(e=null){const t=E.useContext(Xs);return!t||$w(t)?e:t}const zw=da();function pa(e=zw){return fh(e)}function Nc(e){const t=Jn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function hh({styles:e,themeId:t,defaultTheme:n={}}){const r=pa(n),i=t&&r[t]||r;let s=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>Nc(typeof a=="function"?a(i):a)):s=Nc(s)),l.jsx(eh,{styles:s})}process.env.NODE_ENV!=="production"&&(hh.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const Lw=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??li;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function gh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=Lw(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const c=t(...a);return bn(c)?{...r,...c}:r}:s={...r,...t},{...i,sx:s}}const mh=e=>e,yh=(()=>{let e=mh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mh}}})();function bh(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=bh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function be(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=bh(e))&&(r&&(r+=" "),r+=t);return r}function Bw(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=th("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(fr);return E.forwardRef(function(d,u){const p=pa(n),{className:h,component:y="div",...b}=gh(d);return l.jsx(s,{as:y,ref:u,className:be(h,i?i(r):r),theme:t&&p[t]||p,...b})})}const jw={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 Te(e,t,n="Mui"){const r=jw[t];return r?`${n}-${r}`:`${yh.generate(e)}-${t}`}function Ae(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Te(e,i,n)}),r}function xh(e,t=""){return e.displayName||e.name||t}function vh(e,t,n){const r=xh(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Ww(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return xh(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Zs.ForwardRef:return vh(e,e.render,"ForwardRef");case Zs.Memo:return vh(e,e.type,"memo");default:return}}}function Sh(e){const{variants:t,...n}=e,r={variants:t,style:Jn(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Jn(i.style))}),r}const Vw=da();function Fc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function hr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Uw(e){return e?(t,n)=>n[e]:null}function Hw(e,t,n){e.theme=Yw(e.theme)?n:e.theme[t]||e.theme}function ua(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>ua(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?hr(r.style,n):r.style;else{const{variants:s,...a}=r;i=n?hr(Jn(a),n):a}return wh(e,r.variants,[i],n)}return r?.isProcessed?n?hr(Jn(r.style),n):r.style:n?hr(Jn(r),n):r}function wh(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 c in a.props)if(e[c]!==a.props[c]&&e.ownerState?.[c]!==a.props[c])continue e;typeof a.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?hr(Jn(a.style(i)),r):a.style(i))):n.push(r?hr(Jn(a.style),r):a.style)}return n}function Ch(e={}){const{themeId:t,defaultTheme:n=Vw,rootShouldForwardProp:r=Fc,slotShouldForwardProp:i=Fc}=e;function s(c){Hw(c,t,n)}return(c,d={})=>{zS(c,A=>A.filter(O=>O!==fr));const{name:u,slot:p,skipVariantsResolver:h,skipSx:y,overridesResolver:b=Uw(Eh(p)),...g}=d,f=u&&u.startsWith("Mui")||p?"components":"custom",m=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,S=y||!1;let C=Fc;p==="Root"||p==="root"?C=r:p?C=i:Kw(c)&&(C=void 0);const x=th(c,{shouldForwardProp:C,label:qw(u,p),...g}),v=A=>{if(A.__emotion_real===A)return A;if(typeof A=="function")return function(L){return ua(L,A,L.theme.modularCssLayers?f:void 0)};if(bn(A)){const O=Sh(A);return function(M){return O.variants?ua(M,O,M.theme.modularCssLayers?f:void 0):M.theme.modularCssLayers?hr(O.style,f):O.style}}return A},w=(...A)=>{const O=[],L=A.map(v),M=[];if(O.push(s),u&&b&&M.push(function(F){const U=F.theme.components?.[u]?.styleOverrides;if(!U)return null;const N={};for(const $ in U)N[$]=ua(F,U[$],F.theme.modularCssLayers?"theme":void 0);return b(F,N)}),u&&!m&&M.push(function(F){const U=F.theme?.components?.[u]?.variants;return U?wh(F,U,[],F.theme.modularCssLayers?"theme":void 0):null}),S||M.push(fr),Array.isArray(L[0])){const T=L.shift(),F=new Array(O.length).fill(""),D=new Array(M.length).fill("");let U;U=[...F,...T,...D],U.raw=[...F,...T.raw,...D],O.unshift(U)}const _=[...O,...L,...M],I=x(..._);return c.muiName&&(I.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(I.displayName=Rw(u,p,c)),I};return x.withConfig&&(w.withConfig=x.withConfig),w}}function Rw(e,t,n){return e?`${e}${te(t||"")}`:`Styled(${Ww(n)})`}function qw(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Eh(t||"Root")}`),n}function Yw(e){for(const t in e)return!1;return!0}function Kw(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Eh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Gw=Ch();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],c=t[s];if(!c)r[s]=a||{};else if(!a)r[s]=c;else{r[s]={...c};for(const d in a)if(Object.prototype.hasOwnProperty.call(a,d)){const u=d;r[s][u]=ci(a[u],c[u],n)}}}else s==="className"&&n&&t.className?r.className=be(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 Th(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 Xw({props:e,name:t,defaultTheme:n,themeId:r}){let i=pa(n);return r&&(i=i[r]||i),Th({theme:i,name:t,props:e})}const Xt=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Jw(e,t,n,r,i){const[s,a]=E.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Xt(()=>{if(!n)return;const c=n(e),d=()=>{a(c.matches)};return d(),c.addEventListener("change",d),()=>{c.removeEventListener("change",d)}},[e,n]),s}const Ah={...E}.useSyncExternalStore;function Qw(e,t,n,r,i){const s=E.useCallback(()=>t,[t]),a=E.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:p}=r(e);return()=>p}return s},[s,e,r,i,n]),[c,d]=E.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const p=n(e);return[()=>p.matches,h=>(p.addEventListener("change",h),()=>{p.removeEventListener("change",h)})]},[s,n,e]);return Ah(d,c,a)}function kh(e={}){const{themeId:t}=e;return function(r,i={}){let s=fh();s&&t&&(s=s[t]||s);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:d=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:p=!1}=Th({name:"MuiUseMediaQuery",props:i,theme:s});process.env.NODE_ENV!=="production"&&typeof r=="function"&&s===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
31
31
|
`));let h=typeof r=="function"?r(s):r;h=h.replace(/^@media( ?)/m,""),h.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
32
|
-
`));const
|
|
32
|
+
`));const b=(Ah!==void 0?Qw:Jw)(h,c,d,u,p);return process.env.NODE_ENV!=="production"&&E.useDebugValue({query:h,match:b}),b}}kh();function Jr(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Mc(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}].`),Jr(e,t,n)}function Zw(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 Zn(e){if(e.type)return e;if(e.charAt(0)==="#")return Zn(Zw(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().`:hn(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.`:hn(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}const Jw=e=>{const t=Zn(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},pi=(e,t)=>{try{return Jw(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function fa(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 Ph(e){e=Zn(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),a=(u,p=(u+n/30)%12)=>i-s*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),fa({type:c,values:d})}function Dc(e){e=Zn(e);let t=e.type==="hsl"||e.type==="hsla"?Zn(Ph(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 Oh(e,t){const n=Dc(e),r=Dc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ha(e,t){return e=Zn(e),t=Mc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,fa(e)}function gr(e,t,n){try{return ha(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ga(e,t){if(e=Zn(e),t=Mc(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 fa(e)}function qe(e,t,n){try{return ga(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ma(e,t){if(e=Zn(e),t=Mc(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 fa(e)}function Ye(e,t,n){try{return ma(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function _c(e,t=.15){return Dc(e)>.5?ga(e,t):ma(e,t)}function ya(e,t,n){try{return _c(e,t)}catch{return e}}const Qw="exact-prop: ";function $c(e){return process.env.NODE_ENV==="production"?e:{...e,[Qw]: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 Zw=E.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const ui=()=>E.useContext(Zw)??!1,eC=E.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?di(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?di(i,r,t.components.mergeClassNameAndStyle):r}function nC({props:e,name:t}){const n=E.useContext(eC);return tC({props:e,name:t,theme:{components:n}})}let Ih=0;function rC(e){const[t,n]=E.useState(e),r=e||t;return E.useEffect(()=>{t==null&&(Ih+=1,n(`mui-${Ih}`))},[t]),r}const Nh={...E}.useId;function mr(e){if(Nh!==void 0){const t=Nh();return e??t}return rC(e)}const Fh={theme:void 0};function oC(e){let t,n;return function(i){let s=t;return(s===void 0||i.theme!==n)&&(Fh.theme=i.theme,s=Sh(e(Fh)),t=s,n=i.theme),s}}function iC(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 Mh=(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])})},sC=(e,t,n)=>{function r(i,s=[],a=[]){Object.entries(i).forEach(([c,d])=>{(!n||n&&!n([...s,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...s,c],Array.isArray(d)?[...a,c]:a):t([...s,c],d,a))})}r(e)},aC=(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 zc(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},s={},a={};return sC(e,(c,d,u)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(c,d))){const p=`--${n?`${n}-`:""}${c.join("-")}`,h=aC(c,d);Object.assign(i,{[p]:h}),Mh(s,c,`var(${p})`,u),Mh(a,c,`var(${p}, ${h})`,u)}},c=>c[0]==="vars"),{css:i,vars:s,varsWithDefaults:a}}function lC(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:s}=t,{colorSchemes:a={},components:c,defaultColorScheme:d="light",...u}=e,{vars:p,css:h,varsWithDefaults:y}=zc(u,t);let x=y;const g={},{[d]:f,...m}=a;if(Object.entries(m||{}).forEach(([v,w])=>{const{vars:A,css:I,varsWithDefaults:z}=zc(w,t);x=Et(x,z),g[v]={css:I,vars:A}}),f){const{css:v,vars:w,varsWithDefaults:A}=zc(f,t);x=Et(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={...p};return Object.entries(g).forEach(([,{vars:w}])=>{v=Et(v,w)}),v},generateStyleSheets:()=>{const v=[],w=e.defaultColorScheme||"light";function A(M,L){Object.keys(L).length&&v.push(typeof M=="string"?{[M]:{...L}}:M)}A(n(void 0,{...h}),h);const{[w]:I,...z}=g;if(I){const{css:M}=I,L=a[w]?.palette?.mode,O=!r&&L?{colorScheme:L,...M}:{...M};A(n(w,{...O}),O)}return Object.entries(z).forEach(([M,{css:L}])=>{const O=a[M]?.palette?.mode,T=!r&&O?{colorScheme:O,...L}:{...L};A(n(M,{...T}),T)}),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 cC(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 Te(e,t,n=void 0){const r={};for(const i in e){const s=e[i];let a="",c=!0;for(let d=0;d<s.length;d+=1){const u=s[d];u&&(a+=(c===!0?"":" ")+t(u),c=!1,n&&n[u]&&(a+=" "+n[u]))}r[i]=a}return r}const dC=da(),pC=qw("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ne(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),uC=e=>Yw({props:e,name:"MuiContainer",defaultTheme:dC}),fC=(e,t)=>{const n=d=>Ce(t,d),{classes:r,fixed:i,disableGutters:s,maxWidth:a}=e,c={root:["root",a&&`maxWidth${ne(String(a))}`,i&&"fixed",s&&"disableGutters"]};return Te(c,n,r)};function hC(e={}){const{createStyledComponent:t=pC,useThemeProps:n=uC,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:c})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!c.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:c})=>c.fixed&&Object.keys(a.breakpoints.values).reduce((d,u)=>{const p=u,h=a.breakpoints.values[p];return h!==0&&(d[a.breakpoints.up(p)]={maxWidth:`${h}${a.breakpoints.unit}`}),d},{}),({theme:a,ownerState:c})=>({...c.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...c.maxWidth&&c.maxWidth!=="xs"&&{[a.breakpoints.up(c.maxWidth)]:{maxWidth:`${a.breakpoints.values[c.maxWidth]}${a.breakpoints.unit}`}}})),s=E.forwardRef(function(c,d){const u=n(c),{className:p,component:h="div",disableGutters:y=!1,fixed:x=!1,maxWidth:g="lg",classes:f,...m}=u,S={...u,component:h,disableGutters:y,fixed:x,maxWidth:g},C=fC(S,r);return l.jsx(i,{as:h,ownerState:S,className:be(C.root,p),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 Lc(e,t){return E.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Dh(){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:Jo.white,default:Jo.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 _h=Dh();function $h(){return{text:{primary:Jo.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:Jo.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 Bc=$h();function zh(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=ma(e.main,i):t==="dark"&&(e.dark=ga(e.main,s)))}function Lh(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 gC(e="light"){return e==="dark"?{main:Hr[200],light:Hr[50],dark:Hr[400]}:{main:Hr[700],light:Hr[400],dark:Hr[800]}}function mC(e="light"){return e==="dark"?{main:Ur[200],light:Ur[50],dark:Ur[400]}:{main:Ur[500],light:Ur[300],dark:Ur[700]}}function yC(e="light"){return e==="dark"?{main:Vr[500],light:Vr[300],dark:Vr[700]}:{main:Vr[700],light:Vr[400],dark:Vr[800]}}function bC(e="light"){return e==="dark"?{main:Rr[400],light:Rr[300],dark:Rr[700]}:{main:Rr[700],light:Rr[500],dark:Rr[900]}}function xC(e="light"){return e==="dark"?{main:qr[400],light:qr[300],dark:qr[700]}:{main:qr[800],light:qr[500],dark:qr[900]}}function vC(e="light"){return e==="dark"?{main:Qo[400],light:Qo[300],dark:Qo[700]}:{main:"#ed6c02",light:Qo[500],dark:Qo[900]}}function SC(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function jc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...s}=e,a=e.primary||gC(t),c=e.secondary||mC(t),d=e.error||yC(t),u=e.info||bC(t),p=e.success||xC(t),h=e.warning||vC(t);function y(m){if(i)return SC(m);const S=Oh(m,Bc.text.primary)>=n?Bc.text.primary:_h.text.primary;if(process.env.NODE_ENV!=="production"){const C=Oh(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
|
-
`))}return S}const
|
|
34
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:hn(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}const eC=e=>{const t=Zn(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},di=(e,t)=>{try{return eC(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function fa(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 Ph(e){e=Zn(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),a=(u,p=(u+n/30)%12)=>i-s*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),fa({type:c,values:d})}function Dc(e){e=Zn(e);let t=e.type==="hsl"||e.type==="hsla"?Zn(Ph(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 Oh(e,t){const n=Dc(e),r=Dc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ha(e,t){return e=Zn(e),t=Mc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,fa(e)}function gr(e,t,n){try{return ha(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ga(e,t){if(e=Zn(e),t=Mc(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 fa(e)}function Ke(e,t,n){try{return ga(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ma(e,t){if(e=Zn(e),t=Mc(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 fa(e)}function Ge(e,t,n){try{return ma(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function _c(e,t=.15){return Dc(e)>.5?ga(e,t):ma(e,t)}function ya(e,t,n){try{return _c(e,t)}catch{return e}}const tC="exact-prop: ";function $c(e){return process.env.NODE_ENV==="production"?e:{...e,[tC]: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 nC=E.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const pi=()=>E.useContext(nC)??!1,rC=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function oC(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 iC({props:e,name:t}){const n=E.useContext(rC);return oC({props:e,name:t,theme:{components:n}})}let Ih=0;function sC(e){const[t,n]=E.useState(e),r=e||t;return E.useEffect(()=>{t==null&&(Ih+=1,n(`mui-${Ih}`))},[t]),r}const Nh={...E}.useId;function mr(e){if(Nh!==void 0){const t=Nh();return e??t}return sC(e)}const Fh={theme:void 0};function aC(e){let t,n;return function(i){let s=t;return(s===void 0||i.theme!==n)&&(Fh.theme=i.theme,s=Sh(e(Fh)),t=s,n=i.theme),s}}function lC(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 Mh=(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])})},cC=(e,t,n)=>{function r(i,s=[],a=[]){Object.entries(i).forEach(([c,d])=>{(!n||n&&!n([...s,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...s,c],Array.isArray(d)?[...a,c]:a):t([...s,c],d,a))})}r(e)},dC=(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 zc(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},s={},a={};return cC(e,(c,d,u)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(c,d))){const p=`--${n?`${n}-`:""}${c.join("-")}`,h=dC(c,d);Object.assign(i,{[p]:h}),Mh(s,c,`var(${p})`,u),Mh(a,c,`var(${p}, ${h})`,u)}},c=>c[0]==="vars"),{css:i,vars:s,varsWithDefaults:a}}function pC(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:s}=t,{colorSchemes:a={},components:c,defaultColorScheme:d="light",...u}=e,{vars:p,css:h,varsWithDefaults:y}=zc(u,t);let b=y;const g={},{[d]:f,...m}=a;if(Object.entries(m||{}).forEach(([v,w])=>{const{vars:A,css:O,varsWithDefaults:L}=zc(w,t);b=kt(b,L),g[v]={css:O,vars:A}}),f){const{css:v,vars:w,varsWithDefaults:A}=zc(f,t);b=kt(b,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:b,generateThemeVars:()=>{let v={...p};return Object.entries(g).forEach(([,{vars:w}])=>{v=kt(v,w)}),v},generateStyleSheets:()=>{const v=[],w=e.defaultColorScheme||"light";function A(M,_){Object.keys(_).length&&v.push(typeof M=="string"?{[M]:{..._}}:M)}A(n(void 0,{...h}),h);const{[w]:O,...L}=g;if(O){const{css:M}=O,_=a[w]?.palette?.mode,I=!r&&_?{colorScheme:_,...M}:{...M};A(n(w,{...I}),I)}return Object.entries(L).forEach(([M,{css:_}])=>{const I=a[M]?.palette?.mode,T=!r&&I?{colorScheme:I,..._}:{..._};A(n(M,{...T}),T)}),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 uC(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 ke(e,t,n=void 0){const r={};for(const i in e){const s=e[i];let a="",c=!0;for(let d=0;d<s.length;d+=1){const u=s[d];u&&(a+=(c===!0?"":" ")+t(u),c=!1,n&&n[u]&&(a+=" "+n[u]))}r[i]=a}return r}const fC=da(),hC=Gw("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${te(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),gC=e=>Xw({props:e,name:"MuiContainer",defaultTheme:fC}),mC=(e,t)=>{const n=d=>Te(t,d),{classes:r,fixed:i,disableGutters:s,maxWidth:a}=e,c={root:["root",a&&`maxWidth${te(String(a))}`,i&&"fixed",s&&"disableGutters"]};return ke(c,n,r)};function yC(e={}){const{createStyledComponent:t=hC,useThemeProps:n=gC,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:c})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!c.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:c})=>c.fixed&&Object.keys(a.breakpoints.values).reduce((d,u)=>{const p=u,h=a.breakpoints.values[p];return h!==0&&(d[a.breakpoints.up(p)]={maxWidth:`${h}${a.breakpoints.unit}`}),d},{}),({theme:a,ownerState:c})=>({...c.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...c.maxWidth&&c.maxWidth!=="xs"&&{[a.breakpoints.up(c.maxWidth)]:{maxWidth:`${a.breakpoints.values[c.maxWidth]}${a.breakpoints.unit}`}}})),s=E.forwardRef(function(c,d){const u=n(c),{className:p,component:h="div",disableGutters:y=!1,fixed:b=!1,maxWidth:g="lg",classes:f,...m}=u,S={...u,component:h,disableGutters:y,fixed:b,maxWidth:g},C=mC(S,r);return l.jsx(i,{as:h,ownerState:S,className:be(C.root,p),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 Lc(e,t){return E.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Dh(){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:Xo.white,default:Xo.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 _h=Dh();function $h(){return{text:{primary:Xo.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:Xo.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 Bc=$h();function zh(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=ma(e.main,i):t==="dark"&&(e.dark=ga(e.main,s)))}function Lh(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 bC(e="light"){return e==="dark"?{main:Ur[200],light:Ur[50],dark:Ur[400]}:{main:Ur[700],light:Ur[400],dark:Ur[800]}}function xC(e="light"){return e==="dark"?{main:Vr[200],light:Vr[50],dark:Vr[400]}:{main:Vr[500],light:Vr[300],dark:Vr[700]}}function vC(e="light"){return e==="dark"?{main:Wr[500],light:Wr[300],dark:Wr[700]}:{main:Wr[700],light:Wr[400],dark:Wr[800]}}function SC(e="light"){return e==="dark"?{main:Hr[400],light:Hr[300],dark:Hr[700]}:{main:Hr[700],light:Hr[500],dark:Hr[900]}}function wC(e="light"){return e==="dark"?{main:Rr[400],light:Rr[300],dark:Rr[700]}:{main:Rr[800],light:Rr[500],dark:Rr[900]}}function CC(e="light"){return e==="dark"?{main:Jo[400],light:Jo[300],dark:Jo[700]}:{main:"#ed6c02",light:Jo[500],dark:Jo[900]}}function EC(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function jc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...s}=e,a=e.primary||bC(t),c=e.secondary||xC(t),d=e.error||vC(t),u=e.info||SC(t),p=e.success||wC(t),h=e.warning||CC(t);function y(m){if(i)return EC(m);const S=Oh(m,Bc.text.primary)>=n?Bc.text.primary:_h.text.primary;if(process.env.NODE_ENV!=="production"){const C=Oh(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
|
+
`))}return S}const b=({color:m,name:S,mainShade:C=500,lightShade:x=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.`:hn(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.
|
|
38
38
|
|
|
@@ -46,21 +46,21 @@ const theme1 = createTheme({ palette: {
|
|
|
46
46
|
|
|
47
47
|
const theme2 = createTheme({ palette: {
|
|
48
48
|
primary: { main: green[500] },
|
|
49
|
-
} });`:hn(12,S?` (${S})`:"",JSON.stringify(m.main)));return i?(Lh(i,m,"light",
|
|
50
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(p=>`${p} ${typeof a=="string"?a:Wh(a)} ${c} ${typeof d=="string"?d:Wh(d)}`).join(",")},...e,easing:t,duration:n}}const
|
|
49
|
+
} });`:hn(12,S?` (${S})`:"",JSON.stringify(m.main)));return i?(Lh(i,m,"light",x,r),Lh(i,m,"dark",v,r)):(zh(m,"light",x,r),zh(m,"dark",v,r)),m.contrastText||(m.contrastText=y(m.main)),m};let g;return t==="light"?g=Dh():t==="dark"&&(g=$h()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),kt({common:{...Xo},mode:t,primary:b({color:a,name:"primary"}),secondary:b({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:d,name:"error"}),warning:b({color:h,name:"warning"}),info:b({color:u,name:"info"}),success:b({color:p,name:"success"}),grey:F1,contrastThreshold:n,getContrastText:y,augmentColor:b,tonalOffset:r,...g},s)}function TC(e){const t={};return Object.entries(e).forEach(r=>{const[i,s]=r;typeof s=="object"&&(t[i]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function AC(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function kC(e){return Math.round(e*1e5)/1e5}const Bh={textTransform:"uppercase"},jh='"Roboto", "Helvetica", "Arial", sans-serif';function PC(e,t){const{fontFamily:n=jh,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:u,pxToRem:p,...h}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=r/14,b=p||(m=>`${m/d*y}rem`),g=(m,S,C,x,v)=>({fontFamily:n,fontWeight:m,fontSize:b(S),lineHeight:C,...n===jh?{letterSpacing:`${kC(x/S)}em`}:{},...v,...u}),f={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,Bh),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,Bh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kt({htmlFontSize:d,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c,...f},h,{clone:!1})}const OC=.2,IC=.14,NC=.12;function ot(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${OC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${IC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${NC})`].join(",")}const FC=["none",ot(0,2,1,-1,0,1,1,0,0,1,3,0),ot(0,3,1,-2,0,2,2,0,0,1,5,0),ot(0,3,3,-2,0,3,4,0,0,1,8,0),ot(0,2,4,-1,0,4,5,0,0,1,10,0),ot(0,3,5,-1,0,5,8,0,0,1,14,0),ot(0,3,5,-1,0,6,10,0,0,1,18,0),ot(0,4,5,-2,0,7,10,1,0,2,16,1),ot(0,5,5,-3,0,8,10,1,0,3,14,2),ot(0,5,6,-3,0,9,12,1,0,3,16,2),ot(0,6,6,-3,0,10,14,1,0,4,18,3),ot(0,6,7,-4,0,11,15,1,0,4,20,3),ot(0,7,8,-4,0,12,17,2,0,5,22,4),ot(0,7,8,-4,0,13,19,2,0,5,24,4),ot(0,7,9,-4,0,14,21,2,0,5,26,4),ot(0,8,9,-5,0,15,22,2,0,6,28,5),ot(0,8,10,-5,0,16,24,2,0,6,30,5),ot(0,8,11,-5,0,17,26,2,0,6,32,5),ot(0,9,11,-5,0,18,28,2,0,7,34,6),ot(0,9,12,-6,0,19,29,2,0,7,36,6),ot(0,10,13,-6,0,20,31,3,0,8,38,7),ot(0,10,13,-6,0,21,33,3,0,8,40,7),ot(0,10,14,-6,0,22,35,3,0,8,42,7),ot(0,11,14,-7,0,23,36,3,0,9,44,8),ot(0,11,15,-7,0,24,38,3,0,9,46,8)],MC={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},DC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wh(e){return`${Math.round(e)}ms`}function _C(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function $C(e){const t={...MC,...e.easing},n={...DC,...e.duration};return{getAutoHeightDuration:_C,create:(i=["all"],s={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:d=0,...u}=s;if(process.env.NODE_ENV!=="production"){const p=y=>typeof y=="string",h=y=>!Number.isNaN(parseFloat(y));!p(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(a)&&!p(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),p(c)||console.error('MUI: Argument "easing" must be a string.'),!h(d)&&!p(d)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
50
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(p=>`${p} ${typeof a=="string"?a:Wh(a)} ${c} ${typeof d=="string"?d:Wh(d)}`).join(",")},...e,easing:t,duration:n}}const zC={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function LC(e){return bn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Vh(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let s=0;s<i.length;s++){const[a,c]=i[s];!LC(c)||a.startsWith("unstable_")?delete r[a]:bn(c)&&(r[a]={...c},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
51
51
|
|
|
52
52
|
const theme = ${JSON.stringify(t,null,2)};
|
|
53
53
|
|
|
54
54
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
55
55
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
56
56
|
|
|
57
|
-
export default theme;`}function Uh(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const
|
|
58
|
-
`))}m[C]={}}}};Object.keys(
|
|
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 HC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const xn=e=>{try{return e()}catch{}},RC=(e="mui")=>iC(e);function Uc(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const s=i==="dark"?"dark":"light";if(!r){t[i]=BC({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...c}=Wc({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...Hh(s),...n?.opacity},overlays:n?.overlays||Rh(s)},c}function qC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:c=jC,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...p}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),x=RC(s),{[y]:g,light:f,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.`:hn(21,y));let v;a&&(v="oklch");const w=Uc(v,C,b,p,y);f&&!C.light&&Uc(v,C,f,void 0,"light"),m&&!C.dark&&Uc(v,C,m,void 0,"dark");let A={defaultColorScheme:y,...w,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:u,getCssVar:x,colorSchemes:C,font:{...wC(w.typography),...w.font},spacing:HC(p.spacing)};Object.keys(A.colorSchemes).forEach(O=>{const T=A.colorSchemes[O].palette,N=U=>{const F=U.split("-"),_=F[1],k=F[2];return x(U,T[_][k])};T.mode==="light"&&(K(T.common,"background","#fff"),K(T.common,"onBackground","#000")),T.mode==="dark"&&(K(T.common,"background","#000"),K(T.common,"onBackground","#fff"));function D(U,F,_){if(v){let k;return U===gr&&(k=`transparent ${((1-_)*100).toFixed(0)}%`),U===qe&&(k=`#000 ${(_*100).toFixed(0)}%`),U===Ye&&(k=`#fff ${(_*100).toFixed(0)}%`),`color-mix(in ${v}, ${F}, ${k})`}return U(F,_)}if(UC(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){K(T.Alert,"errorColor",D(qe,T.error.light,.6)),K(T.Alert,"infoColor",D(qe,T.info.light,.6)),K(T.Alert,"successColor",D(qe,T.success.light,.6)),K(T.Alert,"warningColor",D(qe,T.warning.light,.6)),K(T.Alert,"errorFilledBg",N("palette-error-main")),K(T.Alert,"infoFilledBg",N("palette-info-main")),K(T.Alert,"successFilledBg",N("palette-success-main")),K(T.Alert,"warningFilledBg",N("palette-warning-main")),K(T.Alert,"errorFilledColor",xn(()=>T.getContrastText(T.error.main))),K(T.Alert,"infoFilledColor",xn(()=>T.getContrastText(T.info.main))),K(T.Alert,"successFilledColor",xn(()=>T.getContrastText(T.success.main))),K(T.Alert,"warningFilledColor",xn(()=>T.getContrastText(T.warning.main))),K(T.Alert,"errorStandardBg",D(Ye,T.error.light,.9)),K(T.Alert,"infoStandardBg",D(Ye,T.info.light,.9)),K(T.Alert,"successStandardBg",D(Ye,T.success.light,.9)),K(T.Alert,"warningStandardBg",D(Ye,T.warning.light,.9)),K(T.Alert,"errorIconColor",N("palette-error-main")),K(T.Alert,"infoIconColor",N("palette-info-main")),K(T.Alert,"successIconColor",N("palette-success-main")),K(T.Alert,"warningIconColor",N("palette-warning-main")),K(T.AppBar,"defaultBg",N("palette-grey-100")),K(T.Avatar,"defaultBg",N("palette-grey-400")),K(T.Button,"inheritContainedBg",N("palette-grey-300")),K(T.Button,"inheritContainedHoverBg",N("palette-grey-A100")),K(T.Chip,"defaultBorder",N("palette-grey-400")),K(T.Chip,"defaultAvatarColor",N("palette-grey-700")),K(T.Chip,"defaultIconColor",N("palette-grey-700")),K(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),K(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),K(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),K(T.LinearProgress,"primaryBg",D(Ye,T.primary.main,.62)),K(T.LinearProgress,"secondaryBg",D(Ye,T.secondary.main,.62)),K(T.LinearProgress,"errorBg",D(Ye,T.error.main,.62)),K(T.LinearProgress,"infoBg",D(Ye,T.info.main,.62)),K(T.LinearProgress,"successBg",D(Ye,T.success.main,.62)),K(T.LinearProgress,"warningBg",D(Ye,T.warning.main,.62)),K(T.Skeleton,"bg",v?D(gr,T.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),K(T.Slider,"primaryTrack",D(Ye,T.primary.main,.62)),K(T.Slider,"secondaryTrack",D(Ye,T.secondary.main,.62)),K(T.Slider,"errorTrack",D(Ye,T.error.main,.62)),K(T.Slider,"infoTrack",D(Ye,T.info.main,.62)),K(T.Slider,"successTrack",D(Ye,T.success.main,.62)),K(T.Slider,"warningTrack",D(Ye,T.warning.main,.62));const U=v?D(qe,T.background.default,.6825):ya(T.background.default,.8);K(T.SnackbarContent,"bg",U),K(T.SnackbarContent,"color",xn(()=>v?Bc.text.primary:T.getContrastText(U))),K(T.SpeedDialAction,"fabHoverBg",ya(T.background.paper,.15)),K(T.StepConnector,"border",N("palette-grey-400")),K(T.StepContent,"border",N("palette-grey-400")),K(T.Switch,"defaultColor",N("palette-common-white")),K(T.Switch,"defaultDisabledColor",N("palette-grey-100")),K(T.Switch,"primaryDisabledColor",D(Ye,T.primary.main,.62)),K(T.Switch,"secondaryDisabledColor",D(Ye,T.secondary.main,.62)),K(T.Switch,"errorDisabledColor",D(Ye,T.error.main,.62)),K(T.Switch,"infoDisabledColor",D(Ye,T.info.main,.62)),K(T.Switch,"successDisabledColor",D(Ye,T.success.main,.62)),K(T.Switch,"warningDisabledColor",D(Ye,T.warning.main,.62)),K(T.TableCell,"border",D(Ye,D(gr,T.divider,1),.88)),K(T.Tooltip,"bg",D(gr,T.grey[700],.92))}if(T.mode==="dark"){K(T.Alert,"errorColor",D(Ye,T.error.light,.6)),K(T.Alert,"infoColor",D(Ye,T.info.light,.6)),K(T.Alert,"successColor",D(Ye,T.success.light,.6)),K(T.Alert,"warningColor",D(Ye,T.warning.light,.6)),K(T.Alert,"errorFilledBg",N("palette-error-dark")),K(T.Alert,"infoFilledBg",N("palette-info-dark")),K(T.Alert,"successFilledBg",N("palette-success-dark")),K(T.Alert,"warningFilledBg",N("palette-warning-dark")),K(T.Alert,"errorFilledColor",xn(()=>T.getContrastText(T.error.dark))),K(T.Alert,"infoFilledColor",xn(()=>T.getContrastText(T.info.dark))),K(T.Alert,"successFilledColor",xn(()=>T.getContrastText(T.success.dark))),K(T.Alert,"warningFilledColor",xn(()=>T.getContrastText(T.warning.dark))),K(T.Alert,"errorStandardBg",D(qe,T.error.light,.9)),K(T.Alert,"infoStandardBg",D(qe,T.info.light,.9)),K(T.Alert,"successStandardBg",D(qe,T.success.light,.9)),K(T.Alert,"warningStandardBg",D(qe,T.warning.light,.9)),K(T.Alert,"errorIconColor",N("palette-error-main")),K(T.Alert,"infoIconColor",N("palette-info-main")),K(T.Alert,"successIconColor",N("palette-success-main")),K(T.Alert,"warningIconColor",N("palette-warning-main")),K(T.AppBar,"defaultBg",N("palette-grey-900")),K(T.AppBar,"darkBg",N("palette-background-paper")),K(T.AppBar,"darkColor",N("palette-text-primary")),K(T.Avatar,"defaultBg",N("palette-grey-600")),K(T.Button,"inheritContainedBg",N("palette-grey-800")),K(T.Button,"inheritContainedHoverBg",N("palette-grey-700")),K(T.Chip,"defaultBorder",N("palette-grey-700")),K(T.Chip,"defaultAvatarColor",N("palette-grey-300")),K(T.Chip,"defaultIconColor",N("palette-grey-300")),K(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),K(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),K(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),K(T.LinearProgress,"primaryBg",D(qe,T.primary.main,.5)),K(T.LinearProgress,"secondaryBg",D(qe,T.secondary.main,.5)),K(T.LinearProgress,"errorBg",D(qe,T.error.main,.5)),K(T.LinearProgress,"infoBg",D(qe,T.info.main,.5)),K(T.LinearProgress,"successBg",D(qe,T.success.main,.5)),K(T.LinearProgress,"warningBg",D(qe,T.warning.main,.5)),K(T.Skeleton,"bg",v?D(gr,T.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),K(T.Slider,"primaryTrack",D(qe,T.primary.main,.5)),K(T.Slider,"secondaryTrack",D(qe,T.secondary.main,.5)),K(T.Slider,"errorTrack",D(qe,T.error.main,.5)),K(T.Slider,"infoTrack",D(qe,T.info.main,.5)),K(T.Slider,"successTrack",D(qe,T.success.main,.5)),K(T.Slider,"warningTrack",D(qe,T.warning.main,.5));const U=v?D(Ye,T.background.default,.985):ya(T.background.default,.98);K(T.SnackbarContent,"bg",U),K(T.SnackbarContent,"color",xn(()=>v?_h.text.primary:T.getContrastText(U))),K(T.SpeedDialAction,"fabHoverBg",ya(T.background.paper,.15)),K(T.StepConnector,"border",N("palette-grey-600")),K(T.StepContent,"border",N("palette-grey-600")),K(T.Switch,"defaultColor",N("palette-grey-300")),K(T.Switch,"defaultDisabledColor",N("palette-grey-600")),K(T.Switch,"primaryDisabledColor",D(qe,T.primary.main,.55)),K(T.Switch,"secondaryDisabledColor",D(qe,T.secondary.main,.55)),K(T.Switch,"errorDisabledColor",D(qe,T.error.main,.55)),K(T.Switch,"infoDisabledColor",D(qe,T.info.main,.55)),K(T.Switch,"successDisabledColor",D(qe,T.success.main,.55)),K(T.Switch,"warningDisabledColor",D(qe,T.warning.main,.55)),K(T.TableCell,"border",D(qe,D(gr,T.divider,1),.68)),K(T.Tooltip,"bg",D(gr,T.grey[700],.92))}jn(T.background,"default"),jn(T.background,"paper"),jn(T.common,"background"),jn(T.common,"onBackground"),jn(T,"divider"),Object.keys(T).forEach(U=>{const F=T[U];U!=="tonalOffset"&&F&&typeof F=="object"&&(F.main&&K(T[U],"mainChannel",pi(fi(F.main))),F.light&&K(T[U],"lightChannel",pi(fi(F.light))),F.dark&&K(T[U],"darkChannel",pi(fi(F.dark))),F.contrastText&&K(T[U],"contrastTextChannel",pi(fi(F.contrastText))),U==="text"&&(jn(T[U],"primary"),jn(T[U],"secondary")),U==="action"&&(F.active&&jn(T[U],"active"),F.selected&&jn(T[U],"selected")))})}),A=t.reduce((O,T)=>Et(O,T),A);const I={prefix:s,disableCssColorScheme:i,shouldSkipGeneratingVar:c,getSelector:VC(A),enableContrastVars:a},{vars:z,generateThemeVars:M,generateStyleSheets:L}=lC(A,I);return A.vars=z,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([O,T])=>{A[O]=T}),A.generateThemeVars=M,A.generateStyleSheets=L,A.generateSpacing=function(){return uh(p.spacing,Oc(this))},A.getColorSchemeSelector=cC(d),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=c,A.unstable_sxConfig={...ci,...p?.unstable_sxConfig},A.unstable_sx=function(T){return fr({sx:T,theme:this})},A.toRuntimeSource=Vh,A}function qh(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:jc({...n===!0?{}:n.palette,mode:t})})}function Yh(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,c=s||"light",d=i?.[c],u={...i,...n?{[c]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Wc(e,...t);let p=n;"palette"in e||u[c]&&(u[c]!==!0?p=u[c].palette:c==="dark"&&(p={mode:"dark"}));const h=Wc({...e,palette:p},...t);return h.defaultColorScheme=c,h.colorSchemes=u,h.palette.mode==="light"&&(h.colorSchemes.light={...u.light!==!0&&u.light,palette:h.palette},qh(h,"dark",u.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:h.palette},qh(h,"light",u.light)),h}return!n&&!("light"in u)&&c==="light"&&(u.light=!0),qC({...a,colorSchemes:u,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const Hc=Yh();function vn(){const e=pa(Hc);return process.env.NODE_ENV!=="production"&&E.useDebugValue(e),e[Zo]||e}function hi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tt=e=>hi(e)&&e!=="classes",Z=Ch({themeId:Zo,defaultTheme:Hc,rootShouldForwardProp:Tt});function Rc(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Kh(e){return l.jsx(hh,{...e,defaultTheme:Hc,themeId:Zo})}process.env.NODE_ENV!=="production"&&(Kh.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function YC(e){return function(n){return l.jsx(Kh,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function KC(){return gh}const Se=oC;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Ae(e){return nC(e)}function GC(e){return Ce("MuiSvgIcon",e)}Ee("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const XC=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ne(t)}`,`fontSize${ne(n)}`]};return Te(i,GC,r)},JC=Z("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ne(n.color)}`],t[`fontSize${ne(n.fontSize)}`]]}})(Se(({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}}]}))),er=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:a="inherit",component:c="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:p=!1,titleAccess:h,viewBox:y="0 0 24 24",...x}=r,g=E.isValidElement(i)&&i.type==="svg",f={...r,color:a,component:c,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:y,hasSvgAsChild:g},m={};p||(m.viewBox=y);const S=XC(f);return l.jsxs(JC,{as:c,className:be(S.root,s),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...m,...x,...g&&i.props,ownerState:f,children:[g?i.props.children:i,h?l.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(er.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}),er.muiName="SvgIcon";function ot(e,t){function n(r,i){return l.jsx(er,{"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=er.muiName,E.memo(E.forwardRef(n))}function Gh(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 gt(e){return e&&e.ownerDocument||document}function Wn(e){return gt(e).defaultView||window}function Xh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Zr(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:s}=E.useRef(t!==void 0),[a,c]=E.useState(n),d=s?t:a;if(process.env.NODE_ENV!=="production"){E.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${i} state of ${r} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
57
|
+
export default theme;`}function Uh(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const BC=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 jC(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})`:ha(t,BC(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Uh(n)})`:ma(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Uh(n)})`:ga(t,n)}})}function Wc(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:s={},transitions:a={},typography:c={},shape:d,colorSpace:u,...p}=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.":hn(20));const h=jc({...s,colorSpace:u}),y=da(e);let b=kt(y,{mixins:AC(y.breakpoints,r),palette:h,shadows:FC.slice(),typography:PC(h,c),transitions:$C(a),zIndex:{...zC}});if(b=kt(b,p),b=t.reduce((g,f)=>kt(g,f),b),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(m,S)=>{let C;for(C in m){const x=m[C];if(g.includes(C)&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const v=Te("",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}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
58
|
+
`))}m[C]={}}}};Object.keys(b.components).forEach(m=>{const S=b.components[m].styleOverrides;S&&m.startsWith("Mui")&&f(S,m)})}return b.unstable_sxConfig={...li,...p?.unstable_sxConfig},b.unstable_sx=function(f){return fr({sx:f,theme:this})},b.toRuntimeSource=Vh,jC(b),b}function Vc(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 WC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Vc(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Hh(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Rh(e){return e==="dark"?WC:[]}function VC(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...s}=e,a=jc({...t,colorSpace:i});return{palette:a,opacity:{...Hh(a.mode),...n},overlays:r||Rh(a.mode),...s}}function UC(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 HC=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],RC=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 HC(e.cssVarPrefix).forEach(c=>{a[c]=n[c],delete n[c]}),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 qC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Y(e,t,n){!e[t]&&n&&(e[t]=n)}function ui(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ph(e)}function Bn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=di(ui(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 YC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const xn=e=>{try{return e()}catch{}},KC=(e="mui")=>lC(e);function Uc(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const s=i==="dark"?"dark":"light";if(!r){t[i]=VC({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...c}=Wc({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...Hh(s),...n?.opacity},overlays:n?.overlays||Rh(s)},c}function GC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:c=UC,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...p}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),b=KC(s),{[y]:g,light:f,dark:m,...S}=n,C={...S};let x=g;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:hn(21,y));let v;a&&(v="oklch");const w=Uc(v,C,x,p,y);f&&!C.light&&Uc(v,C,f,void 0,"light"),m&&!C.dark&&Uc(v,C,m,void 0,"dark");let A={defaultColorScheme:y,...w,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:u,getCssVar:b,colorSchemes:C,font:{...TC(w.typography),...w.font},spacing:YC(p.spacing)};Object.keys(A.colorSchemes).forEach(I=>{const T=A.colorSchemes[I].palette,F=U=>{const N=U.split("-"),$=N[1],k=N[2];return b(U,T[$][k])};T.mode==="light"&&(Y(T.common,"background","#fff"),Y(T.common,"onBackground","#000")),T.mode==="dark"&&(Y(T.common,"background","#000"),Y(T.common,"onBackground","#fff"));function D(U,N,$){if(v){let k;return U===gr&&(k=`transparent ${((1-$)*100).toFixed(0)}%`),U===Ke&&(k=`#000 ${($*100).toFixed(0)}%`),U===Ge&&(k=`#fff ${($*100).toFixed(0)}%`),`color-mix(in ${v}, ${N}, ${k})`}return U(N,$)}if(qC(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){Y(T.Alert,"errorColor",D(Ke,T.error.light,.6)),Y(T.Alert,"infoColor",D(Ke,T.info.light,.6)),Y(T.Alert,"successColor",D(Ke,T.success.light,.6)),Y(T.Alert,"warningColor",D(Ke,T.warning.light,.6)),Y(T.Alert,"errorFilledBg",F("palette-error-main")),Y(T.Alert,"infoFilledBg",F("palette-info-main")),Y(T.Alert,"successFilledBg",F("palette-success-main")),Y(T.Alert,"warningFilledBg",F("palette-warning-main")),Y(T.Alert,"errorFilledColor",xn(()=>T.getContrastText(T.error.main))),Y(T.Alert,"infoFilledColor",xn(()=>T.getContrastText(T.info.main))),Y(T.Alert,"successFilledColor",xn(()=>T.getContrastText(T.success.main))),Y(T.Alert,"warningFilledColor",xn(()=>T.getContrastText(T.warning.main))),Y(T.Alert,"errorStandardBg",D(Ge,T.error.light,.9)),Y(T.Alert,"infoStandardBg",D(Ge,T.info.light,.9)),Y(T.Alert,"successStandardBg",D(Ge,T.success.light,.9)),Y(T.Alert,"warningStandardBg",D(Ge,T.warning.light,.9)),Y(T.Alert,"errorIconColor",F("palette-error-main")),Y(T.Alert,"infoIconColor",F("palette-info-main")),Y(T.Alert,"successIconColor",F("palette-success-main")),Y(T.Alert,"warningIconColor",F("palette-warning-main")),Y(T.AppBar,"defaultBg",F("palette-grey-100")),Y(T.Avatar,"defaultBg",F("palette-grey-400")),Y(T.Button,"inheritContainedBg",F("palette-grey-300")),Y(T.Button,"inheritContainedHoverBg",F("palette-grey-A100")),Y(T.Chip,"defaultBorder",F("palette-grey-400")),Y(T.Chip,"defaultAvatarColor",F("palette-grey-700")),Y(T.Chip,"defaultIconColor",F("palette-grey-700")),Y(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Y(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Y(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Y(T.LinearProgress,"primaryBg",D(Ge,T.primary.main,.62)),Y(T.LinearProgress,"secondaryBg",D(Ge,T.secondary.main,.62)),Y(T.LinearProgress,"errorBg",D(Ge,T.error.main,.62)),Y(T.LinearProgress,"infoBg",D(Ge,T.info.main,.62)),Y(T.LinearProgress,"successBg",D(Ge,T.success.main,.62)),Y(T.LinearProgress,"warningBg",D(Ge,T.warning.main,.62)),Y(T.Skeleton,"bg",v?D(gr,T.text.primary,.11):`rgba(${F("palette-text-primaryChannel")} / 0.11)`),Y(T.Slider,"primaryTrack",D(Ge,T.primary.main,.62)),Y(T.Slider,"secondaryTrack",D(Ge,T.secondary.main,.62)),Y(T.Slider,"errorTrack",D(Ge,T.error.main,.62)),Y(T.Slider,"infoTrack",D(Ge,T.info.main,.62)),Y(T.Slider,"successTrack",D(Ge,T.success.main,.62)),Y(T.Slider,"warningTrack",D(Ge,T.warning.main,.62));const U=v?D(Ke,T.background.default,.6825):ya(T.background.default,.8);Y(T.SnackbarContent,"bg",U),Y(T.SnackbarContent,"color",xn(()=>v?Bc.text.primary:T.getContrastText(U))),Y(T.SpeedDialAction,"fabHoverBg",ya(T.background.paper,.15)),Y(T.StepConnector,"border",F("palette-grey-400")),Y(T.StepContent,"border",F("palette-grey-400")),Y(T.Switch,"defaultColor",F("palette-common-white")),Y(T.Switch,"defaultDisabledColor",F("palette-grey-100")),Y(T.Switch,"primaryDisabledColor",D(Ge,T.primary.main,.62)),Y(T.Switch,"secondaryDisabledColor",D(Ge,T.secondary.main,.62)),Y(T.Switch,"errorDisabledColor",D(Ge,T.error.main,.62)),Y(T.Switch,"infoDisabledColor",D(Ge,T.info.main,.62)),Y(T.Switch,"successDisabledColor",D(Ge,T.success.main,.62)),Y(T.Switch,"warningDisabledColor",D(Ge,T.warning.main,.62)),Y(T.TableCell,"border",D(Ge,D(gr,T.divider,1),.88)),Y(T.Tooltip,"bg",D(gr,T.grey[700],.92))}if(T.mode==="dark"){Y(T.Alert,"errorColor",D(Ge,T.error.light,.6)),Y(T.Alert,"infoColor",D(Ge,T.info.light,.6)),Y(T.Alert,"successColor",D(Ge,T.success.light,.6)),Y(T.Alert,"warningColor",D(Ge,T.warning.light,.6)),Y(T.Alert,"errorFilledBg",F("palette-error-dark")),Y(T.Alert,"infoFilledBg",F("palette-info-dark")),Y(T.Alert,"successFilledBg",F("palette-success-dark")),Y(T.Alert,"warningFilledBg",F("palette-warning-dark")),Y(T.Alert,"errorFilledColor",xn(()=>T.getContrastText(T.error.dark))),Y(T.Alert,"infoFilledColor",xn(()=>T.getContrastText(T.info.dark))),Y(T.Alert,"successFilledColor",xn(()=>T.getContrastText(T.success.dark))),Y(T.Alert,"warningFilledColor",xn(()=>T.getContrastText(T.warning.dark))),Y(T.Alert,"errorStandardBg",D(Ke,T.error.light,.9)),Y(T.Alert,"infoStandardBg",D(Ke,T.info.light,.9)),Y(T.Alert,"successStandardBg",D(Ke,T.success.light,.9)),Y(T.Alert,"warningStandardBg",D(Ke,T.warning.light,.9)),Y(T.Alert,"errorIconColor",F("palette-error-main")),Y(T.Alert,"infoIconColor",F("palette-info-main")),Y(T.Alert,"successIconColor",F("palette-success-main")),Y(T.Alert,"warningIconColor",F("palette-warning-main")),Y(T.AppBar,"defaultBg",F("palette-grey-900")),Y(T.AppBar,"darkBg",F("palette-background-paper")),Y(T.AppBar,"darkColor",F("palette-text-primary")),Y(T.Avatar,"defaultBg",F("palette-grey-600")),Y(T.Button,"inheritContainedBg",F("palette-grey-800")),Y(T.Button,"inheritContainedHoverBg",F("palette-grey-700")),Y(T.Chip,"defaultBorder",F("palette-grey-700")),Y(T.Chip,"defaultAvatarColor",F("palette-grey-300")),Y(T.Chip,"defaultIconColor",F("palette-grey-300")),Y(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Y(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Y(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Y(T.LinearProgress,"primaryBg",D(Ke,T.primary.main,.5)),Y(T.LinearProgress,"secondaryBg",D(Ke,T.secondary.main,.5)),Y(T.LinearProgress,"errorBg",D(Ke,T.error.main,.5)),Y(T.LinearProgress,"infoBg",D(Ke,T.info.main,.5)),Y(T.LinearProgress,"successBg",D(Ke,T.success.main,.5)),Y(T.LinearProgress,"warningBg",D(Ke,T.warning.main,.5)),Y(T.Skeleton,"bg",v?D(gr,T.text.primary,.13):`rgba(${F("palette-text-primaryChannel")} / 0.13)`),Y(T.Slider,"primaryTrack",D(Ke,T.primary.main,.5)),Y(T.Slider,"secondaryTrack",D(Ke,T.secondary.main,.5)),Y(T.Slider,"errorTrack",D(Ke,T.error.main,.5)),Y(T.Slider,"infoTrack",D(Ke,T.info.main,.5)),Y(T.Slider,"successTrack",D(Ke,T.success.main,.5)),Y(T.Slider,"warningTrack",D(Ke,T.warning.main,.5));const U=v?D(Ge,T.background.default,.985):ya(T.background.default,.98);Y(T.SnackbarContent,"bg",U),Y(T.SnackbarContent,"color",xn(()=>v?_h.text.primary:T.getContrastText(U))),Y(T.SpeedDialAction,"fabHoverBg",ya(T.background.paper,.15)),Y(T.StepConnector,"border",F("palette-grey-600")),Y(T.StepContent,"border",F("palette-grey-600")),Y(T.Switch,"defaultColor",F("palette-grey-300")),Y(T.Switch,"defaultDisabledColor",F("palette-grey-600")),Y(T.Switch,"primaryDisabledColor",D(Ke,T.primary.main,.55)),Y(T.Switch,"secondaryDisabledColor",D(Ke,T.secondary.main,.55)),Y(T.Switch,"errorDisabledColor",D(Ke,T.error.main,.55)),Y(T.Switch,"infoDisabledColor",D(Ke,T.info.main,.55)),Y(T.Switch,"successDisabledColor",D(Ke,T.success.main,.55)),Y(T.Switch,"warningDisabledColor",D(Ke,T.warning.main,.55)),Y(T.TableCell,"border",D(Ke,D(gr,T.divider,1),.68)),Y(T.Tooltip,"bg",D(gr,T.grey[700],.92))}Bn(T.background,"default"),Bn(T.background,"paper"),Bn(T.common,"background"),Bn(T.common,"onBackground"),Bn(T,"divider"),Object.keys(T).forEach(U=>{const N=T[U];U!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&Y(T[U],"mainChannel",di(ui(N.main))),N.light&&Y(T[U],"lightChannel",di(ui(N.light))),N.dark&&Y(T[U],"darkChannel",di(ui(N.dark))),N.contrastText&&Y(T[U],"contrastTextChannel",di(ui(N.contrastText))),U==="text"&&(Bn(T[U],"primary"),Bn(T[U],"secondary")),U==="action"&&(N.active&&Bn(T[U],"active"),N.selected&&Bn(T[U],"selected")))})}),A=t.reduce((I,T)=>kt(I,T),A);const O={prefix:s,disableCssColorScheme:i,shouldSkipGeneratingVar:c,getSelector:RC(A),enableContrastVars:a},{vars:L,generateThemeVars:M,generateStyleSheets:_}=pC(A,O);return A.vars=L,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([I,T])=>{A[I]=T}),A.generateThemeVars=M,A.generateStyleSheets=_,A.generateSpacing=function(){return uh(p.spacing,Oc(this))},A.getColorSchemeSelector=uC(d),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=c,A.unstable_sxConfig={...li,...p?.unstable_sxConfig},A.unstable_sx=function(T){return fr({sx:T,theme:this})},A.toRuntimeSource=Vh,A}function qh(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:jc({...n===!0?{}:n.palette,mode:t})})}function Yh(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,c=s||"light",d=i?.[c],u={...i,...n?{[c]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Wc(e,...t);let p=n;"palette"in e||u[c]&&(u[c]!==!0?p=u[c].palette:c==="dark"&&(p={mode:"dark"}));const h=Wc({...e,palette:p},...t);return h.defaultColorScheme=c,h.colorSchemes=u,h.palette.mode==="light"&&(h.colorSchemes.light={...u.light!==!0&&u.light,palette:h.palette},qh(h,"dark",u.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:h.palette},qh(h,"light",u.light)),h}return!n&&!("light"in u)&&c==="light"&&(u.light=!0),GC({...a,colorSchemes:u,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const Hc=Yh();function vn(){const e=pa(Hc);return process.env.NODE_ENV!=="production"&&E.useDebugValue(e),e[Qo]||e}function fi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Pt=e=>fi(e)&&e!=="classes",J=Ch({themeId:Qo,defaultTheme:Hc,rootShouldForwardProp:Pt});function Rc(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Kh(e){return l.jsx(hh,{...e,defaultTheme:Hc,themeId:Qo})}process.env.NODE_ENV!=="production"&&(Kh.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function XC(e){return function(n){return l.jsx(Kh,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function JC(){return gh}const Ce=aC;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Pe(e){return iC(e)}function QC(e){return Te("MuiSvgIcon",e)}Ae("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ZC=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${te(t)}`,`fontSize${te(n)}`]};return ke(i,QC,r)},eE=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${te(n.color)}`],t[`fontSize${te(n.fontSize)}`]]}})(Ce(({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}}]}))),er=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:a="inherit",component:c="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:p=!1,titleAccess:h,viewBox:y="0 0 24 24",...b}=r,g=E.isValidElement(i)&&i.type==="svg",f={...r,color:a,component:c,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:y,hasSvgAsChild:g},m={};p||(m.viewBox=y);const S=ZC(f);return l.jsxs(eE,{as:c,className:be(S.root,s),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...m,...b,...g&&i.props,ownerState:f,children:[g?i.props.children:i,h?l.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(er.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}),er.muiName="SvgIcon";function it(e,t){function n(r,i){return l.jsx(er,{"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=er.muiName,E.memo(E.forwardRef(n))}function Gh(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 mt(e){return e&&e.ownerDocument||document}function jn(e){return mt(e).defaultView||window}function Xh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Qr(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:s}=E.useRef(t!==void 0),[a,c]=E.useState(n),d=s?t:a;if(process.env.NODE_ENV!=="production"){E.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${i} state of ${r} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
60
60
|
`))},[i,r,t]);const{current:p}=E.useRef(n);E.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(p)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
61
|
-
`))},[JSON.stringify(n)])}const u=E.useCallback(p=>{s||c(p)},[]);return[d,u]}function Nt(e){const t=E.useRef(e);return Gt(()=>{t.current=e}),E.useRef((...n)=>(0,t.current)(...n)).current}function ut(...e){const t=E.useRef(void 0),n=E.useCallback(r=>{const i=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,c=a(r);return typeof c=="function"?c:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{i.forEach(s=>s?.())}},e);return E.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function QC(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Jh(e,t){if(!e)return t;function n(a,c){const d={};return Object.keys(c).forEach(u=>{QC(u,c[u])&&typeof a[u]=="function"&&(d[u]=(...p)=>{a[u](...p),c[u](...p)})}),d}if(typeof e=="function"||typeof t=="function")return a=>{const c=typeof t=="function"?t(a):t,d=typeof e=="function"?e({...a,...c}):e,u=be(a?.className,c?.className,d?.className),p=n(d,c);return{...c,...d,...p,...!!u&&{className:u},...c?.style&&d?.style&&{style:{...c.style,...d.style}},...c?.sx&&d?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,i=n(e,r),s=be(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 ba={exports:{}},Ze={};var Qh;function ZC(){if(Qh)return Ze;Qh=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"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case i:case r:case d:case u:case y:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case h:case p:return f;case s:return f;default:return m}}case t:return m}}}return Ze.ContextConsumer=s,Ze.ContextProvider=a,Ze.Element=e,Ze.ForwardRef=c,Ze.Fragment=n,Ze.Lazy=h,Ze.Memo=p,Ze.Portal=t,Ze.Profiler=i,Ze.StrictMode=r,Ze.Suspense=d,Ze.SuspenseList=u,Ze.isContextConsumer=function(f){return g(f)===s},Ze.isContextProvider=function(f){return g(f)===a},Ze.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Ze.isForwardRef=function(f){return g(f)===c},Ze.isFragment=function(f){return g(f)===n},Ze.isLazy=function(f){return g(f)===h},Ze.isMemo=function(f){return g(f)===p},Ze.isPortal=function(f){return g(f)===t},Ze.isProfiler=function(f){return g(f)===i},Ze.isStrictMode=function(f){return g(f)===r},Ze.isSuspense=function(f){return g(f)===d},Ze.isSuspenseList=function(f){return g(f)===u},Ze.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===d||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===p||f.$$typeof===a||f.$$typeof===s||f.$$typeof===c||f.$$typeof===x||f.getModuleId!==void 0)},Ze.typeOf=g,Ze}var et={};var Zh;function eE(){return Zh||(Zh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case s:case i:case u:case p:case x:return f;default:switch(f=f&&f.$$typeof,f){case c:case d:case y:case h:return f;case a:return f;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");et.ContextConsumer=a,et.ContextProvider=c,et.Element=t,et.ForwardRef=d,et.Fragment=r,et.Lazy=y,et.Memo=h,et.Portal=n,et.Profiler=s,et.StrictMode=i,et.Suspense=u,et.SuspenseList=p,et.isContextConsumer=function(f){return e(f)===a},et.isContextProvider=function(f){return e(f)===c},et.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},et.isForwardRef=function(f){return e(f)===d},et.isFragment=function(f){return e(f)===r},et.isLazy=function(f){return e(f)===y},et.isMemo=function(f){return e(f)===h},et.isPortal=function(f){return e(f)===n},et.isProfiler=function(f){return e(f)===s},et.isStrictMode=function(f){return e(f)===i},et.isSuspense=function(f){return e(f)===u},et.isSuspenseList=function(f){return e(f)===p},et.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===u||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===y||f.$$typeof===h||f.$$typeof===c||f.$$typeof===a||f.$$typeof===d||f.$$typeof===g||f.getModuleId!==void 0)},et.typeOf=e})()),et}var eg;function tE(){return eg||(eg=1,process.env.NODE_ENV==="production"?ba.exports=ZC():ba.exports=eE()),ba.exports}var qc=tE();function ln(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function tg(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 Yc(e,t){return Yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Yc(e,t)}function ng(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yc(e,t)}const rg={disabled:!1};var nE=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 xa=j.createContext(null);var rE=function(t){return t.scrollTop},gi="unmounted",yr="exited",br="entering",eo="entered",Kc="exiting",Sn=(function(e){ng(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=i,c=a&&!a.isMounting?r.enter:r.appear,d;return s.appearStatus=null,r.in?c?(d=yr,s.appearStatus=br):d=eo:r.unmountOnExit||r.mountOnEnter?d=gi:d=yr,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var a=i.in;return a&&s.status===gi?{status:yr}: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!==br&&a!==eo&&(s=br):(a===br||a===eo)&&(s=Kc)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,a,c;return s=a=c=i,i!=null&&typeof i!="number"&&(s=i.exit,a=i.enter,c=i.appear!==void 0?i.appear:a),{exit:s,enter:a,appear:c}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===br){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:xo.findDOMNode(this);a&&rE(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yr&&this.setState({status:gi})},n.performEnter=function(i){var s=this,a=this.props.enter,c=this.context?this.context.isMounting:i,d=this.props.nodeRef?[c]:[xo.findDOMNode(this),c],u=d[0],p=d[1],h=this.getTimeouts(),y=c?h.appear:h.enter;if(!i&&!a||rg.disabled){this.safeSetState({status:eo},function(){s.props.onEntered(u)});return}this.props.onEnter(u,p),this.safeSetState({status:br},function(){s.props.onEntering(u,p),s.onTransitionEnd(y,function(){s.safeSetState({status:eo},function(){s.props.onEntered(u,p)})})})},n.performExit=function(){var i=this,s=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:xo.findDOMNode(this);if(!s||rg.disabled){this.safeSetState({status:yr},function(){i.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Kc},function(){i.props.onExiting(c),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:yr},function(){i.props.onExited(c)})})})},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(c){a&&(a=!1,s.nextCallback=null,i(c))},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:xo.findDOMNode(this),c=i==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=d[0],p=d[1];this.props.addEndListener(u,p)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===gi)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 c=tg(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(xa.Provider,{value:null},typeof a=="function"?a(i,c):j.cloneElement(j.Children.only(a),c))},t})(j.Component);Sn.contextType=xa,Sn.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=nE;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 to(){}Sn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:to,onEntering:to,onEntered:to,onExit:to,onExiting:to,onExited:to},Sn.UNMOUNTED=gi,Sn.EXITED=yr,Sn.ENTERING=br,Sn.ENTERED=eo,Sn.EXITING=Kc;function oE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gc(e,t){var n=function(s){return t&&j.isValidElement(s)?t(s):s},r=Object.create(null);return e&&j.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function iE(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}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,c={};for(var d in t){if(r[d])for(a=0;a<r[d].length;a++){var u=r[d][a];c[r[d][a]]=n(u)}c[d]=n(d)}for(a=0;a<i.length;a++)c[i[a]]=n(i[a]);return c}function xr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function sE(e,t){return Gc(e.children,function(n){return j.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:xr(n,"appear",e),enter:xr(n,"enter",e),exit:xr(n,"exit",e)})})}function aE(e,t,n){var r=Gc(e.children),i=iE(t,r);return Object.keys(i).forEach(function(s){var a=i[s];if(j.isValidElement(a)){var c=s in t,d=s in r,u=t[s],p=j.isValidElement(u)&&!u.props.in;d&&(!c||p)?i[s]=j.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:xr(a,"exit",e),enter:xr(a,"enter",e)}):!d&&c&&!p?i[s]=j.cloneElement(a,{in:!1}):d&&c&&j.isValidElement(u)&&(i[s]=j.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:xr(a,"exit",e),enter:xr(a,"enter",e)}))}}),i}var lE=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},cE={component:"div",childFactory:function(t){return t}},Xc=(function(e){ng(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=s.handleExited.bind(oE(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,c=s.handleExited,d=s.firstRender;return{children:d?sE(i,c):aE(i,a,c),firstRender:!1}},n.handleExited=function(i,s){var a=Gc(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(s),this.mounted&&this.setState(function(c){var d=js({},c.children);return delete d[i.key],{children:d}}))},n.render=function(){var i=this.props,s=i.component,a=i.childFactory,c=tg(i,["component","childFactory"]),d=this.state.contextValue,u=lE(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,s===null?j.createElement(xa.Provider,{value:d},u):j.createElement(xa.Provider,{value:d},j.createElement(s,c,u))},t})(j.Component);Xc.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},Xc.defaultProps=cE;const og={};function ig(e,t){const n=E.useRef(og);return n.current===og&&(n.current=e(t)),n}const dE=[];function pE(e){E.useEffect(e,dE)}class va{static create(){return new va}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function vr(){const e=ig(va.create).current;return pE(e.disposeEffect),e}function uE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function fE(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let c;return typeof s=="function"&&!uE(s)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Jc=ln(o.elementType,fE),sg=e=>e.scrollTop;function Sa(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 tr(e){return typeof e=="string"}function ag(e,t,n){return e===void 0||tr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function lg(e,t,n){return typeof e=="function"?e(t,n):e}function Sr(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 dg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const x=be(n?.className,s,i?.className,r?.className),g={...n?.style,...i?.style,...r?.style},f={...n,...i,...r};return x.length>0&&(f.className=x),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const a=Sr({...i,...r}),c=cg(r),d=cg(i),u=t(a),p=be(u?.className,n?.className,s,i?.className,r?.className),h={...u?.style,...n?.style,...i?.style,...r?.style},y={...u,...n,...d,...c};return p.length>0&&(y.className=p),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:u.ref}}function Pe(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:c=!1,...d}=t,{component:u,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...y}=s,x=p[e]||r,g=lg(h[e],i),{props:{component:f,...m},internalRef:S}=dg({className:n,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:g}),C=ut(S,g?.ref,t.ref),b=e==="root"?f||u:f,v=ag(x,{...e==="root"&&!u&&!p[e]&&a,...e!=="root"&&!p[e]&&a,...m,...b&&!c&&{as:b},...b&&c&&{component:b},ref:C},i);return[x,v]}function hE(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 pg(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const s=hE(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function ug(e,t,n,r){return e[t]===void 0?null:pg(e,t,n,r)}function Qc(){return null}ug.isRequired=pg,Qc.isRequired=Qc;const wa=process.env.NODE_ENV==="production"?Qc:ug;function gE(e){return Ce("MuiPaper",e)}Ee("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 mE=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Te(s,gE,i)},yE=Z("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}`]]}})(Se(({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)"}}]}))),cn=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiPaper"}),i=vn(),{className:s,component:a="div",elevation:c=1,square:d=!1,variant:u="elevation",...p}=r,h={...r,component:a,elevation:c,square:d,variant:u},y=mE(h);return process.env.NODE_ENV!=="production"&&i.shadows[c]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${c}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${c}]\` is defined.`].join(`
|
|
62
|
-
`)),l.jsx(
|
|
63
|
-
`))}return!1}class Ca{static create(){return new Ca}static use(){const t=ig(Ca.create).current,[n,r]=E.useState(!1);return t.shouldMount=n,t.setShouldMount=r,E.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=
|
|
61
|
+
`))},[JSON.stringify(n)])}const u=E.useCallback(p=>{s||c(p)},[]);return[d,u]}function Ft(e){const t=E.useRef(e);return Xt(()=>{t.current=e}),E.useRef((...n)=>(0,t.current)(...n)).current}function ft(...e){const t=E.useRef(void 0),n=E.useCallback(r=>{const i=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,c=a(r);return typeof c=="function"?c:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{i.forEach(s=>s?.())}},e);return E.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function tE(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Jh(e,t){if(!e)return t;function n(a,c){const d={};return Object.keys(c).forEach(u=>{tE(u,c[u])&&typeof a[u]=="function"&&(d[u]=(...p)=>{a[u](...p),c[u](...p)})}),d}if(typeof e=="function"||typeof t=="function")return a=>{const c=typeof t=="function"?t(a):t,d=typeof e=="function"?e({...a,...c}):e,u=be(a?.className,c?.className,d?.className),p=n(d,c);return{...c,...d,...p,...!!u&&{className:u},...c?.style&&d?.style&&{style:{...c.style,...d.style}},...c?.sx&&d?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,i=n(e,r),s=be(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 ba={exports:{}},et={};var Qh;function nE(){if(Qh)return et;Qh=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"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case i:case r:case d:case u:case y:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case h:case p:return f;case s:return f;default:return m}}case t:return m}}}return et.ContextConsumer=s,et.ContextProvider=a,et.Element=e,et.ForwardRef=c,et.Fragment=n,et.Lazy=h,et.Memo=p,et.Portal=t,et.Profiler=i,et.StrictMode=r,et.Suspense=d,et.SuspenseList=u,et.isContextConsumer=function(f){return g(f)===s},et.isContextProvider=function(f){return g(f)===a},et.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},et.isForwardRef=function(f){return g(f)===c},et.isFragment=function(f){return g(f)===n},et.isLazy=function(f){return g(f)===h},et.isMemo=function(f){return g(f)===p},et.isPortal=function(f){return g(f)===t},et.isProfiler=function(f){return g(f)===i},et.isStrictMode=function(f){return g(f)===r},et.isSuspense=function(f){return g(f)===d},et.isSuspenseList=function(f){return g(f)===u},et.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===d||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===p||f.$$typeof===a||f.$$typeof===s||f.$$typeof===c||f.$$typeof===b||f.getModuleId!==void 0)},et.typeOf=g,et}var tt={};var Zh;function rE(){return Zh||(Zh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case s:case i:case u:case p:case b:return f;default:switch(f=f&&f.$$typeof,f){case c:case d:case y:case h:return f;case a:return f;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");tt.ContextConsumer=a,tt.ContextProvider=c,tt.Element=t,tt.ForwardRef=d,tt.Fragment=r,tt.Lazy=y,tt.Memo=h,tt.Portal=n,tt.Profiler=s,tt.StrictMode=i,tt.Suspense=u,tt.SuspenseList=p,tt.isContextConsumer=function(f){return e(f)===a},tt.isContextProvider=function(f){return e(f)===c},tt.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},tt.isForwardRef=function(f){return e(f)===d},tt.isFragment=function(f){return e(f)===r},tt.isLazy=function(f){return e(f)===y},tt.isMemo=function(f){return e(f)===h},tt.isPortal=function(f){return e(f)===n},tt.isProfiler=function(f){return e(f)===s},tt.isStrictMode=function(f){return e(f)===i},tt.isSuspense=function(f){return e(f)===u},tt.isSuspenseList=function(f){return e(f)===p},tt.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===u||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===y||f.$$typeof===h||f.$$typeof===c||f.$$typeof===a||f.$$typeof===d||f.$$typeof===g||f.getModuleId!==void 0)},tt.typeOf=e})()),tt}var eg;function oE(){return eg||(eg=1,process.env.NODE_ENV==="production"?ba.exports=nE():ba.exports=rE()),ba.exports}var qc=oE();function ln(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function tg(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 Yc(e,t){return Yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Yc(e,t)}function ng(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yc(e,t)}const rg={disabled:!1};var iE=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 xa=z.createContext(null);var sE=function(t){return t.scrollTop},hi="unmounted",yr="exited",br="entering",Zr="entered",Kc="exiting",Sn=(function(e){ng(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=i,c=a&&!a.isMounting?r.enter:r.appear,d;return s.appearStatus=null,r.in?c?(d=yr,s.appearStatus=br):d=Zr:r.unmountOnExit||r.mountOnEnter?d=hi:d=yr,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var a=i.in;return a&&s.status===hi?{status:yr}: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!==br&&a!==Zr&&(s=br):(a===br||a===Zr)&&(s=Kc)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,a,c;return s=a=c=i,i!=null&&typeof i!="number"&&(s=i.exit,a=i.enter,c=i.appear!==void 0?i.appear:a),{exit:s,enter:a,appear:c}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===br){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:bo.findDOMNode(this);a&&sE(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yr&&this.setState({status:hi})},n.performEnter=function(i){var s=this,a=this.props.enter,c=this.context?this.context.isMounting:i,d=this.props.nodeRef?[c]:[bo.findDOMNode(this),c],u=d[0],p=d[1],h=this.getTimeouts(),y=c?h.appear:h.enter;if(!i&&!a||rg.disabled){this.safeSetState({status:Zr},function(){s.props.onEntered(u)});return}this.props.onEnter(u,p),this.safeSetState({status:br},function(){s.props.onEntering(u,p),s.onTransitionEnd(y,function(){s.safeSetState({status:Zr},function(){s.props.onEntered(u,p)})})})},n.performExit=function(){var i=this,s=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:bo.findDOMNode(this);if(!s||rg.disabled){this.safeSetState({status:yr},function(){i.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Kc},function(){i.props.onExiting(c),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:yr},function(){i.props.onExited(c)})})})},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(c){a&&(a=!1,s.nextCallback=null,i(c))},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:bo.findDOMNode(this),c=i==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=d[0],p=d[1];this.props.addEndListener(u,p)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===hi)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 c=tg(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return z.createElement(xa.Provider,{value:null},typeof a=="function"?a(i,c):z.cloneElement(z.Children.only(a),c))},t})(z.Component);Sn.contextType=xa,Sn.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=iE;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 eo(){}Sn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:eo,onEntering:eo,onEntered:eo,onExit:eo,onExiting:eo,onExited:eo},Sn.UNMOUNTED=hi,Sn.EXITED=yr,Sn.ENTERING=br,Sn.ENTERED=Zr,Sn.EXITING=Kc;function aE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gc(e,t){var n=function(s){return t&&z.isValidElement(s)?t(s):s},r=Object.create(null);return e&&z.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function lE(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}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,c={};for(var d in t){if(r[d])for(a=0;a<r[d].length;a++){var u=r[d][a];c[r[d][a]]=n(u)}c[d]=n(d)}for(a=0;a<i.length;a++)c[i[a]]=n(i[a]);return c}function xr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function cE(e,t){return Gc(e.children,function(n){return z.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:xr(n,"appear",e),enter:xr(n,"enter",e),exit:xr(n,"exit",e)})})}function dE(e,t,n){var r=Gc(e.children),i=lE(t,r);return Object.keys(i).forEach(function(s){var a=i[s];if(z.isValidElement(a)){var c=s in t,d=s in r,u=t[s],p=z.isValidElement(u)&&!u.props.in;d&&(!c||p)?i[s]=z.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:xr(a,"exit",e),enter:xr(a,"enter",e)}):!d&&c&&!p?i[s]=z.cloneElement(a,{in:!1}):d&&c&&z.isValidElement(u)&&(i[s]=z.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:xr(a,"exit",e),enter:xr(a,"enter",e)}))}}),i}var pE=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},uE={component:"div",childFactory:function(t){return t}},Xc=(function(e){ng(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=s.handleExited.bind(aE(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,c=s.handleExited,d=s.firstRender;return{children:d?cE(i,c):dE(i,a,c),firstRender:!1}},n.handleExited=function(i,s){var a=Gc(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(s),this.mounted&&this.setState(function(c){var d=js({},c.children);return delete d[i.key],{children:d}}))},n.render=function(){var i=this.props,s=i.component,a=i.childFactory,c=tg(i,["component","childFactory"]),d=this.state.contextValue,u=pE(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,s===null?z.createElement(xa.Provider,{value:d},u):z.createElement(xa.Provider,{value:d},z.createElement(s,c,u))},t})(z.Component);Xc.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},Xc.defaultProps=uE;const og={};function ig(e,t){const n=E.useRef(og);return n.current===og&&(n.current=e(t)),n}const fE=[];function hE(e){E.useEffect(e,fE)}class va{static create(){return new va}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function vr(){const e=ig(va.create).current;return hE(e.disposeEffect),e}function gE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function mE(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let c;return typeof s=="function"&&!gE(s)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Jc=ln(o.elementType,mE),sg=e=>e.scrollTop;function Sa(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 tr(e){return typeof e=="string"}function ag(e,t,n){return e===void 0||tr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function lg(e,t,n){return typeof e=="function"?e(t,n):e}function Sr(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 dg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const b=be(n?.className,s,i?.className,r?.className),g={...n?.style,...i?.style,...r?.style},f={...n,...i,...r};return b.length>0&&(f.className=b),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const a=Sr({...i,...r}),c=cg(r),d=cg(i),u=t(a),p=be(u?.className,n?.className,s,i?.className,r?.className),h={...u?.style,...n?.style,...i?.style,...r?.style},y={...u,...n,...d,...c};return p.length>0&&(y.className=p),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:u.ref}}function Oe(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:c=!1,...d}=t,{component:u,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...y}=s,b=p[e]||r,g=lg(h[e],i),{props:{component:f,...m},internalRef:S}=dg({className:n,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:g}),C=ft(S,g?.ref,t.ref),x=e==="root"?f||u:f,v=ag(b,{...e==="root"&&!u&&!p[e]&&a,...e!=="root"&&!p[e]&&a,...m,...x&&!c&&{as:x},...x&&c&&{component:x},ref:C},i);return[b,v]}function yE(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 pg(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const s=yE(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function ug(e,t,n,r){return e[t]===void 0?null:pg(e,t,n,r)}function Qc(){return null}ug.isRequired=pg,Qc.isRequired=Qc;const wa=process.env.NODE_ENV==="production"?Qc:ug;function bE(e){return Te("MuiPaper",e)}Ae("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 xE=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ke(s,bE,i)},vE=J("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}`]]}})(Ce(({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)"}}]}))),cn=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiPaper"}),i=vn(),{className:s,component:a="div",elevation:c=1,square:d=!1,variant:u="elevation",...p}=r,h={...r,component:a,elevation:c,square:d,variant:u},y=xE(h);return process.env.NODE_ENV!=="production"&&i.shadows[c]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${c}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${c}]\` is defined.`].join(`
|
|
62
|
+
`)),l.jsx(vE,{as:a,ownerState:h,className:be(y.root,s),ref:n,...p,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[c],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[c]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ha("#fff",Vc(c))}, ${ha("#fff",Vc(c))})`}},...p.style}})});process.env.NODE_ENV!=="production"&&(cn.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:ln(wa,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 Mt=o.oneOfType([o.func,o.object]);function to(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 Ca{static create(){return new Ca}static use(){const t=ig(Ca.create).current,[n,r]=E.useState(!1);return t.shouldMount=n,t.setShouldMount=r,E.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=wE(),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 SE(){return Ca.use()}function wE(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function fg(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:a,in:c,onExited:d,timeout:u}=e,[p,h]=E.useState(!1),y=be(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+s,left:-(a/2)+i},g=be(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&h(!0),E.useEffect(()=>{if(!c&&d!=null){const f=setTimeout(d,u);return()=>{clearTimeout(f)}}},[d,c,u]),l.jsx("span",{className:y,style:b,children:l.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(fg.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 Jt=Ae("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Zc=550,CE=80,EE=Xn`
|
|
64
64
|
0% {
|
|
65
65
|
transform: scale(0);
|
|
66
66
|
opacity: 0.1;
|
|
@@ -70,7 +70,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
70
70
|
transform: scale(1);
|
|
71
71
|
opacity: 0.3;
|
|
72
72
|
}
|
|
73
|
-
`,
|
|
73
|
+
`,TE=Xn`
|
|
74
74
|
0% {
|
|
75
75
|
opacity: 1;
|
|
76
76
|
}
|
|
@@ -78,7 +78,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
78
78
|
100% {
|
|
79
79
|
opacity: 0;
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
81
|
+
`,AE=Xn`
|
|
82
82
|
0% {
|
|
83
83
|
transform: scale(1);
|
|
84
84
|
}
|
|
@@ -90,23 +90,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
90
90
|
100% {
|
|
91
91
|
transform: scale(1);
|
|
92
92
|
}
|
|
93
|
-
`,
|
|
93
|
+
`,kE=J("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),PE=J(fg,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
94
94
|
opacity: 0;
|
|
95
95
|
position: absolute;
|
|
96
96
|
|
|
97
|
-
&.${
|
|
97
|
+
&.${Jt.rippleVisible} {
|
|
98
98
|
opacity: 0.3;
|
|
99
99
|
transform: scale(1);
|
|
100
|
-
animation-name: ${
|
|
100
|
+
animation-name: ${EE};
|
|
101
101
|
animation-duration: ${Zc}ms;
|
|
102
102
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
&.${
|
|
105
|
+
&.${Jt.ripplePulsate} {
|
|
106
106
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
& .${
|
|
109
|
+
& .${Jt.child} {
|
|
110
110
|
opacity: 1;
|
|
111
111
|
display: block;
|
|
112
112
|
width: 100%;
|
|
@@ -115,25 +115,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
115
115
|
background-color: currentColor;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
& .${
|
|
118
|
+
& .${Jt.childLeaving} {
|
|
119
119
|
opacity: 0;
|
|
120
|
-
animation-name: ${
|
|
120
|
+
animation-name: ${TE};
|
|
121
121
|
animation-duration: ${Zc}ms;
|
|
122
122
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
& .${
|
|
125
|
+
& .${Jt.childPulsate} {
|
|
126
126
|
position: absolute;
|
|
127
127
|
/* @noflip */
|
|
128
128
|
left: 0px;
|
|
129
129
|
top: 0;
|
|
130
|
-
animation-name: ${
|
|
130
|
+
animation-name: ${AE};
|
|
131
131
|
animation-duration: 2500ms;
|
|
132
132
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
133
133
|
animation-iteration-count: infinite;
|
|
134
134
|
animation-delay: 200ms;
|
|
135
135
|
}
|
|
136
|
-
`,hg=E.forwardRef(function(t,n){const r=
|
|
136
|
+
`,hg=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:a,...c}=r,[d,u]=E.useState([]),p=E.useRef(0),h=E.useRef(null);E.useEffect(()=>{h.current&&(h.current(),h.current=null)},[d]);const y=E.useRef(!1),b=vr(),g=E.useRef(null),f=E.useRef(null),m=E.useCallback(v=>{const{pulsate:w,rippleX:A,rippleY:O,rippleSize:L,cb:M}=v;u(_=>[..._,l.jsx(PE,{classes:{ripple:be(s.ripple,Jt.ripple),rippleVisible:be(s.rippleVisible,Jt.rippleVisible),ripplePulsate:be(s.ripplePulsate,Jt.ripplePulsate),child:be(s.child,Jt.child),childLeaving:be(s.childLeaving,Jt.childLeaving),childPulsate:be(s.childPulsate,Jt.childPulsate)},timeout:Zc,pulsate:w,rippleX:A,rippleY:O,rippleSize:L},p.current)]),p.current+=1,h.current=M},[s]),S=E.useCallback((v={},w={},A=()=>{})=>{const{pulsate:O=!1,center:L=i||w.pulsate,fakeElement:M=!1}=w;if(v?.type==="mousedown"&&y.current){y.current=!1;return}v?.type==="touchstart"&&(y.current=!0);const _=M?null:f.current,I=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let T,F,D;if(L||v===void 0||v.clientX===0&&v.clientY===0||!v.clientX&&!v.touches)T=Math.round(I.width/2),F=Math.round(I.height/2);else{const{clientX:U,clientY:N}=v.touches&&v.touches.length>0?v.touches[0]:v;T=Math.round(U-I.left),F=Math.round(N-I.top)}if(L)D=Math.sqrt((2*I.width**2+I.height**2)/3),D%2===0&&(D+=1);else{const U=Math.max(Math.abs((_?_.clientWidth:0)-T),T)*2+2,N=Math.max(Math.abs((_?_.clientHeight:0)-F),F)*2+2;D=Math.sqrt(U**2+N**2)}v?.touches?g.current===null&&(g.current=()=>{m({pulsate:O,rippleX:T,rippleY:F,rippleSize:D,cb:A})},b.start(CE,()=>{g.current&&(g.current(),g.current=null)})):m({pulsate:O,rippleX:T,rippleY:F,rippleSize:D,cb:A})},[i,m,b]),C=E.useCallback(()=>{S({},{pulsate:!0})},[S]),x=E.useCallback((v,w)=>{if(b.clear(),v?.type==="touchend"&&g.current){g.current(),g.current=null,b.start(0,()=>{x(v,w)});return}g.current=null,u(A=>A.length>0?A.slice(1):A),h.current=w},[b]);return E.useImperativeHandle(n,()=>({pulsate:C,start:S,stop:x}),[C,S,x]),l.jsx(kE,{className:be(Jt.root,s.root,a),ref:f,...c,children:l.jsx(Xc,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(hg.propTypes={center:o.bool,classes:o.object,className:o.string});function OE(e){return Te("MuiButtonBase",e)}const IE=Ae("MuiButtonBase",["root","disabled","focusVisible"]),NE=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=ke({root:["root",t&&"disabled",n&&"focusVisible"]},OE,i);return n&&r&&(a.root+=` ${r}`),a},FE=J("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"},[`&.${IE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gi=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:a,className:c,component:d="button",disabled:u=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:y=!1,focusVisibleClassName:b,LinkComponent:g="a",onBlur:f,onClick:m,onContextMenu:S,onDragLeave:C,onFocus:x,onFocusVisible:v,onKeyDown:w,onKeyUp:A,onMouseDown:O,onMouseLeave:L,onMouseUp:M,onTouchEnd:_,onTouchMove:I,onTouchStart:T,tabIndex:F=0,TouchRippleProps:D,touchRippleRef:U,type:N,...$}=r,k=E.useRef(null),V=SE(),B=ft(V.ref,U),[W,q]=E.useState(!1);u&&W&&q(!1),E.useImperativeHandle(i,()=>({focusVisible:()=>{q(!0),k.current.focus()}}),[]);const X=V.shouldMount&&!p&&!u;E.useEffect(()=>{W&&y&&!p&&V.pulsate()},[p,y,W,V]);const G=Wn(V,"start",O,h),Q=Wn(V,"stop",S,h),ee=Wn(V,"stop",C,h),oe=Wn(V,"stop",M,h),le=Wn(V,"stop",pe=>{W&&pe.preventDefault(),L&&L(pe)},h),ae=Wn(V,"start",T,h),re=Wn(V,"stop",_,h),ce=Wn(V,"stop",I,h),H=Wn(V,"stop",pe=>{to(pe.target)||q(!1),f&&f(pe)},!1),he=Ft(pe=>{k.current||(k.current=pe.currentTarget),to(pe.target)&&(q(!0),v&&v(pe)),x&&x(pe)}),de=()=>{const pe=k.current;return d&&d!=="button"&&!(pe.tagName==="A"&&pe.href)},ge=Ft(pe=>{y&&!pe.repeat&&W&&pe.key===" "&&V.stop(pe,()=>{V.start(pe)}),pe.target===pe.currentTarget&&de()&&pe.key===" "&&pe.preventDefault(),w&&w(pe),pe.target===pe.currentTarget&&de()&&pe.key==="Enter"&&!u&&(pe.preventDefault(),m&&m(pe))}),ze=Ft(pe=>{y&&pe.key===" "&&W&&!pe.defaultPrevented&&V.stop(pe,()=>{V.pulsate(pe)}),A&&A(pe),m&&pe.target===pe.currentTarget&&de()&&pe.key===" "&&!pe.defaultPrevented&&m(pe)});let Ee=d;Ee==="button"&&($.href||$.to)&&(Ee=g);const me={};if(Ee==="button"){const pe=!!$.formAction;me.type=N===void 0&&!pe?"button":N,me.disabled=u}else!$.href&&!$.to&&(me.role="button"),u&&(me["aria-disabled"]=u);const De=ft(n,k),Le={...r,centerRipple:s,component:d,disabled:u,disableRipple:p,disableTouchRipple:h,focusRipple:y,tabIndex:F,focusVisible:W},Ne=NE(Le);return l.jsxs(FE,{as:Ee,className:be(Ne.root,c),ownerState:Le,onBlur:H,onClick:m,onContextMenu:Q,onFocus:he,onKeyDown:ge,onKeyUp:ze,onMouseDown:G,onMouseLeave:le,onMouseUp:oe,onDragLeave:ee,onTouchEnd:re,onTouchMove:ce,onTouchStart:ae,ref:De,tabIndex:u?-1:F,type:N,...me,...$,children:[a,X?l.jsx(hg,{ref:B,center:s,...D}):null]})});function Wn(e,t,n,r=!1){return Ft(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(gi.propTypes={action:Mt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:Jc,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 ME(e){return typeof e.main=="string"}function DE(e,t=[]){if(!ME(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function dt(e=[]){return([,t])=>t&&DE(t,e)}function _E(e){return Te("MuiCircularProgress",e)}Ae("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const dn=44,ed=Xn`
|
|
137
137
|
0% {
|
|
138
138
|
transform: rotate(0deg);
|
|
139
139
|
}
|
|
@@ -156,20 +156,20 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
156
156
|
stroke-dasharray: 1px, 200px;
|
|
157
157
|
stroke-dashoffset: -126px;
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
`,$E=typeof ed!="string"?Gr`
|
|
160
160
|
animation: ${ed} 1.4s linear infinite;
|
|
161
|
-
`:null,
|
|
161
|
+
`:null,zE=typeof td!="string"?Gr`
|
|
162
162
|
animation: ${td} 1.4s ease-in-out infinite;
|
|
163
|
-
`:null,
|
|
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 HE(e){return Ce("MuiTypography",e)}const mg=Ee("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),RE={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},qE=KC(),YE=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:s,classes:a}=e,c={root:["root",s,e.align!=="inherit"&&`align${ne(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Te(c,HE,a)},KE=Z("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${ne(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Se(({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(ct()).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${ne(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}}]}))),yg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},B=E.forwardRef(function(t,n){const{color:r,...i}=Ae({props:t,name:"MuiTypography"}),s=!RE[r],a=qE({...i,...s&&{color:r}}),{align:c="inherit",className:d,component:u,gutterBottom:p=!1,noWrap:h=!1,paragraph:y=!1,variant:x="body1",variantMapping:g=yg,...f}=a,m={...a,align:c,color:r,className:d,component:u,gutterBottom:p,noWrap:h,paragraph:y,variant:x,variantMapping:g},S=u||(y?"p":g[x]||yg[x])||"span",C=YE(m);return l.jsx(KE,{as:S,ref:n,className:be(C.root,d),...f,ownerState:m,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...f.style}})});process.env.NODE_ENV!=="production"&&(B.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 Un(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 Lt="top",Jt="bottom",Qt="right",Bt="left",nd="auto",bi=[Lt,Jt,Qt,Bt],ro="start",xi="end",GE="clippingParents",bg="viewport",vi="popper",XE="reference",xg=bi.reduce(function(e,t){return e.concat([t+"-"+ro,t+"-"+xi])},[]),vg=[].concat(bi,[nd]).reduce(function(e,t){return e.concat([t,t+"-"+ro,t+"-"+xi])},[]),JE="beforeRead",QE="read",ZE="afterRead",eT="beforeMain",tT="main",nT="afterMain",rT="beforeWrite",oT="write",iT="afterWrite",sT=[JE,QE,ZE,eT,tT,nT,rT,oT,iT];function wn(e){return e?(e.nodeName||"").toLowerCase():null}function Ht(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wr(e){var t=Ht(e).Element;return e instanceof t||e instanceof Element}function Zt(e){var t=Ht(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rd(e){if(typeof ShadowRoot>"u")return!1;var t=Ht(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function aT(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];!Zt(s)||!wn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(a){var c=i[a];c===!1?s.removeAttribute(a):s.setAttribute(a,c===!0?"":c)}))})}function lT(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]),c=a.reduce(function(d,u){return d[u]="",d},{});!Zt(i)||!wn(i)||(Object.assign(i.style,c),Object.keys(s).forEach(function(d){i.removeAttribute(d)}))})}}const cT={name:"applyStyles",enabled:!0,phase:"write",fn:aT,effect:lT,requires:["computeStyles"]};function Cn(e){return e.split("-")[0]}var Cr=Math.max,Ea=Math.min,oo=Math.round;function od(){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 Sg(){return!/^((?!chrome|android).)*safari/i.test(od())}function io(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&Zt(e)&&(i=e.offsetWidth>0&&oo(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&oo(r.height)/e.offsetHeight||1);var a=wr(e)?Ht(e):window,c=a.visualViewport,d=!Sg()&&n,u=(r.left+(d&&c?c.offsetLeft:0))/i,p=(r.top+(d&&c?c.offsetTop:0))/s,h=r.width/i,y=r.height/s;return{width:h,height:y,top:p,right:u+h,bottom:p+y,left:u,x:u,y:p}}function id(e){var t=io(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 wg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&rd(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hn(e){return Ht(e).getComputedStyle(e)}function dT(e){return["table","td","th"].indexOf(wn(e))>=0}function nr(e){return((wr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ta(e){return wn(e)==="html"?e:e.assignedSlot||e.parentNode||(rd(e)?e.host:null)||nr(e)}function Cg(e){return!Zt(e)||Hn(e).position==="fixed"?null:e.offsetParent}function pT(e){var t=/firefox/i.test(od()),n=/Trident/i.test(od());if(n&&Zt(e)){var r=Hn(e);if(r.position==="fixed")return null}var i=Ta(e);for(rd(i)&&(i=i.host);Zt(i)&&["html","body"].indexOf(wn(i))<0;){var s=Hn(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 Si(e){for(var t=Ht(e),n=Cg(e);n&&dT(n)&&Hn(n).position==="static";)n=Cg(n);return n&&(wn(n)==="html"||wn(n)==="body"&&Hn(n).position==="static")?t:n||pT(e)||t}function sd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wi(e,t,n){return Cr(e,Ea(t,n))}function uT(e,t,n){var r=wi(e,t,n);return r>n?n:r}function Eg(){return{top:0,right:0,bottom:0,left:0}}function Tg(e){return Object.assign({},Eg(),e)}function Ag(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var fT=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Tg(typeof t!="number"?t:Ag(t,bi))};function hT(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Cn(n.placement),d=sd(c),u=[Bt,Qt].indexOf(c)>=0,p=u?"height":"width";if(!(!s||!a)){var h=fT(i.padding,n),y=id(s),x=d==="y"?Lt:Bt,g=d==="y"?Jt:Qt,f=n.rects.reference[p]+n.rects.reference[d]-a[d]-n.rects.popper[p],m=a[d]-n.rects.reference[d],S=Si(s),C=S?d==="y"?S.clientHeight||0:S.clientWidth||0:0,b=f/2-m/2,v=h[x],w=C-y[p]-h[g],A=C/2-y[p]/2+b,I=wi(v,A,w),z=d;n.modifiersData[r]=(t={},t[z]=I,t.centerOffset=I-A,t)}}function gT(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)||wg(t.elements.popper,i)&&(t.elements.arrow=i))}const mT={name:"arrow",enabled:!0,phase:"main",fn:hT,effect:gT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function so(e){return e.split("-")[1]}var yT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bT(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:oo(n*i)/i||0,y:oo(r*i)/i||0}}function kg(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,c=e.position,d=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,h=e.isFixed,y=a.x,x=y===void 0?0:y,g=a.y,f=g===void 0?0:g,m=typeof p=="function"?p({x,y:f}):{x,y:f};x=m.x,f=m.y;var S=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),b=Bt,v=Lt,w=window;if(u){var A=Si(n),I="clientHeight",z="clientWidth";if(A===Ht(n)&&(A=nr(n),Hn(A).position!=="static"&&c==="absolute"&&(I="scrollHeight",z="scrollWidth")),A=A,i===Lt||(i===Bt||i===Qt)&&s===xi){v=Jt;var M=h&&A===w&&w.visualViewport?w.visualViewport.height:A[I];f-=M-r.height,f*=d?1:-1}if(i===Bt||(i===Lt||i===Jt)&&s===xi){b=Qt;var L=h&&A===w&&w.visualViewport?w.visualViewport.width:A[z];x-=L-r.width,x*=d?1:-1}}var O=Object.assign({position:c},u&&yT),T=p===!0?bT({x,y:f},Ht(n)):{x,y:f};if(x=T.x,f=T.y,d){var N;return Object.assign({},O,(N={},N[v]=C?"0":"",N[b]=S?"0":"",N.transform=(w.devicePixelRatio||1)<=1?"translate("+x+"px, "+f+"px)":"translate3d("+x+"px, "+f+"px, 0)",N))}return Object.assign({},O,(t={},t[v]=C?f+"px":"",t[b]=S?x+"px":"",t.transform="",t))}function xT(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,c=n.roundOffsets,d=c===void 0?!0:c,u={placement:Cn(t.placement),variation:so(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,kg(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kg(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const vT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xT,data:{}};var Aa={passive:!0};function ST(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,a=r.resize,c=a===void 0?!0:a,d=Ht(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(p){p.addEventListener("scroll",n.update,Aa)}),c&&d.addEventListener("resize",n.update,Aa),function(){s&&u.forEach(function(p){p.removeEventListener("scroll",n.update,Aa)}),c&&d.removeEventListener("resize",n.update,Aa)}}const wT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ST,data:{}};var CT={left:"right",right:"left",bottom:"top",top:"bottom"};function ka(e){return e.replace(/left|right|bottom|top/g,function(t){return CT[t]})}var ET={start:"end",end:"start"};function Pg(e){return e.replace(/start|end/g,function(t){return ET[t]})}function ad(e){var t=Ht(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ld(e){return io(nr(e)).left+ad(e).scrollLeft}function TT(e,t){var n=Ht(e),r=nr(e),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,c=0,d=0;if(i){s=i.width,a=i.height;var u=Sg();(u||!u&&t==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:c+ld(e),y:d}}function AT(e){var t,n=nr(e),r=ad(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Cr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Cr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-r.scrollLeft+ld(e),d=-r.scrollTop;return Hn(i||n).direction==="rtl"&&(c+=Cr(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:c,y:d}}function cd(e){var t=Hn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Og(e){return["html","body","#document"].indexOf(wn(e))>=0?e.ownerDocument.body:Zt(e)&&cd(e)?e:Og(Ta(e))}function Ci(e,t){var n;t===void 0&&(t=[]);var r=Og(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=Ht(r),a=i?[s].concat(s.visualViewport||[],cd(r)?r:[]):r,c=t.concat(a);return i?c:c.concat(Ci(Ta(a)))}function dd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kT(e,t){var n=io(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 Ig(e,t,n){return t===bg?dd(TT(e,n)):wr(t)?kT(t,n):dd(AT(nr(e)))}function PT(e){var t=Ci(Ta(e)),n=["absolute","fixed"].indexOf(Hn(e).position)>=0,r=n&&Zt(e)?Si(e):e;return wr(r)?t.filter(function(i){return wr(i)&&wg(i,r)&&wn(i)!=="body"}):[]}function OT(e,t,n,r){var i=t==="clippingParents"?PT(e):[].concat(t),s=[].concat(i,[n]),a=s[0],c=s.reduce(function(d,u){var p=Ig(e,u,r);return d.top=Cr(p.top,d.top),d.right=Ea(p.right,d.right),d.bottom=Ea(p.bottom,d.bottom),d.left=Cr(p.left,d.left),d},Ig(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Ng(e){var t=e.reference,n=e.element,r=e.placement,i=r?Cn(r):null,s=r?so(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,d;switch(i){case Lt:d={x:a,y:t.y-n.height};break;case Jt:d={x:a,y:t.y+t.height};break;case Qt:d={x:t.x+t.width,y:c};break;case Bt:d={x:t.x-n.width,y:c};break;default:d={x:t.x,y:t.y}}var u=i?sd(i):null;if(u!=null){var p=u==="y"?"height":"width";switch(s){case ro:d[u]=d[u]-(t[p]/2-n[p]/2);break;case xi:d[u]=d[u]+(t[p]/2-n[p]/2);break}}return d}function Ei(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,c=n.boundary,d=c===void 0?GE:c,u=n.rootBoundary,p=u===void 0?bg:u,h=n.elementContext,y=h===void 0?vi:h,x=n.altBoundary,g=x===void 0?!1:x,f=n.padding,m=f===void 0?0:f,S=Tg(typeof m!="number"?m:Ag(m,bi)),C=y===vi?XE:vi,b=e.rects.popper,v=e.elements[g?C:y],w=OT(wr(v)?v:v.contextElement||nr(e.elements.popper),d,p,a),A=io(e.elements.reference),I=Ng({reference:A,element:b,placement:i}),z=dd(Object.assign({},b,I)),M=y===vi?z:A,L={top:w.top-M.top+S.top,bottom:M.bottom-w.bottom+S.bottom,left:w.left-M.left+S.left,right:M.right-w.right+S.right},O=e.modifiersData.offset;if(y===vi&&O){var T=O[i];Object.keys(L).forEach(function(N){var D=[Qt,Jt].indexOf(N)>=0?1:-1,U=[Lt,Jt].indexOf(N)>=0?"y":"x";L[N]+=T[U]*D})}return L}function IT(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,c=n.flipVariations,d=n.allowedAutoPlacements,u=d===void 0?vg:d,p=so(r),h=p?c?xg:xg.filter(function(g){return so(g)===p}):bi,y=h.filter(function(g){return u.indexOf(g)>=0});y.length===0&&(y=h);var x=y.reduce(function(g,f){return g[f]=Ei(e,{placement:f,boundary:i,rootBoundary:s,padding:a})[Cn(f)],g},{});return Object.keys(x).sort(function(g,f){return x[g]-x[f]})}function NT(e){if(Cn(e)===nd)return[];var t=ka(e);return[Pg(e),t,Pg(t)]}function FT(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,c=a===void 0?!0:a,d=n.fallbackPlacements,u=n.padding,p=n.boundary,h=n.rootBoundary,y=n.altBoundary,x=n.flipVariations,g=x===void 0?!0:x,f=n.allowedAutoPlacements,m=t.options.placement,S=Cn(m),C=S===m,b=d||(C||!g?[ka(m)]:NT(m)),v=[m].concat(b).reduce(function(X,ee){return X.concat(Cn(ee)===nd?IT(t,{placement:ee,boundary:p,rootBoundary:h,padding:u,flipVariations:g,allowedAutoPlacements:f}):ee)},[]),w=t.rects.reference,A=t.rects.popper,I=new Map,z=!0,M=v[0],L=0;L<v.length;L++){var O=v[L],T=Cn(O),N=so(O)===ro,D=[Lt,Jt].indexOf(T)>=0,U=D?"width":"height",F=Ei(t,{placement:O,boundary:p,rootBoundary:h,altBoundary:y,padding:u}),_=D?N?Qt:Bt:N?Jt:Lt;w[U]>A[U]&&(_=ka(_));var k=ka(_),V=[];if(s&&V.push(F[T]<=0),c&&V.push(F[_]<=0,F[k]<=0),V.every(function(X){return X})){M=O,z=!1;break}I.set(O,V)}if(z)for(var $=g?3:1,W=function(ee){var te=v.find(function(ie){var ce=I.get(ie);if(ce)return ce.slice(0,ee).every(function(ae){return ae})});if(te)return M=te,"break"},q=$;q>0;q--){var J=W(q);if(J==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const MT={name:"flip",enabled:!0,phase:"main",fn:FT,requiresIfExists:["offset"],data:{_skip:!1}};function Fg(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 Mg(e){return[Lt,Qt,Jt,Bt].some(function(t){return e[t]>=0})}function DT(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=Ei(t,{elementContext:"reference"}),c=Ei(t,{altBoundary:!0}),d=Fg(a,r),u=Fg(c,i,s),p=Mg(d),h=Mg(u);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const _T={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:DT};function $T(e,t,n){var r=Cn(e),i=[Bt,Lt].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],c=s[1];return a=a||0,c=(c||0)*i,[Bt,Qt].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function zT(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,a=vg.reduce(function(p,h){return p[h]=$T(h,t.rects,s),p},{}),c=a[t.placement],d=c.x,u=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const LT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zT};function BT(e){var t=e.state,n=e.name;t.modifiersData[n]=Ng({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const jT={name:"popperOffsets",enabled:!0,phase:"read",fn:BT,data:{}};function WT(e){return e==="x"?"y":"x"}function VT(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,c=a===void 0?!1:a,d=n.boundary,u=n.rootBoundary,p=n.altBoundary,h=n.padding,y=n.tether,x=y===void 0?!0:y,g=n.tetherOffset,f=g===void 0?0:g,m=Ei(t,{boundary:d,rootBoundary:u,padding:h,altBoundary:p}),S=Cn(t.placement),C=so(t.placement),b=!C,v=sd(S),w=WT(v),A=t.modifiersData.popperOffsets,I=t.rects.reference,z=t.rects.popper,M=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,L=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(A){if(s){var N,D=v==="y"?Lt:Bt,U=v==="y"?Jt:Qt,F=v==="y"?"height":"width",_=A[v],k=_+m[D],V=_-m[U],$=x?-z[F]/2:0,W=C===ro?I[F]:z[F],q=C===ro?-z[F]:-I[F],J=t.elements.arrow,X=x&&J?id(J):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Eg(),te=ee[D],ie=ee[U],ce=wi(0,I[F],X[F]),ae=b?I[F]/2-$-ce-te-L.mainAxis:W-ce-te-L.mainAxis,oe=b?-I[F]/2+$+ce+ie+L.mainAxis:q+ce+ie+L.mainAxis,pe=t.elements.arrow&&Si(t.elements.arrow),H=pe?v==="y"?pe.clientTop||0:pe.clientLeft||0:0,ge=(N=O?.[v])!=null?N:0,ue=_+ae-ge-H,me=_+oe-ge,ze=wi(x?Ea(k,ue):k,_,x?Cr(V,me):V);A[v]=ze,T[v]=ze-_}if(c){var we,ye=v==="x"?Lt:Bt,_e=v==="x"?Jt:Qt,Le=A[w],Ne=w==="y"?"height":"width",fe=Le+m[ye],je=Le-m[_e],Oe=[Lt,Bt].indexOf(S)!==-1,se=(we=O?.[w])!=null?we:0,re=Oe?fe:Le-I[Ne]-z[Ne]-se+L.altAxis,G=Oe?Le+I[Ne]+z[Ne]-se-L.altAxis:je,he=x&&Oe?uT(re,Le,G):wi(x?re:fe,Le,x?G:je);A[w]=he,T[w]=he-Le}t.modifiersData[r]=T}}const UT={name:"preventOverflow",enabled:!0,phase:"main",fn:VT,requiresIfExists:["offset"]};function HT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function RT(e){return e===Ht(e)||!Zt(e)?ad(e):HT(e)}function qT(e){var t=e.getBoundingClientRect(),n=oo(t.width)/e.offsetWidth||1,r=oo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function YT(e,t,n){n===void 0&&(n=!1);var r=Zt(t),i=Zt(t)&&qT(t),s=nr(t),a=io(e,i,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((wn(t)!=="body"||cd(s))&&(c=RT(t)),Zt(t)?(d=io(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=ld(s))),{x:a.left+c.scrollLeft-d.x,y:a.top+c.scrollTop-d.y,width:a.width,height:a.height}}function KT(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(c){if(!n.has(c)){var d=t.get(c);d&&i(d)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function GT(e){var t=KT(e);return sT.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function XT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function JT(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 Dg={placement:"bottom",modifiers:[],strategy:"absolute"};function _g(){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 QT(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?Dg:i;return function(c,d,u){u===void 0&&(u=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Dg,s),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},h=[],y=!1,x={state:p,setOptions:function(S){var C=typeof S=="function"?S(p.options):S;f(),p.options=Object.assign({},s,p.options,C),p.scrollParents={reference:wr(c)?Ci(c):c.contextElement?Ci(c.contextElement):[],popper:Ci(d)};var b=GT(JT([].concat(r,p.options.modifiers)));return p.orderedModifiers=b.filter(function(v){return v.enabled}),g(),x.update()},forceUpdate:function(){if(!y){var S=p.elements,C=S.reference,b=S.popper;if(_g(C,b)){p.rects={reference:YT(C,Si(b),p.options.strategy==="fixed"),popper:id(b)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(L){return p.modifiersData[L.name]=Object.assign({},L.data)});for(var v=0;v<p.orderedModifiers.length;v++){if(p.reset===!0){p.reset=!1,v=-1;continue}var w=p.orderedModifiers[v],A=w.fn,I=w.options,z=I===void 0?{}:I,M=w.name;typeof A=="function"&&(p=A({state:p,options:z,name:M,instance:x})||p)}}}},update:XT(function(){return new Promise(function(m){x.forceUpdate(),m(p)})}),destroy:function(){f(),y=!0}};if(!_g(c,d))return x;x.setOptions(u).then(function(m){!y&&u.onFirstUpdate&&u.onFirstUpdate(m)});function g(){p.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:p,name:S,instance:x,options:b}),A=function(){};h.push(w||A)}})}function f(){h.forEach(function(m){return m()}),h=[]}return x}}var ZT=[wT,jT,vT,cT,LT,MT,UT,mT,_T],eA=QT({defaultModifiers:ZT});function En(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...s}=e,a=i?{}:lg(n,r),{props:c,internalRef:d}=dg({...s,externalSlotProps:a}),u=ut(d,a?.ref,e.additionalProps?.ref);return ag(t,{...c,ref:u},r)}function Er(e){return parseInt(E.version,10)>=19?e?.props?.ref||null:e?.ref||null}function tA(e){return typeof e=="function"?e():e}const Ti=E.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[a,c]=E.useState(null),d=ut(E.isValidElement(r)?Er(r):null,n);if(Gt(()=>{s||c(tA(i)||document.body)},[i,s]),Gt(()=>{if(a&&!s)return Xh(n,a),()=>{Xh(n,null)}},[n,a,s]),s){if(E.isValidElement(r)){const u={ref:d};return E.cloneElement(r,u)}return r}return a&&py.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(Ti.propTypes={children:o.node,container:o.oneOfType([Un,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(Ti.propTypes=$c(Ti.propTypes));function nA(e){return Ce("MuiPopper",e)}Ee("MuiPopper",["root"]);function rA(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 Pa(e){return typeof e=="function"?e():e}function Oa(e){return e.nodeType!==void 0}function oA(e){return!Oa(e)}const iA=e=>{const{classes:t}=e;return Te({root:["root"]},nA,t)},sA={},aA=E.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:s,disablePortal:a,modifiers:c,open:d,placement:u,popperOptions:p,popperRef:h,slotProps:y={},slots:x={},TransitionProps:g,ownerState:f,...m}=t,S=E.useRef(null),C=ut(S,n),b=E.useRef(null),v=ut(b,h),w=E.useRef(v);Gt(()=>{w.current=v},[v]),E.useImperativeHandle(h,()=>b.current,[]);const A=rA(u,s),[I,z]=E.useState(A),[M,L]=E.useState(Pa(r));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{r&&L(Pa(r))},[r]),Gt(()=>{if(!M||!d)return;const U=k=>{z(k.placement)};if(process.env.NODE_ENV!=="production"&&M&&Oa(M)&&M.nodeType===1){const k=M.getBoundingClientRect();process.env.NODE_ENV!=="test"&&k.top===0&&k.left===0&&k.right===0&&k.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
|
|
166
|
-
`))}else if(!t||typeof t.getBoundingClientRect!="function"||
|
|
167
|
-
`))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([
|
|
168
|
-
`&&(v.value+=" ");const
|
|
169
|
-
`),
|
|
170
|
-
`))},[]),pe=ut(ae,v,b.ref,oe),[H,ge]=E.useState(!1),ue=Tn();process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(ue)return ue.registerEffect()},[ue]);const me=rr({props:r,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=ue?ue.focused:H,E.useEffect(()=>{!ue&&y&&H&&(ge(!1),L&&L())},[ue,y,H,L]);const ze=ue&&ue.onFilled,we=ue&&ue.onEmpty,ye=E.useCallback(Y=>{Fa(Y)?ze&&ze():we&&we()},[ze,we]);Gt(()=>{ce&&ye({value:ie})},[ie,ye,ce]);const _e=Y=>{N&&N(Y),b.onFocus&&b.onFocus(Y),ue&&ue.onFocus?ue.onFocus(Y):ge(!0)},Le=Y=>{L&&L(Y),b.onBlur&&b.onBlur(Y),ue&&ue.onBlur?ue.onBlur(Y):ge(!1)},Ne=(Y,...ve)=>{if(!ce){const de=Y.target||ae.current;if(de==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.":hn(1));ye({value:de.value})}b.onChange&&b.onChange(Y,...ve),O&&O(Y,...ve)};E.useEffect(()=>{ye(ae.current)},[]);const fe=Y=>{ae.current&&Y.currentTarget===Y.target&&ae.current.focus(),T&&T(Y)};let je=C,Oe=b;z&&je==="input"&&(V?(process.env.NODE_ENV!=="production"&&(I||A)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Oe={type:void 0,minRows:V,maxRows:V,...Oe}):Oe={type:void 0,maxRows:A,minRows:I,...Oe},je=Lg);const se=Y=>{ye(Y.animationName==="mui-auto-fill-cancel"?ae.current:{value:"x"})};E.useEffect(()=>{ue&&ue.setAdornedStart(!!J)},[ue,J]);const re={...r,color:me.color||"primary",disabled:me.disabled,endAdornment:g,error:me.error,focused:me.focused,formControl:ue,fullWidth:m,hiddenLabel:me.hiddenLabel,multiline:z,size:me.size,startAdornment:J,type:X},G=fA(re),he=q.root||u.Root||_a,xe=W.root||p.root||{},Q=q.input||u.Input||$a;return Oe={...Oe,...W.input??p.input},l.jsxs(E.Fragment,{children:[!x&&typeof Wg=="function"&&(jg||(jg=l.jsx(Wg,{}))),l.jsxs(he,{...xe,ref:n,onClick:fe,...te,...!tr(he)&&{ownerState:{...re,...xe.ownerState}},className:be(G.root,xe.className,c,_&&"MuiInputBase-readOnly"),children:[J,l.jsx(Na.Provider,{value:null,children:l.jsx(Q,{"aria-invalid":me.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:h,disabled:me.disabled,id:S,onAnimationStart:se,name:M,placeholder:F,readOnly:_,required:me.required,rows:V,value:ie,onKeyDown:D,onKeyUp:U,type:X,...Oe,...!tr(Q)&&{as:je,ownerState:{...re,...Oe.ownerState}},ref:pe,className:be(G.input,Oe.className,_&&"MuiInputBase-readOnly"),onBlur:Le,onChange:Ne,onFocus:_e})}),g,k?k({...me,startAdornment:J}):null]})]})});process.env.NODE_ENV!=="production"&&(Ai.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:Jc,inputProps:o.object,inputRef:Ft,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 hA(e){return Ce("MuiInput",e)}const ki={...ao,...Ee("MuiInput",["root","underline","input"])};function gA(e){return Ce("MuiOutlinedInput",e)}const An={...ao,...Ee("MuiOutlinedInput",["root","notchedOutline","input"])};function mA(e){return Ce("MuiFilledInput",e)}const Tr={...ao,...Ee("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},yA=ot(l.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),bA=ot(l.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 xA(e){return Ce("MuiAvatar",e)}Ee("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const vA=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Te({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},xA,t)},SA=Z("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Se(({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]})}}}]}))),wA=Z("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),CA=Z(bA,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function EA({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,s]=E.useState(!1);return E.useEffect(()=>{if(!n&&!r)return;s(!1);let a=!0;const c=new Image;return c.onload=()=>{a&&s("loaded")},c.onerror=()=>{a&&s("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=n,r&&(c.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const Ar=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiAvatar"}),{alt:i,children:s,className:a,component:c="div",slots:d={},slotProps:u={},imgProps:p,sizes:h,src:y,srcSet:x,variant:g="circular",...f}=r;let m=null;const S={...r,component:c,variant:g},C=EA({...p,...typeof u.img=="function"?u.img(S):u.img,src:y,srcSet:x}),b=y||x,v=b&&C!=="error";S.colorDefault=!v,delete S.ownerState;const w=vA(S),[A,I]=Pe("root",{ref:n,className:be(w.root,a),elementType:SA,externalForwardedProps:{slots:d,slotProps:u,component:c,...f},ownerState:S}),[z,M]=Pe("img",{className:w.img,elementType:wA,externalForwardedProps:{slots:d,slotProps:{img:{...p,...u.img}}},additionalProps:{alt:i,src:y,srcSet:x,sizes:h},ownerState:S}),[L,O]=Pe("fallback",{className:w.fallback,elementType:CA,externalForwardedProps:{slots:d,slotProps:u},shouldForwardComponentProp:!0,ownerState:S});return v?m=l.jsx(z,{...M}):s||s===0?m=s:b&&i?m=i[0]:m=l.jsx(L,{...O}),l.jsx(A,{...I,children:m})});process.env.NODE_ENV!=="production"&&(Ar.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 TA(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Vg(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let c;const d=s.type;return typeof d=="function"&&!TA(d)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const kr=ln(o.element,Vg);kr.isRequired=ln(o.element.isRequired,Vg);const AA={entering:{opacity:1},entered:{opacity:1}},za=E.forwardRef(function(t,n){const r=vn(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:c,easing:d,in:u,onEnter:p,onEntered:h,onEntering:y,onExit:x,onExited:g,onExiting:f,style:m,timeout:S=i,TransitionComponent:C=Sn,...b}=t,v=E.useRef(null),w=ut(v,Er(c),n),A=D=>U=>{if(D){const F=v.current;U===void 0?D(F):D(F,U)}},I=A(y),z=A((D,U)=>{sg(D);const F=Sa({style:m,timeout:S,easing:d},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",F),D.style.transition=r.transitions.create("opacity",F),p&&p(D,U)}),M=A(h),L=A(f),O=A(D=>{const U=Sa({style:m,timeout:S,easing:d},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",U),D.style.transition=r.transitions.create("opacity",U),x&&x(D)}),T=A(g),N=D=>{s&&s(v.current,D)};return l.jsx(C,{appear:a,in:u,nodeRef:v,onEnter:z,onEntered:M,onEntering:I,onExit:O,onExited:T,onExiting:L,addEndListener:N,timeout:S,...b,children:(D,{ownerState:U,...F})=>E.cloneElement(c,{style:{opacity:0,visibility:D==="exited"&&!u?"hidden":void 0,...AA[D],...m,...c.props.style},ref:w,...F})})});process.env.NODE_ENV!=="production"&&(za.propTypes={addEndListener:o.func,appear:o.bool,children:kr.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 kA(e){return Ce("MuiBackdrop",e)}Ee("MuiBackdrop",["root","invisible"]);const PA=e=>{const{classes:t,invisible:n}=e;return Te({root:["root",n&&"invisible"]},kA,t)},OA=Z("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"}}]}),ud=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:a="div",invisible:c=!1,open:d,components:u={},componentsProps:p={},slotProps:h={},slots:y={},TransitionComponent:x,transitionDuration:g,...f}=r,m={...r,component:a,invisible:c},S=PA(m),C={transition:x,root:u.Root,...y},b={...p,...h},v={component:a,slots:C,slotProps:b},[w,A]=Pe("root",{elementType:OA,externalForwardedProps:v,className:be(S.root,s),ownerState:m}),[I,z]=Pe("transition",{elementType:za,externalForwardedProps:v,ownerState:m});return l.jsx(I,{in:d,timeout:g,...f,...z,children:l.jsx(w,{"aria-hidden":!0,...A,classes:S,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(ud.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 IA=Ee("MuiBox",["root"]),NA=Yh(),P=$w({themeId:Zo,defaultTheme:NA,defaultClassName:IA.root,generateClassName:yh.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 FA(e){return Ce("MuiButton",e)}const Pr=Ee("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"]),Ug=E.createContext({});process.env.NODE_ENV!=="production"&&(Ug.displayName="ButtonGroupContext");const Hg=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(Hg.displayName="ButtonGroupButtonContext");const MA=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:s,loading:a,loadingPosition:c,classes:d}=e,u={root:["root",a&&"loading",s,`${s}${ne(t)}`,`size${ne(i)}`,`${s}Size${ne(i)}`,`color${ne(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${ne(c)}`],startIcon:["icon","startIcon",`iconSize${ne(i)}`],endIcon:["icon","endIcon",`iconSize${ne(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=Te(u,FA,d);return{...d,...p}},Rg=[{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}}}],DA=Z(mi,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ne(n.color)}`],t[`size${ne(n.size)}`],t[`${n.variant}Size${ne(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Se(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Pr.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Pr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Pr.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Pr.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(ct()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Pr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Pr.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Pr.loading}`]:{color:"transparent"}}}]}})),_A=Z("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ne(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}},...Rg]})),$A=Z("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ne(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}},...Rg]})),zA=Z("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}}]})),qg=Z("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Ke=E.forwardRef(function(t,n){const r=E.useContext(Ug),i=E.useContext(Hg),s=di(r,t),a=Ae({props:s,name:"MuiButton"}),{children:c,color:d="primary",component:u="button",className:p,disabled:h=!1,disableElevation:y=!1,disableFocusRipple:x=!1,endIcon:g,focusVisibleClassName:f,fullWidth:m=!1,id:S,loading:C=null,loadingIndicator:b,loadingPosition:v="center",size:w="medium",startIcon:A,type:I,variant:z="text",...M}=a,L=mr(S),O=b??l.jsx(yi,{"aria-labelledby":L,color:"inherit",size:16}),T={...a,color:d,component:u,disabled:h,disableElevation:y,disableFocusRipple:x,fullWidth:m,loading:C,loadingIndicator:O,loadingPosition:v,size:w,type:I,variant:z},N=MA(T),D=(A||C&&v==="start")&&l.jsx(_A,{className:N.startIcon,ownerState:T,children:A||l.jsx(qg,{className:N.loadingIconPlaceholder,ownerState:T})}),U=(g||C&&v==="end")&&l.jsx($A,{className:N.endIcon,ownerState:T,children:g||l.jsx(qg,{className:N.loadingIconPlaceholder,ownerState:T})}),F=i||"",_=typeof C=="boolean"?l.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:C&&l.jsx(zA,{className:N.loadingIndicator,ownerState:T,children:O})}):null;return l.jsxs(DA,{ownerState:T,className:be(r.className,N.root,p,F),component:u,disabled:h||C,focusRipple:!x,focusVisibleClassName:be(N.focusVisible,f),ref:n,type:I,id:C?L:S,...M,classes:N,children:[D,v!=="end"&&_,c,v==="end"&&_,U]})});process.env.NODE_ENV!=="production"&&(Ke.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function LA(e){return Ce("MuiCard",e)}Ee("MuiCard",["root"]);const BA=e=>{const{classes:t}=e;return Te({root:["root"]},LA,t)},jA=Z(cn,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),La=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiCard"}),{className:i,raised:s=!1,...a}=r,c={...r,raised:s},d=BA(c);return l.jsx(jA,{className:be(d.root,i),elevation:s?8:void 0,ref:n,ownerState:c,...a})});process.env.NODE_ENV!=="production"&&(La.propTypes={children:o.node,classes:o.object,className:o.string,raised:ln(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 WA(e){return Ce("PrivateSwitchBase",e)}Ee("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const VA=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,s={root:["root",n&&"checked",r&&"disabled",i&&`edge${ne(i)}`],input:["input"]};return Te(s,WA,t)},UA=Z(mi,{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}}]}),HA=Z("input",{name:"MuiSwitchBase",shouldForwardProp:Tt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ba=E.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:s,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:u=!1,icon:p,id:h,inputProps:y,inputRef:x,name:g,onBlur:f,onChange:m,onFocus:S,readOnly:C,required:b=!1,tabIndex:v,type:w,value:A,slots:I={},slotProps:z={},...M}=t,[L,O]=Zr({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),T=Tn(),N=ee=>{S&&S(ee),T&&T.onFocus&&T.onFocus(ee)},D=ee=>{f&&f(ee),T&&T.onBlur&&T.onBlur(ee)},U=ee=>{if(ee.nativeEvent.defaultPrevented)return;const te=ee.target.checked;O(te),m&&m(ee,te)};let F=c;T&&typeof F>"u"&&(F=T.disabled);const _=w==="checkbox"||w==="radio",k={...t,checked:L,disabled:F,disableFocusRipple:d,edge:u},V=VA(k),$={slots:I,slotProps:{input:y,...z}},[W,q]=Pe("root",{ref:n,elementType:UA,className:V.root,shouldForwardComponentProp:!0,externalForwardedProps:{...$,component:"span",...M},getSlotProps:ee=>({...ee,onFocus:te=>{ee.onFocus?.(te),N(te)},onBlur:te=>{ee.onBlur?.(te),D(te)}}),ownerState:k,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:F,role:void 0,tabIndex:null}}),[J,X]=Pe("input",{ref:x,elementType:HA,className:V.input,externalForwardedProps:$,getSlotProps:ee=>({...ee,onChange:te=>{ee.onChange?.(te),U(te)}}),ownerState:k,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:F,id:_?h:void 0,name:g,readOnly:C,required:b,tabIndex:v,type:w,...w==="checkbox"&&A===void 0?{}:{value:A}}});return l.jsxs(W,{...q,children:[l.jsx(J,{...X}),L?s:p]})});process.env.NODE_ENV!=="production"&&(Ba.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:Ft,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 RA=ot(l.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"),qA=ot(l.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"),YA=ot(l.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 KA(e){return Ce("MuiCheckbox",e)}const fd=Ee("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),GA=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,s={root:["root",n&&"indeterminate",`color${ne(r)}`,`size${ne(i)}`]},a=Te(s,KA,t);return{...t,...a}},XA=Z(Ba,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ne(n.size)}`],n.color!=="default"&&t[`color${ne(n.color)}`]]}})(Se(({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(ct()).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(ct()).map(([t])=>({props:{color:t},style:{[`&.${fd.checked}, &.${fd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${fd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),JA=l.jsx(qA,{}),QA=l.jsx(RA,{}),ZA=l.jsx(YA,{}),yt=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiCheckbox"}),{checkedIcon:i=JA,color:s="primary",icon:a=QA,indeterminate:c=!1,indeterminateIcon:d=ZA,inputProps:u,size:p="medium",disableRipple:h=!1,className:y,slots:x={},slotProps:g={},...f}=r,m=c?d:a,S=c?d:i,C={...r,disableRipple:h,color:s,indeterminate:c,size:p},b=GA(C),v=g.input??u,[w,A]=Pe("root",{ref:n,elementType:XA,className:be(b.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:g,...f},ownerState:C,additionalProps:{type:"checkbox",icon:E.cloneElement(m,{fontSize:m.props.fontSize??p}),checkedIcon:E.cloneElement(S,{fontSize:S.props.fontSize??p}),disableRipple:h,slots:x,slotProps:{input:Jh(typeof v=="function"?v(C):v,{"data-indeterminate":c})}}});return l.jsx(w,{...A,classes:b})});process.env.NODE_ENV!=="production"&&(yt.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 Yg(e){return e.substring(2).toLowerCase()}function ek(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function ja(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=e,a=E.useRef(!1),c=E.useRef(null),d=E.useRef(!1),u=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const p=ut(Er(t),c),h=Nt(g=>{const f=u.current;u.current=!1;const m=gt(c.current);if(!d.current||!c.current||"clientX"in g&&ek(g,m))return;if(a.current){a.current=!1;return}let S;g.composedPath?S=g.composedPath().includes(c.current):S=!m.documentElement.contains(g.target)||c.current.contains(g.target),!S&&(n||!f)&&i(g)}),y=g=>f=>{u.current=!0;const m=t.props[g];m&&m(f)},x={ref:p};return s!==!1&&(x[s]=y(s)),E.useEffect(()=>{if(s!==!1){const g=Yg(s),f=gt(c.current),m=()=>{a.current=!0};return f.addEventListener(g,h),f.addEventListener("touchmove",m),()=>{f.removeEventListener(g,h),f.removeEventListener("touchmove",m)}}},[h,s]),r!==!1&&(x[r]=y(r)),E.useEffect(()=>{if(r!==!1){const g=Yg(r),f=gt(c.current);return f.addEventListener(g,h),()=>{f.removeEventListener(g,h)}}},[h,r]),E.cloneElement(t,x)}process.env.NODE_ENV!=="production"&&(ja.propTypes={children:kr.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"&&(ja.propTypes=$c(ja.propTypes));const or=hC({createStyledComponent:Z("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ne(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ae({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(or.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 Kg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function tk(e){const t=gt(e);return t.body===e?Wn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Pi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Gg(e){return parseInt(Wn(e).getComputedStyle(e).paddingRight,10)||0}function nk(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 Xg(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,a=>{const c=!s.includes(a),d=!nk(a);c&&d&&Pi(a,i)})}function hd(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function rk(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(tk(r)){const a=Kg(Wn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Gg(r)+a}px`;const c=gt(r).querySelectorAll(".mui-fixed");[].forEach.call(c,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Gg(d)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=gt(r).body;else{const a=r.parentElement,c=Wn(r);s=a?.nodeName==="HTML"&&c.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:c})=>{s?a.style.setProperty(c,s):a.style.removeProperty(c)})}}function ok(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class ik{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&&Pi(t.modalRef,!1);const i=ok(n);Xg(n,t.mount,t.modalRef,i,!0);const s=hd(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=hd(this.containers,s=>s.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=rk(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=hd(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&&Pi(t.modalRef,n),Xg(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&&Pi(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Oi(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const sk=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ak(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 lk(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 ck(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||lk(e))}function dk(e){const t=[],n=[];return Array.from(e.querySelectorAll(sk)).forEach((r,i)=>{const s=ak(r);s===-1||!ck(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 pk(){return!0}function Wa(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=dk,isEnabled:a=pk,open:c}=e,d=E.useRef(!1),u=E.useRef(null),p=E.useRef(null),h=E.useRef(null),y=E.useRef(null),x=E.useRef(!1),g=E.useRef(null),f=ut(Er(t),g),m=E.useRef(null);E.useEffect(()=>{!c||!g.current||(x.current=!n)},[n,c]),E.useEffect(()=>{if(!c||!g.current)return;const b=gt(g.current),v=Oi(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||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[c]),E.useEffect(()=>{if(!c||!g.current)return;const b=gt(g.current),v=Oi(b),w=z=>{m.current=z,!(r||!a()||z.key!=="Tab")&&v===g.current&&z.shiftKey&&(d.current=!0,p.current&&p.current.focus())},A=()=>{const z=g.current;if(z===null)return;const M=Oi(b);if(!b.hasFocus()||!a()||d.current){d.current=!1;return}if(z.contains(M)||r&&M!==u.current&&M!==p.current)return;if(M!==y.current)y.current=null;else if(y.current!==null)return;if(!x.current)return;let L=[];if((M===u.current||M===p.current)&&(L=s(g.current)),L.length>0){const O=!!(m.current?.shiftKey&&m.current?.key==="Tab"),T=L[0],N=L[L.length-1];typeof T!="string"&&typeof N!="string"&&(O?N.focus():T.focus())}else z.focus()};b.addEventListener("focusin",A),b.addEventListener("keydown",w,!0);const I=setInterval(()=>{const z=Oi(b);z&&z.tagName==="BODY"&&A()},50);return()=>{clearInterval(I),b.removeEventListener("focusin",A),b.removeEventListener("keydown",w,!0)}},[n,r,i,a,c,s]);const S=b=>{h.current===null&&(h.current=b.relatedTarget),x.current=!0,y.current=b.target;const v=t.props.onFocus;v&&v(b)},C=b=>{h.current===null&&(h.current=b.relatedTarget),x.current=!0};return l.jsxs(E.Fragment,{children:[l.jsx("div",{tabIndex:c?0:-1,onFocus:C,ref:u,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:f,onFocus:S}),l.jsx("div",{tabIndex:c?0:-1,onFocus:C,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Wa.propTypes={children:kr,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Wa.propTypes=$c(Wa.propTypes));function uk(e){return typeof e=="function"?e():e}function fk(e){return e?e.props.hasOwnProperty("in"):!1}const Jg=()=>{},Va=new ik;function hk(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:c,onClose:d,open:u,rootRef:p}=e,h=E.useRef({}),y=E.useRef(null),x=E.useRef(null),g=ut(x,p),[f,m]=E.useState(!u),S=fk(c);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const b=()=>gt(y.current),v=()=>(h.current.modalRef=x.current,h.current.mount=y.current,h.current),w=()=>{Va.mount(v(),{disableScrollLock:r}),x.current&&(x.current.scrollTop=0)},A=Nt(()=>{const U=uk(t)||b().body;Va.add(v(),U),x.current&&w()}),I=()=>Va.isTopModal(v()),z=Nt(U=>{y.current=U,U&&(u&&I()?w():x.current&&Pi(x.current,C))}),M=E.useCallback(()=>{Va.remove(v(),C)},[C]);E.useEffect(()=>()=>{M()},[M]),E.useEffect(()=>{u?A():(!S||!i)&&M()},[u,M,S,i,A]);const L=U=>F=>{U.onKeyDown?.(F),!(F.key!=="Escape"||F.which===229||!I())&&(n||(F.stopPropagation(),d&&d(F,"escapeKeyDown")))},O=U=>F=>{U.onClick?.(F),F.target===F.currentTarget&&d&&d(F,"backdropClick")};return{getRootProps:(U={})=>{const F=Sr(e);delete F.onTransitionEnter,delete F.onTransitionExited;const _={...F,...U};return{role:"presentation",..._,onKeyDown:L(_),ref:g}},getBackdropProps:(U={})=>{const F=U;return{"aria-hidden":!0,...F,onClick:O(F),open:u}},getTransitionProps:()=>{const U=()=>{m(!1),s&&s()},F=()=>{m(!0),a&&a(),i&&M()};return{onEnter:Rc(U,c?.props.onEnter??Jg),onExited:Rc(F,c?.props.onExited??Jg)}},rootRef:g,portalRef:z,isTopModal:I,exited:f,hasTransition:S}}function gk(e){return Ce("MuiModal",e)}Ee("MuiModal",["root","hidden","backdrop"]);const mk=e=>{const{open:t,exited:n,classes:r}=e;return Te({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},gk,r)},yk=Z("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Se(({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"}}]}))),bk=Z(ud,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),lo=E.forwardRef(function(t,n){const r=Ae({name:"MuiModal",props:t}),{BackdropComponent:i=bk,BackdropProps:s,classes:a,className:c,closeAfterTransition:d=!1,children:u,container:p,component:h,components:y={},componentsProps:x={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:b=!1,hideBackdrop:v=!1,keepMounted:w=!1,onClose:A,onTransitionEnter:I,onTransitionExited:z,open:M,slotProps:L={},slots:O={},theme:T,...N}=r,D={...r,closeAfterTransition:d,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:S,disableRestoreFocus:C,disableScrollLock:b,hideBackdrop:v,keepMounted:w},{getRootProps:U,getBackdropProps:F,getTransitionProps:_,portalRef:k,isTopModal:V,exited:$,hasTransition:W}=hk({...D,rootRef:n}),q={...D,exited:$},J=mk(q),X={};if(u.props.tabIndex===void 0&&(X.tabIndex="-1"),W){const{onEnter:oe,onExited:pe}=_();X.onEnter=oe,X.onExited=pe}const ee={slots:{root:y.Root,backdrop:y.Backdrop,...O},slotProps:{...x,...L}},[te,ie]=Pe("root",{ref:n,elementType:yk,externalForwardedProps:{...ee,...N,component:h},getSlotProps:U,ownerState:q,className:be(c,J?.root,!q.open&&q.exited&&J?.hidden)}),[ce,ae]=Pe("backdrop",{ref:s?.ref,elementType:i,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:oe=>F({...oe,onClick:pe=>{oe?.onClick&&oe.onClick(pe)}}),className:be(s?.className,J?.backdrop),ownerState:q});return!w&&!M&&(!W||$)?null:l.jsx(Ti,{ref:k,container:p,disablePortal:S,children:l.jsxs(te,{...ie,children:[!v&&i?l.jsx(ce,{...ae}):null,l.jsx(Wa,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:C,isEnabled:V,open:M,children:E.cloneElement(u,X)})]})})});process.env.NODE_ENV!=="production"&&(lo.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:kr.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([Un,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 xk(e){return Ce("MuiDialog",e)}const gd=Ee("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),md=E.createContext({});process.env.NODE_ENV!=="production"&&(md.displayName="DialogContext");const vk=Z(ud,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Sk=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${ne(n)}`],paper:["paper",`paperScroll${ne(n)}`,`paperWidth${ne(String(r))}`,i&&"paperFullWidth",s&&"paperFullScreen"]};return Te(a,xk,t)},wk=Z(lo,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Ck=Z("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ne(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"}}}]}),Ek=Z(cn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ne(n.scroll)}`],t[`paperWidth${ne(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Se(({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)`,[`&.${gd.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}`,[`&.${gd.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,[`&.${gd.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),co=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiDialog"}),i=vn(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":c,"aria-modal":d=!0,BackdropComponent:u,BackdropProps:p,children:h,className:y,disableEscapeKeyDown:x=!1,fullScreen:g=!1,fullWidth:f=!1,maxWidth:m="sm",onClick:S,onClose:C,open:b,PaperComponent:v=cn,PaperProps:w={},scroll:A="paper",slots:I={},slotProps:z={},TransitionComponent:M=za,transitionDuration:L=s,TransitionProps:O,...T}=r,N={...r,disableEscapeKeyDown:x,fullScreen:g,fullWidth:f,maxWidth:m,scroll:A},D=Sk(N),U=E.useRef(),F=ge=>{U.current=ge.target===ge.currentTarget},_=ge=>{S&&S(ge),U.current&&(U.current=null,C&&C(ge,"backdropClick"))},k=mr(c),V=E.useMemo(()=>({titleId:k}),[k]),$={transition:M,...I},W={transition:O,paper:w,backdrop:p,...z},q={slots:$,slotProps:W},[J,X]=Pe("root",{elementType:wk,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:N,className:be(D.root,y),ref:n}),[ee,te]=Pe("backdrop",{elementType:vk,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:N}),[ie,ce]=Pe("paper",{elementType:Ek,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:N,className:be(D.paper,w.className)}),[ae,oe]=Pe("container",{elementType:Ck,externalForwardedProps:q,ownerState:N,className:D.container}),[pe,H]=Pe("transition",{elementType:za,externalForwardedProps:q,ownerState:N,additionalProps:{appear:!0,in:b,timeout:L,role:"presentation"}});return l.jsx(J,{closeAfterTransition:!0,slots:{backdrop:ee},slotProps:{backdrop:{transitionDuration:L,as:u,...te}},disableEscapeKeyDown:x,onClose:C,open:b,onClick:_,...X,...T,children:l.jsx(pe,{...H,children:l.jsx(ae,{onMouseDown:F,...oe,children:l.jsx(ie,{as:v,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":k,"aria-modal":d,...ce,children:l.jsx(md.Provider,{value:V,children:h})})})})})});process.env.NODE_ENV!=="production"&&(co.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 Tk(e){return Ce("MuiDialogActions",e)}Ee("MuiDialogActions",["root","spacing"]);const Ak=e=>{const{classes:t,disableSpacing:n}=e;return Te({root:["root",!n&&"spacing"]},Tk,t)},kk=Z("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}}}]}),yd=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:s=!1,...a}=r,c={...r,disableSpacing:s},d=Ak(c);return l.jsx(kk,{className:be(d.root,i),ownerState:c,ref:n,...a})});process.env.NODE_ENV!=="production"&&(yd.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 Pk(e){return Ce("MuiDialogContent",e)}Ee("MuiDialogContent",["root","dividers"]);function Ok(e){return Ce("MuiDialogTitle",e)}const Ik=Ee("MuiDialogTitle",["root"]),Nk=e=>{const{classes:t,dividers:n}=e;return Te({root:["root",n&&"dividers"]},Pk,t)},Fk=Z("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Se(({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:{[`.${Ik.root} + &`]:{paddingTop:0}}}]}))),Ii=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiDialogContent"}),{className:i,dividers:s=!1,...a}=r,c={...r,dividers:s},d=Nk(c);return l.jsx(Fk,{className:be(d.root,i),ownerState:c,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Ii.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 Mk=e=>{const{classes:t}=e;return Te({root:["root"]},Ok,t)},Dk=Z(B,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),po=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiDialogTitle"}),{className:i,id:s,...a}=r,c=r,d=Mk(c),{titleId:u=s}=E.useContext(md);return l.jsx(Dk,{component:"h2",className:be(d.root,i),ownerState:c,ref:n,variant:"h6",id:s??u,...a})});process.env.NODE_ENV!=="production"&&(po.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 _k(e){return Ce("MuiDivider",e)}const Qg=Ee("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),$k=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:s,orientation:a,textAlign:c,variant:d}=e;return Te({root:["root",t&&"absolute",d,s&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",c==="right"&&a!=="vertical"&&"textAlignRight",c==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},_k,r)},zk=Z("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]}})(Se(({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=Z("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Se(({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)`}}]}))),en=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiDivider"}),{absolute:i=!1,children:s,className:a,orientation:c="horizontal",component:d=s||c==="vertical"?"div":"hr",flexItem:u=!1,light:p=!1,role:h=d!=="hr"?"separator":void 0,textAlign:y="center",variant:x="fullWidth",...g}=r,f={...r,absolute:i,component:d,flexItem:u,light:p,orientation:c,role:h,textAlign:y,variant:x},m=$k(f);return l.jsx(zk,{as:d,className:be(m.root,a),role:h,ref:n,ownerState:f,"aria-orientation":h==="separator"&&(d!=="hr"||c==="vertical")?c:void 0,...g,children:s?l.jsx(Lk,{className:m.wrapper,ownerState:f,children:s}):null})});en&&(en.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(en.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 Bk=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:s,hiddenLabel:a,multiline:c}=e,d={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",s==="small"&&`size${ne(s)}`,a&&"hiddenLabel",c&&"multiline"],input:["input"]},u=Te(d,mA,t);return{...t,...u}},jk=Z(_a,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ma(e,t),!n.disableUnderline&&t.underline]}})(Se(({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}},[`&.${Tr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Tr.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"},[`&.${Tr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Tr.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(.${Tr.disabled}, .${Tr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Tr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ct()).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:c})=>a.multiline&&c==="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}}]}})),Wk=Z($a,{name:"MuiFilledInput",slot:"Input",overridesResolver:Da})(Se(({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}}]}))),Ua=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:c=!1,hiddenLabel:d,inputComponent:u="input",multiline:p=!1,slotProps:h,slots:y={},type:x="text",...g}=r,f={...r,disableUnderline:i,fullWidth:c,inputComponent:u,multiline:p,type:x},m=Bk(r),S={root:{ownerState:f},input:{ownerState:f}},C=h??a?Et(S,h??a):S,b=y.root??s.Root??jk,v=y.input??s.Input??Wk;return l.jsx(Ai,{slots:{root:b,input:v},slotProps:C,fullWidth:c,inputComponent:u,multiline:p,ref:n,type:x,...g,classes:m})});process.env.NODE_ENV!=="production"&&(Ua.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:Ft,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}),Ua.muiName="Input";function Vk(e){return Ce("MuiFormControl",e)}Ee("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Uk=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ne(n)}`,r&&"fullWidth"]};return Te(i,Vk,t)},Hk=Z("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ne(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%"}}]}),Ha=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiFormControl"}),{children:i,className:s,color:a="primary",component:c="div",disabled:d=!1,error:u=!1,focused:p,fullWidth:h=!1,hiddenLabel:y=!1,margin:x="none",required:g=!1,size:f="medium",variant:m="outlined",...S}=r,C={...r,color:a,component:c,disabled:d,error:u,fullWidth:h,hiddenLabel:y,margin:x,required:g,size:f,variant:m},b=Uk(C),[v,w]=E.useState(()=>{let F=!1;return i&&E.Children.forEach(i,_=>{if(!Lc(_,["Input","Select"]))return;const k=Lc(_,["Select"])?_.props.input:_;k&&pA(k.props)&&(F=!0)}),F}),[A,I]=E.useState(()=>{let F=!1;return i&&E.Children.forEach(i,_=>{Lc(_,["Input","Select"])&&(Fa(_.props,!0)||Fa(_.props.inputProps,!0))&&(F=!0)}),F}),[z,M]=E.useState(!1);d&&z&&M(!1);const L=p!==void 0&&!d?p:z;let O;const T=E.useRef(!1);process.env.NODE_ENV!=="production"&&(O=()=>(T.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
172
|
-
`)),T.current=!0,()=>{T.current=!1}));const N=E.useCallback(()=>{I(!0)},[]),D=E.useCallback(()=>{I(!1)},[]),U=E.useMemo(()=>({adornedStart:v,setAdornedStart:w,color:a,disabled:d,error:u,filled:A,focused:L,fullWidth:h,hiddenLabel:y,size:f,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:D,onFilled:N,registerEffect:O,required:g,variant:m}),[v,a,d,u,A,L,h,y,O,D,N,g,f,m]);return l.jsx(Na.Provider,{value:U,children:l.jsx(Hk,{as:c,ownerState:C,className:be(b.root,s),ref:n,...S,children:i})})});process.env.NODE_ENV!=="production"&&(Ha.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 Rk(e){return Ce("MuiFormControlLabel",e)}const Ni=Ee("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),qk=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:s}=e,a={root:["root",n&&"disabled",`labelPlacement${ne(r)}`,i&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Te(a,Rk,t)},Yk=Z("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ni.label}`]:t.label},t.root,t[`labelPlacement${ne(n.labelPlacement)}`]]}})(Se(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ni.disabled}`]:{cursor:"default"},[`& .${Ni.label}`]:{[`&.${Ni.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}}]}))),Kk=Z("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Se(({theme:e})=>({[`&.${Ni.error}`]:{color:(e.vars||e).palette.error.main}}))),kn=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:a={},control:c,disabled:d,disableTypography:u,inputRef:p,label:h,labelPlacement:y="end",name:x,onChange:g,required:f,slots:m={},slotProps:S={},value:C,...b}=r,v=Tn(),w=d??c.props.disabled??v?.disabled,A=f??c.props.required,I={disabled:w,required:A};["checked","name","onChange","value","inputRef"].forEach(U=>{typeof c.props[U]>"u"&&typeof r[U]<"u"&&(I[U]=r[U])});const z=rr({props:r,muiFormControl:v,states:["error"]}),M={...r,disabled:w,labelPlacement:y,required:A,error:z.error},L=qk(M),O={slots:m,slotProps:{...a,...S}},[T,N]=Pe("typography",{elementType:B,externalForwardedProps:O,ownerState:M});let D=h;return D!=null&&D.type!==B&&!u&&(D=l.jsx(T,{component:"span",...N,className:be(L.label,N?.className),children:D})),l.jsxs(Yk,{className:be(L.root,s),ownerState:M,ref:n,...b,children:[E.cloneElement(c,I),A?l.jsxs("div",{children:[D,l.jsxs(Kk,{ownerState:M,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):D]})});process.env.NODE_ENV!=="production"&&(kn.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:Ft,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 Gk(e){return Ce("MuiFormGroup",e)}Ee("MuiFormGroup",["root","row","error"]);const Xk=e=>{const{classes:t,row:n,error:r}=e;return Te({root:["root",n&&"row",r&&"error"]},Gk,t)},Jk=Z("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"}}]}),Zg=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiFormGroup"}),{className:i,row:s=!1,...a}=r,c=Tn(),d=rr({props:r,muiFormControl:c,states:["error"]}),u={...r,row:s,error:d.error},p=Xk(u);return l.jsx(Jk,{className:be(p.root,i),ownerState:u,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Zg.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 Qk(e){return Ce("MuiFormHelperText",e)}const em=Ee("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var tm;const Zk=e=>{const{classes:t,contained:n,size:r,disabled:i,error:s,filled:a,focused:c,required:d}=e,u={root:["root",i&&"disabled",s&&"error",r&&`size${ne(r)}`,n&&"contained",c&&"focused",a&&"filled",d&&"required"]};return Te(u,Qk,t)},eP=Z("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ne(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Se(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${em.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${em.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}}]}))),nm=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiFormHelperText"}),{children:i,className:s,component:a="p",disabled:c,error:d,filled:u,focused:p,margin:h,required:y,variant:x,...g}=r,f=Tn(),m=rr({props:r,muiFormControl:f,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=Zk(S);return l.jsx(eP,{as:a,className:be(C.root,s),ref:n,...g,ownerState:S,children:i===" "?tm||(tm=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});process.env.NODE_ENV!=="production"&&(nm.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 tP(e){return Ce("MuiFormLabel",e)}const Fi=Ee("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),nP=e=>{const{classes:t,color:n,focused:r,disabled:i,error:s,filled:a,required:c}=e,d={root:["root",`color${ne(n)}`,i&&"disabled",s&&"error",a&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",s&&"error"]};return Te(d,tP,t)},rP=Z("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Se(({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(ct()).map(([t])=>({props:{color:t},style:{[`&.${Fi.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Fi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Fi.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),oP=Z("span",{name:"MuiFormLabel",slot:"Asterisk"})(Se(({theme:e})=>({[`&.${Fi.error}`]:{color:(e.vars||e).palette.error.main}}))),Mi=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiFormLabel"}),{children:i,className:s,color:a,component:c="label",disabled:d,error:u,filled:p,focused:h,required:y,...x}=r,g=Tn(),f=rr({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),m={...r,color:f.color||"primary",component:c,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},S=nP(m);return l.jsxs(rP,{as:c,ownerState:m,className:be(S.root,s),ref:n,...x,children:[i,f.required&&l.jsxs(oP,{ownerState:m,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Mi.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 bd(e){return`scale(${e}, ${e**2})`}const iP={entering:{opacity:1,transform:bd(1)},entered:{opacity:1,transform:"none"}},xd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),uo=E.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:s,easing:a,in:c,onEnter:d,onEntered:u,onEntering:p,onExit:h,onExited:y,onExiting:x,style:g,timeout:f="auto",TransitionComponent:m=Sn,...S}=t,C=vr(),b=E.useRef(),v=vn(),w=E.useRef(null),A=ut(w,Er(s),n),I=U=>F=>{if(U){const _=w.current;F===void 0?U(_):U(_,F)}},z=I(p),M=I((U,F)=>{sg(U);const{duration:_,delay:k,easing:V}=Sa({style:g,timeout:f,easing:a},{mode:"enter"});let $;f==="auto"?($=v.transitions.getAutoHeightDuration(U.clientHeight),b.current=$):$=_,U.style.transition=[v.transitions.create("opacity",{duration:$,delay:k}),v.transitions.create("transform",{duration:xd?$:$*.666,delay:k,easing:V})].join(","),d&&d(U,F)}),L=I(u),O=I(x),T=I(U=>{const{duration:F,delay:_,easing:k}=Sa({style:g,timeout:f,easing:a},{mode:"exit"});let V;f==="auto"?(V=v.transitions.getAutoHeightDuration(U.clientHeight),b.current=V):V=F,U.style.transition=[v.transitions.create("opacity",{duration:V,delay:_}),v.transitions.create("transform",{duration:xd?V:V*.666,delay:xd?_:_||V*.333,easing:k})].join(","),U.style.opacity=0,U.style.transform=bd(.75),h&&h(U)}),N=I(y),D=U=>{f==="auto"&&C.start(b.current||0,U),r&&r(w.current,U)};return l.jsx(m,{appear:i,in:c,nodeRef:w,onEnter:M,onEntered:L,onEntering:z,onExit:T,onExited:N,onExiting:O,addEndListener:D,timeout:f==="auto"?null:f,...S,children:(U,{ownerState:F,..._})=>E.cloneElement(s,{style:{opacity:0,transform:bd(.75),visibility:U==="exited"&&!c?"hidden":void 0,...iP[U],...g,...s.props.style},ref:A,..._})})});process.env.NODE_ENV!=="production"&&(uo.propTypes={addEndListener:o.func,appear:o.bool,children:kr.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})])}),uo&&(uo.muiSupportAuto=!0);const sP=e=>{const{classes:t,disableUnderline:n}=e,i=Te({root:["root",!n&&"underline"],input:["input"]},hA,t);return{...t,...i}},aP=Z(_a,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ma(e,t),!n.disableUnderline&&t.underline]}})(Se(({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"},[`&.${ki.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ki.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(.${ki.disabled}, .${ki.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ki.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ct()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),lP=Z($a,{name:"MuiInput",slot:"Input",overridesResolver:Da})({}),Ra=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:c=!1,inputComponent:d="input",multiline:u=!1,slotProps:p,slots:h={},type:y="text",...x}=r,g=sP(r),m={root:{ownerState:{disableUnderline:i}}},S=p??a?Et(p??a,m):m,C=h.root??s.Root??aP,b=h.input??s.Input??lP;return l.jsx(Ai,{slots:{root:C,input:b},slotProps:S,fullWidth:c,inputComponent:d,multiline:u,ref:n,type:y,...x,classes:g})});process.env.NODE_ENV!=="production"&&(Ra.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:Ft,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}),Ra.muiName="Input";function cP(e){return Ce("MuiInputLabel",e)}Ee("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const dP=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:s,variant:a,required:c}=e,d={root:["root",n&&"formControl",!s&&"animated",i&&"shrink",r&&r!=="medium"&&`size${ne(r)}`,a],asterisk:[c&&"asterisk"]},u=Te(d,cP,t);return{...t,...u}},pP=Z(Mi,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Fi.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]]}})(Se(({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)"}}]}))),rm=E.forwardRef(function(t,n){const r=Ae({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:s,shrink:a,variant:c,className:d,...u}=r,p=Tn();let h=a;typeof h>"u"&&p&&(h=p.filled||p.focused||p.adornedStart);const y=rr({props:r,muiFormControl:p,states:["size","variant","required","focused"]}),x={...r,disableAnimation:i,formControl:p,shrink:h,size:y.size,variant:y.variant,required:y.required,focused:y.focused},g=dP(x);return l.jsx(pP,{"data-shrink":h,ref:n,className:be(g.root,d),...u,ownerState:x,classes:g})});process.env.NODE_ENV!=="production"&&(rm.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 uP(e){return Ce("MuiLinearProgress",e)}Ee("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const vd=4,Sd=Xn`
|
|
163
|
+
`:null,LE=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,s={root:["root",n,`color${te(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${te(n)}`,i&&"circleDisableShrink"]};return ke(s,_E,t)},BE=J("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${te(n.color)}`]]}})(Ce(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:$E||{animation:`${ed} 1.4s linear infinite`}},...Object.entries(e.palette).filter(dt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),jE=J("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),WE=J("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${te(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ce(({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:zE||{animation:`${td} 1.4s ease-in-out infinite`}}]}))),VE=J("circle",{name:"MuiCircularProgress",slot:"Track"})(Ce(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),mi=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiCircularProgress"}),{className:i,color:s="primary",disableShrink:a=!1,enableTrackSlot:c=!1,size:d=40,style:u,thickness:p=3.6,value:h=0,variant:y="indeterminate",...b}=r,g={...r,color:s,disableShrink:a,size:d,thickness:p,value:h,variant:y,enableTrackSlot:c},f=LE(g),m={},S={},C={};if(y==="determinate"){const x=2*Math.PI*((dn-p)/2);m.strokeDasharray=x.toFixed(3),C["aria-valuenow"]=Math.round(h),m.strokeDashoffset=`${((100-h)/100*x).toFixed(3)}px`,S.transform="rotate(-90deg)"}return l.jsx(BE,{className:be(f.root,i),style:{width:d,height:d,...S,...u},ownerState:g,ref:n,role:"progressbar",...C,...b,children:l.jsxs(jE,{className:f.svg,ownerState:g,viewBox:`${dn/2} ${dn/2} ${dn} ${dn}`,children:[c?l.jsx(VE,{className:f.track,ownerState:g,cx:dn,cy:dn,r:(dn-p)/2,fill:"none",strokeWidth:p,"aria-hidden":"true"}):null,l.jsx(WE,{className:f.circle,style:m,ownerState:g,cx:dn,cy:dn,r:(dn-p)/2,fill:"none",strokeWidth:p})]})})});process.env.NODE_ENV!=="production"&&(mi.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:ln(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 UE(e){return Te("MuiIconButton",e)}const gg=Ae("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),HE=e=>{const{classes:t,disabled:n,color:r,edge:i,size:s,loading:a}=e,c={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${te(r)}`,i&&`edge${te(i)}`,`size${te(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ke(c,UE,t)},RE=J(gi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${te(n.color)}`],n.edge&&t[`edge${te(n.edge)}`],t[`size${te(n.size)}`]]}})(Ce(({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}}]})),Ce(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(dt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(dt()).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)}}],[`&.${gg.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${gg.loading}`]:{color:"transparent"}}))),qE=J("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"}}]})),yt=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiIconButton"}),{edge:i=!1,children:s,className:a,color:c="default",disabled:d=!1,disableFocusRipple:u=!1,size:p="medium",id:h,loading:y=null,loadingIndicator:b,...g}=r,f=mr(h),m=b??l.jsx(mi,{"aria-labelledby":f,color:"inherit",size:16}),S={...r,edge:i,color:c,disabled:d,disableFocusRipple:u,loading:y,loadingIndicator:m,size:p},C=HE(S);return l.jsxs(RE,{id:y?f:h,className:be(C.root,a),centerRipple:!0,focusRipple:!u,disabled:d||y,ref:n,...g,ownerState:S,children:[typeof y=="boolean"&&l.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:l.jsx(qE,{className:C.loadingIndicator,ownerState:S,children:y&&m})}),s]})});process.env.NODE_ENV!=="production"&&(yt.propTypes={children:ln(o.node,e=>E.Children.toArray(e.children).some(n=>E.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
164
|
+
`)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function YE(e){return Te("MuiTypography",e)}const mg=Ae("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),KE={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},GE=JC(),XE=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:s,classes:a}=e,c={root:["root",s,e.align!=="inherit"&&`align${te(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return ke(c,YE,a)},JE=J("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${te(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ce(({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(dt()).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${te(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}}]}))),yg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},j=E.forwardRef(function(t,n){const{color:r,...i}=Pe({props:t,name:"MuiTypography"}),s=!KE[r],a=GE({...i,...s&&{color:r}}),{align:c="inherit",className:d,component:u,gutterBottom:p=!1,noWrap:h=!1,paragraph:y=!1,variant:b="body1",variantMapping:g=yg,...f}=a,m={...a,align:c,color:r,className:d,component:u,gutterBottom:p,noWrap:h,paragraph:y,variant:b,variantMapping:g},S=u||(y?"p":g[b]||yg[b])||"span",C=XE(m);return l.jsx(JE,{as:S,ref:n,className:be(C.root,d),...f,ownerState:m,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...f.style}})});process.env.NODE_ENV!=="production"&&(j.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 Vn(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 Bt="top",Qt="bottom",Zt="right",jt="left",nd="auto",yi=[Bt,Qt,Zt,jt],no="start",bi="end",QE="clippingParents",bg="viewport",xi="popper",ZE="reference",xg=yi.reduce(function(e,t){return e.concat([t+"-"+no,t+"-"+bi])},[]),vg=[].concat(yi,[nd]).reduce(function(e,t){return e.concat([t,t+"-"+no,t+"-"+bi])},[]),eT="beforeRead",tT="read",nT="afterRead",rT="beforeMain",oT="main",iT="afterMain",sT="beforeWrite",aT="write",lT="afterWrite",cT=[eT,tT,nT,rT,oT,iT,sT,aT,lT];function wn(e){return e?(e.nodeName||"").toLowerCase():null}function Rt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wr(e){var t=Rt(e).Element;return e instanceof t||e instanceof Element}function en(e){var t=Rt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rd(e){if(typeof ShadowRoot>"u")return!1;var t=Rt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function dT(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];!en(s)||!wn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(a){var c=i[a];c===!1?s.removeAttribute(a):s.setAttribute(a,c===!0?"":c)}))})}function pT(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]),c=a.reduce(function(d,u){return d[u]="",d},{});!en(i)||!wn(i)||(Object.assign(i.style,c),Object.keys(s).forEach(function(d){i.removeAttribute(d)}))})}}const uT={name:"applyStyles",enabled:!0,phase:"write",fn:dT,effect:pT,requires:["computeStyles"]};function Cn(e){return e.split("-")[0]}var Cr=Math.max,Ea=Math.min,ro=Math.round;function od(){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 Sg(){return!/^((?!chrome|android).)*safari/i.test(od())}function oo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&en(e)&&(i=e.offsetWidth>0&&ro(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ro(r.height)/e.offsetHeight||1);var a=wr(e)?Rt(e):window,c=a.visualViewport,d=!Sg()&&n,u=(r.left+(d&&c?c.offsetLeft:0))/i,p=(r.top+(d&&c?c.offsetTop:0))/s,h=r.width/i,y=r.height/s;return{width:h,height:y,top:p,right:u+h,bottom:p+y,left:u,x:u,y:p}}function id(e){var t=oo(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 wg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&rd(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Un(e){return Rt(e).getComputedStyle(e)}function fT(e){return["table","td","th"].indexOf(wn(e))>=0}function nr(e){return((wr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ta(e){return wn(e)==="html"?e:e.assignedSlot||e.parentNode||(rd(e)?e.host:null)||nr(e)}function Cg(e){return!en(e)||Un(e).position==="fixed"?null:e.offsetParent}function hT(e){var t=/firefox/i.test(od()),n=/Trident/i.test(od());if(n&&en(e)){var r=Un(e);if(r.position==="fixed")return null}var i=Ta(e);for(rd(i)&&(i=i.host);en(i)&&["html","body"].indexOf(wn(i))<0;){var s=Un(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 vi(e){for(var t=Rt(e),n=Cg(e);n&&fT(n)&&Un(n).position==="static";)n=Cg(n);return n&&(wn(n)==="html"||wn(n)==="body"&&Un(n).position==="static")?t:n||hT(e)||t}function sd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Si(e,t,n){return Cr(e,Ea(t,n))}function gT(e,t,n){var r=Si(e,t,n);return r>n?n:r}function Eg(){return{top:0,right:0,bottom:0,left:0}}function Tg(e){return Object.assign({},Eg(),e)}function Ag(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var mT=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Tg(typeof t!="number"?t:Ag(t,yi))};function yT(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Cn(n.placement),d=sd(c),u=[jt,Zt].indexOf(c)>=0,p=u?"height":"width";if(!(!s||!a)){var h=mT(i.padding,n),y=id(s),b=d==="y"?Bt:jt,g=d==="y"?Qt:Zt,f=n.rects.reference[p]+n.rects.reference[d]-a[d]-n.rects.popper[p],m=a[d]-n.rects.reference[d],S=vi(s),C=S?d==="y"?S.clientHeight||0:S.clientWidth||0:0,x=f/2-m/2,v=h[b],w=C-y[p]-h[g],A=C/2-y[p]/2+x,O=Si(v,A,w),L=d;n.modifiersData[r]=(t={},t[L]=O,t.centerOffset=O-A,t)}}function bT(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)||wg(t.elements.popper,i)&&(t.elements.arrow=i))}const xT={name:"arrow",enabled:!0,phase:"main",fn:yT,effect:bT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function io(e){return e.split("-")[1]}var vT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ST(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ro(n*i)/i||0,y:ro(r*i)/i||0}}function kg(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,c=e.position,d=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,h=e.isFixed,y=a.x,b=y===void 0?0:y,g=a.y,f=g===void 0?0:g,m=typeof p=="function"?p({x:b,y:f}):{x:b,y:f};b=m.x,f=m.y;var S=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),x=jt,v=Bt,w=window;if(u){var A=vi(n),O="clientHeight",L="clientWidth";if(A===Rt(n)&&(A=nr(n),Un(A).position!=="static"&&c==="absolute"&&(O="scrollHeight",L="scrollWidth")),A=A,i===Bt||(i===jt||i===Zt)&&s===bi){v=Qt;var M=h&&A===w&&w.visualViewport?w.visualViewport.height:A[O];f-=M-r.height,f*=d?1:-1}if(i===jt||(i===Bt||i===Qt)&&s===bi){x=Zt;var _=h&&A===w&&w.visualViewport?w.visualViewport.width:A[L];b-=_-r.width,b*=d?1:-1}}var I=Object.assign({position:c},u&&vT),T=p===!0?ST({x:b,y:f},Rt(n)):{x:b,y:f};if(b=T.x,f=T.y,d){var F;return Object.assign({},I,(F={},F[v]=C?"0":"",F[x]=S?"0":"",F.transform=(w.devicePixelRatio||1)<=1?"translate("+b+"px, "+f+"px)":"translate3d("+b+"px, "+f+"px, 0)",F))}return Object.assign({},I,(t={},t[v]=C?f+"px":"",t[x]=S?b+"px":"",t.transform="",t))}function wT(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,c=n.roundOffsets,d=c===void 0?!0:c,u={placement:Cn(t.placement),variation:io(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,kg(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kg(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const CT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wT,data:{}};var Aa={passive:!0};function ET(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,a=r.resize,c=a===void 0?!0:a,d=Rt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(p){p.addEventListener("scroll",n.update,Aa)}),c&&d.addEventListener("resize",n.update,Aa),function(){s&&u.forEach(function(p){p.removeEventListener("scroll",n.update,Aa)}),c&&d.removeEventListener("resize",n.update,Aa)}}const TT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ET,data:{}};var AT={left:"right",right:"left",bottom:"top",top:"bottom"};function ka(e){return e.replace(/left|right|bottom|top/g,function(t){return AT[t]})}var kT={start:"end",end:"start"};function Pg(e){return e.replace(/start|end/g,function(t){return kT[t]})}function ad(e){var t=Rt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ld(e){return oo(nr(e)).left+ad(e).scrollLeft}function PT(e,t){var n=Rt(e),r=nr(e),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,c=0,d=0;if(i){s=i.width,a=i.height;var u=Sg();(u||!u&&t==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:c+ld(e),y:d}}function OT(e){var t,n=nr(e),r=ad(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Cr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Cr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-r.scrollLeft+ld(e),d=-r.scrollTop;return Un(i||n).direction==="rtl"&&(c+=Cr(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:c,y:d}}function cd(e){var t=Un(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Og(e){return["html","body","#document"].indexOf(wn(e))>=0?e.ownerDocument.body:en(e)&&cd(e)?e:Og(Ta(e))}function wi(e,t){var n;t===void 0&&(t=[]);var r=Og(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=Rt(r),a=i?[s].concat(s.visualViewport||[],cd(r)?r:[]):r,c=t.concat(a);return i?c:c.concat(wi(Ta(a)))}function dd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function IT(e,t){var n=oo(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 Ig(e,t,n){return t===bg?dd(PT(e,n)):wr(t)?IT(t,n):dd(OT(nr(e)))}function NT(e){var t=wi(Ta(e)),n=["absolute","fixed"].indexOf(Un(e).position)>=0,r=n&&en(e)?vi(e):e;return wr(r)?t.filter(function(i){return wr(i)&&wg(i,r)&&wn(i)!=="body"}):[]}function FT(e,t,n,r){var i=t==="clippingParents"?NT(e):[].concat(t),s=[].concat(i,[n]),a=s[0],c=s.reduce(function(d,u){var p=Ig(e,u,r);return d.top=Cr(p.top,d.top),d.right=Ea(p.right,d.right),d.bottom=Ea(p.bottom,d.bottom),d.left=Cr(p.left,d.left),d},Ig(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Ng(e){var t=e.reference,n=e.element,r=e.placement,i=r?Cn(r):null,s=r?io(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,d;switch(i){case Bt:d={x:a,y:t.y-n.height};break;case Qt:d={x:a,y:t.y+t.height};break;case Zt:d={x:t.x+t.width,y:c};break;case jt:d={x:t.x-n.width,y:c};break;default:d={x:t.x,y:t.y}}var u=i?sd(i):null;if(u!=null){var p=u==="y"?"height":"width";switch(s){case no:d[u]=d[u]-(t[p]/2-n[p]/2);break;case bi:d[u]=d[u]+(t[p]/2-n[p]/2);break}}return d}function Ci(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,c=n.boundary,d=c===void 0?QE:c,u=n.rootBoundary,p=u===void 0?bg:u,h=n.elementContext,y=h===void 0?xi:h,b=n.altBoundary,g=b===void 0?!1:b,f=n.padding,m=f===void 0?0:f,S=Tg(typeof m!="number"?m:Ag(m,yi)),C=y===xi?ZE:xi,x=e.rects.popper,v=e.elements[g?C:y],w=FT(wr(v)?v:v.contextElement||nr(e.elements.popper),d,p,a),A=oo(e.elements.reference),O=Ng({reference:A,element:x,placement:i}),L=dd(Object.assign({},x,O)),M=y===xi?L:A,_={top:w.top-M.top+S.top,bottom:M.bottom-w.bottom+S.bottom,left:w.left-M.left+S.left,right:M.right-w.right+S.right},I=e.modifiersData.offset;if(y===xi&&I){var T=I[i];Object.keys(_).forEach(function(F){var D=[Zt,Qt].indexOf(F)>=0?1:-1,U=[Bt,Qt].indexOf(F)>=0?"y":"x";_[F]+=T[U]*D})}return _}function MT(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,c=n.flipVariations,d=n.allowedAutoPlacements,u=d===void 0?vg:d,p=io(r),h=p?c?xg:xg.filter(function(g){return io(g)===p}):yi,y=h.filter(function(g){return u.indexOf(g)>=0});y.length===0&&(y=h);var b=y.reduce(function(g,f){return g[f]=Ci(e,{placement:f,boundary:i,rootBoundary:s,padding:a})[Cn(f)],g},{});return Object.keys(b).sort(function(g,f){return b[g]-b[f]})}function DT(e){if(Cn(e)===nd)return[];var t=ka(e);return[Pg(e),t,Pg(t)]}function _T(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,c=a===void 0?!0:a,d=n.fallbackPlacements,u=n.padding,p=n.boundary,h=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,g=b===void 0?!0:b,f=n.allowedAutoPlacements,m=t.options.placement,S=Cn(m),C=S===m,x=d||(C||!g?[ka(m)]:DT(m)),v=[m].concat(x).reduce(function(G,Q){return G.concat(Cn(Q)===nd?MT(t,{placement:Q,boundary:p,rootBoundary:h,padding:u,flipVariations:g,allowedAutoPlacements:f}):Q)},[]),w=t.rects.reference,A=t.rects.popper,O=new Map,L=!0,M=v[0],_=0;_<v.length;_++){var I=v[_],T=Cn(I),F=io(I)===no,D=[Bt,Qt].indexOf(T)>=0,U=D?"width":"height",N=Ci(t,{placement:I,boundary:p,rootBoundary:h,altBoundary:y,padding:u}),$=D?F?Zt:jt:F?Qt:Bt;w[U]>A[U]&&($=ka($));var k=ka($),V=[];if(s&&V.push(N[T]<=0),c&&V.push(N[$]<=0,N[k]<=0),V.every(function(G){return G})){M=I,L=!1;break}O.set(I,V)}if(L)for(var B=g?3:1,W=function(Q){var ee=v.find(function(oe){var le=O.get(oe);if(le)return le.slice(0,Q).every(function(ae){return ae})});if(ee)return M=ee,"break"},q=B;q>0;q--){var X=W(q);if(X==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const $T={name:"flip",enabled:!0,phase:"main",fn:_T,requiresIfExists:["offset"],data:{_skip:!1}};function Fg(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 Mg(e){return[Bt,Zt,Qt,jt].some(function(t){return e[t]>=0})}function zT(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=Ci(t,{elementContext:"reference"}),c=Ci(t,{altBoundary:!0}),d=Fg(a,r),u=Fg(c,i,s),p=Mg(d),h=Mg(u);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const LT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zT};function BT(e,t,n){var r=Cn(e),i=[jt,Bt].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],c=s[1];return a=a||0,c=(c||0)*i,[jt,Zt].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function jT(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,a=vg.reduce(function(p,h){return p[h]=BT(h,t.rects,s),p},{}),c=a[t.placement],d=c.x,u=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const WT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jT};function VT(e){var t=e.state,n=e.name;t.modifiersData[n]=Ng({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const UT={name:"popperOffsets",enabled:!0,phase:"read",fn:VT,data:{}};function HT(e){return e==="x"?"y":"x"}function RT(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,c=a===void 0?!1:a,d=n.boundary,u=n.rootBoundary,p=n.altBoundary,h=n.padding,y=n.tether,b=y===void 0?!0:y,g=n.tetherOffset,f=g===void 0?0:g,m=Ci(t,{boundary:d,rootBoundary:u,padding:h,altBoundary:p}),S=Cn(t.placement),C=io(t.placement),x=!C,v=sd(S),w=HT(v),A=t.modifiersData.popperOffsets,O=t.rects.reference,L=t.rects.popper,M=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,_=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(A){if(s){var F,D=v==="y"?Bt:jt,U=v==="y"?Qt:Zt,N=v==="y"?"height":"width",$=A[v],k=$+m[D],V=$-m[U],B=b?-L[N]/2:0,W=C===no?O[N]:L[N],q=C===no?-L[N]:-O[N],X=t.elements.arrow,G=b&&X?id(X):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Eg(),ee=Q[D],oe=Q[U],le=Si(0,O[N],G[N]),ae=x?O[N]/2-B-le-ee-_.mainAxis:W-le-ee-_.mainAxis,re=x?-O[N]/2+B+le+oe+_.mainAxis:q+le+oe+_.mainAxis,ce=t.elements.arrow&&vi(t.elements.arrow),H=ce?v==="y"?ce.clientTop||0:ce.clientLeft||0:0,he=(F=I?.[v])!=null?F:0,de=$+ae-he-H,ge=$+re-he,ze=Si(b?Ea(k,de):k,$,b?Cr(V,ge):V);A[v]=ze,T[v]=ze-$}if(c){var Ee,me=v==="x"?Bt:jt,De=v==="x"?Qt:Zt,Le=A[w],Ne=w==="y"?"height":"width",pe=Le+m[me],Ve=Le-m[De],Ie=[Bt,jt].indexOf(S)!==-1,se=(Ee=I?.[w])!=null?Ee:0,ne=Ie?pe:Le-O[Ne]-L[Ne]-se+_.altAxis,xe=Ie?Le+O[Ne]+L[Ne]-se-_.altAxis:Ve,Z=b&&Ie?gT(ne,Le,xe):Si(b?ne:pe,Le,b?xe:Ve);A[w]=Z,T[w]=Z-Le}t.modifiersData[r]=T}}const qT={name:"preventOverflow",enabled:!0,phase:"main",fn:RT,requiresIfExists:["offset"]};function YT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function KT(e){return e===Rt(e)||!en(e)?ad(e):YT(e)}function GT(e){var t=e.getBoundingClientRect(),n=ro(t.width)/e.offsetWidth||1,r=ro(t.height)/e.offsetHeight||1;return n!==1||r!==1}function XT(e,t,n){n===void 0&&(n=!1);var r=en(t),i=en(t)&>(t),s=nr(t),a=oo(e,i,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((wn(t)!=="body"||cd(s))&&(c=KT(t)),en(t)?(d=oo(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=ld(s))),{x:a.left+c.scrollLeft-d.x,y:a.top+c.scrollTop-d.y,width:a.width,height:a.height}}function JT(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(c){if(!n.has(c)){var d=t.get(c);d&&i(d)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function QT(e){var t=JT(e);return cT.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function ZT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function eA(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 Dg={placement:"bottom",modifiers:[],strategy:"absolute"};function _g(){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 tA(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?Dg:i;return function(c,d,u){u===void 0&&(u=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Dg,s),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},h=[],y=!1,b={state:p,setOptions:function(S){var C=typeof S=="function"?S(p.options):S;f(),p.options=Object.assign({},s,p.options,C),p.scrollParents={reference:wr(c)?wi(c):c.contextElement?wi(c.contextElement):[],popper:wi(d)};var x=QT(eA([].concat(r,p.options.modifiers)));return p.orderedModifiers=x.filter(function(v){return v.enabled}),g(),b.update()},forceUpdate:function(){if(!y){var S=p.elements,C=S.reference,x=S.popper;if(_g(C,x)){p.rects={reference:XT(C,vi(x),p.options.strategy==="fixed"),popper:id(x)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(_){return p.modifiersData[_.name]=Object.assign({},_.data)});for(var v=0;v<p.orderedModifiers.length;v++){if(p.reset===!0){p.reset=!1,v=-1;continue}var w=p.orderedModifiers[v],A=w.fn,O=w.options,L=O===void 0?{}:O,M=w.name;typeof A=="function"&&(p=A({state:p,options:L,name:M,instance:b})||p)}}}},update:ZT(function(){return new Promise(function(m){b.forceUpdate(),m(p)})}),destroy:function(){f(),y=!0}};if(!_g(c,d))return b;b.setOptions(u).then(function(m){!y&&u.onFirstUpdate&&u.onFirstUpdate(m)});function g(){p.orderedModifiers.forEach(function(m){var S=m.name,C=m.options,x=C===void 0?{}:C,v=m.effect;if(typeof v=="function"){var w=v({state:p,name:S,instance:b,options:x}),A=function(){};h.push(w||A)}})}function f(){h.forEach(function(m){return m()}),h=[]}return b}}var nA=[TT,UT,CT,uT,WT,$T,qT,xT,LT],rA=tA({defaultModifiers:nA});function En(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...s}=e,a=i?{}:lg(n,r),{props:c,internalRef:d}=dg({...s,externalSlotProps:a}),u=ft(d,a?.ref,e.additionalProps?.ref);return ag(t,{...c,ref:u},r)}function Er(e){return parseInt(E.version,10)>=19?e?.props?.ref||null:e?.ref||null}function oA(e){return typeof e=="function"?e():e}const Ei=E.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[a,c]=E.useState(null),d=ft(E.isValidElement(r)?Er(r):null,n);if(Xt(()=>{s||c(oA(i)||document.body)},[i,s]),Xt(()=>{if(a&&!s)return Xh(n,a),()=>{Xh(n,null)}},[n,a,s]),s){if(E.isValidElement(r)){const u={ref:d};return E.cloneElement(r,u)}return r}return a&&py.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(Ei.propTypes={children:o.node,container:o.oneOfType([Vn,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(Ei.propTypes=$c(Ei.propTypes));function iA(e){return Te("MuiPopper",e)}Ae("MuiPopper",["root"]);function sA(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 Pa(e){return typeof e=="function"?e():e}function Oa(e){return e.nodeType!==void 0}function aA(e){return!Oa(e)}const lA=e=>{const{classes:t}=e;return ke({root:["root"]},iA,t)},cA={},dA=E.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:s,disablePortal:a,modifiers:c,open:d,placement:u,popperOptions:p,popperRef:h,slotProps:y={},slots:b={},TransitionProps:g,ownerState:f,...m}=t,S=E.useRef(null),C=ft(S,n),x=E.useRef(null),v=ft(x,h),w=E.useRef(v);Xt(()=>{w.current=v},[v]),E.useImperativeHandle(h,()=>x.current,[]);const A=sA(u,s),[O,L]=E.useState(A),[M,_]=E.useState(Pa(r));E.useEffect(()=>{x.current&&x.current.forceUpdate()}),E.useEffect(()=>{r&&_(Pa(r))},[r]),Xt(()=>{if(!M||!d)return;const U=k=>{L(k.placement)};if(process.env.NODE_ENV!=="production"&&M&&Oa(M)&&M.nodeType===1){const k=M.getBoundingClientRect();process.env.NODE_ENV!=="test"&&k.top===0&&k.left===0&&k.right===0&&k.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 N=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:k})=>{U(k)}}];c!=null&&(N=N.concat(c)),p&&p.modifiers!=null&&(N=N.concat(p.modifiers));const $=rA(M,S.current,{placement:A,...p,modifiers:N});return w.current($),()=>{$.destroy(),w.current(null)}},[M,a,c,d,p,A]);const I={placement:O};g!==null&&(I.TransitionProps=g);const T=lA(t),F=b.root??"div",D=En({elementType:F,externalSlotProps:y.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:T.root});return l.jsx(F,{...D,children:typeof i=="function"?i(I):i})}),$g=E.forwardRef(function(t,n){const{anchorEl:r,children:i,container:s,direction:a="ltr",disablePortal:c=!1,keepMounted:d=!1,modifiers:u,open:p,placement:h="bottom",popperOptions:y=cA,popperRef:b,style:g,transition:f=!1,slotProps:m={},slots:S={},...C}=t,[x,v]=E.useState(!0),w=()=>{v(!1)},A=()=>{v(!0)};if(!d&&!p&&(!f||x))return null;let O;if(s)O=s;else if(r){const _=Pa(r);O=_&&Oa(_)?mt(_).body:mt(null).body}const L=!p&&d&&(!f||x)?"none":void 0,M=f?{in:p,onEnter:w,onExited:A}:void 0;return l.jsx(Ei,{disablePortal:c,container:O,children:l.jsx(dA,{anchorEl:r,direction:a,disablePortal:c,modifiers:u,ref:n,open:f?!x:p,placement:h,popperOptions:y,popperRef:b,slotProps:m,slots:S,...C,style:{position:"fixed",top:0,left:0,display:L,...g},TransitionProps:M,children:i})})});process.env.NODE_ENV!=="production"&&($g.propTypes={anchorEl:ln(o.oneOfType([Vn,o.object,o.func]),e=>{if(e.open){const t=Pa(e.anchorEl);if(t&&Oa(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
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||aA(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([Vn,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:Mt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const pA=J($g,{name:"MuiPopper",slot:"Root"})({}),pd=E.forwardRef(function(t,n){const r=pi(),i=Pe({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:c,componentsProps:d,container:u,disablePortal:p,keepMounted:h,modifiers:y,open:b,placement:g,popperOptions:f,popperRef:m,transition:S,slots:C,slotProps:x,...v}=i,w=C?.root??c?.Root,A={anchorEl:s,container:u,disablePortal:p,keepMounted:h,modifiers:y,open:b,placement:g,popperOptions:f,popperRef:m,transition:S,...v};return l.jsx(pA,{as:a,direction:r?"rtl":"ltr",slots:{root:w},slotProps:x??d,...A,ref:n})});process.env.NODE_ENV!=="production"&&(pd.propTypes={anchorEl:o.oneOfType([Vn,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([Vn,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:Mt,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 Ia(e){return parseInt(e,10)||0}const uA={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function fA(e){for(const t in e)return!1;return!0}function zg(e){return fA(e)||e.outerHeightStyle===0&&!e.overflowing}const Lg=E.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:s=1,style:a,value:c,...d}=t,{current:u}=E.useRef(c!=null),p=E.useRef(null),h=ft(n,p),y=E.useRef(null),b=E.useRef(null),g=E.useCallback(()=>{const x=p.current,v=b.current;if(!x||!v)return;const A=jn(x).getComputedStyle(x);if(A.width==="0px")return{outerHeightStyle:0,overflowing:!1};v.style.width=A.width,v.value=x.value||t.placeholder||"x",v.value.slice(-1)===`
|
|
168
|
+
`&&(v.value+=" ");const O=A.boxSizing,L=Ia(A.paddingBottom)+Ia(A.paddingTop),M=Ia(A.borderBottomWidth)+Ia(A.borderTopWidth),_=v.scrollHeight;v.value="x";const I=v.scrollHeight;let T=_;s&&(T=Math.max(Number(s)*I,T)),i&&(T=Math.min(Number(i)*I,T)),T=Math.max(T,I);const F=T+(O==="border-box"?L+M:0),D=Math.abs(T-_)<=1;return{outerHeightStyle:F,overflowing:D}},[i,s,t.placeholder]),f=Ft(()=>{const x=p.current,v=g();if(!x||!v||zg(v))return!1;const w=v.outerHeightStyle;return y.current!=null&&y.current!==w}),m=E.useCallback(()=>{const x=p.current,v=g();if(!x||!v||zg(v))return;const w=v.outerHeightStyle;y.current!==w&&(y.current=w,x.style.height=`${w}px`),x.style.overflow=v.overflowing?"hidden":""},[g]),S=E.useRef(-1);Xt(()=>{const x=Gh(m),v=p?.current;if(!v)return;const w=jn(v);w.addEventListener("resize",x);let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(()=>{f()&&(A.unobserve(v),cancelAnimationFrame(S.current),m(),S.current=requestAnimationFrame(()=>{A.observe(v)}))}),A.observe(v)),()=>{x.clear(),cancelAnimationFrame(S.current),w.removeEventListener("resize",x),A&&A.disconnect()}},[g,m,f]),Xt(()=>{m()});const C=x=>{u||m();const v=x.target,w=v.value.length,A=v.value.endsWith(`
|
|
169
|
+
`),O=v.selectionStart===w;A&&O&&v.setSelectionRange(w,w),r&&r(x)};return l.jsxs(E.Fragment,{children:[l.jsx("textarea",{value:c,onChange:C,ref:h,rows:s,style:a,...d}),l.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...uA.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Lg.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 rr({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 Na=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(Na.displayName="FormControlContext");function Tn(){return E.useContext(Na)}function Bg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Fa(e,t=!1){return e&&(Bg(e.value)&&e.value!==""||t&&Bg(e.defaultValue)&&e.defaultValue!=="")}function hA(e){return e.startAdornment}function gA(e){return Te("MuiInputBase",e)}const so=Ae("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var jg;const Ma=(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${te(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Da=(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]},mA=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:s,focused:a,formControl:c,fullWidth:d,hiddenLabel:u,multiline:p,readOnly:h,size:y,startAdornment:b,type:g}=e,f={root:["root",`color${te(n)}`,r&&"disabled",i&&"error",d&&"fullWidth",a&&"focused",c&&"formControl",y&&y!=="medium"&&`size${te(y)}`,p&&"multiline",b&&"adornedStart",s&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",p&&"inputMultiline",y==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",h&&"readOnly"]};return ke(f,gA,t)},_a=J("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ma})(Ce(({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",[`&.${so.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%"}}]}))),$a=J("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Da})(Ce(({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] + .${so.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},[`&.${so.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"}}]}})),Wg=XC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ti=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:c,color:d,components:u={},componentsProps:p={},defaultValue:h,disabled:y,disableInjectingGlobalStyles:b,endAdornment:g,error:f,fullWidth:m=!1,id:S,inputComponent:C="input",inputProps:x={},inputRef:v,margin:w,maxRows:A,minRows:O,multiline:L=!1,name:M,onBlur:_,onChange:I,onClick:T,onFocus:F,onKeyDown:D,onKeyUp:U,placeholder:N,readOnly:$,renderSuffix:k,rows:V,size:B,slotProps:W={},slots:q={},startAdornment:X,type:G="text",value:Q,...ee}=r,oe=x.value!=null?x.value:Q,{current:le}=E.useRef(oe!=null),ae=E.useRef(),re=E.useCallback(K=>{process.env.NODE_ENV!=="production"&&K&&K.nodeName!=="INPUT"&&!K.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
|
+
`))},[]),ce=ft(ae,v,x.ref,re),[H,he]=E.useState(!1),de=Tn();process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(de)return de.registerEffect()},[de]);const ge=rr({props:r,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=de?de.focused:H,E.useEffect(()=>{!de&&y&&H&&(he(!1),_&&_())},[de,y,H,_]);const ze=de&&de.onFilled,Ee=de&&de.onEmpty,me=E.useCallback(K=>{Fa(K)?ze&&ze():Ee&&Ee()},[ze,Ee]);Xt(()=>{le&&me({value:oe})},[oe,me,le]);const De=K=>{F&&F(K),x.onFocus&&x.onFocus(K),de&&de.onFocus?de.onFocus(K):he(!0)},Le=K=>{_&&_(K),x.onBlur&&x.onBlur(K),de&&de.onBlur?de.onBlur(K):he(!1)},Ne=(K,...ie)=>{if(!le){const ue=K.target||ae.current;if(ue==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.":hn(1));me({value:ue.value})}x.onChange&&x.onChange(K,...ie),I&&I(K,...ie)};E.useEffect(()=>{me(ae.current)},[]);const pe=K=>{ae.current&&K.currentTarget===K.target&&ae.current.focus(),T&&T(K)};let Ve=C,Ie=x;L&&Ve==="input"&&(V?(process.env.NODE_ENV!=="production"&&(O||A)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ie={type:void 0,minRows:V,maxRows:V,...Ie}):Ie={type:void 0,maxRows:A,minRows:O,...Ie},Ve=Lg);const se=K=>{me(K.animationName==="mui-auto-fill-cancel"?ae.current:{value:"x"})};E.useEffect(()=>{de&&de.setAdornedStart(!!X)},[de,X]);const ne={...r,color:ge.color||"primary",disabled:ge.disabled,endAdornment:g,error:ge.error,focused:ge.focused,formControl:de,fullWidth:m,hiddenLabel:ge.hiddenLabel,multiline:L,size:ge.size,startAdornment:X,type:G},xe=mA(ne),Z=q.root||u.Root||_a,fe=W.root||p.root||{},ye=q.input||u.Input||$a;return Ie={...Ie,...W.input??p.input},l.jsxs(E.Fragment,{children:[!b&&typeof Wg=="function"&&(jg||(jg=l.jsx(Wg,{}))),l.jsxs(Z,{...fe,ref:n,onClick:pe,...ee,...!tr(Z)&&{ownerState:{...ne,...fe.ownerState}},className:be(xe.root,fe.className,c,$&&"MuiInputBase-readOnly"),children:[X,l.jsx(Na.Provider,{value:null,children:l.jsx(ye,{"aria-invalid":ge.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:h,disabled:ge.disabled,id:S,onAnimationStart:se,name:M,placeholder:N,readOnly:$,required:ge.required,rows:V,value:oe,onKeyDown:D,onKeyUp:U,type:G,...Ie,...!tr(ye)&&{as:Ve,ownerState:{...ne,...Ie.ownerState}},ref:ce,className:be(xe.input,Ie.className,$&&"MuiInputBase-readOnly"),onBlur:Le,onChange:Ne,onFocus:De})}),g,k?k({...ge,startAdornment:X}):null]})]})});process.env.NODE_ENV!=="production"&&(Ti.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:Jc,inputProps:o.object,inputRef:Mt,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 yA(e){return Te("MuiInput",e)}const Ai={...so,...Ae("MuiInput",["root","underline","input"])};function bA(e){return Te("MuiOutlinedInput",e)}const An={...so,...Ae("MuiOutlinedInput",["root","notchedOutline","input"])};function xA(e){return Te("MuiFilledInput",e)}const Tr={...so,...Ae("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},vA=it(l.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),SA=it(l.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 wA(e){return Te("MuiAvatar",e)}Ae("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const CA=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ke({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},wA,t)},EA=J("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ce(({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]})}}}]}))),TA=J("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),AA=J(SA,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function kA({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,s]=E.useState(!1);return E.useEffect(()=>{if(!n&&!r)return;s(!1);let a=!0;const c=new Image;return c.onload=()=>{a&&s("loaded")},c.onerror=()=>{a&&s("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=n,r&&(c.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const Ar=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiAvatar"}),{alt:i,children:s,className:a,component:c="div",slots:d={},slotProps:u={},imgProps:p,sizes:h,src:y,srcSet:b,variant:g="circular",...f}=r;let m=null;const S={...r,component:c,variant:g},C=kA({...p,...typeof u.img=="function"?u.img(S):u.img,src:y,srcSet:b}),x=y||b,v=x&&C!=="error";S.colorDefault=!v,delete S.ownerState;const w=CA(S),[A,O]=Oe("root",{ref:n,className:be(w.root,a),elementType:EA,externalForwardedProps:{slots:d,slotProps:u,component:c,...f},ownerState:S}),[L,M]=Oe("img",{className:w.img,elementType:TA,externalForwardedProps:{slots:d,slotProps:{img:{...p,...u.img}}},additionalProps:{alt:i,src:y,srcSet:b,sizes:h},ownerState:S}),[_,I]=Oe("fallback",{className:w.fallback,elementType:AA,externalForwardedProps:{slots:d,slotProps:u},shouldForwardComponentProp:!0,ownerState:S});return v?m=l.jsx(L,{...M}):s||s===0?m=s:x&&i?m=i[0]:m=l.jsx(_,{...I}),l.jsx(A,{...O,children:m})});process.env.NODE_ENV!=="production"&&(Ar.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 PA(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Vg(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let c;const d=s.type;return typeof d=="function"&&!PA(d)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const kr=ln(o.element,Vg);kr.isRequired=ln(o.element.isRequired,Vg);const OA={entering:{opacity:1},entered:{opacity:1}},za=E.forwardRef(function(t,n){const r=vn(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:c,easing:d,in:u,onEnter:p,onEntered:h,onEntering:y,onExit:b,onExited:g,onExiting:f,style:m,timeout:S=i,TransitionComponent:C=Sn,...x}=t,v=E.useRef(null),w=ft(v,Er(c),n),A=D=>U=>{if(D){const N=v.current;U===void 0?D(N):D(N,U)}},O=A(y),L=A((D,U)=>{sg(D);const N=Sa({style:m,timeout:S,easing:d},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",N),D.style.transition=r.transitions.create("opacity",N),p&&p(D,U)}),M=A(h),_=A(f),I=A(D=>{const U=Sa({style:m,timeout:S,easing:d},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",U),D.style.transition=r.transitions.create("opacity",U),b&&b(D)}),T=A(g),F=D=>{s&&s(v.current,D)};return l.jsx(C,{appear:a,in:u,nodeRef:v,onEnter:L,onEntered:M,onEntering:O,onExit:I,onExited:T,onExiting:_,addEndListener:F,timeout:S,...x,children:(D,{ownerState:U,...N})=>E.cloneElement(c,{style:{opacity:0,visibility:D==="exited"&&!u?"hidden":void 0,...OA[D],...m,...c.props.style},ref:w,...N})})});process.env.NODE_ENV!=="production"&&(za.propTypes={addEndListener:o.func,appear:o.bool,children:kr.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 IA(e){return Te("MuiBackdrop",e)}Ae("MuiBackdrop",["root","invisible"]);const NA=e=>{const{classes:t,invisible:n}=e;return ke({root:["root",n&&"invisible"]},IA,t)},FA=J("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"}}]}),ud=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:a="div",invisible:c=!1,open:d,components:u={},componentsProps:p={},slotProps:h={},slots:y={},TransitionComponent:b,transitionDuration:g,...f}=r,m={...r,component:a,invisible:c},S=NA(m),C={transition:b,root:u.Root,...y},x={...p,...h},v={component:a,slots:C,slotProps:x},[w,A]=Oe("root",{elementType:FA,externalForwardedProps:v,className:be(S.root,s),ownerState:m}),[O,L]=Oe("transition",{elementType:za,externalForwardedProps:v,ownerState:m});return l.jsx(O,{in:d,timeout:g,...f,...L,children:l.jsx(w,{"aria-hidden":!0,...A,classes:S,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(ud.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 MA=Ae("MuiBox",["root"]),DA=Yh(),P=Bw({themeId:Qo,defaultTheme:DA,defaultClassName:MA.root,generateClassName:yh.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 _A(e){return Te("MuiButton",e)}const Pr=Ae("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"]),Ug=E.createContext({});process.env.NODE_ENV!=="production"&&(Ug.displayName="ButtonGroupContext");const Hg=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(Hg.displayName="ButtonGroupButtonContext");const $A=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:s,loading:a,loadingPosition:c,classes:d}=e,u={root:["root",a&&"loading",s,`${s}${te(t)}`,`size${te(i)}`,`${s}Size${te(i)}`,`color${te(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${te(c)}`],startIcon:["icon","startIcon",`iconSize${te(i)}`],endIcon:["icon","endIcon",`iconSize${te(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=ke(u,_A,d);return{...d,...p}},Rg=[{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}}}],zA=J(gi,{shouldForwardProp:e=>Pt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${te(n.color)}`],t[`size${te(n.size)}`],t[`${n.variant}Size${te(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ce(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Pr.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Pr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Pr.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Pr.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(dt()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Pr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Pr.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Pr.loading}`]:{color:"transparent"}}}]}})),LA=J("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${te(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}},...Rg]})),BA=J("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${te(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}},...Rg]})),jA=J("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}}]})),qg=J("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Xe=E.forwardRef(function(t,n){const r=E.useContext(Ug),i=E.useContext(Hg),s=ci(r,t),a=Pe({props:s,name:"MuiButton"}),{children:c,color:d="primary",component:u="button",className:p,disabled:h=!1,disableElevation:y=!1,disableFocusRipple:b=!1,endIcon:g,focusVisibleClassName:f,fullWidth:m=!1,id:S,loading:C=null,loadingIndicator:x,loadingPosition:v="center",size:w="medium",startIcon:A,type:O,variant:L="text",...M}=a,_=mr(S),I=x??l.jsx(mi,{"aria-labelledby":_,color:"inherit",size:16}),T={...a,color:d,component:u,disabled:h,disableElevation:y,disableFocusRipple:b,fullWidth:m,loading:C,loadingIndicator:I,loadingPosition:v,size:w,type:O,variant:L},F=$A(T),D=(A||C&&v==="start")&&l.jsx(LA,{className:F.startIcon,ownerState:T,children:A||l.jsx(qg,{className:F.loadingIconPlaceholder,ownerState:T})}),U=(g||C&&v==="end")&&l.jsx(BA,{className:F.endIcon,ownerState:T,children:g||l.jsx(qg,{className:F.loadingIconPlaceholder,ownerState:T})}),N=i||"",$=typeof C=="boolean"?l.jsx("span",{className:F.loadingWrapper,style:{display:"contents"},children:C&&l.jsx(jA,{className:F.loadingIndicator,ownerState:T,children:I})}):null;return l.jsxs(zA,{ownerState:T,className:be(r.className,F.root,p,N),component:u,disabled:h||C,focusRipple:!b,focusVisibleClassName:be(F.focusVisible,f),ref:n,type:O,id:C?_:S,...M,classes:F,children:[D,v!=="end"&&$,c,v==="end"&&$,U]})});process.env.NODE_ENV!=="production"&&(Xe.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 WA(e){return Te("MuiCard",e)}Ae("MuiCard",["root"]);const VA=e=>{const{classes:t}=e;return ke({root:["root"]},WA,t)},UA=J(cn,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),La=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiCard"}),{className:i,raised:s=!1,...a}=r,c={...r,raised:s},d=VA(c);return l.jsx(UA,{className:be(d.root,i),elevation:s?8:void 0,ref:n,ownerState:c,...a})});process.env.NODE_ENV!=="production"&&(La.propTypes={children:o.node,classes:o.object,className:o.string,raised:ln(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 HA(e){return Te("PrivateSwitchBase",e)}Ae("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const RA=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,s={root:["root",n&&"checked",r&&"disabled",i&&`edge${te(i)}`],input:["input"]};return ke(s,HA,t)},qA=J(gi,{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}}]}),YA=J("input",{name:"MuiSwitchBase",shouldForwardProp:Pt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ba=E.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:s,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:u=!1,icon:p,id:h,inputProps:y,inputRef:b,name:g,onBlur:f,onChange:m,onFocus:S,readOnly:C,required:x=!1,tabIndex:v,type:w,value:A,slots:O={},slotProps:L={},...M}=t,[_,I]=Qr({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),T=Tn(),F=Q=>{S&&S(Q),T&&T.onFocus&&T.onFocus(Q)},D=Q=>{f&&f(Q),T&&T.onBlur&&T.onBlur(Q)},U=Q=>{if(Q.nativeEvent.defaultPrevented)return;const ee=Q.target.checked;I(ee),m&&m(Q,ee)};let N=c;T&&typeof N>"u"&&(N=T.disabled);const $=w==="checkbox"||w==="radio",k={...t,checked:_,disabled:N,disableFocusRipple:d,edge:u},V=RA(k),B={slots:O,slotProps:{input:y,...L}},[W,q]=Oe("root",{ref:n,elementType:qA,className:V.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",...M},getSlotProps:Q=>({...Q,onFocus:ee=>{Q.onFocus?.(ee),F(ee)},onBlur:ee=>{Q.onBlur?.(ee),D(ee)}}),ownerState:k,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:N,role:void 0,tabIndex:null}}),[X,G]=Oe("input",{ref:b,elementType:YA,className:V.input,externalForwardedProps:B,getSlotProps:Q=>({...Q,onChange:ee=>{Q.onChange?.(ee),U(ee)}}),ownerState:k,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:N,id:$?h:void 0,name:g,readOnly:C,required:x,tabIndex:v,type:w,...w==="checkbox"&&A===void 0?{}:{value:A}}});return l.jsxs(W,{...q,children:[l.jsx(X,{...G}),_?s:p]})});process.env.NODE_ENV!=="production"&&(Ba.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:Mt,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 KA=it(l.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"),GA=it(l.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"),XA=it(l.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 JA(e){return Te("MuiCheckbox",e)}const fd=Ae("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),QA=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,s={root:["root",n&&"indeterminate",`color${te(r)}`,`size${te(i)}`]},a=ke(s,JA,t);return{...t,...a}},ZA=J(Ba,{shouldForwardProp:e=>Pt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${te(n.size)}`],n.color!=="default"&&t[`color${te(n.color)}`]]}})(Ce(({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(dt()).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(dt()).map(([t])=>({props:{color:t},style:{[`&.${fd.checked}, &.${fd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${fd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),ek=l.jsx(GA,{}),tk=l.jsx(KA,{}),nk=l.jsx(XA,{}),bt=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiCheckbox"}),{checkedIcon:i=ek,color:s="primary",icon:a=tk,indeterminate:c=!1,indeterminateIcon:d=nk,inputProps:u,size:p="medium",disableRipple:h=!1,className:y,slots:b={},slotProps:g={},...f}=r,m=c?d:a,S=c?d:i,C={...r,disableRipple:h,color:s,indeterminate:c,size:p},x=QA(C),v=g.input??u,[w,A]=Oe("root",{ref:n,elementType:ZA,className:be(x.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:g,...f},ownerState:C,additionalProps:{type:"checkbox",icon:E.cloneElement(m,{fontSize:m.props.fontSize??p}),checkedIcon:E.cloneElement(S,{fontSize:S.props.fontSize??p}),disableRipple:h,slots:b,slotProps:{input:Jh(typeof v=="function"?v(C):v,{"data-indeterminate":c})}}});return l.jsx(w,{...A,classes:x})});process.env.NODE_ENV!=="production"&&(bt.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 Yg(e){return e.substring(2).toLowerCase()}function rk(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function ja(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=e,a=E.useRef(!1),c=E.useRef(null),d=E.useRef(!1),u=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const p=ft(Er(t),c),h=Ft(g=>{const f=u.current;u.current=!1;const m=mt(c.current);if(!d.current||!c.current||"clientX"in g&&rk(g,m))return;if(a.current){a.current=!1;return}let S;g.composedPath?S=g.composedPath().includes(c.current):S=!m.documentElement.contains(g.target)||c.current.contains(g.target),!S&&(n||!f)&&i(g)}),y=g=>f=>{u.current=!0;const m=t.props[g];m&&m(f)},b={ref:p};return s!==!1&&(b[s]=y(s)),E.useEffect(()=>{if(s!==!1){const g=Yg(s),f=mt(c.current),m=()=>{a.current=!0};return f.addEventListener(g,h),f.addEventListener("touchmove",m),()=>{f.removeEventListener(g,h),f.removeEventListener("touchmove",m)}}},[h,s]),r!==!1&&(b[r]=y(r)),E.useEffect(()=>{if(r!==!1){const g=Yg(r),f=mt(c.current);return f.addEventListener(g,h),()=>{f.removeEventListener(g,h)}}},[h,r]),E.cloneElement(t,b)}process.env.NODE_ENV!=="production"&&(ja.propTypes={children:kr.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"&&(ja.propTypes=$c(ja.propTypes));const or=yC({createStyledComponent:J("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${te(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Pe({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(or.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 Kg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function ok(e){const t=mt(e);return t.body===e?jn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ki(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Gg(e){return parseInt(jn(e).getComputedStyle(e).paddingRight,10)||0}function ik(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 Xg(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,a=>{const c=!s.includes(a),d=!ik(a);c&&d&&ki(a,i)})}function hd(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function sk(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(ok(r)){const a=Kg(jn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Gg(r)+a}px`;const c=mt(r).querySelectorAll(".mui-fixed");[].forEach.call(c,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Gg(d)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=mt(r).body;else{const a=r.parentElement,c=jn(r);s=a?.nodeName==="HTML"&&c.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:c})=>{s?a.style.setProperty(c,s):a.style.removeProperty(c)})}}function ak(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class lk{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&&ki(t.modalRef,!1);const i=ak(n);Xg(n,t.mount,t.modalRef,i,!0);const s=hd(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=hd(this.containers,s=>s.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=sk(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=hd(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&&ki(t.modalRef,n),Xg(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&&ki(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Pi(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const ck=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dk(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 pk(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 uk(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||pk(e))}function fk(e){const t=[],n=[];return Array.from(e.querySelectorAll(ck)).forEach((r,i)=>{const s=dk(r);s===-1||!uk(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 hk(){return!0}function Wa(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=fk,isEnabled:a=hk,open:c}=e,d=E.useRef(!1),u=E.useRef(null),p=E.useRef(null),h=E.useRef(null),y=E.useRef(null),b=E.useRef(!1),g=E.useRef(null),f=ft(Er(t),g),m=E.useRef(null);E.useEffect(()=>{!c||!g.current||(b.current=!n)},[n,c]),E.useEffect(()=>{if(!c||!g.current)return;const x=mt(g.current),v=Pi(x);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")),b.current&&g.current.focus()),()=>{i||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[c]),E.useEffect(()=>{if(!c||!g.current)return;const x=mt(g.current),v=Pi(x),w=L=>{m.current=L,!(r||!a()||L.key!=="Tab")&&v===g.current&&L.shiftKey&&(d.current=!0,p.current&&p.current.focus())},A=()=>{const L=g.current;if(L===null)return;const M=Pi(x);if(!x.hasFocus()||!a()||d.current){d.current=!1;return}if(L.contains(M)||r&&M!==u.current&&M!==p.current)return;if(M!==y.current)y.current=null;else if(y.current!==null)return;if(!b.current)return;let _=[];if((M===u.current||M===p.current)&&(_=s(g.current)),_.length>0){const I=!!(m.current?.shiftKey&&m.current?.key==="Tab"),T=_[0],F=_[_.length-1];typeof T!="string"&&typeof F!="string"&&(I?F.focus():T.focus())}else L.focus()};x.addEventListener("focusin",A),x.addEventListener("keydown",w,!0);const O=setInterval(()=>{const L=Pi(x);L&&L.tagName==="BODY"&&A()},50);return()=>{clearInterval(O),x.removeEventListener("focusin",A),x.removeEventListener("keydown",w,!0)}},[n,r,i,a,c,s]);const S=x=>{h.current===null&&(h.current=x.relatedTarget),b.current=!0,y.current=x.target;const v=t.props.onFocus;v&&v(x)},C=x=>{h.current===null&&(h.current=x.relatedTarget),b.current=!0};return l.jsxs(E.Fragment,{children:[l.jsx("div",{tabIndex:c?0:-1,onFocus:C,ref:u,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:f,onFocus:S}),l.jsx("div",{tabIndex:c?0:-1,onFocus:C,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Wa.propTypes={children:kr,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Wa.propTypes=$c(Wa.propTypes));function gk(e){return typeof e=="function"?e():e}function mk(e){return e?e.props.hasOwnProperty("in"):!1}const Jg=()=>{},Va=new lk;function yk(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:c,onClose:d,open:u,rootRef:p}=e,h=E.useRef({}),y=E.useRef(null),b=E.useRef(null),g=ft(b,p),[f,m]=E.useState(!u),S=mk(c);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const x=()=>mt(y.current),v=()=>(h.current.modalRef=b.current,h.current.mount=y.current,h.current),w=()=>{Va.mount(v(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},A=Ft(()=>{const U=gk(t)||x().body;Va.add(v(),U),b.current&&w()}),O=()=>Va.isTopModal(v()),L=Ft(U=>{y.current=U,U&&(u&&O()?w():b.current&&ki(b.current,C))}),M=E.useCallback(()=>{Va.remove(v(),C)},[C]);E.useEffect(()=>()=>{M()},[M]),E.useEffect(()=>{u?A():(!S||!i)&&M()},[u,M,S,i,A]);const _=U=>N=>{U.onKeyDown?.(N),!(N.key!=="Escape"||N.which===229||!O())&&(n||(N.stopPropagation(),d&&d(N,"escapeKeyDown")))},I=U=>N=>{U.onClick?.(N),N.target===N.currentTarget&&d&&d(N,"backdropClick")};return{getRootProps:(U={})=>{const N=Sr(e);delete N.onTransitionEnter,delete N.onTransitionExited;const $={...N,...U};return{role:"presentation",...$,onKeyDown:_($),ref:g}},getBackdropProps:(U={})=>{const N=U;return{"aria-hidden":!0,...N,onClick:I(N),open:u}},getTransitionProps:()=>{const U=()=>{m(!1),s&&s()},N=()=>{m(!0),a&&a(),i&&M()};return{onEnter:Rc(U,c?.props.onEnter??Jg),onExited:Rc(N,c?.props.onExited??Jg)}},rootRef:g,portalRef:L,isTopModal:O,exited:f,hasTransition:S}}function bk(e){return Te("MuiModal",e)}Ae("MuiModal",["root","hidden","backdrop"]);const xk=e=>{const{open:t,exited:n,classes:r}=e;return ke({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},bk,r)},vk=J("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ce(({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"}}]}))),Sk=J(ud,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),ao=E.forwardRef(function(t,n){const r=Pe({name:"MuiModal",props:t}),{BackdropComponent:i=Sk,BackdropProps:s,classes:a,className:c,closeAfterTransition:d=!1,children:u,container:p,component:h,components:y={},componentsProps:b={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:x=!1,hideBackdrop:v=!1,keepMounted:w=!1,onClose:A,onTransitionEnter:O,onTransitionExited:L,open:M,slotProps:_={},slots:I={},theme:T,...F}=r,D={...r,closeAfterTransition:d,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:S,disableRestoreFocus:C,disableScrollLock:x,hideBackdrop:v,keepMounted:w},{getRootProps:U,getBackdropProps:N,getTransitionProps:$,portalRef:k,isTopModal:V,exited:B,hasTransition:W}=yk({...D,rootRef:n}),q={...D,exited:B},X=xk(q),G={};if(u.props.tabIndex===void 0&&(G.tabIndex="-1"),W){const{onEnter:re,onExited:ce}=$();G.onEnter=re,G.onExited=ce}const Q={slots:{root:y.Root,backdrop:y.Backdrop,...I},slotProps:{...b,..._}},[ee,oe]=Oe("root",{ref:n,elementType:vk,externalForwardedProps:{...Q,...F,component:h},getSlotProps:U,ownerState:q,className:be(c,X?.root,!q.open&&q.exited&&X?.hidden)}),[le,ae]=Oe("backdrop",{ref:s?.ref,elementType:i,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:re=>N({...re,onClick:ce=>{re?.onClick&&re.onClick(ce)}}),className:be(s?.className,X?.backdrop),ownerState:q});return!w&&!M&&(!W||B)?null:l.jsx(Ei,{ref:k,container:p,disablePortal:S,children:l.jsxs(ee,{...oe,children:[!v&&i?l.jsx(le,{...ae}):null,l.jsx(Wa,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:C,isEnabled:V,open:M,children:E.cloneElement(u,G)})]})})});process.env.NODE_ENV!=="production"&&(ao.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:kr.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([Vn,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 wk(e){return Te("MuiDialog",e)}const gd=Ae("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),md=E.createContext({});process.env.NODE_ENV!=="production"&&(md.displayName="DialogContext");const Ck=J(ud,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Ek=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${te(n)}`],paper:["paper",`paperScroll${te(n)}`,`paperWidth${te(String(r))}`,i&&"paperFullWidth",s&&"paperFullScreen"]};return ke(a,wk,t)},Tk=J(ao,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Ak=J("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${te(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"}}}]}),kk=J(cn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${te(n.scroll)}`],t[`paperWidth${te(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ce(({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)`,[`&.${gd.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}`,[`&.${gd.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,[`&.${gd.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),lo=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiDialog"}),i=vn(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":c,"aria-modal":d=!0,BackdropComponent:u,BackdropProps:p,children:h,className:y,disableEscapeKeyDown:b=!1,fullScreen:g=!1,fullWidth:f=!1,maxWidth:m="sm",onClick:S,onClose:C,open:x,PaperComponent:v=cn,PaperProps:w={},scroll:A="paper",slots:O={},slotProps:L={},TransitionComponent:M=za,transitionDuration:_=s,TransitionProps:I,...T}=r,F={...r,disableEscapeKeyDown:b,fullScreen:g,fullWidth:f,maxWidth:m,scroll:A},D=Ek(F),U=E.useRef(),N=he=>{U.current=he.target===he.currentTarget},$=he=>{S&&S(he),U.current&&(U.current=null,C&&C(he,"backdropClick"))},k=mr(c),V=E.useMemo(()=>({titleId:k}),[k]),B={transition:M,...O},W={transition:I,paper:w,backdrop:p,...L},q={slots:B,slotProps:W},[X,G]=Oe("root",{elementType:Tk,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:F,className:be(D.root,y),ref:n}),[Q,ee]=Oe("backdrop",{elementType:Ck,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:F}),[oe,le]=Oe("paper",{elementType:kk,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:F,className:be(D.paper,w.className)}),[ae,re]=Oe("container",{elementType:Ak,externalForwardedProps:q,ownerState:F,className:D.container}),[ce,H]=Oe("transition",{elementType:za,externalForwardedProps:q,ownerState:F,additionalProps:{appear:!0,in:x,timeout:_,role:"presentation"}});return l.jsx(X,{closeAfterTransition:!0,slots:{backdrop:Q},slotProps:{backdrop:{transitionDuration:_,as:u,...ee}},disableEscapeKeyDown:b,onClose:C,open:x,onClick:$,...G,...T,children:l.jsx(ce,{...H,children:l.jsx(ae,{onMouseDown:N,...re,children:l.jsx(oe,{as:v,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":k,"aria-modal":d,...le,children:l.jsx(md.Provider,{value:V,children:h})})})})})});process.env.NODE_ENV!=="production"&&(lo.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 Pk(e){return Te("MuiDialogActions",e)}Ae("MuiDialogActions",["root","spacing"]);const Ok=e=>{const{classes:t,disableSpacing:n}=e;return ke({root:["root",!n&&"spacing"]},Pk,t)},Ik=J("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}}}]}),yd=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:s=!1,...a}=r,c={...r,disableSpacing:s},d=Ok(c);return l.jsx(Ik,{className:be(d.root,i),ownerState:c,ref:n,...a})});process.env.NODE_ENV!=="production"&&(yd.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 Nk(e){return Te("MuiDialogContent",e)}Ae("MuiDialogContent",["root","dividers"]);function Fk(e){return Te("MuiDialogTitle",e)}const Mk=Ae("MuiDialogTitle",["root"]),Dk=e=>{const{classes:t,dividers:n}=e;return ke({root:["root",n&&"dividers"]},Nk,t)},_k=J("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ce(({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:{[`.${Mk.root} + &`]:{paddingTop:0}}}]}))),Oi=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiDialogContent"}),{className:i,dividers:s=!1,...a}=r,c={...r,dividers:s},d=Dk(c);return l.jsx(_k,{className:be(d.root,i),ownerState:c,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Oi.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 $k=e=>{const{classes:t}=e;return ke({root:["root"]},Fk,t)},zk=J(j,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),co=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiDialogTitle"}),{className:i,id:s,...a}=r,c=r,d=$k(c),{titleId:u=s}=E.useContext(md);return l.jsx(zk,{component:"h2",className:be(d.root,i),ownerState:c,ref:n,variant:"h6",id:s??u,...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 Lk(e){return Te("MuiDivider",e)}const Qg=Ae("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Bk=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:s,orientation:a,textAlign:c,variant:d}=e;return ke({root:["root",t&&"absolute",d,s&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",c==="right"&&a!=="vertical"&&"textAlignRight",c==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},Lk,r)},jk=J("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]}})(Ce(({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%"}}}]}))),Wk=J("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ce(({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)`}}]}))),tn=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiDivider"}),{absolute:i=!1,children:s,className:a,orientation:c="horizontal",component:d=s||c==="vertical"?"div":"hr",flexItem:u=!1,light:p=!1,role:h=d!=="hr"?"separator":void 0,textAlign:y="center",variant:b="fullWidth",...g}=r,f={...r,absolute:i,component:d,flexItem:u,light:p,orientation:c,role:h,textAlign:y,variant:b},m=Bk(f);return l.jsx(jk,{as:d,className:be(m.root,a),role:h,ref:n,ownerState:f,"aria-orientation":h==="separator"&&(d!=="hr"||c==="vertical")?c:void 0,...g,children:s?l.jsx(Wk,{className:m.wrapper,ownerState:f,children:s}):null})});tn&&(tn.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(tn.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 Vk=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:s,hiddenLabel:a,multiline:c}=e,d={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",s==="small"&&`size${te(s)}`,a&&"hiddenLabel",c&&"multiline"],input:["input"]},u=ke(d,xA,t);return{...t,...u}},Uk=J(_a,{shouldForwardProp:e=>Pt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ma(e,t),!n.disableUnderline&&t.underline]}})(Ce(({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}},[`&.${Tr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Tr.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"},[`&.${Tr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Tr.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(.${Tr.disabled}, .${Tr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Tr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(dt()).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:c})=>a.multiline&&c==="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}}]}})),Hk=J($a,{name:"MuiFilledInput",slot:"Input",overridesResolver:Da})(Ce(({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}}]}))),Ua=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:c=!1,hiddenLabel:d,inputComponent:u="input",multiline:p=!1,slotProps:h,slots:y={},type:b="text",...g}=r,f={...r,disableUnderline:i,fullWidth:c,inputComponent:u,multiline:p,type:b},m=Vk(r),S={root:{ownerState:f},input:{ownerState:f}},C=h??a?kt(S,h??a):S,x=y.root??s.Root??Uk,v=y.input??s.Input??Hk;return l.jsx(Ti,{slots:{root:x,input:v},slotProps:C,fullWidth:c,inputComponent:u,multiline:p,ref:n,type:b,...g,classes:m})});process.env.NODE_ENV!=="production"&&(Ua.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:Mt,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}),Ua.muiName="Input";function Rk(e){return Te("MuiFormControl",e)}Ae("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const qk=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${te(n)}`,r&&"fullWidth"]};return ke(i,Rk,t)},Yk=J("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${te(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%"}}]}),Ha=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiFormControl"}),{children:i,className:s,color:a="primary",component:c="div",disabled:d=!1,error:u=!1,focused:p,fullWidth:h=!1,hiddenLabel:y=!1,margin:b="none",required:g=!1,size:f="medium",variant:m="outlined",...S}=r,C={...r,color:a,component:c,disabled:d,error:u,fullWidth:h,hiddenLabel:y,margin:b,required:g,size:f,variant:m},x=qk(C),[v,w]=E.useState(()=>{let N=!1;return i&&E.Children.forEach(i,$=>{if(!Lc($,["Input","Select"]))return;const k=Lc($,["Select"])?$.props.input:$;k&&hA(k.props)&&(N=!0)}),N}),[A,O]=E.useState(()=>{let N=!1;return i&&E.Children.forEach(i,$=>{Lc($,["Input","Select"])&&(Fa($.props,!0)||Fa($.props.inputProps,!0))&&(N=!0)}),N}),[L,M]=E.useState(!1);d&&L&&M(!1);const _=p!==void 0&&!d?p:L;let I;const T=E.useRef(!1);process.env.NODE_ENV!=="production"&&(I=()=>(T.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
172
|
+
`)),T.current=!0,()=>{T.current=!1}));const F=E.useCallback(()=>{O(!0)},[]),D=E.useCallback(()=>{O(!1)},[]),U=E.useMemo(()=>({adornedStart:v,setAdornedStart:w,color:a,disabled:d,error:u,filled:A,focused:_,fullWidth:h,hiddenLabel:y,size:f,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:D,onFilled:F,registerEffect:I,required:g,variant:m}),[v,a,d,u,A,_,h,y,I,D,F,g,f,m]);return l.jsx(Na.Provider,{value:U,children:l.jsx(Yk,{as:c,ownerState:C,className:be(x.root,s),ref:n,...S,children:i})})});process.env.NODE_ENV!=="production"&&(Ha.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 Kk(e){return Te("MuiFormControlLabel",e)}const Ii=Ae("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Gk=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:s}=e,a={root:["root",n&&"disabled",`labelPlacement${te(r)}`,i&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return ke(a,Kk,t)},Xk=J("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ii.label}`]:t.label},t.root,t[`labelPlacement${te(n.labelPlacement)}`]]}})(Ce(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ii.disabled}`]:{cursor:"default"},[`& .${Ii.label}`]:{[`&.${Ii.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}}]}))),Jk=J("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Ce(({theme:e})=>({[`&.${Ii.error}`]:{color:(e.vars||e).palette.error.main}}))),kn=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:a={},control:c,disabled:d,disableTypography:u,inputRef:p,label:h,labelPlacement:y="end",name:b,onChange:g,required:f,slots:m={},slotProps:S={},value:C,...x}=r,v=Tn(),w=d??c.props.disabled??v?.disabled,A=f??c.props.required,O={disabled:w,required:A};["checked","name","onChange","value","inputRef"].forEach(U=>{typeof c.props[U]>"u"&&typeof r[U]<"u"&&(O[U]=r[U])});const L=rr({props:r,muiFormControl:v,states:["error"]}),M={...r,disabled:w,labelPlacement:y,required:A,error:L.error},_=Gk(M),I={slots:m,slotProps:{...a,...S}},[T,F]=Oe("typography",{elementType:j,externalForwardedProps:I,ownerState:M});let D=h;return D!=null&&D.type!==j&&!u&&(D=l.jsx(T,{component:"span",...F,className:be(_.label,F?.className),children:D})),l.jsxs(Xk,{className:be(_.root,s),ownerState:M,ref:n,...x,children:[E.cloneElement(c,O),A?l.jsxs("div",{children:[D,l.jsxs(Jk,{ownerState:M,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):D]})});process.env.NODE_ENV!=="production"&&(kn.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:Mt,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 Qk(e){return Te("MuiFormGroup",e)}Ae("MuiFormGroup",["root","row","error"]);const Zk=e=>{const{classes:t,row:n,error:r}=e;return ke({root:["root",n&&"row",r&&"error"]},Qk,t)},eP=J("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"}}]}),Zg=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiFormGroup"}),{className:i,row:s=!1,...a}=r,c=Tn(),d=rr({props:r,muiFormControl:c,states:["error"]}),u={...r,row:s,error:d.error},p=Zk(u);return l.jsx(eP,{className:be(p.root,i),ownerState:u,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Zg.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 tP(e){return Te("MuiFormHelperText",e)}const em=Ae("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var tm;const nP=e=>{const{classes:t,contained:n,size:r,disabled:i,error:s,filled:a,focused:c,required:d}=e,u={root:["root",i&&"disabled",s&&"error",r&&`size${te(r)}`,n&&"contained",c&&"focused",a&&"filled",d&&"required"]};return ke(u,tP,t)},rP=J("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${te(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ce(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${em.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${em.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}}]}))),nm=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiFormHelperText"}),{children:i,className:s,component:a="p",disabled:c,error:d,filled:u,focused:p,margin:h,required:y,variant:b,...g}=r,f=Tn(),m=rr({props:r,muiFormControl:f,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=nP(S);return l.jsx(rP,{as:a,className:be(C.root,s),ref:n,...g,ownerState:S,children:i===" "?tm||(tm=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});process.env.NODE_ENV!=="production"&&(nm.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 oP(e){return Te("MuiFormLabel",e)}const Ni=Ae("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),iP=e=>{const{classes:t,color:n,focused:r,disabled:i,error:s,filled:a,required:c}=e,d={root:["root",`color${te(n)}`,i&&"disabled",s&&"error",a&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",s&&"error"]};return ke(d,oP,t)},sP=J("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ce(({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(dt()).map(([t])=>({props:{color:t},style:{[`&.${Ni.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ni.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ni.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),aP=J("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ce(({theme:e})=>({[`&.${Ni.error}`]:{color:(e.vars||e).palette.error.main}}))),Fi=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiFormLabel"}),{children:i,className:s,color:a,component:c="label",disabled:d,error:u,filled:p,focused:h,required:y,...b}=r,g=Tn(),f=rr({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),m={...r,color:f.color||"primary",component:c,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},S=iP(m);return l.jsxs(sP,{as:c,ownerState:m,className:be(S.root,s),ref:n,...b,children:[i,f.required&&l.jsxs(aP,{ownerState:m,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Fi.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 bd(e){return`scale(${e}, ${e**2})`}const lP={entering:{opacity:1,transform:bd(1)},entered:{opacity:1,transform:"none"}},xd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),po=E.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:s,easing:a,in:c,onEnter:d,onEntered:u,onEntering:p,onExit:h,onExited:y,onExiting:b,style:g,timeout:f="auto",TransitionComponent:m=Sn,...S}=t,C=vr(),x=E.useRef(),v=vn(),w=E.useRef(null),A=ft(w,Er(s),n),O=U=>N=>{if(U){const $=w.current;N===void 0?U($):U($,N)}},L=O(p),M=O((U,N)=>{sg(U);const{duration:$,delay:k,easing:V}=Sa({style:g,timeout:f,easing:a},{mode:"enter"});let B;f==="auto"?(B=v.transitions.getAutoHeightDuration(U.clientHeight),x.current=B):B=$,U.style.transition=[v.transitions.create("opacity",{duration:B,delay:k}),v.transitions.create("transform",{duration:xd?B:B*.666,delay:k,easing:V})].join(","),d&&d(U,N)}),_=O(u),I=O(b),T=O(U=>{const{duration:N,delay:$,easing:k}=Sa({style:g,timeout:f,easing:a},{mode:"exit"});let V;f==="auto"?(V=v.transitions.getAutoHeightDuration(U.clientHeight),x.current=V):V=N,U.style.transition=[v.transitions.create("opacity",{duration:V,delay:$}),v.transitions.create("transform",{duration:xd?V:V*.666,delay:xd?$:$||V*.333,easing:k})].join(","),U.style.opacity=0,U.style.transform=bd(.75),h&&h(U)}),F=O(y),D=U=>{f==="auto"&&C.start(x.current||0,U),r&&r(w.current,U)};return l.jsx(m,{appear:i,in:c,nodeRef:w,onEnter:M,onEntered:_,onEntering:L,onExit:T,onExited:F,onExiting:I,addEndListener:D,timeout:f==="auto"?null:f,...S,children:(U,{ownerState:N,...$})=>E.cloneElement(s,{style:{opacity:0,transform:bd(.75),visibility:U==="exited"&&!c?"hidden":void 0,...lP[U],...g,...s.props.style},ref:A,...$})})});process.env.NODE_ENV!=="production"&&(po.propTypes={addEndListener:o.func,appear:o.bool,children:kr.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})])}),po&&(po.muiSupportAuto=!0);const cP=e=>{const{classes:t,disableUnderline:n}=e,i=ke({root:["root",!n&&"underline"],input:["input"]},yA,t);return{...t,...i}},dP=J(_a,{shouldForwardProp:e=>Pt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ma(e,t),!n.disableUnderline&&t.underline]}})(Ce(({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"},[`&.${Ai.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ai.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(.${Ai.disabled}, .${Ai.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ai.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(dt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),pP=J($a,{name:"MuiInput",slot:"Input",overridesResolver:Da})({}),Ra=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:c=!1,inputComponent:d="input",multiline:u=!1,slotProps:p,slots:h={},type:y="text",...b}=r,g=cP(r),m={root:{ownerState:{disableUnderline:i}}},S=p??a?kt(p??a,m):m,C=h.root??s.Root??dP,x=h.input??s.Input??pP;return l.jsx(Ti,{slots:{root:C,input:x},slotProps:S,fullWidth:c,inputComponent:d,multiline:u,ref:n,type:y,...b,classes:g})});process.env.NODE_ENV!=="production"&&(Ra.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:Mt,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}),Ra.muiName="Input";function uP(e){return Te("MuiInputLabel",e)}Ae("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const fP=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:s,variant:a,required:c}=e,d={root:["root",n&&"formControl",!s&&"animated",i&&"shrink",r&&r!=="medium"&&`size${te(r)}`,a],asterisk:[c&&"asterisk"]},u=ke(d,uP,t);return{...t,...u}},hP=J(Fi,{shouldForwardProp:e=>Pt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ni.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]]}})(Ce(({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)"}}]}))),rm=E.forwardRef(function(t,n){const r=Pe({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:s,shrink:a,variant:c,className:d,...u}=r,p=Tn();let h=a;typeof h>"u"&&p&&(h=p.filled||p.focused||p.adornedStart);const y=rr({props:r,muiFormControl:p,states:["size","variant","required","focused"]}),b={...r,disableAnimation:i,formControl:p,shrink:h,size:y.size,variant:y.variant,required:y.required,focused:y.focused},g=fP(b);return l.jsx(hP,{"data-shrink":h,ref:n,className:be(g.root,d),...u,ownerState:b,classes:g})});process.env.NODE_ENV!=="production"&&(rm.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 gP(e){return Te("MuiLinearProgress",e)}Ae("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const vd=4,Sd=Xn`
|
|
173
173
|
0% {
|
|
174
174
|
left: -35%;
|
|
175
175
|
right: 100%;
|
|
@@ -184,7 +184,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
184
184
|
left: 100%;
|
|
185
185
|
right: -90%;
|
|
186
186
|
}
|
|
187
|
-
`,
|
|
187
|
+
`,mP=typeof Sd!="string"?Gr`
|
|
188
188
|
animation: ${Sd} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
189
189
|
`:null,wd=Xn`
|
|
190
190
|
0% {
|
|
@@ -201,7 +201,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
201
201
|
left: 107%;
|
|
202
202
|
right: -8%;
|
|
203
203
|
}
|
|
204
|
-
`,
|
|
204
|
+
`,yP=typeof wd!="string"?Gr`
|
|
205
205
|
animation: ${wd} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
206
206
|
`:null,Cd=Xn`
|
|
207
207
|
0% {
|
|
@@ -218,37 +218,37 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
218
218
|
opacity: 1;
|
|
219
219
|
background-position: -200px -23px;
|
|
220
220
|
}
|
|
221
|
-
`,
|
|
221
|
+
`,bP=typeof Cd!="string"?Gr`
|
|
222
222
|
animation: ${Cd} 3s infinite linear;
|
|
223
|
-
`:null,mP=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${ne(r)}`,n],dashed:["dashed",`dashedColor${ne(r)}`],bar1:["bar","bar1",`barColor${ne(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${ne(r)}`,n==="buffer"&&`color${ne(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Te(i,uP,t)},Ed=(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),yP=Z("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ne(n.color)}`],t[n.variant]]}})(Se(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(ct()).map(([t])=>({props:{color:t},style:{backgroundColor:Ed(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)"}}]}))),bP=Z("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ne(n.color)}`]]}})(Se(({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(ct()).map(([t])=>{const n=Ed(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),gP||{animation:`${Cd} 3s infinite linear`}),xP=Z("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${ne(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Se(({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(ct()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${vd}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${vd}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:fP||{animation:`${Sd} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),vP=Z("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${ne(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Se(({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(ct()).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(ct()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Ed(e,t),transition:`transform .${vd}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:hP||{animation:`${wd} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),om=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiLinearProgress"}),{className:i,color:s="primary",value:a,valueBuffer:c,variant:d="indeterminate",...u}=r,p={...r,color:s,variant:d},h=mP(p),y=ui(),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 f=a-100;y&&(f=-f),g.bar1.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(d==="buffer")if(c!==void 0){let f=(c||0)-100;y&&(f=-f),g.bar2.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return l.jsxs(yP,{className:be(h.root,i),ownerState:p,role:"progressbar",...x,ref:n,...u,children:[d==="buffer"?l.jsx(bP,{className:h.dashed,ownerState:p}):null,l.jsx(xP,{className:h.bar1,ownerState:p,style:g.bar1}),d==="determinate"?null:l.jsx(vP,{className:h.bar2,ownerState:p,style:g.bar2})]})});process.env.NODE_ENV!=="production"&&(om.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 Di=E.createContext({});process.env.NODE_ENV!=="production"&&(Di.displayName="ListContext");function SP(e){return Ce("MuiList",e)}Ee("MuiList",["root","padding","dense","subheader"]);const wP=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Te({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},SP,t)},CP=Z("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}}]}),im=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiList"}),{children:i,className:s,component:a="ul",dense:c=!1,disablePadding:d=!1,subheader:u,...p}=r,h=E.useMemo(()=>({dense:c}),[c]),y={...r,component:a,dense:c,disablePadding:d},x=wP(y);return l.jsx(Di.Provider,{value:h,children:l.jsxs(CP,{as:a,className:be(x.root,s),ref:n,ownerState:y,...p,children:[u,i]})})});process.env.NODE_ENV!=="production"&&(im.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 sm=Ee("MuiListItemIcon",["root","alignItemsFlexStart"]);function EP(e){return Ce("MuiListItemText",e)}const fo=Ee("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),TP=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:s}=e;return Te({root:["root",n&&"inset",s&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},EP,t)},AP=Z("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fo.primary}`]:t.primary},{[`& .${fo.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,[`.${mg.root}:where(& .${fo.primary})`]:{display:"block"},[`.${mg.root}:where(& .${fo.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Td=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiListItemText"}),{children:i,className:s,disableTypography:a=!1,inset:c=!1,primary:d,primaryTypographyProps:u,secondary:p,secondaryTypographyProps:h,slots:y={},slotProps:x={},...g}=r,{dense:f}=E.useContext(Di);let m=d??i,S=p;const C={...r,disableTypography:a,inset:c,primary:!!m,secondary:!!S,dense:f},b=TP(C),v={slots:y,slotProps:{primary:u,secondary:h,...x}},[w,A]=Pe("root",{className:be(b.root,s),elementType:AP,externalForwardedProps:{...v,...g},ownerState:C,ref:n}),[I,z]=Pe("primary",{className:b.primary,elementType:B,externalForwardedProps:v,ownerState:C}),[M,L]=Pe("secondary",{className:b.secondary,elementType:B,externalForwardedProps:v,ownerState:C});return m!=null&&m.type!==B&&!a&&(m=l.jsx(I,{variant:f?"body2":"body1",component:z?.variant?void 0:"span",...z,children:m})),S!=null&&S.type!==B&&!a&&(S=l.jsx(M,{variant:"body2",color:"textSecondary",...L,children:S})),l.jsxs(w,{...A,children:[m,S]})});process.env.NODE_ENV!=="production"&&(Td.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 Ad(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function am(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function lm(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 _i(e,t,n,r,i,s){let a=!1,c=i(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(a)return!1;a=!0}const d=r?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!lm(c,s)||d)c=i(e,c,n);else return c.focus(),!0}return!1}const cm=E.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:s=!1,children:a,className:c,disabledItemsFocusable:d=!1,disableListWrap:u=!1,onKeyDown:p,variant:h="selectedMenu",...y}=t,x=E.useRef(null),g=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Gt(()=>{i&&x.current.focus()},[i]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(b,{direction:v})=>{const w=!x.current.style.width;if(b.clientHeight<x.current.clientHeight&&w){const A=`${Kg(Wn(b))}px`;x.current.style[v==="rtl"?"paddingLeft":"paddingRight"]=A,x.current.style.width=`calc(100% + ${A})`}return x.current}}),[]);const f=b=>{const v=x.current,w=b.key;if(b.ctrlKey||b.metaKey||b.altKey){p&&p(b);return}const I=Oi(gt(v));if(w==="ArrowDown")b.preventDefault(),_i(v,I,u,d,Ad);else if(w==="ArrowUp")b.preventDefault(),_i(v,I,u,d,am);else if(w==="Home")b.preventDefault(),_i(v,null,u,d,Ad);else if(w==="End")b.preventDefault(),_i(v,null,u,d,am);else if(w.length===1){const z=g.current,M=w.toLowerCase(),L=performance.now();z.keys.length>0&&(L-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&M!==z.keys[0]&&(z.repeating=!1)),z.lastTime=L,z.keys.push(M);const O=I&&!z.repeating&&lm(I,z);z.previousKeyMatched&&(O||_i(v,I,!1,d,Ad,z))?b.preventDefault():z.previousKeyMatched=!1}p&&p(b)},m=ut(x,n);let S=-1;E.Children.forEach(a,(b,v)=>{if(!E.isValidElement(b)){S===v&&(S+=1,S>=a.length&&(S=-1));return}process.env.NODE_ENV!=="production"&&qc.isFragment(b)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
224
|
-
`)),
|
|
225
|
-
`))}return{top:H.top+dm(H,a.vertical),left:H.left+pm(H,a.horizontal)}},[s,a.horizontal,a.vertical,c,d]),T=E.useCallback(
|
|
226
|
-
`)),
|
|
223
|
+
`:null,xP=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${te(r)}`,n],dashed:["dashed",`dashedColor${te(r)}`],bar1:["bar","bar1",`barColor${te(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${te(r)}`,n==="buffer"&&`color${te(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return ke(i,gP,t)},Ed=(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),vP=J("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${te(n.color)}`],t[n.variant]]}})(Ce(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(dt()).map(([t])=>({props:{color:t},style:{backgroundColor:Ed(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)"}}]}))),SP=J("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${te(n.color)}`]]}})(Ce(({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(dt()).map(([t])=>{const n=Ed(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),bP||{animation:`${Cd} 3s infinite linear`}),wP=J("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${te(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Ce(({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(dt()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${vd}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${vd}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:mP||{animation:`${Sd} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),CP=J("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${te(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Ce(({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(dt()).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(dt()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Ed(e,t),transition:`transform .${vd}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:yP||{animation:`${wd} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),om=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiLinearProgress"}),{className:i,color:s="primary",value:a,valueBuffer:c,variant:d="indeterminate",...u}=r,p={...r,color:s,variant:d},h=xP(p),y=pi(),b={},g={bar1:{},bar2:{}};if(d==="determinate"||d==="buffer")if(a!==void 0){b["aria-valuenow"]=Math.round(a),b["aria-valuemin"]=0,b["aria-valuemax"]=100;let f=a-100;y&&(f=-f),g.bar1.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(d==="buffer")if(c!==void 0){let f=(c||0)-100;y&&(f=-f),g.bar2.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return l.jsxs(vP,{className:be(h.root,i),ownerState:p,role:"progressbar",...b,ref:n,...u,children:[d==="buffer"?l.jsx(SP,{className:h.dashed,ownerState:p}):null,l.jsx(wP,{className:h.bar1,ownerState:p,style:g.bar1}),d==="determinate"?null:l.jsx(CP,{className:h.bar2,ownerState:p,style:g.bar2})]})});process.env.NODE_ENV!=="production"&&(om.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 Mi=E.createContext({});process.env.NODE_ENV!=="production"&&(Mi.displayName="ListContext");function EP(e){return Te("MuiList",e)}Ae("MuiList",["root","padding","dense","subheader"]);const TP=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return ke({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},EP,t)},AP=J("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}}]}),im=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiList"}),{children:i,className:s,component:a="ul",dense:c=!1,disablePadding:d=!1,subheader:u,...p}=r,h=E.useMemo(()=>({dense:c}),[c]),y={...r,component:a,dense:c,disablePadding:d},b=TP(y);return l.jsx(Mi.Provider,{value:h,children:l.jsxs(AP,{as:a,className:be(b.root,s),ref:n,ownerState:y,...p,children:[u,i]})})});process.env.NODE_ENV!=="production"&&(im.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 sm=Ae("MuiListItemIcon",["root","alignItemsFlexStart"]);function kP(e){return Te("MuiListItemText",e)}const uo=Ae("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),PP=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:s}=e;return ke({root:["root",n&&"inset",s&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},kP,t)},OP=J("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${uo.primary}`]:t.primary},{[`& .${uo.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,[`.${mg.root}:where(& .${uo.primary})`]:{display:"block"},[`.${mg.root}:where(& .${uo.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Td=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiListItemText"}),{children:i,className:s,disableTypography:a=!1,inset:c=!1,primary:d,primaryTypographyProps:u,secondary:p,secondaryTypographyProps:h,slots:y={},slotProps:b={},...g}=r,{dense:f}=E.useContext(Mi);let m=d??i,S=p;const C={...r,disableTypography:a,inset:c,primary:!!m,secondary:!!S,dense:f},x=PP(C),v={slots:y,slotProps:{primary:u,secondary:h,...b}},[w,A]=Oe("root",{className:be(x.root,s),elementType:OP,externalForwardedProps:{...v,...g},ownerState:C,ref:n}),[O,L]=Oe("primary",{className:x.primary,elementType:j,externalForwardedProps:v,ownerState:C}),[M,_]=Oe("secondary",{className:x.secondary,elementType:j,externalForwardedProps:v,ownerState:C});return m!=null&&m.type!==j&&!a&&(m=l.jsx(O,{variant:f?"body2":"body1",component:L?.variant?void 0:"span",...L,children:m})),S!=null&&S.type!==j&&!a&&(S=l.jsx(M,{variant:"body2",color:"textSecondary",..._,children:S})),l.jsxs(w,{...A,children:[m,S]})});process.env.NODE_ENV!=="production"&&(Td.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 Ad(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function am(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function lm(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 Di(e,t,n,r,i,s){let a=!1,c=i(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(a)return!1;a=!0}const d=r?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!lm(c,s)||d)c=i(e,c,n);else return c.focus(),!0}return!1}const cm=E.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:s=!1,children:a,className:c,disabledItemsFocusable:d=!1,disableListWrap:u=!1,onKeyDown:p,variant:h="selectedMenu",...y}=t,b=E.useRef(null),g=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xt(()=>{i&&b.current.focus()},[i]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:v})=>{const w=!b.current.style.width;if(x.clientHeight<b.current.clientHeight&&w){const A=`${Kg(jn(x))}px`;b.current.style[v==="rtl"?"paddingLeft":"paddingRight"]=A,b.current.style.width=`calc(100% + ${A})`}return b.current}}),[]);const f=x=>{const v=b.current,w=x.key;if(x.ctrlKey||x.metaKey||x.altKey){p&&p(x);return}const O=Pi(mt(v));if(w==="ArrowDown")x.preventDefault(),Di(v,O,u,d,Ad);else if(w==="ArrowUp")x.preventDefault(),Di(v,O,u,d,am);else if(w==="Home")x.preventDefault(),Di(v,null,u,d,Ad);else if(w==="End")x.preventDefault(),Di(v,null,u,d,am);else if(w.length===1){const L=g.current,M=w.toLowerCase(),_=performance.now();L.keys.length>0&&(_-L.lastTime>500?(L.keys=[],L.repeating=!0,L.previousKeyMatched=!0):L.repeating&&M!==L.keys[0]&&(L.repeating=!1)),L.lastTime=_,L.keys.push(M);const I=O&&!L.repeating&&lm(O,L);L.previousKeyMatched&&(I||Di(v,O,!1,d,Ad,L))?x.preventDefault():L.previousKeyMatched=!1}p&&p(x)},m=ft(b,n);let S=-1;E.Children.forEach(a,(x,v)=>{if(!E.isValidElement(x)){S===v&&(S+=1,S>=a.length&&(S=-1));return}process.env.NODE_ENV!=="production"&&qc.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
224
|
+
`)),x.props.disabled||(h==="selectedMenu"&&x.props.selected||S===-1)&&(S=v),S===v&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(S+=1,S>=a.length&&(S=-1))});const C=E.Children.map(a,(x,v)=>{if(v===S){const w={};return s&&(w.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(w.tabIndex=0),E.cloneElement(x,w)}return x});return l.jsx(im,{role:"menu",ref:m,className:c,onKeyDown:f,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 IP(e){return Te("MuiPopover",e)}Ae("MuiPopover",["root","paper"]);function dm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function pm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function um(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function _i(e){return typeof e=="function"?e():e}const NP=e=>{const{classes:t}=e;return ke({root:["root"],paper:["paper"]},IP,t)},FP=J(ao,{name:"MuiPopover",slot:"Root"})({}),fm=J(cn,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),kd=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:u,className:p,container:h,elevation:y=8,marginThreshold:b=16,open:g,PaperProps:f={},slots:m={},slotProps:S={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:v="auto",TransitionProps:w={},disableScrollLock:A=!1,...O}=r,L=E.useRef(),M={...r,anchorOrigin:a,anchorReference:d,elevation:y,marginThreshold:b,transformOrigin:C,TransitionComponent:x,transitionDuration:v,TransitionProps:w},_=NP(M),I=E.useCallback(()=>{if(d==="anchorPosition")return process.env.NODE_ENV!=="production"&&(c||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),c;const re=_i(s),ce=re&&re.nodeType===1?re:mt(L.current).body,H=ce.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const he=ce.getBoundingClientRect();process.env.NODE_ENV!=="test"&&he.top===0&&he.left===0&&he.right===0&&he.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:H.top+dm(H,a.vertical),left:H.left+pm(H,a.horizontal)}},[s,a.horizontal,a.vertical,c,d]),T=E.useCallback(re=>({vertical:dm(re,C.vertical),horizontal:pm(re,C.horizontal)}),[C.horizontal,C.vertical]),F=E.useCallback(re=>{const ce={width:re.offsetWidth,height:re.offsetHeight},H=T(ce);if(d==="none")return{top:null,left:null,transformOrigin:um(H)};const he=I();let de=he.top-H.vertical,ge=he.left-H.horizontal;const ze=de+ce.height,Ee=ge+ce.width,me=jn(_i(s)),De=me.innerHeight-b,Le=me.innerWidth-b;if(b!==null&&de<b){const Ne=de-b;de-=Ne,H.vertical+=Ne}else if(b!==null&&ze>De){const Ne=ze-De;de-=Ne,H.vertical+=Ne}if(process.env.NODE_ENV!=="production"&&ce.height>De&&ce.height&&De&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ce.height-De}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
226
|
+
`)),b!==null&&ge<b){const Ne=ge-b;ge-=Ne,H.horizontal+=Ne}else if(Ee>Le){const Ne=Ee-Le;ge-=Ne,H.horizontal+=Ne}return{top:`${Math.round(de)}px`,left:`${Math.round(ge)}px`,transformOrigin:um(H)}},[s,d,I,T,b]),[D,U]=E.useState(g),N=E.useCallback(()=>{const re=L.current;if(!re)return;const ce=F(re);ce.top!==null&&re.style.setProperty("top",ce.top),ce.left!==null&&(re.style.left=ce.left),re.style.transformOrigin=ce.transformOrigin,U(!0)},[F]);E.useEffect(()=>(A&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[s,A,N]);const $=()=>{N()},k=()=>{U(!1)};E.useEffect(()=>{g&&N()}),E.useImperativeHandle(i,()=>g?{updatePosition:()=>{N()}}:null,[g,N]),E.useEffect(()=>{if(!g)return;const re=Gh(()=>{N()}),ce=jn(_i(s));return ce.addEventListener("resize",re),()=>{re.clear(),ce.removeEventListener("resize",re)}},[s,g,N]);let V=v;const B={slots:{transition:x,...m},slotProps:{transition:w,paper:f,...S}},[W,q]=Oe("transition",{elementType:po,externalForwardedProps:B,ownerState:M,getSlotProps:re=>({...re,onEntering:(ce,H)=>{re.onEntering?.(ce,H),$()},onExited:ce=>{re.onExited?.(ce),k()}}),additionalProps:{appear:!0,in:g}});v==="auto"&&!W.muiSupportAuto&&(V=void 0);const X=h||(s?mt(_i(s)).body:void 0),[G,{slots:Q,slotProps:ee,...oe}]=Oe("root",{ref:n,elementType:FP,externalForwardedProps:{...B,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:Jh(typeof S.backdrop=="function"?S.backdrop(M):S.backdrop,{invisible:!0})},container:X,open:g},ownerState:M,className:be(_.root,p)}),[le,ae]=Oe("paper",{ref:L,className:_.paper,elementType:fm,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:D?void 0:{opacity:0}},ownerState:M});return l.jsx(G,{...oe,...!tr(G)&&{slots:Q,slotProps:ee,disableScrollLock:A},children:l.jsx(W,{...q,timeout:V,children:l.jsx(le,{...ae,children:u})})})});process.env.NODE_ENV!=="production"&&(kd.propTypes={action:Mt,anchorEl:ln(o.oneOfType([Vn,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=_i(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([
|
|
229
|
-
`)),V.props.disabled||(m==="selectedMenu"&&V.props.selected||O===-1)&&(O=$))});const T={slots:S,slotProps:{list:d,transition:f,paper:h,...C}},N=En({elementType:S.root,externalSlotProps:C.root,ownerState:w,className:[A.root,a]}),[D,U]=Pe("paper",{className:A.paper,elementType:_P,externalForwardedProps:T,shouldForwardComponentProp:!0,ownerState:w}),[F,_]=Pe("list",{className:be(A.list,d.className),elementType:$P,shouldForwardComponentProp:!0,externalForwardedProps:T,getSlotProps:V=>({...V,onKeyDown:$=>{L($),V.onKeyDown?.($)}}),ownerState:w}),k=typeof T.slotProps.transition=="function"?T.slotProps.transition(w):T.slotProps.transition;return l.jsx(DP,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?NP:FP,slots:{root:S.root,paper:D,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:N,paper:U,backdrop:typeof C.backdrop=="function"?C.backdrop(w):C.backdrop,transition:{...k,onEntering:(...V)=>{M(...V),k?.onEntering?.(...V)}}},open:p,ref:n,transitionDuration:x,ownerState:w,...b,classes:y,children:l.jsx(F,{actions:z,autoFocus:i&&(O===-1||c),autoFocusItem:I,variant:m,..._,children:s})})});process.env.NODE_ENV!=="production"&&(zi.propTypes={anchorEl:o.oneOfType([Un,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 zP(e){return Ce("MuiMenuItem",e)}const Li=Ee("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),LP=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},BP=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:s,classes:a}=e,d=Te({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},zP,a);return{...a,...d}},jP=Z(mi,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:LP})(Se(({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"}},[`&.${Li.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Li.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Li.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)}},[`&.${Li.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Li.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Qg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Qg.inset}`]:{marginLeft:52},[`& .${fo.root}`]:{marginTop:0,marginBottom:0},[`& .${fo.inset}`]:{paddingLeft:36},[`& .${sm.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,[`& .${sm.root} svg`]:{fontSize:"1.25rem"}}}]}))),Be=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:a=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:u,role:p="menuitem",tabIndex:h,className:y,...x}=r,g=E.useContext(Di),f=E.useMemo(()=>({dense:a||g.dense||!1,disableGutters:d}),[g.dense,a,d]),m=E.useRef(null);Gt(()=>{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:f.dense,divider:c,disableGutters:d},C=BP(r),b=ut(m,n);let v;return r.disabled||(v=h!==void 0?h:-1),l.jsx(Di.Provider,{value:f,children:l.jsx(jP,{ref:b,role:p,tabIndex:v,component:s,focusVisibleClassName:be(C.focusVisible,u),className:be(C.root,y),...x,ownerState:S,classes:C})})});process.env.NODE_ENV!=="production"&&(Be.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 WP(e){return Ce("MuiMobileStepper",e)}Ee("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const VP=e=>{const{classes:t,position:n}=e,r={root:["root",`position${ne(n)}`],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return Te(r,WP,t)},UP=Z(cn,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ne(n.position)}`]]}})(Se(({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}}]}))),HP=Z("div",{name:"MuiMobileStepper",slot:"Dots"})({variants:[{props:{variant:"dots"},style:{display:"flex",flexDirection:"row"}}]}),RP=Z("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>hi(e)&&e!=="dotActive",overridesResolver:(e,t)=>{const{dotActive:n}=e;return[t.dot,n&&t.dotActive]}})(Se(({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}}]}))),qP=Z(om,{name:"MuiMobileStepper",slot:"Progress"})({variants:[{props:{variant:"progress"},style:{width:"50%"}}]}),hm=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiMobileStepper"}),{activeStep:i=0,backButton:s,className:a,LinearProgressProps:c,nextButton:d,position:u="bottom",steps:p,variant:h="dots",slots:y={},slotProps:x={},...g}=r,f={...r,activeStep:i,position:u,variant:h};let m;h==="progress"&&(p===1?m=100:m=Math.ceil(i/(p-1)*100));const S=VP(f),C={slots:y,slotProps:{progress:c,...x}},[b,v]=Pe("root",{ref:n,elementType:UP,shouldForwardComponentProp:!0,className:be(S.root,a),externalForwardedProps:{...C,...g},ownerState:f,additionalProps:{square:!0,elevation:0}}),[w,A]=Pe("dots",{className:S.dots,elementType:HP,externalForwardedProps:C,ownerState:f}),[I,z]=Pe("dot",{elementType:RP,externalForwardedProps:C,ownerState:f}),[M,L]=Pe("progress",{className:S.progress,elementType:qP,shouldForwardComponentProp:!0,externalForwardedProps:C,ownerState:f,additionalProps:{value:m,variant:"determinate"}});return l.jsxs(b,{...v,children:[s,h==="text"&&l.jsxs(E.Fragment,{children:[i+1," / ",p]}),h==="dots"&&l.jsx(w,{...A,children:[...new Array(p)].map((O,T)=>l.jsx(I,{...z,className:be(S.dot,z.className,T===i&&S.dotActive),dotActive:T===i},T))}),h==="progress"&&l.jsx(M,{...L}),d]})});process.env.NODE_ENV!=="production"&&(hm.propTypes={activeStep:wa,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:wa.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 YP(e){return Ce("MuiNativeSelect",e)}const Pd=Ee("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),KP=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,c={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ne(n)}`,s&&"iconOpen",r&&"disabled"]};return Te(c,YP,t)},gm=Z("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Pd.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}}}]})),GP=Z(gm,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Pd.multiple}`]:t.multiple}]}})({}),mm=Z("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Pd.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}}]})),XP=Z(mm,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ne(n.variant)}`],n.open&&t.iconOpen]}})({}),ym=E.forwardRef(function(t,n){const{className:r,disabled:i,error:s,IconComponent:a,inputRef:c,variant:d="standard",...u}=t,p={...t,disabled:i,variant:d,error:s},h=KP(p);return l.jsxs(E.Fragment,{children:[l.jsx(GP,{ownerState:p,className:be(h.select,r),disabled:i,ref:c||n,...u}),t.multiple?null:l.jsx(XP,{as:a,ownerState:p,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(ym.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Ft,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var bm;const JP=Z("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Tt})({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%"}),QP=Z("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Tt})(Se(({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 xm(e){const{children:t,classes:n,className:r,label:i,notched:s,...a}=e,c=i!=null&&i!=="",d={...e,notched:s,withLabel:c};return l.jsx(JP,{"aria-hidden":!0,className:r,ownerState:d,...a,children:l.jsx(QP,{ownerState:d,children:c?l.jsx("span",{children:i}):bm||(bm=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(xm.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const ZP=e=>{const{classes:t}=e,r=Te({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gA,t);return{...t,...r}},eO=Z(_a,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ma})(Se(({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 .${An.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${An.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${An.focused} .${An.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ct()).map(([n])=>({props:{color:n},style:{[`&.${An.focused} .${An.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${An.error} .${An.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${An.disabled} .${An.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=Z(xm,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Se(({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}})),nO=Z($a,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Da})(Se(({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}}]}))),qa=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:c,multiline:d=!1,notched:u,slots:p={},slotProps:h={},type:y="text",...x}=r,g=ZP(r),f=Tn(),m=rr({props:r,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...r,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:f,fullWidth:s,hiddenLabel:m.hiddenLabel,multiline:d,size:m.size,type:y},C=p.root??i.Root??eO,b=p.input??i.Input??nO,[v,w]=Pe("notchedOutline",{elementType:tO,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:p,slotProps:h},additionalProps:{label:c!=null&&c!==""&&m.required?l.jsxs(E.Fragment,{children:[c," ","*"]}):c}});return l.jsx(Ai,{slots:{root:C,input:b},slotProps:h,renderSuffix:A=>l.jsx(v,{...w,notched:typeof u<"u"?u:!!(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"&&(qa.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:Ft,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}),qa.muiName="Input";const rO=ot(l.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"),oO=ot(l.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"),iO=Z("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Tt})({position:"relative",display:"flex"}),sO=Z(rO,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),aO=Z(oO,{name:"MuiRadioButtonIcon"})(Se(({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 Od(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return l.jsxs(iO,{className:n.root,ownerState:i,children:[l.jsx(sO,{fontSize:r,className:n.background,ownerState:i}),l.jsx(aO,{fontSize:r,className:n.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(Od.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const Id=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(Id.displayName="RadioGroupContext");function lO(){return E.useContext(Id)}function cO(e){return Ce("MuiRadio",e)}const vm=Ee("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),dO=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ne(n)}`,r!=="medium"&&`size${ne(r)}`]};return{...t,...Te(i,cO,t)}},pO=Z(Ba,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ne(n.size)}`],t[`color${ne(n.color)}`]]}})(Se(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${vm.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(ct()).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(ct()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${vm.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function uO(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const fO=l.jsx(Od,{checked:!0}),hO=l.jsx(Od,{}),ho=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=fO,color:a="primary",icon:c=hO,name:d,onChange:u,size:p="medium",className:h,disabled:y,disableRipple:x=!1,slots:g={},slotProps:f={},inputProps:m,...S}=r,C=Tn();let b=y;C&&typeof b>"u"&&(b=C.disabled),b??=!1;const v={...r,disabled:b,disableRipple:x,color:a,size:p},w=dO(v),A=lO();let I=i;const z=Rc(u,A&&A.onChange);let M=d;A&&(typeof I>"u"&&(I=uO(A.value,r.value)),typeof M>"u"&&(M=A.name));const L=f.input??m,[O,T]=Pe("root",{ref:n,elementType:pO,className:be(w.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...S},getSlotProps:N=>({...N,onChange:(D,...U)=>{N.onChange?.(D,...U),z(D,...U)}}),ownerState:v,additionalProps:{type:"radio",icon:E.cloneElement(c,{fontSize:c.props.fontSize??p}),checkedIcon:E.cloneElement(s,{fontSize:s.props.fontSize??p}),disabled:b,name:M,checked:I,slots:g,slotProps:{input:typeof L=="function"?L(v):L}}});return l.jsx(O,{...T,classes:w})});process.env.NODE_ENV!=="production"&&(ho.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:Ft,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 gO(e){return Ce("MuiRadioGroup",e)}Ee("MuiRadioGroup",["root","row","error"]);const mO=e=>{const{classes:t,row:n,error:r}=e;return Te({root:["root",n&&"row",r&&"error"]},gO,t)},Ya=E.forwardRef(function(t,n){const{actions:r,children:i,className:s,defaultValue:a,name:c,onChange:d,value:u,...p}=t,h=E.useRef(null),y=mO(t),[x,g]=Zr({controlled:u,default:a,name:"RadioGroup"});E.useImperativeHandle(r,()=>({focus:()=>{let C=h.current.querySelector("input:not(:disabled):checked");C||(C=h.current.querySelector("input:not(:disabled)")),C&&C.focus()}}),[]);const f=ut(n,h),m=mr(c),S=E.useMemo(()=>({name:m,onChange(C){g(C.target.value),d&&d(C,C.target.value)},value:x}),[m,d,g,x]);return l.jsx(Id.Provider,{value:S,children:l.jsx(Zg,{role:"radiogroup",ref:f,className:be(y.root,s),...p,children:i})})});process.env.NODE_ENV!=="production"&&(Ya.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const yO={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Sm(e){return Ce("MuiSelect",e)}const Bi=Ee("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var wm;const bO=Z(gm,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Bi.select}`]:t.select},{[`&.${Bi.select}`]:t[n.variant]},{[`&.${Bi.error}`]:t.error},{[`&.${Bi.multiple}`]:t.multiple}]}})({[`&.${Bi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),xO=Z(mm,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ne(n.variant)}`],n.open&&t.iconOpen]}})({}),vO=Z("input",{shouldForwardProp:e=>hi(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Cm(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function SO(e){return e==null||typeof e=="string"&&!e.trim()}const wO=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,c={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ne(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Te(c,Sm,t)},Em=E.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:s,autoWidth:a,children:c,className:d,defaultOpen:u,defaultValue:p,disabled:h,displayEmpty:y,error:x=!1,IconComponent:g,inputRef:f,labelId:m,MenuProps:S={},multiple:C,name:b,onBlur:v,onChange:w,onClose:A,onFocus:I,onKeyDown:z,onMouseDown:M,onOpen:L,open:O,readOnly:T,renderValue:N,required:D,SelectDisplayProps:U={},tabIndex:F,type:_,value:k,variant:V="standard",...$}=t,[W,q]=Zr({controlled:k,default:p,name:"Select"}),[J,X]=Zr({controlled:O,default:u,name:"Select"}),ee=E.useRef(null),te=E.useRef(null),[ie,ce]=E.useState(null),{current:ae}=E.useRef(O!=null),[oe,pe]=E.useState(),H=ut(n,f),ge=E.useCallback(le=>{te.current=le,le&&ce(le)},[]),ue=ie?.parentNode;E.useImperativeHandle(H,()=>({focus:()=>{te.current.focus()},node:ee.current,value:W}),[W]),E.useEffect(()=>{u&&J&&ie&&!ae&&(pe(a?null:ue.clientWidth),te.current.focus())},[ie,a]),E.useEffect(()=>{s&&te.current.focus()},[s]),E.useEffect(()=>{if(!m)return;const le=gt(te.current).getElementById(m);if(le){const ke=()=>{getSelection().isCollapsed&&te.current.focus()};return le.addEventListener("click",ke),()=>{le.removeEventListener("click",ke)}}},[m]);const me=(le,ke)=>{le?L&&L(ke):A&&A(ke),ae||(pe(a?null:ue.clientWidth),X(le))},ze=le=>{M?.(le),le.button===0&&(le.preventDefault(),te.current.focus(),me(!0,le))},we=le=>{me(!1,le)},ye=E.Children.toArray(c),_e=le=>{const ke=ye.find(Re=>Re.props.value===le.target.value);ke!==void 0&&(q(ke.props.value),w&&w(le,ke))},Le=le=>ke=>{let Re;if(ke.currentTarget.hasAttribute("tabindex")){if(C){Re=Array.isArray(W)?W.slice():[];const nn=W.indexOf(le.props.value);nn===-1?Re.push(le.props.value):Re.splice(nn,1)}else Re=le.props.value;if(le.props.onClick&&le.props.onClick(ke),W!==Re&&(q(Re),w)){const nn=ke.nativeEvent||ke,nt=new nn.constructor(nn.type,nn);Object.defineProperty(nt,"target",{writable:!0,value:{value:Re,name:b}}),w(nt,le)}C||me(!1,ke)}},Ne=le=>{T||([" ","ArrowUp","ArrowDown","Enter"].includes(le.key)&&(le.preventDefault(),me(!0,le)),z?.(le))},fe=ie!==null&&J,je=le=>{!fe&&v&&(Object.defineProperty(le,"target",{writable:!0,value:{value:W,name:b}}),v(le))};delete $["aria-invalid"];let Oe,se;const re=[];let G=!1,he=!1;(Fa({value:W})||y)&&(N?Oe=N(W):G=!0);const xe=ye.map(le=>{if(!E.isValidElement(le))return null;process.env.NODE_ENV!=="production"&&qc.isFragment(le)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
230
|
-
`));let
|
|
231
|
-
`))}},[he,ye,C,b,W]),G&&(C?re.length===0?Oe=null:Oe=re.reduce((le,ke,Re)=>(le.push(ke),Re<re.length-1&&le.push(", "),le),[]):Oe=se);let Q=oe;!a&&ae&&ie&&(Q=ue.clientWidth);let Y;typeof F<"u"?Y=F:Y=h?null:0;const ve=U.id||(b?`mui-component-select-${b}`:void 0),de={...t,variant:V,value:W,open:fe,error:x},Fe=wO(de),Ie={...S.PaperProps,...typeof S.slotProps?.paper=="function"?S.slotProps.paper(de):S.slotProps?.paper},Ge={...S.MenuListProps,...typeof S.slotProps?.list=="function"?S.slotProps.list(de):S.slotProps?.list},kt=mr();return l.jsxs(E.Fragment,{children:[l.jsx(bO,{as:"div",ref:ge,tabIndex:Y,role:"combobox","aria-controls":fe?kt:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":fe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[m,ve].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":D?"true":void 0,"aria-invalid":x?"true":void 0,onKeyDown:Ne,onMouseDown:h||T?null:ze,onBlur:je,onFocus:I,...U,ownerState:de,className:be(U.className,Fe.select,d),id:ve,children:SO(Oe)?wm||(wm=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Oe}),l.jsx(vO,{"aria-invalid":x,value:Array.isArray(W)?W.join(","):W,name:b,ref:ee,"aria-hidden":!0,onChange:_e,tabIndex:-1,disabled:h,className:Fe.nativeInput,autoFocus:s,required:D,...$,ownerState:de}),l.jsx(xO,{as:g,className:Fe.icon,ownerState:de}),l.jsx(zi,{id:`menu-${b||""}`,anchorEl:ue,open:fe,onClose:we,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:kt,...Ge},paper:{...Ie,style:{minWidth:Q,...Ie!=null?Ie.style:null}}},children:xe})]})});process.env.NODE_ENV!=="production"&&(Em.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:Ft,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 CO=e=>{const{classes:t}=e,r=Te({root:["root"]},Sm,t);return{...t,...r}},Nd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Tt(e)&&e!=="variant"},EO=Z(Ra,Nd)(""),TO=Z(qa,Nd)(""),AO=Z(Ua,Nd)(""),Pn=E.forwardRef(function(t,n){const r=Ae({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:s,classes:a={},className:c,defaultOpen:d=!1,displayEmpty:u=!1,IconComponent:p=yA,id:h,input:y,inputProps:x,label:g,labelId:f,MenuProps:m,multiple:S=!1,native:C=!1,onClose:b,onOpen:v,open:w,renderValue:A,SelectDisplayProps:I,variant:z="outlined",...M}=r,L=C?ym:Em,O=Tn(),T=rr({props:r,muiFormControl:O,states:["variant","error"]}),N=T.variant||z,D={...r,variant:N,classes:a},U=CO(D),{root:F,..._}=U,k=y||{standard:l.jsx(EO,{ownerState:D}),outlined:l.jsx(TO,{label:g,ownerState:D}),filled:l.jsx(AO,{ownerState:D})}[N],V=ut(n,Er(k));return l.jsx(E.Fragment,{children:E.cloneElement(k,{inputComponent:L,inputProps:{children:s,error:T.error,IconComponent:p,variant:N,type:void 0,multiple:S,...C?{id:h}:{autoWidth:i,defaultOpen:d,displayEmpty:u,labelId:f,MenuProps:m,onClose:b,onOpen:v,open:w,renderValue:A,SelectDisplayProps:{id:h,...I}},...x,classes:x?Et(_,x.classes):_,...y?y.props.inputProps:{}},...(S&&C||u)&&N==="outlined"?{notched:!0}:{},ref:V,className:be(k.props.className,c,U.root),...!y&&{variant:N},...M})})});process.env.NODE_ENV!=="production"&&(Pn.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"])}),Pn.muiName="Select";function kO(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const PO=2;function go(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function Tm(e,t){return e-t}function Am(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 Ka(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 Ga(e,t,n){return(e-t)*100/(n-t)}function OO(e,t,n){return(n-t)*e+t}function IO(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 NO(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(IO(t)))}function km({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Tm)}function Xa({sliderRef:e,activeIndex:t,setActive:n}){const r=gt(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 Ja(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?kO(e,t):!1}const FO={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}%`})}},MO=e=>e;let Qa;function Pm(){return Qa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Qa=CSS.supports("touch-action","none"):Qa=!0),Qa}function DO(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:s=!1,marks:a=!1,max:c=100,min:d=0,name:u,onChange:p,onChangeCommitted:h,orientation:y="horizontal",rootRef:x,scale:g=MO,step:f=1,shiftStep:m=10,tabIndex:S,value:C}=e,b=E.useRef(void 0),[v,w]=E.useState(-1),[A,I]=E.useState(-1),[z,M]=E.useState(!1),L=E.useRef(0),O=E.useRef(null),[T,N]=Zr({controlled:C,default:n??d,name:"Slider"}),D=p&&((se,re,G)=>{const he=se.nativeEvent||se,xe=new he.constructor(he.type,he);Object.defineProperty(xe,"target",{writable:!0,value:{value:re,name:u}}),O.current=re,p(xe,re,G)}),U=Array.isArray(T);let F=U?T.slice().sort(Tm):[T];F=F.map(se=>se==null?d:Qr(se,d,c));const _=a===!0&&f!==null?[...Array(Math.floor((c-d)/f)+1)].map((se,re)=>({value:d+f*re})):a||[],k=_.map(se=>se.value),[V,$]=E.useState(-1),W=E.useRef(null),q=ut(x,W),J=se=>re=>{const G=Number(re.currentTarget.getAttribute("data-index"));no(re.target)&&$(G),I(G),se?.onFocus?.(re)},X=se=>re=>{no(re.target)||$(-1),I(-1),se?.onBlur?.(re)},ee=(se,re)=>{const G=Number(se.currentTarget.getAttribute("data-index")),he=F[G],xe=k.indexOf(he);let Q=re;if(_&&f==null){const Y=k[k.length-1];Q>=Y?Q=Y:Q<=k[0]?Q=k[0]:Q=Q<he?k[xe-1]:k[xe+1]}if(Q=Qr(Q,d,c),U){i&&(Q=Qr(Q,F[G-1]||-1/0,F[G+1]||1/0));const Y=Q;Q=km({values:F,newValue:Q,index:G});let ve=G;i||(ve=Q.indexOf(Y)),Xa({sliderRef:W,activeIndex:ve})}N(Q),$(G),D&&!Ja(Q,T)&&D(se,Q,G),h&&h(se,O.current??Q)},te=se=>re=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(re.key)){re.preventDefault();const G=Number(re.currentTarget.getAttribute("data-index")),he=F[G];let xe=null;if(f!=null){const Q=re.shiftKey?m:f;switch(re.key){case"ArrowUp":xe=go(he,Q,1,d,c);break;case"ArrowRight":xe=go(he,Q,s?-1:1,d,c);break;case"ArrowDown":xe=go(he,Q,-1,d,c);break;case"ArrowLeft":xe=go(he,Q,s?1:-1,d,c);break;case"PageUp":xe=go(he,m,1,d,c);break;case"PageDown":xe=go(he,m,-1,d,c);break;case"Home":xe=d;break;case"End":xe=c;break}}else if(_){const Q=k[k.length-1],Y=k.indexOf(he),ve=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],de=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];ve.includes(re.key)?Y===0?xe=k[0]:xe=k[Y-1]:de.includes(re.key)&&(Y===k.length-1?xe=Q:xe=k[Y+1])}xe!=null&&ee(re,xe)}se?.onKeyDown?.(re)};Gt(()=>{r&&W.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&v!==-1&&w(-1),r&&V!==-1&&$(-1);const ie=se=>re=>{se.onChange?.(re),ee(re,re.target.valueAsNumber)},ce=E.useRef(void 0);let ae=y;s&&y==="horizontal"&&(ae+="-reverse");const oe=({finger:se,move:re=!1})=>{const{current:G}=W,{width:he,height:xe,bottom:Q,left:Y}=G.getBoundingClientRect();let ve;ae.startsWith("vertical")?ve=(Q-se.y)/xe:ve=(se.x-Y)/he,ae.includes("-reverse")&&(ve=1-ve);let de;if(de=OO(ve,d,c),f)de=NO(de,f,d);else{const Ie=Am(k,de);de=k[Ie]}de=Qr(de,d,c);let Fe=0;if(U){re?Fe=ce.current:Fe=Am(F,de),i&&(de=Qr(de,F[Fe-1]||-1/0,F[Fe+1]||1/0));const Ie=de;de=km({values:F,newValue:de,index:Fe}),i&&re||(Fe=de.indexOf(Ie),ce.current=Fe)}return{newValue:de,activeIndex:Fe}},pe=Nt(se=>{const re=Ka(se,b);if(!re)return;if(L.current+=1,se.type==="mousemove"&&se.buttons===0){H(se);return}const{newValue:G,activeIndex:he}=oe({finger:re,move:!0});Xa({sliderRef:W,activeIndex:he,setActive:w}),N(G),!z&&L.current>PO&&M(!0),D&&!Ja(G,T)&&D(se,G,he)}),H=Nt(se=>{const re=Ka(se,b);if(M(!1),!re)return;const{newValue:G}=oe({finger:re,move:!0});w(-1),se.type==="touchend"&&I(-1),h&&h(se,O.current??G),b.current=void 0,ue()}),ge=Nt(se=>{if(r)return;Pm()||se.preventDefault();const re=se.changedTouches[0];re!=null&&(b.current=re.identifier);const G=Ka(se,b);if(G!==!1){const{newValue:xe,activeIndex:Q}=oe({finger:G});Xa({sliderRef:W,activeIndex:Q,setActive:w}),N(xe),D&&!Ja(xe,T)&&D(se,xe,Q)}L.current=0;const he=gt(W.current);he.addEventListener("touchmove",pe,{passive:!0}),he.addEventListener("touchend",H,{passive:!0})}),ue=E.useCallback(()=>{const se=gt(W.current);se.removeEventListener("mousemove",pe),se.removeEventListener("mouseup",H),se.removeEventListener("touchmove",pe),se.removeEventListener("touchend",H)},[H,pe]);E.useEffect(()=>{const{current:se}=W;return se.addEventListener("touchstart",ge,{passive:Pm()}),()=>{se.removeEventListener("touchstart",ge),ue()}},[ue,ge]),E.useEffect(()=>{r&&ue()},[r,ue]);const me=se=>re=>{if(se.onMouseDown?.(re),r||re.defaultPrevented||re.button!==0)return;re.preventDefault();const G=Ka(re,b);if(G!==!1){const{newValue:xe,activeIndex:Q}=oe({finger:G});Xa({sliderRef:W,activeIndex:Q,setActive:w}),N(xe),D&&!Ja(xe,T)&&D(re,xe,Q)}L.current=0;const he=gt(W.current);he.addEventListener("mousemove",pe,{passive:!0}),he.addEventListener("mouseup",H)},ze=Ga(U?F[0]:d,d,c),we=Ga(F[F.length-1],d,c)-ze,ye=(se={})=>{const re=Sr(se),G={onMouseDown:me(re||{})},he={...re,...G};return{...se,ref:q,...he}},_e=se=>re=>{se.onMouseOver?.(re);const G=Number(re.currentTarget.getAttribute("data-index"));I(G)},Le=se=>re=>{se.onMouseLeave?.(re),I(-1)},Ne=(se={})=>{const re=Sr(se),G={onMouseOver:_e(re||{}),onMouseLeave:Le(re||{})};return{...se,...re,...G}},fe=se=>({pointerEvents:v!==-1&&v!==se?"none":void 0});let je;return y==="vertical"&&(je=s?"vertical-rl":"vertical-lr"),{active:v,axis:ae,axisProps:FO,dragging:z,focusedThumbIndex:V,getHiddenInputProps:(se={})=>{const re=Sr(se),G={onChange:ie(re||{}),onFocus:J(re||{}),onBlur:X(re||{}),onKeyDown:te(re||{})},he={...re,...G};return{tabIndex:S,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":g(c),"aria-valuemin":g(d),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...se,...he,style:{...yO,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:je}}},getRootProps:ye,getThumbProps:Ne,marks:_,open:A,range:U,rootRef:q,trackLeap:we,trackOffset:ze,values:F,getThumbStyle:fe}}const _O=e=>!e||!tr(e);function $O(e){return Ce("MuiSlider",e)}const tn=Ee("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"]),zO=e=>{const{open:t}=e;return{offset:be(t&&tn.valueLabelOpen),circle:tn.valueLabelCircle,label:tn.valueLabelLabel}};function Om(e){const{children:t,className:n,value:r}=e,i=zO(e);return t?E.cloneElement(t,{className:t.props.className},l.jsxs(E.Fragment,{children:[t.props.children,l.jsx("span",{className:be(i.offset,n),"aria-hidden":!0,children:l.jsx("span",{className:i.circle,children:l.jsx("span",{className:i.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Om.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function Im(e){return e}const LO=Z("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ne(n.color)}`],n.size!=="medium"&&t[`size${ne(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Se(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${tn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${tn.dragging}`]:{[`& .${tn.thumb}, & .${tn.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(ct()).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}}]}))),BO=Z("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}}]}),jO=Z("span",{name:"MuiSlider",slot:"Track"})(Se(({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(ct()).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)})}}}))]}))),WO=Z("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ne(n.color)}`],n.size!=="medium"&&t[`thumbSize${ne(n.size)}`]]}})(Se(({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%)"},[`&.${tn.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(ct()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${tn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${tn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Nm=Z(Om,{name:"MuiSlider",slot:"ValueLabel"})(Se(({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%"},[`&.${tn.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%"},[`&.${tn.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"&&(Nm.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const VO=Z("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>hi(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Se(({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}}]}))),UO=Z("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>hi(e)&&e!=="markLabelActive"})(Se(({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}}]}))),HO=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:s,classes:a,color:c,size:d}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",c&&`color${ne(c)}`,d&&`size${ne(d)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",d&&`thumbSize${ne(d)}`,c&&`thumbColor${ne(c)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Te(u,$O,a)},RO=({children:e})=>e,Fm=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiSlider"}),i=ui(),{"aria-label":s,"aria-valuetext":a,"aria-labelledby":c,component:d="span",components:u={},componentsProps:p={},color:h="primary",classes:y,className:x,disableSwap:g=!1,disabled:f=!1,getAriaLabel:m,getAriaValueText:S,marks:C=!1,max:b=100,min:v=0,name:w,onChange:A,onChangeCommitted:I,orientation:z="horizontal",shiftStep:M=10,size:L="medium",step:O=1,scale:T=Im,slotProps:N,slots:D,tabIndex:U,track:F="normal",value:_,valueLabelDisplay:k="off",valueLabelFormat:V=Im,...$}=r,W={...r,isRtl:i,max:b,min:v,classes:y,disabled:f,disableSwap:g,orientation:z,marks:C,color:h,size:L,step:O,shiftStep:M,scale:T,track:F,valueLabelDisplay:k,valueLabelFormat:V},{axisProps:q,getRootProps:J,getHiddenInputProps:X,getThumbProps:ee,open:te,active:ie,axis:ce,focusedThumbIndex:ae,range:oe,dragging:pe,marks:H,values:ge,trackOffset:ue,trackLeap:me,getThumbStyle:ze}=DO({...W,rootRef:n});W.marked=H.length>0&&H.some(nt=>nt.label),W.dragging=pe,W.focusedThumbIndex=ae;const we=HO(W),ye=D?.root??u.Root??LO,_e=D?.rail??u.Rail??BO,Le=D?.track??u.Track??jO,Ne=D?.thumb??u.Thumb??WO,fe=D?.valueLabel??u.ValueLabel??Nm,je=D?.mark??u.Mark??VO,Oe=D?.markLabel??u.MarkLabel??UO,se=D?.input??u.Input??"input",re=N?.root??p.root,G=N?.rail??p.rail,he=N?.track??p.track,xe=N?.thumb??p.thumb,Q=N?.valueLabel??p.valueLabel,Y=N?.mark??p.mark,ve=N?.markLabel??p.markLabel,de=N?.input??p.input,Fe=En({elementType:ye,getSlotProps:J,externalSlotProps:re,externalForwardedProps:$,additionalProps:{..._O(ye)&&{as:d}},ownerState:{...W,...re?.ownerState},className:[we.root,x]}),Ie=En({elementType:_e,externalSlotProps:G,ownerState:W,className:we.rail}),Ge=En({elementType:Le,externalSlotProps:he,additionalProps:{style:{...q[ce].offset(ue),...q[ce].leap(me)}},ownerState:{...W,...he?.ownerState},className:we.track}),kt=En({elementType:Ne,getSlotProps:ee,externalSlotProps:xe,ownerState:{...W,...xe?.ownerState},className:we.thumb}),le=En({elementType:fe,externalSlotProps:Q,ownerState:{...W,...Q?.ownerState},className:we.valueLabel}),ke=En({elementType:je,externalSlotProps:Y,ownerState:W,className:we.mark}),Re=En({elementType:Oe,externalSlotProps:ve,ownerState:W,className:we.markLabel}),nn=En({elementType:se,getSlotProps:X,externalSlotProps:de,ownerState:W});return l.jsxs(ye,{...Fe,children:[l.jsx(_e,{...Ie}),l.jsx(Le,{...Ge}),H.filter(nt=>nt.value>=v&&nt.value<=b).map((nt,xt)=>{const Gi=Ga(nt.value,v,b),bo=q[ce].offset(Gi);let pn;return F===!1?pn=ge.includes(nt.value):pn=F==="normal"&&(oe?nt.value>=ge[0]&&nt.value<=ge[ge.length-1]:nt.value<=ge[0])||F==="inverted"&&(oe?nt.value<=ge[0]||nt.value>=ge[ge.length-1]:nt.value>=ge[0]),l.jsxs(E.Fragment,{children:[l.jsx(je,{"data-index":xt,...ke,...!tr(je)&&{markActive:pn},style:{...bo,...ke.style},className:be(ke.className,pn&&we.markActive)}),nt.label!=null?l.jsx(Oe,{"aria-hidden":!0,"data-index":xt,...Re,...!tr(Oe)&&{markLabelActive:pn},style:{...bo,...Re.style},className:be(we.markLabel,Re.className,pn&&we.markLabelActive),children:nt.label}):null]},xt)}),ge.map((nt,xt)=>{const Gi=Ga(nt,v,b),bo=q[ce].offset(Gi),pn=k==="off"?RO:fe;return l.jsx(pn,{...!tr(pn)&&{valueLabelFormat:V,valueLabelDisplay:k,value:typeof V=="function"?V(T(nt),xt):V,index:xt,open:te===xt||ie===xt||k==="on",disabled:f},...le,children:l.jsx(Ne,{"data-index":xt,...kt,className:be(we.thumb,kt.className,ie===xt&&we.active,ae===xt&&we.focusVisible),style:{...bo,...ze(xt),...kt.style},children:l.jsx(se,{"data-index":xt,"aria-label":m?m(xt):s,"aria-valuenow":T(nt),"aria-labelledby":c,"aria-valuetext":S?S(T(nt),xt):a,value:ge[xt],...nn})})},xt)})]})});process.env.NODE_ENV!=="production"&&(Fm.propTypes={"aria-label":ln(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":ln(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 qO(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:s}=e,a=vr();E.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 c=Nt((S,C)=>{r?.(S,C)}),d=Nt(S=>{!r||S==null||a.start(S,()=>{c(null,"timeout")})});E.useEffect(()=>(i&&d(t),a.clear),[i,t,d,a]);const u=S=>{r?.(S,"clickaway")},p=a.clear,h=E.useCallback(()=>{t!=null&&d(s??t*.5)},[t,s,d]),y=S=>C=>{const b=S.onBlur;b?.(C),h()},x=S=>C=>{const b=S.onFocus;b?.(C),p()},g=S=>C=>{const b=S.onMouseEnter;b?.(C),p()},f=S=>C=>{const b=S.onMouseLeave;b?.(C),h()};return E.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}},[n,i,h,p]),{getRootProps:(S={})=>{const C={...Sr(e),...Sr(S)};return{role:"presentation",...S,...C,onBlur:y(C),onFocus:x(C),onMouseEnter:g(C),onMouseLeave:f(C)}},onClickAway:u}}function YO(e){return Ce("MuiSnackbarContent",e)}Ee("MuiSnackbarContent",["root","message","action"]);const KO=e=>{const{classes:t}=e;return Te({root:["root"],action:["action"],message:["message"]},YO,t)},GO=Z(cn,{name:"MuiSnackbarContent",slot:"Root"})(Se(({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(_c(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:_c(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),XO=Z("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),JO=Z("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Mm=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiSnackbarContent"}),{action:i,className:s,message:a,role:c="alert",...d}=r,u=r,p=KO(u);return l.jsxs(GO,{role:c,elevation:6,className:be(p.root,s),ownerState:u,ref:n,...d,children:[l.jsx(XO,{className:p.message,ownerState:u,children:a}),i?l.jsx(JO,{className:p.action,ownerState:u,children:i}):null]})});process.env.NODE_ENV!=="production"&&(Mm.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 QO(e){return Ce("MuiSnackbar",e)}Ee("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ZO=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ne(n.vertical)}${ne(n.horizontal)}`]};return Te(r,QO,t)},e2=Z("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ne(n.anchorOrigin.vertical)}${ne(n.anchorOrigin.horizontal)}`]]}})(Se(({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%)"}}}]}))),mo=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiSnackbar"}),i=vn(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:c,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:p,className:h,ClickAwayListenerProps:y,ContentProps:x,disableWindowBlurListener:g=!1,message:f,onBlur:m,onClose:S,onFocus:C,onMouseEnter:b,onMouseLeave:v,open:w,resumeHideDuration:A,slots:I={},slotProps:z={},TransitionComponent:M,transitionDuration:L=s,TransitionProps:{onEnter:O,onExited:T,...N}={},...D}=r,U={...r,anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:u,disableWindowBlurListener:g,TransitionComponent:M,transitionDuration:L},F=ZO(U),{getRootProps:_,onClickAway:k}=qO(U),[V,$]=E.useState(!0),W=ge=>{$(!0),T&&T(ge)},q=(ge,ue)=>{$(!1),O&&O(ge,ue)},J={slots:{transition:M,...I},slotProps:{content:x,clickAwayListener:y,transition:N,...z}},[X,ee]=Pe("root",{ref:n,className:[F.root,h],elementType:e2,getSlotProps:_,externalForwardedProps:{...J,...D},ownerState:U}),[te,{ownerState:ie,...ce}]=Pe("clickAwayListener",{elementType:ja,externalForwardedProps:J,getSlotProps:ge=>({onClickAway:(...ue)=>{const me=ue[0];ge.onClickAway?.(...ue),!me?.defaultMuiPrevented&&k(...ue)}}),ownerState:U}),[ae,oe]=Pe("content",{elementType:Mm,shouldForwardComponentProp:!0,externalForwardedProps:J,additionalProps:{message:f,action:a},ownerState:U}),[pe,H]=Pe("transition",{elementType:uo,externalForwardedProps:J,getSlotProps:ge=>({onEnter:(...ue)=>{ge.onEnter?.(...ue),q(...ue)},onExited:(...ue)=>{ge.onExited?.(...ue),W(...ue)}}),additionalProps:{appear:!0,in:w,timeout:L,direction:c==="top"?"down":"up"},ownerState:U});return!w&&V?null:l.jsx(te,{...ce,...I.clickAwayListener&&{ownerState:ie},children:l.jsx(X,{...ee,children:l.jsx(pe,{...H,children:p||l.jsx(ae,{...oe})})})})});process.env.NODE_ENV!=="production"&&(mo.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 Ce("MuiTooltip",e)}const dt=Ee("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function n2(e){return Math.round(e*1e5)/1e5}const r2=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${ne(s.split("-")[0])}`],arrow:["arrow"]};return Te(a,t2,t)},o2=Z(pd,{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]}})(Se(({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"] .${dt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${dt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${dt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${dt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${dt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${dt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${dt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${dt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),i2=Z("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${ne(n.placement.split("-")[0])}`]]}})(Se(({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,[`.${dt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${dt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${dt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${dt.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:`${n2(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${dt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${dt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${dt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${dt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${dt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${dt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${dt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${dt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${dt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${dt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),s2=Z("span",{name:"MuiTooltip",slot:"Arrow"})(Se(({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 Za=!1;const Dm=new va;let ji={x:0,y:0};function el(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Wi=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:s,classes:a,components:c={},componentsProps:d={},describeChild:u=!1,disableFocusListener:p=!1,disableHoverListener:h=!1,disableInteractive:y=!1,disableTouchListener:x=!1,enterDelay:g=100,enterNextDelay:f=0,enterTouchDelay:m=700,followCursor:S=!1,id:C,leaveDelay:b=0,leaveTouchDelay:v=1500,onClose:w,onOpen:A,open:I,placement:z="bottom",PopperComponent:M,PopperProps:L={},slotProps:O={},slots:T={},title:N,TransitionComponent:D,TransitionProps:U,...F}=r,_=E.isValidElement(s)?s:l.jsx("span",{children:s}),k=vn(),V=ui(),[$,W]=E.useState(),[q,J]=E.useState(null),X=E.useRef(!1),ee=y||S,te=vr(),ie=vr(),ce=vr(),ae=vr(),[oe,pe]=Zr({controlled:I,default:!1,name:"Tooltip",state:"open"});let H=oe;if(process.env.NODE_ENV!=="production"){const{current:De}=E.useRef(I!==void 0);E.useEffect(()=>{$&&$.disabled&&!De&&N!==""&&$.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
232
|
-
`))},[
|
|
233
|
-
`))},[
|
|
234
|
-
`));const de={...r,isRtl:V,arrow:i,disableInteractive:ee,placement:z,PopperComponentProp:M,touch:X.current},Fe=typeof O.popper=="function"?O.popper(de):O.popper,Ie=E.useMemo(()=>{let De=[{name:"arrow",enabled:!!q,options:{element:q,padding:4}}];return L.popperOptions?.modifiers&&(De=De.concat(L.popperOptions.modifiers)),Fe?.popperOptions?.modifiers&&(De=De.concat(Fe.popperOptions.modifiers)),{...L.popperOptions,...Fe?.popperOptions,modifiers:De}},[q,L.popperOptions,Fe?.popperOptions]),Ge=r2(de),kt=typeof O.transition=="function"?O.transition(de):O.transition,le={slots:{popper:c.Popper,transition:c.Transition??D,tooltip:c.Tooltip,arrow:c.Arrow,...T},slotProps:{arrow:O.arrow??d.arrow,popper:{...L,...Fe??d.popper},tooltip:O.tooltip??d.tooltip,transition:{...U,...kt??d.transition}}},[ke,Re]=Pe("popper",{elementType:o2,externalForwardedProps:le,ownerState:de,className:be(Ge.popper,L?.className)}),[nn,nt]=Pe("transition",{elementType:uo,externalForwardedProps:le,ownerState:de}),[xt,Gi]=Pe("tooltip",{elementType:i2,className:Ge.tooltip,externalForwardedProps:le,ownerState:de}),[bo,pn]=Pe("arrow",{elementType:s2,className:Ge.arrow,externalForwardedProps:le,ownerState:de,ref:J});return l.jsxs(E.Fragment,{children:[E.cloneElement(_,Y),l.jsx(ke,{as:M??pd,placement:z,anchorEl:S?{getBoundingClientRect:()=>({top:ji.y,left:ji.x,right:ji.x,bottom:ji.y,width:0,height:0})}:$,popperRef:G,open:$?H:!1,id:ge,transition:!0,...ve,...Re,popperOptions:Ie,children:({TransitionProps:De})=>l.jsx(nn,{timeout:k.transitions.duration.shorter,...De,...nt,children:l.jsxs(xt,{...Gi,children:[N,i?l.jsx(bo,{...pn}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Wi.propTypes={arrow:o.bool,children:kr.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 a2(e){return Ce("MuiSwitch",e)}const Mt=Ee("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),l2=e=>{const{classes:t,edge:n,size:r,color:i,checked:s,disabled:a}=e,c={root:["root",n&&`edge${ne(n)}`,`size${ne(r)}`],switchBase:["switchBase",`color${ne(i)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=Te(c,a2,t);return{...t,...d}},c2=Z("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ne(n.edge)}`],t[`size${ne(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,[`& .${Mt.thumb}`]:{width:16,height:16},[`& .${Mt.switchBase}`]:{padding:4,[`&.${Mt.checked}`]:{transform:"translateX(16px)"}}}}]}),d2=Z(Ba,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Mt.input}`]:t.input},n.color!=="default"&&t[`color${ne(n.color)}`]]}})(Se(({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}),[`&.${Mt.checked}`]:{transform:"translateX(20px)"},[`&.${Mt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Mt.checked} + .${Mt.track}`]:{opacity:.5},[`&.${Mt.disabled} + .${Mt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Mt.input}`]:{left:"-100%",width:"300%"}})),Se(({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(ct(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Mt.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"}},[`&.${Mt.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)}`}},[`&.${Mt.checked} + .${Mt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),p2=Z("span",{name:"MuiSwitch",slot:"Track"})(Se(({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}`}))),u2=Z("span",{name:"MuiSwitch",slot:"Thumb"})(Se(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),_m=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiSwitch"}),{className:i,color:s="primary",edge:a=!1,size:c="medium",sx:d,slots:u={},slotProps:p={},...h}=r,y={...r,color:s,edge:a,size:c},x=l2(y),g={slots:u,slotProps:p},[f,m]=Pe("root",{className:be(x.root,i),elementType:c2,externalForwardedProps:g,ownerState:y,additionalProps:{sx:d}}),[S,C]=Pe("thumb",{className:x.thumb,elementType:u2,externalForwardedProps:g,ownerState:y}),b=l.jsx(S,{...C}),[v,w]=Pe("track",{className:x.track,elementType:p2,externalForwardedProps:g,ownerState:y});return l.jsxs(f,{...m,children:[l.jsx(d2,{type:"checkbox",icon:b,checkedIcon:b,ref:n,ownerState:y,...h,classes:{...x,root:x.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...p.switchBase&&{root:typeof p.switchBase=="function"?p.switchBase(y):p.switchBase},input:{role:"switch"},...p.input&&{input:typeof p.input=="function"?p.input(y):p.input}}}),l.jsx(v,{...w})]})});process.env.NODE_ENV!=="production"&&(_m.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:Ft,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 Fd=E.createContext();process.env.NODE_ENV!=="production"&&(Fd.displayName="TableContext");function f2(e){return Ce("MuiTable",e)}Ee("MuiTable",["root","stickyHeader"]);const h2=e=>{const{classes:t,stickyHeader:n}=e;return Te({root:["root",n&&"stickyHeader"]},f2,t)},g2=Z("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Se(({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"}}]}))),$m="table",zm=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiTable"}),{className:i,component:s=$m,padding:a="normal",size:c="medium",stickyHeader:d=!1,...u}=r,p={...r,component:s,padding:a,size:c,stickyHeader:d},h=h2(p),y=E.useMemo(()=>({padding:a,size:c,stickyHeader:d}),[a,c,d]);return l.jsx(Fd.Provider,{value:y,children:l.jsx(g2,{as:s,role:s===$m?null:"table",ref:n,className:be(h.root,i),ownerState:p,...u})})});process.env.NODE_ENV!=="production"&&(zm.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 Vi=E.createContext();process.env.NODE_ENV!=="production"&&(Vi.displayName="Tablelvl2Context");function m2(e){return Ce("MuiTableBody",e)}Ee("MuiTableBody",["root"]);const y2=e=>{const{classes:t}=e;return Te({root:["root"]},m2,t)},b2=Z("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),x2={variant:"body"},Lm="tbody",Bm=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiTableBody"}),{className:i,component:s=Lm,...a}=r,c={...r,component:s},d=y2(c);return l.jsx(Vi.Provider,{value:x2,children:l.jsx(b2,{className:be(d.root,i),as:s,ref:n,role:s===Lm?null:"rowgroup",ownerState:c,...a})})});process.env.NODE_ENV!=="production"&&(Bm.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 v2(e){return Ce("MuiTableCell",e)}const S2=Ee("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),w2=e=>{const{classes:t,variant:n,align:r,padding:i,size:s,stickyHeader:a}=e,c={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ne(r)}`,i!=="normal"&&`padding${ne(i)}`,`size${ne(s)}`]};return Te(c,v2,t)},C2=Z("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ne(n.size)}`],n.padding!=="normal"&&t[`padding${ne(n.padding)}`],n.align!=="inherit"&&t[`align${ne(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Se(({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",[`&.${S2.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}}]}))),ir=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiTableCell"}),{align:i="inherit",className:s,component:a,padding:c,scope:d,size:u,sortDirection:p,variant:h,...y}=r,x=E.useContext(Fd),g=E.useContext(Vi),f=g&&g.variant==="head";let m;a?m=a:m=f?"th":"td";let S=d;m==="td"?S=void 0:!S&&f&&(S="col");const C=h||g&&g.variant,b={...r,align:i,component:m,padding:c||(x&&x.padding?x.padding:"normal"),size:u||(x&&x.size?x.size:"medium"),sortDirection:p,stickyHeader:C==="head"&&x&&x.stickyHeader,variant:C},v=w2(b);let w=null;return p&&(w=p==="asc"?"ascending":"descending"),l.jsx(C2,{as:m,ref:n,className:be(v.root,s),"aria-sort":w,scope:S,ownerState:b,...y})});process.env.NODE_ENV!=="production"&&(ir.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 E2(e){return Ce("MuiTableContainer",e)}Ee("MuiTableContainer",["root"]);const T2=e=>{const{classes:t}=e;return Te({root:["root"]},E2,t)},A2=Z("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),jm=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiTableContainer"}),{className:i,component:s="div",...a}=r,c={...r,component:s},d=T2(c);return l.jsx(A2,{ref:n,as:s,className:be(d.root,i),ownerState:c,...a})});process.env.NODE_ENV!=="production"&&(jm.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 k2(e){return Ce("MuiTableHead",e)}Ee("MuiTableHead",["root"]);const P2=e=>{const{classes:t}=e;return Te({root:["root"]},k2,t)},O2=Z("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),I2={variant:"head"},Wm="thead",Vm=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiTableHead"}),{className:i,component:s=Wm,...a}=r,c={...r,component:s},d=P2(c);return l.jsx(Vi.Provider,{value:I2,children:l.jsx(O2,{as:s,className:be(d.root,i),ref:n,role:s===Wm?null:"rowgroup",ownerState:c,...a})})});process.env.NODE_ENV!=="production"&&(Vm.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 N2(e){return Ce("MuiTableRow",e)}const Um=Ee("MuiTableRow",["root","selected","hover","head","footer"]),F2=e=>{const{classes:t,selected:n,hover:r,head:i,footer:s}=e;return Te({root:["root",n&&"selected",r&&"hover",i&&"head",s&&"footer"]},N2,t)},M2=Z("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Se(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Um.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Um.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}`)}}}))),Hm="tr",Ui=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiTableRow"}),{className:i,component:s=Hm,hover:a=!1,selected:c=!1,...d}=r,u=E.useContext(Vi),p={...r,component:s,hover:a,selected:c,head:u&&u.variant==="head",footer:u&&u.variant==="footer"},h=F2(p);return l.jsx(M2,{as:s,ref:n,className:be(h.root,i),role:s===Hm?null:"row",ownerState:p,...d})});process.env.NODE_ENV!=="production"&&(Ui.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 D2(e){return Ce("MuiTextField",e)}Ee("MuiTextField",["root"]);const _2={standard:Ra,filled:Ua,outlined:qa},$2=e=>{const{classes:t}=e;return Te({root:["root"]},D2,t)},z2=Z(Ha,{name:"MuiTextField",slot:"Root"})({}),Hi=E.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:a,className:c,color:d="primary",defaultValue:u,disabled:p=!1,error:h=!1,FormHelperTextProps:y,fullWidth:x=!1,helperText:g,id:f,InputLabelProps:m,inputProps:S,InputProps:C,inputRef:b,label:v,maxRows:w,minRows:A,multiline:I=!1,name:z,onBlur:M,onChange:L,onFocus:O,placeholder:T,required:N=!1,rows:D,select:U=!1,SelectProps:F,slots:_={},slotProps:k={},type:V,value:$,variant:W="outlined",...q}=r,J={...r,autoFocus:s,color:d,disabled:p,error:h,fullWidth:x,multiline:I,required:N,select:U,variant:W},X=$2(J);process.env.NODE_ENV!=="production"&&U&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const ee=mr(f),te=g&&ee?`${ee}-helper-text`:void 0,ie=v&&ee?`${ee}-label`:void 0,ce=_2[W],ae={slots:_,slotProps:{input:C,inputLabel:m,htmlInput:S,formHelperText:y,select:F,...k}},oe={},pe=ae.slotProps.inputLabel;W==="outlined"&&(pe&&typeof pe.shrink<"u"&&(oe.notched=pe.shrink),oe.label=v),U&&((!F||!F.native)&&(oe.id=void 0),oe["aria-describedby"]=void 0);const[H,ge]=Pe("root",{elementType:z2,shouldForwardComponentProp:!0,externalForwardedProps:{...ae,...q},ownerState:J,className:be(X.root,c),ref:n,additionalProps:{disabled:p,error:h,fullWidth:x,required:N,color:d,variant:W}}),[ue,me]=Pe("input",{elementType:ce,externalForwardedProps:ae,additionalProps:oe,ownerState:J}),[ze,we]=Pe("inputLabel",{elementType:rm,externalForwardedProps:ae,ownerState:J}),[ye,_e]=Pe("htmlInput",{elementType:"input",externalForwardedProps:ae,ownerState:J}),[Le,Ne]=Pe("formHelperText",{elementType:nm,externalForwardedProps:ae,ownerState:J}),[fe,je]=Pe("select",{elementType:Pn,externalForwardedProps:ae,ownerState:J}),Oe=l.jsx(ue,{"aria-describedby":te,autoComplete:i,autoFocus:s,defaultValue:u,fullWidth:x,multiline:I,name:z,rows:D,maxRows:w,minRows:A,type:V,value:$,id:ee,inputRef:b,onBlur:M,onChange:L,onFocus:O,placeholder:T,inputProps:_e,slots:{input:_.htmlInput?ye:void 0},...me});return l.jsxs(H,{...ge,children:[v!=null&&v!==""&&l.jsx(ze,{htmlFor:ee,id:ie,...we,children:v}),U?l.jsx(fe,{"aria-describedby":te,id:ee,labelId:ie,value:$,input:Oe,...je,children:a}):Oe,g&&l.jsx(Le,{id:te,...Ne,children:g})]})});process.env.NODE_ENV!=="production"&&(Hi.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:Ft,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 ft=kh({themeId:Zo}),L2=ot(l.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List");function Md(){return Md=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},Md.apply(this,arguments)}function B2(e,t){if(e==null)return{};var n=j2(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 j2(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 Dd=j.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=B2(e,["color","size"]);return j.createElement("svg",Md({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),j.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),j.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});Dd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Dd.displayName="Bell";function _d(){return _d=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},_d.apply(this,arguments)}function W2(e,t){if(e==null)return{};var n=V2(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 V2(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 tl=j.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=W2(e,["color","size"]);return j.createElement("svg",_d({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),j.createElement("polyline",{points:"6 9 12 15 18 9"}))});tl.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},tl.displayName="ChevronDown";function $d(){return $d=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},$d.apply(this,arguments)}function U2(e,t){if(e==null)return{};var n=H2(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 H2(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 zd=j.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=U2(e,["color","size"]);return j.createElement("svg",$d({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),j.createElement("circle",{cx:"11",cy:"11",r:"8"}),j.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});zd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},zd.displayName="Search";function Ld(){return Ld=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},Ld.apply(this,arguments)}function R2(e,t){if(e==null)return{};var n=q2(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 q2(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 Bd=j.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=R2(e,["color","size"]);return j.createElement("svg",Ld({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),j.createElement("circle",{cx:"12",cy:"12",r:"3"}),j.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"}))});Bd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Bd.displayName="Settings";const Rm=0,qm=1e4;function Y2({open:e,filters:t={},onChange:n,onClose:r,onApply:i,priceRange:s}){const a=j.useMemo(()=>{const C=s?.min??t.minPrice??Rm,b=s?.max??t.maxPrice??qm;return{min:Number(C)||Rm,max:Math.max(Number(b)||qm,1)}},[s?.min,s?.max,t.minPrice,t.maxPrice]),c=t.status==="active"||t.status==="inactive"?t.status:"",d=t.stock==="inStock"||t.stock==="outOfStock"?t.stock:"",u=t.minPrice!=null&&Number.isFinite(Number(t.minPrice))?Number(t.minPrice):null,p=t.maxPrice!=null&&Number.isFinite(Number(t.maxPrice))?Number(t.maxPrice):null,h=u??a.min,y=p??a.max,x=(C,b)=>{n({...t,status:b===c?void 0:b||void 0})},g=(C,b)=>{n({...t,stock:b===d?void 0:b||void 0})},f=(C,b)=>{if(!Array.isArray(b)||b.length!==2)return;const v=Number(b[0]),w=Number(b[1]),A=Math.min(v,w),I=Math.max(v,w);n({...t,minPrice:A,maxPrice:I})},m=!!(t.status||t.stock||t.minPrice!=null||t.maxPrice!=null),S=()=>{const C={...t,status:void 0,stock:void 0,minPrice:void 0,maxPrice:void 0};n(C)};return l.jsxs(co,{open:e,onClose:r,maxWidth:"xs",fullWidth:!0,disableScrollLock:!0,children:[l.jsx(po,{children:"Filter Products"}),l.jsx(Ii,{children:l.jsxs(P,{display:"flex",flexDirection:"column",gap:3,pt:.5,children:[l.jsxs(Ha,{component:"fieldset",children:[l.jsx(Mi,{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"}),l.jsxs(Ya,{row:!0,value:c,onChange:x,name:"status",children:[l.jsx(kn,{value:"active",control:l.jsx(ho,{size:"small"}),label:"Active"}),l.jsx(kn,{value:"inactive",control:l.jsx(ho,{size:"small"}),label:"Inactive"})]})]}),l.jsxs(Ha,{component:"fieldset",children:[l.jsx(Mi,{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"}),l.jsxs(Ya,{row:!0,value:d,onChange:g,name:"stock",children:[l.jsx(kn,{value:"inStock",control:l.jsx(ho,{size:"small"}),label:"In Stock"}),l.jsx(kn,{value:"outOfStock",control:l.jsx(ho,{size:"small"}),label:"Out of Stock"})]})]}),l.jsxs(P,{children:[l.jsx(Mi,{sx:{fontWeight:600,color:"text.primary",mb:.5,display:"block"},children:"Price"}),l.jsxs(B,{variant:"body2",color:"text.secondary",sx:{mb:.5},children:["Min: ₹",h," — Max: ₹",y]}),l.jsx(P,{sx:{px:.5},children:l.jsx(Fm,{value:[h,y],onChange:f,min:a.min,max:a.max,valueLabelDisplay:"on",valueLabelFormat:C=>`₹${C}`,size:"small",disableSwap:!1,sx:{mt:1}})})]})]})}),l.jsxs(yd,{sx:{gap:.5,flexWrap:"wrap"},children:[l.jsx(Ke,{onClick:r,children:"Cancel"}),m&&l.jsx(Ke,{variant:"contained",onClick:S,children:"Clear Filters"}),l.jsx(Ke,{variant:"contained",onClick:()=>i&&i(),children:"Apply"})]})]})}const K2=ot(l.jsx("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");function G2(e){return l.jsx(K2,{...e})}const X2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPdJREFUeAGlUtENgjAQbUkHYAQdwREkwBriBjKBOIFsIK4BfLiBI+AG8MkP1HeEmoa0JcRLmsdx7+7d9cqZw8IwvHDO78qXUqZ1Xec6x2Nu85F0q6qKE5K/JKwVYOjgGkWRJITbLeNirQApo+3MKqA7UGoAO+bu6FOW5d5KoHa3xKwjxHF8Gscxh2KHk0H1aeIJWhUz3C5mz4QQB/oehuENmAqAn2m0btrCfMMqMZ3R7/ue0aEu9Ngyxzgb/iUYowG2QRAkhrh03gEeTwEo2IoJkzLgYeGf58I/8yzKTD1f9ZT1mLPAVvu7wNQadttiLf7G3BdGOn4B2S1yLsw0kyQAAAAASUVORK5CYII=";function jd({sx:e={},...t}){const n=e?.width??14,r=e?.height??14;return l.jsx(P,{component:"img",src:X2,alt:"",role:"presentation",sx:{width:n,height:r,display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const J2=ot(l.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");function Ri(e){return l.jsx(J2,{...e})}const Q2=ot(l.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 Or(e){return l.jsx(Q2,{...e})}function Wd(e){return l.jsx(Bd,{...e})}const Z2={minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"};function qi(e){const{sx:t={},...n}=e;return l.jsx(P,{component:"button",sx:{...Z2,...t},title:"Notifications","aria-label":"Notifications",...n,children:l.jsx(Dd,{size:20})})}const eI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACJSURBVHgBlVBBDYAwDGxQgAQkTMIk4AALczAk4AAcgBMkTAISSge3x0iXjUsuS9q79joiBcwchEbrdYp4kCeyzSCweCeqIU5HnJ1fTCVhL/TCS3iiNsO0ZvdgYsLxGeQ4h4lFi0aK4SE22BjQH7VoaaKDcItxqXL4AlOgFuCnni3UChjsH0NRfAPyobTjv0sWNAAAAABJRU5ErkJggg==",tI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABGSURBVHgBXYtBDQAgDAMrBSlIQAIScIYEJCABCUgYbdhj2SXNku4KOGa2mYYIi2qfiWSK5fcyXY8m08vDDKbEpcyBjObRfCpVS/aG0GXFAAAAAElFTkSuQmCC";function Yi(e){const{sx:t={},...n}=e;return l.jsx(P,{sx:{flexShrink:0,...t},...n,children:l.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:l.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:l.jsxs(P,{sx:{position:"relative",width:20,height:20,opacity:1,flexShrink:0},children:[l.jsx(P,{component:"img",src:eI,alt:"",sx:{position:"absolute",width:10,height:10,top:"3.33px",left:"3.34px",opacity:1,objectFit:"contain",display:"block"}}),l.jsx(P,{component:"img",src:tI,alt:"",sx:{position:"absolute",width:4.166666507720947,height:4.166666507720947,top:"12.5px",left:"12.5px",opacity:1,objectFit:"contain",display:"block"}})]})})})})}const Ym=({filters:e,onFilterChange:t,stores:n=[],onOpenFilterModal:r,StoresModal:i,storesModalProps:s,onStoreSelect:a,showBackButton:c=!1,backTo:d="/",backState:u,tenantStatus:p={matched:!0},priceRange:h,styles:y,hasProducts:x})=>{const g=Ot(),f=fn(),m=ft("(max-width:600px)"),S=ft("(max-width:950px)"),C=ft("(max-width:900px)"),b=ft("(max-width:840px)"),v=ft("(max-width:810px)"),w=ft("(max-width:780px)"),A=ft("(max-width:750px)"),I=ft("(max-width:600px)"),[z,M]=j.useState(null),L=!!z,[O,T]=j.useState("search"),[N,D]=j.useState(null),U=!!N,[F,_]=j.useState(!1),[k,V]=j.useState(!1),[$,W]=j.useState(e||{}),[q,J]=j.useState(e?.search??""),X=Array.isArray(e?.store)?e.store:[],ee=()=>{D(null)},[te,ie]=j.useState(X),ce=ye=>{ie(ye==="all"?["all"]:[ye])},ae=ye=>{i?_(!0):(ie(X.length===0?["all"]:X),D(ye.currentTarget))},oe=()=>{t({...e,store:te}),D(null)},pe=ye=>{a?a(ye):t({...e,store:ye}),_(!1)},H=()=>{_(!1)};j.useEffect(()=>{J(e?.search??"")},[e?.search]);const ge=ye=>{if(ye.key==="Enter"){ye.preventDefault();const _e=(q??"").trim();t({...e,search:_e})}},ue=ye=>{M(ye.currentTarget)},me=()=>{M(null)},ze=f,we=y!=null&&y.root!==void 0?y:(y!=null&&y.topBar!=null?y.topBar:ze.topBar)||{};return l.jsxs(l.Fragment,{children:[l.jsx(or,{maxWidth:!1,disableGutters:!0,sx:f.categoryTableContainer,children:l.jsx(P,{sx:{...we.root,position:"fixed",top:0,left:0,right:0,width:"100%",height:72,minHeight:72,maxHeight:72,paddingTop:"16px",paddingBottom:0,gap:"16px",boxSizing:"border-box",overflow:"visible",zIndex:1100},children:l.jsx(or,{maxWidth:!1,disableGutters:!0,sx:{width:"100%",display:"flex",justifyContent:"flex-start",boxSizing:"border-box",px:{xs:1,sm:2,md:4}},children:l.jsxs(P,{sx:{...we.inner,width:"100%",minWidth:0,height:32,minHeight:32,maxHeight:32,maxWidth:"100%",boxSizing:"border-box",gap:m?"12px":"16px",display:"flex",flexDirection:"row",alignItems:"center",overflow:"hidden",flexShrink:0,flexWrap:"nowrap"},children:[l.jsxs(P,{sx:{display:m&&O!=="search"?"none":"flex",alignItems:"center",flex:1,minWidth:0,flexBasis:m?"100%":"auto"},children:[c&&l.jsxs(l.Fragment,{children:[l.jsxs(P,{component:"button",onClick:()=>g(d,u?{state:u}: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:[l.jsx(Ri,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),l.jsx(B,{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"})]}),l.jsx(en,{orientation:"vertical",flexItem:!0,sx:{mx:2,height:24,alignSelf:"center",borderColor:"#e0e0e0"}})]}),l.jsx(P,{sx:{display:m&&O!=="search"?"none":"flex",alignItems:"center",minWidth:0,flex:1,maxWidth:m?"100%":480},children:l.jsxs(P,{sx:{...we.searchBox,display:"flex",flexDirection:"row",alignItems:"center",width:"100%",maxWidth:414,height:20,gap:"12px",borderRadius:2,border:"none",backgroundColor:"#fff",px:1.5,py:0,boxSizing:"border-box"},children:[l.jsx(zd,{size:18,style:{position:"absolute",left:12,color:"#000000",top:"50%",transform:"translateY(-50%)"}}),l.jsx(Ai,{placeholder:c?"Search Products":"Search Products & Categories",value:q,onChange:ye=>J(ye.target.value),onKeyDown:ge,sx:{...we.searchInput||{},pl:3.5,width:"100%","& .MuiInputBase-input":{py:1.25,boxSizing:"border-box"},"&::placeholder":{color:"#a0a0a0",opacity:1}}})]})})]}),l.jsx(en,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:0,display:m||I&&A&&w?"none":"block"}}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flexShrink:0,height:32,gap:"16px",flexDirection:"row",boxSizing:"border-box",flexBasis:"auto",justifyContent:"flex-start",flexWrap:"nowrap"},children:[l.jsxs(P,{sx:{display:"flex",gap:1,alignItems:"center"},children:[l.jsxs(P,{sx:{display:m?O==="store"?"flex":"none":I?"none":"flex",alignItems:"center",flex:m?"1 1 auto":"0 1 216px",width:m?"100%":"auto",maxWidth:m?"100%":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:ae,tabIndex:0,"aria-label":"Select stores",children:[l.jsx(jd,{size:12,style:{color:"#555",marginRight:4}}),l.jsx(B,{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:X.length===0||X.includes("all")?"All Stores":X.length===1?"1 Store":`${X.length} Stores`}),l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",width:m?"auto":61,height:16,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:` ${n.filter(ye=>ye.id!=="all"&&ye.storeCode!=="all").length} stores`}),l.jsx(tl,{size:16,style:{width:16,height:16,opacity:1,flexShrink:0,color:"#454545"}})]}),l.jsxs(zi,{anchorEl:N,open:U,onClose:ee,disableScrollLock:!0,PaperProps:{style:{minWidth:180}},children:[l.jsxs(Be,{onClick:()=>ce("all"),children:[l.jsx(yt,{checked:te.length===0||te.includes("all")}),l.jsx(Td,{primary:"All Stores"})]}),l.jsx(en,{}),l.jsx(P,{sx:{maxHeight:104,overflowY:"auto"},children:n.filter(ye=>ye.id!=="all").map(ye=>l.jsxs(Be,{onClick:()=>ce(ye.id),children:[l.jsx(yt,{checked:te.includes(ye.id)}),l.jsx(Td,{primary:ye.name})]},ye.id))}),l.jsx(en,{}),l.jsx(P,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:l.jsx(Ke,{variant:"contained",size:"small",onClick:oe,children:"Apply"})})]}),l.jsxs(P,{sx:{display:m?O==="filters"?"flex":"none":A?"none":"flex",alignItems:"center",flex:m?"1 1 auto":"0 0 auto",width:m?"100%":67,maxWidth:m?"100%":67,height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box",cursor:"pointer"},onClick:()=>{r?r():(W(e||{}),V(!0))},children:[l.jsx(B,{sx:{width:29,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545",whiteSpace:"nowrap"},children:"Filters"}),l.jsx(tl,{size:16,style:{width:16,height:16,opacity:1,color:"#454545",flexShrink:0}})]}),l.jsxs(P,{sx:{display:m?O==="sort"?"flex":"none":w?"none":"flex",alignItems:"center",flex:m?"1 1 auto":"0 0 auto",width:m?"100%":63,maxWidth:m?"100%":63,height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box",cursor:"pointer"},children:[l.jsx(B,{sx:{width:25,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545"},children:"Sort"}),l.jsx(G2,{sx:{width:16,height:16,opacity:1,color:"#454545"}})]}),l.jsx(P,{sx:{display:m&&O==="settings"?"flex":"none",alignItems:"center",justifyContent:"center",flex:"1 1 auto",width:"100%",maxWidth:"100%",height:32,borderRadius:"6px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",cursor:p.loading?"not-allowed":"pointer",opacity:p.loading?.5:1,pointerEvents:p.loading?"none":"auto",boxSizing:"border-box"},title:p.loading?"Loading...":"Settings",onClick:()=>{p.loading||g("/product-setting",{state:{tenantIntegrationMatched:!!p.matched}})},children:l.jsx(Wd,{size:18.33,color:"#454545"})}),l.jsx(P,{sx:{display:m&&O==="notification"?"flex":"none",alignItems:"center",justifyContent:"center",flex:"1 1 auto",width:"100%",maxWidth:"100%",height:32,borderRadius:"6px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box"},children:l.jsx(qi,{})}),l.jsx(P,{sx:{display:m&&O==="askAira"?"flex":"none",alignItems:"center",justifyContent:"center",flex:"1 1 auto",width:"100%",maxWidth:"100%",height:32,boxSizing:"border-box"},children:l.jsx(Yi,{})})]}),l.jsx(en,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",display:v&&b||m&&(O==="settings"||O==="notification"||O==="askAira")?"none":"block"}}),l.jsxs(P,{sx:{display:"flex",gap:1,alignItems:"center"},children:[l.jsx(P,{component:"button",sx:{...we.iconOnly,display:v?"none":"flex"},title:"Refresh",children:l.jsx(Or,{sx:{width:20,height:20,opacity:1}})}),l.jsx(P,{component:"button",sx:{...we.iconOnly,display:b?"none":"flex",cursor:p.loading?"not-allowed":"pointer",opacity:p.loading?.5:1,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:p.loading?"none":"auto"},title:p.loading?"Loading...":"Settings",tabIndex:-1,onClick:()=>{p.loading||g("/product-setting",{state:{tenantIntegrationMatched:!!p.matched}})},children:l.jsx(Wd,{size:18.33,color:"#454545"})})]}),l.jsx(en,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",marginRight:"-8px",display:C?"none":"block"}})]}),!C&&l.jsx(qi,{}),l.jsx(P,{sx:{marginLeft:"auto",flexShrink:0,display:"flex",alignItems:"center"},children:S?l.jsx(P,{component:"button",sx:we.iconOnly,"aria-label":"Open actions menu",onClick:ue,children:l.jsx(L2,{fontSize:"small"})}):l.jsx(Yi,{})}),l.jsx(zi,{anchorEl:z,open:L,onClose:me,disableScrollLock:!0,PaperProps:{sx:{maxHeight:120,overflowY:"auto"}},children:m?[O!=="search"&&l.jsx(Be,{onClick:()=>{T("search"),me()},children:l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Search Products & Categories"})},"search"),O!=="store"&&l.jsx(Be,{onClick:()=>{T("store"),me()},children:l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"All Stores"})},"store"),O!=="filters"&&l.jsx(Be,{onClick:()=>{T("filters"),me()},children:l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Filters"})},"filters"),O!=="sort"&&l.jsx(Be,{onClick:()=>{T("sort"),me()},children:l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Sort"})},"sort"),l.jsx(Be,{onClick:me,children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(Or,{sx:{width:20,height:20}}),l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Refresh"})]})},"refresh"),O!=="settings"&&l.jsx(Be,{onClick:()=>{T("settings"),me()},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(Wd,{size:18.33,color:"#454545"}),l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Settings"})]})},"settings"),O!=="notification"&&l.jsx(Be,{onClick:()=>{T("notification"),me()},children:l.jsx(qi,{})},"notification"),O!=="askAira"&&l.jsx(Be,{onClick:()=>{T("askAira"),me()},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(Yi,{}),l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Ask Aira"})]})},"askAira")]:[C&&l.jsx(Be,{onClick:me,children:l.jsx(qi,{})},"notification"),b&&l.jsx(Be,{onClick:()=>{me(),!p.loading&&g("/product-setting",{state:{tenantIntegrationMatched:!!p.matched}})},children:l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Settings"})},"settings"),v&&l.jsx(Be,{onClick:me,children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(Or,{sx:{width:20,height:20,opacity:1}}),l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Refresh"})]})},"refresh"),I&&l.jsx(Be,{onClick:ye=>{me(),ae(ye)},children:l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"All Stores"})},"store"),A&&l.jsx(Be,{onClick:()=>{me(),r?r():(W(e||{}),V(!0))},children:l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Filters"})},"filters"),w&&l.jsx(Be,{onClick:me,children:l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Sort"})},"sort"),l.jsx(Be,{onClick:me,children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(Yi,{}),l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Ask Aira"})]})},"askAira")]})]})})})}),i&&(()=>{const{open:ye,onClose:_e,onStoreSelect:Le,...Ne}=s||{};return l.jsx(i,{open:F,onClose:H,onStoreSelect:pe,selectedStores:X,...Ne})})(),!r&&l.jsx(Y2,{open:k,filters:$,onChange:W,onClose:()=>V(!1),onApply:ye=>{t&&t(ye!==void 0?ye:$),V(!1)},priceRange:h})]})};function yo({text:e="Fetching",fullScreen:t=!0,textVisible:n=!0}){const r=fn(),i=t?{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 64px)"}:r?.loadingBox||{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"};return l.jsx(P,{sx:{...i,animation:"fade-in 1s ease-in-out","@keyframes fade-in":{from:{opacity:0},to:{opacity:1}}},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:2,bgcolor:"#f5f7fa"},children:[l.jsx(yi,{size:24}),n&&l.jsxs(B,{sx:{animation:"fade-in 1s ease-in-out","@keyframes fade-in":{from:{opacity:0},to:{opacity:1}}},children:[e," ..."]})]})})}const nI="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 Vd({loading:e,handleStartSyncing:t,categoryName:n,sessionExpired:r=!1,hasIntegration:i=!1,hideSubtitleAndAction:s=!1,isHomeCategorySearchEmpty:a=!1,isHomeCategorySearch:c=!1,categoryHasNoProducts:d=!1,hideActionLink:u=!1,hideIconAndTitle:p=!1,showFetchingCategoriesLabel:h=!1}){const y=Ot(),x=fn(),[g]=j.useState({matched:!1,error:"",apiResponse:null,loading:!1});let f=x&&x.emptyProduct?x.emptyProduct:{wrapper:{},card:{},iconContainer:{},inboxIcon:{},title:{},subtitle:{},actionLink:{}};const S=Xe(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 h?w="Fetching Categories":(c||a||n)&&(w="Fetching Category"),l.jsx(yo,{text:w,fullScreen:!0})}return l.jsx(P,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:l.jsx(P,{sx:f.wrapper,children:l.jsxs(P,{sx:f.card,children:[!(p||a)&&l.jsx(P,{sx:f.iconContainer,children:l.jsx(P,{component:"img",src:nI,alt:"No products",sx:{display:"block",objectFit:"contain",maxWidth:"100%",width:280,height:240,...f.inboxIcon,border:"none",outline:"none",borderRadius:0,bgcolor:"transparent"}})}),l.jsx(B,{sx:f.title,children:!r&&(a||n?"No Category Found":"No Products")}),!a&&!s&&!e&&l.jsx(B,{sx:f.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&&!u&&v&&!i&&l.jsx(B,{component:"a",href:"#",sx:f.actionLink,onClick:w=>{w.preventDefault(),C()},children:"Start Syncing Products"})]})})})}const Km=ot(l.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"),rI="#22c55e";function Ud(e){const{sx:t,color:n=rI,fontSize:r,...i}=e;return l.jsxs(er,{viewBox:"0 0 24 24",sx:{fontSize:r||24,color:n,...t},...i,children:[l.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",d:"M6.5 12l3.5 4 7-8"})]})}function oI({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 j.useEffect(()=>{if(!n||n<=0||typeof t!="function")return;const s=window.setTimeout(()=>{t()},n);return()=>window.clearTimeout(s)},[n,t]),l.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:[l.jsx(P,{sx:{flexShrink:0,mt:.25,display:"flex",alignItems:"center"},children:l.jsx(Ud,{sx:{fontSize:40}})}),l.jsxs(P,{sx:{flex:1,minWidth:0,pt:.25},children:[l.jsx(B,{sx:{fontWeight:700,fontSize:16,color:"#111",lineHeight:1.3},children:"Catalog created"}),l.jsx(B,{sx:{fontWeight:400,fontSize:14,color:"#666",mt:.25,lineHeight:1.4},children:"You can now share it for collecting orders"}),l.jsx(B,{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"})]}),l.jsx(mt,{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:l.jsx(Km,{sx:{fontSize:20}})})]})}const iI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMFJREFUeAGNUgENwjAQbBcM4AAcgALmAByAhE3BWgXDQTcHSCgKkEBwAArKXfJNnjIWPrnc//e+/VtmzUw452oQEZFH9qoZcQB1UgbUPRP7Q+xAK9BJ9W6g1po/Qy4xC9303ncppUbKAZpWHR/5QqV3hniNlNgCy7yS+LmCL1Y1LAUi2vFB4An0+YzaCskBXKvbBtALoMk78NDm6WEDjIVB+mjMRNBDBPbFQMhfpYzs4SxDo+z/scbXgAzVpvgNpuINgHBRUvbxfqsAAAAASUVORK5CYII=";function sI(e){const{sx:t,alt:n="link icon",...r}=e;return l.jsx(P,{component:"img",src:iI,alt:n,sx:{display:"inline-block",width:16,height:16,objectFit:"contain",...t},...r})}const aI=ot(l.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function At({size:e,style:t,sx:n,...r}){return l.jsx(aI,{...r,sx:{...e&&{width:e,height:e},...t,...n}})}const nl={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#454545"},Gm={fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},lI={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},Xm=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`},rl=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))},Jm=({productState:e,categoryName:t,categoryProductCount:n,categoryCount:r,activeCatalogsCount:i=0,onManageClick:s,matchHomePageLayout:a=!1})=>{const c=e?.metrics||{},d=e?.productDashboardMetrics||{},u=!t,p=a||u,h=!!t&&!p,y=p?"12px":"8px",x=p?void 0:261.3333435058594,g=101,f=t?d.productCount!=null?d.productCount:n:u&&(c.activeCategories!=null||c.activeProducts!=null)?c.activeCategories??r??0:r??e?.homePageCardSummary?.totalCategories??0,m=t?"":"Products",S=t?"":u&&c.activeProducts!=null?c.activeProducts:e?.homePageCardSummary?.totalProducts??0,C=c?.lastSyncTime,b=d?.lastSyncTime,v=Xm(u?C:b||C),w=u&&c.activeCatalogues!=null?c.activeCatalogues:t&&d.activeCatalogues!=null?d.activeCatalogues:i,A=c.onShelfYesterdayPerc!=null?Math.round(Number(c.onShelfYesterdayPerc)):null,I=c.totalOnShelfYesterdayCount!=null?Number(c.totalOnShelfYesterdayCount):null,z=c.totalStockYesterdayCount!=null?Number(c.totalStockYesterdayCount):null,M=c.missingOnShelfYesterdayPercent!=null?Math.round(Number(c.missingOnShelfYesterdayPercent)):null,L=d.onShelfYesterdayPerc!=null?Math.round(Number(d.onShelfYesterdayPerc)):null,O=d.totalOnShelfYesterdayCount!=null?Number(d.totalOnShelfYesterdayCount):null,T=d.totalStockYesterdayCount!=null?Number(d.totalStockYesterdayCount):null,N=d.missingOnShelfYesterdayPercent!=null?Math.round(Number(d.missingOnShelfYesterdayPercent)):null,D=u?A!=null?`${A}%`:"78%":L!=null?`${L}%`:"78%",U=u?I!=null&&z!=null?`${rl(I)}/${rl(z)}`:"78/100k":O!=null&&T!=null?`${rl(O)}/${rl(T)}`:"78/100k",F=u?M!=null?`${M}% Missing`:"22% missing":N!=null?`${N}% Missing`:"22% missing",_=t?`${t} Products`:"Categories";return l.jsx(or,{maxWidth:!1,sx:{width:"100%",maxWidth:"100%",minWidth:"100%",px:0},children:l.jsxs(P,{sx:{width:"100%",maxWidth:"100%",height:p?"auto":h?101:"auto",gap:y,opacity:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"stretch",mb:3},children:[l.jsx(Hd,{cardWidth:x??344,cardHeight:g,title:_,titleValue:f,subtitle:m,subtitleValue:S,recentText:v,tickMarkRequired:!0,btnLabel:"History",flexGrow:!0,flexOverride:p?"2 1 180px":h?void 0:"2 1 180px"}),l.jsx(Hd,{cardWidth:x??220,cardHeight:g,title:"Active Catalogs",titleValue:w,recentText:"4 public links",linkRequired:!0,btnLabel:"Manage",onBtnClick:s,flexGrow:!0,flexOverride:p?"1 1 200px":h?void 0:"1 1 200px"}),l.jsx(Hd,{cardWidth:x??220,cardHeight:g,title:"On Shelf Yesterday",titleValue:D,thirdVaue:U,recentText:F,recentTextColor:"#FF2929",btnLabel:"Report",isThirdCard:!0,flexGrow:!0,flexOverride:p?"1 1 200px":h?void 0:"1 1 200px"})]})})};function Hd({cardWidth:e=344,cardHeight:t=101,title:n="",subtitle:r="",titleValue:i="",thirdVaue:s="",subtitleValue:a="",recentText:c="",recentTextColor:d="#808080",btnLabel:u="",tickMarkRequired:p=!1,linkRequired:h=!1,onBtnClick:y,isThirdCard:x=!1,flexGrow:g=!1,flexOverride:f}){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 l.jsxs(La,{sx:{width:g?void 0:e,minWidth:g?200:void 0,flex:f??(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:[l.jsx(P,{sx:{width:g?"100%":e,height:68,opacity:1,gap:"4px",padding:"8px 12px",display:"flex",alignItems:"flex-start",boxSizing:"border-box"},children:x?l.jsx(l.Fragment,{children:l.jsxs(P,{sx:{width:"100%",height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[l.jsx(B,{sx:{...nl,height:16},children:n}),l.jsxs(P,{sx:{minWidth:0,height:32,opacity:1,gap:"6px",display:"flex",alignItems:"baseline",flexWrap:"nowrap"},children:[l.jsx(B,{sx:{...m},children:i}),l.jsx(B,{sx:{...S},children:s})]})]})}):l.jsxs(l.Fragment,{children:[n&&l.jsxs(P,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[l.jsx(B,{sx:{...nl,width:158,height:16},children:n}),l.jsx(B,{sx:{...Gm,width:32,height:32},children:i}),s&&l.jsx(B,{component:"span",sx:{...nl,fontSize:12,color:"#808080",ml:.5},children:s})]}),r&&l.jsxs(P,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[l.jsx(B,{sx:{...nl,width:158,height:16},children:r}),l.jsx(B,{sx:{...Gm,width:47,height:32},children:a})]})]})}),l.jsx(en,{}),l.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?l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:l.jsx(B,{sx:{...C,whiteSpace:"nowrap"},children:c})}),u&&l.jsxs(P,{sx:{width:58,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:[l.jsx(Ke,{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:u}),l.jsx(At,{sx:{width:16,height:16,color:"#2D64B8"}})]})]}):l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{flex:1,minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:[p&&l.jsx(Ud,{sx:{width:12,height:12,mr:.5}}),h&&l.jsx(sI,{sx:{color:"#2563eb",width:12,height:12,mr:.5}}),l.jsx(B,{sx:{...lI,height:12,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:c})]}),u&&l.jsx(P,{sx:{width:65,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:l.jsxs(Ke,{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:[u,l.jsx(At,{sx:{width:16,height:16,color:"#2D64B8"}})]})})]})})]})}const cI=ot(l.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");function ol(e){return l.jsx(cI,{...e})}function il(e){return l.jsx(er,{viewBox:"0 0 14 14",...e,children:l.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}function Qm(e){if(!e)return"";try{return new Date(e).toLocaleDateString()}catch{return e}}function Zm(e){return e?.categoryName??e?.name??""}function dI({categoryData:e=[],styles:t={},onView:n,selectedCategories:r=[],onToggleCategory:i}){const s=O=>r.some(T=>Zm(T)===Zm(O)),a=e.length>0&&e.every(s),c=e.some(s),[d,u]=j.useState(!1),[p,h]=j.useState([]),[y,x]=j.useState(0),[g,f]=j.useState(""),[m,S]=j.useState(0),C=t.categoryTableShared??{},b=ft("(max-width:600px)"),v=ft("(max-width:900px)"),w=ft("(max-width:400px)");let A=4;b?A=1:v&&(A=2);const I=(O,T,N,D)=>{const U=Array.isArray(O)?O:[],F=Number.isFinite(Number(D))?Number(D):U.length;if(F<=0)return;const _=F-1,k=Math.max(0,Math.min(T,_));h(U),x(k),S(F),f(N||""),u(!0)},z=()=>{u(!1)},M=()=>{x(O=>O>0?O-1:O)},L=()=>{x(O=>O<m-1?O+1:O)};return l.jsxs(l.Fragment,{children:[l.jsx(or,{maxWidth:!1,sx:t.categoryTableContainer,children:l.jsxs(La,{sx:t.categoryTable,children:[l.jsxs(P,{sx:{...t.categoryTableHeader,width:"100%"},children:[i&&l.jsx(P,{sx:t.categoryTableHeaderCheckboxCol,children:l.jsx(yt,{checked:a,indeterminate:c&&!a,onChange:()=>{a?e.forEach(O=>i(O)):e.forEach(O=>{s(O)||i(O)})},size:"small",sx:C.checkboxHeaderSx,icon:l.jsx("span",{style:C.checkboxIconSpanHeader}),checkedIcon:l.jsx("span",{style:C.checkboxCheckedIconSpan,children:l.jsx("span",{style:C.checkboxCheckedIconInner})}),indeterminateIcon:l.jsx("span",{style:C.checkboxCheckedIconSpan,children:l.jsx("span",{style:C.checkboxCheckedIconInner})})})}),l.jsxs(P,{sx:t.categoryTableHeaderCategoryCell,children:["Category",l.jsx(ol,{sx:t.categoryTableHeaderArrow})]}),!w&&l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:t.categoryTableHeaderStockCell,children:"Stock / OSA"}),l.jsx(P,{sx:t.categoryTableHeaderProductsCell,children:"Products"})]}),l.jsx(P,{sx:t.categoryTableHeaderEmptyCell})]}),e.map((O,T)=>{const N=Array.isArray(O.images)?O.images:[],D=N.slice(0,A),U=Number.isFinite(Number(O.productCount))?Number(O.productCount):N.length,F=Math.max(U-D.length,0);return l.jsx(P,{sx:{...t.categoryTableRow(T),width:"100%",flexDirection:w?"column":t.categoryTableRow?.flexDirection,alignItems:w?"flex-start":t.categoryTableRow?.alignItems},children:w?l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",width:"100%",gap:1},children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:1,minWidth:0,flex:1},children:[i&&l.jsx(P,{sx:t.categoryTableRowCheckboxFrame,children:l.jsx(yt,{checked:s(O),onChange:()=>i(O),size:"small",sx:{...C.checkboxRowSx,outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"}},icon:l.jsx("span",{style:C.checkboxIconSpanRow}),checkedIcon:l.jsx("span",{style:C.checkboxRowCheckedIconSpan,children:l.jsx(il,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),l.jsxs(P,{sx:{...t.categoryNameCell,flex:"1 1 auto",minWidth:0},children:[l.jsx(B,{sx:t.categoryName,children:O.categoryName}),l.jsxs(B,{sx:t.categoryProducts,children:[O.productCount," Products"]}),l.jsxs(B,{sx:t.categoryUpdated,children:["Updated ",Qm(O.lastUpdated)]})]})]}),l.jsx(P,{sx:{...t.categoryViewCell,flexShrink:0,mt:"5px",alignSelf:"flex-start",alignItems:"flex-start"},children:l.jsxs(Ke,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:O.categoryName,...O}),children:["View",l.jsx(At,{sx:t.categoryViewButtonIcon})]})})]}),l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:2,width:"100%",mt:.5,...i&&{ml:"24px"}},children:[l.jsxs(P,{sx:{...t.categoryStockCell,flex:"0 0 auto"},children:[l.jsxs(B,{sx:t.categoryStock(T),children:[O.totalStock,"/",O.totalOsa]}),l.jsx(B,{sx:t.categoryOSA(T),children:O.osaPercent!=null?l.jsxs(l.Fragment,{children:[l.jsxs(P,{component:"span",sx:Number(O.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(O.osaPercent)),"%"]})," on shelf"]}):""})]}),l.jsxs(P,{sx:{...t.categoryImagesCell,flex:"1 1 auto",minWidth:0},children:[D.map((_,k)=>l.jsx(Ar,{src:_,alt:(O.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>I(N,k,O.categoryName||"",U)},k)),F>0&&l.jsx(P,{onClick:()=>I(N,D.length,O.categoryName||"",U),sx:{...t.categoryImage,...t.categoryMoreImageBox},children:l.jsxs(B,{sx:t.categoryMoreImageText,children:["+",F," More"]})})]})]})]}):l.jsxs(l.Fragment,{children:[i&&l.jsx(P,{sx:t.categoryTableRowCheckboxFrame,children:l.jsx(yt,{checked:s(O),onChange:()=>i(O),size:"small",sx:{...C.checkboxRowSx,outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"}},icon:l.jsx("span",{style:C.checkboxIconSpanRow}),checkedIcon:l.jsx("span",{style:C.checkboxRowCheckedIconSpan,children:l.jsx(il,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),l.jsxs(P,{sx:{...t.categoryNameCell,width:"auto"},children:[l.jsx(B,{sx:t.categoryName,children:O.categoryName}),l.jsxs(B,{sx:t.categoryProducts,children:[O.productCount," Products"]}),l.jsxs(B,{sx:t.categoryUpdated,children:["Updated ",Qm(O.lastUpdated)]})]}),l.jsxs(P,{sx:{...t.categoryStockCell,width:"auto"},children:[l.jsxs(B,{sx:t.categoryStock(T),children:[O.totalStock,"/",O.totalOsa]}),l.jsx(B,{sx:t.categoryOSA(T),children:O.osaPercent!=null?l.jsxs(l.Fragment,{children:[l.jsxs(P,{component:"span",sx:Number(O.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(O.osaPercent)),"%"]})," on shelf"]}):""})]}),l.jsxs(P,{sx:{...t.categoryImagesCell,width:"auto"},children:[D.map((_,k)=>l.jsx(Ar,{src:_,alt:(O.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>I(N,k,O.categoryName||"",U)},k)),F>0&&l.jsx(P,{onClick:()=>I(N,D.length,O.categoryName||"",U),sx:{...t.categoryImage,...t.categoryMoreImageBox},children:l.jsxs(B,{sx:t.categoryMoreImageText,children:["+",F," More"]})})]}),l.jsx(P,{sx:{...t.categoryViewCell,width:"auto"},children:l.jsxs(Ke,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:O.categoryName,...O}),children:["View",l.jsx(At,{sx:t.categoryViewButtonIcon})]})})]})},O.categoryName||T)})]})}),l.jsxs(co,{open:d,onClose:z,maxWidth:"lg",fullWidth:!0,children:[l.jsxs(po,{sx:t.categoryImageDialogTitleRow,children:[l.jsxs(B,{sx:t.categoryImageDialogTitleText,children:["Image Preview",g?` - ${g}`:""]}),l.jsx(Ke,{onClick:z,sx:t.categoryImageDialogCloseButton,children:"Close"})]}),l.jsx(Ii,{sx:t.categoryImageDialogContent,children:m>0&&l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:t.categoryImageDialogImageBox,children:p[y]?l.jsx(P,{component:"img",src:p[y],alt:(g||"Category")+` image ${y+1}`,sx:t.categoryImageDialogImage}):l.jsx(B,{sx:t.categoryImageDialogFallbackText,children:(g||"Category")+` image ${y+1}`})}),l.jsxs(P,{sx:t.categoryImageDialogFooterRow,children:[l.jsx(Ke,{variant:"outlined",size:"small",onClick:M,disabled:y<=0,sx:t.categoryImageDialogNavButton,children:"Previous"}),l.jsxs(B,{sx:t.categoryImageDialogCounterText,children:[y+1," of ",m]}),l.jsx(Ke,{variant:"outlined",size:"small",onClick:L,disabled:y>=m-1,sx:t.categoryImageDialogNavButton,children:"Next"})]})]})})]})]})}const pI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAKpJREFUeAHFko0NgkAMhR+EARjhRtAJZATcQDfRCRxBRnAE3eBGYJP6qsU0F4FLIOFLyv20r6TtAYaItDLPHY7S7WtaV4xA3xkJJRawSFzph7U0XA60wP1pJHbwt1wjK+kLHm487Gg98qgtfq9isYZkQ0nH5blOwzaZc2TGC77dnGOYhsZ+aj7aX0OO2IRXHdXvVjOmNXn++askpplIEJC8BS9+YJoXLfqLN/KniiDmJ/GnAAAAAElFTkSuQmCC";function uI({sx:e={},...t}){return l.jsx(P,{component:"img",src:pI,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const fI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMlJREFUeAGdUgERwyAMDLsJqIRKQEIlVAIOhoPVQSV0Diahc7A6QMJwwMLt2bGMtlxz98cR8n+fBKKdCCFcGC584skwVBNcOIGgcdcQsntEy7gxGpFvIdDQkUhuzoWHlo+O4RkPpZRf0WgkcWS80OsMe72oMTEviZPsEQO6i7tLA/whCnUtxIvEa66eFSb7JmtHS7vuL0nflQwQsMXVxG9DB+PEWJjfFUSj9XGTDUsO+025fq2dksCA4hlnFVFlAnEgkeD5Vy1UEW+PYQ9FgjWUTgAAAABJRU5ErkJggg==";function hI({sx:e={},...t}){return l.jsx(P,{component:"img",src:fI,alt:"",role:"presentation",sx:{width:"13.26px",height:"13.24px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const gI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAANBJREFUeAGtU4ERwiAMDL0O4AbiJDKCKziJdBI7CpuIG7gBfir0Igbqnf5dSvr9hiQEoh9h+JFSslgugo/GmEkKoblW/07QxCG/eJgTHy194i58VzYcBRkQ8UytVI3xIpu5+AN1wKXl8poYGykWeI4D0zLT9MuuJ9gt+3NpHnMwV+u1EnakN9FqfLcH30ALELNp/KMmlyaiNo9lz8cIC/APtRD8ykl9OQVLr27X8KRj1Y/UAY8qbUAGcGLet+7CERbYkXch0HuKNeTgsHaif+AJ5CBPR1lDq+wAAAAASUVORK5CYII=";function mI({sx:e={},...t}){return l.jsx(P,{component:"img",src:gI,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const Rd=640,qd={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"}},Yd={width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},Kd={width:"13.33px",height:"13.33px",objectFit:"contain",boxSizing:"border-box"},Gd={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",color:"#FFFFFF",whiteSpace:"nowrap"},ey=({onPromoPrint:e,onCreateCatalog:t,onOsaRequest:n,selectedProducts:r,selectedCategories:i,containerRef:s})=>{const a=r||[],c=i||[],d=a.length>0,u=c.length>0,p=ft("(max-width:450px)"),[h,y]=j.useState(null),x=j.useRef(null);if(j.useEffect(()=>{const M=s?.current;if(!M){queueMicrotask(()=>y(null));return}const L=()=>{x.current&&cancelAnimationFrame(x.current),x.current=requestAnimationFrame(()=>{x.current=null,y(M.getBoundingClientRect())})};L();const O=new ResizeObserver(L);return O.observe(M),window.addEventListener("resize",L),()=>{O.disconnect(),window.removeEventListener("resize",L),x.current&&cancelAnimationFrame(x.current)}},[s]),!d&&!u)return null;const g=c.length,f=new Set(c.map(M=>(M?.categoryName||M?.name||"").toString().trim()).filter(Boolean)),m=a.filter(M=>{const L=(M.categoryName||M.category||"").toString().trim();return L?!f.has(L):!0}),S=m.length,C=m.map(M=>(M.categoryName||M.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(u&&A){const M=`${g} categor${g===1?"y":"ies"}`,L=`product${S===1?"":"s"}`;v?w=`${M} + ${S} ${L} of ${v} category`:w=`${M} + ${S} ${L}`}else u?w=`${g} categor${g===1?"y":"ies"} selected`:w=`${S} item${S===1?"":"s"} selected`;const I=h?Math.min(Rd,h.width):Rd,z=h?{left:h.left+(h.width-I)/2,width:I}:{left:"50%",transform:"translateX(-50%)",width:"100%",maxWidth:Rd};return l.jsxs(P,{sx:{position:"fixed",bottom:24,...z,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:[l.jsx(B,{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}),l.jsx(P,{sx:{flex:1,minWidth:8,flexShrink:1,"@media (max-width: 600px)":{display:"none"}}}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0,"@media (max-width: 600px)":{width:"100%",justifyContent:"center"}},children:[(d||u)&&l.jsxs(P,{component:"button",onClick:e,sx:{...qd,width:139},children:[l.jsx(P,{sx:Yd,children:l.jsx(uI,{sx:Kd})}),l.jsx(B,{component:"span",sx:Gd,children:p?"Promo":"Promo Print"})]}),l.jsxs(P,{component:"button",onClick:t,sx:{...qd,width:158},children:[l.jsx(P,{sx:Yd,children:l.jsx(hI,{sx:Kd})}),l.jsx(B,{component:"span",sx:Gd,children:p?"Catalog":"Create Catalog"})]}),l.jsxs(P,{component:"button",onClick:n,sx:{...qd,width:147},children:[l.jsx(P,{sx:Yd,children:l.jsx(mI,{sx:Kd})}),l.jsx(B,{component:"span",sx:Gd,children:p?"OSA":"OSA Request"})]})]})]})},yI=ot(l.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function Ir(e){return l.jsx(yI,{...e})}const ty=ot(l.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 Xd(e){return!e||typeof e!="string"?"":e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function ny({onClose:e,selectedProducts:t=[],selectedCategories:n=[],open:r,stores:i=[],onCreateSuccess:s}){const a=on(),{createdById:c,createdByName:d,createCatalogLoading:u,createCatalogError:p}=Xe(k=>k.dashboard),h=Array.isArray(t)?t.length:0,y=Array.isArray(n)?n.length:0,x=h+y,[g,f]=j.useState("Christmas Super Sale 2025"),[m]=j.useState(""),[S,C]=j.useState(["all"]),[b,v]=j.useState(!1),w=j.useRef(null),[A,I]=j.useState(null),[z,M]=j.useState(280),L=j.useMemo(()=>Xd(g),[g]),O=j.useMemo(()=>L?`/${L}`:"",[L]);j.useEffect(()=>{r&&a(hf())},[r,a]),j.useEffect(()=>{p&&a(hf())},[g,L,p,a]);const T=j.useMemo(()=>i.filter(k=>k.id!=="all"),[i]),N=S.includes("all")||S.length===0,D=j.useMemo(()=>N?T.map(k=>k.storeCode).filter(Boolean):S.filter(k=>k!=="all").map(k=>T.find(V=>V.id===k)?.storeCode).filter(Boolean),[N,S,T]),U=k=>{C(V=>{const $=V.filter(q=>q!=="all");if($.includes(k)){const q=$.filter(J=>J!==k);return q.length===0?["all"]:q}const W=[...$,k];return W.length===T.length?["all"]:W})},F=()=>{const k=g?.trim();if(!k)return;const V=(t||[]).map((W,q)=>({productId:W.catalogProductId||W.productId||W.id,sorting:q+1})).filter(W=>W.productId),$=(n||[]).map(W=>typeof W=="string"?W:W?.categoryName??W?.name).filter(Boolean);a(Ds({name:k,slug:L||Xd(k),description:m?.trim()||"",storeCode:D,createdById:c,createdByName:d||"Admin",products:V,categories:$})).unwrap().then(()=>{const W=L||Xd(k);typeof s=="function"&&s(W),e()}).catch(()=>{})},_=fn().createCatalog;return l.jsxs(co,{open:r,onClose:e,maxWidth:!1,PaperProps:{sx:_.dialog},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[l.jsx(po,{sx:{p:0},children:l.jsxs(P,{sx:_.header,children:[l.jsxs(B,{sx:_.headerTitle,children:["Create Catalog of ",x," ",y>0&&h===0?x===1?"Category":"Categories":"Items"]}),l.jsx(P,{component:"button",onClick:e,sx:_.clearIconCard,"aria-label":"Close",children:l.jsx(ty,{sx:{fontSize:16,color:"#454545"}})})]})}),l.jsxs(Ii,{sx:_.content,children:[l.jsxs(P,{sx:_.fieldBlock,children:[l.jsx(B,{sx:_.fieldLabel,children:"Catalog Name"}),l.jsx("input",{type:"text",value:g,onChange:k=>f(k.target.value),style:_.input})]}),l.jsxs(P,{sx:_.fieldBlock,children:[l.jsx(B,{sx:_.fieldLabel,children:"Catalog Link"}),l.jsxs("div",{style:{position:"relative",width:"100%"},children:[l.jsx("input",{type:"text",readOnly:!0,value:O,style:{..._.input,..._.inputReadOnly,paddingRight:36}}),O&&l.jsx(Ud,{color:"green",fontSize:"18px",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]})]}),l.jsxs(P,{sx:_.fieldBlock,children:[l.jsx(B,{sx:_.fieldLabel,children:"For These Stores"}),l.jsxs(P,{sx:{width:"100%"},children:[l.jsxs(P,{ref:w,sx:_.storeDropdown,onClick:()=>{const k=!b;v(k),k&&w.current?(I(w.current),M(w.current.offsetWidth??280)):k||I(null)},children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",mr:1},children:l.jsx(jd,{sx:{width:20,height:20}})}),l.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:N?"All Stores":`${S.length} store(s) selected`}),l.jsx("span",{style:{color:"#454545",fontWeight:400,fontSize:12,marginLeft:4},children:` out of ${T.length} stores`}),l.jsx(Ir,{sx:{color:"#454545",ml:"auto"}})]}),l.jsxs(zi,{open:b,onClose:()=>{v(!1),I(null)},anchorEl:A,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{mt:1,minWidth:z,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:[l.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:N?700:400,color:N?"#222":"#444",background:N?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{C(["all"]),v(!1)},children:[l.jsx(yt,{size:"small",checked:N,sx:{p:.5,mr:1}}),"All Stores"]}),T.map(k=>{const V=S.includes(k.id);return l.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:()=>U(k.id),children:[l.jsx(yt,{size:"small",checked:V,sx:{p:.5,mr:1}}),k.name]},k.id)})]})]})]}),p&&l.jsx(B,{color:"error",fontSize:14,sx:{mb:2},children:p}),l.jsx(P,{sx:{display:"flex",justifyContent:"flex-end"},children:l.jsx(Ke,{variant:"contained",color:"primary",disabled:u||!g?.trim()||x===0,onClick:F,sx:_.createButton,children:u?"Creating...":"Create"})})]})]})}function ry({onClose:e,open:t,stores:n=[],selectedProducts:r=[],selectedCategories:i=[],onSuccess:s}){const a=on(),{createOsaRequestLoading:c,createOsaRequestError:d}=Xe(w=>w.dashboard),[u,p]=j.useState(["all"]),[h,y]=j.useState(!1),x=j.useMemo(()=>n.filter(w=>w.id!=="all"&&w.storeCode!=="all"),[n]),g=u.includes("all")||u.length===0,f=j.useMemo(()=>g?x.map(w=>w.storeCode).filter(Boolean):u.filter(w=>w!=="all").map(w=>x.find(A=>A.id===w)?.storeCode).filter(Boolean),[g,u,x]),m=j.useMemo(()=>(r||[]).map(w=>w.catalogProductId||w.productId||w.id).filter(Boolean).map(String),[r]),S=j.useMemo(()=>(Array.isArray(i)?i:[]).filter(Boolean).map(String),[i]),C=f.length>0&&(m.length>0||S.length>0);j.useEffect(()=>{t&&a(mS())},[t,a]);const b=w=>{p(A=>{const I=A.filter(M=>M!=="all");if(I.includes(w)){const M=I.filter(L=>L!==w);return M.length===0?["all"]:M}const z=[...I,w];return z.length===x.length?["all"]:z})},v=()=>{C&&a($s({storeCodes:f,products:m,categories:S})).unwrap().then(()=>{typeof s=="function"&&s(),e()}).catch(()=>{})};return l.jsxs(co,{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:[l.jsx(po,{children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsx(B,{variant:"h6",fontWeight:600,ml:-3,children:"New OSA Request"}),l.jsx(mt,{onClick:e,size:"small","aria-label":"Close",children:l.jsx(Km,{})})]})}),l.jsx(B,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),l.jsxs(P,{sx:{position:"relative",mb:3},children:[l.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:[l.jsx(P,{sx:{display:"flex",alignItems:"center",mr:1},children:l.jsx(jd,{size:12,style:{color:"#555",marginRight:4}})}),l.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:g?"All Stores":`${u.length} store(s) selected`}),l.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${x.length} stores`}),l.jsx(Ir,{sx:{color:"#888",ml:"auto"}})]}),h&&l.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:[l.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:()=>{p(["all"]),y(!1)},children:[l.jsx(yt,{size:"small",checked:g,sx:{p:.5,mr:1}}),"All Stores"]}),x.map(w=>{const A=u.includes(w.id);return l.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:[l.jsx(yt,{size:"small",checked:A,sx:{p:.5,mr:1}}),w.name]},w.id)})]})]}),d&&l.jsx(B,{color:"error",fontSize:14,sx:{mb:2},children:d}),l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:l.jsx(Ke,{variant:"contained",color:"primary",disabled:!C||c,onClick:v,sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:c?"Sending...":"Send Request"})})]})}const On=(e,t=0)=>{const n=Number(e);return Number.isFinite(n)?n:t},In=()=>{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}`}},Ki=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=On(r,0),a=On(i,0),c=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:c,saveAmount:d}},bI=(e,t,n={})=>{const{productName:r,mrp:i,discountPrice:s}=Ki(e),a=Math.max(0,On(i,0)-On(s,0)),c=n.validTo||In().validTo,d=n.ppd||In().ppd;return`
|
|
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([Vn,o.func]),disableScrollLock:o.bool,elevation:wa,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:Jc}),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 MP(e){return Te("MuiMenu",e)}Ae("MuiMenu",["root","paper","list"]);const DP={vertical:"top",horizontal:"right"},_P={vertical:"top",horizontal:"left"},$P=e=>{const{classes:t}=e;return ke({root:["root"],paper:["paper"],list:["list"]},MP,t)},zP=J(kd,{shouldForwardProp:e=>Pt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),LP=J(fm,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),BP=J(cm,{name:"MuiMenu",slot:"List"})({outline:0}),$i=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:a,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:u,open:p,PaperProps:h={},PopoverClasses:y,transitionDuration:b="auto",TransitionProps:{onEntering:g,...f}={},variant:m="selectedMenu",slots:S={},slotProps:C={},...x}=r,v=pi(),w={...r,autoFocus:i,disableAutoFocusItem:c,MenuListProps:d,onEntering:g,PaperProps:h,transitionDuration:b,TransitionProps:f,variant:m},A=$P(w),O=i&&!c&&p,L=E.useRef(null),M=(V,B)=>{L.current&&L.current.adjustStyleForScrollbar(V,{direction:v?"rtl":"ltr"}),g&&g(V,B)},_=V=>{V.key==="Tab"&&(V.preventDefault(),u&&u(V,"tabKeyDown"))};let I=-1;E.Children.map(s,(V,B)=>{E.isValidElement(V)&&(process.env.NODE_ENV!=="production"&&qc.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||I===-1)&&(I=B))});const T={slots:S,slotProps:{list:d,transition:f,paper:h,...C}},F=En({elementType:S.root,externalSlotProps:C.root,ownerState:w,className:[A.root,a]}),[D,U]=Oe("paper",{className:A.paper,elementType:LP,externalForwardedProps:T,shouldForwardComponentProp:!0,ownerState:w}),[N,$]=Oe("list",{className:be(A.list,d.className),elementType:BP,shouldForwardComponentProp:!0,externalForwardedProps:T,getSlotProps:V=>({...V,onKeyDown:B=>{_(B),V.onKeyDown?.(B)}}),ownerState:w}),k=typeof T.slotProps.transition=="function"?T.slotProps.transition(w):T.slotProps.transition;return l.jsx(zP,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?DP:_P,slots:{root:S.root,paper:D,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:F,paper:U,backdrop:typeof C.backdrop=="function"?C.backdrop(w):C.backdrop,transition:{...k,onEntering:(...V)=>{M(...V),k?.onEntering?.(...V)}}},open:p,ref:n,transitionDuration:b,ownerState:w,...x,classes:y,children:l.jsx(N,{actions:L,autoFocus:i&&(I===-1||c),autoFocusItem:O,variant:m,...$,children:s})})});process.env.NODE_ENV!=="production"&&($i.propTypes={anchorEl:o.oneOfType([Vn,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 jP(e){return Te("MuiMenuItem",e)}const zi=Ae("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),WP=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},VP=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:s,classes:a}=e,d=ke({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},jP,a);return{...a,...d}},UP=J(gi,{shouldForwardProp:e=>Pt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:WP})(Ce(({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"}},[`&.${zi.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${zi.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${zi.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)}},[`&.${zi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Qg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Qg.inset}`]:{marginLeft:52},[`& .${uo.root}`]:{marginTop:0,marginBottom:0},[`& .${uo.inset}`]:{paddingLeft:36},[`& .${sm.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,[`& .${sm.root} svg`]:{fontSize:"1.25rem"}}}]}))),We=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:a=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:u,role:p="menuitem",tabIndex:h,className:y,...b}=r,g=E.useContext(Mi),f=E.useMemo(()=>({dense:a||g.dense||!1,disableGutters:d}),[g.dense,a,d]),m=E.useRef(null);Xt(()=>{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:f.dense,divider:c,disableGutters:d},C=VP(r),x=ft(m,n);let v;return r.disabled||(v=h!==void 0?h:-1),l.jsx(Mi.Provider,{value:f,children:l.jsx(UP,{ref:x,role:p,tabIndex:v,component:s,focusVisibleClassName:be(C.focusVisible,u),className:be(C.root,y),...b,ownerState:S,classes:C})})});process.env.NODE_ENV!=="production"&&(We.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 HP(e){return Te("MuiMobileStepper",e)}Ae("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const RP=e=>{const{classes:t,position:n}=e,r={root:["root",`position${te(n)}`],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return ke(r,HP,t)},qP=J(cn,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${te(n.position)}`]]}})(Ce(({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}}]}))),YP=J("div",{name:"MuiMobileStepper",slot:"Dots"})({variants:[{props:{variant:"dots"},style:{display:"flex",flexDirection:"row"}}]}),KP=J("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>fi(e)&&e!=="dotActive",overridesResolver:(e,t)=>{const{dotActive:n}=e;return[t.dot,n&&t.dotActive]}})(Ce(({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}}]}))),GP=J(om,{name:"MuiMobileStepper",slot:"Progress"})({variants:[{props:{variant:"progress"},style:{width:"50%"}}]}),hm=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiMobileStepper"}),{activeStep:i=0,backButton:s,className:a,LinearProgressProps:c,nextButton:d,position:u="bottom",steps:p,variant:h="dots",slots:y={},slotProps:b={},...g}=r,f={...r,activeStep:i,position:u,variant:h};let m;h==="progress"&&(p===1?m=100:m=Math.ceil(i/(p-1)*100));const S=RP(f),C={slots:y,slotProps:{progress:c,...b}},[x,v]=Oe("root",{ref:n,elementType:qP,shouldForwardComponentProp:!0,className:be(S.root,a),externalForwardedProps:{...C,...g},ownerState:f,additionalProps:{square:!0,elevation:0}}),[w,A]=Oe("dots",{className:S.dots,elementType:YP,externalForwardedProps:C,ownerState:f}),[O,L]=Oe("dot",{elementType:KP,externalForwardedProps:C,ownerState:f}),[M,_]=Oe("progress",{className:S.progress,elementType:GP,shouldForwardComponentProp:!0,externalForwardedProps:C,ownerState:f,additionalProps:{value:m,variant:"determinate"}});return l.jsxs(x,{...v,children:[s,h==="text"&&l.jsxs(E.Fragment,{children:[i+1," / ",p]}),h==="dots"&&l.jsx(w,{...A,children:[...new Array(p)].map((I,T)=>l.jsx(O,{...L,className:be(S.dot,L.className,T===i&&S.dotActive),dotActive:T===i},T))}),h==="progress"&&l.jsx(M,{..._}),d]})});process.env.NODE_ENV!=="production"&&(hm.propTypes={activeStep:wa,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:wa.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 XP(e){return Te("MuiNativeSelect",e)}const Pd=Ae("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),JP=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,c={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${te(n)}`,s&&"iconOpen",r&&"disabled"]};return ke(c,XP,t)},gm=J("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Pd.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}}}]})),QP=J(gm,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Pt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Pd.multiple}`]:t.multiple}]}})({}),mm=J("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Pd.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}}]})),ZP=J(mm,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${te(n.variant)}`],n.open&&t.iconOpen]}})({}),ym=E.forwardRef(function(t,n){const{className:r,disabled:i,error:s,IconComponent:a,inputRef:c,variant:d="standard",...u}=t,p={...t,disabled:i,variant:d,error:s},h=JP(p);return l.jsxs(E.Fragment,{children:[l.jsx(QP,{ownerState:p,className:be(h.select,r),disabled:i,ref:c||n,...u}),t.multiple?null:l.jsx(ZP,{as:a,ownerState:p,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(ym.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Mt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var bm;const eO=J("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Pt})({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%"}),tO=J("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Pt})(Ce(({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 xm(e){const{children:t,classes:n,className:r,label:i,notched:s,...a}=e,c=i!=null&&i!=="",d={...e,notched:s,withLabel:c};return l.jsx(eO,{"aria-hidden":!0,className:r,ownerState:d,...a,children:l.jsx(tO,{ownerState:d,children:c?l.jsx("span",{children:i}):bm||(bm=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(xm.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const nO=e=>{const{classes:t}=e,r=ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bA,t);return{...t,...r}},rO=J(_a,{shouldForwardProp:e=>Pt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ma})(Ce(({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 .${An.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${An.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${An.focused} .${An.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(dt()).map(([n])=>({props:{color:n},style:{[`&.${An.focused} .${An.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${An.error} .${An.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${An.disabled} .${An.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"}}]}})),oO=J(xm,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ce(({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}})),iO=J($a,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Da})(Ce(({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}}]}))),qa=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:c,multiline:d=!1,notched:u,slots:p={},slotProps:h={},type:y="text",...b}=r,g=nO(r),f=Tn(),m=rr({props:r,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...r,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:f,fullWidth:s,hiddenLabel:m.hiddenLabel,multiline:d,size:m.size,type:y},C=p.root??i.Root??rO,x=p.input??i.Input??iO,[v,w]=Oe("notchedOutline",{elementType:oO,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:p,slotProps:h},additionalProps:{label:c!=null&&c!==""&&m.required?l.jsxs(E.Fragment,{children:[c," ","*"]}):c}});return l.jsx(Ti,{slots:{root:C,input:x},slotProps:h,renderSuffix:A=>l.jsx(v,{...w,notched:typeof u<"u"?u:!!(A.startAdornment||A.filled||A.focused)}),fullWidth:s,inputComponent:a,multiline:d,ref:n,type:y,...b,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(qa.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:Mt,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}),qa.muiName="Input";const sO=it(l.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"),aO=it(l.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"),lO=J("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Pt})({position:"relative",display:"flex"}),cO=J(sO,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),dO=J(aO,{name:"MuiRadioButtonIcon"})(Ce(({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 Od(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return l.jsxs(lO,{className:n.root,ownerState:i,children:[l.jsx(cO,{fontSize:r,className:n.background,ownerState:i}),l.jsx(dO,{fontSize:r,className:n.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(Od.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const Id=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(Id.displayName="RadioGroupContext");function pO(){return E.useContext(Id)}function uO(e){return Te("MuiRadio",e)}const vm=Ae("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),fO=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${te(n)}`,r!=="medium"&&`size${te(r)}`]};return{...t,...ke(i,uO,t)}},hO=J(Ba,{shouldForwardProp:e=>Pt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${te(n.size)}`],t[`color${te(n.color)}`]]}})(Ce(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${vm.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(dt()).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(dt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${vm.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function gO(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const mO=l.jsx(Od,{checked:!0}),yO=l.jsx(Od,{}),fo=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=mO,color:a="primary",icon:c=yO,name:d,onChange:u,size:p="medium",className:h,disabled:y,disableRipple:b=!1,slots:g={},slotProps:f={},inputProps:m,...S}=r,C=Tn();let x=y;C&&typeof x>"u"&&(x=C.disabled),x??=!1;const v={...r,disabled:x,disableRipple:b,color:a,size:p},w=fO(v),A=pO();let O=i;const L=Rc(u,A&&A.onChange);let M=d;A&&(typeof O>"u"&&(O=gO(A.value,r.value)),typeof M>"u"&&(M=A.name));const _=f.input??m,[I,T]=Oe("root",{ref:n,elementType:hO,className:be(w.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...S},getSlotProps:F=>({...F,onChange:(D,...U)=>{F.onChange?.(D,...U),L(D,...U)}}),ownerState:v,additionalProps:{type:"radio",icon:E.cloneElement(c,{fontSize:c.props.fontSize??p}),checkedIcon:E.cloneElement(s,{fontSize:s.props.fontSize??p}),disabled:x,name:M,checked:O,slots:g,slotProps:{input:typeof _=="function"?_(v):_}}});return l.jsx(I,{...T,classes:w})});process.env.NODE_ENV!=="production"&&(fo.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:Mt,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 bO(e){return Te("MuiRadioGroup",e)}Ae("MuiRadioGroup",["root","row","error"]);const xO=e=>{const{classes:t,row:n,error:r}=e;return ke({root:["root",n&&"row",r&&"error"]},bO,t)},Ya=E.forwardRef(function(t,n){const{actions:r,children:i,className:s,defaultValue:a,name:c,onChange:d,value:u,...p}=t,h=E.useRef(null),y=xO(t),[b,g]=Qr({controlled:u,default:a,name:"RadioGroup"});E.useImperativeHandle(r,()=>({focus:()=>{let C=h.current.querySelector("input:not(:disabled):checked");C||(C=h.current.querySelector("input:not(:disabled)")),C&&C.focus()}}),[]);const f=ft(n,h),m=mr(c),S=E.useMemo(()=>({name:m,onChange(C){g(C.target.value),d&&d(C,C.target.value)},value:b}),[m,d,g,b]);return l.jsx(Id.Provider,{value:S,children:l.jsx(Zg,{role:"radiogroup",ref:f,className:be(y.root,s),...p,children:i})})});process.env.NODE_ENV!=="production"&&(Ya.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const vO={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Sm(e){return Te("MuiSelect",e)}const Li=Ae("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var wm;const SO=J(gm,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Li.select}`]:t.select},{[`&.${Li.select}`]:t[n.variant]},{[`&.${Li.error}`]:t.error},{[`&.${Li.multiple}`]:t.multiple}]}})({[`&.${Li.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),wO=J(mm,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${te(n.variant)}`],n.open&&t.iconOpen]}})({}),CO=J("input",{shouldForwardProp:e=>fi(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Cm(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function EO(e){return e==null||typeof e=="string"&&!e.trim()}const TO=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,c={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${te(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ke(c,Sm,t)},Em=E.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:s,autoWidth:a,children:c,className:d,defaultOpen:u,defaultValue:p,disabled:h,displayEmpty:y,error:b=!1,IconComponent:g,inputRef:f,labelId:m,MenuProps:S={},multiple:C,name:x,onBlur:v,onChange:w,onClose:A,onFocus:O,onKeyDown:L,onMouseDown:M,onOpen:_,open:I,readOnly:T,renderValue:F,required:D,SelectDisplayProps:U={},tabIndex:N,type:$,value:k,variant:V="standard",...B}=t,[W,q]=Qr({controlled:k,default:p,name:"Select"}),[X,G]=Qr({controlled:I,default:u,name:"Select"}),Q=E.useRef(null),ee=E.useRef(null),[oe,le]=E.useState(null),{current:ae}=E.useRef(I!=null),[re,ce]=E.useState(),H=ft(n,f),he=E.useCallback(Se=>{ee.current=Se,Se&&le(Se)},[]),de=oe?.parentNode;E.useImperativeHandle(H,()=>({focus:()=>{ee.current.focus()},node:Q.current,value:W}),[W]),E.useEffect(()=>{u&&X&&oe&&!ae&&(ce(a?null:de.clientWidth),ee.current.focus())},[oe,a]),E.useEffect(()=>{s&&ee.current.focus()},[s]),E.useEffect(()=>{if(!m)return;const Se=mt(ee.current).getElementById(m);if(Se){const we=()=>{getSelection().isCollapsed&&ee.current.focus()};return Se.addEventListener("click",we),()=>{Se.removeEventListener("click",we)}}},[m]);const ge=(Se,we)=>{Se?_&&_(we):A&&A(we),ae||(ce(a?null:de.clientWidth),G(Se))},ze=Se=>{M?.(Se),Se.button===0&&(Se.preventDefault(),ee.current.focus(),ge(!0,Se))},Ee=Se=>{ge(!1,Se)},me=E.Children.toArray(c),De=Se=>{const we=me.find(Be=>Be.props.value===Se.target.value);we!==void 0&&(q(we.props.value),w&&w(Se,we))},Le=Se=>we=>{let Be;if(we.currentTarget.hasAttribute("tabindex")){if(C){Be=Array.isArray(W)?W.slice():[];const Ct=W.indexOf(Se.props.value);Ct===-1?Be.push(Se.props.value):Be.splice(Ct,1)}else Be=Se.props.value;if(Se.props.onClick&&Se.props.onClick(we),W!==Be&&(q(Be),w)){const Ct=we.nativeEvent||we,rt=new Ct.constructor(Ct.type,Ct);Object.defineProperty(rt,"target",{writable:!0,value:{value:Be,name:x}}),w(rt,Se)}C||ge(!1,we)}},Ne=Se=>{T||([" ","ArrowUp","ArrowDown","Enter"].includes(Se.key)&&(Se.preventDefault(),ge(!0,Se)),L?.(Se))},pe=oe!==null&&X,Ve=Se=>{!pe&&v&&(Object.defineProperty(Se,"target",{writable:!0,value:{value:W,name:x}}),v(Se))};delete B["aria-invalid"];let Ie,se;const ne=[];let xe=!1,Z=!1;(Fa({value:W})||y)&&(F?Ie=F(W):xe=!0);const fe=me.map(Se=>{if(!E.isValidElement(Se))return null;process.env.NODE_ENV!=="production"&&qc.isFragment(Se)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
230
|
+
`));let we;if(C){if(!Array.isArray(W))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":hn(2));we=W.some(Be=>Cm(Be,Se.props.value)),we&&xe&&ne.push(Se.props.children)}else we=Cm(W,Se.props.value),we&&xe&&(se=Se.props.children);return we&&(Z=!0),E.cloneElement(Se,{"aria-selected":we?"true":"false",onClick:Le(Se),onKeyUp:Be=>{Be.key===" "&&Be.preventDefault(),Se.props.onKeyUp&&Se.props.onKeyUp(Be)},role:"option",selected:we,value:void 0,"data-value":Se.props.value})});process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(!Z&&!C&&W!==""){const Se=me.map(we=>we.props.value);console.warn([`MUI: You have provided an out-of-range value \`${W}\` for the select ${x?`(name="${x}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Se.filter(we=>we!=null).map(we=>`\`${we}\``).join(", ")||'""'}.`].join(`
|
|
231
|
+
`))}},[Z,me,C,x,W]),xe&&(C?ne.length===0?Ie=null:Ie=ne.reduce((Se,we,Be)=>(Se.push(we),Be<ne.length-1&&Se.push(", "),Se),[]):Ie=se);let ye=re;!a&&ae&&oe&&(ye=de.clientWidth);let K;typeof N<"u"?K=N:K=h?null:0;const ie=U.id||(x?`mui-component-select-${x}`:void 0),ue={...t,variant:V,value:W,open:pe,error:b},ve=TO(ue),je={...S.PaperProps,...typeof S.slotProps?.paper=="function"?S.slotProps.paper(ue):S.slotProps?.paper},_e={...S.MenuListProps,...typeof S.slotProps?.list=="function"?S.slotProps.list(ue):S.slotProps?.list},Ye=mr();return l.jsxs(E.Fragment,{children:[l.jsx(SO,{as:"div",ref:he,tabIndex:K,role:"combobox","aria-controls":pe?Ye:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":pe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[m,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":D?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:Ne,onMouseDown:h||T?null:ze,onBlur:Ve,onFocus:O,...U,ownerState:ue,className:be(U.className,ve.select,d),id:ie,children:EO(Ie)?wm||(wm=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Ie}),l.jsx(CO,{"aria-invalid":b,value:Array.isArray(W)?W.join(","):W,name:x,ref:Q,"aria-hidden":!0,onChange:De,tabIndex:-1,disabled:h,className:ve.nativeInput,autoFocus:s,required:D,...B,ownerState:ue}),l.jsx(wO,{as:g,className:ve.icon,ownerState:ue}),l.jsx($i,{id:`menu-${x||""}`,anchorEl:de,open:pe,onClose:Ee,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:Ye,..._e},paper:{...je,style:{minWidth:ye,...je!=null?je.style:null}}},children:fe})]})});process.env.NODE_ENV!=="production"&&(Em.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:Mt,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 AO=e=>{const{classes:t}=e,r=ke({root:["root"]},Sm,t);return{...t,...r}},Nd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Pt(e)&&e!=="variant"},kO=J(Ra,Nd)(""),PO=J(qa,Nd)(""),OO=J(Ua,Nd)(""),Pn=E.forwardRef(function(t,n){const r=Pe({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:s,classes:a={},className:c,defaultOpen:d=!1,displayEmpty:u=!1,IconComponent:p=vA,id:h,input:y,inputProps:b,label:g,labelId:f,MenuProps:m,multiple:S=!1,native:C=!1,onClose:x,onOpen:v,open:w,renderValue:A,SelectDisplayProps:O,variant:L="outlined",...M}=r,_=C?ym:Em,I=Tn(),T=rr({props:r,muiFormControl:I,states:["variant","error"]}),F=T.variant||L,D={...r,variant:F,classes:a},U=AO(D),{root:N,...$}=U,k=y||{standard:l.jsx(kO,{ownerState:D}),outlined:l.jsx(PO,{label:g,ownerState:D}),filled:l.jsx(OO,{ownerState:D})}[F],V=ft(n,Er(k));return l.jsx(E.Fragment,{children:E.cloneElement(k,{inputComponent:_,inputProps:{children:s,error:T.error,IconComponent:p,variant:F,type:void 0,multiple:S,...C?{id:h}:{autoWidth:i,defaultOpen:d,displayEmpty:u,labelId:f,MenuProps:m,onClose:x,onOpen:v,open:w,renderValue:A,SelectDisplayProps:{id:h,...O}},...b,classes:b?kt($,b.classes):$,...y?y.props.inputProps:{}},...(S&&C||u)&&F==="outlined"?{notched:!0}:{},ref:V,className:be(k.props.className,c,U.root),...!y&&{variant:F},...M})})});process.env.NODE_ENV!=="production"&&(Pn.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"])}),Pn.muiName="Select";function IO(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const NO=2;function ho(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function Tm(e,t){return e-t}function Am(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 Ka(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 Ga(e,t,n){return(e-t)*100/(n-t)}function FO(e,t,n){return(n-t)*e+t}function MO(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 DO(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(MO(t)))}function km({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Tm)}function Xa({sliderRef:e,activeIndex:t,setActive:n}){const r=mt(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 Ja(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?IO(e,t):!1}const _O={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}%`})}},$O=e=>e;let Qa;function Pm(){return Qa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Qa=CSS.supports("touch-action","none"):Qa=!0),Qa}function zO(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:s=!1,marks:a=!1,max:c=100,min:d=0,name:u,onChange:p,onChangeCommitted:h,orientation:y="horizontal",rootRef:b,scale:g=$O,step:f=1,shiftStep:m=10,tabIndex:S,value:C}=e,x=E.useRef(void 0),[v,w]=E.useState(-1),[A,O]=E.useState(-1),[L,M]=E.useState(!1),_=E.useRef(0),I=E.useRef(null),[T,F]=Qr({controlled:C,default:n??d,name:"Slider"}),D=p&&((se,ne,xe)=>{const Z=se.nativeEvent||se,fe=new Z.constructor(Z.type,Z);Object.defineProperty(fe,"target",{writable:!0,value:{value:ne,name:u}}),I.current=ne,p(fe,ne,xe)}),U=Array.isArray(T);let N=U?T.slice().sort(Tm):[T];N=N.map(se=>se==null?d:Jr(se,d,c));const $=a===!0&&f!==null?[...Array(Math.floor((c-d)/f)+1)].map((se,ne)=>({value:d+f*ne})):a||[],k=$.map(se=>se.value),[V,B]=E.useState(-1),W=E.useRef(null),q=ft(b,W),X=se=>ne=>{const xe=Number(ne.currentTarget.getAttribute("data-index"));to(ne.target)&&B(xe),O(xe),se?.onFocus?.(ne)},G=se=>ne=>{to(ne.target)||B(-1),O(-1),se?.onBlur?.(ne)},Q=(se,ne)=>{const xe=Number(se.currentTarget.getAttribute("data-index")),Z=N[xe],fe=k.indexOf(Z);let ye=ne;if($&&f==null){const K=k[k.length-1];ye>=K?ye=K:ye<=k[0]?ye=k[0]:ye=ye<Z?k[fe-1]:k[fe+1]}if(ye=Jr(ye,d,c),U){i&&(ye=Jr(ye,N[xe-1]||-1/0,N[xe+1]||1/0));const K=ye;ye=km({values:N,newValue:ye,index:xe});let ie=xe;i||(ie=ye.indexOf(K)),Xa({sliderRef:W,activeIndex:ie})}F(ye),B(xe),D&&!Ja(ye,T)&&D(se,ye,xe),h&&h(se,I.current??ye)},ee=se=>ne=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ne.key)){ne.preventDefault();const xe=Number(ne.currentTarget.getAttribute("data-index")),Z=N[xe];let fe=null;if(f!=null){const ye=ne.shiftKey?m:f;switch(ne.key){case"ArrowUp":fe=ho(Z,ye,1,d,c);break;case"ArrowRight":fe=ho(Z,ye,s?-1:1,d,c);break;case"ArrowDown":fe=ho(Z,ye,-1,d,c);break;case"ArrowLeft":fe=ho(Z,ye,s?1:-1,d,c);break;case"PageUp":fe=ho(Z,m,1,d,c);break;case"PageDown":fe=ho(Z,m,-1,d,c);break;case"Home":fe=d;break;case"End":fe=c;break}}else if($){const ye=k[k.length-1],K=k.indexOf(Z),ie=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],ue=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];ie.includes(ne.key)?K===0?fe=k[0]:fe=k[K-1]:ue.includes(ne.key)&&(K===k.length-1?fe=ye:fe=k[K+1])}fe!=null&&Q(ne,fe)}se?.onKeyDown?.(ne)};Xt(()=>{r&&W.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&v!==-1&&w(-1),r&&V!==-1&&B(-1);const oe=se=>ne=>{se.onChange?.(ne),Q(ne,ne.target.valueAsNumber)},le=E.useRef(void 0);let ae=y;s&&y==="horizontal"&&(ae+="-reverse");const re=({finger:se,move:ne=!1})=>{const{current:xe}=W,{width:Z,height:fe,bottom:ye,left:K}=xe.getBoundingClientRect();let ie;ae.startsWith("vertical")?ie=(ye-se.y)/fe:ie=(se.x-K)/Z,ae.includes("-reverse")&&(ie=1-ie);let ue;if(ue=FO(ie,d,c),f)ue=DO(ue,f,d);else{const je=Am(k,ue);ue=k[je]}ue=Jr(ue,d,c);let ve=0;if(U){ne?ve=le.current:ve=Am(N,ue),i&&(ue=Jr(ue,N[ve-1]||-1/0,N[ve+1]||1/0));const je=ue;ue=km({values:N,newValue:ue,index:ve}),i&&ne||(ve=ue.indexOf(je),le.current=ve)}return{newValue:ue,activeIndex:ve}},ce=Ft(se=>{const ne=Ka(se,x);if(!ne)return;if(_.current+=1,se.type==="mousemove"&&se.buttons===0){H(se);return}const{newValue:xe,activeIndex:Z}=re({finger:ne,move:!0});Xa({sliderRef:W,activeIndex:Z,setActive:w}),F(xe),!L&&_.current>NO&&M(!0),D&&!Ja(xe,T)&&D(se,xe,Z)}),H=Ft(se=>{const ne=Ka(se,x);if(M(!1),!ne)return;const{newValue:xe}=re({finger:ne,move:!0});w(-1),se.type==="touchend"&&O(-1),h&&h(se,I.current??xe),x.current=void 0,de()}),he=Ft(se=>{if(r)return;Pm()||se.preventDefault();const ne=se.changedTouches[0];ne!=null&&(x.current=ne.identifier);const xe=Ka(se,x);if(xe!==!1){const{newValue:fe,activeIndex:ye}=re({finger:xe});Xa({sliderRef:W,activeIndex:ye,setActive:w}),F(fe),D&&!Ja(fe,T)&&D(se,fe,ye)}_.current=0;const Z=mt(W.current);Z.addEventListener("touchmove",ce,{passive:!0}),Z.addEventListener("touchend",H,{passive:!0})}),de=E.useCallback(()=>{const se=mt(W.current);se.removeEventListener("mousemove",ce),se.removeEventListener("mouseup",H),se.removeEventListener("touchmove",ce),se.removeEventListener("touchend",H)},[H,ce]);E.useEffect(()=>{const{current:se}=W;return se.addEventListener("touchstart",he,{passive:Pm()}),()=>{se.removeEventListener("touchstart",he),de()}},[de,he]),E.useEffect(()=>{r&&de()},[r,de]);const ge=se=>ne=>{if(se.onMouseDown?.(ne),r||ne.defaultPrevented||ne.button!==0)return;ne.preventDefault();const xe=Ka(ne,x);if(xe!==!1){const{newValue:fe,activeIndex:ye}=re({finger:xe});Xa({sliderRef:W,activeIndex:ye,setActive:w}),F(fe),D&&!Ja(fe,T)&&D(ne,fe,ye)}_.current=0;const Z=mt(W.current);Z.addEventListener("mousemove",ce,{passive:!0}),Z.addEventListener("mouseup",H)},ze=Ga(U?N[0]:d,d,c),Ee=Ga(N[N.length-1],d,c)-ze,me=(se={})=>{const ne=Sr(se),xe={onMouseDown:ge(ne||{})},Z={...ne,...xe};return{...se,ref:q,...Z}},De=se=>ne=>{se.onMouseOver?.(ne);const xe=Number(ne.currentTarget.getAttribute("data-index"));O(xe)},Le=se=>ne=>{se.onMouseLeave?.(ne),O(-1)},Ne=(se={})=>{const ne=Sr(se),xe={onMouseOver:De(ne||{}),onMouseLeave:Le(ne||{})};return{...se,...ne,...xe}},pe=se=>({pointerEvents:v!==-1&&v!==se?"none":void 0});let Ve;return y==="vertical"&&(Ve=s?"vertical-rl":"vertical-lr"),{active:v,axis:ae,axisProps:_O,dragging:L,focusedThumbIndex:V,getHiddenInputProps:(se={})=>{const ne=Sr(se),xe={onChange:oe(ne||{}),onFocus:X(ne||{}),onBlur:G(ne||{}),onKeyDown:ee(ne||{})},Z={...ne,...xe};return{tabIndex:S,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":g(c),"aria-valuemin":g(d),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...se,...Z,style:{...vO,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:Ve}}},getRootProps:me,getThumbProps:Ne,marks:$,open:A,range:U,rootRef:q,trackLeap:Ee,trackOffset:ze,values:N,getThumbStyle:pe}}const LO=e=>!e||!tr(e);function BO(e){return Te("MuiSlider",e)}const nn=Ae("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"]),jO=e=>{const{open:t}=e;return{offset:be(t&&nn.valueLabelOpen),circle:nn.valueLabelCircle,label:nn.valueLabelLabel}};function Om(e){const{children:t,className:n,value:r}=e,i=jO(e);return t?E.cloneElement(t,{className:t.props.className},l.jsxs(E.Fragment,{children:[t.props.children,l.jsx("span",{className:be(i.offset,n),"aria-hidden":!0,children:l.jsx("span",{className:i.circle,children:l.jsx("span",{className:i.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Om.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function Im(e){return e}const WO=J("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${te(n.color)}`],n.size!=="medium"&&t[`size${te(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Ce(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${nn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${nn.dragging}`]:{[`& .${nn.thumb}, & .${nn.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(dt()).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}}]}))),VO=J("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}}]}),UO=J("span",{name:"MuiSlider",slot:"Track"})(Ce(({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(dt()).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)})}}}))]}))),HO=J("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${te(n.color)}`],n.size!=="medium"&&t[`thumbSize${te(n.size)}`]]}})(Ce(({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%)"},[`&.${nn.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(dt()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${nn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${nn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Nm=J(Om,{name:"MuiSlider",slot:"ValueLabel"})(Ce(({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%"},[`&.${nn.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%"},[`&.${nn.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"&&(Nm.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const RO=J("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>fi(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Ce(({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}}]}))),qO=J("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>fi(e)&&e!=="markLabelActive"})(Ce(({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}}]}))),YO=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:s,classes:a,color:c,size:d}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",c&&`color${te(c)}`,d&&`size${te(d)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",d&&`thumbSize${te(d)}`,c&&`thumbColor${te(c)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return ke(u,BO,a)},KO=({children:e})=>e,Fm=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiSlider"}),i=pi(),{"aria-label":s,"aria-valuetext":a,"aria-labelledby":c,component:d="span",components:u={},componentsProps:p={},color:h="primary",classes:y,className:b,disableSwap:g=!1,disabled:f=!1,getAriaLabel:m,getAriaValueText:S,marks:C=!1,max:x=100,min:v=0,name:w,onChange:A,onChangeCommitted:O,orientation:L="horizontal",shiftStep:M=10,size:_="medium",step:I=1,scale:T=Im,slotProps:F,slots:D,tabIndex:U,track:N="normal",value:$,valueLabelDisplay:k="off",valueLabelFormat:V=Im,...B}=r,W={...r,isRtl:i,max:x,min:v,classes:y,disabled:f,disableSwap:g,orientation:L,marks:C,color:h,size:_,step:I,shiftStep:M,scale:T,track:N,valueLabelDisplay:k,valueLabelFormat:V},{axisProps:q,getRootProps:X,getHiddenInputProps:G,getThumbProps:Q,open:ee,active:oe,axis:le,focusedThumbIndex:ae,range:re,dragging:ce,marks:H,values:he,trackOffset:de,trackLeap:ge,getThumbStyle:ze}=zO({...W,rootRef:n});W.marked=H.length>0&&H.some(rt=>rt.label),W.dragging=ce,W.focusedThumbIndex=ae;const Ee=YO(W),me=D?.root??u.Root??WO,De=D?.rail??u.Rail??VO,Le=D?.track??u.Track??UO,Ne=D?.thumb??u.Thumb??HO,pe=D?.valueLabel??u.ValueLabel??Nm,Ve=D?.mark??u.Mark??RO,Ie=D?.markLabel??u.MarkLabel??qO,se=D?.input??u.Input??"input",ne=F?.root??p.root,xe=F?.rail??p.rail,Z=F?.track??p.track,fe=F?.thumb??p.thumb,ye=F?.valueLabel??p.valueLabel,K=F?.mark??p.mark,ie=F?.markLabel??p.markLabel,ue=F?.input??p.input,ve=En({elementType:me,getSlotProps:X,externalSlotProps:ne,externalForwardedProps:B,additionalProps:{...LO(me)&&{as:d}},ownerState:{...W,...ne?.ownerState},className:[Ee.root,b]}),je=En({elementType:De,externalSlotProps:xe,ownerState:W,className:Ee.rail}),_e=En({elementType:Le,externalSlotProps:Z,additionalProps:{style:{...q[le].offset(de),...q[le].leap(ge)}},ownerState:{...W,...Z?.ownerState},className:Ee.track}),Ye=En({elementType:Ne,getSlotProps:Q,externalSlotProps:fe,ownerState:{...W,...fe?.ownerState},className:Ee.thumb}),Se=En({elementType:pe,externalSlotProps:ye,ownerState:{...W,...ye?.ownerState},className:Ee.valueLabel}),we=En({elementType:Ve,externalSlotProps:K,ownerState:W,className:Ee.mark}),Be=En({elementType:Ie,externalSlotProps:ie,ownerState:W,className:Ee.markLabel}),Ct=En({elementType:se,getSlotProps:G,externalSlotProps:ue,ownerState:W});return l.jsxs(me,{...ve,children:[l.jsx(De,{...je}),l.jsx(Le,{..._e}),H.filter(rt=>rt.value>=v&&rt.value<=x).map((rt,vt)=>{const Gi=Ga(rt.value,v,x),yo=q[le].offset(Gi);let pn;return N===!1?pn=he.includes(rt.value):pn=N==="normal"&&(re?rt.value>=he[0]&&rt.value<=he[he.length-1]:rt.value<=he[0])||N==="inverted"&&(re?rt.value<=he[0]||rt.value>=he[he.length-1]:rt.value>=he[0]),l.jsxs(E.Fragment,{children:[l.jsx(Ve,{"data-index":vt,...we,...!tr(Ve)&&{markActive:pn},style:{...yo,...we.style},className:be(we.className,pn&&Ee.markActive)}),rt.label!=null?l.jsx(Ie,{"aria-hidden":!0,"data-index":vt,...Be,...!tr(Ie)&&{markLabelActive:pn},style:{...yo,...Be.style},className:be(Ee.markLabel,Be.className,pn&&Ee.markLabelActive),children:rt.label}):null]},vt)}),he.map((rt,vt)=>{const Gi=Ga(rt,v,x),yo=q[le].offset(Gi),pn=k==="off"?KO:pe;return l.jsx(pn,{...!tr(pn)&&{valueLabelFormat:V,valueLabelDisplay:k,value:typeof V=="function"?V(T(rt),vt):V,index:vt,open:ee===vt||oe===vt||k==="on",disabled:f},...Se,children:l.jsx(Ne,{"data-index":vt,...Ye,className:be(Ee.thumb,Ye.className,oe===vt&&Ee.active,ae===vt&&Ee.focusVisible),style:{...yo,...ze(vt),...Ye.style},children:l.jsx(se,{"data-index":vt,"aria-label":m?m(vt):s,"aria-valuenow":T(rt),"aria-labelledby":c,"aria-valuetext":S?S(T(rt),vt):a,value:he[vt],...Ct})})},vt)})]})});process.env.NODE_ENV!=="production"&&(Fm.propTypes={"aria-label":ln(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":ln(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 GO(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:s}=e,a=vr();E.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 c=Ft((S,C)=>{r?.(S,C)}),d=Ft(S=>{!r||S==null||a.start(S,()=>{c(null,"timeout")})});E.useEffect(()=>(i&&d(t),a.clear),[i,t,d,a]);const u=S=>{r?.(S,"clickaway")},p=a.clear,h=E.useCallback(()=>{t!=null&&d(s??t*.5)},[t,s,d]),y=S=>C=>{const x=S.onBlur;x?.(C),h()},b=S=>C=>{const x=S.onFocus;x?.(C),p()},g=S=>C=>{const x=S.onMouseEnter;x?.(C),p()},f=S=>C=>{const x=S.onMouseLeave;x?.(C),h()};return E.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}},[n,i,h,p]),{getRootProps:(S={})=>{const C={...Sr(e),...Sr(S)};return{role:"presentation",...S,...C,onBlur:y(C),onFocus:b(C),onMouseEnter:g(C),onMouseLeave:f(C)}},onClickAway:u}}function XO(e){return Te("MuiSnackbarContent",e)}Ae("MuiSnackbarContent",["root","message","action"]);const JO=e=>{const{classes:t}=e;return ke({root:["root"],action:["action"],message:["message"]},XO,t)},QO=J(cn,{name:"MuiSnackbarContent",slot:"Root"})(Ce(({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(_c(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:_c(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),ZO=J("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),e2=J("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Mm=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiSnackbarContent"}),{action:i,className:s,message:a,role:c="alert",...d}=r,u=r,p=JO(u);return l.jsxs(QO,{role:c,elevation:6,className:be(p.root,s),ownerState:u,ref:n,...d,children:[l.jsx(ZO,{className:p.message,ownerState:u,children:a}),i?l.jsx(e2,{className:p.action,ownerState:u,children:i}):null]})});process.env.NODE_ENV!=="production"&&(Mm.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 t2(e){return Te("MuiSnackbar",e)}Ae("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const n2=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${te(n.vertical)}${te(n.horizontal)}`]};return ke(r,t2,t)},r2=J("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${te(n.anchorOrigin.vertical)}${te(n.anchorOrigin.horizontal)}`]]}})(Ce(({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%)"}}}]}))),go=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiSnackbar"}),i=vn(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:c,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:p,className:h,ClickAwayListenerProps:y,ContentProps:b,disableWindowBlurListener:g=!1,message:f,onBlur:m,onClose:S,onFocus:C,onMouseEnter:x,onMouseLeave:v,open:w,resumeHideDuration:A,slots:O={},slotProps:L={},TransitionComponent:M,transitionDuration:_=s,TransitionProps:{onEnter:I,onExited:T,...F}={},...D}=r,U={...r,anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:u,disableWindowBlurListener:g,TransitionComponent:M,transitionDuration:_},N=n2(U),{getRootProps:$,onClickAway:k}=GO(U),[V,B]=E.useState(!0),W=he=>{B(!0),T&&T(he)},q=(he,de)=>{B(!1),I&&I(he,de)},X={slots:{transition:M,...O},slotProps:{content:b,clickAwayListener:y,transition:F,...L}},[G,Q]=Oe("root",{ref:n,className:[N.root,h],elementType:r2,getSlotProps:$,externalForwardedProps:{...X,...D},ownerState:U}),[ee,{ownerState:oe,...le}]=Oe("clickAwayListener",{elementType:ja,externalForwardedProps:X,getSlotProps:he=>({onClickAway:(...de)=>{const ge=de[0];he.onClickAway?.(...de),!ge?.defaultMuiPrevented&&k(...de)}}),ownerState:U}),[ae,re]=Oe("content",{elementType:Mm,shouldForwardComponentProp:!0,externalForwardedProps:X,additionalProps:{message:f,action:a},ownerState:U}),[ce,H]=Oe("transition",{elementType:po,externalForwardedProps:X,getSlotProps:he=>({onEnter:(...de)=>{he.onEnter?.(...de),q(...de)},onExited:(...de)=>{he.onExited?.(...de),W(...de)}}),additionalProps:{appear:!0,in:w,timeout:_,direction:c==="top"?"down":"up"},ownerState:U});return!w&&V?null:l.jsx(ee,{...le,...O.clickAwayListener&&{ownerState:oe},children:l.jsx(G,{...Q,children:l.jsx(ce,{...H,children:p||l.jsx(ae,{...re})})})})});process.env.NODE_ENV!=="production"&&(go.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 o2(e){return Te("MuiTooltip",e)}const pt=Ae("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function i2(e){return Math.round(e*1e5)/1e5}const s2=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${te(s.split("-")[0])}`],arrow:["arrow"]};return ke(a,o2,t)},a2=J(pd,{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]}})(Ce(({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"] .${pt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${pt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${pt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${pt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${pt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${pt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${pt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${pt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),l2=J("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${te(n.placement.split("-")[0])}`]]}})(Ce(({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,[`.${pt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${pt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${pt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${pt.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:`${i2(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${pt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${pt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${pt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${pt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${pt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${pt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${pt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${pt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${pt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${pt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),c2=J("span",{name:"MuiTooltip",slot:"Arrow"})(Ce(({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 Za=!1;const Dm=new va;let Bi={x:0,y:0};function el(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const ji=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:s,classes:a,components:c={},componentsProps:d={},describeChild:u=!1,disableFocusListener:p=!1,disableHoverListener:h=!1,disableInteractive:y=!1,disableTouchListener:b=!1,enterDelay:g=100,enterNextDelay:f=0,enterTouchDelay:m=700,followCursor:S=!1,id:C,leaveDelay:x=0,leaveTouchDelay:v=1500,onClose:w,onOpen:A,open:O,placement:L="bottom",PopperComponent:M,PopperProps:_={},slotProps:I={},slots:T={},title:F,TransitionComponent:D,TransitionProps:U,...N}=r,$=E.isValidElement(s)?s:l.jsx("span",{children:s}),k=vn(),V=pi(),[B,W]=E.useState(),[q,X]=E.useState(null),G=E.useRef(!1),Q=y||S,ee=vr(),oe=vr(),le=vr(),ae=vr(),[re,ce]=Qr({controlled:O,default:!1,name:"Tooltip",state:"open"});let H=re;if(process.env.NODE_ENV!=="production"){const{current:Me}=E.useRef(O!==void 0);E.useEffect(()=>{B&&B.disabled&&!Me&&F!==""&&B.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
|
+
`))},[F,B,Me])}const he=mr(C),de=E.useRef(),ge=Ft(()=>{de.current!==void 0&&(document.body.style.WebkitUserSelect=de.current,de.current=void 0),ae.clear()});E.useEffect(()=>ge,[ge]);const ze=Me=>{Dm.clear(),Za=!0,ce(!0),A&&!H&&A(Me)},Ee=Ft(Me=>{Dm.start(800+x,()=>{Za=!1}),ce(!1),w&&H&&w(Me),ee.start(k.transitions.duration.shortest,()=>{G.current=!1})}),me=Me=>{G.current&&Me.type!=="touchstart"||(B&&B.removeAttribute("title"),oe.clear(),le.clear(),g||Za&&f?oe.start(Za?f:g,()=>{ze(Me)}):ze(Me))},De=Me=>{oe.clear(),le.start(x,()=>{Ee(Me)})},[,Le]=E.useState(!1),Ne=Me=>{to(Me.target)||(Le(!1),De(Me))},pe=Me=>{B||W(Me.currentTarget),to(Me.target)&&(Le(!0),me(Me))},Ve=Me=>{G.current=!0;const sr=$.props;sr.onTouchStart&&sr.onTouchStart(Me)},Ie=Me=>{Ve(Me),le.clear(),ee.clear(),ge(),de.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ae.start(m,()=>{document.body.style.WebkitUserSelect=de.current,me(Me)})},se=Me=>{$.props.onTouchEnd&&$.props.onTouchEnd(Me),ge(),le.start(v,()=>{Ee(Me)})};E.useEffect(()=>{if(!H)return;function Me(sr){sr.key==="Escape"&&Ee(sr)}return document.addEventListener("keydown",Me),()=>{document.removeEventListener("keydown",Me)}},[Ee,H]);const ne=ft(Er($),W,n);!F&&F!==0&&(H=!1);const xe=E.useRef(),Z=Me=>{const sr=$.props;sr.onMouseMove&&sr.onMouseMove(Me),Bi={x:Me.clientX,y:Me.clientY},xe.current&&xe.current.update()},fe={},ye=typeof F=="string";u?(fe.title=!H&&ye&&!h?F:null,fe["aria-describedby"]=H?he:null):(fe["aria-label"]=ye?F:null,fe["aria-labelledby"]=H&&!ye?he:null);const K={...fe,...N,...$.props,className:be(N.className,$.props.className),onTouchStart:Ve,ref:ne,...S?{onMouseMove:Z}:{}};process.env.NODE_ENV!=="production"&&(K["data-mui-internal-clone-element"]=!0,E.useEffect(()=>{B&&!B.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
|
+
`))},[B]));const ie={};b||(K.onTouchStart=Ie,K.onTouchEnd=se),h||(K.onMouseOver=el(me,K.onMouseOver),K.onMouseLeave=el(De,K.onMouseLeave),Q||(ie.onMouseOver=me,ie.onMouseLeave=De)),p||(K.onFocus=el(pe,K.onFocus),K.onBlur=el(Ne,K.onBlur),Q||(ie.onFocus=pe,ie.onBlur=Ne)),process.env.NODE_ENV!=="production"&&$.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${$.props.title}\` or the Tooltip component.`].join(`
|
|
234
|
+
`));const ue={...r,isRtl:V,arrow:i,disableInteractive:Q,placement:L,PopperComponentProp:M,touch:G.current},ve=typeof I.popper=="function"?I.popper(ue):I.popper,je=E.useMemo(()=>{let Me=[{name:"arrow",enabled:!!q,options:{element:q,padding:4}}];return _.popperOptions?.modifiers&&(Me=Me.concat(_.popperOptions.modifiers)),ve?.popperOptions?.modifiers&&(Me=Me.concat(ve.popperOptions.modifiers)),{..._.popperOptions,...ve?.popperOptions,modifiers:Me}},[q,_.popperOptions,ve?.popperOptions]),_e=s2(ue),Ye=typeof I.transition=="function"?I.transition(ue):I.transition,Se={slots:{popper:c.Popper,transition:c.Transition??D,tooltip:c.Tooltip,arrow:c.Arrow,...T},slotProps:{arrow:I.arrow??d.arrow,popper:{..._,...ve??d.popper},tooltip:I.tooltip??d.tooltip,transition:{...U,...Ye??d.transition}}},[we,Be]=Oe("popper",{elementType:a2,externalForwardedProps:Se,ownerState:ue,className:be(_e.popper,_?.className)}),[Ct,rt]=Oe("transition",{elementType:po,externalForwardedProps:Se,ownerState:ue}),[vt,Gi]=Oe("tooltip",{elementType:l2,className:_e.tooltip,externalForwardedProps:Se,ownerState:ue}),[yo,pn]=Oe("arrow",{elementType:c2,className:_e.arrow,externalForwardedProps:Se,ownerState:ue,ref:X});return l.jsxs(E.Fragment,{children:[E.cloneElement($,K),l.jsx(we,{as:M??pd,placement:L,anchorEl:S?{getBoundingClientRect:()=>({top:Bi.y,left:Bi.x,right:Bi.x,bottom:Bi.y,width:0,height:0})}:B,popperRef:xe,open:B?H:!1,id:he,transition:!0,...ie,...Be,popperOptions:je,children:({TransitionProps:Me})=>l.jsx(Ct,{timeout:k.transitions.duration.shorter,...Me,...rt,children:l.jsxs(vt,{...Gi,children:[F,i?l.jsx(yo,{...pn}):null]})})})]})});process.env.NODE_ENV!=="production"&&(ji.propTypes={arrow:o.bool,children:kr.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 d2(e){return Te("MuiSwitch",e)}const Dt=Ae("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),p2=e=>{const{classes:t,edge:n,size:r,color:i,checked:s,disabled:a}=e,c={root:["root",n&&`edge${te(n)}`,`size${te(r)}`],switchBase:["switchBase",`color${te(i)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=ke(c,d2,t);return{...t,...d}},u2=J("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${te(n.edge)}`],t[`size${te(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,[`& .${Dt.thumb}`]:{width:16,height:16},[`& .${Dt.switchBase}`]:{padding:4,[`&.${Dt.checked}`]:{transform:"translateX(16px)"}}}}]}),f2=J(Ba,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Dt.input}`]:t.input},n.color!=="default"&&t[`color${te(n.color)}`]]}})(Ce(({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}),[`&.${Dt.checked}`]:{transform:"translateX(20px)"},[`&.${Dt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Dt.checked} + .${Dt.track}`]:{opacity:.5},[`&.${Dt.disabled} + .${Dt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Dt.input}`]:{left:"-100%",width:"300%"}})),Ce(({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(dt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Dt.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"}},[`&.${Dt.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)}`}},[`&.${Dt.checked} + .${Dt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),h2=J("span",{name:"MuiSwitch",slot:"Track"})(Ce(({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}`}))),g2=J("span",{name:"MuiSwitch",slot:"Thumb"})(Ce(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),_m=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiSwitch"}),{className:i,color:s="primary",edge:a=!1,size:c="medium",sx:d,slots:u={},slotProps:p={},...h}=r,y={...r,color:s,edge:a,size:c},b=p2(y),g={slots:u,slotProps:p},[f,m]=Oe("root",{className:be(b.root,i),elementType:u2,externalForwardedProps:g,ownerState:y,additionalProps:{sx:d}}),[S,C]=Oe("thumb",{className:b.thumb,elementType:g2,externalForwardedProps:g,ownerState:y}),x=l.jsx(S,{...C}),[v,w]=Oe("track",{className:b.track,elementType:h2,externalForwardedProps:g,ownerState:y});return l.jsxs(f,{...m,children:[l.jsx(f2,{type:"checkbox",icon:x,checkedIcon:x,ref:n,ownerState:y,...h,classes:{...b,root:b.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...p.switchBase&&{root:typeof p.switchBase=="function"?p.switchBase(y):p.switchBase},input:{role:"switch"},...p.input&&{input:typeof p.input=="function"?p.input(y):p.input}}}),l.jsx(v,{...w})]})});process.env.NODE_ENV!=="production"&&(_m.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:Mt,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 Fd=E.createContext();process.env.NODE_ENV!=="production"&&(Fd.displayName="TableContext");function m2(e){return Te("MuiTable",e)}Ae("MuiTable",["root","stickyHeader"]);const y2=e=>{const{classes:t,stickyHeader:n}=e;return ke({root:["root",n&&"stickyHeader"]},m2,t)},b2=J("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Ce(({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"}}]}))),$m="table",zm=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiTable"}),{className:i,component:s=$m,padding:a="normal",size:c="medium",stickyHeader:d=!1,...u}=r,p={...r,component:s,padding:a,size:c,stickyHeader:d},h=y2(p),y=E.useMemo(()=>({padding:a,size:c,stickyHeader:d}),[a,c,d]);return l.jsx(Fd.Provider,{value:y,children:l.jsx(b2,{as:s,role:s===$m?null:"table",ref:n,className:be(h.root,i),ownerState:p,...u})})});process.env.NODE_ENV!=="production"&&(zm.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 Wi=E.createContext();process.env.NODE_ENV!=="production"&&(Wi.displayName="Tablelvl2Context");function x2(e){return Te("MuiTableBody",e)}Ae("MuiTableBody",["root"]);const v2=e=>{const{classes:t}=e;return ke({root:["root"]},x2,t)},S2=J("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),w2={variant:"body"},Lm="tbody",Bm=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiTableBody"}),{className:i,component:s=Lm,...a}=r,c={...r,component:s},d=v2(c);return l.jsx(Wi.Provider,{value:w2,children:l.jsx(S2,{className:be(d.root,i),as:s,ref:n,role:s===Lm?null:"rowgroup",ownerState:c,...a})})});process.env.NODE_ENV!=="production"&&(Bm.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 C2(e){return Te("MuiTableCell",e)}const E2=Ae("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),T2=e=>{const{classes:t,variant:n,align:r,padding:i,size:s,stickyHeader:a}=e,c={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${te(r)}`,i!=="normal"&&`padding${te(i)}`,`size${te(s)}`]};return ke(c,C2,t)},A2=J("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${te(n.size)}`],n.padding!=="normal"&&t[`padding${te(n.padding)}`],n.align!=="inherit"&&t[`align${te(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Ce(({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",[`&.${E2.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}}]}))),ir=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiTableCell"}),{align:i="inherit",className:s,component:a,padding:c,scope:d,size:u,sortDirection:p,variant:h,...y}=r,b=E.useContext(Fd),g=E.useContext(Wi),f=g&&g.variant==="head";let m;a?m=a:m=f?"th":"td";let S=d;m==="td"?S=void 0:!S&&f&&(S="col");const C=h||g&&g.variant,x={...r,align:i,component:m,padding:c||(b&&b.padding?b.padding:"normal"),size:u||(b&&b.size?b.size:"medium"),sortDirection:p,stickyHeader:C==="head"&&b&&b.stickyHeader,variant:C},v=T2(x);let w=null;return p&&(w=p==="asc"?"ascending":"descending"),l.jsx(A2,{as:m,ref:n,className:be(v.root,s),"aria-sort":w,scope:S,ownerState:x,...y})});process.env.NODE_ENV!=="production"&&(ir.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 k2(e){return Te("MuiTableContainer",e)}Ae("MuiTableContainer",["root"]);const P2=e=>{const{classes:t}=e;return ke({root:["root"]},k2,t)},O2=J("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),jm=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiTableContainer"}),{className:i,component:s="div",...a}=r,c={...r,component:s},d=P2(c);return l.jsx(O2,{ref:n,as:s,className:be(d.root,i),ownerState:c,...a})});process.env.NODE_ENV!=="production"&&(jm.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 I2(e){return Te("MuiTableHead",e)}Ae("MuiTableHead",["root"]);const N2=e=>{const{classes:t}=e;return ke({root:["root"]},I2,t)},F2=J("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),M2={variant:"head"},Wm="thead",Vm=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiTableHead"}),{className:i,component:s=Wm,...a}=r,c={...r,component:s},d=N2(c);return l.jsx(Wi.Provider,{value:M2,children:l.jsx(F2,{as:s,className:be(d.root,i),ref:n,role:s===Wm?null:"rowgroup",ownerState:c,...a})})});process.env.NODE_ENV!=="production"&&(Vm.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 D2(e){return Te("MuiTableRow",e)}const Um=Ae("MuiTableRow",["root","selected","hover","head","footer"]),_2=e=>{const{classes:t,selected:n,hover:r,head:i,footer:s}=e;return ke({root:["root",n&&"selected",r&&"hover",i&&"head",s&&"footer"]},D2,t)},$2=J("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Ce(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Um.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Um.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}`)}}}))),Hm="tr",Vi=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiTableRow"}),{className:i,component:s=Hm,hover:a=!1,selected:c=!1,...d}=r,u=E.useContext(Wi),p={...r,component:s,hover:a,selected:c,head:u&&u.variant==="head",footer:u&&u.variant==="footer"},h=_2(p);return l.jsx($2,{as:s,ref:n,className:be(h.root,i),role:s===Hm?null:"row",ownerState:p,...d})});process.env.NODE_ENV!=="production"&&(Vi.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 z2(e){return Te("MuiTextField",e)}Ae("MuiTextField",["root"]);const L2={standard:Ra,filled:Ua,outlined:qa},B2=e=>{const{classes:t}=e;return ke({root:["root"]},z2,t)},j2=J(Ha,{name:"MuiTextField",slot:"Root"})({}),Ui=E.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:a,className:c,color:d="primary",defaultValue:u,disabled:p=!1,error:h=!1,FormHelperTextProps:y,fullWidth:b=!1,helperText:g,id:f,InputLabelProps:m,inputProps:S,InputProps:C,inputRef:x,label:v,maxRows:w,minRows:A,multiline:O=!1,name:L,onBlur:M,onChange:_,onFocus:I,placeholder:T,required:F=!1,rows:D,select:U=!1,SelectProps:N,slots:$={},slotProps:k={},type:V,value:B,variant:W="outlined",...q}=r,X={...r,autoFocus:s,color:d,disabled:p,error:h,fullWidth:b,multiline:O,required:F,select:U,variant:W},G=B2(X);process.env.NODE_ENV!=="production"&&U&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Q=mr(f),ee=g&&Q?`${Q}-helper-text`:void 0,oe=v&&Q?`${Q}-label`:void 0,le=L2[W],ae={slots:$,slotProps:{input:C,inputLabel:m,htmlInput:S,formHelperText:y,select:N,...k}},re={},ce=ae.slotProps.inputLabel;W==="outlined"&&(ce&&typeof ce.shrink<"u"&&(re.notched=ce.shrink),re.label=v),U&&((!N||!N.native)&&(re.id=void 0),re["aria-describedby"]=void 0);const[H,he]=Oe("root",{elementType:j2,shouldForwardComponentProp:!0,externalForwardedProps:{...ae,...q},ownerState:X,className:be(G.root,c),ref:n,additionalProps:{disabled:p,error:h,fullWidth:b,required:F,color:d,variant:W}}),[de,ge]=Oe("input",{elementType:le,externalForwardedProps:ae,additionalProps:re,ownerState:X}),[ze,Ee]=Oe("inputLabel",{elementType:rm,externalForwardedProps:ae,ownerState:X}),[me,De]=Oe("htmlInput",{elementType:"input",externalForwardedProps:ae,ownerState:X}),[Le,Ne]=Oe("formHelperText",{elementType:nm,externalForwardedProps:ae,ownerState:X}),[pe,Ve]=Oe("select",{elementType:Pn,externalForwardedProps:ae,ownerState:X}),Ie=l.jsx(de,{"aria-describedby":ee,autoComplete:i,autoFocus:s,defaultValue:u,fullWidth:b,multiline:O,name:L,rows:D,maxRows:w,minRows:A,type:V,value:B,id:Q,inputRef:x,onBlur:M,onChange:_,onFocus:I,placeholder:T,inputProps:De,slots:{input:$.htmlInput?me:void 0},...ge});return l.jsxs(H,{...he,children:[v!=null&&v!==""&&l.jsx(ze,{htmlFor:Q,id:oe,...Ee,children:v}),U?l.jsx(pe,{"aria-describedby":ee,id:Q,labelId:oe,value:B,input:Ie,...Ve,children:a}):Ie,g&&l.jsx(Le,{id:ee,...Ne,children:g})]})});process.env.NODE_ENV!=="production"&&(Ui.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:Mt,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 ht=kh({themeId:Qo}),W2=it(l.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List");function Md(){return Md=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},Md.apply(this,arguments)}function V2(e,t){if(e==null)return{};var n=U2(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 U2(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 Dd=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=V2(e,["color","size"]);return z.createElement("svg",Md({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),z.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});Dd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Dd.displayName="Bell";function _d(){return _d=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},_d.apply(this,arguments)}function H2(e,t){if(e==null)return{};var n=R2(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 R2(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 tl=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=H2(e,["color","size"]);return z.createElement("svg",_d({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("polyline",{points:"6 9 12 15 18 9"}))});tl.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},tl.displayName="ChevronDown";function $d(){return $d=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},$d.apply(this,arguments)}function q2(e,t){if(e==null)return{};var n=Y2(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 Y2(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 zd=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=q2(e,["color","size"]);return z.createElement("svg",$d({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("circle",{cx:"11",cy:"11",r:"8"}),z.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});zd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},zd.displayName="Search";function Ld(){return Ld=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},Ld.apply(this,arguments)}function K2(e,t){if(e==null)return{};var n=G2(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 G2(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 Bd=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=K2(e,["color","size"]);return z.createElement("svg",Ld({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("circle",{cx:"12",cy:"12",r:"3"}),z.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))});Bd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Bd.displayName="Settings";function On(){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},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},title:{fontSize:"16px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"14px",color:"#888",mb:1.5},actionLink:{fontSize:"14px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",borderRadius:2,boxShadow:24,width:"100%",maxWidth:360,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,py:2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"16px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:2.5,py:2},radioIcon:{width:20,height:20},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"14px",color:"#333"},formControlLabel:{mx:0,py:.75,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:2,pt:2,pl:2,pr:2,pb:2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"13px",color:"#000000",maxWidth:180},managePlanLink:{fontSize:"13px",fontWeight:500,color:"#2D64B8",cursor:"pointer"},footer:{px:2.5,pb:2.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"14px",fontWeight:500,py:1.25,borderRadius:1.5,boxShadow:"none"}}},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",opacity:1,marginLeft:"auto",marginRight:"auto",mt:2},resultsPerPageBox:{width:128,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1},resultsPerPageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap"},select:{minWidth:32,height:16,"& .MuiSelect-select":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",py:0,pr:"20px !important",display:"flex",alignItems:"center"},"& .MuiSelect-icon":{top:"50%",transform:"translateY(-50%)"},"& .MuiSvgIcon-root":{width:16,height:16,right:0,color:"#454545"}},navBox:{width:200,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1},iconButton:{p:0,width:16,height:16,color:"#454545","&.Mui-disabled":{color:"#c0c0c0"}},paginationIcon:{width:16,height:16,opacity:1},pageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"}},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 Rm=0,qm=1e4;function X2({open:e,filters:t={},onChange:n,onClose:r,onApply:i,priceRange:s}){const a=z.useMemo(()=>{const C=s?.min??t.minPrice??Rm,x=s?.max??t.maxPrice??qm;return{min:Number(C)||Rm,max:Math.max(Number(x)||qm,1)}},[s?.min,s?.max,t.minPrice,t.maxPrice]),c=t.status==="active"||t.status==="inactive"?t.status:"",d=t.stock==="inStock"||t.stock==="outOfStock"?t.stock:"",u=t.minPrice!=null&&Number.isFinite(Number(t.minPrice))?Number(t.minPrice):null,p=t.maxPrice!=null&&Number.isFinite(Number(t.maxPrice))?Number(t.maxPrice):null,h=u??a.min,y=p??a.max,b=(C,x)=>{n({...t,status:x===c?void 0:x||void 0})},g=(C,x)=>{n({...t,stock:x===d?void 0:x||void 0})},f=(C,x)=>{if(!Array.isArray(x)||x.length!==2)return;const v=Number(x[0]),w=Number(x[1]),A=Math.min(v,w),O=Math.max(v,w);n({...t,minPrice:A,maxPrice:O})},m=!!(t.status||t.stock||t.minPrice!=null||t.maxPrice!=null),S=()=>{const C={...t,status:void 0,stock:void 0,minPrice:void 0,maxPrice:void 0};n(C)};return l.jsxs(lo,{open:e,onClose:r,maxWidth:"xs",fullWidth:!0,disableScrollLock:!0,children:[l.jsx(co,{children:"Filter Products"}),l.jsx(Oi,{children:l.jsxs(P,{display:"flex",flexDirection:"column",gap:3,pt:.5,children:[l.jsxs(Ha,{component:"fieldset",children:[l.jsx(Fi,{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"}),l.jsxs(Ya,{row:!0,value:c,onChange:b,name:"status",children:[l.jsx(kn,{value:"active",control:l.jsx(fo,{size:"small"}),label:"Active"}),l.jsx(kn,{value:"inactive",control:l.jsx(fo,{size:"small"}),label:"Inactive"})]})]}),l.jsxs(Ha,{component:"fieldset",children:[l.jsx(Fi,{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"}),l.jsxs(Ya,{row:!0,value:d,onChange:g,name:"stock",children:[l.jsx(kn,{value:"inStock",control:l.jsx(fo,{size:"small"}),label:"In Stock"}),l.jsx(kn,{value:"outOfStock",control:l.jsx(fo,{size:"small"}),label:"Out of Stock"})]})]}),l.jsxs(P,{children:[l.jsx(Fi,{sx:{fontWeight:600,color:"text.primary",mb:.5,display:"block"},children:"Price"}),l.jsxs(j,{variant:"body2",color:"text.secondary",sx:{mb:.5},children:["Min: ₹",h," — Max: ₹",y]}),l.jsx(P,{sx:{px:.5},children:l.jsx(Fm,{value:[h,y],onChange:f,min:a.min,max:a.max,valueLabelDisplay:"on",valueLabelFormat:C=>`₹${C}`,size:"small",disableSwap:!1,sx:{mt:1}})})]})]})}),l.jsxs(yd,{sx:{gap:.5,flexWrap:"wrap"},children:[l.jsx(Xe,{onClick:r,children:"Cancel"}),m&&l.jsx(Xe,{variant:"contained",onClick:S,children:"Clear Filters"}),l.jsx(Xe,{variant:"contained",onClick:()=>i&&i(),children:"Apply"})]})]})}const J2=it(l.jsx("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");function Q2(e){return l.jsx(J2,{...e})}const Z2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPdJREFUeAGlUtENgjAQbUkHYAQdwREkwBriBjKBOIFsIK4BfLiBI+AG8MkP1HeEmoa0JcRLmsdx7+7d9cqZw8IwvHDO78qXUqZ1Xec6x2Nu85F0q6qKE5K/JKwVYOjgGkWRJITbLeNirQApo+3MKqA7UGoAO+bu6FOW5d5KoHa3xKwjxHF8Gscxh2KHk0H1aeIJWhUz3C5mz4QQB/oehuENmAqAn2m0btrCfMMqMZ3R7/ue0aEu9Ngyxzgb/iUYowG2QRAkhrh03gEeTwEo2IoJkzLgYeGf58I/8yzKTD1f9ZT1mLPAVvu7wNQadttiLf7G3BdGOn4B2S1yLsw0kyQAAAAASUVORK5CYII=";function jd({sx:e={},...t}){const n=e?.width??14,r=e?.height??14;return l.jsx(P,{component:"img",src:Z2,alt:"",role:"presentation",sx:{width:n,height:r,display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const eI=it(l.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");function Hi(e){return l.jsx(eI,{...e})}const tI=it(l.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 Or(e){return l.jsx(tI,{...e})}function Wd(e){return l.jsx(Bd,{...e})}const nI={minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"};function Ri(e){const{sx:t={},...n}=e;return l.jsx(P,{component:"button",sx:{...nI,...t},title:"Notifications","aria-label":"Notifications",...n,children:l.jsx(Dd,{size:20})})}const rI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACJSURBVHgBlVBBDYAwDGxQgAQkTMIk4AALczAk4AAcgBMkTAISSge3x0iXjUsuS9q79joiBcwchEbrdYp4kCeyzSCweCeqIU5HnJ1fTCVhL/TCS3iiNsO0ZvdgYsLxGeQ4h4lFi0aK4SE22BjQH7VoaaKDcItxqXL4AlOgFuCnni3UChjsH0NRfAPyobTjv0sWNAAAAABJRU5ErkJggg==",oI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABGSURBVHgBXYtBDQAgDAMrBSlIQAIScIYEJCABCUgYbdhj2SXNku4KOGa2mYYIi2qfiWSK5fcyXY8m08vDDKbEpcyBjObRfCpVS/aG0GXFAAAAAElFTkSuQmCC";function qi(e){const{sx:t={},...n}=e;return l.jsx(P,{sx:{flexShrink:0,...t},...n,children:l.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:l.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:l.jsxs(P,{sx:{position:"relative",width:20,height:20,opacity:1,flexShrink:0},children:[l.jsx(P,{component:"img",src:rI,alt:"",sx:{position:"absolute",width:10,height:10,top:"3.33px",left:"3.34px",opacity:1,objectFit:"contain",display:"block"}}),l.jsx(P,{component:"img",src:oI,alt:"",sx:{position:"absolute",width:4.166666507720947,height:4.166666507720947,top:"12.5px",left:"12.5px",opacity:1,objectFit:"contain",display:"block"}})]})})})})}const iI=({filters:e,onFilterChange:t,stores:n=[],onOpenFilterModal:r,StoresModal:i,storesModalProps:s,onStoreSelect:a,showBackButton:c=!1,backTo:d="/",backState:u,tenantStatus:p={matched:!0},priceRange:h,styles:y,hasProducts:b})=>{const g=It(),f=On(),m=ht("(max-width:600px)"),S=ht("(max-width:950px)"),C=ht("(max-width:900px)"),x=ht("(max-width:840px)"),v=ht("(max-width:810px)"),w=ht("(max-width:780px)"),A=ht("(max-width:750px)"),O=ht("(max-width:600px)"),[L,M]=z.useState(null),_=!!L,[I,T]=z.useState("search"),[F,D]=z.useState(null),U=!!F,[N,$]=z.useState(!1),[k,V]=z.useState(!1),[B,W]=z.useState(e||{}),[q,X]=z.useState(e?.search??""),G=Array.isArray(e?.store)?e.store:[],Q=()=>{D(null)},[ee,oe]=z.useState(G),le=me=>{oe(me==="all"?["all"]:[me])},ae=me=>{i?$(!0):(oe(G.length===0?["all"]:G),D(me.currentTarget))},re=()=>{t({...e,store:ee}),D(null)},ce=me=>{a?a(me):t({...e,store:me}),$(!1)},H=()=>{$(!1)};z.useEffect(()=>{X(e?.search??"")},[e?.search]);const he=me=>{if(me.key==="Enter"){me.preventDefault();const De=(q??"").trim();t({...e,search:De})}},de=me=>{M(me.currentTarget)},ge=()=>{M(null)},ze=f,Ee=y!=null&&y.root!==void 0?y:(y!=null&&y.topBar!=null?y.topBar:ze.topBar)||{};return l.jsxs(l.Fragment,{children:[l.jsx(or,{maxWidth:!1,disableGutters:!0,sx:f.categoryTableContainer,children:l.jsx(P,{sx:{...Ee.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:l.jsx(or,{maxWidth:!1,disableGutters:!0,sx:{width:"100%",display:"flex",justifyContent:"flex-start",boxSizing:"border-box",px:{xs:1,sm:2,md:4}},children:l.jsxs(P,{sx:{...Ee.inner,width:"100%",minWidth:0,height:32,minHeight:32,maxHeight:32,maxWidth:"100%",boxSizing:"border-box",gap:m?"12px":"16px",display:"flex",flexDirection:"row",alignItems:"center",overflow:"hidden",flexShrink:0,flexWrap:"nowrap"},children:[l.jsxs(P,{sx:{display:m&&I!=="search"?"none":"flex",alignItems:"center",flex:1,minWidth:0,flexBasis:m?"100%":"auto"},children:[c&&l.jsxs(l.Fragment,{children:[l.jsxs(P,{component:"button",onClick:()=>g(d,u?{state:u}: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:[l.jsx(Hi,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),l.jsx(j,{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"})]}),l.jsx(tn,{orientation:"vertical",flexItem:!0,sx:{mx:2,height:24,alignSelf:"center",borderColor:"#e0e0e0"}})]}),l.jsx(P,{sx:{display:m&&I!=="search"?"none":"flex",alignItems:"center",minWidth:0,flex:1,maxWidth:m?"100%":480},children:l.jsxs(P,{sx:{...Ee.searchBox,display:"flex",flexDirection:"row",alignItems:"center",width:"100%",maxWidth:414,height:20,gap:"12px",borderRadius:2,border:"none",backgroundColor:"#fff",px:1.5,py:0,boxSizing:"border-box"},children:[l.jsx(zd,{size:18,style:{position:"absolute",left:12,color:"#000000",top:"50%",transform:"translateY(-50%)"}}),l.jsx(Ti,{placeholder:c?"Search Products":"Search Products & Categories",value:q,onChange:me=>X(me.target.value),onKeyDown:he,sx:{...Ee.searchInput||{},pl:3.5,width:"100%","& .MuiInputBase-input":{py:1.25,boxSizing:"border-box"},"&::placeholder":{color:"#a0a0a0",opacity:1}}})]})})]}),l.jsx(tn,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:0,display:m||O&&A&&w?"none":"block"}}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flexShrink:0,height:32,gap:"16px",flexDirection:"row",boxSizing:"border-box",flexBasis:"auto",justifyContent:"flex-start",flexWrap:"nowrap"},children:[l.jsxs(P,{sx:{display:"flex",gap:1,alignItems:"center"},children:[l.jsxs(P,{sx:{display:m?I==="store"?"flex":"none":O?"none":"flex",alignItems:"center",flex:m?"1 1 auto":"0 1 216px",width:m?"100%":"auto",maxWidth:m?"100%":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:ae,tabIndex:0,"aria-label":"Select stores",children:[l.jsx(jd,{size:12,style:{color:"#555",marginRight:4}}),l.jsx(j,{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:G.length===0||G.includes("all")?"All Stores":G.length===1?"1 Store":`${G.length} Stores`}),l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",width:m?"auto":61,height:16,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:` ${n.filter(me=>me.id!=="all"&&me.storeCode!=="all").length} stores`}),l.jsx(tl,{size:16,style:{width:16,height:16,opacity:1,flexShrink:0,color:"#454545"}})]}),l.jsxs($i,{anchorEl:F,open:U,onClose:Q,disableScrollLock:!0,PaperProps:{style:{minWidth:180}},children:[l.jsxs(We,{onClick:()=>le("all"),children:[l.jsx(bt,{checked:ee.length===0||ee.includes("all")}),l.jsx(Td,{primary:"All Stores"})]}),l.jsx(tn,{}),l.jsx(P,{sx:{maxHeight:104,overflowY:"auto"},children:n.filter(me=>me.id!=="all").map(me=>l.jsxs(We,{onClick:()=>le(me.id),children:[l.jsx(bt,{checked:ee.includes(me.id)}),l.jsx(Td,{primary:me.name})]},me.id))}),l.jsx(tn,{}),l.jsx(P,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:l.jsx(Xe,{variant:"contained",size:"small",onClick:re,children:"Apply"})})]}),l.jsxs(P,{sx:{display:m?I==="filters"?"flex":"none":A?"none":"flex",alignItems:"center",flex:m?"1 1 auto":"0 0 auto",width:m?"100%":67,maxWidth:m?"100%":67,height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box",cursor:"pointer"},onClick:()=>{r?r():(W(e||{}),V(!0))},children:[l.jsx(j,{sx:{width:29,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545",whiteSpace:"nowrap"},children:"Filters"}),l.jsx(tl,{size:16,style:{width:16,height:16,opacity:1,color:"#454545",flexShrink:0}})]}),l.jsxs(P,{sx:{display:m?I==="sort"?"flex":"none":w?"none":"flex",alignItems:"center",flex:m?"1 1 auto":"0 0 auto",width:m?"100%":63,maxWidth:m?"100%":63,height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box",cursor:"pointer"},children:[l.jsx(j,{sx:{width:25,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545"},children:"Sort"}),l.jsx(Q2,{sx:{width:16,height:16,opacity:1,color:"#454545"}})]}),l.jsx(P,{sx:{display:m&&I==="settings"?"flex":"none",alignItems:"center",justifyContent:"center",flex:"1 1 auto",width:"100%",maxWidth:"100%",height:32,borderRadius:"6px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",cursor:p.loading?"not-allowed":"pointer",opacity:p.loading?.5:1,pointerEvents:p.loading?"none":"auto",boxSizing:"border-box"},title:p.loading?"Loading...":"Settings",onClick:()=>{p.loading||g("/product-setting",{state:{tenantIntegrationMatched:!!p.matched}})},children:l.jsx(Wd,{size:18.33,color:"#454545"})}),l.jsx(P,{sx:{display:m&&I==="notification"?"flex":"none",alignItems:"center",justifyContent:"center",flex:"1 1 auto",width:"100%",maxWidth:"100%",height:32,borderRadius:"6px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box"},children:l.jsx(Ri,{})}),l.jsx(P,{sx:{display:m&&I==="askAira"?"flex":"none",alignItems:"center",justifyContent:"center",flex:"1 1 auto",width:"100%",maxWidth:"100%",height:32,boxSizing:"border-box"},children:l.jsx(qi,{})})]}),l.jsx(tn,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",display:v&&x||m&&(I==="settings"||I==="notification"||I==="askAira")?"none":"block"}}),l.jsxs(P,{sx:{display:"flex",gap:1,alignItems:"center"},children:[l.jsx(P,{component:"button",sx:{...Ee.iconOnly,display:v?"none":"flex"},title:"Refresh",children:l.jsx(Or,{sx:{width:20,height:20,opacity:1}})}),l.jsx(P,{component:"button",sx:{...Ee.iconOnly,display:x?"none":"flex",cursor:p.loading?"not-allowed":"pointer",opacity:p.loading?.5:1,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:p.loading?"none":"auto"},title:p.loading?"Loading...":"Settings",tabIndex:-1,onClick:()=>{p.loading||g("/product-setting",{state:{tenantIntegrationMatched:!!p.matched}})},children:l.jsx(Wd,{size:18.33,color:"#454545"})})]}),l.jsx(tn,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",marginRight:"-8px",display:C?"none":"block"}})]}),!C&&l.jsx(Ri,{}),l.jsx(P,{sx:{marginLeft:"auto",flexShrink:0,display:"flex",alignItems:"center"},children:S?l.jsx(P,{component:"button",sx:Ee.iconOnly,"aria-label":"Open actions menu",onClick:de,children:l.jsx(W2,{fontSize:"small"})}):l.jsx(qi,{})}),l.jsx($i,{anchorEl:L,open:_,onClose:ge,disableScrollLock:!0,PaperProps:{sx:{maxHeight:120,overflowY:"auto"}},children:m?[I!=="search"&&l.jsx(We,{onClick:()=>{T("search"),ge()},children:l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Search Products & Categories"})},"search"),I!=="store"&&l.jsx(We,{onClick:()=>{T("store"),ge()},children:l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"All Stores"})},"store"),I!=="filters"&&l.jsx(We,{onClick:()=>{T("filters"),ge()},children:l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Filters"})},"filters"),I!=="sort"&&l.jsx(We,{onClick:()=>{T("sort"),ge()},children:l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Sort"})},"sort"),l.jsx(We,{onClick:ge,children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(Or,{sx:{width:20,height:20}}),l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Refresh"})]})},"refresh"),I!=="settings"&&l.jsx(We,{onClick:()=>{T("settings"),ge()},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(Wd,{size:18.33,color:"#454545"}),l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Settings"})]})},"settings"),I!=="notification"&&l.jsx(We,{onClick:()=>{T("notification"),ge()},children:l.jsx(Ri,{})},"notification"),I!=="askAira"&&l.jsx(We,{onClick:()=>{T("askAira"),ge()},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(qi,{}),l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Ask Aira"})]})},"askAira")]:[C&&l.jsx(We,{onClick:ge,children:l.jsx(Ri,{})},"notification"),x&&l.jsx(We,{onClick:()=>{ge(),!p.loading&&g("/product-setting",{state:{tenantIntegrationMatched:!!p.matched}})},children:l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Settings"})},"settings"),v&&l.jsx(We,{onClick:ge,children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(Or,{sx:{width:20,height:20,opacity:1}}),l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Refresh"})]})},"refresh"),O&&l.jsx(We,{onClick:me=>{ge(),ae(me)},children:l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"All Stores"})},"store"),A&&l.jsx(We,{onClick:()=>{ge(),r?r():(W(e||{}),V(!0))},children:l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Filters"})},"filters"),w&&l.jsx(We,{onClick:ge,children:l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Sort"})},"sort"),l.jsx(We,{onClick:ge,children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(qi,{}),l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Ask Aira"})]})},"askAira")]})]})})})}),i&&(()=>{const{open:me,onClose:De,onStoreSelect:Le,...Ne}=s||{};return l.jsx(i,{open:N,onClose:H,onStoreSelect:ce,selectedStores:G,...Ne})})(),!r&&l.jsx(X2,{open:k,filters:B,onChange:W,onClose:()=>V(!1),onApply:me=>{t&&t(me!==void 0?me:B),V(!1)},priceRange:h})]})};const sI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),aI=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ym=e=>{const t=aI(e);return t.charAt(0).toUpperCase()+t.slice(1)},Km=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),lI=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var cI={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=z.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...c},d)=>z.createElement("svg",{ref:d,...cI,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Km("lucide",i),...!s&&!lI(c)&&{"aria-hidden":"true"},...c},[...a.map(([u,p])=>z.createElement(u,p)),...Array.isArray(s)?s:[s]]));const Ir=(e,t)=>{const n=z.forwardRef(({className:r,...i},s)=>z.createElement(dI,{ref:s,iconNode:t,className:Km(`lucide-${sI(Ym(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Ym(e),n};const pI=Ir("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const uI=Ir("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Gm=Ir("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const fI=Ir("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const hI=Ir("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 gI=Ir("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 mI=Ir("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),yI=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:n})=>{const r=Et(),i=It(),s=r.pathname||"",a=t||(()=>i(-1)),c=()=>{const p=s.replace(/\/+$/,"");return p==="/product-setting"?[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"}]:p==="/products/settings/ftp-sync"?[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}]:p==="/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"}]},d=n&&Array.isArray(n)&&n.length>0?n:c(),u=(p=12)=>!d||!Array.isArray(d)||d.length===0?null:l.jsx(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:d.map((h,y)=>l.jsxs(z.Fragment,{children:[y>0&&l.jsx(Gm,{size:p,color:"#808080",style:{margin:"0 4px",flexShrink:0}}),l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontWeight:y===d.length-1?700:400,fontSize:y===d.length-1?"16px":"12px",lineHeight:y===d.length-1?"20px":"16px",letterSpacing:0,color:y===d.length-1?"#000000":"#808080",verticalAlign:"middle"},children:h.label})]},h.label))});return l.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:l.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"},children:[l.jsxs(P,{sx:{flex:1,minWidth:0,height:32,gap:"16px",opacity:1,display:"flex",alignItems:"center",flexShrink:0},children:[l.jsxs(P,{onClick:a,sx:{width:48,height:16,gap:"4px",opacity:1,display:"flex",alignItems:"center",cursor:"pointer",flexShrink:0,background:"none",border:"none",padding:0,"&:hover":{opacity:.85}},children:[l.jsx(Hi,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),l.jsx(j,{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"})]}),l.jsx(tn,{orientation:"vertical",flexItem:!0,sx:{mx:0,height:24,alignSelf:"center",borderColor:"#e0e0e0"}}),l.jsx(P,{sx:{flex:1,minWidth:0,height:20,paddingLeft:"8px",gap:"4px",opacity:1,display:"flex",alignItems:"center"},children:n&&n.length>0?u(12):l.jsxs(l.Fragment,{children:[l.jsx(j,{sx:{width:51,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",verticalAlign:"middle",flexShrink:0},children:"Products"}),l.jsx(Gm,{size:12,color:"#808080",style:{margin:"0 4px",flexShrink:0}}),l.jsx(j,{sx:{flex:1,minWidth:0,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000",verticalAlign:"middle"},children:e})]})})]}),l.jsx(tn,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",marginRight:"-8px"}}),l.jsxs(P,{sx:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"16px",flexShrink:0},children:[l.jsx(Ri,{}),l.jsx(qi,{})]})]})})},Xm=z.createContext(null);function Yi(){return z.useContext(Xm)}function bI(){const t=Et().pathname||"",[n,r]=z.useState({}),[i,s]=z.useState({}),a=t.startsWith("/product-setting")||t.startsWith("/products/settings")||t.startsWith("/catalogs/manage-shared"),c=z.useMemo(()=>({setTopbarProps:r,setSettingTopbarProps:s}),[]);return l.jsx(Xm.Provider,{value:c,children:l.jsxs(P,{sx:{display:"flex",flexDirection:"column",flex:1,minHeight:"100vh",width:"100%"},children:[l.jsx(P,{sx:{position:"sticky",top:0,zIndex:1100,flexShrink:0,width:"100%"},children:a?l.jsx(yI,{onBack:i.onBack,breadcrumbs:i.breadcrumbs}):n.hide?null:(()=>{const{hide:d,...u}=n;return l.jsx(iI,{...u})})()}),l.jsx(P,{sx:{flex:1,minHeight:0,overflow:"auto",display:"flex",flexDirection:"column",width:"100%"},children:l.jsx(ob,{})})]})})}function mo({text:e="Fetching",fullScreen:t=!0,textVisible:n=!0}){const r=On(),i=t?{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 64px)"}:r?.loadingBox||{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"};return l.jsx(P,{sx:{...i,animation:"fade-in 1s ease-in-out","@keyframes fade-in":{from:{opacity:0},to:{opacity:1}}},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:2,bgcolor:"#f5f7fa"},children:[l.jsx(mi,{size:24}),n&&l.jsxs(j,{sx:{animation:"fade-in 1s ease-in-out","@keyframes fade-in":{from:{opacity:0},to:{opacity:1}}},children:[e," ..."]})]})})}const xI="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 Vd({loading:e,handleStartSyncing:t,categoryName:n,sessionExpired:r=!1,hasIntegration:i=!1,hideSubtitleAndAction:s=!1,isHomeCategorySearchEmpty:a=!1,isHomeCategorySearch:c=!1,categoryHasNoProducts:d=!1,hideActionLink:u=!1,hideIconAndTitle:p=!1,showFetchingCategoriesLabel:h=!1}){const y=It(),b=On(),[g]=z.useState({matched:!1,error:"",apiResponse:null,loading:!1});let f=b&&b.emptyProduct?b.emptyProduct:{wrapper:{},card:{},iconContainer:{},inboxIcon:{},title:{},subtitle:{},actionLink:{}};const S=Je(w=>w?.dashboard)?.products||[],C=t||(()=>y("/product-setting")),x=!r&&!e&&Array.isArray(S)&&S.length===0,v=d?!1:x;if(e&&!r){let w="Fetching";return h?w="Fetching Categories":(c||a||n)&&(w="Fetching Category"),l.jsx(mo,{text:w,fullScreen:!0})}return l.jsx(P,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:l.jsx(P,{sx:f.wrapper,children:l.jsxs(P,{sx:f.card,children:[!(p||a)&&l.jsx(P,{sx:f.iconContainer,children:l.jsx(P,{component:"img",src:xI,alt:"No products",sx:{display:"block",objectFit:"contain",maxWidth:"100%",width:280,height:240,...f.inboxIcon,border:"none",outline:"none",borderRadius:0,bgcolor:"transparent"}})}),l.jsx(j,{sx:f.title,children:!r&&(a||n?"No Category Found":"No Products")}),!a&&!s&&!e&&l.jsx(j,{sx:f.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&&!u&&v&&!i&&l.jsx(j,{component:"a",href:"#",sx:f.actionLink,onClick:w=>{w.preventDefault(),C()},children:"Start Syncing Products"})]})})})}const Jm=it(l.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"),vI="#22c55e";function Ud(e){const{sx:t,color:n=vI,fontSize:r,...i}=e;return l.jsxs(er,{viewBox:"0 0 24 24",sx:{fontSize:r||24,color:n,...t},...i,children:[l.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",d:"M6.5 12l3.5 4 7-8"})]})}function SI({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 z.useEffect(()=>{if(!n||n<=0||typeof t!="function")return;const s=window.setTimeout(()=>{t()},n);return()=>window.clearTimeout(s)},[n,t]),l.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:[l.jsx(P,{sx:{flexShrink:0,mt:.25,display:"flex",alignItems:"center"},children:l.jsx(Ud,{sx:{fontSize:40}})}),l.jsxs(P,{sx:{flex:1,minWidth:0,pt:.25},children:[l.jsx(j,{sx:{fontWeight:700,fontSize:16,color:"#111",lineHeight:1.3},children:"Catalog created"}),l.jsx(j,{sx:{fontWeight:400,fontSize:14,color:"#666",mt:.25,lineHeight:1.4},children:"You can now share it for collecting orders"}),l.jsx(j,{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"})]}),l.jsx(yt,{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:l.jsx(Jm,{sx:{fontSize:20}})})]})}const wI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMFJREFUeAGNUgENwjAQbBcM4AAcgALmAByAhE3BWgXDQTcHSCgKkEBwAArKXfJNnjIWPrnc//e+/VtmzUw452oQEZFH9qoZcQB1UgbUPRP7Q+xAK9BJ9W6g1po/Qy4xC9303ncppUbKAZpWHR/5QqV3hniNlNgCy7yS+LmCL1Y1LAUi2vFB4An0+YzaCskBXKvbBtALoMk78NDm6WEDjIVB+mjMRNBDBPbFQMhfpYzs4SxDo+z/scbXgAzVpvgNpuINgHBRUvbxfqsAAAAASUVORK5CYII=";function CI(e){const{sx:t,alt:n="link icon",...r}=e;return l.jsx(P,{component:"img",src:wI,alt:n,sx:{display:"inline-block",width:16,height:16,objectFit:"contain",...t},...r})}const EI=it(l.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Ot({size:e,style:t,sx:n,...r}){return l.jsx(EI,{...r,sx:{...e&&{width:e,height:e},...t,...n}})}const nl={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#454545"},Qm={fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},TI={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},Zm=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`},rl=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))},ey=({productState:e,categoryName:t,categoryProductCount:n,categoryCount:r,activeCatalogsCount:i=0,onManageClick:s,matchHomePageLayout:a=!1})=>{const c=e?.metrics||{},d=e?.productDashboardMetrics||{},u=!t,p=a||u,h=!!t&&!p,y=p?"12px":"8px",b=p?void 0:261.3333435058594,g=101,f=t?d.productCount!=null?d.productCount:n:u&&(c.activeCategories!=null||c.activeProducts!=null)?c.activeCategories??r??0:r??e?.homePageCardSummary?.totalCategories??0,m=t?"":"Products",S=t?"":u&&c.activeProducts!=null?c.activeProducts:e?.homePageCardSummary?.totalProducts??0,C=c?.lastSyncTime,x=d?.lastSyncTime,v=Zm(u?C:x||C),w=u&&c.activeCatalogues!=null?c.activeCatalogues:t&&d.activeCatalogues!=null?d.activeCatalogues:i,A=c.onShelfYesterdayPerc!=null?Math.round(Number(c.onShelfYesterdayPerc)):null,O=c.totalOnShelfYesterdayCount!=null?Number(c.totalOnShelfYesterdayCount):null,L=c.totalStockYesterdayCount!=null?Number(c.totalStockYesterdayCount):null,M=c.missingOnShelfYesterdayPercent!=null?Math.round(Number(c.missingOnShelfYesterdayPercent)):null,_=d.onShelfYesterdayPerc!=null?Math.round(Number(d.onShelfYesterdayPerc)):null,I=d.totalOnShelfYesterdayCount!=null?Number(d.totalOnShelfYesterdayCount):null,T=d.totalStockYesterdayCount!=null?Number(d.totalStockYesterdayCount):null,F=d.missingOnShelfYesterdayPercent!=null?Math.round(Number(d.missingOnShelfYesterdayPercent)):null,D=u?A!=null?`${A}%`:"78%":_!=null?`${_}%`:"78%",U=u?O!=null&&L!=null?`${rl(O)}/${rl(L)}`:"78/100k":I!=null&&T!=null?`${rl(I)}/${rl(T)}`:"78/100k",N=u?M!=null?`${M}% Missing`:"22% missing":F!=null?`${F}% Missing`:"22% missing",$=t?`${t} Products`:"Categories";return l.jsx(or,{maxWidth:!1,sx:{width:"100%",maxWidth:"100%",minWidth:"100%",px:0},children:l.jsxs(P,{sx:{width:"100%",maxWidth:"100%",height:p?"auto":h?101:"auto",gap:y,opacity:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"stretch",mb:3},children:[l.jsx(Hd,{cardWidth:b??344,cardHeight:g,title:$,titleValue:f,subtitle:m,subtitleValue:S,recentText:v,tickMarkRequired:!0,btnLabel:"History",flexGrow:!0,flexOverride:p?"2 1 180px":h?void 0:"2 1 180px"}),l.jsx(Hd,{cardWidth:b??220,cardHeight:g,title:"Active Catalogs",titleValue:w,recentText:"4 public links",linkRequired:!0,btnLabel:"Manage",onBtnClick:s,flexGrow:!0,flexOverride:p?"1 1 200px":h?void 0:"1 1 200px"}),l.jsx(Hd,{cardWidth:b??220,cardHeight:g,title:"On Shelf Yesterday",titleValue:D,thirdVaue:U,recentText:N,recentTextColor:"#FF2929",btnLabel:"Report",isThirdCard:!0,flexGrow:!0,flexOverride:p?"1 1 200px":h?void 0:"1 1 200px"})]})})};function Hd({cardWidth:e=344,cardHeight:t=101,title:n="",subtitle:r="",titleValue:i="",thirdVaue:s="",subtitleValue:a="",recentText:c="",recentTextColor:d="#808080",btnLabel:u="",tickMarkRequired:p=!1,linkRequired:h=!1,onBtnClick:y,isThirdCard:b=!1,flexGrow:g=!1,flexOverride:f}){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"},x={fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#2D64B8"};return l.jsxs(La,{sx:{width:g?void 0:e,minWidth:g?200:void 0,flex:f??(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:[l.jsx(P,{sx:{width:g?"100%":e,height:68,opacity:1,gap:"4px",padding:"8px 12px",display:"flex",alignItems:"flex-start",boxSizing:"border-box"},children:b?l.jsx(l.Fragment,{children:l.jsxs(P,{sx:{width:"100%",height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[l.jsx(j,{sx:{...nl,height:16},children:n}),l.jsxs(P,{sx:{minWidth:0,height:32,opacity:1,gap:"6px",display:"flex",alignItems:"baseline",flexWrap:"nowrap"},children:[l.jsx(j,{sx:{...m},children:i}),l.jsx(j,{sx:{...S},children:s})]})]})}):l.jsxs(l.Fragment,{children:[n&&l.jsxs(P,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[l.jsx(j,{sx:{...nl,width:158,height:16},children:n}),l.jsx(j,{sx:{...Qm,width:32,height:32},children:i}),s&&l.jsx(j,{component:"span",sx:{...nl,fontSize:12,color:"#808080",ml:.5},children:s})]}),r&&l.jsxs(P,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[l.jsx(j,{sx:{...nl,width:158,height:16},children:r}),l.jsx(j,{sx:{...Qm,width:47,height:32},children:a})]})]})}),l.jsx(tn,{}),l.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:b?l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:l.jsx(j,{sx:{...C,whiteSpace:"nowrap"},children:c})}),u&&l.jsxs(P,{sx:{width:58,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:[l.jsx(Xe,{variant:"text",size:"small",onClick:y,sx:{...x,width:40,height:16,textTransform:"none",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:"#2D64B8"}},children:u}),l.jsx(Ot,{sx:{width:16,height:16,color:"#2D64B8"}})]})]}):l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{flex:1,minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:[p&&l.jsx(Ud,{sx:{width:12,height:12,mr:.5}}),h&&l.jsx(CI,{sx:{color:"#2563eb",width:12,height:12,mr:.5}}),l.jsx(j,{sx:{...TI,height:12,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:c})]}),u&&l.jsx(P,{sx:{width:65,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:l.jsxs(Xe,{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:[u,l.jsx(Ot,{sx:{width:16,height:16,color:"#2D64B8"}})]})})]})})]})}const AI=it(l.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");function ol(e){return l.jsx(AI,{...e})}function il(e){return l.jsx(er,{viewBox:"0 0 14 14",...e,children:l.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}function ty(e){if(!e)return"";try{return new Date(e).toLocaleDateString()}catch{return e}}function ny(e){return e?.categoryName??e?.name??""}function kI({categoryData:e=[],styles:t={},onView:n,selectedCategories:r=[],onToggleCategory:i}){const s=I=>r.some(T=>ny(T)===ny(I)),a=e.length>0&&e.every(s),c=e.some(s),[d,u]=z.useState(!1),[p,h]=z.useState([]),[y,b]=z.useState(0),[g,f]=z.useState(""),[m,S]=z.useState(0),C=t.categoryTableShared??{},x=ht("(max-width:600px)"),v=ht("(max-width:900px)"),w=ht("(max-width:400px)");let A=4;x?A=1:v&&(A=2);const O=(I,T,F,D)=>{const U=Array.isArray(I)?I:[],N=Number.isFinite(Number(D))?Number(D):U.length;if(N<=0)return;const $=N-1,k=Math.max(0,Math.min(T,$));h(U),b(k),S(N),f(F||""),u(!0)},L=()=>{u(!1)},M=()=>{b(I=>I>0?I-1:I)},_=()=>{b(I=>I<m-1?I+1:I)};return l.jsxs(l.Fragment,{children:[l.jsx(or,{maxWidth:!1,sx:t.categoryTableContainer,children:l.jsxs(La,{sx:t.categoryTable,children:[l.jsxs(P,{sx:{...t.categoryTableHeader,width:"100%"},children:[i&&l.jsx(P,{sx:t.categoryTableHeaderCheckboxCol,children:l.jsx(bt,{checked:a,indeterminate:c&&!a,onChange:()=>{a?e.forEach(I=>i(I)):e.forEach(I=>{s(I)||i(I)})},size:"small",sx:C.checkboxHeaderSx,icon:l.jsx("span",{style:C.checkboxIconSpanHeader}),checkedIcon:l.jsx("span",{style:C.checkboxCheckedIconSpan,children:l.jsx("span",{style:C.checkboxCheckedIconInner})}),indeterminateIcon:l.jsx("span",{style:C.checkboxCheckedIconSpan,children:l.jsx("span",{style:C.checkboxCheckedIconInner})})})}),l.jsxs(P,{sx:t.categoryTableHeaderCategoryCell,children:["Category",l.jsx(ol,{sx:t.categoryTableHeaderArrow})]}),!w&&l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:t.categoryTableHeaderStockCell,children:"Stock / OSA"}),l.jsx(P,{sx:t.categoryTableHeaderProductsCell,children:"Products"})]}),l.jsx(P,{sx:t.categoryTableHeaderEmptyCell})]}),e.map((I,T)=>{const F=Array.isArray(I.images)?I.images:[],D=F.slice(0,A),U=Number.isFinite(Number(I.productCount))?Number(I.productCount):F.length,N=Math.max(U-D.length,0);return l.jsx(P,{sx:{...t.categoryTableRow(T),width:"100%",flexDirection:w?"column":t.categoryTableRow?.flexDirection,alignItems:w?"flex-start":t.categoryTableRow?.alignItems},children:w?l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",width:"100%",gap:1},children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:1,minWidth:0,flex:1},children:[i&&l.jsx(P,{sx:t.categoryTableRowCheckboxFrame,children:l.jsx(bt,{checked:s(I),onChange:()=>i(I),size:"small",sx:{...C.checkboxRowSx,outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"}},icon:l.jsx("span",{style:C.checkboxIconSpanRow}),checkedIcon:l.jsx("span",{style:C.checkboxRowCheckedIconSpan,children:l.jsx(il,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),l.jsxs(P,{sx:{...t.categoryNameCell,flex:"1 1 auto",minWidth:0},children:[l.jsx(j,{sx:t.categoryName,children:I.categoryName}),l.jsxs(j,{sx:t.categoryProducts,children:[I.productCount," Products"]}),l.jsxs(j,{sx:t.categoryUpdated,children:["Updated ",ty(I.lastUpdated)]})]})]}),l.jsx(P,{sx:{...t.categoryViewCell,flexShrink:0,mt:"5px",alignSelf:"flex-start",alignItems:"flex-start"},children:l.jsxs(Xe,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:I.categoryName,...I}),children:["View",l.jsx(Ot,{sx:t.categoryViewButtonIcon})]})})]}),l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:2,width:"100%",mt:.5,...i&&{ml:"24px"}},children:[l.jsxs(P,{sx:{...t.categoryStockCell,flex:"0 0 auto"},children:[l.jsxs(j,{sx:t.categoryStock(T),children:[I.totalStock,"/",I.totalOsa]}),l.jsx(j,{sx:t.categoryOSA(T),children:I.osaPercent!=null?l.jsxs(l.Fragment,{children:[l.jsxs(P,{component:"span",sx:Number(I.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(I.osaPercent)),"%"]})," on shelf"]}):""})]}),l.jsxs(P,{sx:{...t.categoryImagesCell,flex:"1 1 auto",minWidth:0},children:[D.map(($,k)=>l.jsx(Ar,{src:$,alt:(I.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>O(F,k,I.categoryName||"",U)},k)),N>0&&l.jsx(P,{onClick:()=>O(F,D.length,I.categoryName||"",U),sx:{...t.categoryImage,...t.categoryMoreImageBox},children:l.jsxs(j,{sx:t.categoryMoreImageText,children:["+",N," More"]})})]})]})]}):l.jsxs(l.Fragment,{children:[i&&l.jsx(P,{sx:t.categoryTableRowCheckboxFrame,children:l.jsx(bt,{checked:s(I),onChange:()=>i(I),size:"small",sx:{...C.checkboxRowSx,outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"}},icon:l.jsx("span",{style:C.checkboxIconSpanRow}),checkedIcon:l.jsx("span",{style:C.checkboxRowCheckedIconSpan,children:l.jsx(il,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),l.jsxs(P,{sx:{...t.categoryNameCell,width:"auto"},children:[l.jsx(j,{sx:t.categoryName,children:I.categoryName}),l.jsxs(j,{sx:t.categoryProducts,children:[I.productCount," Products"]}),l.jsxs(j,{sx:t.categoryUpdated,children:["Updated ",ty(I.lastUpdated)]})]}),l.jsxs(P,{sx:{...t.categoryStockCell,width:"auto"},children:[l.jsxs(j,{sx:t.categoryStock(T),children:[I.totalStock,"/",I.totalOsa]}),l.jsx(j,{sx:t.categoryOSA(T),children:I.osaPercent!=null?l.jsxs(l.Fragment,{children:[l.jsxs(P,{component:"span",sx:Number(I.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(I.osaPercent)),"%"]})," on shelf"]}):""})]}),l.jsxs(P,{sx:{...t.categoryImagesCell,width:"auto"},children:[D.map(($,k)=>l.jsx(Ar,{src:$,alt:(I.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>O(F,k,I.categoryName||"",U)},k)),N>0&&l.jsx(P,{onClick:()=>O(F,D.length,I.categoryName||"",U),sx:{...t.categoryImage,...t.categoryMoreImageBox},children:l.jsxs(j,{sx:t.categoryMoreImageText,children:["+",N," More"]})})]}),l.jsx(P,{sx:{...t.categoryViewCell,width:"auto"},children:l.jsxs(Xe,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:I.categoryName,...I}),children:["View",l.jsx(Ot,{sx:t.categoryViewButtonIcon})]})})]})},I.categoryName||T)})]})}),l.jsxs(lo,{open:d,onClose:L,maxWidth:"lg",fullWidth:!0,children:[l.jsxs(co,{sx:t.categoryImageDialogTitleRow,children:[l.jsxs(j,{sx:t.categoryImageDialogTitleText,children:["Image Preview",g?` - ${g}`:""]}),l.jsx(Xe,{onClick:L,sx:t.categoryImageDialogCloseButton,children:"Close"})]}),l.jsx(Oi,{sx:t.categoryImageDialogContent,children:m>0&&l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:t.categoryImageDialogImageBox,children:p[y]?l.jsx(P,{component:"img",src:p[y],alt:(g||"Category")+` image ${y+1}`,sx:t.categoryImageDialogImage}):l.jsx(j,{sx:t.categoryImageDialogFallbackText,children:(g||"Category")+` image ${y+1}`})}),l.jsxs(P,{sx:t.categoryImageDialogFooterRow,children:[l.jsx(Xe,{variant:"outlined",size:"small",onClick:M,disabled:y<=0,sx:t.categoryImageDialogNavButton,children:"Previous"}),l.jsxs(j,{sx:t.categoryImageDialogCounterText,children:[y+1," of ",m]}),l.jsx(Xe,{variant:"outlined",size:"small",onClick:_,disabled:y>=m-1,sx:t.categoryImageDialogNavButton,children:"Next"})]})]})})]})]})}const PI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAKpJREFUeAHFko0NgkAMhR+EARjhRtAJZATcQDfRCRxBRnAE3eBGYJP6qsU0F4FLIOFLyv20r6TtAYaItDLPHY7S7WtaV4xA3xkJJRawSFzph7U0XA60wP1pJHbwt1wjK+kLHm487Gg98qgtfq9isYZkQ0nH5blOwzaZc2TGC77dnGOYhsZ+aj7aX0OO2IRXHdXvVjOmNXn++askpplIEJC8BS9+YJoXLfqLN/KniiDmJ/GnAAAAAElFTkSuQmCC";function OI({sx:e={},...t}){return l.jsx(P,{component:"img",src:PI,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const II="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMlJREFUeAGdUgERwyAMDLsJqIRKQEIlVAIOhoPVQSV0Diahc7A6QMJwwMLt2bGMtlxz98cR8n+fBKKdCCFcGC584skwVBNcOIGgcdcQsntEy7gxGpFvIdDQkUhuzoWHlo+O4RkPpZRf0WgkcWS80OsMe72oMTEviZPsEQO6i7tLA/whCnUtxIvEa66eFSb7JmtHS7vuL0nflQwQsMXVxG9DB+PEWJjfFUSj9XGTDUsO+025fq2dksCA4hlnFVFlAnEgkeD5Vy1UEW+PYQ9FgjWUTgAAAABJRU5ErkJggg==";function NI({sx:e={},...t}){return l.jsx(P,{component:"img",src:II,alt:"",role:"presentation",sx:{width:"13.26px",height:"13.24px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const FI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAANBJREFUeAGtU4ERwiAMDL0O4AbiJDKCKziJdBI7CpuIG7gBfir0Igbqnf5dSvr9hiQEoh9h+JFSslgugo/GmEkKoblW/07QxCG/eJgTHy194i58VzYcBRkQ8UytVI3xIpu5+AN1wKXl8poYGykWeI4D0zLT9MuuJ9gt+3NpHnMwV+u1EnakN9FqfLcH30ALELNp/KMmlyaiNo9lz8cIC/APtRD8ykl9OQVLr27X8KRj1Y/UAY8qbUAGcGLet+7CERbYkXch0HuKNeTgsHaif+AJ5CBPR1lDq+wAAAAASUVORK5CYII=";function MI({sx:e={},...t}){return l.jsx(P,{component:"img",src:FI,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const Rd=640,qd={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"}},Yd={width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},Kd={width:"13.33px",height:"13.33px",objectFit:"contain",boxSizing:"border-box"},Gd={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",color:"#FFFFFF",whiteSpace:"nowrap"},ry=({onPromoPrint:e,onCreateCatalog:t,onOsaRequest:n,selectedProducts:r,selectedCategories:i,containerRef:s})=>{const a=r||[],c=i||[],d=a.length>0,u=c.length>0,p=ht("(max-width:450px)"),[h,y]=z.useState(null),b=z.useRef(null);if(z.useEffect(()=>{const M=s?.current;if(!M){queueMicrotask(()=>y(null));return}const _=()=>{b.current&&cancelAnimationFrame(b.current),b.current=requestAnimationFrame(()=>{b.current=null,y(M.getBoundingClientRect())})};_();const I=new ResizeObserver(_);return I.observe(M),window.addEventListener("resize",_),()=>{I.disconnect(),window.removeEventListener("resize",_),b.current&&cancelAnimationFrame(b.current)}},[s]),!d&&!u)return null;const g=c.length,f=new Set(c.map(M=>(M?.categoryName||M?.name||"").toString().trim()).filter(Boolean)),m=a.filter(M=>{const _=(M.categoryName||M.category||"").toString().trim();return _?!f.has(_):!0}),S=m.length,C=m.map(M=>(M.categoryName||M.category||"").toString().trim()).filter(Boolean),x=Array.from(new Set(C)),v=x.length===1?x[0]:null;let w;const A=S>0;if(u&&A){const M=`${g} categor${g===1?"y":"ies"}`,_=`product${S===1?"":"s"}`;v?w=`${M} + ${S} ${_} of ${v} category`:w=`${M} + ${S} ${_}`}else u?w=`${g} categor${g===1?"y":"ies"} selected`:w=`${S} item${S===1?"":"s"} selected`;const O=h?Math.min(Rd,h.width):Rd,L=h?{left:h.left+(h.width-O)/2,width:O}:{left:"50%",transform:"translateX(-50%)",width:"100%",maxWidth:Rd};return l.jsxs(P,{sx:{position:"fixed",bottom:24,...L,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:[l.jsx(j,{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}),l.jsx(P,{sx:{flex:1,minWidth:8,flexShrink:1,"@media (max-width: 600px)":{display:"none"}}}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0,"@media (max-width: 600px)":{width:"100%",justifyContent:"center"}},children:[(d||u)&&l.jsxs(P,{component:"button",onClick:e,sx:{...qd,width:139},children:[l.jsx(P,{sx:Yd,children:l.jsx(OI,{sx:Kd})}),l.jsx(j,{component:"span",sx:Gd,children:p?"Promo":"Promo Print"})]}),l.jsxs(P,{component:"button",onClick:t,sx:{...qd,width:158},children:[l.jsx(P,{sx:Yd,children:l.jsx(NI,{sx:Kd})}),l.jsx(j,{component:"span",sx:Gd,children:p?"Catalog":"Create Catalog"})]}),l.jsxs(P,{component:"button",onClick:n,sx:{...qd,width:147},children:[l.jsx(P,{sx:Yd,children:l.jsx(MI,{sx:Kd})}),l.jsx(j,{component:"span",sx:Gd,children:p?"OSA":"OSA Request"})]})]})]})},DI=it(l.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function Nr(e){return l.jsx(DI,{...e})}const oy=it(l.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 Xd(e){return!e||typeof e!="string"?"":e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function iy({onClose:e,selectedProducts:t=[],selectedCategories:n=[],open:r,stores:i=[],onCreateSuccess:s}){const a=on(),{createdById:c,createdByName:d,createCatalogLoading:u,createCatalogError:p}=Je(k=>k.dashboard),h=Array.isArray(t)?t.length:0,y=Array.isArray(n)?n.length:0,b=h+y,[g,f]=z.useState("Christmas Super Sale 2025"),[m]=z.useState(""),[S,C]=z.useState(["all"]),[x,v]=z.useState(!1),w=z.useRef(null),[A,O]=z.useState(null),[L,M]=z.useState(280),_=z.useMemo(()=>Xd(g),[g]),I=z.useMemo(()=>_?`/${_}`:"",[_]);z.useEffect(()=>{r&&a(hf())},[r,a]),z.useEffect(()=>{p&&a(hf())},[g,_,p,a]);const T=z.useMemo(()=>i.filter(k=>k.id!=="all"),[i]),F=S.includes("all")||S.length===0,D=z.useMemo(()=>F?T.map(k=>k.storeCode).filter(Boolean):S.filter(k=>k!=="all").map(k=>T.find(V=>V.id===k)?.storeCode).filter(Boolean),[F,S,T]),U=k=>{C(V=>{const B=V.filter(q=>q!=="all");if(B.includes(k)){const q=B.filter(X=>X!==k);return q.length===0?["all"]:q}const W=[...B,k];return W.length===T.length?["all"]:W})},N=()=>{const k=g?.trim();if(!k)return;const V=(t||[]).map((W,q)=>({productId:W.catalogProductId||W.productId||W.id,sorting:q+1})).filter(W=>W.productId),B=(n||[]).map(W=>typeof W=="string"?W:W?.categoryName??W?.name).filter(Boolean);a(Ds({name:k,slug:_||Xd(k),description:m?.trim()||"",storeCode:D,createdById:c,createdByName:d||"Admin",products:V,categories:B})).unwrap().then(()=>{const W=_||Xd(k);typeof s=="function"&&s(W),e()}).catch(()=>{})},$=On().createCatalog;return l.jsxs(lo,{open:r,onClose:e,maxWidth:!1,PaperProps:{sx:$.dialog},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[l.jsx(co,{sx:{p:0},children:l.jsxs(P,{sx:$.header,children:[l.jsxs(j,{sx:$.headerTitle,children:["Create Catalog of ",b," ",y>0&&h===0?b===1?"Category":"Categories":"Items"]}),l.jsx(P,{component:"button",onClick:e,sx:$.clearIconCard,"aria-label":"Close",children:l.jsx(oy,{sx:{fontSize:16,color:"#454545"}})})]})}),l.jsxs(Oi,{sx:$.content,children:[l.jsxs(P,{sx:$.fieldBlock,children:[l.jsx(j,{sx:$.fieldLabel,children:"Catalog Name"}),l.jsx("input",{type:"text",value:g,onChange:k=>f(k.target.value),style:$.input})]}),l.jsxs(P,{sx:$.fieldBlock,children:[l.jsx(j,{sx:$.fieldLabel,children:"Catalog Link"}),l.jsxs("div",{style:{position:"relative",width:"100%"},children:[l.jsx("input",{type:"text",readOnly:!0,value:I,style:{...$.input,...$.inputReadOnly,paddingRight:36}}),I&&l.jsx(Ud,{color:"green",fontSize:"18px",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]})]}),l.jsxs(P,{sx:$.fieldBlock,children:[l.jsx(j,{sx:$.fieldLabel,children:"For These Stores"}),l.jsxs(P,{sx:{width:"100%"},children:[l.jsxs(P,{ref:w,sx:$.storeDropdown,onClick:()=>{const k=!x;v(k),k&&w.current?(O(w.current),M(w.current.offsetWidth??280)):k||O(null)},children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",mr:1},children:l.jsx(jd,{sx:{width:20,height:20}})}),l.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:F?"All Stores":`${S.length} store(s) selected`}),l.jsx("span",{style:{color:"#454545",fontWeight:400,fontSize:12,marginLeft:4},children:` out of ${T.length} stores`}),l.jsx(Nr,{sx:{color:"#454545",ml:"auto"}})]}),l.jsxs($i,{open:x,onClose:()=>{v(!1),O(null)},anchorEl:A,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{mt:1,minWidth:L,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:[l.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:F?700:400,color:F?"#222":"#444",background:F?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{C(["all"]),v(!1)},children:[l.jsx(bt,{size:"small",checked:F,sx:{p:.5,mr:1}}),"All Stores"]}),T.map(k=>{const V=S.includes(k.id);return l.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:()=>U(k.id),children:[l.jsx(bt,{size:"small",checked:V,sx:{p:.5,mr:1}}),k.name]},k.id)})]})]})]}),p&&l.jsx(j,{color:"error",fontSize:14,sx:{mb:2},children:p}),l.jsx(P,{sx:{display:"flex",justifyContent:"flex-end"},children:l.jsx(Xe,{variant:"contained",color:"primary",disabled:u||!g?.trim()||b===0,onClick:N,sx:$.createButton,children:u?"Creating...":"Create"})})]})]})}function sy({onClose:e,open:t,stores:n=[],selectedProducts:r=[],selectedCategories:i=[],onSuccess:s}){const a=on(),{createOsaRequestLoading:c,createOsaRequestError:d}=Je(w=>w.dashboard),[u,p]=z.useState(["all"]),[h,y]=z.useState(!1),b=z.useMemo(()=>n.filter(w=>w.id!=="all"&&w.storeCode!=="all"),[n]),g=u.includes("all")||u.length===0,f=z.useMemo(()=>g?b.map(w=>w.storeCode).filter(Boolean):u.filter(w=>w!=="all").map(w=>b.find(A=>A.id===w)?.storeCode).filter(Boolean),[g,u,b]),m=z.useMemo(()=>(r||[]).map(w=>w.catalogProductId||w.productId||w.id).filter(Boolean).map(String),[r]),S=z.useMemo(()=>(Array.isArray(i)?i:[]).filter(Boolean).map(String),[i]),C=f.length>0&&(m.length>0||S.length>0);z.useEffect(()=>{t&&a(x1())},[t,a]);const x=w=>{p(A=>{const O=A.filter(M=>M!=="all");if(O.includes(w)){const M=O.filter(_=>_!==w);return M.length===0?["all"]:M}const L=[...O,w];return L.length===b.length?["all"]:L})},v=()=>{C&&a($s({storeCodes:f,products:m,categories:S})).unwrap().then(()=>{typeof s=="function"&&s(),e()}).catch(()=>{})};return l.jsxs(lo,{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:[l.jsx(co,{children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsx(j,{variant:"h6",fontWeight:600,ml:-3,children:"New OSA Request"}),l.jsx(yt,{onClick:e,size:"small","aria-label":"Close",children:l.jsx(Jm,{})})]})}),l.jsx(j,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),l.jsxs(P,{sx:{position:"relative",mb:3},children:[l.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:[l.jsx(P,{sx:{display:"flex",alignItems:"center",mr:1},children:l.jsx(jd,{size:12,style:{color:"#555",marginRight:4}})}),l.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:g?"All Stores":`${u.length} store(s) selected`}),l.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${b.length} stores`}),l.jsx(Nr,{sx:{color:"#888",ml:"auto"}})]}),h&&l.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:[l.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:()=>{p(["all"]),y(!1)},children:[l.jsx(bt,{size:"small",checked:g,sx:{p:.5,mr:1}}),"All Stores"]}),b.map(w=>{const A=u.includes(w.id);return l.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:()=>x(w.id),children:[l.jsx(bt,{size:"small",checked:A,sx:{p:.5,mr:1}}),w.name]},w.id)})]})]}),d&&l.jsx(j,{color:"error",fontSize:14,sx:{mb:2},children:d}),l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:l.jsx(Xe,{variant:"contained",color:"primary",disabled:!C||c,onClick:v,sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:c?"Sending...":"Send Request"})})]})}const In=(e,t=0)=>{const n=Number(e);return Number.isFinite(n)?n:t},Nn=()=>{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}`}},Ki=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=In(r,0),a=In(i,0),c=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:c,saveAmount:d}},_I=(e,t,n={})=>{const{productName:r,mrp:i,discountPrice:s}=Ki(e),a=Math.max(0,In(i,0)-In(s,0)),c=n.validTo||Nn().validTo,d=n.ppd||Nn().ppd;return`
|
|
236
236
|
<div class="sticker design-1">
|
|
237
237
|
${t.discountPrice?`
|
|
238
238
|
<div class="our-price-header">SAVE</div>
|
|
239
|
-
<div class="big-price"><span class="rupee-symbol">₹</span><span class="price-number">${
|
|
239
|
+
<div class="big-price"><span class="rupee-symbol">₹</span><span class="price-number">${In(s,0).toFixed(0)}</span></div>
|
|
240
240
|
`:""}
|
|
241
241
|
${t.discountPrice||t.mrp?`
|
|
242
242
|
<div class="bottom-info">
|
|
243
243
|
${t.discountPrice?`<div class="save-amount">SAVE: <span class="rupee-symbol-small">₹</span>${a.toFixed(0)}</div>`:""}
|
|
244
|
-
${t.mrp?`<div class="mrp-amount">MRP: <span class="rupee-symbol-small">₹</span>${
|
|
244
|
+
${t.mrp?`<div class="mrp-amount">MRP: <span class="rupee-symbol-small">₹</span>${In(i,0).toFixed(0)}</div>`:""}
|
|
245
245
|
</div>
|
|
246
246
|
`:""}
|
|
247
247
|
${t.productName?`<div class="product-name">${r}</div>`:""}
|
|
248
248
|
<div class="valid-from">VALID TO: ${c}</div>
|
|
249
249
|
<div class="valid-to">PPD: ${d}</div>
|
|
250
250
|
</div>
|
|
251
|
-
`}
|
|
251
|
+
`},$I=(e,t,n={})=>{const{productName:r,mrp:i,discount:s}=Ki(e),a=n.validTo||Nn().validTo,c=n.ppd||Nn().ppd,d=s.toFixed(2);return`
|
|
252
252
|
<div class="sticker design-2">
|
|
253
253
|
${t.percentOff?`
|
|
254
254
|
<div class="main-offer-block">
|
|
@@ -257,23 +257,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
257
257
|
</div>
|
|
258
258
|
`:""}
|
|
259
259
|
${t.mrp?`
|
|
260
|
-
<div class="mrp-block">MRP:<span class="rupee-symbol-small">₹</span>${
|
|
260
|
+
<div class="mrp-block">MRP:<span class="rupee-symbol-small">₹</span>${In(i,0).toFixed(0)}</div>
|
|
261
261
|
`:""}
|
|
262
262
|
${t.productName?`<div class="product-name">${r}</div>`:""}
|
|
263
263
|
<div class="valid-from">(Valid till: ${a})</div>
|
|
264
264
|
<div class="valid-to">(PPD: ${c})</div>
|
|
265
265
|
</div>
|
|
266
|
-
`},
|
|
266
|
+
`},zI=(e,t,n={})=>{const{productName:r,discountPrice:i}=Ki(e),s=n.validTo||Nn().validTo,a=n.ppd||Nn().ppd;return`
|
|
267
267
|
<div class="sticker design-3">
|
|
268
268
|
${t.discountPrice?`
|
|
269
269
|
<div class="our-price-header">OUR PRICE</div>
|
|
270
|
-
<div class="big-price"><span class="rupee-symbol">₹</span><span class="price-number">${
|
|
270
|
+
<div class="big-price"><span class="rupee-symbol">₹</span><span class="price-number">${In(i,0).toFixed(0)}</span></div>
|
|
271
271
|
`:""}
|
|
272
272
|
${t.productName?`<div class="product-name">${r}</div>`:""}
|
|
273
273
|
<div class="valid-from">[ValidTo: ${s}]</div>
|
|
274
274
|
<div class="valid-to">[PPD: ${a}]</div>
|
|
275
275
|
</div>
|
|
276
|
-
`},
|
|
276
|
+
`},LI=(e,t,n={})=>{const{productCode:r,mrp:i,discountPrice:s,saveAmount:a}=Ki(e),c=n.validTo||Nn().validTo,d=n.ppd||Nn().ppd,u=Math.floor(s),h=Math.round((s-u)*100).toString().padStart(2,"0"),y=Math.floor(a),g=Math.round((a-y)*100).toString().padStart(2,"0"),f=Math.floor(i);return`
|
|
277
277
|
<div class="sticker design-4">
|
|
278
278
|
${t.discountPrice?`
|
|
279
279
|
<div class="our-price-header">OUR PRICE</div>
|
|
@@ -299,7 +299,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
299
299
|
<div class="valid-from">[VALIDITY: ${c}]</div>
|
|
300
300
|
<div class="valid-to">[PPID: ${d}]</div>
|
|
301
301
|
</div>
|
|
302
|
-
`},
|
|
302
|
+
`},BI=(e,t={})=>{const{productName:n,mrp:r,discountPrice:i}=Ki(e),s=In(i,0),a=r>s?Math.floor(r*1.17):Math.floor(s*1.17),c=r>s?Math.round((r-s)/r*100):6;return`
|
|
303
303
|
<div class="sticker design-5">
|
|
304
304
|
<div class="top-section">
|
|
305
305
|
<div class="left-column">
|
|
@@ -326,14 +326,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
326
326
|
<div class="horizontal-divider"></div>
|
|
327
327
|
<div class="middle-section">
|
|
328
328
|
${t.productName?`<div class="product-name">${n}</div>`:""}
|
|
329
|
-
${t.mrp?`<div class="mrp-text">MRP <span class="rupee-symbol-small">₹</span>${
|
|
329
|
+
${t.mrp?`<div class="mrp-text">MRP <span class="rupee-symbol-small">₹</span>${In(r,0).toFixed(0)}</div>`:""}
|
|
330
330
|
</div>
|
|
331
331
|
<div class="horizontal-divider"></div>
|
|
332
332
|
<div class="bottom-section">
|
|
333
333
|
<div class="savings-message">SAVE UPTO ${c}% EXTRA MONTHLY WITH MY SPENCERS REWARDS</div>
|
|
334
334
|
</div>
|
|
335
335
|
</div>
|
|
336
|
-
`},
|
|
336
|
+
`},ay=e=>{const t={design1:_I,design2:$I,design3:zI,design4:LI,design5:BI};return t[e]||t.design1},jI=({selectedProducts:e,selectedDesign:t,itemsToShow:n})=>{const r=ay(t),i=Nn();return`
|
|
337
337
|
<!DOCTYPE html>
|
|
338
338
|
<html>
|
|
339
339
|
<head>
|
|
@@ -968,7 +968,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
968
968
|
<\/script>
|
|
969
969
|
</body>
|
|
970
970
|
</html>
|
|
971
|
-
`},
|
|
971
|
+
`},WI=({selectedProducts:e,selectedDesign:t,itemsToShow:n})=>{const a=ay(t),c=Nn(),d=[];for(let p=0;p<e.length;p+=8)d.push(e.slice(p,p+8));return`
|
|
972
972
|
<!DOCTYPE html>
|
|
973
973
|
<html>
|
|
974
974
|
<head>
|
|
@@ -1558,8 +1558,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
1558
1558
|
</style>
|
|
1559
1559
|
</head>
|
|
1560
1560
|
<body>
|
|
1561
|
-
${d.map((p,h)=>{const y=p.map(f=>a(f,n,c)).join(""),
|
|
1562
|
-
<div class="page-container" ${
|
|
1561
|
+
${d.map((p,h)=>{const y=p.map(f=>a(f,n,c)).join(""),b=h===d.length-1,g=Array(8-p.length).fill('<div class="sticker empty"></div>').join("");return`
|
|
1562
|
+
<div class="page-container" ${b?"":'style="page-break-after: always;"'}>
|
|
1563
1563
|
<div class="print-container">
|
|
1564
1564
|
${y}${g}
|
|
1565
1565
|
</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
|
-
`},TI=({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,c=[];e.forEach(h=>{for(let y=0;y<a;y++)c.push(h)});const d={A4:CI,A7:EI},p=(d[n]||d.A4)({selectedProducts:c,selectedDesign:t,itemsToShow:r});try{s.document.open(),s.document.write(p),s.document.close()}catch(h){console.error("Error writing to print window:",h),alert("Error generating print preview. Please check console for details.")}},sl=l.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:"#FFFFFF"}}),al=l.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2563EB",background:"#FFFFFF",position:"relative"},children:l.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:l.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),AI=()=>{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}`}},iy=({open:e,onClose:t,selectedProducts:n=[]})=>{const r=fn(),i=j.useMemo(()=>AI(),[]),[s,a]=j.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[c,d]=j.useState("design1"),[u,p]=j.useState(""),[h,y]=j.useState(1),[x,g]=j.useState(!1),[f,m]=j.useState(!1),S=v=>a(w=>({...w,[v]:!w[v]})),C=()=>{if(!n||n.length===0){m(!0);return}if(!u){g(!0);return}g(!1);const v=h>0?h:1;TI({selectedProducts:n,selectedDesign:c,sheetSize:u,itemsToShow:s,copyPerItem:v}),t()};j.useEffect(()=>{(e&&n&&n.length>0||!e)&&queueMicrotask(()=>m(!1))},[e,n]);const b=r.promoPrintModal;return l.jsxs(co,{open:e,onClose:t,maxWidth:!1,PaperProps:{sx:b.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[l.jsx(po,{sx:{p:0},children:l.jsxs(P,{sx:b.header,children:[l.jsx(B,{sx:b.headerTitle,children:"Promo Print"}),l.jsx(P,{component:"button",onClick:t,sx:b.crossIconCard,"aria-label":"Close",children:l.jsx(ty,{sx:{fontSize:16,color:"#454545"}})})]})}),l.jsx(Ii,{sx:b.content,children:l.jsxs(P,{sx:b.middleCard,children:[l.jsxs(P,{sx:b.itemsToShowSection,children:[l.jsx(B,{sx:b.sectionTitle,children:"Items to show"}),l.jsxs(P,{sx:b.checkboxRow,children:[l.jsx(kn,{control:l.jsx(yt,{checked:s.productName,onChange:()=>S("productName"),size:"small",sx:b.checkboxSx,icon:sl,checkedIcon:al}),label:"Product Name",sx:b.checkboxLabel}),l.jsx(kn,{control:l.jsx(yt,{checked:s.percentOff,onChange:()=>S("percentOff"),size:"small",sx:b.checkboxSx,icon:sl,checkedIcon:al}),label:"Percent OFF",sx:b.checkboxLabel}),l.jsx(kn,{control:l.jsx(yt,{checked:s.mrp,onChange:()=>S("mrp"),size:"small",sx:b.checkboxSx,icon:sl,checkedIcon:al}),label:"MRP",sx:b.checkboxLabel}),l.jsx(kn,{control:l.jsx(yt,{checked:s.discountPrice,onChange:()=>S("discountPrice"),size:"small",sx:b.checkboxSx,icon:sl,checkedIcon:al}),label:"Discount Price",sx:b.checkboxLabel})]})]}),l.jsxs(P,{sx:b.designSection,children:[l.jsx(B,{sx:b.sectionTitle,children:"Promo Design"}),l.jsxs(P,{sx:b.designContainer,children:[l.jsxs(P,{onClick:()=>d("design1"),sx:{...b.designCard.base,...c==="design1"?b.designCard.selected:b.designCard.unselected},children:[l.jsx(B,{sx:{...b.design1.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"SAVE"}),l.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:l.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[l.jsx(B,{component:"span",sx:{...b.design1.rupeeSymbol},children:"₹"}),l.jsx(B,{component:"span",sx:{...b.design1.bigPrice},children:"1387"})]})}),l.jsxs(P,{sx:{...b.design1.bottomInfo,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[l.jsxs(B,{sx:{...b.design1.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["OUR PRICE: ",l.jsx(B,{component:"span",sx:b.design1.rupeeSymbolSmall,children:"₹"}),"73"]}),l.jsxs(B,{sx:{...b.design1.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP: ",l.jsx(B,{component:"span",sx:b.design1.rupeeSymbolSmall,children:"₹"}),"1460"]})]}),l.jsx(B,{sx:{...b.design1.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"}),l.jsxs(P,{sx:b.design1.dateRow,children:[l.jsxs(B,{sx:b.design1.validFromText,children:["VALID TO: ",i.validTo]}),l.jsxs(B,{sx:b.design1.validToText,children:["PPD: ",i.ppd]})]})]}),l.jsxs(P,{onClick:()=>d("design2"),sx:{...b.designCard.base,...c==="design2"?b.designCard.selected:b.designCard.unselected},children:[l.jsxs(P,{sx:b.design2.mainOfferBlock,children:[l.jsx(B,{sx:{...b.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 1PC @5.00% Off"}),l.jsx(B,{sx:{...b.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 2PC @5.00% Off"})]}),l.jsxs(B,{sx:{...b.design2.mrpBlock,visibility:s.mrp?"visible":"hidden"},children:["MRP:",l.jsx(B,{component:"span",sx:b.design2.rupeeSymbolSmall,children:"₹"}),"1460"]}),l.jsx(B,{sx:{...b.design2.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),l.jsxs(P,{sx:b.design2.dateRow,children:[l.jsxs(B,{sx:b.design2.validFromText,children:["(Valid till: ",i.validTo,")"]}),l.jsxs(B,{sx:b.design2.validToText,children:["(PPD: ",i.ppd,")"]})]})]}),l.jsxs(P,{onClick:()=>d("design3"),sx:{...b.designCard.base,...c==="design3"?b.designCard.selected:b.designCard.unselected},children:[l.jsx(B,{sx:{...b.design3.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),l.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:l.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[l.jsx(B,{component:"span",sx:{...b.design3.rupeeSymbol},children:"₹"}),l.jsx(B,{component:"span",sx:{...b.design3.bigPrice},children:"29"})]})}),l.jsx(B,{sx:{...b.design3.productName,visibility:s.productName?"visible":"hidden"},children:"POTATO BIG KG"}),l.jsxs(P,{sx:b.design3.dateRow,children:[l.jsxs(B,{sx:b.design3.validFromText,children:["[ValidTo: ",i.validTo,"]"]}),l.jsxs(B,{sx:b.design3.validToText,children:["[PPD: ",i.ppd,"]"]})]})]}),l.jsxs(P,{onClick:()=>d("design4"),sx:{...b.designCard.base,...c==="design4"?b.designCard.selected:b.designCard.unselected},children:[l.jsx(B,{sx:{...b.design4.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),l.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:l.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[l.jsx(B,{component:"span",sx:{...b.design4.rupeeSymbol},children:"₹"}),l.jsx(B,{component:"span",sx:{...b.design4.priceWhole},children:"899"}),l.jsx(B,{component:"span",sx:{...b.design4.priceDecimal},children:".70"})]})}),l.jsxs(P,{sx:{...b.design4.saveMrpRow,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[l.jsxs(B,{sx:{...b.design4.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["SAVE: ",l.jsx(B,{component:"span",sx:b.design4.rupeeSymbolSmall,children:"₹"}),"2099.30"]}),l.jsxs(B,{sx:{...b.design4.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP:",l.jsx(B,{component:"span",sx:b.design4.rupeeSymbolSmall,children:"₹"}),"2999"]})]}),l.jsx(B,{sx:{...b.design4.productCode,visibility:s.productName?"visible":"hidden"},children:"MCS-SWE-CP-SO-RG-XXL-1402A5-PuLa"}),l.jsxs(P,{sx:b.design4.dateRow,children:[l.jsxs(B,{sx:b.design4.validFromText,children:["[VALIDITY: ",i.validTo,"]"]}),l.jsxs(B,{sx:b.design4.validToText,children:["[PPID: ",i.ppd,"]"]})]})]}),l.jsxs(P,{onClick:()=>d("design5"),sx:{...b.designCard.base,...c==="design5"?b.designCard.selected:b.designCard.unselected},children:[l.jsxs(P,{sx:b.design5.topSection,children:[l.jsxs(P,{sx:b.design5.leftColumn,children:[l.jsxs(P,{sx:b.design5.rewardsLogo,children:[l.jsxs(P,{sx:b.design5.logoLine1,children:[l.jsx(B,{sx:b.design5.logoMy,children:"My"}),l.jsx(B,{sx:b.design5.logoSpencer,children:"spencers"})]}),l.jsxs(B,{sx:b.design5.logoRewards,children:["Rewa",l.jsx(B,{component:"span",sx:b.design5.rupeeSymbol1,children:"₹"}),"ds"]})]}),l.jsxs(B,{sx:{...b.design5.memberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["MEMBER",l.jsx("br",{}),"PRICE"]}),l.jsxs(B,{sx:{...b.design5.memberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[l.jsx(B,{component:"span",sx:b.design5.rupeeSymbol,children:"₹"}),"99"]})]}),l.jsx(P,{sx:b.design5.verticalDivider}),l.jsxs(P,{sx:b.design5.rightColumn,children:[l.jsxs(B,{sx:{...b.design5.nonMemberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["NON",l.jsx("br",{}),"MEMBER",l.jsx("br",{}),"PRICE"]}),l.jsxs(B,{sx:{...b.design5.nonMemberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[l.jsx(B,{component:"span",sx:b.design5.rupeeSymbol,children:"₹"}),"116"]})]})]}),l.jsxs(P,{sx:b.design5.middleSection,children:[l.jsx(B,{sx:{...b.design5.productName,visibility:s.productName?"visible":"hidden"},children:"MAGGI 2-MINUTE MASALA NOODLES 560G"}),l.jsxs(B,{sx:{...b.design5.mrpText,visibility:s.mrp?"visible":"hidden"},children:["MRP ",l.jsx(B,{component:"span",sx:b.design5.rupeeSymbolSmall,children:"₹"}),"120"]})]}),l.jsx(P,{sx:b.design5.horizontalDivider}),l.jsx(P,{sx:b.design5.bottomSection,children:l.jsx(B,{sx:b.design5.savingsMessage,children:"SAVE UPTO 6% EXTRA MONTHLY WITH MY SPENCERS REWARDS"})})]})]})]}),l.jsxs(P,{sx:b.sheetSizeSection,children:[l.jsx(B,{sx:b.sheetSizeHeader,children:"Sheet Size"}),l.jsxs(P,{sx:b.sheetSizeRow,children:[l.jsx(P,{sx:b.sheetSizeGroup,children:["A4","A7"].map(v=>l.jsx(P,{onClick:()=>{p(v),g(!1)},sx:{...b.sheetSizeBtn,...u===v?b.sheetSizeBtnSelected:{}},children:l.jsx(B,{sx:u===v?{...b.sheetSizeBtnText,...b.sheetSizeBtnTextSelected}:b.sheetSizeBtnText,children:v})},v))}),l.jsxs(P,{sx:b.copyPerItemRow,children:[l.jsx(B,{sx:b.copyPerItemLabel,children:"Enter Copy per item:"}),l.jsx(Hi,{type:"number",value:h,onChange:v=>{const w=parseInt(v.target.value,10);!isNaN(w)&&w>0?y(w):v.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"})]})]})]})]})}),l.jsxs(yd,{sx:{...b.actions,flexDirection:"column",alignItems:"flex-start"},children:[x&&l.jsx(B,{variant:"body2",sx:{color:"red",mb:.5},children:"Please select a sheet size."}),f&&l.jsx(B,{variant:"body2",sx:{color:"red",mb:.5},children:"No products selected. Please select products first."}),l.jsx(P,{sx:{...b.printButtonWrapper,alignSelf:"stretch",display:"flex",justifyContent:"flex-end"},children:l.jsx(Ke,{type:"button",onClick:C,variant:"contained",sx:b.printButton,children:"Print"})})]})]})},kI=ot([l.jsx("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),l.jsx("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");function Jd(e){return l.jsx(kI,{...e})}const PI=ot([l.jsx("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),l.jsx("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");function Qd(e){return l.jsx(PI,{...e})}const OI=()=>{const e=on(),t=Ot(),n=Pt(),r=fn(),i=n.state?.catalogCreated&&n.state?.catalogSlug?{catalogSlug:n.state.catalogSlug}:null,s=()=>{t(n.pathname,{replace:!0,state:{}})},a=r.categoryDetail,[c,d]=j.useState({category:"all",status:"all",search:"",store:[]}),{integrationData:u,companyId:p,loading:h,categoriesLoading:y,categoriesFetchSettled:x,error:g}=Xe(G=>G.dashboard),f=j.useMemo(()=>u&&typeof u=="object"&&Object.keys(u).length>0?{matched:!0,error:"",apiResponse:u,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[u]),m=Xe(G=>G.dashboard),{categoryList:S=[],stores:C=[],categoryPagination:b={}}=m||{},v=S,{currentPage:w=1,limit:A=10,totalCount:I=0,totalPages:z=1,hasNextPage:M=!1}=b,{sharedCatalogues:L=[],sharedCataloguesTotal:O=0,lastStableActiveCatalogsCount:T=null}=Xe(G=>G.productSettings??{}),N=j.useMemo(()=>Array.isArray(L)?L.filter(G=>G.status===!0).length:0,[L]),U=O>0&&L.length>=O?N:T??N,F=Array.isArray(S)&&S.length>0,_=()=>{f.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},k=C.length>0?C:[{id:"all",name:"All Stores",storeCode:"all"}],V=G=>{d(G)},$=j.useCallback((G={})=>{const he=Array.isArray(c.store)?c.store:[],xe={...G};if(he.length>0&&!he.includes("all")){const Q=he.map(Y=>C.find(de=>de.id===Y)?.storeCode).filter(Boolean);Q.length>0&&(xe.storeCode=Q[0])}return c.search!=null&&String(c.search).trim()!==""&&(xe.search=String(c.search).trim()),c.minOsa!=null&&c.minOsa!==""&&(xe.minOsa=c.minOsa),c.maxOsa!=null&&c.maxOsa!==""&&(xe.maxOsa=c.maxOsa),c.order!=null&&c.order!==""&&(xe.order=c.order),xe},[c.store,c.search,c.minOsa,c.maxOsa,c.order,C]),W=j.useRef(null);j.useEffect(()=>{if(!p)return;const G=$({page:w,limit:A}),he=JSON.stringify(G);W.current!==he&&(W.current=he,e(Gn(G)))},[p,w,A,$,e]);const q=G=>{const he=$({page:G,limit:A});e(Gn(he))},J=G=>{const he=$({page:1,limit:G});e(Gn(he))},[X,ee]=j.useState(!1);j.useEffect(()=>{!p&&!X?e(Uo()).finally(()=>{ee(!0)}):p&&queueMicrotask(()=>ee(!0))},[e,p,X]);const te=j.useRef(null),ie=j.useRef(n.pathname),ce=j.useRef(null);j.useEffect(()=>{p&&p!==te.current&&(te.current=p,e($t(p)),e(Gn({page:1,limit:10})),e(Ho()),e(Vo()),e(qt({page:1})))},[e,p]),j.useEffect(()=>{const G=ie.current;ie.current=n.pathname;const he=p&&n.pathname==="/"&&G!=="/",xe=p&&n.pathname==="/"&&!!n.state?.catalogCreated;(he||xe)&&(e(qt({page:1})),e(Gn($({page:w,limit:A}))),e(Vo()))},[n.pathname,n.state?.catalogCreated,p,e,$,w,A]),j.useEffect(()=>{if(!p||O<=0)return;(Array.isArray(L)?L.length:0)<O&&e(qt({page:1,limit:O}))},[p,O,L?.length,e,L]);const[ae,oe]=j.useState(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]),[pe,H]=j.useState(Array.isArray(n.state?.selectedProducts)?n.state.selectedProducts:[]),ge=G=>{t(`/category?categoryName=${encodeURIComponent(G.name||G.categoryName)}`,{state:{filters:c,selectedCategories:ae,selectedProducts:pe}})},[ue,me]=j.useState(!1),[ze,we]=j.useState(!1),[ye,_e]=j.useState(!1),[Le,Ne]=j.useState([]),[,fe]=j.useState(!1),je=j.useCallback((G,he={})=>{const xe=Array.isArray(c.store)?c.store:[],Q={page:1,limit:5e3,...he};if(G&&String(G).trim()!==""&&(Q.categoryName=String(G).trim()),xe.length>0&&!xe.includes("all")){const Y=xe.map(ve=>C.find(Fe=>Fe.id===ve)?.storeCode).filter(Boolean);Y.length>0&&(Q.storeCode=Y.join(","))}return c.search!=null&&String(c.search).trim()!==""&&(Q.search=String(c.search).trim()),Q},[c.store,c.search,C]),Oe=j.useCallback(async()=>{const G=(Array.isArray(ae)?ae:[]).map(Y=>(Y?.categoryName??Y?.name??"").toString().trim()).filter(Boolean),he=Array.isArray(pe)?pe:[],xe={};he.forEach(Y=>{const ve=(Y?.categoryName??Y?.category??"").toString().trim();ve&&(xe[ve]||(xe[ve]=[]),xe[ve].push(Y))});const Q=new Set(Object.keys(xe));if(G.length===0&&he.length===0){Ne([]),_e(!0);return}fe(!0);try{const Y=[];for(const Ie of G){const Ge=xe[Ie];if(Ge&&Ge.length>0)Y.push(Ge);else{const kt=je(Ie),le=await e(Ms(kt)).unwrap().catch(()=>({})),ke=Array.isArray(le?.data)?le.data:Array.isArray(le?.products)?le.products:Array.isArray(le)?le:[];Y.push(ke)}}G.forEach(Ie=>Q.delete(Ie)),Q.forEach(Ie=>{xe[Ie]?.length&&Y.push(xe[Ie])});const ve=Y.flat().filter(Boolean),de=new Set,Fe=ve.map(Ie=>({...Ie,catalogProductId:Ie?.productId??Ie?.catalogProductId??Ie?.id,id:Ie?.id||Ie?.sku||Ie?.productName})).filter(Ie=>{const Ge=(Ie?.productId||Ie?.id||Ie?.sku||Ie?.productName||"").toString();return!Ge||de.has(Ge)?!1:(de.add(Ge),!0)});Ne(Fe),_e(!0)}catch{Ne([]),_e(!0)}finally{fe(!1)}},[e,pe,ae,je]),se=j.useCallback(G=>{const he=G?.categoryName??G?.name??"",xe=he,Q=Number(G?.productCount??0);oe(Y=>Y.some(de=>(de?.categoryName??de?.name)===he)?(H(de=>{if(!Array.isArray(de)||!xe)return de||[];const Fe=de.filter(Ge=>(Ge?.categoryName??Ge?.category??"").toString().trim()===xe);return Q>0&&Fe.length>=Q?de.filter(Ge=>(Ge?.categoryName??Ge?.category??"").toString().trim()!==xe):de}),Y.filter(de=>(de?.categoryName??de?.name)!==he)):[...Y,G])},[]),re=X&&g&&!p;return l.jsxs(l.Fragment,{children:[i&&l.jsx(oI,{catalogSlug:i.catalogSlug,onClose:s}),!re&&l.jsx(Ym,{filters:c,onFilterChange:V,styles:a.topBar,stores:k,tenantStatus:f,hasProducts:F}),l.jsx(P,{sx:re?{marginTop:0}:F?a.contentWrapper??{marginTop:0,display:"flex",flexDirection:"column",alignItems:"center"}:{marginTop:0},children:re?l.jsx(Vd,{handleStartSyncing:_,loading:!1,sessionExpired:!0}):!X&&!p?l.jsx(yo,{text:"Fetching",fullScreen:!0}):y?l.jsx(yo,{text:"Fetching Categories",fullScreen:!0}):F?l.jsx(P,{sx:a.root,children:l.jsxs(or,{ref:ce,maxWidth:"lg",sx:{px:{xs:1,sm:2,md:4}},children:[l.jsx(Jm,{productState:m,categoryCount:S.length,activeCatalogsCount:U,onManageClick:()=>t("/catalogs/manage-shared")}),S.length>0?l.jsxs(l.Fragment,{children:[l.jsx(dI,{categoryData:v,styles:a,onView:ge,selectedCategories:ae,onToggleCategory:se}),l.jsx(ey,{containerRef:ce,selectedCategories:ae,selectedProducts:pe,onPromoPrint:Oe,onCreateCatalog:()=>me(!0),onOsaRequest:()=>we(!0)}),l.jsx(iy,{open:ye,onClose:()=>{_e(!1),Ne([])},selectedProducts:Le},ye?"open":"closed"),l.jsx(ny,{open:ue,onClose:()=>me(!1),stores:k,selectedProducts:pe,selectedCategories:ae,onCreateSuccess:G=>{oe([]),H([]),me(!1),G&&t("/",{state:{catalogCreated:!0,catalogSlug:G}})}}),l.jsx(ry,{open:ze,onClose:()=>we(!1),stores:k,selectedProducts:pe,selectedCategories:ae.map(G=>G?.categoryName??G?.name).filter(Boolean),onSuccess:()=>{oe([]),H([])}}),I>0&&(()=>{const G=a?.categoryTablePagination??{};return l.jsxs(P,{sx:{...G.wrapper||{},width:"100%",marginLeft:"auto",marginRight:0},children:[l.jsxs(P,{sx:G.resultsPerPageBox,children:[l.jsx(B,{component:"span",sx:G.resultsPerPageText,children:"Results per page"}),l.jsx(Pn,{value:A,onChange:he=>J(Number(he.target.value)),IconComponent:Ir,variant:"standard",disableUnderline:!0,sx:G.select,children:[5,10,20,50].map(he=>l.jsx(Be,{value:he,children:he},he))})]}),l.jsxs(P,{sx:G.navBox,children:[l.jsx(mt,{size:"small",disabled:w<=1,onClick:()=>q(1),sx:G.iconButton,title:"First page",children:l.jsx(Jd,{sx:{width:16,height:16,opacity:1}})}),l.jsx(mt,{size:"small",disabled:w<=1,onClick:()=>q(w-1),sx:G.iconButton,title:"Previous page",children:l.jsx(Ri,{sx:{width:16,height:16,opacity:1}})}),l.jsx(B,{component:"span",sx:G.pageText,children:I===0?"0 of 0":`${(w-1)*A+1}-${Math.min(w*A,I)} of ${I}`}),l.jsx(mt,{size:"small",disabled:!M||w>=z,onClick:()=>q(w+1),sx:G.iconButton,title:"Next page",children:l.jsx(At,{sx:{width:16,height:16,opacity:1}})}),l.jsx(mt,{size:"small",disabled:!M||w>=z,onClick:()=>q(z),sx:G.iconButton,title:"Last page",children:l.jsx(Qd,{sx:{width:16,height:16,opacity:1}})})]})]})})()]}):l.jsxs(P,{sx:{minHeight:280,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:"#f5f7fa",borderRadius:2,p:3},children:[l.jsx(B,{sx:{fontSize:18,fontWeight:600,color:"#454545",mb:1},children:"No Category"}),l.jsx(B,{sx:{fontSize:14,color:"#808080"},children:c.search&&String(c.search).trim()?"No category found for your search.":"No category available."})]})]})}):l.jsx(Vd,{handleStartSyncing:_,loading:h||y||!x,sessionExpired:!1,hasIntegration:f.matched,showFetchingCategoriesLabel:!0,isHomeCategorySearch:!!(c.search&&String(c.search).trim()),isHomeCategorySearchEmpty:!!(c.search&&String(c.search).trim())&&x&&!y&&!h})})]})};function Nn({icon:e,title:t,subtitle:n,subtitleValue:r,onClick:i,selected:s,highlightStyle:a={},action:c,disabled:d=!1,customStyle:u={},titleColorWhenDisabled:p,titleColor:h,subtitleColor:y}){const x={width:"100%",maxWidth:600,height:58,boxSizing:"border-box",background:"#FFFFFF",borderRadius:2,boxShadow:"none",border:"1px solid #F1F1F1",display:"flex",alignItems:"center",gap:1.5,px:2,py:1.5,mb:0,cursor:i&&!d?"pointer":"default",opacity:d?.5:1,...s?a:{}},g=d?p||"#999999":h||"#000000",f=d?"#bbbbbb":y||"#808080",m={card:{...x,...u},cardInner:{display:"flex",alignItems:"center",flex:1,minWidth:0},icon:{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,mr:2},title:{fontWeight:700,fontSize:12,color:g,lineHeight:"16px"},subtitle:{color:f,fontSize:12,fontWeight:400,mt:.5,lineHeight:"16px"}};return l.jsxs(P,{onClick:d?void 0:i,sx:{...m.card,...u||{}},children:[e&&l.jsx(P,{sx:m.icon,children:e}),l.jsxs(P,{sx:m.cardInner,children:[l.jsxs(P,{children:[l.jsx(B,{sx:m.title,children:t}),n&&l.jsx(B,{sx:m.subtitle,children:r?`${r} ${n}`:n})]}),c&&l.jsx(P,{sx:{ml:"auto",display:"flex",alignItems:"center",justifyContent:"center"},children:c})]})]})}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()),sy=e=>{const t=NI(e);return t.charAt(0).toUpperCase()+t.slice(1)},ay=(...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=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...c},d)=>j.createElement("svg",{ref:d,...MI,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ay("lucide",i),...!s&&!FI(c)&&{"aria-hidden":"true"},...c},[...a.map(([u,p])=>j.createElement(u,p)),...Array.isArray(s)?s:[s]]));const Nr=(e,t)=>{const n=j.forwardRef(({className:r,...i},s)=>j.createElement(DI,{ref:s,iconNode:t,className:ay(`lucide-${II(sy(e))}`,`lucide-${e}`,r),...i}));return n.displayName=sy(e),n};const _I=Nr("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 $I=Nr("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const ly=Nr("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const zI=Nr("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const LI=Nr("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 BI=Nr("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=Nr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Zd({size:e=15,color:t="#454545",...n}){return l.jsx(BI,{size:e,color:t,...n})}const WI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAASpJREFUeAGVUT1OhGAQ5b/2BPxewhISIHSyJ/AKlnbunsBsZenuCdQOgWQp7VY7C0i+0u2w00DAN2ZNYMOXyCSTGZh5897MJwgcC4Jg7/u+y6tLvELf92bXdeYsIDGJonimKMrFLCBAlwivYI1d1zX/BQzD8AYhlmV5AalrVVV3U2B5KM9xnHsCwb00Td8Nw3iRJOkcQ65R+9R1ncG+flXR9egQtBOcodFLkoQJ452vULs9rsHQv5Ityzrg4w1+wH+XilVVPQ+VINxh4AcAa+RPTdM8isPJURTRE+zQwLIs87BvjPyBGPI8X44OeLo0gdu23YNhQ1eFb09Bo+P8WVmWtW3b30iXkF+DeSFM2OQ7gnFDEbK3AscmgUVR1AgMQDYLeLSVpmkFr/gDCe+DRKwM0doAAAAASUVORK5CYII=",VI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAIpJREFUeAFVTsENwyAMxCkPnowQNmgnCB8Qv46QrtNfV+gG/YPUjtABeGSEDIAgPimJEkvnO9ln+YRYyzn38N5/xKG6gx5aa4O1Vm8DwgXzyLgyJoZm07uU8upYjETUY8H8Y4a+K6U04TyE0Ndav2zE4hZj/GN+Qcs5z8YYGFVK6bn9lLuQEklPaRdNCCms4XdYvwAAAABJRU5ErkJggg==";function UI(e){const{sx:t={},...n}=e;return l.jsxs(P,{sx:{width:20,height:20,opacity:1,position:"relative",flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",...t},...n,children:[l.jsx(P,{component:"img",src:WI,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"}}),l.jsx(P,{component:"img",src:VI,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 cy({size:e=15,color:t="#454545",...n}){return l.jsx(_I,{size:e,color:t,...n})}function HI({size:e=15,color:t="#454545",...n}){return l.jsx(zI,{size:e,color:t,...n})}function RI({size:e=15,color:t="#454545",...n}){return l.jsx(LI,{size:e,color:t,...n})}function qI({airaAiEnabled:e,setAiraAiEnabled:t,selectedCard:n,setSelectedCard:r,syncStep:i=0,syncMethod:s="",onSetupSync:a=()=>{},onSyncNow:c=()=>{},integrationData:d={},...u}){const p={bgcolor:"#F3F8FF",border:"1px solid #2D64B8"},h=Ot(),y=d?.configs?.sync_frequency||"Daily",x=d?.configs?.sync_time||"10:00 AM",g=d?.type||s||"FTP",f={width:600,maxWidth:"100%",minHeight:468,mx:"auto",mt:4,boxSizing:"border-box",display:"flex",flexDirection:"column",gap:3},m=()=>l.jsxs(P,{sx:{width:"100%",minHeight:156,display:"flex",flexDirection:"column",gap:1.5},children:[l.jsx(P,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",width:67,height:20},children:[l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"General"}),l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]})}),l.jsxs(P,{sx:{width:"100%",minHeight:124,display:"flex",flexDirection:"column",gap:"4px"},children:[l.jsx(Nn,{icon:l.jsx(Zd,{size:15,color:"#454545"}),title:"Manage Shared Catalogs",onClick:()=>h("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:p,action:l.jsx(At,{sx:{width:16,height:16,color:"#454545"}})}),l.jsx(Nn,{icon:l.jsx(UI,{}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:p,action:l.jsx(P,{sx:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(_m,{checked:e,onChange:v=>t&&t(v.target.checked),size:"small"})})})]})]}),S=(v,w)=>l.jsxs(P,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",width:48,height:20},children:[l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"Sync"}),l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]}),l.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:[l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(Or,{sx:{width:14.66,height:12,color:"#2D64B8"}})}),l.jsx(B,{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",I=!v&&i===0;return l.jsxs(P,{sx:{width:"100%",minHeight:288,display:"flex",flexDirection:"column",gap:"4px"},children:[S(I,c),!v&&i===0&&l.jsx(Nn,{icon:l.jsx(Or,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Setup Sync",subtitle:"Sync products",onClick:a,highlightStyle:p,action:l.jsx(At,{sx:{width:16,height:16,color:"#454545"}})}),!v&&i===1&&l.jsxs(l.Fragment,{children:[l.jsx(Nn,{icon:l.jsx(Or,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:g,highlightStyle:p,action:l.jsx(At,{sx:{width:16,height:16,color:"#454545"}})}),l.jsx(Nn,{icon:l.jsx(Zd,{size:15,color:"#454545"}),title:`Setup ${g} Details`,subtitle:"Start setup",onClick:()=>{h("/products/settings/ftp-sync",{state:{fromSyncStep:i}})},highlightStyle:p,action:l.jsx(At,{sx:{width:16,height:16,color:"#454545"}})})]}),i===3&&l.jsxs(l.Fragment,{children:[l.jsx(Nn,{icon:l.jsx(Or,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:s||"FTP",highlightStyle:p,disabled:!0,titleColorWhenDisabled:"#454545",action:l.jsx(At,{sx:{width:16,height:16,color:"#454545"}})}),l.jsx(Nn,{icon:l.jsx(Zd,{size:15,color:"#454545"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:p,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:i}}),action:l.jsx(At,{sx:{width:16,height:16,color:"#454545"}})}),l.jsxs(P,{sx:{width:"100%",display:"flex",flexWrap:"nowrap",justifyContent:"space-between"},children:[l.jsx(P,{sx:{width:296},children:l.jsx(Nn,{icon:l.jsx(cy,{size:15,color:"#454545"}),title:"Sync Frequency",subtitle:w,highlightStyle:p,customStyle:{mb:0},onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:d}}),action:l.jsx(At,{sx:{width:16,height:16,color:"#454545"}})})}),l.jsx(P,{sx:{width:296},children:l.jsx(Nn,{icon:l.jsx(HI,{size:15,color:"#454545"}),title:"Sync Time",subtitle:A,highlightStyle:p,customStyle:{mb:0},onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:d}}),action:l.jsx(At,{sx:{width:16,height:16,color:"#454545"}})})})]}),l.jsx(Nn,{icon:l.jsx(RI,{size:15,color:"#454545"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:p,action:l.jsx(At,{sx:{width:16,height:16,color:"#454545"}})})]})]})},b=i===3&&d&&Object.keys(d||{}).length>0;return l.jsxs(P,{sx:f,children:[m(),C(b)]})}const sr=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:n})=>{const r=(i=12)=>!n||!Array.isArray(n)||n.length===0?null:l.jsx(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:n.map((s,a)=>l.jsxs(j.Fragment,{children:[a>0&&l.jsx(ly,{size:i,color:"#808080",style:{margin:"0 4px",flexShrink:0}}),l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontWeight:a===n.length-1?700:400,fontSize:a===n.length-1?"16px":"12px",lineHeight:a===n.length-1?"20px":"16px",letterSpacing:0,color:a===n.length-1?"#000000":"#808080",verticalAlign:"middle"},children:s.label})]},s.label))});return l.jsx(P,{sx:{position:"fixed",top:0,left:{xs:0,md:260},right:0,width:{xs:"100%",md:"auto"},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:l.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"},children:[l.jsxs(P,{sx:{flex:1,minWidth:0,height:32,gap:"16px",opacity:1,display:"flex",alignItems:"center",flexShrink:0},children:[l.jsxs(P,{onClick:t,sx:{width:48,height:16,gap:"4px",opacity:1,display:"flex",alignItems:"center",cursor:"pointer",flexShrink:0,background:"none",border:"none",padding:0,"&:hover":{opacity:.85}},children:[l.jsx(Ri,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),l.jsx(B,{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"})]}),l.jsx(en,{orientation:"vertical",flexItem:!0,sx:{mx:0,height:24,alignSelf:"center",borderColor:"#e0e0e0"}}),l.jsx(P,{sx:{flex:1,minWidth:0,height:20,paddingLeft:"8px",gap:"4px",opacity:1,display:"flex",alignItems:"center"},children:n&&n.length>0?r(12):l.jsxs(l.Fragment,{children:[l.jsx(B,{sx:{width:51,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",verticalAlign:"middle",flexShrink:0},children:"Products"}),l.jsx(ly,{size:12,color:"#808080",style:{margin:"0 4px",flexShrink:0}}),l.jsx(B,{sx:{flex:1,minWidth:0,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000",verticalAlign:"middle"},children:e})]})})]}),l.jsx(en,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",marginRight:"-8px"}}),l.jsxs(P,{sx:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"16px",flexShrink:0},children:[l.jsx(qi,{}),l.jsx(Yi,{})]})]})})};function YI({open:e,onClose:t,onSave:n}){vn();const r=fn(),[i,s]=j.useState("sftp"),a=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],c=h=>s(h.target.value),d=()=>{n&&n(i),t()},u=()=>{},p=r.productSettingModal;return l.jsx(lo,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:p.modal,children:l.jsxs(P,{sx:p.container,children:[l.jsxs(P,{sx:p.header,children:[l.jsx(B,{sx:p.headerTitle,children:"Sync Method"}),l.jsx(mt,{onClick:t,size:"small",sx:p.closeButton,children:l.jsx(jI,{size:20})})]}),l.jsxs(P,{sx:p.content,children:[l.jsx(Ya,{value:i,onChange:c,children:a.map(h=>l.jsx(kn,{value:h.value,control:l.jsx(ho,{icon:l.jsx(P,{sx:p.radioIcon}),checkedIcon:l.jsx($I,{size:18,color:"#000"}),sx:p.radioChecked}),label:l.jsx(B,{sx:p.radioLabel,children:h.label}),sx:{...p.formControlLabel,...i===h.value&&{backgroundColor:"#F3F8FF"}}},h.value))}),l.jsxs(P,{sx:p.upgradeSection,children:[l.jsx(B,{sx:p.upgradeText,children:"Upgrade for higher sync limits and more features"}),l.jsx(B,{onClick:u,sx:p.managePlanLink,children:"Manage Plan >"})]})]}),l.jsx(P,{sx:p.footer,children:l.jsx(Ke,{fullWidth:!0,variant:"contained",onClick:d,sx:p.saveButton,children:"Save"})})]})})}const KI=({isOpen:e,onClose:t,onConfirm:n})=>{const r=fn();let i;return i=r.productSettingModal,l.jsx(lo,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:i.modal,children:l.jsxs(P,{sx:i.container,children:[l.jsx(P,{sx:i.header,children:l.jsx(B,{sx:{...i.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),l.jsxs(P,{sx:{...i.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[l.jsx(Ke,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),l.jsx(Ke,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function GI(){const e=Pt(),t=Ot(),n=on(),{companyId:r,integrationData:i,loading:s}=Xe(N=>N?.dashboard||{}),[a,c]=j.useState(!0),[d,u]=j.useState(),[p,h]=j.useState(0),[y,x]=j.useState(""),[g,f]=j.useState(!1),[m,S]=j.useState(!1),[C,b]=j.useState(!1),[v,w]=j.useState(""),A=j.useRef(null),I=j.useRef(!1);j.useEffect(()=>{const N=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($t(r)))),N&&r&&!s&&!I.current&&(I.current=!0,n($t(r))),N||(I.current=!1)},[r,n,s,i,e.state]),j.useEffect(()=>{let N=!1;e.state&&typeof e.state.tenantIntegrationMatched=="boolean"&&(N=e.state.tenantIntegrationMatched);const D=i&&(i?.id||i?.channelId||i?.configs||Array.isArray(i?.data)&&i.data.length>0||typeof i=="object"&&Object.keys(i).length>0),U=e.state?.fromSyncStep===1?1:N===!0||D?3:0;queueMicrotask(()=>h(U))},[e.state,i]);const z=()=>f(!0),M=N=>{x(N),h(1),f(!1)},L=()=>{t("/products/settings/ftp-sync",{state:{fromSyncStep:p}})},O=async()=>{const N=i?.channelId||i?.id;if(!N){w("Channel ID not found"),b(!0),S(!1);return}S(!1);try{const D=await n(Ko(N));if(Ko.fulfilled.match(D)){const U=D.payload?.message==="Sync started successfully"?"Sync started successfully":"Sync not started successfully";w(U),b(!0),U==="Sync started successfully"&&setTimeout(()=>{n($t(r)),n(Ln()),t("/")},2500)}else w("Sync not started successfully"),b(!0)}catch{w("Sync not started successfully"),b(!0)}},T=()=>{p===1?(h(0),x("")):t("/")};return l.jsxs(P,{sx:{width:"100%",minHeight:"100vh",background:"#f7f8fa",p:0,pt:"72px",display:"flex",flexDirection:"column",alignItems:"center"},children:[l.jsx(sr,{breadcrumbRight:"Settings",onBack:T}),l.jsx(YI,{open:g,onClose:()=>f(!1),onSave:M}),l.jsx(KI,{isOpen:m,onClose:()=>S(!1),onConfirm:O}),l.jsx(mo,{open:C,autoHideDuration:4e3,onClose:()=>b(!1),message:v,anchorOrigin:{vertical:"top",horizontal:"center"}}),l.jsx(qI,{airaAiEnabled:a,setAiraAiEnabled:c,selectedCard:d,setSelectedCard:u,syncStep:p,syncMethod:y,integrationData:i,onSetupSync:z,onSetupFTP:L,onSyncNow:()=>S(!0)})]})}const XI=["Setup FTP","Check data","Start Sync"],JI=e=>{const{onBack:t}=e,n=Pt(),r=Ot(),i=n.state?.fromSyncStep,s=()=>{t?t():i!==void 0?r("/product-setting",{state:{fromSyncStep:i,tenantIntegrationMatched:i===3}}):r("/product-setting")};return l.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[l.jsx(sr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:s}),l.jsxs(P,{sx:{maxWidth:800,mx:"auto",pt:"72px",px:2},children:[l.jsx(P,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:2,mb:1},children:XI.map((a,c)=>l.jsx(B,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:c===0?600:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",verticalAlign:"middle",color:"#454545",opacity:1,width:224,height:16,display:"inline-flex",alignItems:"center",justifyContent:"center",flex:1},children:a},a))}),l.jsx(P,{sx:{width:800,height:504,gap:"8px",borderRadius:"16px",padding:"8px",background:"#FFFFFF",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box"},children:l.jsxs(cn,{elevation:0,sx:{width:400,height:210,gap:"24px",borderRadius:"20px",padding:"24px",background:"#fafafa",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[l.jsxs(P,{sx:{width:352,height:98,gap:"12px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[l.jsx(B,{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"}),l.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:352,height:66,boxSizing:"border-box","& li":{display:"list-item",marginBottom:"4px"},"& li:last-child":{marginBottom:0}},children:[l.jsx("li",{children:"Directory should have just one file"}),l.jsx("li",{children:"File format must be in CSV (comma separated)"}),l.jsx("li",{children:"File structure should be flat"})]})]}),l.jsx(P,{sx:{display:"flex",justifyContent:"flex-end",marginTop:"auto"},children:l.jsx(Ke,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})]})]})};function QI(e){const{sx:t,fontSize:n,...r}=e;return l.jsxs(er,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[l.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"}),l.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"})]})}function ZI(e){const{sx:t,fontSize:n,...r}=e;return l.jsxs(er,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[l.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"}),l.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"}),l.jsx("path",{d:"M2 9L12.666667 1.666667",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round"})]})}const eN=({active:e,completed:t,showBlue:n})=>{const r=!e&&!t,i=n?"#2D64B8":"#bbb";return l.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?l.jsx("svg",{width:10,height:10,viewBox:"0 0 24 24",fill:"none",style:{display:"block"},children:l.jsx("path",{d:"M7 10l5 5 5-5",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):l.jsx("svg",{width:8,height:8,viewBox:"0 0 24 24",fill:"none",style:{display:"block"},children:l.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#2D64B8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})},ll=({steps:e=[],activeStep:t=0,showCheckDataBlueTick:n=!1,progressToCheckData:r=!1,showSetupFtpBlueTick:i=!1,showStartSyncBlueTick:s=!1,instantComplete:a=!1,progressSegment:c,filledSegments:d,filledSegmentsStart:u=0,previousStepsComplete:p=!1})=>{const y=vn().transitions?.duration?.standard??400,[x,g]=j.useState(0),[f,m]=j.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,I=j.useMemo(()=>{let z;if(typeof d=="number"){const L=typeof u=="number"?u:0,O=d-L;z=w*(L+x*O)}else typeof c=="number"?z=w*(c+x):s?z=x?b:0:r?z=x?b*.5:0:z=x?v:0;const M=Math.min(z,b)/b;return Math.round(M*A)},[x,d,u,c,s,r,w,b,v]);return j.useEffect(()=>{if(a){setTimeout(()=>{g(1),m(!0)},0);return}if(typeof d=="number"&&typeof u=="number"&&u>0){setTimeout(()=>{g(0),m(!1)},0);const M=setTimeout(()=>{g(1),setTimeout(()=>m(!0),y)},50);return()=>clearTimeout(M)}setTimeout(()=>{g(0),m(!1)},0);const z=setTimeout(()=>{g(1),setTimeout(()=>m(!0),y)},50);return()=>clearTimeout(z)},[t,e.length,r,a,d,u,y]),l.jsxs(P,{sx:{width:800,opacity:1},children:[l.jsx(P,{sx:{width:800,height:44,gap:"16px",opacity:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:e.map((z,M)=>l.jsxs(P,{sx:{width:256,height:44,gap:"12px",opacity:1,paddingLeft:"16px",paddingRight:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},children:[l.jsx(eN,{active:M===t,completed:M<t,showBlue:M===0&&i||M===1&&n&&(f||p)||M===2&&s}),l.jsx(P,{component:"span",sx:{width:224,height:16,fontFamily:"Inter, sans-serif",fontWeight:M===0?600:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",color:"#454545",opacity:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:z})]},z))}),l.jsx(P,{sx:{width:"100%",mt:1,mb:0},children:l.jsx(P,{sx:{marginLeft:`${C}%`,width:`${b}%`},children:l.jsx(hm,{variant:"progress",steps:A+1,position:"static",activeStep:I,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})})})]})},tN=e=>e.dashboard?.companyId||"";function nN(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 rN=e=>{const{ftpDetails:t={},stepperProps:n={}}=e,[r,i]=j.useState(null),s=Pt(),a=Ot(),c=Xe(tN),[d,u]=j.useState(!1);j.useEffect(()=>{let M,L;return setTimeout(()=>{u(!1),M=setTimeout(()=>{L=setTimeout(()=>u(!0),600)},100)},0),()=>{M&&clearTimeout(M),L&&clearTimeout(L)}},[]);const[p,h]=j.useState(!1),y=localStorage.getItem("selectedSyncMethod")||"sftp",[x,g]=j.useState(`${y}:`),[f,m]=j.useState(""),[S,C]=j.useState(""),b=on(),v=Xe(M=>M.productSettings?.loading||!1),w=Xe(M=>M.productSettings?.error||null),A=vn();ft(A.breakpoints.up("lg"));const I=Xe(M=>M.productSettings.syncData);j.useEffect(()=>{const M=s.state?.ftpConfig,L=s.state?.tenantIntegrationData;if(I&&I.serverAddress){setTimeout(()=>{g(I.serverAddress||""),m(I.configs&&I.configs.username||""),C(I.configs&&I.configs.password||"")},0);return}if(t&&(t.host||t.username||t.password)){const O=t.type||"sftp",T=t.host||"",N=t.port||"",D=t.path||"",U=`${O}://${T}${N?`:${N}`:""}${D?`/${D}`:""}`;setTimeout(()=>{g(U),m(t.username||""),C(t.password||"")},0);return}if(L&&L.configs){const O=L.configs,T=O.type||L.type||"sftp",N=O.host||"",D=O.port||"",U=O.path||"",F=`${T}://${N}:${D}/${U}`,_=O.username||"",k=O.password||"";setTimeout(()=>{g(F),m(_),C(k)},0);return}if(M){const T=`${M.type||"sftp"}://${M.host}:${M.port}/${M.path}`,N=M.username||"",D=M.password||"";setTimeout(()=>{g(T),m(N),C(D)},0)}},[s.state,I,t]);const z=async()=>{if(!c){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:M,host:L,port:O,path:T}=nN(x),N=await b(qo({serverAddress:x,username:f,password:S,companyId:c}));if(!qo.fulfilled.match(N))return;const D=N.payload;if(s.state?.fromSettingsIcon){const _=D?.entity_type||r?.entity_type||"products",k={...r||{},companyId:c,tenantId:c,type:M,serverAddress:x,configs:{host:L,port:Number(O),path:T,username:f,password:S,sync_frequency:r?.configs?.sync_frequency||t?.sync_frequency||"",sync_time:r?.configs?.sync_time||t?.sync_time||""},entity_type:_,mappings:r?.mappings||D?.existing_mapping?.mappings||[]};i(k),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(k)),a("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:k}});return}const U=D?.entity_type||"",F={tenantId:c,type:M,serverAddress:x,configs:{host:L,port:Number(O),path:T,username:f,password:S,sync_frequency:"",sync_time:""},entity_type:U||"products",mappings:D?.existing_mapping?.mappings||[]};b(zs(F)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(F)),e.onNext&&e.onNext({putjson:F})};return l.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[l.jsx(sr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:e.onBack}),l.jsxs(P,{sx:{width:800,minHeight:600,gap:"32px",opacity:1,pt:"88px",left:"340px",mx:"auto",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[l.jsx(P,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:l.jsx(ll,{...n,showSetupFtpBlueTick:d})}),l.jsx(P,{sx:{width:800,height:504,minHeight:504,borderRadius:"16px",padding:"8px",paddingBottom:"32px",gap:"8px",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",bgcolor:"#fff",boxSizing:"border-box",marginBottom:"32px"},children:l.jsxs(P,{sx:{width:400,height:380,borderRadius:"20px",padding:"24px",gap:"24px",opacity:1,bgcolor:"#F5F5F5",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[l.jsx(P,{sx:{width:352,height:20,justifyContent:"space-between",opacity:1,display:"flex",alignItems:"center"},children:l.jsx(B,{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"})}),l.jsxs(P,{component:"form",autoComplete:"off",sx:{width:352,height:224,gap:"16px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[l.jsxs(P,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[l.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Server Address"}),l.jsx("input",{type:"text",value:x,onChange:M=>g(M.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}})]}),l.jsxs(P,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[l.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Username"}),l.jsx("input",{type:"text",value:f,onChange:M=>m(M.target.value),placeholder:"Enter username",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}})]}),l.jsxs(P,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box",position:"relative"},children:[l.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Password"}),l.jsx("input",{type:p?"text":"password",value:S,onChange:M=>C(M.target.value),placeholder:"Enter password",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px 44px 12px 12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}}),l.jsx(mt,{"aria-label":"toggle password visibility",onClick:()=>h(M=>!M),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:p?l.jsx(ZI,{}):l.jsx(QI,{})})]})]}),l.jsxs(P,{sx:{display:"flex",justifyContent:"flex-end",gap:2,marginTop:"auto"},children:[l.jsx(Ke,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:e.onBack,children:"Back"}),l.jsx(Ke,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:z,disabled:v,children:v?"Loading...":"Next"})]}),w&&l.jsx(B,{color:"error",sx:{mt:1,fontSize:14},children:"Fill the credentials"})]})})]})]})},oN=e=>e.productSettings.ftpColumns||[],iN=e=>e.productSettings.preview||[],sN=e=>e.productSettings.loading,aN=e=>e.productSettings.error,lN=e=>e.productSettings.existingMapping,cN=e=>e.productSettings.entity_type||"products",dN=e=>{const{mapping:t=[],onBack:n,onNext:r,stepperProps:i={}}=e,s=Pt(),a=Ot(),c=s.state?.fromSettingsIcon,[d,u]=j.useState(()=>{if(s.state?.putjson)return s.state.putjson;const F=window.localStorage.getItem("ftpSyncPutjson");return F?JSON.parse(F):t.length>0?{mappings:t}:null}),[p,h]=j.useState([]),[y,x]=j.useState({}),g=Xe(oN),f=Xe(iN),m=Xe(sN),S=Xe(aN),C=Xe(lN),b=Xe(cN),v=j.useRef(m);j.useEffect(()=>{m&&!v.current&&queueMicrotask(()=>x({})),v.current=m},[m]);const w=j.useRef(!1);j.useLayoutEffect(()=>{C==null||!C?.mappings||C.mappings.length===0?w.current||(w.current=!0,queueMicrotask(()=>x({}))):w.current=!1},[C]);const A=on();j.useEffect(()=>{async function F(){try{let _=[];if(C?.mappings?.length>0){const k=C.mappings.map(V=>V.target_field).filter(V=>V&&typeof V=="string");_=[...new Set(k)]}try{const k=await A(Go(b));Go.fulfilled.match(k)&&Array.isArray(k.payload)&&k.payload.filter($=>$&&typeof $=="string").forEach($=>{_.includes($)||_.push($)})}catch{}if(t&&t.length>0){const k=t.map(V=>V.target_field).filter(V=>V&&typeof V=="string"&&!_.includes(V));k.length>0&&(_=[..._,...k])}_=_.filter(k=>k&&typeof k=="string"),h(_)}catch{if(C?.mappings?.length>0){const _=C.mappings.map(V=>V.target_field).filter(V=>V&&typeof V=="string"),k=[...new Set(_)];h(k)}else h([])}}(b||C?.mappings?.length>0||t&&t.length>0)&&F()},[b,C,t,A]);const I=j.useMemo(()=>{if(C?.mappings&&C.mappings.length>0){const F=C.mappings.map(_=>_.source_field).filter(_=>_);if(F.length>0)return F}return g&&g.length>0?g:[]},[C,g]),z=j.useMemo(()=>f.filter(_=>Object.keys(_).length>0),[f]),M=j.useMemo(()=>{if(C?.mappings&&C.mappings.length>0){const F={};return C.mappings.forEach(_=>{_.source_field&&_.target_field&&(F[_.source_field]=_.target_field)}),F}return{}},[C]),O=C?.mappings?.length>0?{...M,...y}:{...y},T=vn();ft(T.breakpoints.up("lg"));const N=Xe(F=>F.productSettings.syncData),D=j.useMemo(()=>{if(N?.serverAddress)return N.serverAddress;const F=N?.configs||{},_=(N?.type||"sftp").toLowerCase(),k=F.host,V=F.port,$=F.path;if(!k)return"";let W=`${_}://${k}`;if(V!=null&&V!==""&&(W+=`:${V}`),$){const q=String($).replace(/^\/+/,"");W+=`/${q}`}return W},[N]),U=()=>{const F=I.map($=>({source_field:$||"",target_field:O[$]||""})).filter($=>$.source_field&&$.target_field);if(F.length===0)return;if(c&&d){const $={...d,tenantId:d.tenantId||d.companyId,type:d.type||N.type||"sftp",entity_type:d.entity_type||N.entity_type||"products",mappings:F};u($),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify($)),r?r({fromSettingsIcon:!0,putjson:$}):e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:$});return}const _=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),k=N.companyId||_.companyId||_.tenantId||"",V={..._,companyId:k,tenantId:k,type:N.type||_.type||"sftp",integration_type:N.integration_type||_.integration_type||"",entity_type:_.entity_type||N.entity_type||"products",configs:N.configs||_.configs||{},ftp_columns:I,preview:z,mappings:F};A(zs(V)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(V)),r?r({putjson:V}):e.onNext&&e.onNext({putjson:V})};return l.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[l.jsx(sr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:n||(()=>a("/products/settings/ftp-sync",{state:{step:1}}))}),l.jsxs(P,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[l.jsx(P,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:l.jsx(ll,{...i})}),l.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},children:l.jsxs(cn,{elevation:0,sx:{mt:0,p:0,borderRadius:4,width:"100%",maxWidth:800},children:[l.jsxs(P,{sx:{p:3,pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsxs(P,{children:[l.jsx(B,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),D&&l.jsx(B,{variant:"body2",sx:{color:"#888",mt:.5},children:D})]}),l.jsxs(P,{children:[l.jsx(Ke,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:n||(()=>a("/products/settings/ftp-sync",{state:{step:1}})),children:"Back"}),l.jsx(Ke,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:U,children:"Next"})]})]}),l.jsx(jm,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee"},children:m?l.jsx(P,{sx:{p:3,textAlign:"center"},children:"Loading..."}):S?l.jsx(P,{sx:{p:3,color:"red",textAlign:"center"},children:S}):I.length===0?l.jsx(P,{sx:{p:3,textAlign:"center",color:"#888"},children:"No columns available. Please check your FTP connection and try again."}):l.jsxs(zm,{size:"small",children:[l.jsxs(Vm,{children:[l.jsxs(Ui,{children:[l.jsx(ir,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),I.map((F,_)=>l.jsx(ir,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:F},F+_))]}),l.jsxs(Ui,{children:[l.jsx(ir,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),I.map((F,_)=>l.jsx(ir,{sx:{background:"#fafafa",borderBottom:"none"},children:l.jsxs(Pn,{value:O[F]||"",onChange:k=>x(V=>({...V,[F]:k.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:[l.jsx(Be,{value:"",sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:l.jsx("em",{style:{fontStyle:"normal",color:"#888"},children:"Select column"})}),p.map(k=>l.jsx(Be,{value:k,sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:k},k))]})},_))]})]}),l.jsx(Bm,{children:z.length>0?z.map((F,_)=>l.jsxs(Ui,{children:[l.jsx(ir,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:_===0?"Data preview":""}),I.map((k,V)=>l.jsx(ir,{sx:{background:"#fff",borderBottom:"none"},children:F[k]||""},V))]},_)):l.jsx(Ui,{children:l.jsx(ir,{colSpan:I.length+1,sx:{textAlign:"center",color:"#888",py:2},children:"No preview data available"})})})]})})]})})]})]})},pN=e=>e.dashboard?.companyId||"",uN=e=>e.dashboard?.integrationData||null,fN=e=>{const{syncFrequency:t="",syncTime:n="",stepperProps:r={}}=e,i=Pt(),s=Ot(),a=on(),c=Xe(pN),d=Xe(uN),u=i.state?.fromSettingsIcon,[p,h]=j.useState(()=>{if(i.state?.putjson){const k=JSON.parse(JSON.stringify(i.state.putjson));return k.mappings&&(k.originalMappings=JSON.parse(JSON.stringify(k.mappings))),k.configs?.sync_frequency&&!k.originalSyncFrequency&&(k.originalSyncFrequency=k.configs.sync_frequency),k.configs?.sync_time&&!k.originalSyncTime&&(k.originalSyncTime=k.configs.sync_time),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(k)),k}const _=window.localStorage.getItem("ftpSyncPutjson");if(_){const k=JSON.parse(_);return k.mappings&&!k.originalMappings&&(k.originalMappings=JSON.parse(JSON.stringify(k.mappings))),k.configs?.sync_frequency&&!k.originalSyncFrequency&&(k.originalSyncFrequency=k.configs.sync_frequency),k.configs?.sync_time&&!k.originalSyncTime&&(k.originalSyncTime=k.configs.sync_time),k}return null});j.useEffect(()=>{p&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(p))},[p]);const[y,x]=j.useState(null),[g,f]=j.useState(null);j.useEffect(()=>{const _=i.state?.fromProductSetting;let k=null;if(_&&i.state?.integrationData)k=i.state.integrationData;else if(d&&Object.keys(d).length>0)k=d;else if(c&&!_){a($t(c)).then(V=>{if($t.fulfilled.match(V)){const $=V.payload;if(k=$&&$.data&&$.data[0]||null,k){x(k);const W=k.id||k.channelId||null;W&&f(W)}}});return}if(k){x(k);const V=k.id||k.channelId||null;V&&f(V)}},[c,i.state,d,a]);const m=!!u||!!y,S=_=>{if(!_)return"";const k=_.charAt(0).toUpperCase()+_.slice(1).toLowerCase();return k==="Daily"||k==="Day"?"Daily":k==="Weekly"||k==="Week"?"Weekly":k==="Monthly"||k==="Month"?"Monthly":k},[C,b]=j.useState(()=>{if(t)return S(t);const _=p?.configs?.sync_frequency?S(p.configs.sync_frequency):"";return _||"Daily"}),[v,w]=j.useState(n||p&&p.configs?.sync_time||"");j.useEffect(()=>{async function _(){if(c)try{const k=i.state?.fromProductSetting;let V=null;if(k&&i.state?.integrationData)V=i.state.integrationData;else if(d&&Object.keys(d).length>0)V=d;else{const $=await a($t(c));if($t.fulfilled.match($)){const W=$.payload;V=W&&W.data&&W.data[0]||null}}if(V){const $=V.id||V.channelId||null;$&&f($);const W=p||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),q={...V,companyId:V.companyId||c,entity_type:V.entity_type||W?.entity_type||"product",mappings:V.mappings||W?.mappings||[]},J=V.configs?.sync_frequency||"",X=V.configs?.sync_time||"",ee=S(J);if(h(q),k){if(t){const te=S(t);b(te)}n&&w(n),h(te=>({...te,...q,originalSyncFrequency:t?S(t):te.originalSyncFrequency||ee,originalSyncTime:n||te.originalSyncTime||X,configs:{...q.configs,sync_frequency:t?S(t).toLowerCase():q.configs?.sync_frequency,sync_time:n||q.configs?.sync_time}}))}else{const te=t?S(t):"";if(te)b(te);else if(ee)b(ee);else if(W?.configs?.sync_frequency){const ie=S(W.configs.sync_frequency);b(ie)}else b("Daily");n?w(n):X?w(X):W?.configs?.sync_time?w(W.configs.sync_time):w(""),h(q),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(q))}}}catch{const k=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!t&&k?.configs?.sync_frequency?b(S(k.configs.sync_frequency)):t&&b(S(t)),!n&&k?.configs?.sync_time?w(k.configs.sync_time):n&&w(n)}}_()},[c]),j.useEffect(()=>{if(t){const _=S(t);b(_),p&&p.configs?.sync_frequency!==_&&h(k=>{const V={...k,configs:{...k.configs,sync_frequency:_}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(V)),V})}},[t]),j.useEffect(()=>{n&&(w(n),p&&p.configs?.sync_time!==n&&h(_=>{const k={..._,configs:{..._.configs,sync_time:n}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(k)),k}))},[n]),j.useEffect(()=>{if(p&&m&&(C||v)){const _=p.configs?.sync_frequency,k=p.configs?.sync_time;(_!==C||k!==v)&&h(V=>{const $={...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($)),$})}},[C,v,m]);const A=Xe(_=>_.productSettings.syncData),I=_=>{const k=_.target.value;b(k),p&&h(V=>{const $={...V,configs:{...V.configs,sync_frequency:k}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify($)),$}),m||a(zs({...A,configs:{...A&&A.configs||{},sync_frequency:k,sync_time:v}}))},z=_=>{const k=_.target.value;w(k),p&&h(V=>{const $={...V,configs:{...V.configs,sync_time:k}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify($)),$}),m||a(zs({...A,configs:{...A&&A.configs||{},sync_frequency:C,sync_time:k}}))};function M(_){try{const k=new URL(_);return{type:k.protocol.replace(":",""),host:k.hostname,port:k.port,path:k.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[L,O]=j.useState(!1),[T,N]=j.useState(""),D=async()=>{const _=i.state?.fromProductSetting;if(m){if(!p){N("Update failed: missing data."),O(!0);return}let H={...p};p.originalMappings||(H.originalMappings=p.mappings?JSON.parse(JSON.stringify(p.mappings)):[],h(H)),!p.originalSyncFrequency&&p.configs?.sync_frequency&&(H.originalSyncFrequency=p.configs.sync_frequency||"",h(H)),!p.originalSyncTime&&p.configs?.sync_time&&(H.originalSyncTime=p.configs.sync_time||"",h(H));const ge=JSON.parse(JSON.stringify(p.mappings||[])),ue=JSON.parse(JSON.stringify(p.originalMappings||[]));let me,ze;_?(me=t?S(t):"",ze=n||""):(me=p.originalSyncFrequency||p.configs?.sync_frequency||"",ze=p.originalSyncTime||p.configs?.sync_time||"",me=S(me));const we=_?!1:JSON.stringify(ge)!==JSON.stringify(ue),ye=C!==me,_e=v!==ze,Le=(ye||_e)&&!we,Ne=we;if(Le){const fe=g||p?.id||p?.channelId||i.state?.integrationData?.id||i.state?.integrationData?.channelId;if(!fe){N("Channel ID is missing. Please try again."),O(!0);return}const je={configs:{}};ye&&(je.configs.sync_frequency=C.toLowerCase()),_e&&(je.configs.sync_time=v);try{const Oe=await a(Xo({channelId:fe,data:je}));if(Oe.error||Xo.rejected.match(Oe)){const G=Oe.payload||Oe.error?.message||"Update failed. Please try again.";N(G),O(!0);return}let se="";ye&&!_e?se="SyncFrequency Updated":!ye&&_e?se="SyncTime Updated":ye&&_e&&(se="SyncTime and SyncFrequency Updated"),N(se),O(!0),h(G=>{const he={...G,configs:{...G.configs,sync_frequency:C.toLowerCase(),sync_time:v},originalSyncFrequency:C,originalSyncTime:v};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(he)),he});const re=i.state?.fromProductSetting;re&&c&&await a($t(c)),setTimeout(()=>{re&&s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500);return}catch(Oe){const se=Oe?.message||Oe?.response?.data?.message||"Update failed. Please try again.";N(se),O(!0);return}}if(Ne){const fe={...p,configs:{...p.configs,sync_frequency:C.toLowerCase(),sync_time:v}};h(fe),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(fe));const je=fe.tenantId||fe.companyId;if(!fe.configs){N("Configuration error. Please try again."),O(!0);return}const Oe=fe.entity_type||p?.entity_type;if(!Oe){N("Entity type is missing. Please try again."),O(!0);return}const se={tenantId:je,type:fe.type,entity_type:Oe,configs:{host:fe.configs.host||"",port:fe.configs.port?Number(fe.configs.port):0,username:fe.configs.username||"",password:fe.configs.password||"",path:fe.configs.path||"",sync_frequency:C.toLowerCase()||"",sync_time:v||""},mappings:(fe.mappings||[]).map(re=>({source_field:re.source_field,target_field:re.target_field}))};if(!se.tenantId){N("Tenant ID is missing. Please try again."),O(!0);return}if(!se.type){N("Sync type is missing. Please try again."),O(!0);return}if(!se.entity_type){N("Entity type is missing. Please try again."),O(!0);return}try{const re=await a(Wr(se));if(Wr.rejected.match(re)){const G=re.payload||re.error?.message||"Update failed. Please try again.";N(G),O(!0);return}Wr.fulfilled.match(re)?(h(G=>{const he={...G,originalSyncFrequency:C,originalSyncTime:v,originalMappings:JSON.parse(JSON.stringify(G.mappings||[]))};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(he)),he}),N("Sync Update Successfully"),O(!0),setTimeout(()=>{s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)):(N("Update failed. Please try again."),O(!0))}catch(re){const G=re?.message||re?.response?.data?.message||"Update failed. Please try again.";N(G),O(!0)}}else N("No changes detected."),O(!0);return}const k=A.configs||{},V=M(A.serverAddress||""),$=k.host||V.host,W=k.port!=null?Number(k.port):parseInt(V.port,10),q=(k.path||V.path||"").replace(/^\//,""),J=A.type||V.type||"sftp",X=A.username||k.username||"",ee=A.password||k.password||"",te=C||k.sync_frequency||"",ie=typeof te=="string"?te.toLowerCase():te;let ce=v||k.sync_time||"";if(typeof ce=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(ce.trim())){const[H,ge]=ce.trim().split(/\s+/),[ue,me]=H.split(":").map(Number),ze=ge.toUpperCase()==="PM"&&ue!==12?ue+12:ge.toUpperCase()==="AM"&&ue===12?0:ue;ce=`${String(ze).padStart(2,"0")}:${String(me).padStart(2,"0")}`}else typeof ce=="string"&&(ce=ce.trim());const ae=(A.mappings||[]).filter(H=>H.source_field&&H.target_field).map(H=>({source_field:H.source_field,target_field:H.target_field}));if(!c){N("Company ID is required. Please ensure the app is properly configured."),O(!0);return}if(!$||!W||!X||!ee||ae.length===0){N("Please fill all required fields and mappings before saving."),O(!0);return}const oe=A.entity_type||"products",pe={tenantId:c,type:J,entity_type:oe,configs:{host:$,port:Number(W),username:X,password:ee,path:q,sync_frequency:ie,sync_time:ce},mappings:ae};try{const H=await a(Yo(pe));Yo.fulfilled.match(H)?(N("Save and Start Sync Updated Successfully"),O(!0),e.onNext&&e.onNext()):(N(H?.payload||"Save failed. Please try again."),O(!0))}catch{N("Save failed. Please try again."),O(!0)}},[U,F]=j.useState(!1);return j.useEffect(()=>{const _=setTimeout(()=>F(!0),850);return()=>clearTimeout(_)},[]),l.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[l.jsx(sr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:e.onBack}),l.jsxs(P,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[l.jsx(P,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:l.jsx(ll,{...r,showStartSyncBlueTick:U})}),l.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:l.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:4,mb:4},children:l.jsxs(cn,{elevation:0,sx:{p:2.5,borderRadius:4,minWidth:300,maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:2,width:"100%",mb:2},children:[l.jsxs(P,{sx:{flex:1},children:[l.jsx(B,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Frequency"}),l.jsxs(Pn,{size:"small",value:C,onChange:I,sx:{minWidth:120,borderRadius:2,background:"#fafbfc",fontSize:15,height:40},children:[l.jsx(Be,{value:"Daily",children:"Daily"}),l.jsx(Be,{value:"Weekly",children:"Weekly"}),l.jsx(Be,{value:"Monthly",children:"Monthly"})]})]}),l.jsxs(P,{sx:{flex:1},children:[l.jsx(B,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Time"}),l.jsx(Hi,{type:"time",size:"small",value:v,onChange:z,sx:{minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),l.jsxs(P,{sx:{display:"flex",justifyContent:"center",gap:.5,mt:1,width:"100%"},children:[l.jsx(Ke,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:e.onBack,children:"Back"}),l.jsx(Ke,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none",flex:m?1:"initial"},onClick:D,children:m&&(i.state?.fromSyncSetting||i.state?.editMode)?"Save":m?"Update Sync":"Save and Start Sync"})]}),l.jsx(mo,{open:L,autoHideDuration:4e3,onClose:()=>O(!1),message:T,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})]})},hN=e=>{const{onBack:t,stepperProps:n={}}=e,r=on(),s=!!Xe(u=>u.productSettings.saveResult),[a,c]=j.useState(s),d=Ot();return j.useEffect(()=>{s&&(c(!0),r(bS()))},[s,r]),l.jsxs(l.Fragment,{children:[l.jsx(mo,{open:a,autoHideDuration:4e3,onClose:()=>c(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),l.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[l.jsx(sr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:t||(()=>d("/products/settings/ftp-sync",{state:{step:3}}))}),l.jsxs(P,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[l.jsx(P,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:l.jsx(ll,{...n})}),l.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:l.jsxs(P,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:320,py:6,bgcolor:"#f5f5f5",borderRadius:5},children:[l.jsx(P,{sx:{width:48,height:48,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},children:l.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:l.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),l.jsx(B,{sx:{fontSize:17,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),l.jsx(Ke,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1},onClick:()=>d("/"),children:"Back to all products"})]})})]})]}),l.jsx(mo,{open:a,autoHideDuration:4e3,onClose:()=>c(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function gN(e){const t=Pt(),n=Ot(),r=t.state?.fromProductSetting?3:0,[i,s]=j.useState(r),a=on(),{companyId:c,integrationData:d}=Xe(v=>v.dashboard),u=t.state?.fromSyncStep;j.useEffect(()=>{const v=t.state?.fromProductSetting;c&&!v&&a($t(c))},[c,a,t.state]);const p=()=>{s(v=>Math.min(v+1,4))},h=()=>{if(i===0&&u!==void 0){n("/product-setting",{state:{fromSyncStep:u,tenantIntegrationMatched:u===3}});return}if(t.state?.fromProductSetting&&i===3){n("/product-setting",{state:{tenantIntegrationMatched:!0}});return}s(v=>Math.max(v-1,0))},y=d?.configs||{},x=d?.mappings||d?.dataMappings||[],f=(v=>{if(!v)return"";const w=v.charAt(0).toUpperCase()+v.slice(1).toLowerCase();return w==="Daily"||w==="Day"?"Daily":w==="Weekly"||w==="Week"?"Weekly":w==="Monthly"||w==="Month"?"Monthly":w})(d?.configs?.sync_frequency||""),m=d?.configs?.sync_time||"",S=["Setup FTP","Check data","Start Sync"],C=["Upload File","Check data","Start Sync"],b={0:{steps:S,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1},1:{steps:S,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,filledSegments:.5},2:{steps:S,activeStep:1,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,filledSegmentsStart:.5,filledSegments:1},3:{steps:C,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!1,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!1,filledSegmentsStart:1,filledSegments:2,previousStepsComplete:!0},4:{steps:C,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!0,instantComplete:!0}};switch(i){case 0:return l.jsx(JI,{onNext:p,onBack:h,stepperProps:b[0],...e});case 1:return l.jsx(rN,{onNext:p,onBack:h,ftpDetails:y,stepperProps:b[1],...e});case 2:return l.jsx(dN,{onNext:p,onBack:h,mapping:x,stepperProps:b[2],...e});case 3:return l.jsx(fN,{onNext:p,onBack:h,syncFrequency:f,syncTime:m,stepperProps:b[3],...e});case 4:return l.jsx(hN,{onBack:h,stepperProps:b[4],...e});default:return null}}const mN=ot(l.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 yN(e){return l.jsx(P,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",opacity:1,...e.sx},children:l.jsx(P,{component:"span",sx:{width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",opacity:1},children:l.jsx(mN,{sx:{color:"#808080"}})})})}const bN="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 xN({sx:e={},...t}){const n=e?.fontSize??12,r=e?.width??n,i=e?.height??n;return l.jsx(P,{component:"img",src:bN,alt:"",role:"presentation",sx:{width:r,height:i,display:"block",objectFit:"contain",...e},...t})}const vN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAYAAACdKY9CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPtJREFUeAGlUUsOgjAQpSWQuLJHQC6gR4DwCe70Bt5Ab6CewCPIEVwSQmKPoDt3uHQnrPn5SjRpTIkLJ2k6bd+b92ZKNCkcx7EMwzh2XTcjhBRYcZqmexlD5QPAZ2zXuq4nuq67IC58399pqsCDg3X+UmRBEDyVCqjGKKWlohZTEpqm4SBNRR+fO9M019himUDkA+RXIB2gJMgMTVvI3SRJ7kqCiCiKrKqq+illWca1f6NXCMNw27btBlXZAO6Ctz3+5EQEWMwbNlzOeaFCe563AOGIdKnbth3jk+bw+xiykef5DbgRSDMxVkuewqB3QgRmTN/Jz0CPwm75AifwYTaKH5pyAAAAAElFTkSuQmCC",SN={fontSize:10.67,color:"#454545"};function wN({sx:e={},...t}){const n={...SN,...e},r=n.fontSize??10.67,i=n.width??r,s=n.height??r;return l.jsx(P,{component:"img",src:vN,alt:"",role:"presentation",sx:{width:i,height:s,display:"block",objectFit:"contain",...n},...t})}const CN=ot(l.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 EN(e){return l.jsx(CN,{...e})}const TN=ot(l.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 AN(e){return l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:l.jsx(P,{component:"span",sx:{width:13.22,height:13.22,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(TN,{})})})}const kN=ot(l.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 PN(e){return l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:l.jsx(P,{component:"span",sx:{width:12,height:13.33,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(kN,{})})})}function ON(e){const{catalogs:t=[],totalCount:n=0,page:r=0,rowsPerPage:i=10,statusById:s={},getStatus:a,onBack:c,onPageChange:d,onRowsPerPageChange:u,onSave:p,onDelete:h,onStatusChange:y,updateCatalogError:x=null,updateCatalogLoading:g=!1}=e,[f,m]=j.useState(null),[S,C]=j.useState({name:"",slug:"",status:!0}),b=O=>{const T=O.slugRaw??(typeof O.slug=="string"?O.slug.replace(/^\//,""):"")??"",N=O.status==="Active"||O.status===!0;m(O.id),C({name:O.name??"",slug:T,status:N})},v=async O=>{if(typeof p!="function")return;const T=S.slug.trim().replace(/^\//,""),N={id:O.id,name:S.name.trim(),slug:T||S.name.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""),status:S.status};await p(N),m(null)},w=()=>{m(null)},A=t,I=Math.max(0,Number(n)||0),z=Math.max(0,Math.ceil(I/Math.max(1,i))-1),M={borderRadius:"4px",padding:"2px 4px",background:"#F5F5F5",display:"inline-flex",alignItems:"center",gap:"4px"},L={wrapper:{width:800,maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"40px",opacity:1,marginLeft:"auto",marginRight:"auto",paddingLeft:"24px",mt:2},resultsPerPageBox:{width:128,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1},resultsPerPageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap"},select:{minWidth:32,height:16,"& .MuiSelect-select":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",py:0,pr:"20px !important",display:"flex",alignItems:"center"},"& .MuiSelect-icon":{top:"50%",transform:"translateY(-50%)"},"& .MuiSvgIcon-root":{width:16,height:16,right:0,color:"#454545"}},navBox:{width:200,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1},iconButton:{p:0,width:16,height:16,color:"#454545","&.Mui-disabled":{color:"#c0c0c0"}},pageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"}};return l.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[l.jsx(sr,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:c}),l.jsxs(P,{sx:{width:600,maxWidth:"100%",minHeight:606,pt:"88px",mx:"auto",pb:4,display:"flex",flexDirection:"column",gap:"24px",opacity:1},children:[l.jsx(P,{sx:{width:"100%",maxWidth:600,height:20,display:"flex",alignItems:"center",gap:"24px",opacity:1},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",height:20,opacity:1},children:[l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#000000",opacity:1},children:"All Catalogs"}),l.jsx(B,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},children:n})]})}),x&&l.jsx(B,{color:"error",sx:{mb:0},children:x}),l.jsx(P,{sx:{display:"flex",flexDirection:"column",gap:"8px"},children:A.map(O=>{const T=f===O.id,N=typeof a=="function"?a(O):s[O.id]??O.status??"Active",D=N==="Active";return l.jsxs(cn,{elevation:0,sx:{width:"100%",maxWidth:600,minHeight:106,borderRadius:"12px",border:"1px solid #F1F1F1",padding:"12px 16px",background:"#FFFFFF",display:"flex",alignItems:"flex-start",gap:"16px",opacity:1},children:[l.jsx(P,{sx:{flexShrink:0},children:l.jsx(yN,{})}),l.jsx(P,{sx:{width:368,maxWidth:"100%",minWidth:0,flex:1,display:"flex",flexDirection:"column",gap:"8px",opacity:1},children:T?l.jsxs(l.Fragment,{children:[l.jsx(Hi,{label:"Name",size:"small",value:S.name,onChange:U=>C(F=>({...F,name:U.target.value})),fullWidth:!0,sx:{"& .MuiInputBase-root":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px"}}}),l.jsx(Hi,{label:"Slug",size:"small",value:S.slug,onChange:U=>C(F=>({...F,slug:U.target.value})),fullWidth:!0,placeholder:"/catalog-slug"})]}):l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"2px"},children:[l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#000000",opacity:1},children:O.name}),l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},children:O.slug})]}),l.jsx(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:l.jsxs(P,{sx:M,children:[l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(xN,{sx:{fontSize:12,color:"#454545"}})}),l.jsxs(B,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:[O.productsCount," Products"]})]})}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:[l.jsxs(P,{sx:M,children:[l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(wN,{})}),l.jsxs(B,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:["By ",O.createdBy]})]}),l.jsxs(P,{sx:M,children:[l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(cy,{size:12,color:"#454545"})}),l.jsx(B,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:O.date})]})]})]})}),l.jsx(P,{sx:{flexShrink:0},children:T?l.jsxs(Pn,{size:"small",value:S.status?"Active":"Inactive",onChange:U=>C(F=>({...F,status:U.target.value==="Active"})),IconComponent:Ir,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:S.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:[l.jsx(Be,{value:"Active",children:"Active"}),l.jsx(Be,{value:"Inactive",children:"Inactive"})]}):l.jsxs(Pn,{value:N,onChange:U=>{if(typeof y!="function"||g)return;const F=U.target.value==="Active";y(O,F)},disabled:g,IconComponent:Ir,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:D?"#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:[l.jsx(Be,{value:"Active",children:"Active"}),l.jsx(Be,{value:"Inactive",children:"Inactive"})]})}),l.jsx(P,{sx:{flexShrink:0},children:T?l.jsxs(l.Fragment,{children:[l.jsx(mt,{size:"small","aria-label":"Save catalog",disabled:g,onClick:()=>v(O),sx:{p:0,color:"#454545"},children:l.jsx(EN,{sx:{fontSize:20}})}),l.jsx(Ke,{size:"small",onClick:w,sx:{minWidth:0,px:1,ml:.5},children:"Cancel"})]}):l.jsx(mt,{size:"small","aria-label":"Edit catalog",onClick:()=>b(O),sx:{p:0,width:16,height:16},children:l.jsx(AN,{})})}),l.jsx(P,{sx:{flexShrink:0},children:l.jsx(mt,{size:"small","aria-label":"Delete catalog",onClick:()=>typeof h=="function"?h(O):null,sx:{p:0,width:16,height:16},children:l.jsx(PN,{})})})]},O.id)})}),l.jsxs(P,{sx:L.wrapper,children:[l.jsxs(P,{sx:L.resultsPerPageBox,children:[l.jsx(B,{component:"span",sx:L.resultsPerPageText,children:"Results per page"}),l.jsxs(Pn,{value:i,onChange:O=>typeof u=="function"?u(O):null,IconComponent:Ir,variant:"standard",disableUnderline:!0,sx:L.select,children:[l.jsx(Be,{value:5,children:"5"}),l.jsx(Be,{value:10,children:"10"}),l.jsx(Be,{value:25,children:"25"})]})]}),l.jsxs(P,{sx:L.navBox,children:[l.jsx(mt,{size:"small",disabled:r===0,onClick:()=>typeof d=="function"?d(0):null,sx:L.iconButton,"aria-label":"First page",children:l.jsx(Jd,{sx:{width:16,height:16,opacity:1}})}),l.jsx(mt,{size:"small",disabled:r===0,onClick:()=>typeof d=="function"?d(Math.max(0,r-1)):null,sx:L.iconButton,"aria-label":"Previous page",children:l.jsx(Ri,{sx:{width:16,height:16,opacity:1}})}),l.jsx(B,{component:"span",sx:L.pageText,children:I===0?"0-0 of 0":`${r*i+1}-${Math.min((r+1)*i,I)} of ${I}`}),l.jsx(mt,{size:"small",disabled:r>=z,onClick:()=>typeof d=="function"?d(r+1):null,sx:L.iconButton,"aria-label":"Next page",children:l.jsx(At,{sx:{width:16,height:16,opacity:1}})}),l.jsx(mt,{size:"small",disabled:r>=z,onClick:()=>typeof d=="function"?d(z):null,sx:L.iconButton,"aria-label":"Last page",children:l.jsx(Qd,{sx:{width:16,height:16,opacity:1}})})]})]})]})]})}const IN=({isOpen:e,onClose:t,onConfirm:n,catalogName:r})=>{const s=fn().productSettingModal;return l.jsx(lo,{open:e,onClose:t,"aria-labelledby":"delete-catalog-modal",sx:s.modal,children:l.jsxs(P,{sx:s.container,children:[l.jsx(P,{sx:s.header,children:l.jsxs(B,{sx:{...s.headerTitle,fontSize:22},children:["Are you sure you want to delete this catalog",r?` "${r}"`:"","?"]})}),l.jsxs(P,{sx:{...s.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[l.jsx(Ke,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),l.jsx(Ke,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function NN(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 FN(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:NN(e.createdAt??e.date),createdAt:e.createdAt??e.date,status:e.status===!0?"Active":e.status===!1?"Inactive":e.status||"Active"}}function MN(e){const t=Ot(),n=on(),{sharedCatalogues:r=[],sharedCataloguesTotal:i=0,sharedCataloguesLoading:s=!1,sharedCataloguesError:a=null}=Xe(V=>V.productSettings??{}),{updateCatalogLoading:c=!1,updateCatalogError:d=null}=Xe(V=>V.dashboard??{}),[u,p]=j.useState(0),[h,y]=j.useState(10),[x,g]=j.useState({}),[f,m]=j.useState(!1),[S,C]=j.useState(null),[b,v]=j.useState(!1),[w,A]=j.useState("");j.useEffect(()=>{n(qt({page:u+1,limit:h}))},[n,u,h]),j.useEffect(()=>()=>n({type:"dashboard/clearUpdateCatalogError"}),[n]);const I=j.useMemo(()=>Array.isArray(r)?r.map(FN).filter(Boolean):[],[r]),z=i,M=V=>p(V),L=V=>{const $=Number(V.target.value);y($),p(0)},O=V=>x[V.id]??V.status,T=()=>t(-1),N=async V=>{const{id:$,name:W,slug:q,status:J}=V;await n(Ro({id:$,name:W,slug:q,status:J})).unwrap(),n(qt({page:u+1,limit:h}))},D=async(V,$)=>{const W=V.slugRaw??(typeof V.slug=="string"?V.slug.replace(/^\//,""):"")??"";g(q=>({...q,[V.id]:$?"Active":"Inactive"}));try{await n(Ro({id:V.id,name:V.name??"",slug:W,status:$})).unwrap(),n(qt({page:u+1,limit:h}))}catch{g(q=>({...q,[V.id]:V.status}))}},U=V=>{C(V),m(!0)},F=()=>{m(!1),C(null)},_=async()=>{if(!S?.id){F();return}try{await n(_s(S.id)).unwrap(),A("Catalog delete Successfully"),v(!0),F(),n(qt({page:u+1,limit:h}))}catch{A("Failed to delete catalog"),v(!0)}},k=l.jsx(sr,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:T});return s&&I.length===0?l.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[k,l.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:l.jsx(yi,{})})]}):a&&I.length===0?l.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[k,l.jsx(P,{sx:{textAlign:"center",py:4},children:l.jsx(B,{color:"error",children:a})})]}):l.jsxs(l.Fragment,{children:[l.jsx(ON,{catalogs:I,totalCount:z,page:u,rowsPerPage:h,statusById:x,getStatus:O,onBack:T,onPageChange:M,onRowsPerPageChange:L,onStatusChange:D,onSave:N,onDelete:U,updateCatalogError:d,updateCatalogLoading:c,...e}),l.jsx(IN,{isOpen:f,onClose:F,onConfirm:_,catalogName:S?.name}),l.jsx(mo,{open:b,autoHideDuration:4e3,onClose:()=>v(!1),message:w,anchorOrigin:{vertical:"top",horizontal:"center"}})]})}const cl=ot(l.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"),DN=ot([l.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"),l.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function ep(e){return l.jsx(DN,{...e})}function _N({styles:e={},selectedProducts:t=[],data:n,onSelectProduct:r,categoryName:i,showLimitedColumns:s=!1,pagination:a=null,onPageChange:c,onLimitChange:d}){const u=e?.categoryTableAllStore??{},p=e?.categoryTableSingleStore??{},h=e?.categoryTablePagination??{},y=e?.categoryTableShared??{},x=ft("(max-width:900px)"),g=ft("(max-width:400px)"),f=ft("(max-width:550px)"),m=ft("(max-width:770px)"),S=ft("(max-width:650px)"),C=ft("(max-width:500px)"),b=ft("(max-width:400px)"),v=!s,w=v&&m,A=F=>t.some(_=>_.id===F.id),[I,z]=j.useState(null),[M,L]=j.useState([]),O=(F,_)=>{z(F.currentTarget),L(_)},T=()=>{z(null),L([])},N=!!I,D=v?p.outerCard:u.outerCard,U=v?"6px":"4px";return l.jsx(or,{maxWidth:!1,sx:e.categoryTableContainer,children:l.jsxs(La,{sx:{...e.categoryTable,...D},children:[l.jsx(P,{sx:{...u.categoryNameBox,display:"flex",alignItems:"center",mb:U,boxSizing:"border-box",overflow:"hidden"},children:l.jsx(B,{sx:{...u.categoryNameText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i})}),!(v&&!g)&&l.jsxs(P,{sx:{display:"flex",flexWrap:g&&v?"wrap":"nowrap",alignItems:"center",width:"100%",minWidth:0,...v?p.tableHeader:u.tableHeader,boxSizing:"border-box",gap:g?"8px":v&&x?"12px":"16px"},children:[s?l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:l.jsx(yt,{checked:n.length>0&&n.every(A),indeterminate:n.some(A)&&!n.every(A),onChange:()=>{n.every(A)?n.forEach(F=>r(F,i,!1)):n.forEach(F=>{A(F)||r(F,i,!0)})},size:"small",sx:y.checkboxHeaderSx,icon:l.jsx("span",{style:y.checkboxIconSpanHeader}),checkedIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})}),indeterminateIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})})})}),l.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:"1 1 0"},children:l.jsx(B,{component:"span",sx:u.headerProduct,children:"Product"})})]}):l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:g?"8px":x?"12px":"16px",flex:"1 1 0",minWidth:0,...v&&!g&&{maxWidth:"40%"}},children:[l.jsx(yt,{checked:n.length>0&&n.every(A),indeterminate:n.some(A)&&!n.every(A),onChange:()=>{n.every(A)?n.forEach(F=>r(F,i,!1)):n.forEach(F=>{A(F)||r(F,i,!0)})},size:"small",sx:y.checkboxHeaderSx,icon:l.jsx("span",{style:y.checkboxIconSpanHeader}),checkedIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})}),indeterminateIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})})}),l.jsx(B,{component:"span",sx:{...p.headerLabel,...p.headerProduct},children:"Product"})]}),!g&&(v?l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{...p.headerStatus,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:l.jsx(B,{component:"span",sx:{...p.headerLabel},children:"Status"})}),l.jsx(P,{sx:{...p.headerPrice,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:l.jsx(B,{component:"span",sx:{...p.headerLabel},children:"Price"})}),l.jsx(P,{sx:{...p.headerStock,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:l.jsx(B,{component:"span",sx:{...p.headerLabel},children:"Stock"})}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0,flex:"0 1 auto",...p.headerOffer},children:[l.jsx(B,{component:"span",sx:{...p.headerLabel},children:"Offer"}),l.jsx(ol,{sx:{...u.arrowDown,fontSize:12,marginTop:"8px"}})]})]}):l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:1,minWidth:64},children:l.jsx(B,{component:"span",sx:u.headerStatusText,children:"Status"})}),!f&&l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:2,minWidth:88},children:l.jsx(B,{component:"span",sx:u.headerOsaText,children:"Stock / OSA"})}),l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:0,width:20,minWidth:20},children:l.jsx(ol,{sx:{...u.arrowDownAllStore}})})]})]}))]}),(function(){const F=v&&!g,_=n.map((k,V)=>{let $=[];k.offers&&Array.isArray(k.offers)?$=k.offers:k.offer&&typeof k.offer=="string"&&k.offer.includes(`
|
|
1581
|
-
`)
|
|
1582
|
-
`):k.offer&&Array.isArray(k.offer)?$=k.offer:k.offer&&($=[k.offer]);const W=$[0]||"",q=$.length>1?$.slice(1):[];return l.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,...p.rowCard,...m&&{height:"auto",minHeight:152}}:{display:"flex",flexDirection:g&&v?"column":"row",alignItems:"flex-start",flexWrap:g&&v?"nowrap":"wrap",...v?p.rowCard:u.rowCard,...w&&{height:"auto",minHeight:152},gap:g?"8px":"16px",boxSizing:"border-box",mt:V===0?.5:0,mb:.5,width:"100%",maxWidth:"100%",minWidth:0}},children:[!(v&&b)&&l.jsx(P,{sx:{display:"flex",alignItems:"flex-start",width:16,minHeight:20,gap:"8px",flexShrink:0},children:l.jsx(yt,{checked:A(k),onChange:()=>r(k,i),size:"small",sx:y.checkboxRowSx,icon:l.jsx("span",{style:y.checkboxIconSpanRow}),checkedIcon:l.jsx("span",{style:y.checkboxRowCheckedIconSpan,children:l.jsx(il,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),l.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?p.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?l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:"16px",minWidth:0,width:"100%",flex:"0 0 auto"},children:[b&&l.jsx(P,{sx:{display:"flex",alignItems:"flex-start",width:16,minHeight:20,flexShrink:0},children:l.jsx(yt,{checked:A(k),onChange:()=>r(k,i),size:"small",sx:y.checkboxRowSx,icon:l.jsx("span",{style:y.checkboxIconSpanRow}),checkedIcon:l.jsx("span",{style:y.checkboxRowCheckedIconSpan,children:l.jsx(il,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),l.jsx(P,{sx:{...u.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},children:k.productImage?l.jsx(Ar,{src:k.productImage,alt:k.productName,sx:y.avatar}):l.jsx(Ar,{sx:y.avatarPlaceholder,children:k.productName&&k.productName[0]})}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0,maxWidth:"100%",overflow:"hidden"},children:[l.jsx(B,{sx:{...u.productName,wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal",overflow:"hidden",fontSize:"12px",lineHeight:"16px"},children:k.productName}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap",minWidth:0,overflow:"hidden"},children:[l.jsx(B,{sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis"},children:k.productWeight}),k.categoryName&&l.jsxs(l.Fragment,{children:[l.jsx(B,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px"},children:"•"}),l.jsx(B,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px"},children:k.categoryName})]})]}),l.jsxs(B,{sx:{...u.productSku,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis"},children:["SKU: ",k.sku]})]})]}),S?l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"24px",width:"100%",ml:b?"32px":0},children:[b&&l.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:"50px",alignItems:"center",flexWrap:"wrap",width:"100%"},children:[l.jsx(P,{component:"span",sx:k.status===!0?u.statusActiveBox:u.statusNoStockBox,children:k.status===!0?"Active":"No Stock"}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",...p.priceBlock},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[l.jsxs(B,{sx:p.priceText,children:["₹",k.price]}),l.jsx(P,{sx:{...p.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:l.jsx(ep,{sx:p.clockIconSx})})]}),k.mrp&&l.jsxs(B,{sx:y.mrpText,children:["₹",k.mrp]}),k.discount&&l.jsx(B,{sx:y.discountText,children:k.discount})]})]}),C&&!b&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",...p.priceBlock},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[l.jsxs(B,{sx:p.priceText,children:["₹",k.price]}),l.jsx(P,{sx:{...p.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:l.jsx(ep,{sx:p.clockIconSx})})]}),k.mrp&&l.jsxs(B,{sx:y.mrpText,children:["₹",k.mrp]}),k.discount&&l.jsx(B,{sx:y.discountText,children:k.discount})]}),l.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:"50px",alignItems:"center",flexWrap:"wrap",width:"100%"},children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"2px",flexShrink:0},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:0},children:[k.stock===0&&l.jsx(Wi,{title:"No stock",children:l.jsx(cl,{sx:y.errorIcon})}),l.jsx(B,{component:"span",sx:u.stockValue,children:k.stock}),l.jsx(B,{component:"span",sx:u.osaValue,children:k.quantity?`/${k.quantity}`:""})]}),(()=>{const J=typeof k.osa=="number"?k.osa:k.osa??0,X=Number(J),ee=X<50;return l.jsxs(B,{sx:{...u.onShelfText,fontSize:"10px",color:p.onShelfPercentNormal?.color||"#454545"},children:[l.jsxs(P,{component:"span",sx:ee?{color:p.onShelfPercentRed?.color||"#d32f2f"}:{},children:[Math.round(X),"%"]}),l.jsx(P,{component:"span",sx:{color:p.onShelfSpan?.color||"#808080"},children:" on shelf"})]})})()]}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:0,flex:1,minWidth:0},children:[l.jsx(B,{sx:{...p.offerText,whiteSpace:"pre-line",fontSize:"12px",lineHeight:"16px"},children:W}),q.length>0&&l.jsxs(B,{sx:y.moreOffersLink,onClick:J=>O(J,$),children:["+",q.length," more"]})]})]})]}):l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:0,width:"100%"},children:[l.jsx(B,{sx:{...p.offerText,whiteSpace:"pre-line",fontSize:"12px",lineHeight:"16px"},children:W}),q.length>0&&l.jsxs(B,{sx:y.moreOffersLink,onClick:J=>O(J,$),children:["+",q.length," more"]})]})]}):l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{...u.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0,mb:0},children:k.productImage?l.jsx(Ar,{src:k.productImage,alt:k.productName,sx:y.avatar}):l.jsx(Ar,{sx:y.avatarPlaceholder,children:k.productName&&k.productName[0]})}),l.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:[l.jsx(B,{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:k.productName}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",minWidth:0,overflow:"hidden",flexWrap:!v&&g?"nowrap":"wrap"},children:[l.jsx(B,{sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",flexShrink:!v&&g?0:void 0},children:k.productWeight}),k.categoryName&&l.jsxs(l.Fragment,{children:[l.jsx(B,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",flexShrink:0},children:"•"}),l.jsx(B,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",...!v&&g&&{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",flex:"1 1 0"}},children:k.categoryName})]})]}),l.jsxs(B,{sx:{...u.productSku,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",...!v&&g&&{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}},children:["SKU: ",k.sku]})]})]})}),(v&&!g||!v&&!g)&&l.jsx(P,{sx:{display:"flex",alignItems:"flex-start",justifyContent:v&&!g?"center":void 0,...v?p.statusBlock:{},flexShrink:0,minWidth:!v&&!g?64:0,width:g?"100%":void 0,mt:g?1:0,mr:!v&&!g?4:0,...v&&!g&&{alignSelf:"flex-start",marginTop:"8px"}},children:l.jsx(P,{component:"span",sx:k.status===!0?u.statusActiveBox:u.statusNoStockBox,children:k.status===!0?"Active":"No Stock"})}),!v&&!f&&l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-start",flexShrink:0,minWidth:88,width:g?"100%":void 0,mt:g?1:0,ml:g?0:.5,textAlign:"left"},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:0},children:[k.stock===0&&l.jsx(Wi,{title:"No stock",children:l.jsx(cl,{sx:y.errorIcon})}),l.jsx(B,{component:"span",sx:u.stockValue,children:k.stock}),l.jsx(B,{component:"span",sx:u.osaValue,children:k.quantity?`/${k.quantity}`:""})]}),(()=>{const J=Number(typeof k.osa=="number"?k.osa:k.osa??0),X=J<50;return l.jsxs(B,{sx:{...u.onShelfText,color:"#808080",textAlign:"left"},children:[l.jsxs(P,{component:"span",sx:X?{color:"#d32f2f"}:{},children:[Math.round(J),"%"]})," on shelf"]})})()]}),l.jsx(P,{sx:{width:20,flexShrink:0,minWidth:20}})]}),!v&&f&&l.jsx(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-start",width:"100%",mt:1,ml:"32px",...g&&{minHeight:48}},children:l.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:12,flexWrap:g?"nowrap":"wrap"},children:[g&&l.jsx(P,{component:"span",sx:k.status===!0?u.statusActiveBox:u.statusNoStockBox,children:k.status===!0?"Active":"No Stock"}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:0},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:0},children:[k.stock===0&&l.jsx(Wi,{title:"No stock",children:l.jsx(cl,{sx:y.errorIcon})}),l.jsx(B,{component:"span",sx:u.stockValue,children:k.stock}),l.jsx(B,{component:"span",sx:u.osaValue,children:k.quantity?`/${k.quantity}`:""})]}),(()=>{const J=Number(typeof k.osa=="number"?k.osa:k.osa??0),X=J<50;return l.jsxs(B,{sx:{...u.onShelfText,color:"#808080",textAlign:"left"},children:[l.jsxs(P,{component:"span",sx:X?{color:"#d32f2f"}:{},children:[Math.round(J),"%"]})," on shelf"]})})()]})]})}),v&&!C&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",...p.priceBlock,flexShrink:0,minWidth:0,flex:"0 1 auto",width:g?"100%":void 0,mt:g?1:0},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[l.jsxs(B,{sx:p.priceText,children:["₹",k.price]}),l.jsx(P,{sx:{...p.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:l.jsx(ep,{sx:p.clockIconSx})})]}),k.mrp&&l.jsxs(B,{sx:y.mrpText,children:["₹",k.mrp]}),k.discount&&l.jsx(B,{sx:y.discountText,children:k.discount})]}),v&&!S&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",...p.stockBlock,flexShrink:0,minWidth:0,width:g?"100%":void 0,mt:g?1:0},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:0},children:[k.stock===0&&l.jsx(Wi,{title:"No stock",children:l.jsx(cl,{sx:y.errorIcon})}),l.jsx(B,{component:"span",sx:u.stockValue,children:k.stock}),l.jsx(B,{component:"span",sx:u.osaValue,children:k.quantity?`/${k.quantity}`:""})]}),(()=>{const J=typeof k.osa=="number"?k.osa:k.osa??0,X=Number(J),ee=X<50;return l.jsxs(B,{sx:{...u.onShelfText,fontSize:"10px",color:p.onShelfPercentNormal.color},children:[l.jsxs(P,{component:"span",sx:ee?{color:p.onShelfPercentRed.color}:{},children:[Math.round(X),"%"]})," ",l.jsx(P,{component:"span",sx:{color:p.onShelfSpan.color},children:"on shelf"})]})})()]}),v&&!m&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",...p.offerBlock,minWidth:0,flex:"0 1 auto",width:g?"100%":void 0,mt:g?1:0},children:[l.jsx(B,{sx:{...p.offerText,whiteSpace:"pre-line"},children:W}),q.length>0&&l.jsxs(B,{sx:y.moreOffersLink,onClick:J=>O(J,$),children:["+",q.length," more"]})]})]},k.id||V)});return F?l.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:[l.jsx(P,{sx:{gridColumn:"1 / -1",display:"grid",gridTemplateColumns:"subgrid",gap:"12px",alignItems:"center",...p.tableHeader,boxSizing:"border-box"},children:b?l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0},children:[l.jsx(yt,{checked:n.length>0&&n.every(A),indeterminate:n.some(A)&&!n.every(A),onChange:()=>{n.every(A)?n.forEach(k=>r(k,i,!1)):n.forEach(k=>{A(k)||r(k,i,!0)})},size:"small",sx:y.checkboxHeaderSx,icon:l.jsx("span",{style:y.checkboxIconSpanHeader}),checkedIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})}),indeterminateIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})})}),l.jsx(B,{component:"span",sx:{...p.headerLabel,...p.headerProduct},children:"Product"})]}):l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:l.jsx(yt,{checked:n.length>0&&n.every(A),indeterminate:n.some(A)&&!n.every(A),onChange:()=>{n.every(A)?n.forEach(k=>r(k,i,!1)):n.forEach(k=>{A(k)||r(k,i,!0)})},size:"small",sx:y.checkboxHeaderSx,icon:l.jsx("span",{style:y.checkboxIconSpanHeader}),checkedIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})}),indeterminateIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})})})}),l.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0},children:l.jsx(B,{component:"span",sx:{...p.headerLabel,...p.headerProduct},children:"Product"})}),!b&&l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"center",minWidth:0},children:l.jsx(B,{component:"span",sx:{...p.headerLabel},children:"Status"})}),!C&&l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0},children:l.jsx(B,{component:"span",sx:{...p.headerLabel},children:"Price"})}),!S&&l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0},children:l.jsx(B,{component:"span",sx:{...p.headerLabel},children:"Stock"})}),!m&&l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0,...p.headerOffer},children:[l.jsx(B,{component:"span",sx:{...p.headerLabel},children:"Offer"}),l.jsx(ol,{sx:{...u.arrowDown,fontSize:12,marginTop:"8px",marginLeft:"20px"}})]})]})}),_]}):_})(),l.jsxs(kd,{open:N,anchorEl:I,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:y.popoverPaper},children:[l.jsx(B,{sx:y.popoverTitle,children:"Offers"}),M.map((F,_)=>l.jsxs(B,{sx:y.popoverItem,children:[_+1,". ",F]},_))]}),a&&typeof c=="function"&&typeof d=="function"&&l.jsxs(P,{sx:{...h.wrapper,width:"100%",maxWidth:"100%",flexWrap:"wrap"},children:[l.jsxs(P,{sx:h.resultsPerPageBox,children:[l.jsx(B,{component:"span",sx:h.resultsPerPageText,children:"Results per page"}),l.jsx(Pn,{value:a.limit??10,onChange:F=>d(Number(F.target.value)),IconComponent:Ir,variant:"standard",disableUnderline:!0,sx:h.select,children:[5,10,20,50].map(F=>l.jsx(Be,{value:F,children:F},F))})]}),l.jsxs(P,{sx:h.navBox,children:[l.jsx(mt,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>c(1),sx:h.iconButton,title:"First page",children:l.jsx(Jd,{sx:{width:16,height:16,opacity:1}})}),l.jsx(mt,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>c((a.currentPage??1)-1),sx:h.iconButton,title:"Previous page",children:l.jsx(Ri,{sx:h.paginationIcon??y.paginationIcon})}),l.jsx(B,{component:"span",sx:h.pageText,children:(a.totalCount??0)===0?"0 of 0":`${((a.currentPage??1)-1)*(a.limit??10)+1}-${Math.min((a.currentPage??1)*(a.limit??10),a.totalCount??0)} of ${a.totalCount??0}`}),l.jsx(mt,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>c((a.currentPage??1)+1),sx:h.iconButton,title:"Next page",children:l.jsx(At,{sx:{width:16,height:16,opacity:1}})}),l.jsx(mt,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>c(a.totalPages??1),sx:h.iconButton,title:"Last page",children:l.jsx(Qd,{sx:h.paginationIcon??y.paginationIcon})})]})]})]})})}const $N={category:"all",status:"all",search:"",store:[]},zN=()=>{const e=on(),t=Ot(),n=Pt(),[r]=Tb(),i=r.get("categoryName"),s=fn(),a=s.categoryDetail,[c,d]=j.useState(()=>({...$N,...n.state?.filters||{}})),u=(Array.isArray(n.state?.selectedProducts)?n.state.selectedProducts:[]).reduce((Y,ve)=>{const de=(ve.categoryName||ve.category||i||"").toString().trim();if(!de)return Y;const Fe=Y[de]||[];return Fe.some(Ie=>Ie.id===ve.id)?Y[de]=Fe:Y[de]=[...Fe,ve],Y},{}),[p,h]=j.useState(u),[,y]=j.useState(null),[x,g]=j.useState(!1),[f,m]=j.useState([]),[S,C]=j.useState(!1),[b,v]=j.useState(!1),{integrationData:w,companyId:A,loading:I,productsLoading:z}=Xe(Q=>Q.dashboard),M=j.useRef(!1),L=j.useRef(!1);j.useEffect(()=>{!A&&!M.current&&(M.current=!0,e(Uo()))},[e,A]);const O=j.useMemo(()=>w&&typeof w=="object"&&Object.keys(w).length>0?{matched:!0,error:"",apiResponse:w,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[w]),T=Xe(Q=>Q.dashboard),{products:N=[],stores:D=[],pagination:U={}}=T||{},{currentPage:F=1,limit:_=10,totalCount:k=0,totalPages:V=1,hasNextPage:$=!1}=U,{sharedCatalogues:W=[],sharedCataloguesTotal:q=0,lastStableActiveCatalogsCount:J=null}=Xe(Q=>Q.productSettings??{}),X=j.useMemo(()=>Array.isArray(W)?W.filter(Q=>Q.status===!0).length:0,[W]),te=q>0&&W.length>=q?X:J??X,ie=j.useMemo(()=>{if(!i||!Array.isArray(N))return[];const Q=i.trim().toLowerCase();return N.filter(Y=>{const ve=(Y.categoryName||Y.category||"").toString().trim().toLowerCase();return ve&&ve===Q}).map(Y=>({...Y,catalogProductId:Y.productId||Y.id,id:Y.id||Y.sku||Y.productName}))},[N,i]),ce=ie.length>0,ae=j.useMemo(()=>{if(!ie||ie.length===0)return;const Q=ie.map(Y=>Number(Y.price??Y.sellingPrice??Y.mrp)).filter(Y=>Number.isFinite(Y)&&Y>=0);if(Q.length!==0)return{min:Math.min(...Q),max:Math.max(...Q)}},[ie]),oe=Array.isArray(N)&&N.length>0,pe=Array.isArray(c.store)?c.store:[],ge=!(pe.length===1&&pe[0]!=="all"),ue=Q=>{Q.preventDefault(),t("/settings",{state:{tenantIntegrationData:O.apiResponse}})},me=D.length>0?D:[{id:"all",name:"All Stores",storeCode:"all"}],ze=Q=>{d(Q)},we=j.useCallback((Q={})=>{const Y=Array.isArray(c.store)?c.store:[],ve={page:F,limit:_,...Q};if(i&&i.trim()&&(ve.categoryName=i.trim()),Y.length>0&&!Y.includes("all")){const de=Y.map(Fe=>D.find(Ge=>Ge.id===Fe)?.storeCode).filter(Boolean);de.length>0&&(ve.storeCode=de.join(","))}return(c.status==="active"||c.status==="inactive")&&(ve.status=c.status==="active"),(c.stock==="inStock"||c.stock==="outOfStock")&&(ve.inStock=c.stock==="inStock"),typeof c.minPrice=="number"&&Number.isFinite(c.minPrice)&&(ve.minPrice=c.minPrice),typeof c.maxPrice=="number"&&Number.isFinite(c.maxPrice)&&(ve.maxPrice=c.maxPrice),c.search!=null&&String(c.search).trim()!==""&&(ve.search=String(c.search).trim()),ve},[i,F,_,c.store,c.status,c.stock,c.minPrice,c.maxPrice,c.search,D]),ye=Q=>{e(Ln(we({page:Q})))},_e=Q=>{e(Ln(we({page:1,limit:Q})))},Le=j.useCallback((Q,Y={})=>{const ve=Array.isArray(c.store)?c.store:[],de={page:1,limit:5e3,...Y};if(Q&&String(Q).trim()!==""&&(de.categoryName=String(Q).trim()),ve.length>0&&!ve.includes("all")){const Fe=ve.map(Ie=>D.find(kt=>kt.id===Ie)?.storeCode).filter(Boolean);Fe.length>0&&(de.storeCode=Fe.join(","))}return c.search!=null&&String(c.search).trim()!==""&&(de.search=String(c.search).trim()),de},[c.store,c.search,D]),Ne=j.useCallback(async()=>{const Y=(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]).map(le=>(le?.categoryName??le?.name??"").toString().trim()).filter(Boolean),ve=Array.isArray(p[i])?p[i]:[],de=[];for(const le of Y){if(le===i){ve.length>0&&de.push(ve);continue}try{const ke=Le(le),Re=await e(Ms(ke)).unwrap().catch(()=>({})),nn=Array.isArray(Re?.data)?Re.data:Array.isArray(Re?.products)?Re.products:Array.isArray(Re)?Re:[];de.push(nn)}catch{de.push([])}}ve.length>0&&!Y.includes(i)&&de.push(ve);const Fe=new Set(Y);Object.keys(p||{}).forEach(le=>{if(le===i||Fe.has(le))return;const ke=p[le];Array.isArray(ke)&&ke.length>0&&de.push(ke)});const Ie=de.flat().filter(Boolean),Ge=new Set,kt=Ie.map(le=>({...le,catalogProductId:le?.productId??le?.catalogProductId??le?.id,id:le?.id||le?.sku||le?.productName})).filter(le=>{const ke=(le?.productId||le?.id||le?.sku||le?.productName||"").toString();return!ke||Ge.has(ke)?!1:(Ge.add(ke),!0)});m(kt),g(!0)},[e,i,n.state,p,Le]),fe=j.useRef(null),je=j.useRef(null);j.useEffect(()=>{if(!A)return;const Q=Array.isArray(c.store)?c.store:[],Y={page:F,limit:_};if(i&&i.trim()&&(Y.categoryName=i.trim()),Q.length>0&&!Q.includes("all")){const de=Q.map(Fe=>D.find(Ge=>Ge.id===Fe)?.storeCode).filter(Boolean);de.length>0&&(Y.storeCode=de.join(","))}(c.status==="active"||c.status==="inactive")&&(Y.status=c.status==="active"),(c.stock==="inStock"||c.stock==="outOfStock")&&(Y.inStock=c.stock==="inStock"),typeof c.minPrice=="number"&&Number.isFinite(c.minPrice)&&(Y.minPrice=c.minPrice),typeof c.maxPrice=="number"&&Number.isFinite(c.maxPrice)&&(Y.maxPrice=c.maxPrice),c.search!=null&&String(c.search).trim()!==""&&(Y.search=String(c.search).trim());const ve=JSON.stringify(Y);fe.current!==ve&&(fe.current=ve,e(Ln(Y)))},[A,i,F,_,c.store,c.status,c.stock,c.minPrice,c.maxPrice,c.search,e,D]);const Oe=(Q,Y)=>{h(ve=>{const de=ve[Y]||[];let Fe;return de.some(Ie=>Ie.id===Q.id)?Fe=de.filter(Ie=>Ie.id!==Q.id):Fe=[...de,Q],{...ve,[Y]:Fe}}),y(Y)};j.useEffect(()=>{if(L.current||!i||!Array.isArray(ie)||ie.length===0||!(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]).map(de=>de?.categoryName??de?.name??de).filter(Boolean).includes(i))return;if((p[i]||[]).length>0){L.current=!0;return}queueMicrotask(()=>{h(de=>({...de,[i]:ie}))}),L.current=!0},[i,ie,p,n.state?.selectedCategories]),j.useEffect(()=>{A&&(e($t(A)),e(Ho()),i&&i.trim()&&e(Fs({categoryName:i.trim()})),n.state?.filters||(i&&i.trim()?e(Ln({categoryName:i.trim(),page:1,limit:10})):e(Ln({page:1,limit:10}))),e(qt({page:1})))},[e,A,i,n.state?.filters]),j.useEffect(()=>{if(!A||q<=0)return;(Array.isArray(W)?W.length:0)<q&&e(qt({page:1,limit:q}))},[A,q,W?.length,e,W]);const se=Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[],re=p[i]||[],G=ce&&re.length===ie.length,he=new Map(se.map(Q=>{const Y=(Q?.categoryName??Q?.name??"").toString().trim();return Y?[Y,Q]:null}).filter(Boolean));if(i){const Q=i.toString().trim();Q&&(G?he.has(Q)||he.set(Q,{categoryName:Q}):he.delete(Q))}const xe=Array.from(he.values());return l.jsxs(l.Fragment,{children:[l.jsx(Ym,{filters:c,onFilterChange:ze,styles:a.topBar,stores:me,tenantStatus:O,hasProducts:oe,priceRange:ae,showBackButton:!0,backTo:"/",backState:{selectedCategories:xe,selectedProducts:Object.values(p||{}).flat()}}),l.jsxs(P,{sx:a.contentWrapper??{marginTop:0,position:"relative",zIndex:0},children:[I||!A?l.jsx(yo,{text:i?"Fetching Products":"Fetching",fullScreen:!1}):i?i&&z?l.jsx(yo,{text:"Fetching Products",fullScreen:!1}):ce?l.jsxs(P,{sx:a.root,children:[l.jsxs(or,{ref:je,maxWidth:"lg",sx:{width:"100%",px:{xs:1,sm:2,md:4},display:"flex",flexDirection:"column",alignItems:"stretch"},children:[l.jsx(Jm,{productState:T,categoryName:i,categoryProductCount:ie.length,activeCatalogsCount:te,onManageClick:()=>t("/catalogs/manage-shared"),matchHomePageLayout:!0}),l.jsx(_N,{data:ie,styles:a,selectedProducts:p[i]||[],onSelectProduct:Oe,categoryName:i,showLimitedColumns:ge,pagination:{currentPage:F,limit:_,totalCount:k,totalPages:V,hasNextPage:$},onPageChange:ye,onLimitChange:_e})]}),l.jsx(ey,{containerRef:je,onPromoPrint:Ne,onCreateCatalog:()=>C(!0),onOsaRequest:()=>v(!0),selectedProducts:Object.values(p||{}).flat(),selectedCategories:xe})]}):l.jsx(P,{sx:a.loadingBox??{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(B,{sx:s?.emptyProduct&&s.emptyProduct.title||{fontSize:"16px",fontWeight:600,color:"#1a1a1a"},children:`No products found in the "${i}" category.`})}):l.jsx(Vd,{handleStartSyncing:ue,loading:!1}),l.jsx(iy,{open:x,onClose:()=>{g(!1),m([])},selectedProducts:f},x?"open":"closed"),l.jsx(ny,{open:S,onClose:()=>C(!1),stores:me,selectedProducts:Object.values(p||{}).flat(),selectedCategories:xe,onCreateSuccess:Q=>{h(Y=>({...Y,[i]:[]})),C(!1),Q&&t("/",{state:{catalogCreated:!0,catalogSlug:Q}})}}),l.jsx(ry,{open:b,onClose:()=>v(!1),stores:me,selectedProducts:Object.values(p||{}).flat(),selectedCategories:xe,onSuccess:()=>h(Q=>({...Q,[i]:[]}))})]})]})};function LN(){return l.jsxs(rb,{children:[l.jsx(Mr,{path:"/",element:l.jsx(OI,{})}),l.jsx(Mr,{path:"/product-setting",element:l.jsx(GI,{})}),l.jsx(Mr,{path:"/products/settings/ftp-sync",element:l.jsx(gN,{})}),l.jsx(Mr,{path:"/catalogs/manage-shared",element:l.jsx(MN,{})}),l.jsx(Mr,{path:"/category",element:l.jsx(zN,{})})]})}function BN({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return l.jsx(LN,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}const jN=()=>l.jsx(yo,{text:"Fetching",fullScreen:!0});return({apiUrl:e,authToken:t,basePath:n="/",StoresModal:r,storesModalProps:i,onStoreSelect:s})=>l.jsx("div",{style:{width:"100%",minHeight:"100vh"},children:l.jsx(PS,{apiUrl:e,authToken:t,children:l.jsx(Gb,{store:bf,children:l.jsx(t0.PersistGate,{loading:l.jsx(jN,{}),persistor:AS,children:l.jsx(bb,{basename:n,children:l.jsx(BN,{StoresModal:r,storesModalProps:i,onStoreSelect:s})})})})})})}));
|
|
1580
|
+
`},VI=({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,c=[];e.forEach(h=>{for(let y=0;y<a;y++)c.push(h)});const d={A4:jI,A7:WI},p=(d[n]||d.A4)({selectedProducts:c,selectedDesign:t,itemsToShow:r});try{s.document.open(),s.document.write(p),s.document.close()}catch(h){console.error("Error writing to print window:",h),alert("Error generating print preview. Please check console for details.")}},sl=l.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:"#FFFFFF"}}),al=l.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2563EB",background:"#FFFFFF",position:"relative"},children:l.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:l.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),UI=()=>{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}`}},ly=({open:e,onClose:t,selectedProducts:n=[]})=>{const r=On(),i=z.useMemo(()=>UI(),[]),[s,a]=z.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[c,d]=z.useState("design1"),[u,p]=z.useState(""),[h,y]=z.useState(1),[b,g]=z.useState(!1),[f,m]=z.useState(!1),S=v=>a(w=>({...w,[v]:!w[v]})),C=()=>{if(!n||n.length===0){m(!0);return}if(!u){g(!0);return}g(!1);const v=h>0?h:1;VI({selectedProducts:n,selectedDesign:c,sheetSize:u,itemsToShow:s,copyPerItem:v}),t()};z.useEffect(()=>{(e&&n&&n.length>0||!e)&&queueMicrotask(()=>m(!1))},[e,n]);const x=r.promoPrintModal;return l.jsxs(lo,{open:e,onClose:t,maxWidth:!1,PaperProps:{sx:x.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[l.jsx(co,{sx:{p:0},children:l.jsxs(P,{sx:x.header,children:[l.jsx(j,{sx:x.headerTitle,children:"Promo Print"}),l.jsx(P,{component:"button",onClick:t,sx:x.crossIconCard,"aria-label":"Close",children:l.jsx(oy,{sx:{fontSize:16,color:"#454545"}})})]})}),l.jsx(Oi,{sx:x.content,children:l.jsxs(P,{sx:x.middleCard,children:[l.jsxs(P,{sx:x.itemsToShowSection,children:[l.jsx(j,{sx:x.sectionTitle,children:"Items to show"}),l.jsxs(P,{sx:x.checkboxRow,children:[l.jsx(kn,{control:l.jsx(bt,{checked:s.productName,onChange:()=>S("productName"),size:"small",sx:x.checkboxSx,icon:sl,checkedIcon:al}),label:"Product Name",sx:x.checkboxLabel}),l.jsx(kn,{control:l.jsx(bt,{checked:s.percentOff,onChange:()=>S("percentOff"),size:"small",sx:x.checkboxSx,icon:sl,checkedIcon:al}),label:"Percent OFF",sx:x.checkboxLabel}),l.jsx(kn,{control:l.jsx(bt,{checked:s.mrp,onChange:()=>S("mrp"),size:"small",sx:x.checkboxSx,icon:sl,checkedIcon:al}),label:"MRP",sx:x.checkboxLabel}),l.jsx(kn,{control:l.jsx(bt,{checked:s.discountPrice,onChange:()=>S("discountPrice"),size:"small",sx:x.checkboxSx,icon:sl,checkedIcon:al}),label:"Discount Price",sx:x.checkboxLabel})]})]}),l.jsxs(P,{sx:x.designSection,children:[l.jsx(j,{sx:x.sectionTitle,children:"Promo Design"}),l.jsxs(P,{sx:x.designContainer,children:[l.jsxs(P,{onClick:()=>d("design1"),sx:{...x.designCard.base,...c==="design1"?x.designCard.selected:x.designCard.unselected},children:[l.jsx(j,{sx:{...x.design1.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"SAVE"}),l.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:l.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[l.jsx(j,{component:"span",sx:{...x.design1.rupeeSymbol},children:"₹"}),l.jsx(j,{component:"span",sx:{...x.design1.bigPrice},children:"1387"})]})}),l.jsxs(P,{sx:{...x.design1.bottomInfo,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[l.jsxs(j,{sx:{...x.design1.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["OUR PRICE: ",l.jsx(j,{component:"span",sx:x.design1.rupeeSymbolSmall,children:"₹"}),"73"]}),l.jsxs(j,{sx:{...x.design1.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP: ",l.jsx(j,{component:"span",sx:x.design1.rupeeSymbolSmall,children:"₹"}),"1460"]})]}),l.jsx(j,{sx:{...x.design1.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"}),l.jsxs(P,{sx:x.design1.dateRow,children:[l.jsxs(j,{sx:x.design1.validFromText,children:["VALID TO: ",i.validTo]}),l.jsxs(j,{sx:x.design1.validToText,children:["PPD: ",i.ppd]})]})]}),l.jsxs(P,{onClick:()=>d("design2"),sx:{...x.designCard.base,...c==="design2"?x.designCard.selected:x.designCard.unselected},children:[l.jsxs(P,{sx:x.design2.mainOfferBlock,children:[l.jsx(j,{sx:{...x.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 1PC @5.00% Off"}),l.jsx(j,{sx:{...x.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 2PC @5.00% Off"})]}),l.jsxs(j,{sx:{...x.design2.mrpBlock,visibility:s.mrp?"visible":"hidden"},children:["MRP:",l.jsx(j,{component:"span",sx:x.design2.rupeeSymbolSmall,children:"₹"}),"1460"]}),l.jsx(j,{sx:{...x.design2.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),l.jsxs(P,{sx:x.design2.dateRow,children:[l.jsxs(j,{sx:x.design2.validFromText,children:["(Valid till: ",i.validTo,")"]}),l.jsxs(j,{sx:x.design2.validToText,children:["(PPD: ",i.ppd,")"]})]})]}),l.jsxs(P,{onClick:()=>d("design3"),sx:{...x.designCard.base,...c==="design3"?x.designCard.selected:x.designCard.unselected},children:[l.jsx(j,{sx:{...x.design3.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),l.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:l.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[l.jsx(j,{component:"span",sx:{...x.design3.rupeeSymbol},children:"₹"}),l.jsx(j,{component:"span",sx:{...x.design3.bigPrice},children:"29"})]})}),l.jsx(j,{sx:{...x.design3.productName,visibility:s.productName?"visible":"hidden"},children:"POTATO BIG KG"}),l.jsxs(P,{sx:x.design3.dateRow,children:[l.jsxs(j,{sx:x.design3.validFromText,children:["[ValidTo: ",i.validTo,"]"]}),l.jsxs(j,{sx:x.design3.validToText,children:["[PPD: ",i.ppd,"]"]})]})]}),l.jsxs(P,{onClick:()=>d("design4"),sx:{...x.designCard.base,...c==="design4"?x.designCard.selected:x.designCard.unselected},children:[l.jsx(j,{sx:{...x.design4.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),l.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:l.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[l.jsx(j,{component:"span",sx:{...x.design4.rupeeSymbol},children:"₹"}),l.jsx(j,{component:"span",sx:{...x.design4.priceWhole},children:"899"}),l.jsx(j,{component:"span",sx:{...x.design4.priceDecimal},children:".70"})]})}),l.jsxs(P,{sx:{...x.design4.saveMrpRow,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[l.jsxs(j,{sx:{...x.design4.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["SAVE: ",l.jsx(j,{component:"span",sx:x.design4.rupeeSymbolSmall,children:"₹"}),"2099.30"]}),l.jsxs(j,{sx:{...x.design4.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP:",l.jsx(j,{component:"span",sx:x.design4.rupeeSymbolSmall,children:"₹"}),"2999"]})]}),l.jsx(j,{sx:{...x.design4.productCode,visibility:s.productName?"visible":"hidden"},children:"MCS-SWE-CP-SO-RG-XXL-1402A5-PuLa"}),l.jsxs(P,{sx:x.design4.dateRow,children:[l.jsxs(j,{sx:x.design4.validFromText,children:["[VALIDITY: ",i.validTo,"]"]}),l.jsxs(j,{sx:x.design4.validToText,children:["[PPID: ",i.ppd,"]"]})]})]}),l.jsxs(P,{onClick:()=>d("design5"),sx:{...x.designCard.base,...c==="design5"?x.designCard.selected:x.designCard.unselected},children:[l.jsxs(P,{sx:x.design5.topSection,children:[l.jsxs(P,{sx:x.design5.leftColumn,children:[l.jsxs(P,{sx:x.design5.rewardsLogo,children:[l.jsxs(P,{sx:x.design5.logoLine1,children:[l.jsx(j,{sx:x.design5.logoMy,children:"My"}),l.jsx(j,{sx:x.design5.logoSpencer,children:"spencers"})]}),l.jsxs(j,{sx:x.design5.logoRewards,children:["Rewa",l.jsx(j,{component:"span",sx:x.design5.rupeeSymbol1,children:"₹"}),"ds"]})]}),l.jsxs(j,{sx:{...x.design5.memberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["MEMBER",l.jsx("br",{}),"PRICE"]}),l.jsxs(j,{sx:{...x.design5.memberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[l.jsx(j,{component:"span",sx:x.design5.rupeeSymbol,children:"₹"}),"99"]})]}),l.jsx(P,{sx:x.design5.verticalDivider}),l.jsxs(P,{sx:x.design5.rightColumn,children:[l.jsxs(j,{sx:{...x.design5.nonMemberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["NON",l.jsx("br",{}),"MEMBER",l.jsx("br",{}),"PRICE"]}),l.jsxs(j,{sx:{...x.design5.nonMemberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[l.jsx(j,{component:"span",sx:x.design5.rupeeSymbol,children:"₹"}),"116"]})]})]}),l.jsxs(P,{sx:x.design5.middleSection,children:[l.jsx(j,{sx:{...x.design5.productName,visibility:s.productName?"visible":"hidden"},children:"MAGGI 2-MINUTE MASALA NOODLES 560G"}),l.jsxs(j,{sx:{...x.design5.mrpText,visibility:s.mrp?"visible":"hidden"},children:["MRP ",l.jsx(j,{component:"span",sx:x.design5.rupeeSymbolSmall,children:"₹"}),"120"]})]}),l.jsx(P,{sx:x.design5.horizontalDivider}),l.jsx(P,{sx:x.design5.bottomSection,children:l.jsx(j,{sx:x.design5.savingsMessage,children:"SAVE UPTO 6% EXTRA MONTHLY WITH MY SPENCERS REWARDS"})})]})]})]}),l.jsxs(P,{sx:x.sheetSizeSection,children:[l.jsx(j,{sx:x.sheetSizeHeader,children:"Sheet Size"}),l.jsxs(P,{sx:x.sheetSizeRow,children:[l.jsx(P,{sx:x.sheetSizeGroup,children:["A4","A7"].map(v=>l.jsx(P,{onClick:()=>{p(v),g(!1)},sx:{...x.sheetSizeBtn,...u===v?x.sheetSizeBtnSelected:{}},children:l.jsx(j,{sx:u===v?{...x.sheetSizeBtnText,...x.sheetSizeBtnTextSelected}:x.sheetSizeBtnText,children:v})},v))}),l.jsxs(P,{sx:x.copyPerItemRow,children:[l.jsx(j,{sx:x.copyPerItemLabel,children:"Enter Copy per item:"}),l.jsx(Ui,{type:"number",value:h,onChange:v=>{const w=parseInt(v.target.value,10);!isNaN(w)&&w>0?y(w):v.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"})]})]})]})]})}),l.jsxs(yd,{sx:{...x.actions,flexDirection:"column",alignItems:"flex-start"},children:[b&&l.jsx(j,{variant:"body2",sx:{color:"red",mb:.5},children:"Please select a sheet size."}),f&&l.jsx(j,{variant:"body2",sx:{color:"red",mb:.5},children:"No products selected. Please select products first."}),l.jsx(P,{sx:{...x.printButtonWrapper,alignSelf:"stretch",display:"flex",justifyContent:"flex-end"},children:l.jsx(Xe,{type:"button",onClick:C,variant:"contained",sx:x.printButton,children:"Print"})})]})]})},HI=it([l.jsx("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),l.jsx("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");function Jd(e){return l.jsx(HI,{...e})}const RI=it([l.jsx("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),l.jsx("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");function Qd(e){return l.jsx(RI,{...e})}const qI=()=>{const e=on(),t=It(),n=Et(),r=On(),i=n.state?.catalogCreated&&n.state?.catalogSlug?{catalogSlug:n.state.catalogSlug}:null,s=()=>{t(n.pathname,{replace:!0,state:{}})},a=r.categoryDetail,[c,d]=z.useState({category:"all",status:"all",search:"",store:[]}),{integrationData:u,companyId:p,loading:h,categoriesLoading:y,categoriesFetchSettled:b,error:g}=Je(Z=>Z.dashboard),f=z.useMemo(()=>u&&typeof u=="object"&&Object.keys(u).length>0?{matched:!0,error:"",apiResponse:u,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[u]),m=Je(Z=>Z.dashboard),{categoryList:S=[],stores:C=[],categoryPagination:x={}}=m||{},v=S,{currentPage:w=1,limit:A=10,totalCount:O=0,totalPages:L=1,hasNextPage:M=!1}=x,{sharedCatalogues:_=[],sharedCataloguesTotal:I=0,lastStableActiveCatalogsCount:T=null}=Je(Z=>Z.productSettings??{}),F=z.useMemo(()=>Array.isArray(_)?_.filter(Z=>Z.status===!0).length:0,[_]),U=I>0&&_.length>=I?F:T??F,N=Array.isArray(S)&&S.length>0,$=()=>{f.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},k=z.useMemo(()=>C.length>0?C:[{id:"all",name:"All Stores",storeCode:"all"}],[C]),V=z.useCallback(Z=>{d(Z)},[d]),B=z.useCallback((Z={})=>{const fe=Array.isArray(c.store)?c.store:[],ye={...Z};if(fe.length>0&&!fe.includes("all")){const K=fe.map(ie=>C.find(ve=>ve.id===ie)?.storeCode).filter(Boolean);K.length>0&&(ye.storeCode=K[0])}return c.search!=null&&String(c.search).trim()!==""&&(ye.search=String(c.search).trim()),c.minOsa!=null&&c.minOsa!==""&&(ye.minOsa=c.minOsa),c.maxOsa!=null&&c.maxOsa!==""&&(ye.maxOsa=c.maxOsa),c.order!=null&&c.order!==""&&(ye.order=c.order),ye},[c.store,c.search,c.minOsa,c.maxOsa,c.order,C]),W=z.useRef(null);z.useEffect(()=>{if(!p)return;const Z=B({page:w,limit:A}),fe=JSON.stringify(Z);W.current!==fe&&(W.current=fe,e(Gn(Z)))},[p,w,A,B,e]);const q=Z=>{const fe=B({page:Z,limit:A});e(Gn(fe))},X=Z=>{const fe=B({page:1,limit:Z});e(Gn(fe))},[G,Q]=z.useState(!1);z.useEffect(()=>{!p&&!G?e(Vo()).finally(()=>{Q(!0)}):p&&queueMicrotask(()=>Q(!0))},[e,p,G]);const ee=z.useRef(null),oe=z.useRef(n.pathname),le=z.useRef(null);z.useEffect(()=>{p&&p!==ee.current&&(ee.current=p,e(zt(p)),e(Gn({page:1,limit:10})),e(Uo()),e(Wo()),e(Yt({page:1})))},[e,p]),z.useEffect(()=>{const Z=oe.current;oe.current=n.pathname;const fe=p&&n.pathname==="/"&&Z!=="/",ye=p&&n.pathname==="/"&&!!n.state?.catalogCreated;(fe||ye)&&(e(Yt({page:1})),e(Gn(B({page:w,limit:A}))),e(Wo()))},[n.pathname,n.state?.catalogCreated,p,e,B,w,A]),z.useEffect(()=>{if(!p||I<=0)return;(Array.isArray(_)?_.length:0)<I&&e(Yt({page:1,limit:I}))},[p,I,_?.length,e,_]);const[ae,re]=z.useState(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]),[ce,H]=z.useState(Array.isArray(n.state?.selectedProducts)?n.state.selectedProducts:[]),he=Z=>{t(`/category?categoryName=${encodeURIComponent(Z.name||Z.categoryName)}`,{state:{filters:c,selectedCategories:ae,selectedProducts:ce}})},[de,ge]=z.useState(!1),[ze,Ee]=z.useState(!1),[me,De]=z.useState(!1),[Le,Ne]=z.useState([]),[,pe]=z.useState(!1),Ve=z.useCallback((Z,fe={})=>{const ye=Array.isArray(c.store)?c.store:[],K={page:1,limit:5e3,...fe};if(Z&&String(Z).trim()!==""&&(K.categoryName=String(Z).trim()),ye.length>0&&!ye.includes("all")){const ie=ye.map(ue=>C.find(je=>je.id===ue)?.storeCode).filter(Boolean);ie.length>0&&(K.storeCode=ie.join(","))}return c.search!=null&&String(c.search).trim()!==""&&(K.search=String(c.search).trim()),K},[c.store,c.search,C]),Ie=z.useCallback(async()=>{const Z=(Array.isArray(ae)?ae:[]).map(ie=>(ie?.categoryName??ie?.name??"").toString().trim()).filter(Boolean),fe=Array.isArray(ce)?ce:[],ye={};fe.forEach(ie=>{const ue=(ie?.categoryName??ie?.category??"").toString().trim();ue&&(ye[ue]||(ye[ue]=[]),ye[ue].push(ie))});const K=new Set(Object.keys(ye));if(Z.length===0&&fe.length===0){Ne([]),De(!0);return}pe(!0);try{const ie=[];for(const _e of Z){const Ye=ye[_e];if(Ye&&Ye.length>0)ie.push(Ye);else{const Se=Ve(_e),we=await e(Ms(Se)).unwrap().catch(()=>({})),Be=Array.isArray(we?.data)?we.data:Array.isArray(we?.products)?we.products:Array.isArray(we)?we:[];ie.push(Be)}}Z.forEach(_e=>K.delete(_e)),K.forEach(_e=>{ye[_e]?.length&&ie.push(ye[_e])});const ue=ie.flat().filter(Boolean),ve=new Set,je=ue.map(_e=>({..._e,catalogProductId:_e?.productId??_e?.catalogProductId??_e?.id,id:_e?.id||_e?.sku||_e?.productName})).filter(_e=>{const Ye=(_e?.productId||_e?.id||_e?.sku||_e?.productName||"").toString();return!Ye||ve.has(Ye)?!1:(ve.add(Ye),!0)});Ne(je),De(!0)}catch{Ne([]),De(!0)}finally{pe(!1)}},[e,ce,ae,Ve]),se=z.useCallback(Z=>{const fe=Z?.categoryName??Z?.name??"",ye=fe,K=Number(Z?.productCount??0);re(ie=>ie.some(ve=>(ve?.categoryName??ve?.name)===fe)?(H(ve=>{if(!Array.isArray(ve)||!ye)return ve||[];const je=ve.filter(Ye=>(Ye?.categoryName??Ye?.category??"").toString().trim()===ye);return K>0&&je.length>=K?ve.filter(Ye=>(Ye?.categoryName??Ye?.category??"").toString().trim()!==ye):ve}),ie.filter(ve=>(ve?.categoryName??ve?.name)!==fe)):[...ie,Z])},[]),ne=G&&g&&!p,{setTopbarProps:xe}=Yi()||{};return z.useEffect(()=>{if(xe)return ne?(xe({hide:!0}),()=>xe({})):(xe({filters:c,onFilterChange:V,styles:a.topBar,stores:k,tenantStatus:f,hasProducts:N}),()=>xe({}))},[xe,ne,c,V,a.topBar,k,f,N]),l.jsxs(l.Fragment,{children:[i&&l.jsx(SI,{catalogSlug:i.catalogSlug,onClose:s}),l.jsx(P,{sx:ne?{marginTop:0}:N?a.contentWrapper??{marginTop:0,display:"flex",flexDirection:"column",alignItems:"center"}:{marginTop:0},children:ne?l.jsx(Vd,{handleStartSyncing:$,loading:!1,sessionExpired:!0}):!G&&!p?l.jsx(mo,{text:"Fetching",fullScreen:!0}):y?l.jsx(mo,{text:"Fetching Categories",fullScreen:!0}):N?l.jsx(P,{sx:a.root,children:l.jsxs(or,{ref:le,maxWidth:"lg",sx:{px:{xs:1,sm:2,md:4}},children:[l.jsx(ey,{productState:m,categoryCount:S.length,activeCatalogsCount:U,onManageClick:()=>t("/catalogs/manage-shared")}),S.length>0?l.jsxs(l.Fragment,{children:[l.jsx(kI,{categoryData:v,styles:a,onView:he,selectedCategories:ae,onToggleCategory:se}),l.jsx(ry,{containerRef:le,selectedCategories:ae,selectedProducts:ce,onPromoPrint:Ie,onCreateCatalog:()=>ge(!0),onOsaRequest:()=>Ee(!0)}),l.jsx(ly,{open:me,onClose:()=>{De(!1),Ne([])},selectedProducts:Le},me?"open":"closed"),l.jsx(iy,{open:de,onClose:()=>ge(!1),stores:k,selectedProducts:ce,selectedCategories:ae,onCreateSuccess:Z=>{re([]),H([]),ge(!1),Z&&t("/",{state:{catalogCreated:!0,catalogSlug:Z}})}}),l.jsx(sy,{open:ze,onClose:()=>Ee(!1),stores:k,selectedProducts:ce,selectedCategories:ae.map(Z=>Z?.categoryName??Z?.name).filter(Boolean),onSuccess:()=>{re([]),H([])}}),O>0&&(()=>{const Z=a?.categoryTablePagination??{};return l.jsxs(P,{sx:{...Z.wrapper||{},width:"100%",marginLeft:"auto",marginRight:0},children:[l.jsxs(P,{sx:Z.resultsPerPageBox,children:[l.jsx(j,{component:"span",sx:Z.resultsPerPageText,children:"Results per page"}),l.jsx(Pn,{value:A,onChange:fe=>X(Number(fe.target.value)),IconComponent:Nr,variant:"standard",disableUnderline:!0,sx:Z.select,children:[5,10,20,50].map(fe=>l.jsx(We,{value:fe,children:fe},fe))})]}),l.jsxs(P,{sx:Z.navBox,children:[l.jsx(yt,{size:"small",disabled:w<=1,onClick:()=>q(1),sx:Z.iconButton,title:"First page",children:l.jsx(Jd,{sx:{width:16,height:16,opacity:1}})}),l.jsx(yt,{size:"small",disabled:w<=1,onClick:()=>q(w-1),sx:Z.iconButton,title:"Previous page",children:l.jsx(Hi,{sx:{width:16,height:16,opacity:1}})}),l.jsx(j,{component:"span",sx:Z.pageText,children:O===0?"0 of 0":`${(w-1)*A+1}-${Math.min(w*A,O)} of ${O}`}),l.jsx(yt,{size:"small",disabled:!M||w>=L,onClick:()=>q(w+1),sx:Z.iconButton,title:"Next page",children:l.jsx(Ot,{sx:{width:16,height:16,opacity:1}})}),l.jsx(yt,{size:"small",disabled:!M||w>=L,onClick:()=>q(L),sx:Z.iconButton,title:"Last page",children:l.jsx(Qd,{sx:{width:16,height:16,opacity:1}})})]})]})})()]}):l.jsxs(P,{sx:{minHeight:280,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:"#f5f7fa",borderRadius:2,p:3},children:[l.jsx(j,{sx:{fontSize:18,fontWeight:600,color:"#454545",mb:1},children:"No Category"}),l.jsx(j,{sx:{fontSize:14,color:"#808080"},children:c.search&&String(c.search).trim()?"No category found for your search.":"No category available."})]})]})}):l.jsx(Vd,{handleStartSyncing:$,loading:h||y||!b,sessionExpired:!1,hasIntegration:f.matched,showFetchingCategoriesLabel:!0,isHomeCategorySearch:!!(c.search&&String(c.search).trim()),isHomeCategorySearchEmpty:!!(c.search&&String(c.search).trim())&&b&&!y&&!h})})]})};function Fn({icon:e,title:t,subtitle:n,subtitleValue:r,onClick:i,selected:s,highlightStyle:a={},action:c,disabled:d=!1,customStyle:u={},titleColorWhenDisabled:p,titleColor:h,subtitleColor:y}){const b={width:"100%",maxWidth:600,height:58,boxSizing:"border-box",background:"#FFFFFF",borderRadius:2,boxShadow:"none",border:"1px solid #F1F1F1",display:"flex",alignItems:"center",gap:1.5,px:2,py:1.5,mb:0,cursor:i&&!d?"pointer":"default",opacity:d?.5:1,...s?a:{}},g=d?p||"#999999":h||"#000000",f=d?"#bbbbbb":y||"#808080",m={card:{...b,...u},cardInner:{display:"flex",alignItems:"center",flex:1,minWidth:0},icon:{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,mr:2},title:{fontWeight:700,fontSize:12,color:g,lineHeight:"16px"},subtitle:{color:f,fontSize:12,fontWeight:400,mt:.5,lineHeight:"16px"}};return l.jsxs(P,{onClick:d?void 0:i,sx:{...m.card,...u||{}},children:[e&&l.jsx(P,{sx:m.icon,children:e}),l.jsxs(P,{sx:m.cardInner,children:[l.jsxs(P,{children:[l.jsx(j,{sx:m.title,children:t}),n&&l.jsx(j,{sx:m.subtitle,children:r?`${r} ${n}`:n})]}),c&&l.jsx(P,{sx:{ml:"auto",display:"flex",alignItems:"center",justifyContent:"center"},children:c})]})]})}function Zd({size:e=15,color:t="#454545",...n}){return l.jsx(gI,{size:e,color:t,...n})}const YI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAASpJREFUeAGVUT1OhGAQ5b/2BPxewhISIHSyJ/AKlnbunsBsZenuCdQOgWQp7VY7C0i+0u2w00DAN2ZNYMOXyCSTGZh5897MJwgcC4Jg7/u+y6tLvELf92bXdeYsIDGJonimKMrFLCBAlwivYI1d1zX/BQzD8AYhlmV5AalrVVV3U2B5KM9xnHsCwb00Td8Nw3iRJOkcQ65R+9R1ncG+flXR9egQtBOcodFLkoQJ452vULs9rsHQv5Ityzrg4w1+wH+XilVVPQ+VINxh4AcAa+RPTdM8isPJURTRE+zQwLIs87BvjPyBGPI8X44OeLo0gdu23YNhQ1eFb09Bo+P8WVmWtW3b30iXkF+DeSFM2OQ7gnFDEbK3AscmgUVR1AgMQDYLeLSVpmkFr/gDCe+DRKwM0doAAAAASUVORK5CYII=",KI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAIpJREFUeAFVTsENwyAMxCkPnowQNmgnCB8Qv46QrtNfV+gG/YPUjtABeGSEDIAgPimJEkvnO9ln+YRYyzn38N5/xKG6gx5aa4O1Vm8DwgXzyLgyJoZm07uU8upYjETUY8H8Y4a+K6U04TyE0Ndav2zE4hZj/GN+Qcs5z8YYGFVK6bn9lLuQEklPaRdNCCms4XdYvwAAAABJRU5ErkJggg==";function GI(e){const{sx:t={},...n}=e;return l.jsxs(P,{sx:{width:20,height:20,opacity:1,position:"relative",flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",...t},...n,children:[l.jsx(P,{component:"img",src:YI,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"}}),l.jsx(P,{component:"img",src:KI,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 cy({size:e=15,color:t="#454545",...n}){return l.jsx(pI,{size:e,color:t,...n})}function XI({size:e=15,color:t="#454545",...n}){return l.jsx(fI,{size:e,color:t,...n})}function JI({size:e=15,color:t="#454545",...n}){return l.jsx(hI,{size:e,color:t,...n})}function QI({airaAiEnabled:e,setAiraAiEnabled:t,selectedCard:n,setSelectedCard:r,syncStep:i=0,syncMethod:s="",onSetupSync:a=()=>{},onSyncNow:c=()=>{},integrationData:d={},...u}){const p={bgcolor:"#F3F8FF",border:"1px solid #2D64B8"},h=It(),y=d?.configs?.sync_frequency||"Daily",b=d?.configs?.sync_time||"10:00 AM",g=d?.type||s||"FTP",f={width:600,maxWidth:"100%",minHeight:468,mx:"auto",mt:4,boxSizing:"border-box",display:"flex",flexDirection:"column",gap:3},m=()=>l.jsxs(P,{sx:{width:"100%",minHeight:156,display:"flex",flexDirection:"column",gap:1.5},children:[l.jsx(P,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",width:67,height:20},children:[l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"General"}),l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]})}),l.jsxs(P,{sx:{width:"100%",minHeight:124,display:"flex",flexDirection:"column",gap:"4px"},children:[l.jsx(Fn,{icon:l.jsx(Zd,{size:15,color:"#454545"}),title:"Manage Shared Catalogs",onClick:()=>h("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:p,action:l.jsx(Ot,{sx:{width:16,height:16,color:"#454545"}})}),l.jsx(Fn,{icon:l.jsx(GI,{}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:p,action:l.jsx(P,{sx:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(_m,{checked:e,onChange:v=>t&&t(v.target.checked),size:"small"})})})]})]}),S=(v,w)=>l.jsxs(P,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",width:48,height:20},children:[l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"Sync"}),l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]}),l.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:[l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(Or,{sx:{width:14.66,height:12,color:"#2D64B8"}})}),l.jsx(j,{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?b:"10:00 AM",O=!v&&i===0;return l.jsxs(P,{sx:{width:"100%",minHeight:288,display:"flex",flexDirection:"column",gap:"4px"},children:[S(O,c),!v&&i===0&&l.jsx(Fn,{icon:l.jsx(Or,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Setup Sync",subtitle:"Sync products",onClick:a,highlightStyle:p,action:l.jsx(Ot,{sx:{width:16,height:16,color:"#454545"}})}),!v&&i===1&&l.jsxs(l.Fragment,{children:[l.jsx(Fn,{icon:l.jsx(Or,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:g,highlightStyle:p,action:l.jsx(Ot,{sx:{width:16,height:16,color:"#454545"}})}),l.jsx(Fn,{icon:l.jsx(Zd,{size:15,color:"#454545"}),title:`Setup ${g} Details`,subtitle:"Start setup",onClick:()=>{h("/products/settings/ftp-sync",{state:{fromSyncStep:i}})},highlightStyle:p,action:l.jsx(Ot,{sx:{width:16,height:16,color:"#454545"}})})]}),i===3&&l.jsxs(l.Fragment,{children:[l.jsx(Fn,{icon:l.jsx(Or,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:s||"FTP",highlightStyle:p,disabled:!0,titleColorWhenDisabled:"#454545",action:l.jsx(Ot,{sx:{width:16,height:16,color:"#454545"}})}),l.jsx(Fn,{icon:l.jsx(Zd,{size:15,color:"#454545"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:p,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:i}}),action:l.jsx(Ot,{sx:{width:16,height:16,color:"#454545"}})}),l.jsxs(P,{sx:{width:"100%",display:"flex",flexWrap:"nowrap",justifyContent:"space-between"},children:[l.jsx(P,{sx:{width:296},children:l.jsx(Fn,{icon:l.jsx(cy,{size:15,color:"#454545"}),title:"Sync Frequency",subtitle:w,highlightStyle:p,customStyle:{mb:0},onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:d}}),action:l.jsx(Ot,{sx:{width:16,height:16,color:"#454545"}})})}),l.jsx(P,{sx:{width:296},children:l.jsx(Fn,{icon:l.jsx(XI,{size:15,color:"#454545"}),title:"Sync Time",subtitle:A,highlightStyle:p,customStyle:{mb:0},onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:d}}),action:l.jsx(Ot,{sx:{width:16,height:16,color:"#454545"}})})})]}),l.jsx(Fn,{icon:l.jsx(JI,{size:15,color:"#454545"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:p,action:l.jsx(Ot,{sx:{width:16,height:16,color:"#454545"}})})]})]})},x=i===3&&d&&Object.keys(d||{}).length>0;return l.jsxs(P,{sx:f,children:[m(),C(x)]})}function ZI({open:e,onClose:t,onSave:n}){vn();const r=On(),[i,s]=z.useState("sftp"),a=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],c=h=>s(h.target.value),d=()=>{n&&n(i),t()},u=()=>{},p=r.productSettingModal;return l.jsx(ao,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:p.modal,children:l.jsxs(P,{sx:p.container,children:[l.jsxs(P,{sx:p.header,children:[l.jsx(j,{sx:p.headerTitle,children:"Sync Method"}),l.jsx(yt,{onClick:t,size:"small",sx:p.closeButton,children:l.jsx(mI,{size:20})})]}),l.jsxs(P,{sx:p.content,children:[l.jsx(Ya,{value:i,onChange:c,children:a.map(h=>l.jsx(kn,{value:h.value,control:l.jsx(fo,{icon:l.jsx(P,{sx:p.radioIcon}),checkedIcon:l.jsx(uI,{size:18,color:"#000"}),sx:p.radioChecked}),label:l.jsx(j,{sx:p.radioLabel,children:h.label}),sx:{...p.formControlLabel,...i===h.value&&{backgroundColor:"#F3F8FF"}}},h.value))}),l.jsxs(P,{sx:p.upgradeSection,children:[l.jsx(j,{sx:p.upgradeText,children:"Upgrade for higher sync limits and more features"}),l.jsx(j,{onClick:u,sx:p.managePlanLink,children:"Manage Plan >"})]})]}),l.jsx(P,{sx:p.footer,children:l.jsx(Xe,{fullWidth:!0,variant:"contained",onClick:d,sx:p.saveButton,children:"Save"})})]})})}const eN=({isOpen:e,onClose:t,onConfirm:n})=>{const r=On();let i;return i=r.productSettingModal,l.jsx(ao,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:i.modal,children:l.jsxs(P,{sx:i.container,children:[l.jsx(P,{sx:i.header,children:l.jsx(j,{sx:{...i.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),l.jsxs(P,{sx:{...i.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[l.jsx(Xe,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),l.jsx(Xe,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function tN(){const e=Et(),t=It(),n=on(),{companyId:r,integrationData:i,loading:s}=Je(D=>D?.dashboard||{}),[a,c]=z.useState(!0),[d,u]=z.useState(),[p,h]=z.useState(0),[y,b]=z.useState(""),[g,f]=z.useState(!1),[m,S]=z.useState(!1),[C,x]=z.useState(!1),[v,w]=z.useState(""),A=z.useRef(null),O=z.useRef(!1);z.useEffect(()=>{const D=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(zt(r)))),D&&r&&!s&&!O.current&&(O.current=!0,n(zt(r))),D||(O.current=!1)},[r,n,s,i,e.state]),z.useEffect(()=>{let D=!1;e.state&&typeof e.state.tenantIntegrationMatched=="boolean"&&(D=e.state.tenantIntegrationMatched);const U=i&&(i?.id||i?.channelId||i?.configs||Array.isArray(i?.data)&&i.data.length>0||typeof i=="object"&&Object.keys(i).length>0),N=e.state?.fromSyncStep===1?1:D===!0||U?3:0;queueMicrotask(()=>h(N))},[e.state,i]);const L=()=>f(!0),M=D=>{b(D),h(1),f(!1)},_=()=>{t("/products/settings/ftp-sync",{state:{fromSyncStep:p}})},I=async()=>{const D=i?.channelId||i?.id;if(!D){w("Channel ID not found"),x(!0),S(!1);return}S(!1);try{const U=await n(Yo(D));if(Yo.fulfilled.match(U)){const N=U.payload?.message==="Sync started successfully"?"Sync started successfully":"Sync not started successfully";w(N),x(!0),N==="Sync started successfully"&&setTimeout(()=>{n(zt(r)),n(zn()),t("/")},2500)}else w("Sync not started successfully"),x(!0)}catch{w("Sync not started successfully"),x(!0)}},T=z.useCallback(()=>{p===1?(h(0),b("")):t("/")},[p,t]),{setSettingTopbarProps:F}=Yi()||{};return z.useEffect(()=>{if(F)return F({onBack:T}),()=>F({})},[F,T]),l.jsxs(P,{sx:{width:"100%",minHeight:"100vh",background:"#f7f8fa",p:0,pt:"72px",display:"flex",flexDirection:"column",alignItems:"center"},children:[l.jsx(ZI,{open:g,onClose:()=>f(!1),onSave:M}),l.jsx(eN,{isOpen:m,onClose:()=>S(!1),onConfirm:I}),l.jsx(go,{open:C,autoHideDuration:4e3,onClose:()=>x(!1),message:v,anchorOrigin:{vertical:"top",horizontal:"center"}}),l.jsx(QI,{airaAiEnabled:a,setAiraAiEnabled:c,selectedCard:d,setSelectedCard:u,syncStep:p,syncMethod:y,integrationData:i,onSetupSync:L,onSetupFTP:_,onSyncNow:()=>S(!0)})]})}const nN=["Setup FTP","Check data","Start Sync"],rN=e=>l.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:l.jsxs(P,{sx:{maxWidth:800,mx:"auto",pt:2,px:2},children:[l.jsx(P,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:2,mb:1},children:nN.map((t,n)=>l.jsx(j,{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:224,height:16,display:"inline-flex",alignItems:"center",justifyContent:"center",flex:1},children:t},t))}),l.jsx(P,{sx:{width:800,height:504,gap:"8px",borderRadius:"16px",padding:"8px",background:"#FFFFFF",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box"},children:l.jsxs(cn,{elevation:0,sx:{width:400,height:210,gap:"24px",borderRadius:"20px",padding:"24px",background:"#fafafa",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[l.jsxs(P,{sx:{width:352,height:98,gap:"12px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[l.jsx(j,{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"}),l.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:352,height:66,boxSizing:"border-box","& li":{display:"list-item",marginBottom:"4px"},"& li:last-child":{marginBottom:0}},children:[l.jsx("li",{children:"Directory should have just one file"}),l.jsx("li",{children:"File format must be in CSV (comma separated)"}),l.jsx("li",{children:"File structure should be flat"})]})]}),l.jsx(P,{sx:{display:"flex",justifyContent:"flex-end",marginTop:"auto"},children:l.jsx(Xe,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})]})});function oN(e){const{sx:t,fontSize:n,...r}=e;return l.jsxs(er,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[l.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"}),l.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"})]})}function iN(e){const{sx:t,fontSize:n,...r}=e;return l.jsxs(er,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[l.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"}),l.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"}),l.jsx("path",{d:"M2 9L12.666667 1.666667",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round"})]})}const sN=({active:e,completed:t,showBlue:n})=>{const r=!e&&!t,i=n?"#2D64B8":"#bbb";return l.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?l.jsx("svg",{width:10,height:10,viewBox:"0 0 24 24",fill:"none",style:{display:"block"},children:l.jsx("path",{d:"M7 10l5 5 5-5",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):l.jsx("svg",{width:8,height:8,viewBox:"0 0 24 24",fill:"none",style:{display:"block"},children:l.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#2D64B8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})},ll=({steps:e=[],activeStep:t=0,showCheckDataBlueTick:n=!1,progressToCheckData:r=!1,showSetupFtpBlueTick:i=!1,showStartSyncBlueTick:s=!1,instantComplete:a=!1,progressSegment:c,filledSegments:d,filledSegmentsStart:u=0,previousStepsComplete:p=!1})=>{const y=vn().transitions?.duration?.standard??400,[b,g]=z.useState(0),[f,m]=z.useState(!1),S=Math.max(1,e.length),C=50/S,x=100*(S-1)/S,v=40/S,w=S>1?100/S:0,A=100,O=z.useMemo(()=>{let L;if(typeof d=="number"){const _=typeof u=="number"?u:0,I=d-_;L=w*(_+b*I)}else typeof c=="number"?L=w*(c+b):s?L=b?x:0:r?L=b?x*.5:0:L=b?v:0;const M=Math.min(L,x)/x;return Math.round(M*A)},[b,d,u,c,s,r,w,x,v]);return z.useEffect(()=>{if(a){setTimeout(()=>{g(1),m(!0)},0);return}if(typeof d=="number"&&typeof u=="number"&&u>0){setTimeout(()=>{g(0),m(!1)},0);const M=setTimeout(()=>{g(1),setTimeout(()=>m(!0),y)},50);return()=>clearTimeout(M)}setTimeout(()=>{g(0),m(!1)},0);const L=setTimeout(()=>{g(1),setTimeout(()=>m(!0),y)},50);return()=>clearTimeout(L)},[t,e.length,r,a,d,u,y]),l.jsxs(P,{sx:{width:800,opacity:1},children:[l.jsx(P,{sx:{width:800,height:44,gap:"16px",opacity:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:e.map((L,M)=>l.jsxs(P,{sx:{width:256,height:44,gap:"12px",opacity:1,paddingLeft:"16px",paddingRight:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},children:[l.jsx(sN,{active:M===t,completed:M<t,showBlue:M===0&&i||M===1&&n&&(f||p)||M===2&&s}),l.jsx(P,{component:"span",sx:{width:224,height:16,fontFamily:"Inter, sans-serif",fontWeight:M===0?600:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",color:"#454545",opacity:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:L})]},L))}),l.jsx(P,{sx:{width:"100%",mt:1,mb:0},children:l.jsx(P,{sx:{marginLeft:`${C}%`,width:`${x}%`},children:l.jsx(hm,{variant:"progress",steps:A+1,position:"static",activeStep:O,sx:{maxWidth:"100%",flexGrow:1,background:"transparent",padding:0,"& .MuiMobileStepper-progress":{width:"100%"},"& .MuiLinearProgress-root":{height:4,borderRadius:2,backgroundColor:"#f2f2f2"},"& .MuiLinearProgress-bar":{backgroundColor:"#219653"}},nextButton:null,backButton:null})})})]})},aN=e=>e.dashboard?.companyId||"";function lN(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 cN=e=>{const{ftpDetails:t={},stepperProps:n={}}=e,[r,i]=z.useState(null),s=Et(),a=It(),c=Je(aN),[d,u]=z.useState(!1);z.useEffect(()=>{let M,_;return setTimeout(()=>{u(!1),M=setTimeout(()=>{_=setTimeout(()=>u(!0),600)},100)},0),()=>{M&&clearTimeout(M),_&&clearTimeout(_)}},[]);const[p,h]=z.useState(!1),y=localStorage.getItem("selectedSyncMethod")||"sftp",[b,g]=z.useState(`${y}:`),[f,m]=z.useState(""),[S,C]=z.useState(""),x=on(),v=Je(M=>M.productSettings?.loading||!1),w=Je(M=>M.productSettings?.error||null),A=vn();ht(A.breakpoints.up("lg"));const O=Je(M=>M.productSettings.syncData);z.useEffect(()=>{const M=s.state?.ftpConfig,_=s.state?.tenantIntegrationData;if(O&&O.serverAddress){setTimeout(()=>{g(O.serverAddress||""),m(O.configs&&O.configs.username||""),C(O.configs&&O.configs.password||"")},0);return}if(t&&(t.host||t.username||t.password)){const I=t.type||"sftp",T=t.host||"",F=t.port||"",D=t.path||"",U=`${I}://${T}${F?`:${F}`:""}${D?`/${D}`:""}`;setTimeout(()=>{g(U),m(t.username||""),C(t.password||"")},0);return}if(_&&_.configs){const I=_.configs,T=I.type||_.type||"sftp",F=I.host||"",D=I.port||"",U=I.path||"",N=`${T}://${F}:${D}/${U}`,$=I.username||"",k=I.password||"";setTimeout(()=>{g(N),m($),C(k)},0);return}if(M){const T=`${M.type||"sftp"}://${M.host}:${M.port}/${M.path}`,F=M.username||"",D=M.password||"";setTimeout(()=>{g(T),m(F),C(D)},0)}},[s.state,O,t]);const L=async()=>{if(!c){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:M,host:_,port:I,path:T}=lN(b),F=await x(Ro({serverAddress:b,username:f,password:S,companyId:c}));if(!Ro.fulfilled.match(F))return;const D=F.payload;if(s.state?.fromSettingsIcon){const $=D?.entity_type||r?.entity_type||"products",k={...r||{},companyId:c,tenantId:c,type:M,serverAddress:b,configs:{host:_,port:Number(I),path:T,username:f,password:S,sync_frequency:r?.configs?.sync_frequency||t?.sync_frequency||"",sync_time:r?.configs?.sync_time||t?.sync_time||""},entity_type:$,mappings:r?.mappings||D?.existing_mapping?.mappings||[]};i(k),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(k)),a("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:k}});return}const U=D?.entity_type||"",N={tenantId:c,type:M,serverAddress:b,configs:{host:_,port:Number(I),path:T,username:f,password:S,sync_frequency:"",sync_time:""},entity_type:U||"products",mappings:D?.existing_mapping?.mappings||[]};x(zs(N)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(N)),e.onNext&&e.onNext({putjson:N})};return l.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:l.jsxs(P,{sx:{width:800,minHeight:600,gap:"32px",opacity:1,pt:2,left:"340px",mx:"auto",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[l.jsx(P,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:l.jsx(ll,{...n,showSetupFtpBlueTick:d})}),l.jsx(P,{sx:{width:800,height:504,minHeight:504,borderRadius:"16px",padding:"8px",paddingBottom:"32px",gap:"8px",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",bgcolor:"#fff",boxSizing:"border-box",marginBottom:"32px"},children:l.jsxs(P,{sx:{width:400,height:380,borderRadius:"20px",padding:"24px",gap:"24px",opacity:1,bgcolor:"#F5F5F5",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[l.jsx(P,{sx:{width:352,height:20,justifyContent:"space-between",opacity:1,display:"flex",alignItems:"center"},children:l.jsx(j,{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"})}),l.jsxs(P,{component:"form",autoComplete:"off",sx:{width:352,height:224,gap:"16px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[l.jsxs(P,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[l.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Server Address"}),l.jsx("input",{type:"text",value:b,onChange:M=>g(M.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}})]}),l.jsxs(P,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[l.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Username"}),l.jsx("input",{type:"text",value:f,onChange:M=>m(M.target.value),placeholder:"Enter username",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}})]}),l.jsxs(P,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box",position:"relative"},children:[l.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Password"}),l.jsx("input",{type:p?"text":"password",value:S,onChange:M=>C(M.target.value),placeholder:"Enter password",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px 44px 12px 12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}}),l.jsx(yt,{"aria-label":"toggle password visibility",onClick:()=>h(M=>!M),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:p?l.jsx(iN,{}):l.jsx(oN,{})})]})]}),l.jsxs(P,{sx:{display:"flex",justifyContent:"flex-end",gap:2,marginTop:"auto"},children:[l.jsx(Xe,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:e.onBack,children:"Back"}),l.jsx(Xe,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:L,disabled:v,children:v?"Loading...":"Next"})]}),w&&l.jsx(j,{color:"error",sx:{mt:1,fontSize:14},children:"Fill the credentials"})]})})]})})},dN=e=>e.productSettings.ftpColumns||[],pN=e=>e.productSettings.preview||[],uN=e=>e.productSettings.loading,fN=e=>e.productSettings.error,hN=e=>e.productSettings.existingMapping,gN=e=>e.productSettings.entity_type||"products",mN=e=>{const{mapping:t=[],onBack:n,onNext:r,stepperProps:i={}}=e,s=Et(),a=It(),c=s.state?.fromSettingsIcon,[d,u]=z.useState(()=>{if(s.state?.putjson)return s.state.putjson;const N=window.localStorage.getItem("ftpSyncPutjson");return N?JSON.parse(N):t.length>0?{mappings:t}:null}),[p,h]=z.useState([]),[y,b]=z.useState({}),g=Je(dN),f=Je(pN),m=Je(uN),S=Je(fN),C=Je(hN),x=Je(gN),v=z.useRef(m);z.useEffect(()=>{m&&!v.current&&queueMicrotask(()=>b({})),v.current=m},[m]);const w=z.useRef(!1);z.useLayoutEffect(()=>{C==null||!C?.mappings||C.mappings.length===0?w.current||(w.current=!0,queueMicrotask(()=>b({}))):w.current=!1},[C]);const A=on();z.useEffect(()=>{async function N(){try{let $=[];if(C?.mappings?.length>0){const k=C.mappings.map(V=>V.target_field).filter(V=>V&&typeof V=="string");$=[...new Set(k)]}try{const k=await A(Ko(x));Ko.fulfilled.match(k)&&Array.isArray(k.payload)&&k.payload.filter(B=>B&&typeof B=="string").forEach(B=>{$.includes(B)||$.push(B)})}catch{}if(t&&t.length>0){const k=t.map(V=>V.target_field).filter(V=>V&&typeof V=="string"&&!$.includes(V));k.length>0&&($=[...$,...k])}$=$.filter(k=>k&&typeof k=="string"),h($)}catch{if(C?.mappings?.length>0){const $=C.mappings.map(V=>V.target_field).filter(V=>V&&typeof V=="string"),k=[...new Set($)];h(k)}else h([])}}(x||C?.mappings?.length>0||t&&t.length>0)&&N()},[x,C,t,A]);const O=z.useMemo(()=>{if(C?.mappings&&C.mappings.length>0){const N=C.mappings.map($=>$.source_field).filter($=>$);if(N.length>0)return N}return g&&g.length>0?g:[]},[C,g]),L=z.useMemo(()=>f.filter($=>Object.keys($).length>0),[f]),M=z.useMemo(()=>{if(C?.mappings&&C.mappings.length>0){const N={};return C.mappings.forEach($=>{$.source_field&&$.target_field&&(N[$.source_field]=$.target_field)}),N}return{}},[C]),I=C?.mappings?.length>0?{...M,...y}:{...y},T=vn();ht(T.breakpoints.up("lg"));const F=Je(N=>N.productSettings.syncData),D=z.useMemo(()=>{if(F?.serverAddress)return F.serverAddress;const N=F?.configs||{},$=(F?.type||"sftp").toLowerCase(),k=N.host,V=N.port,B=N.path;if(!k)return"";let W=`${$}://${k}`;if(V!=null&&V!==""&&(W+=`:${V}`),B){const q=String(B).replace(/^\/+/,"");W+=`/${q}`}return W},[F]),U=()=>{const N=O.map(B=>({source_field:B||"",target_field:I[B]||""})).filter(B=>B.source_field&&B.target_field);if(N.length===0)return;if(c&&d){const B={...d,tenantId:d.tenantId||d.companyId,type:d.type||F.type||"sftp",entity_type:d.entity_type||F.entity_type||"products",mappings:N};u(B),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(B)),r?r({fromSettingsIcon:!0,putjson:B}):e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:B});return}const $=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),k=F.companyId||$.companyId||$.tenantId||"",V={...$,companyId:k,tenantId:k,type:F.type||$.type||"sftp",integration_type:F.integration_type||$.integration_type||"",entity_type:$.entity_type||F.entity_type||"products",configs:F.configs||$.configs||{},ftp_columns:O,preview:L,mappings:N};A(zs(V)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(V)),r?r({putjson:V}):e.onNext&&e.onNext({putjson:V})};return l.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:l.jsxs(P,{sx:{width:800,mx:"auto",pt:2,display:"flex",flexDirection:"column",gap:"32px"},children:[l.jsx(P,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:l.jsx(ll,{...i})}),l.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},children:l.jsxs(cn,{elevation:0,sx:{mt:0,p:0,borderRadius:4,width:"100%",maxWidth:800},children:[l.jsxs(P,{sx:{p:3,pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsxs(P,{children:[l.jsx(j,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),D&&l.jsx(j,{variant:"body2",sx:{color:"#888",mt:.5},children:D})]}),l.jsxs(P,{children:[l.jsx(Xe,{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"}),l.jsx(Xe,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:U,children:"Next"})]})]}),l.jsx(jm,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee"},children:m?l.jsx(P,{sx:{p:3,textAlign:"center"},children:"Loading..."}):S?l.jsx(P,{sx:{p:3,color:"red",textAlign:"center"},children:S}):O.length===0?l.jsx(P,{sx:{p:3,textAlign:"center",color:"#888"},children:"No columns available. Please check your FTP connection and try again."}):l.jsxs(zm,{size:"small",children:[l.jsxs(Vm,{children:[l.jsxs(Vi,{children:[l.jsx(ir,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),O.map((N,$)=>l.jsx(ir,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:N},N+$))]}),l.jsxs(Vi,{children:[l.jsx(ir,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),O.map((N,$)=>l.jsx(ir,{sx:{background:"#fafafa",borderBottom:"none"},children:l.jsxs(Pn,{value:I[N]||"",onChange:k=>b(V=>({...V,[N]:k.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:[l.jsx(We,{value:"",sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:l.jsx("em",{style:{fontStyle:"normal",color:"#888"},children:"Select column"})}),p.map(k=>l.jsx(We,{value:k,sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:k},k))]})},$))]})]}),l.jsx(Bm,{children:L.length>0?L.map((N,$)=>l.jsxs(Vi,{children:[l.jsx(ir,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:$===0?"Data preview":""}),O.map((k,V)=>l.jsx(ir,{sx:{background:"#fff",borderBottom:"none"},children:N[k]||""},V))]},$)):l.jsx(Vi,{children:l.jsx(ir,{colSpan:O.length+1,sx:{textAlign:"center",color:"#888",py:2},children:"No preview data available"})})})]})})]})})]})})},yN=e=>e.dashboard?.companyId||"",bN=e=>e.dashboard?.integrationData||null,xN=e=>{const{syncFrequency:t="",syncTime:n="",stepperProps:r={}}=e,i=Et(),s=It(),a=on(),c=Je(yN),d=Je(bN),u=i.state?.fromSettingsIcon,[p,h]=z.useState(()=>{if(i.state?.putjson){const k=JSON.parse(JSON.stringify(i.state.putjson));return k.mappings&&(k.originalMappings=JSON.parse(JSON.stringify(k.mappings))),k.configs?.sync_frequency&&!k.originalSyncFrequency&&(k.originalSyncFrequency=k.configs.sync_frequency),k.configs?.sync_time&&!k.originalSyncTime&&(k.originalSyncTime=k.configs.sync_time),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(k)),k}const $=window.localStorage.getItem("ftpSyncPutjson");if($){const k=JSON.parse($);return k.mappings&&!k.originalMappings&&(k.originalMappings=JSON.parse(JSON.stringify(k.mappings))),k.configs?.sync_frequency&&!k.originalSyncFrequency&&(k.originalSyncFrequency=k.configs.sync_frequency),k.configs?.sync_time&&!k.originalSyncTime&&(k.originalSyncTime=k.configs.sync_time),k}return null});z.useEffect(()=>{p&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(p))},[p]);const[y,b]=z.useState(null),[g,f]=z.useState(null);z.useEffect(()=>{const $=i.state?.fromProductSetting;let k=null;if($&&i.state?.integrationData)k=i.state.integrationData;else if(d&&Object.keys(d).length>0)k=d;else if(c&&!$){a(zt(c)).then(V=>{if(zt.fulfilled.match(V)){const B=V.payload;if(k=B&&B.data&&B.data[0]||null,k){b(k);const W=k.id||k.channelId||null;W&&f(W)}}});return}if(k){b(k);const V=k.id||k.channelId||null;V&&f(V)}},[c,i.state,d,a]);const m=!!u||!!y,S=$=>{if(!$)return"";const k=$.charAt(0).toUpperCase()+$.slice(1).toLowerCase();return k==="Daily"||k==="Day"?"Daily":k==="Weekly"||k==="Week"?"Weekly":k==="Monthly"||k==="Month"?"Monthly":k},[C,x]=z.useState(()=>{if(t)return S(t);const $=p?.configs?.sync_frequency?S(p.configs.sync_frequency):"";return $||"Daily"}),[v,w]=z.useState(n||p&&p.configs?.sync_time||"");z.useEffect(()=>{async function $(){if(c)try{const k=i.state?.fromProductSetting;let V=null;if(k&&i.state?.integrationData)V=i.state.integrationData;else if(d&&Object.keys(d).length>0)V=d;else{const B=await a(zt(c));if(zt.fulfilled.match(B)){const W=B.payload;V=W&&W.data&&W.data[0]||null}}if(V){const B=V.id||V.channelId||null;B&&f(B);const W=p||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),q={...V,companyId:V.companyId||c,entity_type:V.entity_type||W?.entity_type||"product",mappings:V.mappings||W?.mappings||[]},X=V.configs?.sync_frequency||"",G=V.configs?.sync_time||"",Q=S(X);if(h(q),k){if(t){const ee=S(t);x(ee)}n&&w(n),h(ee=>({...ee,...q,originalSyncFrequency:t?S(t):ee.originalSyncFrequency||Q,originalSyncTime:n||ee.originalSyncTime||G,configs:{...q.configs,sync_frequency:t?S(t).toLowerCase():q.configs?.sync_frequency,sync_time:n||q.configs?.sync_time}}))}else{const ee=t?S(t):"";if(ee)x(ee);else if(Q)x(Q);else if(W?.configs?.sync_frequency){const oe=S(W.configs.sync_frequency);x(oe)}else x("Daily");n?w(n):G?w(G):W?.configs?.sync_time?w(W.configs.sync_time):w(""),h(q),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(q))}}}catch{const k=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!t&&k?.configs?.sync_frequency?x(S(k.configs.sync_frequency)):t&&x(S(t)),!n&&k?.configs?.sync_time?w(k.configs.sync_time):n&&w(n)}}$()},[c]),z.useEffect(()=>{if(t){const $=S(t);x($),p&&p.configs?.sync_frequency!==$&&h(k=>{const V={...k,configs:{...k.configs,sync_frequency:$}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(V)),V})}},[t]),z.useEffect(()=>{n&&(w(n),p&&p.configs?.sync_time!==n&&h($=>{const k={...$,configs:{...$.configs,sync_time:n}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(k)),k}))},[n]),z.useEffect(()=>{if(p&&m&&(C||v)){const $=p.configs?.sync_frequency,k=p.configs?.sync_time;($!==C||k!==v)&&h(V=>{const B={...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(B)),B})}},[C,v,m]);const A=Je($=>$.productSettings.syncData),O=$=>{const k=$.target.value;x(k),p&&h(V=>{const B={...V,configs:{...V.configs,sync_frequency:k}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(B)),B}),m||a(zs({...A,configs:{...A&&A.configs||{},sync_frequency:k,sync_time:v}}))},L=$=>{const k=$.target.value;w(k),p&&h(V=>{const B={...V,configs:{...V.configs,sync_time:k}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(B)),B}),m||a(zs({...A,configs:{...A&&A.configs||{},sync_frequency:C,sync_time:k}}))};function M($){try{const k=new URL($);return{type:k.protocol.replace(":",""),host:k.hostname,port:k.port,path:k.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[_,I]=z.useState(!1),[T,F]=z.useState(""),D=async()=>{const $=i.state?.fromProductSetting;if(m){if(!p){F("Update failed: missing data."),I(!0);return}let H={...p};p.originalMappings||(H.originalMappings=p.mappings?JSON.parse(JSON.stringify(p.mappings)):[],h(H)),!p.originalSyncFrequency&&p.configs?.sync_frequency&&(H.originalSyncFrequency=p.configs.sync_frequency||"",h(H)),!p.originalSyncTime&&p.configs?.sync_time&&(H.originalSyncTime=p.configs.sync_time||"",h(H));const he=JSON.parse(JSON.stringify(p.mappings||[])),de=JSON.parse(JSON.stringify(p.originalMappings||[]));let ge,ze;$?(ge=t?S(t):"",ze=n||""):(ge=p.originalSyncFrequency||p.configs?.sync_frequency||"",ze=p.originalSyncTime||p.configs?.sync_time||"",ge=S(ge));const Ee=$?!1:JSON.stringify(he)!==JSON.stringify(de),me=C!==ge,De=v!==ze,Le=(me||De)&&!Ee,Ne=Ee;if(Le){const pe=g||p?.id||p?.channelId||i.state?.integrationData?.id||i.state?.integrationData?.channelId;if(!pe){F("Channel ID is missing. Please try again."),I(!0);return}const Ve={configs:{}};me&&(Ve.configs.sync_frequency=C.toLowerCase()),De&&(Ve.configs.sync_time=v);try{const Ie=await a(Go({channelId:pe,data:Ve}));if(Ie.error||Go.rejected.match(Ie)){const xe=Ie.payload||Ie.error?.message||"Update failed. Please try again.";F(xe),I(!0);return}let se="";me&&!De?se="SyncFrequency Updated":!me&&De?se="SyncTime Updated":me&&De&&(se="SyncTime and SyncFrequency Updated"),F(se),I(!0),h(xe=>{const Z={...xe,configs:{...xe.configs,sync_frequency:C.toLowerCase(),sync_time:v},originalSyncFrequency:C,originalSyncTime:v};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Z)),Z});const ne=i.state?.fromProductSetting;ne&&c&&await a(zt(c)),setTimeout(()=>{ne&&s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500);return}catch(Ie){const se=Ie?.message||Ie?.response?.data?.message||"Update failed. Please try again.";F(se),I(!0);return}}if(Ne){const pe={...p,configs:{...p.configs,sync_frequency:C.toLowerCase(),sync_time:v}};h(pe),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(pe));const Ve=pe.tenantId||pe.companyId;if(!pe.configs){F("Configuration error. Please try again."),I(!0);return}const Ie=pe.entity_type||p?.entity_type;if(!Ie){F("Entity type is missing. Please try again."),I(!0);return}const se={tenantId:Ve,type:pe.type,entity_type:Ie,configs:{host:pe.configs.host||"",port:pe.configs.port?Number(pe.configs.port):0,username:pe.configs.username||"",password:pe.configs.password||"",path:pe.configs.path||"",sync_frequency:C.toLowerCase()||"",sync_time:v||""},mappings:(pe.mappings||[]).map(ne=>({source_field:ne.source_field,target_field:ne.target_field}))};if(!se.tenantId){F("Tenant ID is missing. Please try again."),I(!0);return}if(!se.type){F("Sync type is missing. Please try again."),I(!0);return}if(!se.entity_type){F("Entity type is missing. Please try again."),I(!0);return}try{const ne=await a(jr(se));if(jr.rejected.match(ne)){const xe=ne.payload||ne.error?.message||"Update failed. Please try again.";F(xe),I(!0);return}jr.fulfilled.match(ne)?(h(xe=>{const Z={...xe,originalSyncFrequency:C,originalSyncTime:v,originalMappings:JSON.parse(JSON.stringify(xe.mappings||[]))};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Z)),Z}),F("Sync Update Successfully"),I(!0),setTimeout(()=>{s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)):(F("Update failed. Please try again."),I(!0))}catch(ne){const xe=ne?.message||ne?.response?.data?.message||"Update failed. Please try again.";F(xe),I(!0)}}else F("No changes detected."),I(!0);return}const k=A.configs||{},V=M(A.serverAddress||""),B=k.host||V.host,W=k.port!=null?Number(k.port):parseInt(V.port,10),q=(k.path||V.path||"").replace(/^\//,""),X=A.type||V.type||"sftp",G=A.username||k.username||"",Q=A.password||k.password||"",ee=C||k.sync_frequency||"",oe=typeof ee=="string"?ee.toLowerCase():ee;let le=v||k.sync_time||"";if(typeof le=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(le.trim())){const[H,he]=le.trim().split(/\s+/),[de,ge]=H.split(":").map(Number),ze=he.toUpperCase()==="PM"&&de!==12?de+12:he.toUpperCase()==="AM"&&de===12?0:de;le=`${String(ze).padStart(2,"0")}:${String(ge).padStart(2,"0")}`}else typeof le=="string"&&(le=le.trim());const ae=(A.mappings||[]).filter(H=>H.source_field&&H.target_field).map(H=>({source_field:H.source_field,target_field:H.target_field}));if(!c){F("Company ID is required. Please ensure the app is properly configured."),I(!0);return}if(!B||!W||!G||!Q||ae.length===0){F("Please fill all required fields and mappings before saving."),I(!0);return}const re=A.entity_type||"products",ce={tenantId:c,type:X,entity_type:re,configs:{host:B,port:Number(W),username:G,password:Q,path:q,sync_frequency:oe,sync_time:le},mappings:ae};try{const H=await a(qo(ce));qo.fulfilled.match(H)?(F("Save and Start Sync Updated Successfully"),I(!0),e.onNext&&e.onNext()):(F(H?.payload||"Save failed. Please try again."),I(!0))}catch{F("Save failed. Please try again."),I(!0)}},[U,N]=z.useState(!1);return z.useEffect(()=>{const $=setTimeout(()=>N(!0),850);return()=>clearTimeout($)},[]),l.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:l.jsxs(P,{sx:{width:800,mx:"auto",pt:2,display:"flex",flexDirection:"column",gap:"32px"},children:[l.jsx(P,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:l.jsx(ll,{...r,showStartSyncBlueTick:U})}),l.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:l.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:4,mb:4},children:l.jsxs(cn,{elevation:0,sx:{p:2.5,borderRadius:4,minWidth:300,maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:2,width:"100%",mb:2},children:[l.jsxs(P,{sx:{flex:1},children:[l.jsx(j,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Frequency"}),l.jsxs(Pn,{size:"small",value:C,onChange:O,sx:{minWidth:120,borderRadius:2,background:"#fafbfc",fontSize:15,height:40},children:[l.jsx(We,{value:"Daily",children:"Daily"}),l.jsx(We,{value:"Weekly",children:"Weekly"}),l.jsx(We,{value:"Monthly",children:"Monthly"})]})]}),l.jsxs(P,{sx:{flex:1},children:[l.jsx(j,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Time"}),l.jsx(Ui,{type:"time",size:"small",value:v,onChange:L,sx:{minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),l.jsxs(P,{sx:{display:"flex",justifyContent:"center",gap:.5,mt:1,width:"100%"},children:[l.jsx(Xe,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:e.onBack,children:"Back"}),l.jsx(Xe,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none",flex:m?1:"initial"},onClick:D,children:m&&(i.state?.fromSyncSetting||i.state?.editMode)?"Save":m?"Update Sync":"Save and Start Sync"})]}),l.jsx(go,{open:_,autoHideDuration:4e3,onClose:()=>I(!1),message:T,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})})},vN=e=>{const{stepperProps:t={}}=e,n=on(),i=!!Je(d=>d.productSettings.saveResult),[s,a]=z.useState(i),c=It();return z.useEffect(()=>{i&&(a(!0),n(S1()))},[i,n]),l.jsxs(l.Fragment,{children:[l.jsx(go,{open:s,autoHideDuration:4e3,onClose:()=>a(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),l.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:l.jsxs(P,{sx:{width:800,mx:"auto",pt:2,display:"flex",flexDirection:"column",gap:"32px"},children:[l.jsx(P,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:l.jsx(ll,{...t})}),l.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:l.jsxs(P,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:320,py:6,bgcolor:"#f5f5f5",borderRadius:5},children:[l.jsx(P,{sx:{width:48,height:48,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},children:l.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:l.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),l.jsx(j,{sx:{fontSize:17,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),l.jsx(Xe,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1},onClick:()=>c("/"),children:"Back to all products"})]})})]})}),l.jsx(go,{open:s,autoHideDuration:4e3,onClose:()=>a(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function SN(e){const t=Et(),n=It(),r=t.state?.fromProductSetting?3:0,[i,s]=z.useState(r),a=on(),{companyId:c,integrationData:d}=Je(O=>O.dashboard),u=t.state?.fromSyncStep;z.useEffect(()=>{const O=t.state?.fromProductSetting;c&&!O&&a(zt(c))},[c,a,t.state]);const p=()=>{s(O=>Math.min(O+1,4))},h=z.useCallback(()=>{if(i===0&&u!==void 0){n("/product-setting",{state:{fromSyncStep:u,tenantIntegrationMatched:u===3}});return}if(t.state?.fromProductSetting&&i===3){n("/product-setting",{state:{tenantIntegrationMatched:!0}});return}s(O=>Math.max(O-1,0))},[i,u,t.state?.fromProductSetting,n]),y=z.useMemo(()=>[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],[]),b=z.useMemo(()=>[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"}],[]),{setSettingTopbarProps:g}=Yi()||{};z.useEffect(()=>{if(g)return g({onBack:h,breadcrumbs:i===0||i===1?y:b}),()=>g({})},[g,h,i,y,b]);const f=d?.configs||{},m=d?.mappings||d?.dataMappings||[],C=(O=>{if(!O)return"";const L=O.charAt(0).toUpperCase()+O.slice(1).toLowerCase();return L==="Daily"||L==="Day"?"Daily":L==="Weekly"||L==="Week"?"Weekly":L==="Monthly"||L==="Month"?"Monthly":L})(d?.configs?.sync_frequency||""),x=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}};switch(i){case 0:return l.jsx(rN,{onNext:p,onBack:h,stepperProps:A[0],...e});case 1:return l.jsx(cN,{onNext:p,onBack:h,ftpDetails:f,stepperProps:A[1],...e});case 2:return l.jsx(mN,{onNext:p,onBack:h,mapping:m,stepperProps:A[2],...e});case 3:return l.jsx(xN,{onNext:p,onBack:h,syncFrequency:C,syncTime:x,stepperProps:A[3],...e});case 4:return l.jsx(vN,{onBack:h,stepperProps:A[4],...e});default:return null}}const wN=it(l.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 CN(e){return l.jsx(P,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",opacity:1,...e.sx},children:l.jsx(P,{component:"span",sx:{width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",opacity:1},children:l.jsx(wN,{sx:{color:"#808080"}})})})}const EN="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 TN({sx:e={},...t}){const n=e?.fontSize??12,r=e?.width??n,i=e?.height??n;return l.jsx(P,{component:"img",src:EN,alt:"",role:"presentation",sx:{width:r,height:i,display:"block",objectFit:"contain",...e},...t})}const AN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAYAAACdKY9CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPtJREFUeAGlUUsOgjAQpSWQuLJHQC6gR4DwCe70Bt5Ab6CewCPIEVwSQmKPoDt3uHQnrPn5SjRpTIkLJ2k6bd+b92ZKNCkcx7EMwzh2XTcjhBRYcZqmexlD5QPAZ2zXuq4nuq67IC58399pqsCDg3X+UmRBEDyVCqjGKKWlohZTEpqm4SBNRR+fO9M019himUDkA+RXIB2gJMgMTVvI3SRJ7kqCiCiKrKqq+illWca1f6NXCMNw27btBlXZAO6Ctz3+5EQEWMwbNlzOeaFCe563AOGIdKnbth3jk+bw+xiykef5DbgRSDMxVkuewqB3QgRmTN/Jz0CPwm75AifwYTaKH5pyAAAAAElFTkSuQmCC",kN={fontSize:10.67,color:"#454545"};function PN({sx:e={},...t}){const n={...kN,...e},r=n.fontSize??10.67,i=n.width??r,s=n.height??r;return l.jsx(P,{component:"img",src:AN,alt:"",role:"presentation",sx:{width:i,height:s,display:"block",objectFit:"contain",...n},...t})}const ON=it(l.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 IN(e){return l.jsx(ON,{...e})}const NN=it(l.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 FN(e){return l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:l.jsx(P,{component:"span",sx:{width:13.22,height:13.22,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(NN,{})})})}const MN=it(l.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 DN(e){return l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:l.jsx(P,{component:"span",sx:{width:12,height:13.33,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(MN,{})})})}function _N(e){const{catalogs:t=[],totalCount:n=0,page:r=0,rowsPerPage:i=10,statusById:s={},getStatus:a,onPageChange:c,onRowsPerPageChange:d,onSave:u,onDelete:p,onStatusChange:h,updateCatalogError:y=null,updateCatalogLoading:b=!1}=e,[g,f]=z.useState(null),[m,S]=z.useState({name:"",slug:"",status:!0}),C=_=>{const I=_.slugRaw??(typeof _.slug=="string"?_.slug.replace(/^\//,""):"")??"",T=_.status==="Active"||_.status===!0;f(_.id),S({name:_.name??"",slug:I,status:T})},x=async _=>{if(typeof u!="function")return;const I=m.slug.trim().replace(/^\//,""),T={id:_.id,name:m.name.trim(),slug:I||m.name.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""),status:m.status};await u(T),f(null)},v=()=>{f(null)},w=t,A=Math.max(0,Number(n)||0),O=Math.max(0,Math.ceil(A/Math.max(1,i))-1),L={borderRadius:"4px",padding:"2px 4px",background:"#F5F5F5",display:"inline-flex",alignItems:"center",gap:"4px"},M={wrapper:{width:800,maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"40px",opacity:1,marginLeft:"auto",marginRight:"auto",paddingLeft:"24px",mt:2},resultsPerPageBox:{width:128,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1},resultsPerPageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap"},select:{minWidth:32,height:16,"& .MuiSelect-select":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",py:0,pr:"20px !important",display:"flex",alignItems:"center"},"& .MuiSelect-icon":{top:"50%",transform:"translateY(-50%)"},"& .MuiSvgIcon-root":{width:16,height:16,right:0,color:"#454545"}},navBox:{width:200,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1},iconButton:{p:0,width:16,height:16,color:"#454545","&.Mui-disabled":{color:"#c0c0c0"}},pageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"}};return l.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:l.jsxs(P,{sx:{width:600,maxWidth:"100%",minHeight:606,pt:2,mx:"auto",pb:4,display:"flex",flexDirection:"column",gap:"24px",opacity:1},children:[l.jsx(P,{sx:{width:"100%",maxWidth:600,height:20,display:"flex",alignItems:"center",gap:"24px",opacity:1},children:l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",height:20,opacity:1},children:[l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#000000",opacity:1},children:"All Catalogs"}),l.jsx(j,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},children:n})]})}),y&&l.jsx(j,{color:"error",sx:{mb:0},children:y}),l.jsx(P,{sx:{display:"flex",flexDirection:"column",gap:"8px"},children:w.map(_=>{const I=g===_.id,T=typeof a=="function"?a(_):s[_.id]??_.status??"Active",F=T==="Active";return l.jsxs(cn,{elevation:0,sx:{width:"100%",maxWidth:600,minHeight:106,borderRadius:"12px",border:"1px solid #F1F1F1",padding:"12px 16px",background:"#FFFFFF",display:"flex",alignItems:"flex-start",gap:"16px",opacity:1},children:[l.jsx(P,{sx:{flexShrink:0},children:l.jsx(CN,{})}),l.jsx(P,{sx:{width:368,maxWidth:"100%",minWidth:0,flex:1,display:"flex",flexDirection:"column",gap:"8px",opacity:1},children:I?l.jsxs(l.Fragment,{children:[l.jsx(Ui,{label:"Name",size:"small",value:m.name,onChange:D=>S(U=>({...U,name:D.target.value})),fullWidth:!0,sx:{"& .MuiInputBase-root":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px"}}}),l.jsx(Ui,{label:"Slug",size:"small",value:m.slug,onChange:D=>S(U=>({...U,slug:D.target.value})),fullWidth:!0,placeholder:"/catalog-slug"})]}):l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"2px"},children:[l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#000000",opacity:1},children:_.name}),l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},children:_.slug})]}),l.jsx(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:l.jsxs(P,{sx:L,children:[l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(TN,{sx:{fontSize:12,color:"#454545"}})}),l.jsxs(j,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:[_.productsCount," Products"]})]})}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:[l.jsxs(P,{sx:L,children:[l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(PN,{})}),l.jsxs(j,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:["By ",_.createdBy]})]}),l.jsxs(P,{sx:L,children:[l.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(cy,{size:12,color:"#454545"})}),l.jsx(j,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:_.date})]})]})]})}),l.jsx(P,{sx:{flexShrink:0},children:I?l.jsxs(Pn,{size:"small",value:m.status?"Active":"Inactive",onChange:D=>S(U=>({...U,status:D.target.value==="Active"})),IconComponent:Nr,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:[l.jsx(We,{value:"Active",children:"Active"}),l.jsx(We,{value:"Inactive",children:"Inactive"})]}):l.jsxs(Pn,{value:T,onChange:D=>{if(typeof h!="function"||b)return;const U=D.target.value==="Active";h(_,U)},disabled:b,IconComponent:Nr,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:F?"#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:[l.jsx(We,{value:"Active",children:"Active"}),l.jsx(We,{value:"Inactive",children:"Inactive"})]})}),l.jsx(P,{sx:{flexShrink:0},children:I?l.jsxs(l.Fragment,{children:[l.jsx(yt,{size:"small","aria-label":"Save catalog",disabled:b,onClick:()=>x(_),sx:{p:0,color:"#454545"},children:l.jsx(IN,{sx:{fontSize:20}})}),l.jsx(Xe,{size:"small",onClick:v,sx:{minWidth:0,px:1,ml:.5},children:"Cancel"})]}):l.jsx(yt,{size:"small","aria-label":"Edit catalog",onClick:()=>C(_),sx:{p:0,width:16,height:16},children:l.jsx(FN,{})})}),l.jsx(P,{sx:{flexShrink:0},children:l.jsx(yt,{size:"small","aria-label":"Delete catalog",onClick:()=>typeof p=="function"?p(_):null,sx:{p:0,width:16,height:16},children:l.jsx(DN,{})})})]},_.id)})}),l.jsxs(P,{sx:M.wrapper,children:[l.jsxs(P,{sx:M.resultsPerPageBox,children:[l.jsx(j,{component:"span",sx:M.resultsPerPageText,children:"Results per page"}),l.jsxs(Pn,{value:i,onChange:_=>typeof d=="function"?d(_):null,IconComponent:Nr,variant:"standard",disableUnderline:!0,sx:M.select,children:[l.jsx(We,{value:5,children:"5"}),l.jsx(We,{value:10,children:"10"}),l.jsx(We,{value:25,children:"25"})]})]}),l.jsxs(P,{sx:M.navBox,children:[l.jsx(yt,{size:"small",disabled:r===0,onClick:()=>typeof c=="function"?c(0):null,sx:M.iconButton,"aria-label":"First page",children:l.jsx(Jd,{sx:{width:16,height:16,opacity:1}})}),l.jsx(yt,{size:"small",disabled:r===0,onClick:()=>typeof c=="function"?c(Math.max(0,r-1)):null,sx:M.iconButton,"aria-label":"Previous page",children:l.jsx(Hi,{sx:{width:16,height:16,opacity:1}})}),l.jsx(j,{component:"span",sx:M.pageText,children:A===0?"0-0 of 0":`${r*i+1}-${Math.min((r+1)*i,A)} of ${A}`}),l.jsx(yt,{size:"small",disabled:r>=O,onClick:()=>typeof c=="function"?c(r+1):null,sx:M.iconButton,"aria-label":"Next page",children:l.jsx(Ot,{sx:{width:16,height:16,opacity:1}})}),l.jsx(yt,{size:"small",disabled:r>=O,onClick:()=>typeof c=="function"?c(O):null,sx:M.iconButton,"aria-label":"Last page",children:l.jsx(Qd,{sx:{width:16,height:16,opacity:1}})})]})]})]})})}const $N=({isOpen:e,onClose:t,onConfirm:n,catalogName:r})=>{const s=On().productSettingModal;return l.jsx(ao,{open:e,onClose:t,"aria-labelledby":"delete-catalog-modal",sx:s.modal,children:l.jsxs(P,{sx:s.container,children:[l.jsx(P,{sx:s.header,children:l.jsxs(j,{sx:{...s.headerTitle,fontSize:22},children:["Are you sure you want to delete this catalog",r?` "${r}"`:"","?"]})}),l.jsxs(P,{sx:{...s.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[l.jsx(Xe,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),l.jsx(Xe,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function zN(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 LN(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:zN(e.createdAt??e.date),createdAt:e.createdAt??e.date,status:e.status===!0?"Active":e.status===!1?"Inactive":e.status||"Active"}}function BN(e){const t=It(),n=on(),{sharedCatalogues:r=[],sharedCataloguesTotal:i=0,sharedCataloguesLoading:s=!1,sharedCataloguesError:a=null}=Je(V=>V.productSettings??{}),{updateCatalogLoading:c=!1,updateCatalogError:d=null}=Je(V=>V.dashboard??{}),[u,p]=z.useState(0),[h,y]=z.useState(10),[b,g]=z.useState({}),[f,m]=z.useState(!1),[S,C]=z.useState(null),[x,v]=z.useState(!1),[w,A]=z.useState("");z.useEffect(()=>{n(Yt({page:u+1,limit:h}))},[n,u,h]),z.useEffect(()=>()=>n({type:"dashboard/clearUpdateCatalogError"}),[n]);const O=z.useMemo(()=>Array.isArray(r)?r.map(LN).filter(Boolean):[],[r]),L=i,M=V=>p(V),_=V=>{const B=Number(V.target.value);y(B),p(0)},I=V=>b[V.id]??V.status,T=z.useCallback(()=>t(-1),[t]),{setSettingTopbarProps:F}=Yi()||{};z.useEffect(()=>{if(F)return F({onBack:T}),()=>F({})},[F,T]);const D=async V=>{const{id:B,name:W,slug:q,status:X}=V;await n(Ho({id:B,name:W,slug:q,status:X})).unwrap(),n(Yt({page:u+1,limit:h}))},U=async(V,B)=>{const W=V.slugRaw??(typeof V.slug=="string"?V.slug.replace(/^\//,""):"")??"";g(q=>({...q,[V.id]:B?"Active":"Inactive"}));try{await n(Ho({id:V.id,name:V.name??"",slug:W,status:B})).unwrap(),n(Yt({page:u+1,limit:h}))}catch{g(q=>({...q,[V.id]:V.status}))}},N=V=>{C(V),m(!0)},$=()=>{m(!1),C(null)},k=async()=>{if(!S?.id){$();return}try{await n(_s(S.id)).unwrap(),A("Catalog delete Successfully"),v(!0),$(),n(Yt({page:u+1,limit:h}))}catch{A("Failed to delete catalog"),v(!0)}};return s&&O.length===0?l.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:l.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:l.jsx(mi,{})})}):a&&O.length===0?l.jsx(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:l.jsx(P,{sx:{textAlign:"center",py:4},children:l.jsx(j,{color:"error",children:a})})}):l.jsxs(l.Fragment,{children:[l.jsx(_N,{catalogs:O,totalCount:L,page:u,rowsPerPage:h,statusById:b,getStatus:I,onBack:T,onPageChange:M,onRowsPerPageChange:_,onStatusChange:U,onSave:D,onDelete:N,updateCatalogError:d,updateCatalogLoading:c,...e}),l.jsx($N,{isOpen:f,onClose:$,onConfirm:k,catalogName:S?.name}),l.jsx(go,{open:x,autoHideDuration:4e3,onClose:()=>v(!1),message:w,anchorOrigin:{vertical:"top",horizontal:"center"}})]})}const cl=it(l.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"),jN=it([l.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"),l.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function ep(e){return l.jsx(jN,{...e})}function WN({styles:e={},selectedProducts:t=[],data:n,onSelectProduct:r,categoryName:i,showLimitedColumns:s=!1,pagination:a=null,onPageChange:c,onLimitChange:d}){const u=e?.categoryTableAllStore??{},p=e?.categoryTableSingleStore??{},h=e?.categoryTablePagination??{},y=e?.categoryTableShared??{},b=ht("(max-width:900px)"),g=ht("(max-width:400px)"),f=ht("(max-width:550px)"),m=ht("(max-width:770px)"),S=ht("(max-width:650px)"),C=ht("(max-width:500px)"),x=ht("(max-width:400px)"),v=!s,w=v&&m,A=N=>t.some($=>$.id===N.id),[O,L]=z.useState(null),[M,_]=z.useState([]),I=(N,$)=>{L(N.currentTarget),_($)},T=()=>{L(null),_([])},F=!!O,D=v?p.outerCard:u.outerCard,U=v?"6px":"4px";return l.jsx(or,{maxWidth:!1,sx:e.categoryTableContainer,children:l.jsxs(La,{sx:{...e.categoryTable,...D},children:[l.jsx(P,{sx:{...u.categoryNameBox,display:"flex",alignItems:"center",mb:U,boxSizing:"border-box",overflow:"hidden"},children:l.jsx(j,{sx:{...u.categoryNameText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i})}),!(v&&!g)&&l.jsxs(P,{sx:{display:"flex",flexWrap:g&&v?"wrap":"nowrap",alignItems:"center",width:"100%",minWidth:0,...v?p.tableHeader:u.tableHeader,boxSizing:"border-box",gap:g?"8px":v&&b?"12px":"16px"},children:[s?l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:l.jsx(bt,{checked:n.length>0&&n.every(A),indeterminate:n.some(A)&&!n.every(A),onChange:()=>{n.every(A)?n.forEach(N=>r(N,i,!1)):n.forEach(N=>{A(N)||r(N,i,!0)})},size:"small",sx:y.checkboxHeaderSx,icon:l.jsx("span",{style:y.checkboxIconSpanHeader}),checkedIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})}),indeterminateIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})})})}),l.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:"1 1 0"},children:l.jsx(j,{component:"span",sx:u.headerProduct,children:"Product"})})]}):l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:g?"8px":b?"12px":"16px",flex:"1 1 0",minWidth:0,...v&&!g&&{maxWidth:"40%"}},children:[l.jsx(bt,{checked:n.length>0&&n.every(A),indeterminate:n.some(A)&&!n.every(A),onChange:()=>{n.every(A)?n.forEach(N=>r(N,i,!1)):n.forEach(N=>{A(N)||r(N,i,!0)})},size:"small",sx:y.checkboxHeaderSx,icon:l.jsx("span",{style:y.checkboxIconSpanHeader}),checkedIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})}),indeterminateIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})})}),l.jsx(j,{component:"span",sx:{...p.headerLabel,...p.headerProduct},children:"Product"})]}),!g&&(v?l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{...p.headerStatus,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:l.jsx(j,{component:"span",sx:{...p.headerLabel},children:"Status"})}),l.jsx(P,{sx:{...p.headerPrice,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:l.jsx(j,{component:"span",sx:{...p.headerLabel},children:"Price"})}),l.jsx(P,{sx:{...p.headerStock,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:l.jsx(j,{component:"span",sx:{...p.headerLabel},children:"Stock"})}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0,flex:"0 1 auto",...p.headerOffer},children:[l.jsx(j,{component:"span",sx:{...p.headerLabel},children:"Offer"}),l.jsx(ol,{sx:{...u.arrowDown,fontSize:12,marginTop:"8px"}})]})]}):l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:1,minWidth:64},children:l.jsx(j,{component:"span",sx:u.headerStatusText,children:"Status"})}),!f&&l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:2,minWidth:88},children:l.jsx(j,{component:"span",sx:u.headerOsaText,children:"Stock / OSA"})}),l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:0,width:20,minWidth:20},children:l.jsx(ol,{sx:{...u.arrowDownAllStore}})})]})]}))]}),(function(){const N=v&&!g,$=n.map((k,V)=>{let B=[];k.offers&&Array.isArray(k.offers)?B=k.offers:k.offer&&typeof k.offer=="string"&&k.offer.includes(`
|
|
1581
|
+
`)?B=k.offer.split(`
|
|
1582
|
+
`):k.offer&&Array.isArray(k.offer)?B=k.offer:k.offer&&(B=[k.offer]);const W=B[0]||"",q=B.length>1?B.slice(1):[];return l.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,...p.rowCard,...m&&{height:"auto",minHeight:152}}:{display:"flex",flexDirection:g&&v?"column":"row",alignItems:"flex-start",flexWrap:g&&v?"nowrap":"wrap",...v?p.rowCard:u.rowCard,...w&&{height:"auto",minHeight:152},gap:g?"8px":"16px",boxSizing:"border-box",mt:V===0?.5:0,mb:.5,width:"100%",maxWidth:"100%",minWidth:0}},children:[!(v&&x)&&l.jsx(P,{sx:{display:"flex",alignItems:"flex-start",width:16,minHeight:20,gap:"8px",flexShrink:0},children:l.jsx(bt,{checked:A(k),onChange:()=>r(k,i),size:"small",sx:y.checkboxRowSx,icon:l.jsx("span",{style:y.checkboxIconSpanRow}),checkedIcon:l.jsx("span",{style:y.checkboxRowCheckedIconSpan,children:l.jsx(il,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),l.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?p.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?l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:"16px",minWidth:0,width:"100%",flex:"0 0 auto"},children:[x&&l.jsx(P,{sx:{display:"flex",alignItems:"flex-start",width:16,minHeight:20,flexShrink:0},children:l.jsx(bt,{checked:A(k),onChange:()=>r(k,i),size:"small",sx:y.checkboxRowSx,icon:l.jsx("span",{style:y.checkboxIconSpanRow}),checkedIcon:l.jsx("span",{style:y.checkboxRowCheckedIconSpan,children:l.jsx(il,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),l.jsx(P,{sx:{...u.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},children:k.productImage?l.jsx(Ar,{src:k.productImage,alt:k.productName,sx:y.avatar}):l.jsx(Ar,{sx:y.avatarPlaceholder,children:k.productName&&k.productName[0]})}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0,maxWidth:"100%",overflow:"hidden"},children:[l.jsx(j,{sx:{...u.productName,wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal",overflow:"hidden",fontSize:"12px",lineHeight:"16px"},children:k.productName}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap",minWidth:0,overflow:"hidden"},children:[l.jsx(j,{sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis"},children:k.productWeight}),k.categoryName&&l.jsxs(l.Fragment,{children:[l.jsx(j,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px"},children:"•"}),l.jsx(j,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px"},children:k.categoryName})]})]}),l.jsxs(j,{sx:{...u.productSku,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis"},children:["SKU: ",k.sku]})]})]}),S?l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"24px",width:"100%",ml:x?"32px":0},children:[x&&l.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:"50px",alignItems:"center",flexWrap:"wrap",width:"100%"},children:[l.jsx(P,{component:"span",sx:k.status===!0?u.statusActiveBox:u.statusNoStockBox,children:k.status===!0?"Active":"No Stock"}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",...p.priceBlock},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[l.jsxs(j,{sx:p.priceText,children:["₹",k.price]}),l.jsx(P,{sx:{...p.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:l.jsx(ep,{sx:p.clockIconSx})})]}),k.mrp&&l.jsxs(j,{sx:y.mrpText,children:["₹",k.mrp]}),k.discount&&l.jsx(j,{sx:y.discountText,children:k.discount})]})]}),C&&!x&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",...p.priceBlock},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[l.jsxs(j,{sx:p.priceText,children:["₹",k.price]}),l.jsx(P,{sx:{...p.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:l.jsx(ep,{sx:p.clockIconSx})})]}),k.mrp&&l.jsxs(j,{sx:y.mrpText,children:["₹",k.mrp]}),k.discount&&l.jsx(j,{sx:y.discountText,children:k.discount})]}),l.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:"50px",alignItems:"center",flexWrap:"wrap",width:"100%"},children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"2px",flexShrink:0},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:0},children:[k.stock===0&&l.jsx(ji,{title:"No stock",children:l.jsx(cl,{sx:y.errorIcon})}),l.jsx(j,{component:"span",sx:u.stockValue,children:k.stock}),l.jsx(j,{component:"span",sx:u.osaValue,children:k.quantity?`/${k.quantity}`:""})]}),(()=>{const X=typeof k.osa=="number"?k.osa:k.osa??0,G=Number(X),Q=G<50;return l.jsxs(j,{sx:{...u.onShelfText,fontSize:"10px",color:p.onShelfPercentNormal?.color||"#454545"},children:[l.jsxs(P,{component:"span",sx:Q?{color:p.onShelfPercentRed?.color||"#d32f2f"}:{},children:[Math.round(G),"%"]}),l.jsx(P,{component:"span",sx:{color:p.onShelfSpan?.color||"#808080"},children:" on shelf"})]})})()]}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:0,flex:1,minWidth:0},children:[l.jsx(j,{sx:{...p.offerText,whiteSpace:"pre-line",fontSize:"12px",lineHeight:"16px"},children:W}),q.length>0&&l.jsxs(j,{sx:y.moreOffersLink,onClick:X=>I(X,B),children:["+",q.length," more"]})]})]})]}):l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:0,width:"100%"},children:[l.jsx(j,{sx:{...p.offerText,whiteSpace:"pre-line",fontSize:"12px",lineHeight:"16px"},children:W}),q.length>0&&l.jsxs(j,{sx:y.moreOffersLink,onClick:X=>I(X,B),children:["+",q.length," more"]})]})]}):l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{...u.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0,mb:0},children:k.productImage?l.jsx(Ar,{src:k.productImage,alt:k.productName,sx:y.avatar}):l.jsx(Ar,{sx:y.avatarPlaceholder,children:k.productName&&k.productName[0]})}),l.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:[l.jsx(j,{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:k.productName}),l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",minWidth:0,overflow:"hidden",flexWrap:!v&&g?"nowrap":"wrap"},children:[l.jsx(j,{sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",flexShrink:!v&&g?0:void 0},children:k.productWeight}),k.categoryName&&l.jsxs(l.Fragment,{children:[l.jsx(j,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",flexShrink:0},children:"•"}),l.jsx(j,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",...!v&&g&&{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",flex:"1 1 0"}},children:k.categoryName})]})]}),l.jsxs(j,{sx:{...u.productSku,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",...!v&&g&&{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}},children:["SKU: ",k.sku]})]})]})}),(v&&!g||!v&&!g)&&l.jsx(P,{sx:{display:"flex",alignItems:"flex-start",justifyContent:v&&!g?"center":void 0,...v?p.statusBlock:{},flexShrink:0,minWidth:!v&&!g?64:0,width:g?"100%":void 0,mt:g?1:0,mr:!v&&!g?4:0,...v&&!g&&{alignSelf:"flex-start",marginTop:"8px"}},children:l.jsx(P,{component:"span",sx:k.status===!0?u.statusActiveBox:u.statusNoStockBox,children:k.status===!0?"Active":"No Stock"})}),!v&&!f&&l.jsxs(l.Fragment,{children:[l.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-start",flexShrink:0,minWidth:88,width:g?"100%":void 0,mt:g?1:0,ml:g?0:.5,textAlign:"left"},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:0},children:[k.stock===0&&l.jsx(ji,{title:"No stock",children:l.jsx(cl,{sx:y.errorIcon})}),l.jsx(j,{component:"span",sx:u.stockValue,children:k.stock}),l.jsx(j,{component:"span",sx:u.osaValue,children:k.quantity?`/${k.quantity}`:""})]}),(()=>{const X=Number(typeof k.osa=="number"?k.osa:k.osa??0),G=X<50;return l.jsxs(j,{sx:{...u.onShelfText,color:"#808080",textAlign:"left"},children:[l.jsxs(P,{component:"span",sx:G?{color:"#d32f2f"}:{},children:[Math.round(X),"%"]})," on shelf"]})})()]}),l.jsx(P,{sx:{width:20,flexShrink:0,minWidth:20}})]}),!v&&f&&l.jsx(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-start",width:"100%",mt:1,ml:"32px",...g&&{minHeight:48}},children:l.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:12,flexWrap:g?"nowrap":"wrap"},children:[g&&l.jsx(P,{component:"span",sx:k.status===!0?u.statusActiveBox:u.statusNoStockBox,children:k.status===!0?"Active":"No Stock"}),l.jsxs(P,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:0},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:0},children:[k.stock===0&&l.jsx(ji,{title:"No stock",children:l.jsx(cl,{sx:y.errorIcon})}),l.jsx(j,{component:"span",sx:u.stockValue,children:k.stock}),l.jsx(j,{component:"span",sx:u.osaValue,children:k.quantity?`/${k.quantity}`:""})]}),(()=>{const X=Number(typeof k.osa=="number"?k.osa:k.osa??0),G=X<50;return l.jsxs(j,{sx:{...u.onShelfText,color:"#808080",textAlign:"left"},children:[l.jsxs(P,{component:"span",sx:G?{color:"#d32f2f"}:{},children:[Math.round(X),"%"]})," on shelf"]})})()]})]})}),v&&!C&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",...p.priceBlock,flexShrink:0,minWidth:0,flex:"0 1 auto",width:g?"100%":void 0,mt:g?1:0},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[l.jsxs(j,{sx:p.priceText,children:["₹",k.price]}),l.jsx(P,{sx:{...p.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:l.jsx(ep,{sx:p.clockIconSx})})]}),k.mrp&&l.jsxs(j,{sx:y.mrpText,children:["₹",k.mrp]}),k.discount&&l.jsx(j,{sx:y.discountText,children:k.discount})]}),v&&!S&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",...p.stockBlock,flexShrink:0,minWidth:0,width:g?"100%":void 0,mt:g?1:0},children:[l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:0},children:[k.stock===0&&l.jsx(ji,{title:"No stock",children:l.jsx(cl,{sx:y.errorIcon})}),l.jsx(j,{component:"span",sx:u.stockValue,children:k.stock}),l.jsx(j,{component:"span",sx:u.osaValue,children:k.quantity?`/${k.quantity}`:""})]}),(()=>{const X=typeof k.osa=="number"?k.osa:k.osa??0,G=Number(X),Q=G<50;return l.jsxs(j,{sx:{...u.onShelfText,fontSize:"10px",color:p.onShelfPercentNormal.color},children:[l.jsxs(P,{component:"span",sx:Q?{color:p.onShelfPercentRed.color}:{},children:[Math.round(G),"%"]})," ",l.jsx(P,{component:"span",sx:{color:p.onShelfSpan.color},children:"on shelf"})]})})()]}),v&&!m&&l.jsxs(P,{sx:{display:"flex",flexDirection:"column",...p.offerBlock,minWidth:0,flex:"0 1 auto",width:g?"100%":void 0,mt:g?1:0},children:[l.jsx(j,{sx:{...p.offerText,whiteSpace:"pre-line"},children:W}),q.length>0&&l.jsxs(j,{sx:y.moreOffersLink,onClick:X=>I(X,B),children:["+",q.length," more"]})]})]},k.id||V)});return N?l.jsxs(P,{sx:{display:"grid",gridTemplateColumns:x?"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:[l.jsx(P,{sx:{gridColumn:"1 / -1",display:"grid",gridTemplateColumns:"subgrid",gap:"12px",alignItems:"center",...p.tableHeader,boxSizing:"border-box"},children:x?l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0},children:[l.jsx(bt,{checked:n.length>0&&n.every(A),indeterminate:n.some(A)&&!n.every(A),onChange:()=>{n.every(A)?n.forEach(k=>r(k,i,!1)):n.forEach(k=>{A(k)||r(k,i,!0)})},size:"small",sx:y.checkboxHeaderSx,icon:l.jsx("span",{style:y.checkboxIconSpanHeader}),checkedIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})}),indeterminateIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})})}),l.jsx(j,{component:"span",sx:{...p.headerLabel,...p.headerProduct},children:"Product"})]}):l.jsxs(l.Fragment,{children:[l.jsx(P,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:l.jsx(bt,{checked:n.length>0&&n.every(A),indeterminate:n.some(A)&&!n.every(A),onChange:()=>{n.every(A)?n.forEach(k=>r(k,i,!1)):n.forEach(k=>{A(k)||r(k,i,!0)})},size:"small",sx:y.checkboxHeaderSx,icon:l.jsx("span",{style:y.checkboxIconSpanHeader}),checkedIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})}),indeterminateIcon:l.jsx("span",{style:y.checkboxCheckedIconSpan,children:l.jsx("span",{style:y.checkboxCheckedIconInner})})})}),l.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0},children:l.jsx(j,{component:"span",sx:{...p.headerLabel,...p.headerProduct},children:"Product"})}),!x&&l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"center",minWidth:0},children:l.jsx(j,{component:"span",sx:{...p.headerLabel},children:"Status"})}),!C&&l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0},children:l.jsx(j,{component:"span",sx:{...p.headerLabel},children:"Price"})}),!S&&l.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0},children:l.jsx(j,{component:"span",sx:{...p.headerLabel},children:"Stock"})}),!m&&l.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0,...p.headerOffer},children:[l.jsx(j,{component:"span",sx:{...p.headerLabel},children:"Offer"}),l.jsx(ol,{sx:{...u.arrowDown,fontSize:12,marginTop:"8px",marginLeft:"20px"}})]})]})}),$]}):$})(),l.jsxs(kd,{open:F,anchorEl:O,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:y.popoverPaper},children:[l.jsx(j,{sx:y.popoverTitle,children:"Offers"}),M.map((N,$)=>l.jsxs(j,{sx:y.popoverItem,children:[$+1,". ",N]},$))]}),a&&typeof c=="function"&&typeof d=="function"&&l.jsxs(P,{sx:{...h.wrapper,width:"100%",maxWidth:"100%",flexWrap:"wrap"},children:[l.jsxs(P,{sx:h.resultsPerPageBox,children:[l.jsx(j,{component:"span",sx:h.resultsPerPageText,children:"Results per page"}),l.jsx(Pn,{value:a.limit??10,onChange:N=>d(Number(N.target.value)),IconComponent:Nr,variant:"standard",disableUnderline:!0,sx:h.select,children:[5,10,20,50].map(N=>l.jsx(We,{value:N,children:N},N))})]}),l.jsxs(P,{sx:h.navBox,children:[l.jsx(yt,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>c(1),sx:h.iconButton,title:"First page",children:l.jsx(Jd,{sx:{width:16,height:16,opacity:1}})}),l.jsx(yt,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>c((a.currentPage??1)-1),sx:h.iconButton,title:"Previous page",children:l.jsx(Hi,{sx:h.paginationIcon??y.paginationIcon})}),l.jsx(j,{component:"span",sx:h.pageText,children:(a.totalCount??0)===0?"0 of 0":`${((a.currentPage??1)-1)*(a.limit??10)+1}-${Math.min((a.currentPage??1)*(a.limit??10),a.totalCount??0)} of ${a.totalCount??0}`}),l.jsx(yt,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>c((a.currentPage??1)+1),sx:h.iconButton,title:"Next page",children:l.jsx(Ot,{sx:{width:16,height:16,opacity:1}})}),l.jsx(yt,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>c(a.totalPages??1),sx:h.iconButton,title:"Last page",children:l.jsx(Qd,{sx:h.paginationIcon??y.paginationIcon})})]})]})]})})}const VN={category:"all",status:"all",search:"",store:[]},UN=()=>{const e=on(),t=It(),n=Et(),[r]=Pb(),i=r.get("categoryName"),s=On(),a=s.categoryDetail,[c,d]=z.useState(()=>({...VN,...n.state?.filters||{}})),u=(Array.isArray(n.state?.selectedProducts)?n.state.selectedProducts:[]).reduce((ie,ue)=>{const ve=(ue.categoryName||ue.category||i||"").toString().trim();if(!ve)return ie;const je=ie[ve]||[];return je.some(_e=>_e.id===ue.id)?ie[ve]=je:ie[ve]=[...je,ue],ie},{}),[p,h]=z.useState(u),[,y]=z.useState(null),[b,g]=z.useState(!1),[f,m]=z.useState([]),[S,C]=z.useState(!1),[x,v]=z.useState(!1),{integrationData:w,companyId:A,loading:O,productsLoading:L}=Je(K=>K.dashboard),M=z.useRef(!1),_=z.useRef(!1);z.useEffect(()=>{!A&&!M.current&&(M.current=!0,e(Vo()))},[e,A]);const I=z.useMemo(()=>w&&typeof w=="object"&&Object.keys(w).length>0?{matched:!0,error:"",apiResponse:w,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[w]),T=Je(K=>K.dashboard),{products:F=[],stores:D=[],pagination:U={}}=T||{},{currentPage:N=1,limit:$=10,totalCount:k=0,totalPages:V=1,hasNextPage:B=!1}=U,{sharedCatalogues:W=[],sharedCataloguesTotal:q=0,lastStableActiveCatalogsCount:X=null}=Je(K=>K.productSettings??{}),G=z.useMemo(()=>Array.isArray(W)?W.filter(K=>K.status===!0).length:0,[W]),ee=q>0&&W.length>=q?G:X??G,oe=z.useMemo(()=>{if(!i||!Array.isArray(F))return[];const K=i.trim().toLowerCase();return F.filter(ie=>{const ue=(ie.categoryName||ie.category||"").toString().trim().toLowerCase();return ue&&ue===K}).map(ie=>({...ie,catalogProductId:ie.productId||ie.id,id:ie.id||ie.sku||ie.productName}))},[F,i]),le=oe.length>0,ae=z.useMemo(()=>{if(!oe||oe.length===0)return;const K=oe.map(ie=>Number(ie.price??ie.sellingPrice??ie.mrp)).filter(ie=>Number.isFinite(ie)&&ie>=0);if(K.length!==0)return{min:Math.min(...K),max:Math.max(...K)}},[oe]),re=Array.isArray(F)&&F.length>0,ce=Array.isArray(c.store)?c.store:[],he=!(ce.length===1&&ce[0]!=="all"),de=K=>{K.preventDefault(),t("/settings",{state:{tenantIntegrationData:I.apiResponse}})},ge=z.useMemo(()=>D.length>0?D:[{id:"all",name:"All Stores",storeCode:"all"}],[D]),ze=z.useCallback(K=>{d(K)},[d]),Ee=z.useCallback((K={})=>{const ie=Array.isArray(c.store)?c.store:[],ue={page:N,limit:$,...K};if(i&&i.trim()&&(ue.categoryName=i.trim()),ie.length>0&&!ie.includes("all")){const ve=ie.map(je=>D.find(Ye=>Ye.id===je)?.storeCode).filter(Boolean);ve.length>0&&(ue.storeCode=ve.join(","))}return(c.status==="active"||c.status==="inactive")&&(ue.status=c.status==="active"),(c.stock==="inStock"||c.stock==="outOfStock")&&(ue.inStock=c.stock==="inStock"),typeof c.minPrice=="number"&&Number.isFinite(c.minPrice)&&(ue.minPrice=c.minPrice),typeof c.maxPrice=="number"&&Number.isFinite(c.maxPrice)&&(ue.maxPrice=c.maxPrice),c.search!=null&&String(c.search).trim()!==""&&(ue.search=String(c.search).trim()),ue},[i,N,$,c.store,c.status,c.stock,c.minPrice,c.maxPrice,c.search,D]),me=K=>{e(zn(Ee({page:K})))},De=K=>{e(zn(Ee({page:1,limit:K})))},Le=z.useCallback((K,ie={})=>{const ue=Array.isArray(c.store)?c.store:[],ve={page:1,limit:5e3,...ie};if(K&&String(K).trim()!==""&&(ve.categoryName=String(K).trim()),ue.length>0&&!ue.includes("all")){const je=ue.map(_e=>D.find(Se=>Se.id===_e)?.storeCode).filter(Boolean);je.length>0&&(ve.storeCode=je.join(","))}return c.search!=null&&String(c.search).trim()!==""&&(ve.search=String(c.search).trim()),ve},[c.store,c.search,D]),Ne=z.useCallback(async()=>{const ie=(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]).map(we=>(we?.categoryName??we?.name??"").toString().trim()).filter(Boolean),ue=Array.isArray(p[i])?p[i]:[],ve=[];for(const we of ie){if(we===i){ue.length>0&&ve.push(ue);continue}try{const Be=Le(we),Ct=await e(Ms(Be)).unwrap().catch(()=>({})),rt=Array.isArray(Ct?.data)?Ct.data:Array.isArray(Ct?.products)?Ct.products:Array.isArray(Ct)?Ct:[];ve.push(rt)}catch{ve.push([])}}ue.length>0&&!ie.includes(i)&&ve.push(ue);const je=new Set(ie);Object.keys(p||{}).forEach(we=>{if(we===i||je.has(we))return;const Be=p[we];Array.isArray(Be)&&Be.length>0&&ve.push(Be)});const _e=ve.flat().filter(Boolean),Ye=new Set,Se=_e.map(we=>({...we,catalogProductId:we?.productId??we?.catalogProductId??we?.id,id:we?.id||we?.sku||we?.productName})).filter(we=>{const Be=(we?.productId||we?.id||we?.sku||we?.productName||"").toString();return!Be||Ye.has(Be)?!1:(Ye.add(Be),!0)});m(Se),g(!0)},[e,i,n.state,p,Le]),pe=z.useRef(null),Ve=z.useRef(null);z.useEffect(()=>{if(!A)return;const K=Array.isArray(c.store)?c.store:[],ie={page:N,limit:$};if(i&&i.trim()&&(ie.categoryName=i.trim()),K.length>0&&!K.includes("all")){const ve=K.map(je=>D.find(Ye=>Ye.id===je)?.storeCode).filter(Boolean);ve.length>0&&(ie.storeCode=ve.join(","))}(c.status==="active"||c.status==="inactive")&&(ie.status=c.status==="active"),(c.stock==="inStock"||c.stock==="outOfStock")&&(ie.inStock=c.stock==="inStock"),typeof c.minPrice=="number"&&Number.isFinite(c.minPrice)&&(ie.minPrice=c.minPrice),typeof c.maxPrice=="number"&&Number.isFinite(c.maxPrice)&&(ie.maxPrice=c.maxPrice),c.search!=null&&String(c.search).trim()!==""&&(ie.search=String(c.search).trim());const ue=JSON.stringify(ie);pe.current!==ue&&(pe.current=ue,e(zn(ie)))},[A,i,N,$,c.store,c.status,c.stock,c.minPrice,c.maxPrice,c.search,e,D]);const Ie=(K,ie)=>{h(ue=>{const ve=ue[ie]||[];let je;return ve.some(_e=>_e.id===K.id)?je=ve.filter(_e=>_e.id!==K.id):je=[...ve,K],{...ue,[ie]:je}}),y(ie)};z.useEffect(()=>{if(_.current||!i||!Array.isArray(oe)||oe.length===0||!(Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[]).map(ve=>ve?.categoryName??ve?.name??ve).filter(Boolean).includes(i))return;if((p[i]||[]).length>0){_.current=!0;return}queueMicrotask(()=>{h(ve=>({...ve,[i]:oe}))}),_.current=!0},[i,oe,p,n.state?.selectedCategories]),z.useEffect(()=>{A&&(e(zt(A)),e(Uo()),i&&i.trim()&&e(Fs({categoryName:i.trim()})),n.state?.filters||(i&&i.trim()?e(zn({categoryName:i.trim(),page:1,limit:10})):e(zn({page:1,limit:10}))),e(Yt({page:1})))},[e,A,i,n.state?.filters]),z.useEffect(()=>{if(!A||q<=0)return;(Array.isArray(W)?W.length:0)<q&&e(Yt({page:1,limit:q}))},[A,q,W?.length,e,W]);const se=Array.isArray(n.state?.selectedCategories)?n.state.selectedCategories:[],ne=p[i]||[],xe=le&&ne.length===oe.length,Z=new Map(se.map(K=>{const ie=(K?.categoryName??K?.name??"").toString().trim();return ie?[ie,K]:null}).filter(Boolean));if(i){const K=i.toString().trim();K&&(xe?Z.has(K)||Z.set(K,{categoryName:K}):Z.delete(K))}const fe=Array.from(Z.values()),{setTopbarProps:ye}=Yi()||{};return z.useEffect(()=>{if(ye)return ye({filters:c,onFilterChange:ze,styles:a.topBar,stores:ge,tenantStatus:I,hasProducts:re,priceRange:ae,showBackButton:!0,backTo:"/",backState:{selectedCategories:fe,selectedProducts:Object.values(p||{}).flat()}}),()=>ye({})},[ye,c,ze,a.topBar,ge,I,re,ae,fe,p]),l.jsx(l.Fragment,{children:l.jsxs(P,{sx:a.contentWrapper??{marginTop:0,position:"relative",zIndex:0},children:[O||!A?l.jsx(mo,{text:i?"Fetching Products":"Fetching",fullScreen:!1}):i?i&&L?l.jsx(mo,{text:"Fetching Products",fullScreen:!1}):le?l.jsxs(P,{sx:a.root,children:[l.jsxs(or,{ref:Ve,maxWidth:"lg",sx:{width:"100%",px:{xs:1,sm:2,md:4},display:"flex",flexDirection:"column",alignItems:"stretch"},children:[l.jsx(ey,{productState:T,categoryName:i,categoryProductCount:oe.length,activeCatalogsCount:ee,onManageClick:()=>t("/catalogs/manage-shared"),matchHomePageLayout:!0}),l.jsx(WN,{data:oe,styles:a,selectedProducts:p[i]||[],onSelectProduct:Ie,categoryName:i,showLimitedColumns:he,pagination:{currentPage:N,limit:$,totalCount:k,totalPages:V,hasNextPage:B},onPageChange:me,onLimitChange:De})]}),l.jsx(ry,{containerRef:Ve,onPromoPrint:Ne,onCreateCatalog:()=>C(!0),onOsaRequest:()=>v(!0),selectedProducts:Object.values(p||{}).flat(),selectedCategories:fe})]}):l.jsx(P,{sx:a.loadingBox??{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(j,{sx:s?.emptyProduct&&s.emptyProduct.title||{fontSize:"16px",fontWeight:600,color:"#1a1a1a"},children:`No products found in the "${i}" category.`})}):l.jsx(Vd,{handleStartSyncing:de,loading:!1}),l.jsx(ly,{open:b,onClose:()=>{g(!1),m([])},selectedProducts:f},b?"open":"closed"),l.jsx(iy,{open:S,onClose:()=>C(!1),stores:ge,selectedProducts:Object.values(p||{}).flat(),selectedCategories:fe,onCreateSuccess:K=>{h(ie=>({...ie,[i]:[]})),C(!1),K&&t("/",{state:{catalogCreated:!0,catalogSlug:K}})}}),l.jsx(sy,{open:x,onClose:()=>v(!1),stores:ge,selectedProducts:Object.values(p||{}).flat(),selectedCategories:fe,onSuccess:()=>h(K=>({...K,[i]:[]}))})]})})};function HN(){return l.jsx(sb,{children:l.jsxs(ar,{element:l.jsx(bI,{}),children:[l.jsx(ar,{path:"/",element:l.jsx(qI,{})}),l.jsx(ar,{path:"/category",element:l.jsx(UN,{})}),l.jsx(ar,{path:"/product-setting",element:l.jsx(tN,{})}),l.jsx(ar,{path:"/products/settings/ftp-sync",element:l.jsx(SN,{})}),l.jsx(ar,{path:"/catalogs/manage-shared",element:l.jsx(BN,{})})]})})}function RN({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return l.jsx(HN,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}const qN=()=>l.jsx(mo,{text:"Fetching",fullScreen:!0});return({apiUrl:e,authToken:t,basePath:n="/",StoresModal:r,storesModalProps:i,onStoreSelect:s})=>l.jsx("div",{style:{width:"100%",minHeight:"100vh"},children:l.jsx(N1,{apiUrl:e,authToken:t,children:l.jsx(Qb,{store:bf,children:l.jsx(o0.PersistGate,{loading:l.jsx(qN,{}),persistor:O1,children:l.jsx(Sb,{basename:n,children:l.jsx(RN,{StoresModal:r,storesModalProps:i,onStoreSelect:s})})})})})})}));
|
|
1583
1583
|
//# sourceMappingURL=product-app.umd.js.map
|