@3sc/common-component 0.0.562 → 0.0.563

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/index.umd.js CHANGED
@@ -1,15 +1,15 @@
1
- (function(lt,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],x):(lt=typeof globalThis<"u"?globalThis:lt||self,x(lt.ScaiCommonComponent={},lt.React,lt.ReactDOM))})(this,(function(lt,x,js){"use strict";function gp(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 I=gp(x),rx=gp(js);function ox(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var da={exports:{}},Is={};var yp;function sx(){if(yp)return Is;yp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var l in o)l!=="key"&&(s[l]=o[l])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return Is.Fragment=t,Is.jsx=n,Is.jsxs=n,Is}var Ds={};var bp;function ix(){return bp||(bp=1,process.env.NODE_ENV!=="production"&&(function(){function e(D){if(D==null)return null;if(typeof D=="function")return D.$$typeof===L?null:D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case b:return"Fragment";case T:return"Profiler";case v:return"StrictMode";case k:return"Suspense";case O:return"SuspenseList";case A:return"Activity"}if(typeof D=="object")switch(typeof D.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),D.$$typeof){case y:return"Portal";case C:return D.displayName||"Context";case S:return(D._context.displayName||"Context")+".Consumer";case w:var V=D.render;return D=D.displayName,D||(D=V.displayName||V.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case P:return V=D.displayName||null,V!==null?V:e(D.type)||"Memo";case j:V=D._payload,D=D._init;try{return e(D(V))}catch{}}return null}function t(D){return""+D}function n(D){try{t(D);var V=!1}catch{V=!0}if(V){V=console;var U=V.error,G=typeof Symbol=="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object";return U.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",G),t(D)}}function r(D){if(D===b)return"<>";if(typeof D=="object"&&D!==null&&D.$$typeof===j)return"<...>";try{var V=e(D);return V?"<"+V+">":"<...>"}catch{return"<...>"}}function o(){var D=E.A;return D===null?null:D.getOwner()}function s(){return Error("react-stack-top-frame")}function a(D){if(R.call(D,"key")){var V=Object.getOwnPropertyDescriptor(D,"key").get;if(V&&V.isReactWarning)return!1}return D.key!==void 0}function l(D,V){function U(){$||($=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",V))}U.isReactWarning=!0,Object.defineProperty(D,"key",{get:U,configurable:!0})}function c(){var D=e(this.type);return F[D]||(F[D]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),D=this.props.ref,D!==void 0?D:null}function d(D,V,U,G,X,q){var K=U.ref;return D={$$typeof:g,type:D,key:V,props:U,_owner:G},(K!==void 0?K:null)!==null?Object.defineProperty(D,"ref",{enumerable:!1,get:c}):Object.defineProperty(D,"ref",{enumerable:!1,value:null}),D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(D,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(D,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(D,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:q}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function u(D,V,U,G,X,q){var K=V.children;if(K!==void 0)if(G)if(M(K)){for(G=0;G<K.length;G++)f(K[G]);Object.freeze&&Object.freeze(K)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(K);if(R.call(V,"key")){K=e(D);var ce=Object.keys(V).filter(function(W){return W!=="key"});G=0<ce.length?"{key: someKey, "+ce.join(": ..., ")+": ...}":"{key: someKey}",_[K+G]||(ce=0<ce.length?"{"+ce.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(lt,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],x):(lt=typeof globalThis<"u"?globalThis:lt||self,x(lt.ScaiCommonComponent={},lt.React,lt.ReactDOM))})(this,(function(lt,x,js){"use strict";function gp(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 I=gp(x),rx=gp(js);function ox(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var da={exports:{}},Is={};var yp;function sx(){if(yp)return Is;yp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var l in o)l!=="key"&&(s[l]=o[l])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return Is.Fragment=t,Is.jsx=n,Is.jsxs=n,Is}var Ds={};var bp;function ix(){return bp||(bp=1,process.env.NODE_ENV!=="production"&&(function(){function e(D){if(D==null)return null;if(typeof D=="function")return D.$$typeof===L?null:D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case b:return"Fragment";case k:return"Profiler";case v:return"StrictMode";case T:return"Suspense";case O:return"SuspenseList";case A:return"Activity"}if(typeof D=="object")switch(typeof D.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),D.$$typeof){case y:return"Portal";case C:return D.displayName||"Context";case S:return(D._context.displayName||"Context")+".Consumer";case w:var F=D.render;return D=D.displayName,D||(D=F.displayName||F.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case M:return F=D.displayName||null,F!==null?F:e(D.type)||"Memo";case j:F=D._payload,D=D._init;try{return e(D(F))}catch{}}return null}function t(D){return""+D}function n(D){try{t(D);var F=!1}catch{F=!0}if(F){F=console;var U=F.error,q=typeof Symbol=="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object";return U.call(F,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",q),t(D)}}function r(D){if(D===b)return"<>";if(typeof D=="object"&&D!==null&&D.$$typeof===j)return"<...>";try{var F=e(D);return F?"<"+F+">":"<...>"}catch{return"<...>"}}function o(){var D=E.A;return D===null?null:D.getOwner()}function s(){return Error("react-stack-top-frame")}function a(D){if(N.call(D,"key")){var F=Object.getOwnPropertyDescriptor(D,"key").get;if(F&&F.isReactWarning)return!1}return D.key!==void 0}function l(D,F){function U(){R||(R=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",F))}U.isReactWarning=!0,Object.defineProperty(D,"key",{get:U,configurable:!0})}function c(){var D=e(this.type);return W[D]||(W[D]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),D=this.props.ref,D!==void 0?D:null}function d(D,F,U,q,X,G){var K=U.ref;return D={$$typeof:g,type:D,key:F,props:U,_owner:q},(K!==void 0?K:null)!==null?Object.defineProperty(D,"ref",{enumerable:!1,get:c}):Object.defineProperty(D,"ref",{enumerable:!1,value:null}),D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(D,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(D,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(D,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function u(D,F,U,q,X,G){var K=F.children;if(K!==void 0)if(q)if(P(K)){for(q=0;q<K.length;q++)f(K[q]);Object.freeze&&Object.freeze(K)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(K);if(N.call(F,"key")){K=e(D);var ae=Object.keys(F).filter(function(z){return z!=="key"});q=0<ae.length?"{key: someKey, "+ae.join(": ..., ")+": ...}":"{key: someKey}",B[K+q]||(ae=0<ae.length?"{"+ae.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
5
  let props = %s;
6
- <%s key={someKey} {...props} />`,G,K,ce,K),_[K+G]=!0)}if(K=null,U!==void 0&&(n(U),K=""+U),a(V)&&(n(V.key),K=""+V.key),"key"in V){U={};for(var de in V)de!=="key"&&(U[de]=V[de])}else U=V;return K&&l(U,typeof D=="function"?D.displayName||D.name||"Unknown":D),d(D,K,U,o(),X,q)}function f(D){h(D)?D._store&&(D._store.validated=1):typeof D=="object"&&D!==null&&D.$$typeof===j&&(D._payload.status==="fulfilled"?h(D._payload.value)&&D._payload.value._store&&(D._payload.value._store.validated=1):D._store&&(D._store.validated=1))}function h(D){return typeof D=="object"&&D!==null&&D.$$typeof===g}var m=x,g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),C=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),E=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=Object.prototype.hasOwnProperty,M=Array.isArray,N=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(D){return D()}};var $,F={},H=m.react_stack_bottom_frame.bind(m,s)(),z=N(r(s)),_={};Ds.Fragment=b,Ds.jsx=function(D,V,U){var G=1e4>E.recentlyCreatedOwnerStacks++;return u(D,V,U,!1,G?Error("react-stack-top-frame"):H,G?N(r(D)):z)},Ds.jsxs=function(D,V,U){var G=1e4>E.recentlyCreatedOwnerStacks++;return u(D,V,U,!0,G?Error("react-stack-top-frame"):H,G?N(r(D)):z)}})()),Ds}var vp;function ax(){return vp||(vp=1,process.env.NODE_ENV==="production"?da.exports=sx():da.exports=ix()),da.exports}var p=ax();const As={black:"#000",white:"#fff"},jo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Io={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Do={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ao={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ro={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Rs={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},lx={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 Qn(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 er="$$material";function ua(){return ua=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},ua.apply(null,arguments)}function cx(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 dx(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 ux=(function(){function e(n){var r=this;this._insertTag=function(o){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(o,s),r.tags.push(o)},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(dx(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=cx(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Qt="-ms-",fa="-moz-",it="-webkit-",xp="comm",vc="rule",xc="decl",fx="@import",wp="@keyframes",px="@layer",hx=Math.abs,pa=String.fromCharCode,mx=Object.assign;function gx(e,t){return Kt(e,0)^45?(((t<<2^Kt(e,0))<<2^Kt(e,1))<<2^Kt(e,2))<<2^Kt(e,3):0}function Sp(e){return e.trim()}function yx(e,t){return(e=t.exec(e))?e[0]:e}function at(e,t,n){return e.replace(t,n)}function wc(e,t){return e.indexOf(t)}function Kt(e,t){return e.charCodeAt(t)|0}function Ns(e,t,n){return e.slice(t,n)}function tr(e){return e.length}function Sc(e){return e.length}function ha(e,t){return t.push(e),e}function bx(e,t){return e.map(t).join("")}var ma=1,No=1,Cp=0,fn=0,Bt=0,$o="";function ga(e,t,n,r,o,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:ma,column:No,length:a,return:""}}function $s(e,t){return mx(ga("",null,null,"",null,null,0),e,{length:-e.length},t)}function vx(){return Bt}function xx(){return Bt=fn>0?Kt($o,--fn):0,No--,Bt===10&&(No=1,ma--),Bt}function xn(){return Bt=fn<Cp?Kt($o,fn++):0,No++,Bt===10&&(No=1,ma++),Bt}function nr(){return Kt($o,fn)}function ya(){return fn}function Ls(e,t){return Ns($o,e,t)}function Bs(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 Tp(e){return ma=No=1,Cp=tr($o=e),fn=0,[]}function kp(e){return $o="",e}function ba(e){return Sp(Ls(fn-1,Cc(e===91?e+2:e===40?e+1:e)))}function wx(e){for(;(Bt=nr())&&Bt<33;)xn();return Bs(e)>2||Bs(Bt)>3?"":" "}function Sx(e,t){for(;--t&&xn()&&!(Bt<48||Bt>102||Bt>57&&Bt<65||Bt>70&&Bt<97););return Ls(e,ya()+(t<6&&nr()==32&&xn()==32))}function Cc(e){for(;xn();)switch(Bt){case e:return fn;case 34:case 39:e!==34&&e!==39&&Cc(Bt);break;case 40:e===41&&Cc(e);break;case 92:xn();break}return fn}function Cx(e,t){for(;xn()&&e+Bt!==57;)if(e+Bt===84&&nr()===47)break;return"/*"+Ls(t,fn-1)+"*"+pa(e===47?e:xn())}function Tx(e){for(;!Bs(nr());)xn();return Ls(e,fn)}function kx(e){return kp(va("",null,null,null,[""],e=Tp(e),0,[0],e))}function va(e,t,n,r,o,s,a,l,c){for(var d=0,u=0,f=a,h=0,m=0,g=0,y=1,b=1,v=1,T=0,S="",C=o,w=s,k=r,O=S;b;)switch(g=T,T=xn()){case 40:if(g!=108&&Kt(O,f-1)==58){wc(O+=at(ba(T),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=ba(T);break;case 9:case 10:case 13:case 32:O+=wx(g);break;case 92:O+=Sx(ya()-1,7);continue;case 47:switch(nr()){case 42:case 47:ha(Ex(Cx(xn(),ya()),t,n),c);break;default:O+="/"}break;case 123*y:l[d++]=tr(O)*v;case 125*y:case 59:case 0:switch(T){case 0:case 125:b=0;case 59+u:v==-1&&(O=at(O,/\f/g,"")),m>0&&tr(O)-f&&ha(m>32?Op(O+";",r,n,f-1):Op(at(O," ","")+";",r,n,f-2),c);break;case 59:O+=";";default:if(ha(k=Ep(O,t,n,d,u,o,l,S,C=[],w=[],f),s),T===123)if(u===0)va(O,t,k,k,C,s,f,l,w);else switch(h===99&&Kt(O,3)===110?100:h){case 100:case 108:case 109:case 115:va(e,k,k,r&&ha(Ep(e,k,k,0,0,o,l,S,o,C=[],f),w),o,w,f,l,r?C:w);break;default:va(O,k,k,k,[""],w,0,l,w)}}d=u=m=0,y=v=1,S=O="",f=a;break;case 58:f=1+tr(O),m=g;default:if(y<1){if(T==123)--y;else if(T==125&&y++==0&&xx()==125)continue}switch(O+=pa(T),T*y){case 38:v=u>0?1:(O+="\f",-1);break;case 44:l[d++]=(tr(O)-1)*v,v=1;break;case 64:nr()===45&&(O+=ba(xn())),h=nr(),u=f=tr(S=O+=Tx(ya())),T++;break;case 45:g===45&&tr(O)==2&&(y=0)}}return s}function Ep(e,t,n,r,o,s,a,l,c,d,u){for(var f=o-1,h=o===0?s:[""],m=Sc(h),g=0,y=0,b=0;g<r;++g)for(var v=0,T=Ns(e,f+1,f=hx(y=a[g])),S=e;v<m;++v)(S=Sp(y>0?h[v]+" "+T:at(T,/&\f/g,h[v])))&&(c[b++]=S);return ga(e,t,n,o===0?vc:l,c,d,u)}function Ex(e,t,n){return ga(e,t,n,xp,pa(vx()),Ns(e,2,-2),0)}function Op(e,t,n,r){return ga(e,t,n,xc,Ns(e,0,r),Ns(e,r+1,-1),r)}function Lo(e,t){for(var n="",r=Sc(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ox(e,t,n,r){switch(e.type){case px:if(e.children.length)break;case fx:case xc:return e.return=e.return||e.value;case xp:return"";case wp:return e.return=e.value+"{"+Lo(e.children,r)+"}";case vc:e.value=e.props.join(",")}return tr(n=Lo(e.children,r))?e.return=e.value+"{"+n+"}":""}function Mx(e){var t=Sc(e);return function(n,r,o,s){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,s)||"";return a}}function Px(e){return function(t){t.root||(t=t.return)&&e(t)}}function Mp(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var jx=function(t,n,r){for(var o=0,s=0;o=s,s=nr(),o===38&&s===12&&(n[r]=1),!Bs(s);)xn();return Ls(t,fn)},Ix=function(t,n){var r=-1,o=44;do switch(Bs(o)){case 0:o===38&&nr()===12&&(n[r]=1),t[r]+=jx(fn-1,n,r);break;case 2:t[r]+=ba(o);break;case 4:if(o===44){t[++r]=nr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=pa(o)}while(o=xn());return t},Dx=function(t,n){return kp(Ix(Tp(t),n))},Pp=new WeakMap,Ax=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=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&&!Pp.get(r))&&!o){Pp.set(t,!0);for(var s=[],a=Dx(n,s),l=r.props,c=0,d=0;c<a.length;c++)for(var u=0;u<l.length;u++,d++)t.props[d]=s[c]?a[c].replace(/&\f/g,l[u]):l[u]+" "+a[c]}}},Rx=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function jp(e,t){switch(gx(e,t)){case 5103:return it+"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 it+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return it+e+fa+e+Qt+e+e;case 6828:case 4268:return it+e+Qt+e+e;case 6165:return it+e+Qt+"flex-"+e+e;case 5187:return it+e+at(e,/(\w+).+(:[^]+)/,it+"box-$1$2"+Qt+"flex-$1$2")+e;case 5443:return it+e+Qt+"flex-item-"+at(e,/flex-|-self/,"")+e;case 4675:return it+e+Qt+"flex-line-pack"+at(e,/align-content|flex-|-self/,"")+e;case 5548:return it+e+Qt+at(e,"shrink","negative")+e;case 5292:return it+e+Qt+at(e,"basis","preferred-size")+e;case 6060:return it+"box-"+at(e,"-grow","")+it+e+Qt+at(e,"grow","positive")+e;case 4554:return it+at(e,/([^-])(transform)/g,"$1"+it+"$2")+e;case 6187:return at(at(at(e,/(zoom-|grab)/,it+"$1"),/(image-set)/,it+"$1"),e,"")+e;case 5495:case 3959:return at(e,/(image-set\([^]*)/,it+"$1$`$1");case 4968:return at(at(e,/(.+:)(flex-)?(.*)/,it+"box-pack:$3"+Qt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+it+e+e;case 4095:case 3583:case 4068:case 2532:return at(e,/(.+)-inline(.+)/,it+"$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(tr(e)-1-t>6)switch(Kt(e,t+1)){case 109:if(Kt(e,t+4)!==45)break;case 102:return at(e,/(.+:)(.+)-([^]+)/,"$1"+it+"$2-$3$1"+fa+(Kt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wc(e,"stretch")?jp(at(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Kt(e,t+1)!==115)break;case 6444:switch(Kt(e,tr(e)-3-(~wc(e,"!important")&&10))){case 107:return at(e,":",":"+it)+e;case 101:return at(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+it+(Kt(e,14)===45?"inline-":"")+"box$3$1"+it+"$2$3$1"+Qt+"$2box$3")+e}break;case 5936:switch(Kt(e,t+11)){case 114:return it+e+Qt+at(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return it+e+Qt+at(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return it+e+Qt+at(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return it+e+Qt+e+e}return e}var Nx=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case xc:t.return=jp(t.value,t.length);break;case wp:return Lo([$s(t,{value:at(t.value,"@","@"+it)})],o);case vc:if(t.length)return bx(t.props,function(s){switch(yx(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Lo([$s(t,{props:[at(s,/:(read-\w+)/,":"+fa+"$1")]})],o);case"::placeholder":return Lo([$s(t,{props:[at(s,/:(plac\w+)/,":"+it+"input-$1")]}),$s(t,{props:[at(s,/:(plac\w+)/,":"+fa+"$1")]}),$s(t,{props:[at(s,/:(plac\w+)/,Qt+"input-$1")]})],o)}return""})}},$x=[Nx],Lx=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(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||$x,s={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),v=1;v<b.length;v++)s[b[v]]=!0;l.push(y)});var c,d=[Ax,Rx];{var u,f=[Ox,Px(function(y){u.insert(y)})],h=Mx(d.concat(o,f)),m=function(b){return Lo(kx(b),h)};c=function(b,v,T,S){u=T,m(b?b+"{"+v.styles+"}":v.styles),S&&(g.inserted[v.name]=!0)}}var g={key:n,sheet:new ux({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return g.sheet.hydrate(l),g},xa={exports:{}},ct={};var Ip;function Bx(){if(Ip)return ct;Ip=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,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function S(w){if(typeof w=="object"&&w!==null){var k=w.$$typeof;switch(k){case t:switch(w=w.type,w){case c:case d:case r:case s:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case l:case u:case g:case m:case a:return w;default:return k}}case n:return k}}}function C(w){return S(w)===d}return ct.AsyncMode=c,ct.ConcurrentMode=d,ct.ContextConsumer=l,ct.ContextProvider=a,ct.Element=t,ct.ForwardRef=u,ct.Fragment=r,ct.Lazy=g,ct.Memo=m,ct.Portal=n,ct.Profiler=s,ct.StrictMode=o,ct.Suspense=f,ct.isAsyncMode=function(w){return C(w)||S(w)===c},ct.isConcurrentMode=C,ct.isContextConsumer=function(w){return S(w)===l},ct.isContextProvider=function(w){return S(w)===a},ct.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},ct.isForwardRef=function(w){return S(w)===u},ct.isFragment=function(w){return S(w)===r},ct.isLazy=function(w){return S(w)===g},ct.isMemo=function(w){return S(w)===m},ct.isPortal=function(w){return S(w)===n},ct.isProfiler=function(w){return S(w)===s},ct.isStrictMode=function(w){return S(w)===o},ct.isSuspense=function(w){return S(w)===f},ct.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===d||w===s||w===o||w===f||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===m||w.$$typeof===a||w.$$typeof===l||w.$$typeof===u||w.$$typeof===b||w.$$typeof===v||w.$$typeof===T||w.$$typeof===y)},ct.typeOf=S,ct}var dt={};var Dp;function _x(){return Dp||(Dp=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,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function S(B){return typeof B=="string"||typeof B=="function"||B===r||B===d||B===s||B===o||B===f||B===h||typeof B=="object"&&B!==null&&(B.$$typeof===g||B.$$typeof===m||B.$$typeof===a||B.$$typeof===l||B.$$typeof===u||B.$$typeof===b||B.$$typeof===v||B.$$typeof===T||B.$$typeof===y)}function C(B){if(typeof B=="object"&&B!==null){var ue=B.$$typeof;switch(ue){case t:var Q=B.type;switch(Q){case c:case d:case r:case s:case o:case f:return Q;default:var ne=Q&&Q.$$typeof;switch(ne){case l:case u:case g:case m:case a:return ne;default:return ue}}case n:return ue}}}var w=c,k=d,O=l,P=a,j=t,A=u,L=r,E=g,R=m,M=n,N=s,$=o,F=f,H=!1;function z(B){return H||(H=!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)||C(B)===c}function _(B){return C(B)===d}function D(B){return C(B)===l}function V(B){return C(B)===a}function U(B){return typeof B=="object"&&B!==null&&B.$$typeof===t}function G(B){return C(B)===u}function X(B){return C(B)===r}function q(B){return C(B)===g}function K(B){return C(B)===m}function ce(B){return C(B)===n}function de(B){return C(B)===s}function W(B){return C(B)===o}function ee(B){return C(B)===f}dt.AsyncMode=w,dt.ConcurrentMode=k,dt.ContextConsumer=O,dt.ContextProvider=P,dt.Element=j,dt.ForwardRef=A,dt.Fragment=L,dt.Lazy=E,dt.Memo=R,dt.Portal=M,dt.Profiler=N,dt.StrictMode=$,dt.Suspense=F,dt.isAsyncMode=z,dt.isConcurrentMode=_,dt.isContextConsumer=D,dt.isContextProvider=V,dt.isElement=U,dt.isForwardRef=G,dt.isFragment=X,dt.isLazy=q,dt.isMemo=K,dt.isPortal=ce,dt.isProfiler=de,dt.isStrictMode=W,dt.isSuspense=ee,dt.isValidElementType=S,dt.typeOf=C})()),dt}var Ap;function Fx(){return Ap||(Ap=1,process.env.NODE_ENV==="production"?xa.exports=Bx():xa.exports=_x()),xa.exports}var Tc,Rp;function Wx(){if(Rp)return Tc;Rp=1;var e=Fx(),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},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=o;function a(g){return e.isMemo(g)?o:s[g.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function m(g,y,b){if(typeof y!="string"){if(h){var v=f(y);v&&v!==h&&m(g,v,b)}var T=c(y);d&&(T=T.concat(d(y)));for(var S=a(g),C=a(y),w=0;w<T.length;++w){var k=T[w];if(!n[k]&&!(b&&b[k])&&!(C&&C[k])&&!(S&&S[k])){var O=u(y,k);try{l(g,k,O)}catch{}}}}return g}return Tc=m,Tc}Wx();var zx=!0;function Np(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var kc=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||zx===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Ec=function(t,n,r){kc(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Vx(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 Hx={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},Ux=/[A-Z]|^ms/g,Yx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$p=function(t){return t.charCodeAt(1)===45},Lp=function(t){return t!=null&&typeof t!="boolean"},Oc=Mp(function(e){return $p(e)?e:e.replace(Ux,"-$&").toLowerCase()}),Bp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Yx,function(r,o,s){return rr={name:o,styles:s,next:rr},o})}return Hx[t]!==1&&!$p(t)&&typeof n=="number"&&n!==0?n+"px":n};function _s(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 o=n;if(o.anim===1)return rr={name:o.name,styles:o.styles,next:rr},o.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)rr={name:a.name,styles:a.styles,next:rr},a=a.next;var l=s.styles+";";return l}return qx(e,t,n)}case"function":{if(e!==void 0){var c=rr,d=n(e);return rr=c,_s(e,t,d)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function qx(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=_s(e,t,n[o])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=s+"{"+t[l]+"}":Lp(l)&&(r+=Oc(s)+":"+Bp(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)Lp(a[c])&&(r+=Oc(s)+":"+Bp(s,a[c])+";");else{var d=_s(e,t,a);switch(s){case"animation":case"animationName":{r+=Oc(s)+":"+d+";";break}default:r+=s+"{"+d+"}"}}}return r}var _p=/label:\s*([^\s;{]+)\s*(;|$)/g,rr;function Fs(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,o="";rr=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=_s(n,t,s);else{var a=s;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=_s(n,t,e[l]),r){var c=s;o+=c[l]}_p.lastIndex=0;for(var d="",u;(u=_p.exec(o))!==null;)d+="-"+u[1];var f=Vx(o)+d;return{name:f,styles:o,next:rr}}var Gx=function(t){return t()},Fp=I.useInsertionEffect?I.useInsertionEffect:!1,Wp=Fp||Gx,zp=Fp||I.useLayoutEffect,Vp=I.createContext(typeof HTMLElement<"u"?Lx({key:"css"}):null);Vp.Provider;var Mc=function(t){return x.forwardRef(function(n,r){var o=x.useContext(Vp);return t(n,o,r)})},Ws=I.createContext({}),Pc={}.hasOwnProperty,jc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Kx=function(t,n){var r={};for(var o in n)Pc.call(n,o)&&(r[o]=n[o]);return r[jc]=t,r},Xx=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return kc(n,r,o),Wp(function(){return Ec(n,r,o)}),null},Zx=Mc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[jc],s=[r],a="";typeof e.className=="string"?a=Np(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var l=Fs(s,void 0,I.useContext(Ws));a+=t.key+"-"+l.name;var c={};for(var d in e)Pc.call(e,d)&&d!=="css"&&d!==jc&&(c[d]=e[d]);return c.className=a,n&&(c.ref=n),I.createElement(I.Fragment,null,I.createElement(Xx,{cache:t,serialized:l,isStringTag:typeof o=="string"}),I.createElement(o,c))}),Jx=Zx,Hp=function(t,n){var r=arguments;if(n==null||!Pc.call(n,"css"))return I.createElement.apply(void 0,r);var o=r.length,s=new Array(o);s[0]=Jx,s[1]=Kx(t,n);for(var a=2;a<o;a++)s[a]=r[a];return I.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Hp||(Hp={}));var Qx=Mc(function(e,t){var n=e.styles,r=Fs([n],void 0,I.useContext(Ws)),o=I.useRef();return zp(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",s),a.hydrate([c])),o.current=[a,l],function(){a.flush()}},[t]),zp(function(){var s=o.current,a=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&Ec(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function zs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fs(t)}function Lr(){var e=zs.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 ew=/^((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)-.*))$/,tw=Mp(function(e){return ew.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),nw=tw,rw=function(t){return t!=="theme"},Up=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?nw:rw},Yp=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},ow=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return kc(n,r,o),Wp(function(){return Ec(n,r,o)}),null},sw=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var l=Yp(t,n,r),c=l||Up(o),d=!c("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&f.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{var h=u[0];f.push(h[0]);for(var m=u.length,g=1;g<m;g++)f.push(u[g],h[g])}var y=Mc(function(b,v,T){var S=d&&b.as||o,C="",w=[],k=b;if(b.theme==null){k={};for(var O in b)k[O]=b[O];k.theme=I.useContext(Ws)}typeof b.className=="string"?C=Np(v.registered,w,b.className):b.className!=null&&(C=b.className+" ");var P=Fs(f.concat(w),v.registered,k);C+=v.key+"-"+P.name,a!==void 0&&(C+=" "+a);var j=d&&l===void 0?Up(S):c,A={};for(var L in b)d&&L==="as"||j(L)&&(A[L]=b[L]);return A.className=C,T&&(A.ref=T),I.createElement(I.Fragment,null,I.createElement(ow,{cache:v,serialized:P,isStringTag:typeof S=="string"}),I.createElement(S,A))});return y.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=f,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+a}}),y.withComponent=function(b,v){var T=e(b,ua({},n,v,{shouldForwardProp:Yp(y,v,!0)}));return T.apply(void 0,f)},y}},iw=["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"],Ic=sw.bind(null);iw.forEach(function(e){Ic[e]=Ic(e)});var wa={exports:{}},Sa={exports:{}},ut={};var qp;function aw(){if(qp)return ut;qp=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,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function S(w){if(typeof w=="object"&&w!==null){var k=w.$$typeof;switch(k){case t:switch(w=w.type,w){case c:case d:case r:case s:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case l:case u:case g:case m:case a:return w;default:return k}}case n:return k}}}function C(w){return S(w)===d}return ut.AsyncMode=c,ut.ConcurrentMode=d,ut.ContextConsumer=l,ut.ContextProvider=a,ut.Element=t,ut.ForwardRef=u,ut.Fragment=r,ut.Lazy=g,ut.Memo=m,ut.Portal=n,ut.Profiler=s,ut.StrictMode=o,ut.Suspense=f,ut.isAsyncMode=function(w){return C(w)||S(w)===c},ut.isConcurrentMode=C,ut.isContextConsumer=function(w){return S(w)===l},ut.isContextProvider=function(w){return S(w)===a},ut.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},ut.isForwardRef=function(w){return S(w)===u},ut.isFragment=function(w){return S(w)===r},ut.isLazy=function(w){return S(w)===g},ut.isMemo=function(w){return S(w)===m},ut.isPortal=function(w){return S(w)===n},ut.isProfiler=function(w){return S(w)===s},ut.isStrictMode=function(w){return S(w)===o},ut.isSuspense=function(w){return S(w)===f},ut.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===d||w===s||w===o||w===f||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===m||w.$$typeof===a||w.$$typeof===l||w.$$typeof===u||w.$$typeof===b||w.$$typeof===v||w.$$typeof===T||w.$$typeof===y)},ut.typeOf=S,ut}var ft={};var Gp;function lw(){return Gp||(Gp=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,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function S(B){return typeof B=="string"||typeof B=="function"||B===r||B===d||B===s||B===o||B===f||B===h||typeof B=="object"&&B!==null&&(B.$$typeof===g||B.$$typeof===m||B.$$typeof===a||B.$$typeof===l||B.$$typeof===u||B.$$typeof===b||B.$$typeof===v||B.$$typeof===T||B.$$typeof===y)}function C(B){if(typeof B=="object"&&B!==null){var ue=B.$$typeof;switch(ue){case t:var Q=B.type;switch(Q){case c:case d:case r:case s:case o:case f:return Q;default:var ne=Q&&Q.$$typeof;switch(ne){case l:case u:case g:case m:case a:return ne;default:return ue}}case n:return ue}}}var w=c,k=d,O=l,P=a,j=t,A=u,L=r,E=g,R=m,M=n,N=s,$=o,F=f,H=!1;function z(B){return H||(H=!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)||C(B)===c}function _(B){return C(B)===d}function D(B){return C(B)===l}function V(B){return C(B)===a}function U(B){return typeof B=="object"&&B!==null&&B.$$typeof===t}function G(B){return C(B)===u}function X(B){return C(B)===r}function q(B){return C(B)===g}function K(B){return C(B)===m}function ce(B){return C(B)===n}function de(B){return C(B)===s}function W(B){return C(B)===o}function ee(B){return C(B)===f}ft.AsyncMode=w,ft.ConcurrentMode=k,ft.ContextConsumer=O,ft.ContextProvider=P,ft.Element=j,ft.ForwardRef=A,ft.Fragment=L,ft.Lazy=E,ft.Memo=R,ft.Portal=M,ft.Profiler=N,ft.StrictMode=$,ft.Suspense=F,ft.isAsyncMode=z,ft.isConcurrentMode=_,ft.isContextConsumer=D,ft.isContextProvider=V,ft.isElement=U,ft.isForwardRef=G,ft.isFragment=X,ft.isLazy=q,ft.isMemo=K,ft.isPortal=ce,ft.isProfiler=de,ft.isStrictMode=W,ft.isSuspense=ee,ft.isValidElementType=S,ft.typeOf=C})()),ft}var Kp;function Xp(){return Kp||(Kp=1,process.env.NODE_ENV==="production"?Sa.exports=aw():Sa.exports=lw()),Sa.exports}var Dc,Zp;function cw(){if(Zp)return Dc;Zp=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 o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(u){d[u]=u}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Dc=o()?Object.assign:function(s,a){for(var l,c=r(s),d,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){d=e(l);for(var h=0;h<d.length;h++)n.call(l,d[h])&&(c[d[h]]=l[d[h]])}}return c},Dc}var Ac,Jp;function Rc(){if(Jp)return Ac;Jp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ac=e,Ac}var Nc,Qp;function eh(){return Qp||(Qp=1,Nc=Function.call.bind(Object.prototype.hasOwnProperty)),Nc}var $c,th;function dw(){if(th)return $c;th=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Rc(),n={},r=eh();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(s,a,l,c,d){if(process.env.NODE_ENV!=="production"){for(var u in s)if(r(s,u)){var f;try{if(typeof s[u]!="function"){var h=Error((c||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=s[u](a,u,c,l,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var m=d?d():"";e("Failed "+l+" type: "+f.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},$c=o,$c}var Lc,nh;function uw(){if(nh)return Lc;nh=1;var e=Xp(),t=cw(),n=Rc(),r=eh(),o=dw(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Lc=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(_){var D=_&&(d&&_[d]||_[u]);if(typeof D=="function")return D}var h="<<anonymous>>",m={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:T(),arrayOf:S,element:C(),elementType:w(),instanceOf:k,node:A(),objectOf:P,oneOf:O,oneOfType:j,shape:E,exact:R};function g(_,D){return _===D?_!==0||1/_===1/D:_!==_&&D!==D}function y(_,D){this.message=_,this.data=D&&typeof D=="object"?D:{},this.stack=""}y.prototype=Error.prototype;function b(_){if(process.env.NODE_ENV!=="production")var D={},V=0;function U(X,q,K,ce,de,W,ee){if(ce=ce||h,W=W||K,ee!==n){if(c){var B=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 B.name="Invariant Violation",B}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ue=ce+":"+K;!D[ue]&&V<3&&(s("You are manually calling a React.PropTypes validation function for the `"+W+"` 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."),D[ue]=!0,V++)}}return q[K]==null?X?q[K]===null?new y("The "+de+" `"+W+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new y("The "+de+" `"+W+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:_(q,K,ce,de,W)}var G=U.bind(null,!1);return G.isRequired=U.bind(null,!0),G}function v(_){function D(V,U,G,X,q,K){var ce=V[U],de=$(ce);if(de!==_){var W=F(ce);return new y("Invalid "+X+" `"+q+"` of type "+("`"+W+"` supplied to `"+G+"`, expected ")+("`"+_+"`."),{expectedType:_})}return null}return b(D)}function T(){return b(a)}function S(_){function D(V,U,G,X,q){if(typeof _!="function")return new y("Property `"+q+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var K=V[U];if(!Array.isArray(K)){var ce=$(K);return new y("Invalid "+X+" `"+q+"` of type "+("`"+ce+"` supplied to `"+G+"`, expected an array."))}for(var de=0;de<K.length;de++){var W=_(K,de,G,X,q+"["+de+"]",n);if(W instanceof Error)return W}return null}return b(D)}function C(){function _(D,V,U,G,X){var q=D[V];if(!l(q)){var K=$(q);return new y("Invalid "+G+" `"+X+"` of type "+("`"+K+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return b(_)}function w(){function _(D,V,U,G,X){var q=D[V];if(!e.isValidElementType(q)){var K=$(q);return new y("Invalid "+G+" `"+X+"` of type "+("`"+K+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return b(_)}function k(_){function D(V,U,G,X,q){if(!(V[U]instanceof _)){var K=_.name||h,ce=z(V[U]);return new y("Invalid "+X+" `"+q+"` of type "+("`"+ce+"` supplied to `"+G+"`, expected ")+("instance of `"+K+"`."))}return null}return b(D)}function O(_){if(!Array.isArray(_))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function D(V,U,G,X,q){for(var K=V[U],ce=0;ce<_.length;ce++)if(g(K,_[ce]))return null;var de=JSON.stringify(_,function(ee,B){var ue=F(B);return ue==="symbol"?String(B):B});return new y("Invalid "+X+" `"+q+"` of value `"+String(K)+"` "+("supplied to `"+G+"`, expected one of "+de+"."))}return b(D)}function P(_){function D(V,U,G,X,q){if(typeof _!="function")return new y("Property `"+q+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var K=V[U],ce=$(K);if(ce!=="object")return new y("Invalid "+X+" `"+q+"` of type "+("`"+ce+"` supplied to `"+G+"`, expected an object."));for(var de in K)if(r(K,de)){var W=_(K,de,G,X,q+"."+de,n);if(W instanceof Error)return W}return null}return b(D)}function j(_){if(!Array.isArray(_))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var D=0;D<_.length;D++){var V=_[D];if(typeof V!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+H(V)+" at index "+D+"."),a}function U(G,X,q,K,ce){for(var de=[],W=0;W<_.length;W++){var ee=_[W],B=ee(G,X,q,K,ce,n);if(B==null)return null;B.data&&r(B.data,"expectedType")&&de.push(B.data.expectedType)}var ue=de.length>0?", expected one of type ["+de.join(", ")+"]":"";return new y("Invalid "+K+" `"+ce+"` supplied to "+("`"+q+"`"+ue+"."))}return b(U)}function A(){function _(D,V,U,G,X){return M(D[V])?null:new y("Invalid "+G+" `"+X+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return b(_)}function L(_,D,V,U,G){return new y((_||"React class")+": "+D+" type `"+V+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function E(_){function D(V,U,G,X,q){var K=V[U],ce=$(K);if(ce!=="object")return new y("Invalid "+X+" `"+q+"` of type `"+ce+"` "+("supplied to `"+G+"`, expected `object`."));for(var de in _){var W=_[de];if(typeof W!="function")return L(G,X,q,de,F(W));var ee=W(K,de,G,X,q+"."+de,n);if(ee)return ee}return null}return b(D)}function R(_){function D(V,U,G,X,q){var K=V[U],ce=$(K);if(ce!=="object")return new y("Invalid "+X+" `"+q+"` of type `"+ce+"` "+("supplied to `"+G+"`, expected `object`."));var de=t({},V[U],_);for(var W in de){var ee=_[W];if(r(_,W)&&typeof ee!="function")return L(G,X,q,W,F(ee));if(!ee)return new y("Invalid "+X+" `"+q+"` key `"+W+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(V[U],null," ")+`
7
- Valid keys: `+JSON.stringify(Object.keys(_),null," "));var B=ee(K,W,G,X,q+"."+W,n);if(B)return B}return null}return b(D)}function M(_){switch(typeof _){case"number":case"string":case"undefined":return!0;case"boolean":return!_;case"object":if(Array.isArray(_))return _.every(M);if(_===null||l(_))return!0;var D=f(_);if(D){var V=D.call(_),U;if(D!==_.entries){for(;!(U=V.next()).done;)if(!M(U.value))return!1}else for(;!(U=V.next()).done;){var G=U.value;if(G&&!M(G[1]))return!1}}else return!1;return!0;default:return!1}}function N(_,D){return _==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function $(_){var D=typeof _;return Array.isArray(_)?"array":_ instanceof RegExp?"object":N(D,_)?"symbol":D}function F(_){if(typeof _>"u"||_===null)return""+_;var D=$(_);if(D==="object"){if(_ instanceof Date)return"date";if(_ instanceof RegExp)return"regexp"}return D}function H(_){var D=F(_);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function z(_){return!_.constructor||!_.constructor.name?h:_.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},Lc}var Bc,rh;function fw(){if(rh)return Bc;rh=1;var e=Rc();function t(){}function n(){}return n.resetWarningCache=t,Bc=function(){function r(a,l,c,d,u,f){if(f!==e){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}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Bc}var oh;function pw(){if(oh)return wa.exports;if(oh=1,process.env.NODE_ENV!=="production"){var e=Xp(),t=!0;wa.exports=uw()(e.isElement,t)}else wa.exports=fw()();return wa.exports}var hw=pw();const i=ox(hw);function mw(e){return e==null||Object.keys(e).length===0}function _c(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(mw(o)?n:o):t;return p.jsx(Qx,{styles:r})}process.env.NODE_ENV!=="production"&&(_c.propTypes={defaultTheme:i.object,styles:i.oneOfType([i.array,i.string,i.object,i.func])});function sh(e,t){const n=Ic(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
6
+ <%s key={someKey} {...props} />`,q,K,ae,K),B[K+q]=!0)}if(K=null,U!==void 0&&(n(U),K=""+U),a(F)&&(n(F.key),K=""+F.key),"key"in F){U={};for(var le in F)le!=="key"&&(U[le]=F[le])}else U=F;return K&&l(U,typeof D=="function"?D.displayName||D.name||"Unknown":D),d(D,K,U,o(),X,G)}function f(D){h(D)?D._store&&(D._store.validated=1):typeof D=="object"&&D!==null&&D.$$typeof===j&&(D._payload.status==="fulfilled"?h(D._payload.value)&&D._payload.value._store&&(D._payload.value._store.validated=1):D._store&&(D._store.validated=1))}function h(D){return typeof D=="object"&&D!==null&&D.$$typeof===g}var m=x,g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),C=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),E=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=Object.prototype.hasOwnProperty,P=Array.isArray,$=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(D){return D()}};var R,W={},V=m.react_stack_bottom_frame.bind(m,s)(),H=$(r(s)),B={};Ds.Fragment=b,Ds.jsx=function(D,F,U){var q=1e4>E.recentlyCreatedOwnerStacks++;return u(D,F,U,!1,q?Error("react-stack-top-frame"):V,q?$(r(D)):H)},Ds.jsxs=function(D,F,U){var q=1e4>E.recentlyCreatedOwnerStacks++;return u(D,F,U,!0,q?Error("react-stack-top-frame"):V,q?$(r(D)):H)}})()),Ds}var vp;function ax(){return vp||(vp=1,process.env.NODE_ENV==="production"?da.exports=sx():da.exports=ix()),da.exports}var p=ax();const As={black:"#000",white:"#fff"},jo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Io={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Do={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ao={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ro={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Rs={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},lx={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 Qn(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 er="$$material";function ua(){return ua=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},ua.apply(null,arguments)}function cx(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 dx(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 ux=(function(){function e(n){var r=this;this._insertTag=function(o){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(o,s),r.tags.push(o)},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(dx(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=cx(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Qt="-ms-",fa="-moz-",it="-webkit-",xp="comm",vc="rule",xc="decl",fx="@import",wp="@keyframes",px="@layer",hx=Math.abs,pa=String.fromCharCode,mx=Object.assign;function gx(e,t){return Kt(e,0)^45?(((t<<2^Kt(e,0))<<2^Kt(e,1))<<2^Kt(e,2))<<2^Kt(e,3):0}function Sp(e){return e.trim()}function yx(e,t){return(e=t.exec(e))?e[0]:e}function at(e,t,n){return e.replace(t,n)}function wc(e,t){return e.indexOf(t)}function Kt(e,t){return e.charCodeAt(t)|0}function Ns(e,t,n){return e.slice(t,n)}function tr(e){return e.length}function Sc(e){return e.length}function ha(e,t){return t.push(e),e}function bx(e,t){return e.map(t).join("")}var ma=1,No=1,Cp=0,fn=0,Bt=0,$o="";function ga(e,t,n,r,o,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:ma,column:No,length:a,return:""}}function $s(e,t){return mx(ga("",null,null,"",null,null,0),e,{length:-e.length},t)}function vx(){return Bt}function xx(){return Bt=fn>0?Kt($o,--fn):0,No--,Bt===10&&(No=1,ma--),Bt}function xn(){return Bt=fn<Cp?Kt($o,fn++):0,No++,Bt===10&&(No=1,ma++),Bt}function nr(){return Kt($o,fn)}function ya(){return fn}function Ls(e,t){return Ns($o,e,t)}function Bs(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 Tp(e){return ma=No=1,Cp=tr($o=e),fn=0,[]}function kp(e){return $o="",e}function ba(e){return Sp(Ls(fn-1,Cc(e===91?e+2:e===40?e+1:e)))}function wx(e){for(;(Bt=nr())&&Bt<33;)xn();return Bs(e)>2||Bs(Bt)>3?"":" "}function Sx(e,t){for(;--t&&xn()&&!(Bt<48||Bt>102||Bt>57&&Bt<65||Bt>70&&Bt<97););return Ls(e,ya()+(t<6&&nr()==32&&xn()==32))}function Cc(e){for(;xn();)switch(Bt){case e:return fn;case 34:case 39:e!==34&&e!==39&&Cc(Bt);break;case 40:e===41&&Cc(e);break;case 92:xn();break}return fn}function Cx(e,t){for(;xn()&&e+Bt!==57;)if(e+Bt===84&&nr()===47)break;return"/*"+Ls(t,fn-1)+"*"+pa(e===47?e:xn())}function Tx(e){for(;!Bs(nr());)xn();return Ls(e,fn)}function kx(e){return kp(va("",null,null,null,[""],e=Tp(e),0,[0],e))}function va(e,t,n,r,o,s,a,l,c){for(var d=0,u=0,f=a,h=0,m=0,g=0,y=1,b=1,v=1,k=0,S="",C=o,w=s,T=r,O=S;b;)switch(g=k,k=xn()){case 40:if(g!=108&&Kt(O,f-1)==58){wc(O+=at(ba(k),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=ba(k);break;case 9:case 10:case 13:case 32:O+=wx(g);break;case 92:O+=Sx(ya()-1,7);continue;case 47:switch(nr()){case 42:case 47:ha(Ex(Cx(xn(),ya()),t,n),c);break;default:O+="/"}break;case 123*y:l[d++]=tr(O)*v;case 125*y:case 59:case 0:switch(k){case 0:case 125:b=0;case 59+u:v==-1&&(O=at(O,/\f/g,"")),m>0&&tr(O)-f&&ha(m>32?Op(O+";",r,n,f-1):Op(at(O," ","")+";",r,n,f-2),c);break;case 59:O+=";";default:if(ha(T=Ep(O,t,n,d,u,o,l,S,C=[],w=[],f),s),k===123)if(u===0)va(O,t,T,T,C,s,f,l,w);else switch(h===99&&Kt(O,3)===110?100:h){case 100:case 108:case 109:case 115:va(e,T,T,r&&ha(Ep(e,T,T,0,0,o,l,S,o,C=[],f),w),o,w,f,l,r?C:w);break;default:va(O,T,T,T,[""],w,0,l,w)}}d=u=m=0,y=v=1,S=O="",f=a;break;case 58:f=1+tr(O),m=g;default:if(y<1){if(k==123)--y;else if(k==125&&y++==0&&xx()==125)continue}switch(O+=pa(k),k*y){case 38:v=u>0?1:(O+="\f",-1);break;case 44:l[d++]=(tr(O)-1)*v,v=1;break;case 64:nr()===45&&(O+=ba(xn())),h=nr(),u=f=tr(S=O+=Tx(ya())),k++;break;case 45:g===45&&tr(O)==2&&(y=0)}}return s}function Ep(e,t,n,r,o,s,a,l,c,d,u){for(var f=o-1,h=o===0?s:[""],m=Sc(h),g=0,y=0,b=0;g<r;++g)for(var v=0,k=Ns(e,f+1,f=hx(y=a[g])),S=e;v<m;++v)(S=Sp(y>0?h[v]+" "+k:at(k,/&\f/g,h[v])))&&(c[b++]=S);return ga(e,t,n,o===0?vc:l,c,d,u)}function Ex(e,t,n){return ga(e,t,n,xp,pa(vx()),Ns(e,2,-2),0)}function Op(e,t,n,r){return ga(e,t,n,xc,Ns(e,0,r),Ns(e,r+1,-1),r)}function Lo(e,t){for(var n="",r=Sc(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ox(e,t,n,r){switch(e.type){case px:if(e.children.length)break;case fx:case xc:return e.return=e.return||e.value;case xp:return"";case wp:return e.return=e.value+"{"+Lo(e.children,r)+"}";case vc:e.value=e.props.join(",")}return tr(n=Lo(e.children,r))?e.return=e.value+"{"+n+"}":""}function Mx(e){var t=Sc(e);return function(n,r,o,s){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,s)||"";return a}}function Px(e){return function(t){t.root||(t=t.return)&&e(t)}}function Mp(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var jx=function(t,n,r){for(var o=0,s=0;o=s,s=nr(),o===38&&s===12&&(n[r]=1),!Bs(s);)xn();return Ls(t,fn)},Ix=function(t,n){var r=-1,o=44;do switch(Bs(o)){case 0:o===38&&nr()===12&&(n[r]=1),t[r]+=jx(fn-1,n,r);break;case 2:t[r]+=ba(o);break;case 4:if(o===44){t[++r]=nr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=pa(o)}while(o=xn());return t},Dx=function(t,n){return kp(Ix(Tp(t),n))},Pp=new WeakMap,Ax=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=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&&!Pp.get(r))&&!o){Pp.set(t,!0);for(var s=[],a=Dx(n,s),l=r.props,c=0,d=0;c<a.length;c++)for(var u=0;u<l.length;u++,d++)t.props[d]=s[c]?a[c].replace(/&\f/g,l[u]):l[u]+" "+a[c]}}},Rx=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function jp(e,t){switch(gx(e,t)){case 5103:return it+"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 it+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return it+e+fa+e+Qt+e+e;case 6828:case 4268:return it+e+Qt+e+e;case 6165:return it+e+Qt+"flex-"+e+e;case 5187:return it+e+at(e,/(\w+).+(:[^]+)/,it+"box-$1$2"+Qt+"flex-$1$2")+e;case 5443:return it+e+Qt+"flex-item-"+at(e,/flex-|-self/,"")+e;case 4675:return it+e+Qt+"flex-line-pack"+at(e,/align-content|flex-|-self/,"")+e;case 5548:return it+e+Qt+at(e,"shrink","negative")+e;case 5292:return it+e+Qt+at(e,"basis","preferred-size")+e;case 6060:return it+"box-"+at(e,"-grow","")+it+e+Qt+at(e,"grow","positive")+e;case 4554:return it+at(e,/([^-])(transform)/g,"$1"+it+"$2")+e;case 6187:return at(at(at(e,/(zoom-|grab)/,it+"$1"),/(image-set)/,it+"$1"),e,"")+e;case 5495:case 3959:return at(e,/(image-set\([^]*)/,it+"$1$`$1");case 4968:return at(at(e,/(.+:)(flex-)?(.*)/,it+"box-pack:$3"+Qt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+it+e+e;case 4095:case 3583:case 4068:case 2532:return at(e,/(.+)-inline(.+)/,it+"$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(tr(e)-1-t>6)switch(Kt(e,t+1)){case 109:if(Kt(e,t+4)!==45)break;case 102:return at(e,/(.+:)(.+)-([^]+)/,"$1"+it+"$2-$3$1"+fa+(Kt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wc(e,"stretch")?jp(at(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Kt(e,t+1)!==115)break;case 6444:switch(Kt(e,tr(e)-3-(~wc(e,"!important")&&10))){case 107:return at(e,":",":"+it)+e;case 101:return at(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+it+(Kt(e,14)===45?"inline-":"")+"box$3$1"+it+"$2$3$1"+Qt+"$2box$3")+e}break;case 5936:switch(Kt(e,t+11)){case 114:return it+e+Qt+at(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return it+e+Qt+at(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return it+e+Qt+at(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return it+e+Qt+e+e}return e}var Nx=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case xc:t.return=jp(t.value,t.length);break;case wp:return Lo([$s(t,{value:at(t.value,"@","@"+it)})],o);case vc:if(t.length)return bx(t.props,function(s){switch(yx(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Lo([$s(t,{props:[at(s,/:(read-\w+)/,":"+fa+"$1")]})],o);case"::placeholder":return Lo([$s(t,{props:[at(s,/:(plac\w+)/,":"+it+"input-$1")]}),$s(t,{props:[at(s,/:(plac\w+)/,":"+fa+"$1")]}),$s(t,{props:[at(s,/:(plac\w+)/,Qt+"input-$1")]})],o)}return""})}},$x=[Nx],Lx=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(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||$x,s={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),v=1;v<b.length;v++)s[b[v]]=!0;l.push(y)});var c,d=[Ax,Rx];{var u,f=[Ox,Px(function(y){u.insert(y)})],h=Mx(d.concat(o,f)),m=function(b){return Lo(kx(b),h)};c=function(b,v,k,S){u=k,m(b?b+"{"+v.styles+"}":v.styles),S&&(g.inserted[v.name]=!0)}}var g={key:n,sheet:new ux({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return g.sheet.hydrate(l),g},xa={exports:{}},ct={};var Ip;function Bx(){if(Ip)return ct;Ip=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,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function S(w){if(typeof w=="object"&&w!==null){var T=w.$$typeof;switch(T){case t:switch(w=w.type,w){case c:case d:case r:case s:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case l:case u:case g:case m:case a:return w;default:return T}}case n:return T}}}function C(w){return S(w)===d}return ct.AsyncMode=c,ct.ConcurrentMode=d,ct.ContextConsumer=l,ct.ContextProvider=a,ct.Element=t,ct.ForwardRef=u,ct.Fragment=r,ct.Lazy=g,ct.Memo=m,ct.Portal=n,ct.Profiler=s,ct.StrictMode=o,ct.Suspense=f,ct.isAsyncMode=function(w){return C(w)||S(w)===c},ct.isConcurrentMode=C,ct.isContextConsumer=function(w){return S(w)===l},ct.isContextProvider=function(w){return S(w)===a},ct.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},ct.isForwardRef=function(w){return S(w)===u},ct.isFragment=function(w){return S(w)===r},ct.isLazy=function(w){return S(w)===g},ct.isMemo=function(w){return S(w)===m},ct.isPortal=function(w){return S(w)===n},ct.isProfiler=function(w){return S(w)===s},ct.isStrictMode=function(w){return S(w)===o},ct.isSuspense=function(w){return S(w)===f},ct.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===d||w===s||w===o||w===f||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===m||w.$$typeof===a||w.$$typeof===l||w.$$typeof===u||w.$$typeof===b||w.$$typeof===v||w.$$typeof===k||w.$$typeof===y)},ct.typeOf=S,ct}var dt={};var Dp;function _x(){return Dp||(Dp=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,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function S(_){return typeof _=="string"||typeof _=="function"||_===r||_===d||_===s||_===o||_===f||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===a||_.$$typeof===l||_.$$typeof===u||_.$$typeof===b||_.$$typeof===v||_.$$typeof===k||_.$$typeof===y)}function C(_){if(typeof _=="object"&&_!==null){var ue=_.$$typeof;switch(ue){case t:var Q=_.type;switch(Q){case c:case d:case r:case s:case o:case f:return Q;default:var ne=Q&&Q.$$typeof;switch(ne){case l:case u:case g:case m:case a:return ne;default:return ue}}case n:return ue}}}var w=c,T=d,O=l,M=a,j=t,A=u,L=r,E=g,N=m,P=n,$=s,R=o,W=f,V=!1;function H(_){return V||(V=!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(_)||C(_)===c}function B(_){return C(_)===d}function D(_){return C(_)===l}function F(_){return C(_)===a}function U(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function q(_){return C(_)===u}function X(_){return C(_)===r}function G(_){return C(_)===g}function K(_){return C(_)===m}function ae(_){return C(_)===n}function le(_){return C(_)===s}function z(_){return C(_)===o}function ee(_){return C(_)===f}dt.AsyncMode=w,dt.ConcurrentMode=T,dt.ContextConsumer=O,dt.ContextProvider=M,dt.Element=j,dt.ForwardRef=A,dt.Fragment=L,dt.Lazy=E,dt.Memo=N,dt.Portal=P,dt.Profiler=$,dt.StrictMode=R,dt.Suspense=W,dt.isAsyncMode=H,dt.isConcurrentMode=B,dt.isContextConsumer=D,dt.isContextProvider=F,dt.isElement=U,dt.isForwardRef=q,dt.isFragment=X,dt.isLazy=G,dt.isMemo=K,dt.isPortal=ae,dt.isProfiler=le,dt.isStrictMode=z,dt.isSuspense=ee,dt.isValidElementType=S,dt.typeOf=C})()),dt}var Ap;function Fx(){return Ap||(Ap=1,process.env.NODE_ENV==="production"?xa.exports=Bx():xa.exports=_x()),xa.exports}var Tc,Rp;function Wx(){if(Rp)return Tc;Rp=1;var e=Fx(),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},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=o;function a(g){return e.isMemo(g)?o:s[g.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function m(g,y,b){if(typeof y!="string"){if(h){var v=f(y);v&&v!==h&&m(g,v,b)}var k=c(y);d&&(k=k.concat(d(y)));for(var S=a(g),C=a(y),w=0;w<k.length;++w){var T=k[w];if(!n[T]&&!(b&&b[T])&&!(C&&C[T])&&!(S&&S[T])){var O=u(y,T);try{l(g,T,O)}catch{}}}}return g}return Tc=m,Tc}Wx();var zx=!0;function Np(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var kc=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||zx===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Ec=function(t,n,r){kc(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Vx(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 Hx={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},Ux=/[A-Z]|^ms/g,Yx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$p=function(t){return t.charCodeAt(1)===45},Lp=function(t){return t!=null&&typeof t!="boolean"},Oc=Mp(function(e){return $p(e)?e:e.replace(Ux,"-$&").toLowerCase()}),Bp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Yx,function(r,o,s){return rr={name:o,styles:s,next:rr},o})}return Hx[t]!==1&&!$p(t)&&typeof n=="number"&&n!==0?n+"px":n};function _s(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 o=n;if(o.anim===1)return rr={name:o.name,styles:o.styles,next:rr},o.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)rr={name:a.name,styles:a.styles,next:rr},a=a.next;var l=s.styles+";";return l}return qx(e,t,n)}case"function":{if(e!==void 0){var c=rr,d=n(e);return rr=c,_s(e,t,d)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function qx(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=_s(e,t,n[o])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=s+"{"+t[l]+"}":Lp(l)&&(r+=Oc(s)+":"+Bp(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)Lp(a[c])&&(r+=Oc(s)+":"+Bp(s,a[c])+";");else{var d=_s(e,t,a);switch(s){case"animation":case"animationName":{r+=Oc(s)+":"+d+";";break}default:r+=s+"{"+d+"}"}}}return r}var _p=/label:\s*([^\s;{]+)\s*(;|$)/g,rr;function Fs(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,o="";rr=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=_s(n,t,s);else{var a=s;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=_s(n,t,e[l]),r){var c=s;o+=c[l]}_p.lastIndex=0;for(var d="",u;(u=_p.exec(o))!==null;)d+="-"+u[1];var f=Vx(o)+d;return{name:f,styles:o,next:rr}}var Gx=function(t){return t()},Fp=I.useInsertionEffect?I.useInsertionEffect:!1,Wp=Fp||Gx,zp=Fp||I.useLayoutEffect,Vp=I.createContext(typeof HTMLElement<"u"?Lx({key:"css"}):null);Vp.Provider;var Mc=function(t){return x.forwardRef(function(n,r){var o=x.useContext(Vp);return t(n,o,r)})},Ws=I.createContext({}),Pc={}.hasOwnProperty,jc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Kx=function(t,n){var r={};for(var o in n)Pc.call(n,o)&&(r[o]=n[o]);return r[jc]=t,r},Xx=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return kc(n,r,o),Wp(function(){return Ec(n,r,o)}),null},Zx=Mc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[jc],s=[r],a="";typeof e.className=="string"?a=Np(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var l=Fs(s,void 0,I.useContext(Ws));a+=t.key+"-"+l.name;var c={};for(var d in e)Pc.call(e,d)&&d!=="css"&&d!==jc&&(c[d]=e[d]);return c.className=a,n&&(c.ref=n),I.createElement(I.Fragment,null,I.createElement(Xx,{cache:t,serialized:l,isStringTag:typeof o=="string"}),I.createElement(o,c))}),Jx=Zx,Hp=function(t,n){var r=arguments;if(n==null||!Pc.call(n,"css"))return I.createElement.apply(void 0,r);var o=r.length,s=new Array(o);s[0]=Jx,s[1]=Kx(t,n);for(var a=2;a<o;a++)s[a]=r[a];return I.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Hp||(Hp={}));var Qx=Mc(function(e,t){var n=e.styles,r=Fs([n],void 0,I.useContext(Ws)),o=I.useRef();return zp(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",s),a.hydrate([c])),o.current=[a,l],function(){a.flush()}},[t]),zp(function(){var s=o.current,a=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&Ec(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function zs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fs(t)}function Lr(){var e=zs.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 ew=/^((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)-.*))$/,tw=Mp(function(e){return ew.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),nw=tw,rw=function(t){return t!=="theme"},Up=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?nw:rw},Yp=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},ow=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return kc(n,r,o),Wp(function(){return Ec(n,r,o)}),null},sw=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var l=Yp(t,n,r),c=l||Up(o),d=!c("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&f.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{var h=u[0];f.push(h[0]);for(var m=u.length,g=1;g<m;g++)f.push(u[g],h[g])}var y=Mc(function(b,v,k){var S=d&&b.as||o,C="",w=[],T=b;if(b.theme==null){T={};for(var O in b)T[O]=b[O];T.theme=I.useContext(Ws)}typeof b.className=="string"?C=Np(v.registered,w,b.className):b.className!=null&&(C=b.className+" ");var M=Fs(f.concat(w),v.registered,T);C+=v.key+"-"+M.name,a!==void 0&&(C+=" "+a);var j=d&&l===void 0?Up(S):c,A={};for(var L in b)d&&L==="as"||j(L)&&(A[L]=b[L]);return A.className=C,k&&(A.ref=k),I.createElement(I.Fragment,null,I.createElement(ow,{cache:v,serialized:M,isStringTag:typeof S=="string"}),I.createElement(S,A))});return y.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=f,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+a}}),y.withComponent=function(b,v){var k=e(b,ua({},n,v,{shouldForwardProp:Yp(y,v,!0)}));return k.apply(void 0,f)},y}},iw=["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"],Ic=sw.bind(null);iw.forEach(function(e){Ic[e]=Ic(e)});var wa={exports:{}},Sa={exports:{}},ut={};var qp;function aw(){if(qp)return ut;qp=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,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function S(w){if(typeof w=="object"&&w!==null){var T=w.$$typeof;switch(T){case t:switch(w=w.type,w){case c:case d:case r:case s:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case l:case u:case g:case m:case a:return w;default:return T}}case n:return T}}}function C(w){return S(w)===d}return ut.AsyncMode=c,ut.ConcurrentMode=d,ut.ContextConsumer=l,ut.ContextProvider=a,ut.Element=t,ut.ForwardRef=u,ut.Fragment=r,ut.Lazy=g,ut.Memo=m,ut.Portal=n,ut.Profiler=s,ut.StrictMode=o,ut.Suspense=f,ut.isAsyncMode=function(w){return C(w)||S(w)===c},ut.isConcurrentMode=C,ut.isContextConsumer=function(w){return S(w)===l},ut.isContextProvider=function(w){return S(w)===a},ut.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},ut.isForwardRef=function(w){return S(w)===u},ut.isFragment=function(w){return S(w)===r},ut.isLazy=function(w){return S(w)===g},ut.isMemo=function(w){return S(w)===m},ut.isPortal=function(w){return S(w)===n},ut.isProfiler=function(w){return S(w)===s},ut.isStrictMode=function(w){return S(w)===o},ut.isSuspense=function(w){return S(w)===f},ut.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===d||w===s||w===o||w===f||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===m||w.$$typeof===a||w.$$typeof===l||w.$$typeof===u||w.$$typeof===b||w.$$typeof===v||w.$$typeof===k||w.$$typeof===y)},ut.typeOf=S,ut}var ft={};var Gp;function lw(){return Gp||(Gp=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,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function S(_){return typeof _=="string"||typeof _=="function"||_===r||_===d||_===s||_===o||_===f||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===a||_.$$typeof===l||_.$$typeof===u||_.$$typeof===b||_.$$typeof===v||_.$$typeof===k||_.$$typeof===y)}function C(_){if(typeof _=="object"&&_!==null){var ue=_.$$typeof;switch(ue){case t:var Q=_.type;switch(Q){case c:case d:case r:case s:case o:case f:return Q;default:var ne=Q&&Q.$$typeof;switch(ne){case l:case u:case g:case m:case a:return ne;default:return ue}}case n:return ue}}}var w=c,T=d,O=l,M=a,j=t,A=u,L=r,E=g,N=m,P=n,$=s,R=o,W=f,V=!1;function H(_){return V||(V=!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(_)||C(_)===c}function B(_){return C(_)===d}function D(_){return C(_)===l}function F(_){return C(_)===a}function U(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function q(_){return C(_)===u}function X(_){return C(_)===r}function G(_){return C(_)===g}function K(_){return C(_)===m}function ae(_){return C(_)===n}function le(_){return C(_)===s}function z(_){return C(_)===o}function ee(_){return C(_)===f}ft.AsyncMode=w,ft.ConcurrentMode=T,ft.ContextConsumer=O,ft.ContextProvider=M,ft.Element=j,ft.ForwardRef=A,ft.Fragment=L,ft.Lazy=E,ft.Memo=N,ft.Portal=P,ft.Profiler=$,ft.StrictMode=R,ft.Suspense=W,ft.isAsyncMode=H,ft.isConcurrentMode=B,ft.isContextConsumer=D,ft.isContextProvider=F,ft.isElement=U,ft.isForwardRef=q,ft.isFragment=X,ft.isLazy=G,ft.isMemo=K,ft.isPortal=ae,ft.isProfiler=le,ft.isStrictMode=z,ft.isSuspense=ee,ft.isValidElementType=S,ft.typeOf=C})()),ft}var Kp;function Xp(){return Kp||(Kp=1,process.env.NODE_ENV==="production"?Sa.exports=aw():Sa.exports=lw()),Sa.exports}var Dc,Zp;function cw(){if(Zp)return Dc;Zp=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 o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(u){d[u]=u}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Dc=o()?Object.assign:function(s,a){for(var l,c=r(s),d,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){d=e(l);for(var h=0;h<d.length;h++)n.call(l,d[h])&&(c[d[h]]=l[d[h]])}}return c},Dc}var Ac,Jp;function Rc(){if(Jp)return Ac;Jp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ac=e,Ac}var Nc,Qp;function eh(){return Qp||(Qp=1,Nc=Function.call.bind(Object.prototype.hasOwnProperty)),Nc}var $c,th;function dw(){if(th)return $c;th=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Rc(),n={},r=eh();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(s,a,l,c,d){if(process.env.NODE_ENV!=="production"){for(var u in s)if(r(s,u)){var f;try{if(typeof s[u]!="function"){var h=Error((c||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=s[u](a,u,c,l,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var m=d?d():"";e("Failed "+l+" type: "+f.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},$c=o,$c}var Lc,nh;function uw(){if(nh)return Lc;nh=1;var e=Xp(),t=cw(),n=Rc(),r=eh(),o=dw(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Lc=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(B){var D=B&&(d&&B[d]||B[u]);if(typeof D=="function")return D}var h="<<anonymous>>",m={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:k(),arrayOf:S,element:C(),elementType:w(),instanceOf:T,node:A(),objectOf:M,oneOf:O,oneOfType:j,shape:E,exact:N};function g(B,D){return B===D?B!==0||1/B===1/D:B!==B&&D!==D}function y(B,D){this.message=B,this.data=D&&typeof D=="object"?D:{},this.stack=""}y.prototype=Error.prototype;function b(B){if(process.env.NODE_ENV!=="production")var D={},F=0;function U(X,G,K,ae,le,z,ee){if(ae=ae||h,z=z||K,ee!==n){if(c){var _=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 _.name="Invariant Violation",_}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ue=ae+":"+K;!D[ue]&&F<3&&(s("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+ae+"`. 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."),D[ue]=!0,F++)}}return G[K]==null?X?G[K]===null?new y("The "+le+" `"+z+"` is marked as required "+("in `"+ae+"`, but its value is `null`.")):new y("The "+le+" `"+z+"` is marked as required in "+("`"+ae+"`, but its value is `undefined`.")):null:B(G,K,ae,le,z)}var q=U.bind(null,!1);return q.isRequired=U.bind(null,!0),q}function v(B){function D(F,U,q,X,G,K){var ae=F[U],le=R(ae);if(le!==B){var z=W(ae);return new y("Invalid "+X+" `"+G+"` of type "+("`"+z+"` supplied to `"+q+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return b(D)}function k(){return b(a)}function S(B){function D(F,U,q,X,G){if(typeof B!="function")return new y("Property `"+G+"` of component `"+q+"` has invalid PropType notation inside arrayOf.");var K=F[U];if(!Array.isArray(K)){var ae=R(K);return new y("Invalid "+X+" `"+G+"` of type "+("`"+ae+"` supplied to `"+q+"`, expected an array."))}for(var le=0;le<K.length;le++){var z=B(K,le,q,X,G+"["+le+"]",n);if(z instanceof Error)return z}return null}return b(D)}function C(){function B(D,F,U,q,X){var G=D[F];if(!l(G)){var K=R(G);return new y("Invalid "+q+" `"+X+"` of type "+("`"+K+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return b(B)}function w(){function B(D,F,U,q,X){var G=D[F];if(!e.isValidElementType(G)){var K=R(G);return new y("Invalid "+q+" `"+X+"` of type "+("`"+K+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return b(B)}function T(B){function D(F,U,q,X,G){if(!(F[U]instanceof B)){var K=B.name||h,ae=H(F[U]);return new y("Invalid "+X+" `"+G+"` of type "+("`"+ae+"` supplied to `"+q+"`, expected ")+("instance of `"+K+"`."))}return null}return b(D)}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 D(F,U,q,X,G){for(var K=F[U],ae=0;ae<B.length;ae++)if(g(K,B[ae]))return null;var le=JSON.stringify(B,function(ee,_){var ue=W(_);return ue==="symbol"?String(_):_});return new y("Invalid "+X+" `"+G+"` of value `"+String(K)+"` "+("supplied to `"+q+"`, expected one of "+le+"."))}return b(D)}function M(B){function D(F,U,q,X,G){if(typeof B!="function")return new y("Property `"+G+"` of component `"+q+"` has invalid PropType notation inside objectOf.");var K=F[U],ae=R(K);if(ae!=="object")return new y("Invalid "+X+" `"+G+"` of type "+("`"+ae+"` supplied to `"+q+"`, expected an object."));for(var le in K)if(r(K,le)){var z=B(K,le,q,X,G+"."+le,n);if(z instanceof Error)return z}return null}return b(D)}function j(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 D=0;D<B.length;D++){var F=B[D];if(typeof F!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(F)+" at index "+D+"."),a}function U(q,X,G,K,ae){for(var le=[],z=0;z<B.length;z++){var ee=B[z],_=ee(q,X,G,K,ae,n);if(_==null)return null;_.data&&r(_.data,"expectedType")&&le.push(_.data.expectedType)}var ue=le.length>0?", expected one of type ["+le.join(", ")+"]":"";return new y("Invalid "+K+" `"+ae+"` supplied to "+("`"+G+"`"+ue+"."))}return b(U)}function A(){function B(D,F,U,q,X){return P(D[F])?null:new y("Invalid "+q+" `"+X+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return b(B)}function L(B,D,F,U,q){return new y((B||"React class")+": "+D+" type `"+F+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+q+"`.")}function E(B){function D(F,U,q,X,G){var K=F[U],ae=R(K);if(ae!=="object")return new y("Invalid "+X+" `"+G+"` of type `"+ae+"` "+("supplied to `"+q+"`, expected `object`."));for(var le in B){var z=B[le];if(typeof z!="function")return L(q,X,G,le,W(z));var ee=z(K,le,q,X,G+"."+le,n);if(ee)return ee}return null}return b(D)}function N(B){function D(F,U,q,X,G){var K=F[U],ae=R(K);if(ae!=="object")return new y("Invalid "+X+" `"+G+"` of type `"+ae+"` "+("supplied to `"+q+"`, expected `object`."));var le=t({},F[U],B);for(var z in le){var ee=B[z];if(r(B,z)&&typeof ee!="function")return L(q,X,G,z,W(ee));if(!ee)return new y("Invalid "+X+" `"+G+"` key `"+z+"` supplied to `"+q+"`.\nBad object: "+JSON.stringify(F[U],null," ")+`
7
+ Valid keys: `+JSON.stringify(Object.keys(B),null," "));var _=ee(K,z,q,X,G+"."+z,n);if(_)return _}return null}return b(D)}function P(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(P);if(B===null||l(B))return!0;var D=f(B);if(D){var F=D.call(B),U;if(D!==B.entries){for(;!(U=F.next()).done;)if(!P(U.value))return!1}else for(;!(U=F.next()).done;){var q=U.value;if(q&&!P(q[1]))return!1}}else return!1;return!0;default:return!1}}function $(B,D){return B==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function R(B){var D=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":$(D,B)?"symbol":D}function W(B){if(typeof B>"u"||B===null)return""+B;var D=R(B);if(D==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return D}function V(B){var D=W(B);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function H(B){return!B.constructor||!B.constructor.name?h:B.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},Lc}var Bc,rh;function fw(){if(rh)return Bc;rh=1;var e=Rc();function t(){}function n(){}return n.resetWarningCache=t,Bc=function(){function r(a,l,c,d,u,f){if(f!==e){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}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Bc}var oh;function pw(){if(oh)return wa.exports;if(oh=1,process.env.NODE_ENV!=="production"){var e=Xp(),t=!0;wa.exports=uw()(e.isElement,t)}else wa.exports=fw()();return wa.exports}var hw=pw();const i=ox(hw);function mw(e){return e==null||Object.keys(e).length===0}function _c(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(mw(o)?n:o):t;return p.jsx(Qx,{styles:r})}process.env.NODE_ENV!=="production"&&(_c.propTypes={defaultTheme:i.object,styles:i.oneOfType([i.array,i.string,i.object,i.func])});function sh(e,t){const n=Ic(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
8
8
  `)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function gw(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const ih=[];function Br(e){return ih[0]=e,Fs(ih)}var Ca={exports:{}},bt={};var ah;function yw(){if(ah)return bt;ah=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(y){if(typeof y=="object"&&y!==null){var b=y.$$typeof;switch(b){case e:switch(y=y.type,y){case n:case o:case r:case c:case d:case h:return y;default:switch(y=y&&y.$$typeof,y){case a:case l:case f:case u:return y;case s:return y;default:return b}}case t:return b}}}return bt.ContextConsumer=s,bt.ContextProvider=a,bt.Element=e,bt.ForwardRef=l,bt.Fragment=n,bt.Lazy=f,bt.Memo=u,bt.Portal=t,bt.Profiler=o,bt.StrictMode=r,bt.Suspense=c,bt.SuspenseList=d,bt.isContextConsumer=function(y){return g(y)===s},bt.isContextProvider=function(y){return g(y)===a},bt.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},bt.isForwardRef=function(y){return g(y)===l},bt.isFragment=function(y){return g(y)===n},bt.isLazy=function(y){return g(y)===f},bt.isMemo=function(y){return g(y)===u},bt.isPortal=function(y){return g(y)===t},bt.isProfiler=function(y){return g(y)===o},bt.isStrictMode=function(y){return g(y)===r},bt.isSuspense=function(y){return g(y)===c},bt.isSuspenseList=function(y){return g(y)===d},bt.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===o||y===r||y===c||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===f||y.$$typeof===u||y.$$typeof===a||y.$$typeof===s||y.$$typeof===l||y.$$typeof===m||y.getModuleId!==void 0)},bt.typeOf=g,bt}var vt={};var lh;function bw(){return lh||(lh=1,process.env.NODE_ENV!=="production"&&(function(){function e(y){if(typeof y=="object"&&y!==null){var b=y.$$typeof;switch(b){case t:switch(y=y.type,y){case r:case s:case o:case d:case u:case m:return y;default:switch(y=y&&y.$$typeof,y){case l:case c:case h:case f:return y;case a:return y;default:return b}}case n:return b}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");vt.ContextConsumer=a,vt.ContextProvider=l,vt.Element=t,vt.ForwardRef=c,vt.Fragment=r,vt.Lazy=h,vt.Memo=f,vt.Portal=n,vt.Profiler=s,vt.StrictMode=o,vt.Suspense=d,vt.SuspenseList=u,vt.isContextConsumer=function(y){return e(y)===a},vt.isContextProvider=function(y){return e(y)===l},vt.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},vt.isForwardRef=function(y){return e(y)===c},vt.isFragment=function(y){return e(y)===r},vt.isLazy=function(y){return e(y)===h},vt.isMemo=function(y){return e(y)===f},vt.isPortal=function(y){return e(y)===n},vt.isProfiler=function(y){return e(y)===s},vt.isStrictMode=function(y){return e(y)===o},vt.isSuspense=function(y){return e(y)===d},vt.isSuspenseList=function(y){return e(y)===u},vt.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===s||y===o||y===d||y===u||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===f||y.$$typeof===l||y.$$typeof===a||y.$$typeof===c||y.$$typeof===g||y.getModuleId!==void 0)},vt.typeOf=e})()),vt}var ch;function vw(){return ch||(ch=1,process.env.NODE_ENV==="production"?Ca.exports=yw():Ca.exports=bw()),Ca.exports}var Cr=vw();function or(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 dh(e){if(I.isValidElement(e)||Cr.isValidElementType(e)||!or(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=dh(e[n])}),t}function Yt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return or(e)&&or(t)&&Object.keys(t).forEach(o=>{I.isValidElement(t[o])||Cr.isValidElementType(t[o])?r[o]=t[o]:or(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&or(e[o])?r[o]=Yt(e[o],t[o],n):n.clone?r[o]=or(t[o])?dh(t[o]):t[o]:r[o]=t[o]}),r}const xw=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 ww(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=xw(t),a=Object.keys(s);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function d(h,m){const g=a.indexOf(m);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:m)-r/100}${n})`}function u(h){return a.indexOf(h)+1<a.length?d(h,a[a.indexOf(h)+1]):l(h)}function f(h){const m=a.indexOf(h);return m===0?l(a[1]):m===a.length-1?c(a[m]):d(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:l,down:c,between:d,only:u,not:f,unit:n,...o}}function uh(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(o.match(s)?.[1]||0)});return n.length?n.reduce((r,o)=>{const s=t[o];return delete r[o],r[o]=s,r},{...t}):t}function Sw(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Cw(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>\`.
9
9
  For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Qn(18,`(${t})`));return null}const[,r,o]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(s)}function Tw(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function n(s,a){s.up=(...l)=>t(e.breakpoints.up(...l),a),s.down=(...l)=>t(e.breakpoints.down(...l),a),s.between=(...l)=>t(e.breakpoints.between(...l),a),s.only=(...l)=>t(e.breakpoints.only(...l),a),s.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=s=>(n(r,s),r);return n(o),{...e,containerQueries:o}}const kw={borderRadius:4},_r=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.string,i.object,i.array]):{};function Vs(e,t){return t?Yt(e,t,{clone:!1}):e}const Ta={xs:0,sm:600,md:900,lg:1200,xl:1536},fh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ta[e]}px)`},Ew={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Ta[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Vn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||fh;return t.reduce((a,l,c)=>(a[s.up(s.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const s=r.breakpoints||fh;return Object.keys(t).reduce((a,l)=>{if(Sw(s.keys,l)){const c=Cw(r.containerQueries?r:Ew,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(s.values||Ta).includes(l)){const c=s.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function ph(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function Fc(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Ow(e,...t){const n=ph(e),r=[n,...t].reduce((o,s)=>Yt(o,s),{});return Fc(Object.keys(n),r)}function Mw(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,s)=>{s<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Wc({values:e,breakpoints:t,base:n}){const r=n||Mw(e,t),o=Object.keys(r);if(o.length===0)return e;let s;return o.reduce((a,l,c)=>(Array.isArray(e)?(a[l]=e[c]!=null?e[c]:e[s],s=c):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[s],s=l):a[l]=e,a),{})}function J(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Qn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ka(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Ea(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=ka(e,n)||r,t&&(o=t(o,r,e)),o}function Rt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,d=ka(c,r)||{};return Vn(a,l,f=>{let h=Ea(d,o,f);return f===h&&typeof f=="string"&&(h=Ea(d,o,`${t}${f==="default"?"":J(f)}`,f)),n===!1?h:{[n]:h}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:_r}:{},s.filterProps=[t],s}function Pw(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const jw={m:"margin",p:"padding"},Iw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Dw=Pw(e=>{if(e.length>2)if(hh[e])e=hh[e];else return[e];const[t,n]=e.split(""),r=jw[t],o=Iw[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),Oa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ma=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Aw=[...Oa,...Ma];function Hs(e,t,n,r){const o=ka(e,t,!0)??n;return typeof o=="number"||typeof o=="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 o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s):Array.isArray(o)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
10
10
  `)):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(`
11
11
  `)));const l=o[a];return s>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
12
- `)),()=>{})}function Pa(e){return Hs(e,"spacing",8,"spacing")}function no(e,t){return typeof t=="string"||t==null?t:e(t)}function Rw(e,t){return n=>e.reduce((r,o)=>(r[o]=no(t,n),r),{})}function Nw(e,t,n,r){if(!t.includes(n))return null;const o=Dw(n),s=Rw(o,r),a=e[n];return Vn(e,a,s)}function mh(e,t){const n=Pa(e.theme);return Object.keys(e).map(r=>Nw(e,t,r,n)).reduce(Vs,{})}function It(e){return mh(e,Oa)}It.propTypes=process.env.NODE_ENV!=="production"?Oa.reduce((e,t)=>(e[t]=_r,e),{}):{},It.filterProps=Oa;function Dt(e){return mh(e,Ma)}Dt.propTypes=process.env.NODE_ENV!=="production"?Ma.reduce((e,t)=>(e[t]=_r,e),{}):{},Dt.filterProps=Ma,process.env.NODE_ENV!=="production"&&Aw.reduce((e,t)=>(e[t]=_r,e),{});function gh(e=8,t=Pa({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 ja(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Vs(o,t[s](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function On(e){return typeof e!="number"?e:`${e}px solid`}function Mn(e,t){return Rt({prop:e,themeKey:"borders",transform:t})}const $w=Mn("border",On),Lw=Mn("borderTop",On),Bw=Mn("borderRight",On),_w=Mn("borderBottom",On),Fw=Mn("borderLeft",On),Ww=Mn("borderColor"),zw=Mn("borderTopColor"),Vw=Mn("borderRightColor"),Hw=Mn("borderBottomColor"),Uw=Mn("borderLeftColor"),Yw=Mn("outline",On),qw=Mn("outlineColor"),Ia=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Hs(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:no(t,r)});return Vn(e,e.borderRadius,n)}return null};Ia.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:_r}:{},Ia.filterProps=["borderRadius"],ja($w,Lw,Bw,_w,Fw,Ww,zw,Vw,Hw,Uw,Ia,Yw,qw);const Da=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Hs(e.theme,"spacing",8,"gap"),n=r=>({gap:no(t,r)});return Vn(e,e.gap,n)}return null};Da.propTypes=process.env.NODE_ENV!=="production"?{gap:_r}:{},Da.filterProps=["gap"];const Aa=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Hs(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:no(t,r)});return Vn(e,e.columnGap,n)}return null};Aa.propTypes=process.env.NODE_ENV!=="production"?{columnGap:_r}:{},Aa.filterProps=["columnGap"];const Ra=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Hs(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:no(t,r)});return Vn(e,e.rowGap,n)}return null};Ra.propTypes=process.env.NODE_ENV!=="production"?{rowGap:_r}:{},Ra.filterProps=["rowGap"];const Gw=Rt({prop:"gridColumn"}),Kw=Rt({prop:"gridRow"}),Xw=Rt({prop:"gridAutoFlow"}),Zw=Rt({prop:"gridAutoColumns"}),Jw=Rt({prop:"gridAutoRows"}),Qw=Rt({prop:"gridTemplateColumns"}),eS=Rt({prop:"gridTemplateRows"}),tS=Rt({prop:"gridTemplateAreas"}),nS=Rt({prop:"gridArea"});ja(Da,Aa,Ra,Gw,Kw,Xw,Zw,Jw,Qw,eS,tS,nS);function Bo(e,t){return t==="grey"?t:e}const rS=Rt({prop:"color",themeKey:"palette",transform:Bo}),oS=Rt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bo}),sS=Rt({prop:"backgroundColor",themeKey:"palette",transform:Bo});ja(rS,oS,sS);function wn(e){return e<=1&&e!==0?`${e*100}%`:e}const iS=Rt({prop:"width",transform:wn}),zc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Ta[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:wn(n)}};return Vn(e,e.maxWidth,t)}return null};zc.filterProps=["maxWidth"];const aS=Rt({prop:"minWidth",transform:wn}),lS=Rt({prop:"height",transform:wn}),cS=Rt({prop:"maxHeight",transform:wn}),dS=Rt({prop:"minHeight",transform:wn});Rt({prop:"size",cssProperty:"width",transform:wn}),Rt({prop:"size",cssProperty:"height",transform:wn});const uS=Rt({prop:"boxSizing"});ja(iS,zc,aS,lS,cS,dS,uS);const Us={border:{themeKey:"borders",transform:On},borderTop:{themeKey:"borders",transform:On},borderRight:{themeKey:"borders",transform:On},borderBottom:{themeKey:"borders",transform:On},borderLeft:{themeKey:"borders",transform:On},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:On},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ia},color:{themeKey:"palette",transform:Bo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bo},backgroundColor:{themeKey:"palette",transform:Bo},p:{style:Dt},pt:{style:Dt},pr:{style:Dt},pb:{style:Dt},pl:{style:Dt},px:{style:Dt},py:{style:Dt},padding:{style:Dt},paddingTop:{style:Dt},paddingRight:{style:Dt},paddingBottom:{style:Dt},paddingLeft:{style:Dt},paddingX:{style:Dt},paddingY:{style:Dt},paddingInline:{style:Dt},paddingInlineStart:{style:Dt},paddingInlineEnd:{style:Dt},paddingBlock:{style:Dt},paddingBlockStart:{style:Dt},paddingBlockEnd:{style:Dt},m:{style:It},mt:{style:It},mr:{style:It},mb:{style:It},ml:{style:It},mx:{style:It},my:{style:It},margin:{style:It},marginTop:{style:It},marginRight:{style:It},marginBottom:{style:It},marginLeft:{style:It},marginX:{style:It},marginY:{style:It},marginInline:{style:It},marginInlineStart:{style:It},marginInlineEnd:{style:It},marginBlock:{style:It},marginBlockStart:{style:It},marginBlockEnd:{style:It},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:Da},rowGap:{style:Ra},columnGap:{style:Aa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wn},maxWidth:{style:zc},minWidth:{transform:wn},height:{transform:wn},maxHeight:{transform:wn},minHeight:{transform:wn},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 fS(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function pS(e,t){return typeof e=="function"?e(t):e}function hS(){function e(n,r,o,s){const a={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:u,style:f}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const h=ka(o,d)||{};return f?f(a):Vn(a,r,g=>{let y=Ea(h,u,g);return g===y&&typeof g=="string"&&(y=Ea(h,u,`${n}${g==="default"?"":J(g)}`,g)),c===!1?y:{[c]:y}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Us;function l(c){let d=c;if(typeof c=="function")d=c(o);else if(typeof c!="object")return c;if(!d)return null;const u=ph(o.breakpoints),f=Object.keys(u);let h=u;return Object.keys(d).forEach(m=>{const g=pS(d[m],o);if(g!=null)if(typeof g=="object")if(a[m])h=Vs(h,e(m,g,o,a));else{const y=Vn({theme:o},g,b=>({[m]:b}));fS(y,g)?h[m]=t({sx:g,theme:o,nested:!0}):h=Vs(h,y)}else h=Vs(h,e(m,g,o,a))}),!s&&o.modularCssLayers?{"@layer sx":uh(o,Fc(f,h))}:uh(o,Fc(f,h))}return Array.isArray(r)?r.map(l):l(r)}return t}const Fr=hS();Fr.filterProps=["sx"];function mS(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 Ys(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...a}=e,l=ww(n),c=gh(o);let d=Yt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...kw,...s}},a);return d=Tw(d),d.applyStyles=mS,d=t.reduce((u,f)=>Yt(u,f),d),d.unstable_sxConfig={...Us,...a?.unstable_sxConfig},d.unstable_sx=function(f){return Fr({sx:f,theme:this})},d}function gS(e){return Object.keys(e).length===0}function Vc(e=null){const t=I.useContext(Ws);return!t||gS(t)?e:t}const yS=Ys();function qs(e=yS){return Vc(e)}function Hc(e){const t=Br(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Uc({styles:e,themeId:t,defaultTheme:n={}}){const r=qs(n),o=t&&r[t]||r;let s=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>Hc(typeof a=="function"?a(o):a)):s=Hc(s)),p.jsx(_c,{styles:s})}process.env.NODE_ENV!=="production"&&(Uc.propTypes={defaultTheme:i.object,styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool]),themeId:i.string});const bS=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Us;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Na(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=bS(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return or(l)?{...r,...l}:r}:s={...r,...t},{...o,sx:s}}const yh=e=>e,bh=(()=>{let e=yh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=yh}}})();function vh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=vh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ge(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vh(e))&&(r&&(r+=" "),r+=t);return r}function vS(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=sh("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Fr);return I.forwardRef(function(c,d){const u=qs(n),{className:f,component:h="div",...m}=Na(c);return p.jsx(s,{as:h,ref:d,className:ge(f,o?o(r):r),theme:t&&u[t]||u,...m})})}const xS={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 Ae(e,t,n="Mui"){const r=xS[t];return r?`${n}-${r}`:`${bh.generate(e)}-${t}`}function Re(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ae(e,o,n)}),r}function xh(e,t=""){return e.displayName||e.name||t}function wh(e,t,n){const r=xh(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function wS(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 Cr.ForwardRef:return wh(e,e.render,"ForwardRef");case Cr.Memo:return wh(e,e.type,"memo");default:return}}}function Sh(e){const{variants:t,...n}=e,r={variants:t,style:Br(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Br(o.style))}),r}const SS=Ys();function Yc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ro(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function CS(e){return e?(t,n)=>n[e]:null}function TS(e,t,n){e.theme=OS(e.theme)?n:e.theme[t]||e.theme}function $a(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>$a(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?ro(r.style,n):r.style;else{const{variants:s,...a}=r;o=n?ro(Br(a),n):a}return Ch(e,r.variants,[o],n)}return r?.isProcessed?n?ro(Br(r.style),n):r.style:n?ro(Br(r),n):r}function Ch(e,t,n=[],r=void 0){let o;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?ro(Br(a.style(o)),r):a.style(o))):n.push(r?ro(Br(a.style),r):a.style)}return n}function Th(e={}){const{themeId:t,defaultTheme:n=SS,rootShouldForwardProp:r=Yc,slotShouldForwardProp:o=Yc}=e;function s(l){TS(l,t,n)}return(l,c={})=>{gw(l,k=>k.filter(O=>O!==Fr));const{name:d,slot:u,skipVariantsResolver:f,skipSx:h,overridesResolver:m=CS(kh(u)),...g}=c,y=d&&d.startsWith("Mui")||u?"components":"custom",b=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,v=h||!1;let T=Yc;u==="Root"||u==="root"?T=r:u?T=o:MS(l)&&(T=void 0);const S=sh(l,{shouldForwardProp:T,label:ES(d,u),...g}),C=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(P){return $a(P,k,P.theme.modularCssLayers?y:void 0)};if(or(k)){const O=Sh(k);return function(j){return O.variants?$a(j,O,j.theme.modularCssLayers?y:void 0):j.theme.modularCssLayers?ro(O.style,y):O.style}}return k},w=(...k)=>{const O=[],P=k.map(C),j=[];if(O.push(s),d&&m&&j.push(function(R){const N=R.theme.components?.[d]?.styleOverrides;if(!N)return null;const $={};for(const F in N)$[F]=$a(R,N[F],R.theme.modularCssLayers?"theme":void 0);return m(R,$)}),d&&!b&&j.push(function(R){const N=R.theme?.components?.[d]?.variants;return N?Ch(R,N,[],R.theme.modularCssLayers?"theme":void 0):null}),v||j.push(Fr),Array.isArray(P[0])){const E=P.shift(),R=new Array(O.length).fill(""),M=new Array(j.length).fill("");let N;N=[...R,...E,...M],N.raw=[...R,...E.raw,...M],O.unshift(N)}const A=[...O,...P,...j],L=S(...A);return l.muiName&&(L.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(L.displayName=kS(d,u,l)),L};return S.withConfig&&(w.withConfig=S.withConfig),w}}function kS(e,t,n){return e?`${e}${J(t||"")}`:`Styled(${wS(n)})`}function ES(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${kh(t||"Root")}`),n}function OS(e){for(const t in e)return!1;return!0}function MS(e){return typeof e=="string"&&e.charCodeAt(0)>96}function kh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Eh=Th();function Gs(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)r[s]=a||{};else if(!a)r[s]=l;else{r[s]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const d=c;r[s][d]=Gs(a[d],l[d],n)}}}else s==="className"&&n&&t.className?r.className=ge(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 PS(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Gs(t.components[n].defaultProps,r)}function Oh({props:e,name:t,defaultTheme:n,themeId:r}){let o=qs(n);return r&&(o=o[r]||o),PS({theme:o,name:t,props:e})}const Pn=typeof window<"u"?I.useLayoutEffect:I.useEffect;function jS(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function qc(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),jS(e,t,n)}function IS(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,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Wr(e){if(e.type)return e;if(e.charAt(0)==="#")return Wr(IS(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.
12
+ `)),()=>{})}function Pa(e){return Hs(e,"spacing",8,"spacing")}function no(e,t){return typeof t=="string"||t==null?t:e(t)}function Rw(e,t){return n=>e.reduce((r,o)=>(r[o]=no(t,n),r),{})}function Nw(e,t,n,r){if(!t.includes(n))return null;const o=Dw(n),s=Rw(o,r),a=e[n];return Vn(e,a,s)}function mh(e,t){const n=Pa(e.theme);return Object.keys(e).map(r=>Nw(e,t,r,n)).reduce(Vs,{})}function It(e){return mh(e,Oa)}It.propTypes=process.env.NODE_ENV!=="production"?Oa.reduce((e,t)=>(e[t]=_r,e),{}):{},It.filterProps=Oa;function Dt(e){return mh(e,Ma)}Dt.propTypes=process.env.NODE_ENV!=="production"?Ma.reduce((e,t)=>(e[t]=_r,e),{}):{},Dt.filterProps=Ma,process.env.NODE_ENV!=="production"&&Aw.reduce((e,t)=>(e[t]=_r,e),{});function gh(e=8,t=Pa({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 ja(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Vs(o,t[s](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function On(e){return typeof e!="number"?e:`${e}px solid`}function Mn(e,t){return Rt({prop:e,themeKey:"borders",transform:t})}const $w=Mn("border",On),Lw=Mn("borderTop",On),Bw=Mn("borderRight",On),_w=Mn("borderBottom",On),Fw=Mn("borderLeft",On),Ww=Mn("borderColor"),zw=Mn("borderTopColor"),Vw=Mn("borderRightColor"),Hw=Mn("borderBottomColor"),Uw=Mn("borderLeftColor"),Yw=Mn("outline",On),qw=Mn("outlineColor"),Ia=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Hs(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:no(t,r)});return Vn(e,e.borderRadius,n)}return null};Ia.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:_r}:{},Ia.filterProps=["borderRadius"],ja($w,Lw,Bw,_w,Fw,Ww,zw,Vw,Hw,Uw,Ia,Yw,qw);const Da=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Hs(e.theme,"spacing",8,"gap"),n=r=>({gap:no(t,r)});return Vn(e,e.gap,n)}return null};Da.propTypes=process.env.NODE_ENV!=="production"?{gap:_r}:{},Da.filterProps=["gap"];const Aa=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Hs(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:no(t,r)});return Vn(e,e.columnGap,n)}return null};Aa.propTypes=process.env.NODE_ENV!=="production"?{columnGap:_r}:{},Aa.filterProps=["columnGap"];const Ra=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Hs(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:no(t,r)});return Vn(e,e.rowGap,n)}return null};Ra.propTypes=process.env.NODE_ENV!=="production"?{rowGap:_r}:{},Ra.filterProps=["rowGap"];const Gw=Rt({prop:"gridColumn"}),Kw=Rt({prop:"gridRow"}),Xw=Rt({prop:"gridAutoFlow"}),Zw=Rt({prop:"gridAutoColumns"}),Jw=Rt({prop:"gridAutoRows"}),Qw=Rt({prop:"gridTemplateColumns"}),eS=Rt({prop:"gridTemplateRows"}),tS=Rt({prop:"gridTemplateAreas"}),nS=Rt({prop:"gridArea"});ja(Da,Aa,Ra,Gw,Kw,Xw,Zw,Jw,Qw,eS,tS,nS);function Bo(e,t){return t==="grey"?t:e}const rS=Rt({prop:"color",themeKey:"palette",transform:Bo}),oS=Rt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bo}),sS=Rt({prop:"backgroundColor",themeKey:"palette",transform:Bo});ja(rS,oS,sS);function wn(e){return e<=1&&e!==0?`${e*100}%`:e}const iS=Rt({prop:"width",transform:wn}),zc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Ta[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:wn(n)}};return Vn(e,e.maxWidth,t)}return null};zc.filterProps=["maxWidth"];const aS=Rt({prop:"minWidth",transform:wn}),lS=Rt({prop:"height",transform:wn}),cS=Rt({prop:"maxHeight",transform:wn}),dS=Rt({prop:"minHeight",transform:wn});Rt({prop:"size",cssProperty:"width",transform:wn}),Rt({prop:"size",cssProperty:"height",transform:wn});const uS=Rt({prop:"boxSizing"});ja(iS,zc,aS,lS,cS,dS,uS);const Us={border:{themeKey:"borders",transform:On},borderTop:{themeKey:"borders",transform:On},borderRight:{themeKey:"borders",transform:On},borderBottom:{themeKey:"borders",transform:On},borderLeft:{themeKey:"borders",transform:On},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:On},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ia},color:{themeKey:"palette",transform:Bo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bo},backgroundColor:{themeKey:"palette",transform:Bo},p:{style:Dt},pt:{style:Dt},pr:{style:Dt},pb:{style:Dt},pl:{style:Dt},px:{style:Dt},py:{style:Dt},padding:{style:Dt},paddingTop:{style:Dt},paddingRight:{style:Dt},paddingBottom:{style:Dt},paddingLeft:{style:Dt},paddingX:{style:Dt},paddingY:{style:Dt},paddingInline:{style:Dt},paddingInlineStart:{style:Dt},paddingInlineEnd:{style:Dt},paddingBlock:{style:Dt},paddingBlockStart:{style:Dt},paddingBlockEnd:{style:Dt},m:{style:It},mt:{style:It},mr:{style:It},mb:{style:It},ml:{style:It},mx:{style:It},my:{style:It},margin:{style:It},marginTop:{style:It},marginRight:{style:It},marginBottom:{style:It},marginLeft:{style:It},marginX:{style:It},marginY:{style:It},marginInline:{style:It},marginInlineStart:{style:It},marginInlineEnd:{style:It},marginBlock:{style:It},marginBlockStart:{style:It},marginBlockEnd:{style:It},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:Da},rowGap:{style:Ra},columnGap:{style:Aa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wn},maxWidth:{style:zc},minWidth:{transform:wn},height:{transform:wn},maxHeight:{transform:wn},minHeight:{transform:wn},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 fS(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function pS(e,t){return typeof e=="function"?e(t):e}function hS(){function e(n,r,o,s){const a={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:u,style:f}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const h=ka(o,d)||{};return f?f(a):Vn(a,r,g=>{let y=Ea(h,u,g);return g===y&&typeof g=="string"&&(y=Ea(h,u,`${n}${g==="default"?"":J(g)}`,g)),c===!1?y:{[c]:y}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Us;function l(c){let d=c;if(typeof c=="function")d=c(o);else if(typeof c!="object")return c;if(!d)return null;const u=ph(o.breakpoints),f=Object.keys(u);let h=u;return Object.keys(d).forEach(m=>{const g=pS(d[m],o);if(g!=null)if(typeof g=="object")if(a[m])h=Vs(h,e(m,g,o,a));else{const y=Vn({theme:o},g,b=>({[m]:b}));fS(y,g)?h[m]=t({sx:g,theme:o,nested:!0}):h=Vs(h,y)}else h=Vs(h,e(m,g,o,a))}),!s&&o.modularCssLayers?{"@layer sx":uh(o,Fc(f,h))}:uh(o,Fc(f,h))}return Array.isArray(r)?r.map(l):l(r)}return t}const Fr=hS();Fr.filterProps=["sx"];function mS(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 Ys(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...a}=e,l=ww(n),c=gh(o);let d=Yt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...kw,...s}},a);return d=Tw(d),d.applyStyles=mS,d=t.reduce((u,f)=>Yt(u,f),d),d.unstable_sxConfig={...Us,...a?.unstable_sxConfig},d.unstable_sx=function(f){return Fr({sx:f,theme:this})},d}function gS(e){return Object.keys(e).length===0}function Vc(e=null){const t=I.useContext(Ws);return!t||gS(t)?e:t}const yS=Ys();function qs(e=yS){return Vc(e)}function Hc(e){const t=Br(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Uc({styles:e,themeId:t,defaultTheme:n={}}){const r=qs(n),o=t&&r[t]||r;let s=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>Hc(typeof a=="function"?a(o):a)):s=Hc(s)),p.jsx(_c,{styles:s})}process.env.NODE_ENV!=="production"&&(Uc.propTypes={defaultTheme:i.object,styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool]),themeId:i.string});const bS=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Us;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Na(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=bS(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return or(l)?{...r,...l}:r}:s={...r,...t},{...o,sx:s}}const yh=e=>e,bh=(()=>{let e=yh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=yh}}})();function vh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=vh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ge(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vh(e))&&(r&&(r+=" "),r+=t);return r}function vS(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=sh("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Fr);return I.forwardRef(function(c,d){const u=qs(n),{className:f,component:h="div",...m}=Na(c);return p.jsx(s,{as:h,ref:d,className:ge(f,o?o(r):r),theme:t&&u[t]||u,...m})})}const xS={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 Ae(e,t,n="Mui"){const r=xS[t];return r?`${n}-${r}`:`${bh.generate(e)}-${t}`}function Re(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ae(e,o,n)}),r}function xh(e,t=""){return e.displayName||e.name||t}function wh(e,t,n){const r=xh(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function wS(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 Cr.ForwardRef:return wh(e,e.render,"ForwardRef");case Cr.Memo:return wh(e,e.type,"memo");default:return}}}function Sh(e){const{variants:t,...n}=e,r={variants:t,style:Br(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Br(o.style))}),r}const SS=Ys();function Yc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ro(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function CS(e){return e?(t,n)=>n[e]:null}function TS(e,t,n){e.theme=OS(e.theme)?n:e.theme[t]||e.theme}function $a(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>$a(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?ro(r.style,n):r.style;else{const{variants:s,...a}=r;o=n?ro(Br(a),n):a}return Ch(e,r.variants,[o],n)}return r?.isProcessed?n?ro(Br(r.style),n):r.style:n?ro(Br(r),n):r}function Ch(e,t,n=[],r=void 0){let o;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?ro(Br(a.style(o)),r):a.style(o))):n.push(r?ro(Br(a.style),r):a.style)}return n}function Th(e={}){const{themeId:t,defaultTheme:n=SS,rootShouldForwardProp:r=Yc,slotShouldForwardProp:o=Yc}=e;function s(l){TS(l,t,n)}return(l,c={})=>{gw(l,T=>T.filter(O=>O!==Fr));const{name:d,slot:u,skipVariantsResolver:f,skipSx:h,overridesResolver:m=CS(kh(u)),...g}=c,y=d&&d.startsWith("Mui")||u?"components":"custom",b=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,v=h||!1;let k=Yc;u==="Root"||u==="root"?k=r:u?k=o:MS(l)&&(k=void 0);const S=sh(l,{shouldForwardProp:k,label:ES(d,u),...g}),C=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(M){return $a(M,T,M.theme.modularCssLayers?y:void 0)};if(or(T)){const O=Sh(T);return function(j){return O.variants?$a(j,O,j.theme.modularCssLayers?y:void 0):j.theme.modularCssLayers?ro(O.style,y):O.style}}return T},w=(...T)=>{const O=[],M=T.map(C),j=[];if(O.push(s),d&&m&&j.push(function(N){const $=N.theme.components?.[d]?.styleOverrides;if(!$)return null;const R={};for(const W in $)R[W]=$a(N,$[W],N.theme.modularCssLayers?"theme":void 0);return m(N,R)}),d&&!b&&j.push(function(N){const $=N.theme?.components?.[d]?.variants;return $?Ch(N,$,[],N.theme.modularCssLayers?"theme":void 0):null}),v||j.push(Fr),Array.isArray(M[0])){const E=M.shift(),N=new Array(O.length).fill(""),P=new Array(j.length).fill("");let $;$=[...N,...E,...P],$.raw=[...N,...E.raw,...P],O.unshift($)}const A=[...O,...M,...j],L=S(...A);return l.muiName&&(L.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(L.displayName=kS(d,u,l)),L};return S.withConfig&&(w.withConfig=S.withConfig),w}}function kS(e,t,n){return e?`${e}${J(t||"")}`:`Styled(${wS(n)})`}function ES(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${kh(t||"Root")}`),n}function OS(e){for(const t in e)return!1;return!0}function MS(e){return typeof e=="string"&&e.charCodeAt(0)>96}function kh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Eh=Th();function Gs(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)r[s]=a||{};else if(!a)r[s]=l;else{r[s]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const d=c;r[s][d]=Gs(a[d],l[d],n)}}}else s==="className"&&n&&t.className?r.className=ge(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 PS(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Gs(t.components[n].defaultProps,r)}function Oh({props:e,name:t,defaultTheme:n,themeId:r}){let o=qs(n);return r&&(o=o[r]||o),PS({theme:o,name:t,props:e})}const Pn=typeof window<"u"?I.useLayoutEffect:I.useEffect;function jS(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function qc(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),jS(e,t,n)}function IS(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,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Wr(e){if(e.type)return e;if(e.charAt(0)==="#")return Wr(IS(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.
13
13
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Qn(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=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(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
14
14
  The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Qn(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const DS=e=>{const t=Wr(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ks=(e,t)=>{try{return DS(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function La(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Mh(e){e=Wr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),a=(d,u=(d+n/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),La({type:l,values:c})}function Gc(e){e=Wr(e);let t=e.type==="hsl"||e.type==="hsla"?Wr(Mh(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 Ph(e,t){const n=Gc(e),r=Gc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ba(e,t){return e=Wr(e),t=qc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,La(e)}function oo(e,t,n){try{return Ba(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function _a(e,t){if(e=Wr(e),t=qc(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return La(e)}function ht(e,t,n){try{return _a(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Fa(e,t){if(e=Wr(e),t=qc(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return La(e)}function mt(e,t,n){try{return Fa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Kc(e,t=.15){return Gc(e)>.5?_a(e,t):Fa(e,t)}function Wa(e,t,n){try{return Kc(e,t)}catch{return e}}const AS="exact-prop: ​";function za(e){return process.env.NODE_ENV==="production"?e:{...e,[AS]: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 Xc=I.createContext(null);process.env.NODE_ENV!=="production"&&(Xc.displayName="ThemeContext");function Zc(){const e=I.useContext(Xc);return process.env.NODE_ENV!=="production"&&I.useDebugValue(e),e}const RS=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function NS(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
15
15
  `))),n}return{...e,...t}}function Va(e){const{children:t,theme:n}=e,r=Zc();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
@@ -41,12 +41,12 @@ try {
41
41
  if (colorScheme) {
42
42
  ${d}
43
43
  }
44
- } catch(e){}})();`}},"mui-color-scheme-init")}function VS(){}const HS=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return VS;const r=o=>{const s=o.newValue;o.key===e&&n(s)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function ed(){}function _h(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Fh(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function US(e){return Fh(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function YS(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:s=Jc,colorSchemeStorageKey:a=Qc,storageWindow:l=typeof window>"u"?void 0:window,storageManager:c=HS,noSsr:d=!1}=e,u=o.join(","),f=o.length>1,h=I.useMemo(()=>c?.({key:s,storageWindow:l}),[c,s,l]),m=I.useMemo(()=>c?.({key:`${a}-light`,storageWindow:l}),[c,a,l]),g=I.useMemo(()=>c?.({key:`${a}-dark`,storageWindow:l}),[c,a,l]),[y,b]=I.useState(()=>{const P=h?.get(t)||t,j=m?.get(n)||n,A=g?.get(r)||r;return{mode:P,systemMode:_h(P),lightColorScheme:j,darkColorScheme:A}}),[v,T]=I.useState(d||!f);I.useEffect(()=>{T(!0)},[]);const S=US(y),C=I.useCallback(P=>{b(j=>{if(P===j.mode)return j;const A=P??t;return h?.set(A),{...j,mode:A,systemMode:_h(A)}})},[h,t]),w=I.useCallback(P=>{P?typeof P=="string"?P&&!u.includes(P)?console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`):b(j=>{const A={...j};return Fh(j,L=>{L==="light"&&(m?.set(P),A.lightColorScheme=P),L==="dark"&&(g?.set(P),A.darkColorScheme=P)}),A}):b(j=>{const A={...j},L=P.light===null?n:P.light,E=P.dark===null?r:P.dark;return L&&(u.includes(L)?(A.lightColorScheme=L,m?.set(L)):console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`)),E&&(u.includes(E)?(A.darkColorScheme=E,g?.set(E)):console.error(`\`${E}\` does not exist in \`theme.colorSchemes\`.`)),A}):b(j=>(m?.set(n),g?.set(r),{...j,lightColorScheme:n,darkColorScheme:r}))},[u,m,g,n,r]),k=I.useCallback(P=>{y.mode==="system"&&b(j=>{const A=P?.matches?"dark":"light";return j.systemMode===A?j:{...j,systemMode:A}})},[y.mode]),O=I.useRef(k);return O.current=k,I.useEffect(()=>{if(typeof window.matchMedia!="function"||!f)return;const P=(...A)=>O.current(...A),j=window.matchMedia("(prefers-color-scheme: dark)");return j.addListener(P),P(j),()=>{j.removeListener(P)}},[f]),I.useEffect(()=>{if(f){const P=h?.subscribe(L=>{(!L||["light","dark","system"].includes(L))&&C(L||t)})||ed,j=m?.subscribe(L=>{(!L||u.match(L))&&w({light:L})})||ed,A=g?.subscribe(L=>{(!L||u.match(L))&&w({dark:L})})||ed;return()=>{P(),j(),A()}}},[w,C,u,t,l,f,h,m,g]),{...y,mode:v?y.mode:void 0,systemMode:v?y.systemMode:void 0,colorScheme:v?S:void 0,setMode:C,setColorScheme:w}}const qS="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function GS(e){const{themeId:t,theme:n={},modeStorageKey:r=Jc,colorSchemeStorageKey:o=Qc,disableTransitionOnChange:s=!1,defaultColorScheme:a,resolveTheme:l}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(d.displayName="ColorSchemeContext");const u=()=>I.useContext(d)||c,f={},h={};function m(v){const{children:T,theme:S,modeStorageKey:C=r,colorSchemeStorageKey:w=o,disableTransitionOnChange:k=s,storageManager:O,storageWindow:P=typeof window>"u"?void 0:window,documentNode:j=typeof document>"u"?void 0:document,colorSchemeNode:A=typeof document>"u"?void 0:document.documentElement,disableNestedContext:L=!1,disableStyleSheetGeneration:E=!1,defaultMode:R="system",forceThemeRerender:M=!1,noSsr:N}=v,$=I.useRef(!1),F=Zc(),H=I.useContext(d),z=!!H&&!L,_=I.useMemo(()=>S||(typeof n=="function"?n():n),[S]),D=_[t],V=D||_,{colorSchemes:U=f,components:G=h,cssVarPrefix:X}=V,q=Object.keys(U).filter(he=>!!U[he]).join(","),K=I.useMemo(()=>q.split(","),[q]),ce=typeof a=="string"?a:a.light,de=typeof a=="string"?a:a.dark,W=U[ce]&&U[de]?R:U[V.defaultColorScheme]?.palette?.mode||V.palette?.mode,{mode:ee,setMode:B,systemMode:ue,lightColorScheme:Q,darkColorScheme:ne,colorScheme:we,setColorScheme:ke}=YS({supportedColorSchemes:K,defaultLightColorScheme:ce,defaultDarkColorScheme:de,modeStorageKey:C,colorSchemeStorageKey:w,defaultMode:W,storageManager:O,storageWindow:P,noSsr:N});let Ce=ee,ve=we;z&&(Ce=H.mode,ve=H.colorScheme),process.env.NODE_ENV!=="production"&&M&&!V.vars&&console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.","Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
45
- `));let _e=ve||V.defaultColorScheme;V.vars&&!M&&(_e=V.defaultColorScheme);const Ee=I.useMemo(()=>{const he=V.generateThemeVars?.()||V.vars,pe={...V,components:G,colorSchemes:U,cssVarPrefix:X,vars:he};if(typeof pe.generateSpacing=="function"&&(pe.spacing=pe.generateSpacing()),_e){const Ie=U[_e];Ie&&typeof Ie=="object"&&Object.keys(Ie).forEach(Fe=>{Ie[Fe]&&typeof Ie[Fe]=="object"?pe[Fe]={...pe[Fe],...Ie[Fe]}:pe[Fe]=Ie[Fe]})}return l?l(pe):pe},[V,_e,G,U,X]),xe=V.colorSchemeSelector;Pn(()=>{if(ve&&A&&xe&&xe!=="media"){const he=xe;let pe=xe;if(he==="class"&&(pe=".%s"),he==="data"&&(pe="[data-%s]"),he?.startsWith("data-")&&!he.includes("%s")&&(pe=`[${he}="%s"]`),pe.startsWith("."))A.classList.remove(...K.map(Ie=>pe.substring(1).replace("%s",Ie))),A.classList.add(pe.substring(1).replace("%s",ve));else{const Ie=pe.replace("%s",ve).match(/\[([^\]]+)\]/);if(Ie){const[Fe,He]=Ie[1].split("=");He||K.forEach(Oe=>{A.removeAttribute(Fe.replace(ve,Oe))}),A.setAttribute(Fe,He?He.replace(/"|'/g,""):"")}else A.setAttribute(pe,ve)}}},[ve,xe,A,K]),I.useEffect(()=>{let he;if(k&&$.current&&j){const pe=j.createElement("style");pe.appendChild(j.createTextNode(qS)),j.head.appendChild(pe),window.getComputedStyle(j.body),he=setTimeout(()=>{j.head.removeChild(pe)},1)}return()=>{clearTimeout(he)}},[ve,k,j]),I.useEffect(()=>($.current=!0,()=>{$.current=!1}),[]);const re=I.useMemo(()=>({allColorSchemes:K,colorScheme:ve,darkColorScheme:ne,lightColorScheme:Q,mode:Ce,setColorScheme:ke,setMode:process.env.NODE_ENV==="production"?B:he=>{Ee.colorSchemeSelector==="media"&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
46
- `)),B(he)},systemMode:ue}),[K,ve,ne,Q,Ce,ke,B,ue,Ee.colorSchemeSelector]);let ie=!0;(E||V.cssVariables===!1||z&&F?.cssVarPrefix===X)&&(ie=!1);const Te=p.jsxs(I.Fragment,{children:[p.jsx(Xs,{themeId:D?t:void 0,theme:Ee,children:T}),ie&&p.jsx(_c,{styles:Ee.generateStyleSheets?.()||[]})]});return z?Te:p.jsx(d.Provider,{value:re,children:Te})}process.env.NODE_ENV!=="production"&&(m.propTypes={children:i.node,colorSchemeNode:i.any,colorSchemeStorageKey:i.string,defaultMode:i.string,disableNestedContext:i.bool,disableStyleSheetGeneration:i.bool,disableTransitionOnChange:i.bool,documentNode:i.any,forceThemeRerender:i.bool,modeStorageKey:i.string,noSsr:i.bool,storageManager:i.func,storageWindow:i.any,theme:i.object});const g=typeof a=="string"?a:a.light,y=typeof a=="string"?a:a.dark;return{CssVarsProvider:m,useColorScheme:u,getInitColorSchemeScript:v=>zS({colorSchemeStorageKey:o,defaultLightColorScheme:g,defaultDarkColorScheme:y,modeStorageKey:r,...v})}}function KS(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.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}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const Wh=(e,t,n,r=[])=>{let o=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},XS=(e,t,n)=>{function r(o,s=[],a=[]){Object.entries(o).forEach(([l,c])=>{(!n||n&&!n([...s,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...s,l],Array.isArray(c)?[...a,l]:a):t([...s,l],c,a))})}r(e)},ZS=(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 td(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},a={};return XS(e,(l,c,d)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const u=`--${n?`${n}-`:""}${l.join("-")}`,f=ZS(l,c);Object.assign(o,{[u]:f}),Wh(s,l,`var(${u})`,d),Wh(a,l,`var(${u}, ${f})`,d)}},l=>l[0]==="vars"),{css:o,vars:s,varsWithDefaults:a}}function JS(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...d}=e,{vars:u,css:f,varsWithDefaults:h}=td(d,t);let m=h;const g={},{[c]:y,...b}=a;if(Object.entries(b||{}).forEach(([C,w])=>{const{vars:k,css:O,varsWithDefaults:P}=td(w,t);m=Yt(m,P),g[C]={css:O,vars:k}}),y){const{css:C,vars:w,varsWithDefaults:k}=td(y,t);m=Yt(m,k),g[c]={css:C,vars:w}}function v(C,w){let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),C){if(k==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${a[C]?.palette?.mode||C})`]:{":root":w}};if(k)return e.defaultColorScheme===C?`:root, ${k.replace("%s",String(C))}`:k.replace("%s",String(C))}return":root"}return{vars:m,generateThemeVars:()=>{let C={...u};return Object.entries(g).forEach(([,{vars:w}])=>{C=Yt(C,w)}),C},generateStyleSheets:()=>{const C=[],w=e.defaultColorScheme||"light";function k(j,A){Object.keys(A).length&&C.push(typeof j=="string"?{[j]:{...A}}:j)}k(n(void 0,{...f}),f);const{[w]:O,...P}=g;if(O){const{css:j}=O,A=a[w]?.palette?.mode,L=!r&&A?{colorScheme:A,...j}:{...j};k(n(w,{...L}),L)}return Object.entries(P).forEach(([j,{css:A}])=>{const L=a[j]?.palette?.mode,E=!r&&L?{colorScheme:L,...A}:{...A};k(n(j,{...E}),E)}),s&&C.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)"}}),C}}}function QS(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 Ne(e,t,n=void 0){const r={};for(const o in e){const s=e[o];let a="",l=!0;for(let c=0;c<s.length;c+=1){const d=s[c];d&&(a+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(a+=" "+n[d]))}r[o]=a}return r}function Ha(e,t){return I.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const eC=(e,t)=>e.filter(n=>t.includes(n)),Fo=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,s)=>{n((a,l)=>{s<=e.keys.length-1&&(s===0?Object.assign(a,l):a[e.up(e.keys[s])]=l)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:eC(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.includes(s)){const a=t[s];a!==void 0&&n((l,c)=>{r===s?Object.assign(l,c):l[e.up(s)]=c},a)}}):(typeof t=="number"||typeof t=="string")&&n((o,s)=>{Object.assign(o,s)},t)};function Ua(e){return`--Grid-${e}Spacing`}function Ya(e){return`--Grid-parent-${e}Spacing`}const zh="--Grid-columns",Wo="--Grid-parent-columns",tC=({theme:e,ownerState:t})=>{const n={};return Fo(e.breakpoints,t.size,(r,o)=>{let s={};o==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Wo}) - (var(${Wo}) - ${o}) * (var(${Ya("column")}) / var(${Wo})))`}),r(n,s)}),n},nC=({theme:e,ownerState:t})=>{const n={};return Fo(e.breakpoints,t.offset,(r,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Wo}) + var(${Ya("column")}) * ${o} / var(${Wo}))`}),r(n,s)}),n},rC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[zh]:12};return Fo(e.breakpoints,t.columns,(r,o)=>{const s=o??12;r(n,{[zh]:s,"> *":{[Wo]:s}})}),n},oC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Fo(e.breakpoints,t.rowSpacing,(r,o)=>{const s=typeof o=="string"?o:e.spacing?.(o);r(n,{[Ua("row")]:s,"> *":{[Ya("row")]:s}})}),n},sC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Fo(e.breakpoints,t.columnSpacing,(r,o)=>{const s=typeof o=="string"?o:e.spacing?.(o);r(n,{[Ua("column")]:s,"> *":{[Ya("column")]:s}})}),n},iC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Fo(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},aC=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Ua("row")}) var(${Ua("column")})`}}),lC=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},cC=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,s])=>{n(s)&&r.push(`spacing-${o}-${String(s)}`)}),r}return[]},dC=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],uC=e=>["item","zeroMinWidth"].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,Vh=[];function fC(e,t){const n=[];e.item!==void 0&&(delete e.item,n.push("item")),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach(r=>{e[r]!==void 0&&(n.push(r),delete e[r])}),process.env.NODE_ENV!=="production"&&n.forEach(r=>{Vh.includes(r)||(Vh.push(r),console.warn(`MUI Grid: ${uC(r)}
47
- `))})}const pC=Ys(),hC=Eh("div",{name:"MuiGrid",slot:"Root"});function mC(e){return Oh({props:e,name:"MuiGrid",defaultTheme:pC})}function gC(e={}){const{createStyledComponent:t=hC,useThemeProps:n=mC,useTheme:r=qs,componentName:o="MuiGrid"}=e,s=(d,u)=>{const{container:f,direction:h,spacing:m,wrap:g,size:y}=d,b={root:["root",f&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...dC(h),...lC(y),...f?cC(m,u.breakpoints.keys[0]):[]]};return Ne(b,v=>Ae(o,v),{})};function a(d,u,f=()=>!0){const h={};return d===null||(Array.isArray(d)?d.forEach((m,g)=>{m!==null&&f(m)&&u.keys[g]&&(h[u.keys[g]]=m)}):typeof d=="object"?Object.keys(d).forEach(m=>{const g=d[m];g!=null&&f(g)&&(h[m]=g)}):h[u.keys[0]]=d),h}const l=t(rC,sC,oC,tC,iC,aC,nC),c=I.forwardRef(function(u,f){const h=r(),m=n(u),g=Na(m);fC(g,h.breakpoints);const{className:y,children:b,columns:v=12,container:T=!1,component:S="div",direction:C="row",wrap:w="wrap",size:k={},offset:O={},spacing:P=0,rowSpacing:j=P,columnSpacing:A=P,unstable_level:L=0,...E}=g,R=a(k,h.breakpoints,D=>D!==!1),M=a(O,h.breakpoints),N=u.columns??(L?void 0:v),$=u.spacing??(L?void 0:P),F=u.rowSpacing??u.spacing??(L?void 0:j),H=u.columnSpacing??u.spacing??(L?void 0:A),z={...g,level:L,columns:N,container:T,direction:C,wrap:w,spacing:$,rowSpacing:F,columnSpacing:H,size:R,offset:M},_=s(z,h);return p.jsx(l,{ref:f,as:S,ownerState:z,className:ge(_.root,y),...E,children:I.Children.map(b,D=>I.isValidElement(D)&&Ha(D,["Grid"])&&T&&D.props.container?I.cloneElement(D,{unstable_level:D.props?.unstable_level??L+1}):D)})});return process.env.NODE_ENV!=="production"&&(c.propTypes={children:i.node,className:i.string,columns:i.oneOfType([i.arrayOf(i.number),i.number,i.object]),columnSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),component:i.elementType,container:i.bool,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),offset:i.oneOfType([i.string,i.number,i.arrayOf(i.oneOfType([i.string,i.number])),i.object]),rowSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),size:i.oneOfType([i.string,i.bool,i.number,i.arrayOf(i.oneOfType([i.string,i.bool,i.number])),i.object]),spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),wrap:i.oneOf(["nowrap","wrap-reverse","wrap"])}),c.muiName="Grid",c}const yC=Ys(),bC=Eh("div",{name:"MuiStack",slot:"Root"});function vC(e){return Oh({props:e,name:"MuiStack",defaultTheme:yC})}function xC(e,t){const n=I.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s<n.length-1&&r.push(I.cloneElement(t,{key:`separator-${s}`})),r),[])}const wC=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],SC=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Vn({theme:t},Wc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Pa(t),o=Object.keys(t.breakpoints.values).reduce((c,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(c[d]=!0),c),{}),s=Wc({values:e.direction,base:o}),a=Wc({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((c,d,u)=>{if(!s[c]){const h=d>0?s[u[d-1]]:"column";s[c]=h}}),n=Yt(n,Vn({theme:t},a,(c,d)=>e.useFlexGap?{gap:no(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${wC(d?s[d]:e.direction)}`]:no(r,c)}}))}return n=Ow(t.breakpoints,n),n};function CC(e={}){const{createStyledComponent:t=bC,useThemeProps:n=vC,componentName:r="MuiStack"}=e,o=()=>Ne({root:["root"]},c=>Ae(r,c),{}),s=t(SC),a=I.forwardRef(function(c,d){const u=n(c),f=Na(u),{component:h="div",direction:m="column",spacing:g=0,divider:y,children:b,className:v,useFlexGap:T=!1,...S}=f,C={direction:m,spacing:g,useFlexGap:T},w=o();return p.jsx(s,{as:h,ownerState:C,ref:d,className:ge(w.root,v),...S,children:y?xC(b,y):b})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:i.node,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),divider:i.node,spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])}),a}function Hh(){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:As.white,default:As.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 Uh=Hh();function Yh(){return{text:{primary:As.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:As.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 nd=Yh();function qh(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Fa(e.main,o):t==="dark"&&(e.dark=_a(e.main,s)))}function Gh(e,t,n,r,o){const s=o.light||o,a=o.dark||o*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 TC(e="light"){return e==="dark"?{main:Do[200],light:Do[50],dark:Do[400]}:{main:Do[700],light:Do[400],dark:Do[800]}}function kC(e="light"){return e==="dark"?{main:Io[200],light:Io[50],dark:Io[400]}:{main:Io[500],light:Io[300],dark:Io[700]}}function EC(e="light"){return e==="dark"?{main:jo[500],light:jo[300],dark:jo[700]}:{main:jo[700],light:jo[400],dark:jo[800]}}function OC(e="light"){return e==="dark"?{main:Ao[400],light:Ao[300],dark:Ao[700]}:{main:Ao[700],light:Ao[500],dark:Ao[900]}}function MC(e="light"){return e==="dark"?{main:Ro[400],light:Ro[300],dark:Ro[700]}:{main:Ro[800],light:Ro[500],dark:Ro[900]}}function PC(e="light"){return e==="dark"?{main:Rs[400],light:Rs[300],dark:Rs[700]}:{main:"#ed6c02",light:Rs[500],dark:Rs[900]}}function jC(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function rd(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,a=e.primary||TC(t),l=e.secondary||kC(t),c=e.error||EC(t),d=e.info||OC(t),u=e.success||MC(t),f=e.warning||PC(t);function h(b){if(o)return jC(b);const v=Ph(b,nd.text.primary)>=n?nd.text.primary:Uh.text.primary;if(process.env.NODE_ENV!=="production"){const T=Ph(b,v);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${v} on ${b}`,"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(`
48
- `))}return v}const m=({color:b,name:v,mainShade:T=500,lightShade:S=300,darkShade:C=700})=>{if(b={...b},!b.main&&b[T]&&(b.main=b[T]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
49
- The color object needs to have a \`main\` property or a \`${T}\` property.`:Qn(11,v?` (${v})`:"",T));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
44
+ } catch(e){}})();`}},"mui-color-scheme-init")}function VS(){}const HS=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return VS;const r=o=>{const s=o.newValue;o.key===e&&n(s)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function ed(){}function _h(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Fh(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function US(e){return Fh(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function YS(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:s=Jc,colorSchemeStorageKey:a=Qc,storageWindow:l=typeof window>"u"?void 0:window,storageManager:c=HS,noSsr:d=!1}=e,u=o.join(","),f=o.length>1,h=I.useMemo(()=>c?.({key:s,storageWindow:l}),[c,s,l]),m=I.useMemo(()=>c?.({key:`${a}-light`,storageWindow:l}),[c,a,l]),g=I.useMemo(()=>c?.({key:`${a}-dark`,storageWindow:l}),[c,a,l]),[y,b]=I.useState(()=>{const M=h?.get(t)||t,j=m?.get(n)||n,A=g?.get(r)||r;return{mode:M,systemMode:_h(M),lightColorScheme:j,darkColorScheme:A}}),[v,k]=I.useState(d||!f);I.useEffect(()=>{k(!0)},[]);const S=US(y),C=I.useCallback(M=>{b(j=>{if(M===j.mode)return j;const A=M??t;return h?.set(A),{...j,mode:A,systemMode:_h(A)}})},[h,t]),w=I.useCallback(M=>{M?typeof M=="string"?M&&!u.includes(M)?console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`):b(j=>{const A={...j};return Fh(j,L=>{L==="light"&&(m?.set(M),A.lightColorScheme=M),L==="dark"&&(g?.set(M),A.darkColorScheme=M)}),A}):b(j=>{const A={...j},L=M.light===null?n:M.light,E=M.dark===null?r:M.dark;return L&&(u.includes(L)?(A.lightColorScheme=L,m?.set(L)):console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`)),E&&(u.includes(E)?(A.darkColorScheme=E,g?.set(E)):console.error(`\`${E}\` does not exist in \`theme.colorSchemes\`.`)),A}):b(j=>(m?.set(n),g?.set(r),{...j,lightColorScheme:n,darkColorScheme:r}))},[u,m,g,n,r]),T=I.useCallback(M=>{y.mode==="system"&&b(j=>{const A=M?.matches?"dark":"light";return j.systemMode===A?j:{...j,systemMode:A}})},[y.mode]),O=I.useRef(T);return O.current=T,I.useEffect(()=>{if(typeof window.matchMedia!="function"||!f)return;const M=(...A)=>O.current(...A),j=window.matchMedia("(prefers-color-scheme: dark)");return j.addListener(M),M(j),()=>{j.removeListener(M)}},[f]),I.useEffect(()=>{if(f){const M=h?.subscribe(L=>{(!L||["light","dark","system"].includes(L))&&C(L||t)})||ed,j=m?.subscribe(L=>{(!L||u.match(L))&&w({light:L})})||ed,A=g?.subscribe(L=>{(!L||u.match(L))&&w({dark:L})})||ed;return()=>{M(),j(),A()}}},[w,C,u,t,l,f,h,m,g]),{...y,mode:v?y.mode:void 0,systemMode:v?y.systemMode:void 0,colorScheme:v?S:void 0,setMode:C,setColorScheme:w}}const qS="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function GS(e){const{themeId:t,theme:n={},modeStorageKey:r=Jc,colorSchemeStorageKey:o=Qc,disableTransitionOnChange:s=!1,defaultColorScheme:a,resolveTheme:l}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(d.displayName="ColorSchemeContext");const u=()=>I.useContext(d)||c,f={},h={};function m(v){const{children:k,theme:S,modeStorageKey:C=r,colorSchemeStorageKey:w=o,disableTransitionOnChange:T=s,storageManager:O,storageWindow:M=typeof window>"u"?void 0:window,documentNode:j=typeof document>"u"?void 0:document,colorSchemeNode:A=typeof document>"u"?void 0:document.documentElement,disableNestedContext:L=!1,disableStyleSheetGeneration:E=!1,defaultMode:N="system",forceThemeRerender:P=!1,noSsr:$}=v,R=I.useRef(!1),W=Zc(),V=I.useContext(d),H=!!V&&!L,B=I.useMemo(()=>S||(typeof n=="function"?n():n),[S]),D=B[t],F=D||B,{colorSchemes:U=f,components:q=h,cssVarPrefix:X}=F,G=Object.keys(U).filter(he=>!!U[he]).join(","),K=I.useMemo(()=>G.split(","),[G]),ae=typeof a=="string"?a:a.light,le=typeof a=="string"?a:a.dark,z=U[ae]&&U[le]?N:U[F.defaultColorScheme]?.palette?.mode||F.palette?.mode,{mode:ee,setMode:_,systemMode:ue,lightColorScheme:Q,darkColorScheme:ne,colorScheme:we,setColorScheme:ke}=YS({supportedColorSchemes:K,defaultLightColorScheme:ae,defaultDarkColorScheme:le,modeStorageKey:C,colorSchemeStorageKey:w,defaultMode:z,storageManager:O,storageWindow:M,noSsr:$});let Ce=ee,ve=we;H&&(Ce=V.mode,ve=V.colorScheme),process.env.NODE_ENV!=="production"&&P&&!F.vars&&console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.","Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
45
+ `));let _e=ve||F.defaultColorScheme;F.vars&&!P&&(_e=F.defaultColorScheme);const Ee=I.useMemo(()=>{const he=F.generateThemeVars?.()||F.vars,pe={...F,components:q,colorSchemes:U,cssVarPrefix:X,vars:he};if(typeof pe.generateSpacing=="function"&&(pe.spacing=pe.generateSpacing()),_e){const Ie=U[_e];Ie&&typeof Ie=="object"&&Object.keys(Ie).forEach(Fe=>{Ie[Fe]&&typeof Ie[Fe]=="object"?pe[Fe]={...pe[Fe],...Ie[Fe]}:pe[Fe]=Ie[Fe]})}return l?l(pe):pe},[F,_e,q,U,X]),xe=F.colorSchemeSelector;Pn(()=>{if(ve&&A&&xe&&xe!=="media"){const he=xe;let pe=xe;if(he==="class"&&(pe=".%s"),he==="data"&&(pe="[data-%s]"),he?.startsWith("data-")&&!he.includes("%s")&&(pe=`[${he}="%s"]`),pe.startsWith("."))A.classList.remove(...K.map(Ie=>pe.substring(1).replace("%s",Ie))),A.classList.add(pe.substring(1).replace("%s",ve));else{const Ie=pe.replace("%s",ve).match(/\[([^\]]+)\]/);if(Ie){const[Fe,He]=Ie[1].split("=");He||K.forEach(Oe=>{A.removeAttribute(Fe.replace(ve,Oe))}),A.setAttribute(Fe,He?He.replace(/"|'/g,""):"")}else A.setAttribute(pe,ve)}}},[ve,xe,A,K]),I.useEffect(()=>{let he;if(T&&R.current&&j){const pe=j.createElement("style");pe.appendChild(j.createTextNode(qS)),j.head.appendChild(pe),window.getComputedStyle(j.body),he=setTimeout(()=>{j.head.removeChild(pe)},1)}return()=>{clearTimeout(he)}},[ve,T,j]),I.useEffect(()=>(R.current=!0,()=>{R.current=!1}),[]);const re=I.useMemo(()=>({allColorSchemes:K,colorScheme:ve,darkColorScheme:ne,lightColorScheme:Q,mode:Ce,setColorScheme:ke,setMode:process.env.NODE_ENV==="production"?_:he=>{Ee.colorSchemeSelector==="media"&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
46
+ `)),_(he)},systemMode:ue}),[K,ve,ne,Q,Ce,ke,_,ue,Ee.colorSchemeSelector]);let ie=!0;(E||F.cssVariables===!1||H&&W?.cssVarPrefix===X)&&(ie=!1);const Te=p.jsxs(I.Fragment,{children:[p.jsx(Xs,{themeId:D?t:void 0,theme:Ee,children:k}),ie&&p.jsx(_c,{styles:Ee.generateStyleSheets?.()||[]})]});return H?Te:p.jsx(d.Provider,{value:re,children:Te})}process.env.NODE_ENV!=="production"&&(m.propTypes={children:i.node,colorSchemeNode:i.any,colorSchemeStorageKey:i.string,defaultMode:i.string,disableNestedContext:i.bool,disableStyleSheetGeneration:i.bool,disableTransitionOnChange:i.bool,documentNode:i.any,forceThemeRerender:i.bool,modeStorageKey:i.string,noSsr:i.bool,storageManager:i.func,storageWindow:i.any,theme:i.object});const g=typeof a=="string"?a:a.light,y=typeof a=="string"?a:a.dark;return{CssVarsProvider:m,useColorScheme:u,getInitColorSchemeScript:v=>zS({colorSchemeStorageKey:o,defaultLightColorScheme:g,defaultDarkColorScheme:y,modeStorageKey:r,...v})}}function KS(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.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}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const Wh=(e,t,n,r=[])=>{let o=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},XS=(e,t,n)=>{function r(o,s=[],a=[]){Object.entries(o).forEach(([l,c])=>{(!n||n&&!n([...s,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...s,l],Array.isArray(c)?[...a,l]:a):t([...s,l],c,a))})}r(e)},ZS=(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 td(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},a={};return XS(e,(l,c,d)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const u=`--${n?`${n}-`:""}${l.join("-")}`,f=ZS(l,c);Object.assign(o,{[u]:f}),Wh(s,l,`var(${u})`,d),Wh(a,l,`var(${u}, ${f})`,d)}},l=>l[0]==="vars"),{css:o,vars:s,varsWithDefaults:a}}function JS(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...d}=e,{vars:u,css:f,varsWithDefaults:h}=td(d,t);let m=h;const g={},{[c]:y,...b}=a;if(Object.entries(b||{}).forEach(([C,w])=>{const{vars:T,css:O,varsWithDefaults:M}=td(w,t);m=Yt(m,M),g[C]={css:O,vars:T}}),y){const{css:C,vars:w,varsWithDefaults:T}=td(y,t);m=Yt(m,T),g[c]={css:C,vars:w}}function v(C,w){let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),C){if(T==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${a[C]?.palette?.mode||C})`]:{":root":w}};if(T)return e.defaultColorScheme===C?`:root, ${T.replace("%s",String(C))}`:T.replace("%s",String(C))}return":root"}return{vars:m,generateThemeVars:()=>{let C={...u};return Object.entries(g).forEach(([,{vars:w}])=>{C=Yt(C,w)}),C},generateStyleSheets:()=>{const C=[],w=e.defaultColorScheme||"light";function T(j,A){Object.keys(A).length&&C.push(typeof j=="string"?{[j]:{...A}}:j)}T(n(void 0,{...f}),f);const{[w]:O,...M}=g;if(O){const{css:j}=O,A=a[w]?.palette?.mode,L=!r&&A?{colorScheme:A,...j}:{...j};T(n(w,{...L}),L)}return Object.entries(M).forEach(([j,{css:A}])=>{const L=a[j]?.palette?.mode,E=!r&&L?{colorScheme:L,...A}:{...A};T(n(j,{...E}),E)}),s&&C.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)"}}),C}}}function QS(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 Ne(e,t,n=void 0){const r={};for(const o in e){const s=e[o];let a="",l=!0;for(let c=0;c<s.length;c+=1){const d=s[c];d&&(a+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(a+=" "+n[d]))}r[o]=a}return r}function Ha(e,t){return I.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const eC=(e,t)=>e.filter(n=>t.includes(n)),Fo=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,s)=>{n((a,l)=>{s<=e.keys.length-1&&(s===0?Object.assign(a,l):a[e.up(e.keys[s])]=l)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:eC(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.includes(s)){const a=t[s];a!==void 0&&n((l,c)=>{r===s?Object.assign(l,c):l[e.up(s)]=c},a)}}):(typeof t=="number"||typeof t=="string")&&n((o,s)=>{Object.assign(o,s)},t)};function Ua(e){return`--Grid-${e}Spacing`}function Ya(e){return`--Grid-parent-${e}Spacing`}const zh="--Grid-columns",Wo="--Grid-parent-columns",tC=({theme:e,ownerState:t})=>{const n={};return Fo(e.breakpoints,t.size,(r,o)=>{let s={};o==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Wo}) - (var(${Wo}) - ${o}) * (var(${Ya("column")}) / var(${Wo})))`}),r(n,s)}),n},nC=({theme:e,ownerState:t})=>{const n={};return Fo(e.breakpoints,t.offset,(r,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Wo}) + var(${Ya("column")}) * ${o} / var(${Wo}))`}),r(n,s)}),n},rC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[zh]:12};return Fo(e.breakpoints,t.columns,(r,o)=>{const s=o??12;r(n,{[zh]:s,"> *":{[Wo]:s}})}),n},oC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Fo(e.breakpoints,t.rowSpacing,(r,o)=>{const s=typeof o=="string"?o:e.spacing?.(o);r(n,{[Ua("row")]:s,"> *":{[Ya("row")]:s}})}),n},sC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Fo(e.breakpoints,t.columnSpacing,(r,o)=>{const s=typeof o=="string"?o:e.spacing?.(o);r(n,{[Ua("column")]:s,"> *":{[Ya("column")]:s}})}),n},iC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Fo(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},aC=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Ua("row")}) var(${Ua("column")})`}}),lC=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},cC=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,s])=>{n(s)&&r.push(`spacing-${o}-${String(s)}`)}),r}return[]},dC=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],uC=e=>["item","zeroMinWidth"].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,Vh=[];function fC(e,t){const n=[];e.item!==void 0&&(delete e.item,n.push("item")),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach(r=>{e[r]!==void 0&&(n.push(r),delete e[r])}),process.env.NODE_ENV!=="production"&&n.forEach(r=>{Vh.includes(r)||(Vh.push(r),console.warn(`MUI Grid: ${uC(r)}
47
+ `))})}const pC=Ys(),hC=Eh("div",{name:"MuiGrid",slot:"Root"});function mC(e){return Oh({props:e,name:"MuiGrid",defaultTheme:pC})}function gC(e={}){const{createStyledComponent:t=hC,useThemeProps:n=mC,useTheme:r=qs,componentName:o="MuiGrid"}=e,s=(d,u)=>{const{container:f,direction:h,spacing:m,wrap:g,size:y}=d,b={root:["root",f&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...dC(h),...lC(y),...f?cC(m,u.breakpoints.keys[0]):[]]};return Ne(b,v=>Ae(o,v),{})};function a(d,u,f=()=>!0){const h={};return d===null||(Array.isArray(d)?d.forEach((m,g)=>{m!==null&&f(m)&&u.keys[g]&&(h[u.keys[g]]=m)}):typeof d=="object"?Object.keys(d).forEach(m=>{const g=d[m];g!=null&&f(g)&&(h[m]=g)}):h[u.keys[0]]=d),h}const l=t(rC,sC,oC,tC,iC,aC,nC),c=I.forwardRef(function(u,f){const h=r(),m=n(u),g=Na(m);fC(g,h.breakpoints);const{className:y,children:b,columns:v=12,container:k=!1,component:S="div",direction:C="row",wrap:w="wrap",size:T={},offset:O={},spacing:M=0,rowSpacing:j=M,columnSpacing:A=M,unstable_level:L=0,...E}=g,N=a(T,h.breakpoints,D=>D!==!1),P=a(O,h.breakpoints),$=u.columns??(L?void 0:v),R=u.spacing??(L?void 0:M),W=u.rowSpacing??u.spacing??(L?void 0:j),V=u.columnSpacing??u.spacing??(L?void 0:A),H={...g,level:L,columns:$,container:k,direction:C,wrap:w,spacing:R,rowSpacing:W,columnSpacing:V,size:N,offset:P},B=s(H,h);return p.jsx(l,{ref:f,as:S,ownerState:H,className:ge(B.root,y),...E,children:I.Children.map(b,D=>I.isValidElement(D)&&Ha(D,["Grid"])&&k&&D.props.container?I.cloneElement(D,{unstable_level:D.props?.unstable_level??L+1}):D)})});return process.env.NODE_ENV!=="production"&&(c.propTypes={children:i.node,className:i.string,columns:i.oneOfType([i.arrayOf(i.number),i.number,i.object]),columnSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),component:i.elementType,container:i.bool,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),offset:i.oneOfType([i.string,i.number,i.arrayOf(i.oneOfType([i.string,i.number])),i.object]),rowSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),size:i.oneOfType([i.string,i.bool,i.number,i.arrayOf(i.oneOfType([i.string,i.bool,i.number])),i.object]),spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),wrap:i.oneOf(["nowrap","wrap-reverse","wrap"])}),c.muiName="Grid",c}const yC=Ys(),bC=Eh("div",{name:"MuiStack",slot:"Root"});function vC(e){return Oh({props:e,name:"MuiStack",defaultTheme:yC})}function xC(e,t){const n=I.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s<n.length-1&&r.push(I.cloneElement(t,{key:`separator-${s}`})),r),[])}const wC=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],SC=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Vn({theme:t},Wc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Pa(t),o=Object.keys(t.breakpoints.values).reduce((c,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(c[d]=!0),c),{}),s=Wc({values:e.direction,base:o}),a=Wc({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((c,d,u)=>{if(!s[c]){const h=d>0?s[u[d-1]]:"column";s[c]=h}}),n=Yt(n,Vn({theme:t},a,(c,d)=>e.useFlexGap?{gap:no(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${wC(d?s[d]:e.direction)}`]:no(r,c)}}))}return n=Ow(t.breakpoints,n),n};function CC(e={}){const{createStyledComponent:t=bC,useThemeProps:n=vC,componentName:r="MuiStack"}=e,o=()=>Ne({root:["root"]},c=>Ae(r,c),{}),s=t(SC),a=I.forwardRef(function(c,d){const u=n(c),f=Na(u),{component:h="div",direction:m="column",spacing:g=0,divider:y,children:b,className:v,useFlexGap:k=!1,...S}=f,C={direction:m,spacing:g,useFlexGap:k},w=o();return p.jsx(s,{as:h,ownerState:C,ref:d,className:ge(w.root,v),...S,children:y?xC(b,y):b})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:i.node,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),divider:i.node,spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])}),a}function Hh(){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:As.white,default:As.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 Uh=Hh();function Yh(){return{text:{primary:As.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:As.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 nd=Yh();function qh(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Fa(e.main,o):t==="dark"&&(e.dark=_a(e.main,s)))}function Gh(e,t,n,r,o){const s=o.light||o,a=o.dark||o*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 TC(e="light"){return e==="dark"?{main:Do[200],light:Do[50],dark:Do[400]}:{main:Do[700],light:Do[400],dark:Do[800]}}function kC(e="light"){return e==="dark"?{main:Io[200],light:Io[50],dark:Io[400]}:{main:Io[500],light:Io[300],dark:Io[700]}}function EC(e="light"){return e==="dark"?{main:jo[500],light:jo[300],dark:jo[700]}:{main:jo[700],light:jo[400],dark:jo[800]}}function OC(e="light"){return e==="dark"?{main:Ao[400],light:Ao[300],dark:Ao[700]}:{main:Ao[700],light:Ao[500],dark:Ao[900]}}function MC(e="light"){return e==="dark"?{main:Ro[400],light:Ro[300],dark:Ro[700]}:{main:Ro[800],light:Ro[500],dark:Ro[900]}}function PC(e="light"){return e==="dark"?{main:Rs[400],light:Rs[300],dark:Rs[700]}:{main:"#ed6c02",light:Rs[500],dark:Rs[900]}}function jC(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function rd(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,a=e.primary||TC(t),l=e.secondary||kC(t),c=e.error||EC(t),d=e.info||OC(t),u=e.success||MC(t),f=e.warning||PC(t);function h(b){if(o)return jC(b);const v=Ph(b,nd.text.primary)>=n?nd.text.primary:Uh.text.primary;if(process.env.NODE_ENV!=="production"){const k=Ph(b,v);k<3&&console.error([`MUI: The contrast ratio of ${k}:1 for ${v} on ${b}`,"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(`
48
+ `))}return v}const m=({color:b,name:v,mainShade:k=500,lightShade:S=300,darkShade:C=700})=>{if(b={...b},!b.main&&b[k]&&(b.main=b[k]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
49
+ The color object needs to have a \`main\` property or a \`${k}\` property.`:Qn(11,v?` (${v})`:"",k));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
50
50
  \`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
51
51
 
52
52
  Did you intend to use one of the following approaches?
@@ -59,7 +59,7 @@ const theme1 = createTheme({ palette: {
59
59
 
60
60
  const theme2 = createTheme({ palette: {
61
61
  primary: { main: green[500] },
62
- } });`:Qn(12,v?` (${v})`:"",JSON.stringify(b.main)));return o?(Gh(o,b,"light",S,r),Gh(o,b,"dark",C,r)):(qh(b,"light",S,r),qh(b,"dark",C,r)),b.contrastText||(b.contrastText=h(b.main)),b};let g;return t==="light"?g=Hh():t==="dark"&&(g=Yh()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Yt({common:{...As},mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:f,name:"warning"}),info:m({color:d,name:"info"}),success:m({color:u,name:"success"}),grey:lx,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r,...g},s)}function IC(e){const t={};return Object.entries(e).forEach(r=>{const[o,s]=r;typeof s=="object"&&(t[o]=`${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 DC(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function AC(e){return Math.round(e*1e5)/1e5}const Kh={textTransform:"uppercase"},Xh='"Roboto", "Helvetica", "Arial", sans-serif';function Zh(e,t){const{fontFamily:n=Xh,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u,...f}=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 c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=r/14,m=u||(b=>`${b/c*h}rem`),g=(b,v,T,S,C)=>({fontFamily:n,fontWeight:b,fontSize:m(v),lineHeight:T,...n===Xh?{letterSpacing:`${AC(S/v)}em`}:{},...C,...d}),y={h1:g(o,96,1.167,-1.5),h2:g(o,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,Kh),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,Kh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yt({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l,...y},f,{clone:!1})}const RC=.2,NC=.14,$C=.12;function kt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${RC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${NC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${$C})`].join(",")}const LC=["none",kt(0,2,1,-1,0,1,1,0,0,1,3,0),kt(0,3,1,-2,0,2,2,0,0,1,5,0),kt(0,3,3,-2,0,3,4,0,0,1,8,0),kt(0,2,4,-1,0,4,5,0,0,1,10,0),kt(0,3,5,-1,0,5,8,0,0,1,14,0),kt(0,3,5,-1,0,6,10,0,0,1,18,0),kt(0,4,5,-2,0,7,10,1,0,2,16,1),kt(0,5,5,-3,0,8,10,1,0,3,14,2),kt(0,5,6,-3,0,9,12,1,0,3,16,2),kt(0,6,6,-3,0,10,14,1,0,4,18,3),kt(0,6,7,-4,0,11,15,1,0,4,20,3),kt(0,7,8,-4,0,12,17,2,0,5,22,4),kt(0,7,8,-4,0,13,19,2,0,5,24,4),kt(0,7,9,-4,0,14,21,2,0,5,26,4),kt(0,8,9,-5,0,15,22,2,0,6,28,5),kt(0,8,10,-5,0,16,24,2,0,6,30,5),kt(0,8,11,-5,0,17,26,2,0,6,32,5),kt(0,9,11,-5,0,18,28,2,0,7,34,6),kt(0,9,12,-6,0,19,29,2,0,7,36,6),kt(0,10,13,-6,0,20,31,3,0,8,38,7),kt(0,10,13,-6,0,21,33,3,0,8,40,7),kt(0,10,14,-6,0,22,35,3,0,8,42,7),kt(0,11,14,-7,0,23,36,3,0,9,44,8),kt(0,11,15,-7,0,24,38,3,0,9,46,8)],BC={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)"},_C={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jh(e){return`${Math.round(e)}ms`}function FC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function WC(e){const t={...BC,...e.easing},n={..._C,...e.duration};return{getAutoHeightDuration:FC,create:(o=["all"],s={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...d}=s;if(process.env.NODE_ENV!=="production"){const u=h=>typeof h=="string",f=h=>!Number.isNaN(parseFloat(h));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!u(c)&&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(`
62
+ } });`:Qn(12,v?` (${v})`:"",JSON.stringify(b.main)));return o?(Gh(o,b,"light",S,r),Gh(o,b,"dark",C,r)):(qh(b,"light",S,r),qh(b,"dark",C,r)),b.contrastText||(b.contrastText=h(b.main)),b};let g;return t==="light"?g=Hh():t==="dark"&&(g=Yh()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Yt({common:{...As},mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:f,name:"warning"}),info:m({color:d,name:"info"}),success:m({color:u,name:"success"}),grey:lx,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r,...g},s)}function IC(e){const t={};return Object.entries(e).forEach(r=>{const[o,s]=r;typeof s=="object"&&(t[o]=`${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 DC(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function AC(e){return Math.round(e*1e5)/1e5}const Kh={textTransform:"uppercase"},Xh='"Roboto", "Helvetica", "Arial", sans-serif';function Zh(e,t){const{fontFamily:n=Xh,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u,...f}=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 c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=r/14,m=u||(b=>`${b/c*h}rem`),g=(b,v,k,S,C)=>({fontFamily:n,fontWeight:b,fontSize:m(v),lineHeight:k,...n===Xh?{letterSpacing:`${AC(S/v)}em`}:{},...C,...d}),y={h1:g(o,96,1.167,-1.5),h2:g(o,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,Kh),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,Kh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yt({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l,...y},f,{clone:!1})}const RC=.2,NC=.14,$C=.12;function kt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${RC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${NC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${$C})`].join(",")}const LC=["none",kt(0,2,1,-1,0,1,1,0,0,1,3,0),kt(0,3,1,-2,0,2,2,0,0,1,5,0),kt(0,3,3,-2,0,3,4,0,0,1,8,0),kt(0,2,4,-1,0,4,5,0,0,1,10,0),kt(0,3,5,-1,0,5,8,0,0,1,14,0),kt(0,3,5,-1,0,6,10,0,0,1,18,0),kt(0,4,5,-2,0,7,10,1,0,2,16,1),kt(0,5,5,-3,0,8,10,1,0,3,14,2),kt(0,5,6,-3,0,9,12,1,0,3,16,2),kt(0,6,6,-3,0,10,14,1,0,4,18,3),kt(0,6,7,-4,0,11,15,1,0,4,20,3),kt(0,7,8,-4,0,12,17,2,0,5,22,4),kt(0,7,8,-4,0,13,19,2,0,5,24,4),kt(0,7,9,-4,0,14,21,2,0,5,26,4),kt(0,8,9,-5,0,15,22,2,0,6,28,5),kt(0,8,10,-5,0,16,24,2,0,6,30,5),kt(0,8,11,-5,0,17,26,2,0,6,32,5),kt(0,9,11,-5,0,18,28,2,0,7,34,6),kt(0,9,12,-6,0,19,29,2,0,7,36,6),kt(0,10,13,-6,0,20,31,3,0,8,38,7),kt(0,10,13,-6,0,21,33,3,0,8,40,7),kt(0,10,14,-6,0,22,35,3,0,8,42,7),kt(0,11,14,-7,0,23,36,3,0,9,44,8),kt(0,11,15,-7,0,24,38,3,0,9,46,8)],BC={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)"},_C={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jh(e){return`${Math.round(e)}ms`}function FC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function WC(e){const t={...BC,...e.easing},n={..._C,...e.duration};return{getAutoHeightDuration:FC,create:(o=["all"],s={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...d}=s;if(process.env.NODE_ENV!=="production"){const u=h=>typeof h=="string",f=h=>!Number.isNaN(parseFloat(h));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!u(c)&&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(`
63
63
  `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:Jh(a)} ${l} ${typeof c=="string"?c:Jh(c)}`).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 VC(e){return or(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Qh(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let s=0;s<o.length;s++){const[a,l]=o[s];!VC(l)||a.startsWith("unstable_")?delete r[a]:or(l)&&(r[a]={...l},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
64
64
 
65
65
  const theme = ${JSON.stringify(t,null,2)};
@@ -67,11 +67,11 @@ const theme = ${JSON.stringify(t,null,2)};
67
67
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
68
68
  theme.transitions = createTransitions(theme.transitions || {});
69
69
 
70
- export default theme;`}function em(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const HC=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 UC(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})`:Ba(t,HC(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${em(n)})`:Fa(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${em(n)})`:_a(t,n)}})}function od(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:s={},transitions:a={},typography:l={},shape:c,colorSpace:d,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Qn(20));const f=rd({...s,colorSpace:d}),h=Ys(e);let m=Yt(h,{mixins:DC(h.breakpoints,r),palette:f,shadows:LC.slice(),typography:Zh(f,l),transitions:WC(a),zIndex:{...zC}});if(m=Yt(m,u),m=t.reduce((g,y)=>Yt(g,y),m),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(b,v)=>{let T;for(T in b){const S=b[T];if(g.includes(T)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const C=Ae("",T);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
71
- `))}b[T]={}}}};Object.keys(m.components).forEach(b=>{const v=m.components[b].styleOverrides;v&&b.startsWith("Mui")&&y(v,b)})}return m.unstable_sxConfig={...Us,...u?.unstable_sxConfig},m.unstable_sx=function(y){return Fr({sx:y,theme:this})},m.toRuntimeSource=Qh,UC(m),m}function sd(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 YC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=sd(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function tm(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function nm(e){return e==="dark"?YC:[]}function qC(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,a=rd({...t,colorSpace:o});return{palette:a,opacity:{...tm(a.mode),...n},overlays:r||nm(a.mode),...s}}function GC(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 KC=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],XC=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return KC(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:s?{[s.replace("%s",t)]:a,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function ZC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Z(e,t,n){!e[t]&&n&&(e[t]=n)}function Zs(e){return typeof e!="string"||!e.startsWith("hsl")?e:Mh(e)}function Tr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ks(Zs(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().
72
- 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 JC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const sr=e=>{try{return e()}catch{}},QC=(e="mui")=>KS(e);function id(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=qC({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...l}=od({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...tm(s),...n?.opacity},overlays:n?.overlays||nm(s)},l}function eT(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=GC,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...u}=e,f=Object.keys(n)[0],h=r||(n.light&&f!=="light"?"light":f),m=QC(s),{[h]:g,light:y,dark:b,...v}=n,T={...v};let S=g;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:Qn(21,h));let C;a&&(C="oklch");const w=id(C,T,S,u,h);y&&!T.light&&id(C,T,y,void 0,"light"),b&&!T.dark&&id(C,T,b,void 0,"dark");let k={defaultColorScheme:h,...w,cssVarPrefix:s,colorSchemeSelector:c,rootSelector:d,getCssVar:m,colorSchemes:T,font:{...IC(w.typography),...w.font},spacing:JC(u.spacing)};Object.keys(k.colorSchemes).forEach(L=>{const E=k.colorSchemes[L].palette,R=N=>{const $=N.split("-"),F=$[1],H=$[2];return m(N,E[F][H])};E.mode==="light"&&(Z(E.common,"background","#fff"),Z(E.common,"onBackground","#000")),E.mode==="dark"&&(Z(E.common,"background","#000"),Z(E.common,"onBackground","#fff"));function M(N,$,F){if(C){let H;return N===oo&&(H=`transparent ${((1-F)*100).toFixed(0)}%`),N===ht&&(H=`#000 ${(F*100).toFixed(0)}%`),N===mt&&(H=`#fff ${(F*100).toFixed(0)}%`),`color-mix(in ${C}, ${$}, ${H})`}return N($,F)}if(ZC(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){Z(E.Alert,"errorColor",M(ht,E.error.light,.6)),Z(E.Alert,"infoColor",M(ht,E.info.light,.6)),Z(E.Alert,"successColor",M(ht,E.success.light,.6)),Z(E.Alert,"warningColor",M(ht,E.warning.light,.6)),Z(E.Alert,"errorFilledBg",R("palette-error-main")),Z(E.Alert,"infoFilledBg",R("palette-info-main")),Z(E.Alert,"successFilledBg",R("palette-success-main")),Z(E.Alert,"warningFilledBg",R("palette-warning-main")),Z(E.Alert,"errorFilledColor",sr(()=>E.getContrastText(E.error.main))),Z(E.Alert,"infoFilledColor",sr(()=>E.getContrastText(E.info.main))),Z(E.Alert,"successFilledColor",sr(()=>E.getContrastText(E.success.main))),Z(E.Alert,"warningFilledColor",sr(()=>E.getContrastText(E.warning.main))),Z(E.Alert,"errorStandardBg",M(mt,E.error.light,.9)),Z(E.Alert,"infoStandardBg",M(mt,E.info.light,.9)),Z(E.Alert,"successStandardBg",M(mt,E.success.light,.9)),Z(E.Alert,"warningStandardBg",M(mt,E.warning.light,.9)),Z(E.Alert,"errorIconColor",R("palette-error-main")),Z(E.Alert,"infoIconColor",R("palette-info-main")),Z(E.Alert,"successIconColor",R("palette-success-main")),Z(E.Alert,"warningIconColor",R("palette-warning-main")),Z(E.AppBar,"defaultBg",R("palette-grey-100")),Z(E.Avatar,"defaultBg",R("palette-grey-400")),Z(E.Button,"inheritContainedBg",R("palette-grey-300")),Z(E.Button,"inheritContainedHoverBg",R("palette-grey-A100")),Z(E.Chip,"defaultBorder",R("palette-grey-400")),Z(E.Chip,"defaultAvatarColor",R("palette-grey-700")),Z(E.Chip,"defaultIconColor",R("palette-grey-700")),Z(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Z(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Z(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Z(E.LinearProgress,"primaryBg",M(mt,E.primary.main,.62)),Z(E.LinearProgress,"secondaryBg",M(mt,E.secondary.main,.62)),Z(E.LinearProgress,"errorBg",M(mt,E.error.main,.62)),Z(E.LinearProgress,"infoBg",M(mt,E.info.main,.62)),Z(E.LinearProgress,"successBg",M(mt,E.success.main,.62)),Z(E.LinearProgress,"warningBg",M(mt,E.warning.main,.62)),Z(E.Skeleton,"bg",C?M(oo,E.text.primary,.11):`rgba(${R("palette-text-primaryChannel")} / 0.11)`),Z(E.Slider,"primaryTrack",M(mt,E.primary.main,.62)),Z(E.Slider,"secondaryTrack",M(mt,E.secondary.main,.62)),Z(E.Slider,"errorTrack",M(mt,E.error.main,.62)),Z(E.Slider,"infoTrack",M(mt,E.info.main,.62)),Z(E.Slider,"successTrack",M(mt,E.success.main,.62)),Z(E.Slider,"warningTrack",M(mt,E.warning.main,.62));const N=C?M(ht,E.background.default,.6825):Wa(E.background.default,.8);Z(E.SnackbarContent,"bg",N),Z(E.SnackbarContent,"color",sr(()=>C?nd.text.primary:E.getContrastText(N))),Z(E.SpeedDialAction,"fabHoverBg",Wa(E.background.paper,.15)),Z(E.StepConnector,"border",R("palette-grey-400")),Z(E.StepContent,"border",R("palette-grey-400")),Z(E.Switch,"defaultColor",R("palette-common-white")),Z(E.Switch,"defaultDisabledColor",R("palette-grey-100")),Z(E.Switch,"primaryDisabledColor",M(mt,E.primary.main,.62)),Z(E.Switch,"secondaryDisabledColor",M(mt,E.secondary.main,.62)),Z(E.Switch,"errorDisabledColor",M(mt,E.error.main,.62)),Z(E.Switch,"infoDisabledColor",M(mt,E.info.main,.62)),Z(E.Switch,"successDisabledColor",M(mt,E.success.main,.62)),Z(E.Switch,"warningDisabledColor",M(mt,E.warning.main,.62)),Z(E.TableCell,"border",M(mt,M(oo,E.divider,1),.88)),Z(E.Tooltip,"bg",M(oo,E.grey[700],.92))}if(E.mode==="dark"){Z(E.Alert,"errorColor",M(mt,E.error.light,.6)),Z(E.Alert,"infoColor",M(mt,E.info.light,.6)),Z(E.Alert,"successColor",M(mt,E.success.light,.6)),Z(E.Alert,"warningColor",M(mt,E.warning.light,.6)),Z(E.Alert,"errorFilledBg",R("palette-error-dark")),Z(E.Alert,"infoFilledBg",R("palette-info-dark")),Z(E.Alert,"successFilledBg",R("palette-success-dark")),Z(E.Alert,"warningFilledBg",R("palette-warning-dark")),Z(E.Alert,"errorFilledColor",sr(()=>E.getContrastText(E.error.dark))),Z(E.Alert,"infoFilledColor",sr(()=>E.getContrastText(E.info.dark))),Z(E.Alert,"successFilledColor",sr(()=>E.getContrastText(E.success.dark))),Z(E.Alert,"warningFilledColor",sr(()=>E.getContrastText(E.warning.dark))),Z(E.Alert,"errorStandardBg",M(ht,E.error.light,.9)),Z(E.Alert,"infoStandardBg",M(ht,E.info.light,.9)),Z(E.Alert,"successStandardBg",M(ht,E.success.light,.9)),Z(E.Alert,"warningStandardBg",M(ht,E.warning.light,.9)),Z(E.Alert,"errorIconColor",R("palette-error-main")),Z(E.Alert,"infoIconColor",R("palette-info-main")),Z(E.Alert,"successIconColor",R("palette-success-main")),Z(E.Alert,"warningIconColor",R("palette-warning-main")),Z(E.AppBar,"defaultBg",R("palette-grey-900")),Z(E.AppBar,"darkBg",R("palette-background-paper")),Z(E.AppBar,"darkColor",R("palette-text-primary")),Z(E.Avatar,"defaultBg",R("palette-grey-600")),Z(E.Button,"inheritContainedBg",R("palette-grey-800")),Z(E.Button,"inheritContainedHoverBg",R("palette-grey-700")),Z(E.Chip,"defaultBorder",R("palette-grey-700")),Z(E.Chip,"defaultAvatarColor",R("palette-grey-300")),Z(E.Chip,"defaultIconColor",R("palette-grey-300")),Z(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Z(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Z(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Z(E.LinearProgress,"primaryBg",M(ht,E.primary.main,.5)),Z(E.LinearProgress,"secondaryBg",M(ht,E.secondary.main,.5)),Z(E.LinearProgress,"errorBg",M(ht,E.error.main,.5)),Z(E.LinearProgress,"infoBg",M(ht,E.info.main,.5)),Z(E.LinearProgress,"successBg",M(ht,E.success.main,.5)),Z(E.LinearProgress,"warningBg",M(ht,E.warning.main,.5)),Z(E.Skeleton,"bg",C?M(oo,E.text.primary,.13):`rgba(${R("palette-text-primaryChannel")} / 0.13)`),Z(E.Slider,"primaryTrack",M(ht,E.primary.main,.5)),Z(E.Slider,"secondaryTrack",M(ht,E.secondary.main,.5)),Z(E.Slider,"errorTrack",M(ht,E.error.main,.5)),Z(E.Slider,"infoTrack",M(ht,E.info.main,.5)),Z(E.Slider,"successTrack",M(ht,E.success.main,.5)),Z(E.Slider,"warningTrack",M(ht,E.warning.main,.5));const N=C?M(mt,E.background.default,.985):Wa(E.background.default,.98);Z(E.SnackbarContent,"bg",N),Z(E.SnackbarContent,"color",sr(()=>C?Uh.text.primary:E.getContrastText(N))),Z(E.SpeedDialAction,"fabHoverBg",Wa(E.background.paper,.15)),Z(E.StepConnector,"border",R("palette-grey-600")),Z(E.StepContent,"border",R("palette-grey-600")),Z(E.Switch,"defaultColor",R("palette-grey-300")),Z(E.Switch,"defaultDisabledColor",R("palette-grey-600")),Z(E.Switch,"primaryDisabledColor",M(ht,E.primary.main,.55)),Z(E.Switch,"secondaryDisabledColor",M(ht,E.secondary.main,.55)),Z(E.Switch,"errorDisabledColor",M(ht,E.error.main,.55)),Z(E.Switch,"infoDisabledColor",M(ht,E.info.main,.55)),Z(E.Switch,"successDisabledColor",M(ht,E.success.main,.55)),Z(E.Switch,"warningDisabledColor",M(ht,E.warning.main,.55)),Z(E.TableCell,"border",M(ht,M(oo,E.divider,1),.68)),Z(E.Tooltip,"bg",M(oo,E.grey[700],.92))}Tr(E.background,"default"),Tr(E.background,"paper"),Tr(E.common,"background"),Tr(E.common,"onBackground"),Tr(E,"divider"),Object.keys(E).forEach(N=>{const $=E[N];N!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&Z(E[N],"mainChannel",Ks(Zs($.main))),$.light&&Z(E[N],"lightChannel",Ks(Zs($.light))),$.dark&&Z(E[N],"darkChannel",Ks(Zs($.dark))),$.contrastText&&Z(E[N],"contrastTextChannel",Ks(Zs($.contrastText))),N==="text"&&(Tr(E[N],"primary"),Tr(E[N],"secondary")),N==="action"&&($.active&&Tr(E[N],"active"),$.selected&&Tr(E[N],"selected")))})}),k=t.reduce((L,E)=>Yt(L,E),k);const O={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:XC(k),enableContrastVars:a},{vars:P,generateThemeVars:j,generateStyleSheets:A}=JS(k,O);return k.vars=P,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([L,E])=>{k[L]=E}),k.generateThemeVars=j,k.generateStyleSheets=A,k.generateSpacing=function(){return gh(u.spacing,Pa(this))},k.getColorSchemeSelector=QS(c),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=l,k.unstable_sxConfig={...Us,...u?.unstable_sxConfig},k.unstable_sx=function(E){return Fr({sx:E,theme:this})},k.toRuntimeSource=Qh,k}function rm(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:rd({...n===!0?{}:n.palette,mode:t})})}function Js(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,l=s||"light",c=o?.[l],d={...o,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return od(e,...t);let u=n;"palette"in e||d[l]&&(d[l]!==!0?u=d[l].palette:l==="dark"&&(u={mode:"dark"}));const f=od({...e,palette:u},...t);return f.defaultColorScheme=l,f.colorSchemes=d,f.palette.mode==="light"&&(f.colorSchemes.light={...d.light!==!0&&d.light,palette:f.palette},rm(f,"dark",d.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:f.palette},rm(f,"light",d.light)),f}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),eT({...a,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}function tT(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function nT(e){return parseFloat(e)}const ad=Js();function gt(){const e=qs(ad);return process.env.NODE_ENV!=="production"&&I.useDebugValue(e),e[er]||e}function om(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sn=e=>om(e)&&e!=="classes",te=Th({themeId:er,defaultTheme:ad,rootShouldForwardProp:Sn});function rT({theme:e,...t}){const n=er in e?e[er]:void 0;return p.jsx(Xs,{...t,themeId:n?er:void 0,theme:n||e})}const qa={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};process.env.NODE_ENV!=="production"&&(i.string,i.string,i.string,i.string,i.string,i.oneOf(["dark","light","system"]),i.string,i.string);const{CssVarsProvider:oT}=GS({themeId:er,theme:()=>Js({cssVariables:!0}),colorSchemeStorageKey:qa.colorSchemeStorageKey,modeStorageKey:qa.modeStorageKey,defaultColorScheme:{light:qa.defaultLightColorScheme,dark:qa.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Zh(e.palette,e.typography)};return t.unstable_sx=function(r){return Fr({sx:r,theme:this})},t}}),sT=oT;function iT({theme:e,...t}){const n=I.useMemo(()=>{if(typeof e=="function")return e;const r=er in e?e[er]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?p.jsx(rT,{theme:n,...t}):p.jsx(sT,{theme:e,...t})}function sm(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function im(e){return p.jsx(Uc,{...e,defaultTheme:ad,themeId:er})}process.env.NODE_ENV!=="production"&&(im.propTypes={styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool])});function aT(e){return function(n){return p.jsx(im,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function lT(){return Na}const Le=FS;process.env.NODE_ENV!=="production"&&(i.node,i.object.isRequired);function Be(e){return LS(e)}function cT(e){return Ae("MuiSvgIcon",e)}Re("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dT=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${J(t)}`,`fontSize${J(n)}`]};return Ne(o,cT,r)},uT=te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${J(n.color)}`],t[`fontSize${J(n.fontSize)}`]]}})(Le(({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}}]}))),Ga=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:h="0 0 24 24",...m}=r,g=I.isValidElement(o)&&o.type==="svg",y={...r,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:g},b={};u||(b.viewBox=h);const v=dT(y);return p.jsxs(uT,{as:l,className:ge(v.root,s),focusable:"false",color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...b,...m,...g&&o.props,ownerState:y,children:[g?o.props.children:o,f?p.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(Ga.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,fontSize:i.oneOfType([i.oneOf(["inherit","large","medium","small"]),i.string]),htmlColor:i.string,inheritViewBox:i.bool,shapeRendering:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),titleAccess:i.string,viewBox:i.string}),Ga.muiName="SvgIcon";function Cn(e,t){function n(r,o){return p.jsx(Ga,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ga.muiName,I.memo(I.forwardRef(n))}function Qs(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function pn(e){return e&&e.ownerDocument||document}function Hn(e){return pn(e).defaultView||window}function fT(e,t){if(process.env.NODE_ENV==="production")return()=>()=>null;const n=t?{...t.propTypes}:null;return o=>(s,a,l,c,d,...u)=>{const f=d||a,h=n?.[f];if(h){const m=h(s,a,l,c,d,...u);if(m)return m}return typeof s[a]<"u"&&!s[o]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function am(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function lm(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const s=o||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function ei(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:s}=I.useRef(t!==void 0),[a,l]=I.useState(n),c=s?t:a;if(process.env.NODE_ENV!=="production"){I.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${o} 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(`
70
+ export default theme;`}function em(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const HC=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 UC(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})`:Ba(t,HC(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${em(n)})`:Fa(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${em(n)})`:_a(t,n)}})}function od(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:s={},transitions:a={},typography:l={},shape:c,colorSpace:d,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Qn(20));const f=rd({...s,colorSpace:d}),h=Ys(e);let m=Yt(h,{mixins:DC(h.breakpoints,r),palette:f,shadows:LC.slice(),typography:Zh(f,l),transitions:WC(a),zIndex:{...zC}});if(m=Yt(m,u),m=t.reduce((g,y)=>Yt(g,y),m),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(b,v)=>{let k;for(k in b){const S=b[k];if(g.includes(k)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const C=Ae("",k);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${k}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
71
+ `))}b[k]={}}}};Object.keys(m.components).forEach(b=>{const v=m.components[b].styleOverrides;v&&b.startsWith("Mui")&&y(v,b)})}return m.unstable_sxConfig={...Us,...u?.unstable_sxConfig},m.unstable_sx=function(y){return Fr({sx:y,theme:this})},m.toRuntimeSource=Qh,UC(m),m}function sd(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 YC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=sd(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function tm(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function nm(e){return e==="dark"?YC:[]}function qC(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,a=rd({...t,colorSpace:o});return{palette:a,opacity:{...tm(a.mode),...n},overlays:r||nm(a.mode),...s}}function GC(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 KC=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],XC=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return KC(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:s?{[s.replace("%s",t)]:a,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function ZC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Z(e,t,n){!e[t]&&n&&(e[t]=n)}function Zs(e){return typeof e!="string"||!e.startsWith("hsl")?e:Mh(e)}function Tr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ks(Zs(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().
72
+ 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 JC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const sr=e=>{try{return e()}catch{}},QC=(e="mui")=>KS(e);function id(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=qC({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...l}=od({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...tm(s),...n?.opacity},overlays:n?.overlays||nm(s)},l}function eT(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=GC,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...u}=e,f=Object.keys(n)[0],h=r||(n.light&&f!=="light"?"light":f),m=QC(s),{[h]:g,light:y,dark:b,...v}=n,k={...v};let S=g;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:Qn(21,h));let C;a&&(C="oklch");const w=id(C,k,S,u,h);y&&!k.light&&id(C,k,y,void 0,"light"),b&&!k.dark&&id(C,k,b,void 0,"dark");let T={defaultColorScheme:h,...w,cssVarPrefix:s,colorSchemeSelector:c,rootSelector:d,getCssVar:m,colorSchemes:k,font:{...IC(w.typography),...w.font},spacing:JC(u.spacing)};Object.keys(T.colorSchemes).forEach(L=>{const E=T.colorSchemes[L].palette,N=$=>{const R=$.split("-"),W=R[1],V=R[2];return m($,E[W][V])};E.mode==="light"&&(Z(E.common,"background","#fff"),Z(E.common,"onBackground","#000")),E.mode==="dark"&&(Z(E.common,"background","#000"),Z(E.common,"onBackground","#fff"));function P($,R,W){if(C){let V;return $===oo&&(V=`transparent ${((1-W)*100).toFixed(0)}%`),$===ht&&(V=`#000 ${(W*100).toFixed(0)}%`),$===mt&&(V=`#fff ${(W*100).toFixed(0)}%`),`color-mix(in ${C}, ${R}, ${V})`}return $(R,W)}if(ZC(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){Z(E.Alert,"errorColor",P(ht,E.error.light,.6)),Z(E.Alert,"infoColor",P(ht,E.info.light,.6)),Z(E.Alert,"successColor",P(ht,E.success.light,.6)),Z(E.Alert,"warningColor",P(ht,E.warning.light,.6)),Z(E.Alert,"errorFilledBg",N("palette-error-main")),Z(E.Alert,"infoFilledBg",N("palette-info-main")),Z(E.Alert,"successFilledBg",N("palette-success-main")),Z(E.Alert,"warningFilledBg",N("palette-warning-main")),Z(E.Alert,"errorFilledColor",sr(()=>E.getContrastText(E.error.main))),Z(E.Alert,"infoFilledColor",sr(()=>E.getContrastText(E.info.main))),Z(E.Alert,"successFilledColor",sr(()=>E.getContrastText(E.success.main))),Z(E.Alert,"warningFilledColor",sr(()=>E.getContrastText(E.warning.main))),Z(E.Alert,"errorStandardBg",P(mt,E.error.light,.9)),Z(E.Alert,"infoStandardBg",P(mt,E.info.light,.9)),Z(E.Alert,"successStandardBg",P(mt,E.success.light,.9)),Z(E.Alert,"warningStandardBg",P(mt,E.warning.light,.9)),Z(E.Alert,"errorIconColor",N("palette-error-main")),Z(E.Alert,"infoIconColor",N("palette-info-main")),Z(E.Alert,"successIconColor",N("palette-success-main")),Z(E.Alert,"warningIconColor",N("palette-warning-main")),Z(E.AppBar,"defaultBg",N("palette-grey-100")),Z(E.Avatar,"defaultBg",N("palette-grey-400")),Z(E.Button,"inheritContainedBg",N("palette-grey-300")),Z(E.Button,"inheritContainedHoverBg",N("palette-grey-A100")),Z(E.Chip,"defaultBorder",N("palette-grey-400")),Z(E.Chip,"defaultAvatarColor",N("palette-grey-700")),Z(E.Chip,"defaultIconColor",N("palette-grey-700")),Z(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Z(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Z(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Z(E.LinearProgress,"primaryBg",P(mt,E.primary.main,.62)),Z(E.LinearProgress,"secondaryBg",P(mt,E.secondary.main,.62)),Z(E.LinearProgress,"errorBg",P(mt,E.error.main,.62)),Z(E.LinearProgress,"infoBg",P(mt,E.info.main,.62)),Z(E.LinearProgress,"successBg",P(mt,E.success.main,.62)),Z(E.LinearProgress,"warningBg",P(mt,E.warning.main,.62)),Z(E.Skeleton,"bg",C?P(oo,E.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),Z(E.Slider,"primaryTrack",P(mt,E.primary.main,.62)),Z(E.Slider,"secondaryTrack",P(mt,E.secondary.main,.62)),Z(E.Slider,"errorTrack",P(mt,E.error.main,.62)),Z(E.Slider,"infoTrack",P(mt,E.info.main,.62)),Z(E.Slider,"successTrack",P(mt,E.success.main,.62)),Z(E.Slider,"warningTrack",P(mt,E.warning.main,.62));const $=C?P(ht,E.background.default,.6825):Wa(E.background.default,.8);Z(E.SnackbarContent,"bg",$),Z(E.SnackbarContent,"color",sr(()=>C?nd.text.primary:E.getContrastText($))),Z(E.SpeedDialAction,"fabHoverBg",Wa(E.background.paper,.15)),Z(E.StepConnector,"border",N("palette-grey-400")),Z(E.StepContent,"border",N("palette-grey-400")),Z(E.Switch,"defaultColor",N("palette-common-white")),Z(E.Switch,"defaultDisabledColor",N("palette-grey-100")),Z(E.Switch,"primaryDisabledColor",P(mt,E.primary.main,.62)),Z(E.Switch,"secondaryDisabledColor",P(mt,E.secondary.main,.62)),Z(E.Switch,"errorDisabledColor",P(mt,E.error.main,.62)),Z(E.Switch,"infoDisabledColor",P(mt,E.info.main,.62)),Z(E.Switch,"successDisabledColor",P(mt,E.success.main,.62)),Z(E.Switch,"warningDisabledColor",P(mt,E.warning.main,.62)),Z(E.TableCell,"border",P(mt,P(oo,E.divider,1),.88)),Z(E.Tooltip,"bg",P(oo,E.grey[700],.92))}if(E.mode==="dark"){Z(E.Alert,"errorColor",P(mt,E.error.light,.6)),Z(E.Alert,"infoColor",P(mt,E.info.light,.6)),Z(E.Alert,"successColor",P(mt,E.success.light,.6)),Z(E.Alert,"warningColor",P(mt,E.warning.light,.6)),Z(E.Alert,"errorFilledBg",N("palette-error-dark")),Z(E.Alert,"infoFilledBg",N("palette-info-dark")),Z(E.Alert,"successFilledBg",N("palette-success-dark")),Z(E.Alert,"warningFilledBg",N("palette-warning-dark")),Z(E.Alert,"errorFilledColor",sr(()=>E.getContrastText(E.error.dark))),Z(E.Alert,"infoFilledColor",sr(()=>E.getContrastText(E.info.dark))),Z(E.Alert,"successFilledColor",sr(()=>E.getContrastText(E.success.dark))),Z(E.Alert,"warningFilledColor",sr(()=>E.getContrastText(E.warning.dark))),Z(E.Alert,"errorStandardBg",P(ht,E.error.light,.9)),Z(E.Alert,"infoStandardBg",P(ht,E.info.light,.9)),Z(E.Alert,"successStandardBg",P(ht,E.success.light,.9)),Z(E.Alert,"warningStandardBg",P(ht,E.warning.light,.9)),Z(E.Alert,"errorIconColor",N("palette-error-main")),Z(E.Alert,"infoIconColor",N("palette-info-main")),Z(E.Alert,"successIconColor",N("palette-success-main")),Z(E.Alert,"warningIconColor",N("palette-warning-main")),Z(E.AppBar,"defaultBg",N("palette-grey-900")),Z(E.AppBar,"darkBg",N("palette-background-paper")),Z(E.AppBar,"darkColor",N("palette-text-primary")),Z(E.Avatar,"defaultBg",N("palette-grey-600")),Z(E.Button,"inheritContainedBg",N("palette-grey-800")),Z(E.Button,"inheritContainedHoverBg",N("palette-grey-700")),Z(E.Chip,"defaultBorder",N("palette-grey-700")),Z(E.Chip,"defaultAvatarColor",N("palette-grey-300")),Z(E.Chip,"defaultIconColor",N("palette-grey-300")),Z(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Z(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Z(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Z(E.LinearProgress,"primaryBg",P(ht,E.primary.main,.5)),Z(E.LinearProgress,"secondaryBg",P(ht,E.secondary.main,.5)),Z(E.LinearProgress,"errorBg",P(ht,E.error.main,.5)),Z(E.LinearProgress,"infoBg",P(ht,E.info.main,.5)),Z(E.LinearProgress,"successBg",P(ht,E.success.main,.5)),Z(E.LinearProgress,"warningBg",P(ht,E.warning.main,.5)),Z(E.Skeleton,"bg",C?P(oo,E.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),Z(E.Slider,"primaryTrack",P(ht,E.primary.main,.5)),Z(E.Slider,"secondaryTrack",P(ht,E.secondary.main,.5)),Z(E.Slider,"errorTrack",P(ht,E.error.main,.5)),Z(E.Slider,"infoTrack",P(ht,E.info.main,.5)),Z(E.Slider,"successTrack",P(ht,E.success.main,.5)),Z(E.Slider,"warningTrack",P(ht,E.warning.main,.5));const $=C?P(mt,E.background.default,.985):Wa(E.background.default,.98);Z(E.SnackbarContent,"bg",$),Z(E.SnackbarContent,"color",sr(()=>C?Uh.text.primary:E.getContrastText($))),Z(E.SpeedDialAction,"fabHoverBg",Wa(E.background.paper,.15)),Z(E.StepConnector,"border",N("palette-grey-600")),Z(E.StepContent,"border",N("palette-grey-600")),Z(E.Switch,"defaultColor",N("palette-grey-300")),Z(E.Switch,"defaultDisabledColor",N("palette-grey-600")),Z(E.Switch,"primaryDisabledColor",P(ht,E.primary.main,.55)),Z(E.Switch,"secondaryDisabledColor",P(ht,E.secondary.main,.55)),Z(E.Switch,"errorDisabledColor",P(ht,E.error.main,.55)),Z(E.Switch,"infoDisabledColor",P(ht,E.info.main,.55)),Z(E.Switch,"successDisabledColor",P(ht,E.success.main,.55)),Z(E.Switch,"warningDisabledColor",P(ht,E.warning.main,.55)),Z(E.TableCell,"border",P(ht,P(oo,E.divider,1),.68)),Z(E.Tooltip,"bg",P(oo,E.grey[700],.92))}Tr(E.background,"default"),Tr(E.background,"paper"),Tr(E.common,"background"),Tr(E.common,"onBackground"),Tr(E,"divider"),Object.keys(E).forEach($=>{const R=E[$];$!=="tonalOffset"&&R&&typeof R=="object"&&(R.main&&Z(E[$],"mainChannel",Ks(Zs(R.main))),R.light&&Z(E[$],"lightChannel",Ks(Zs(R.light))),R.dark&&Z(E[$],"darkChannel",Ks(Zs(R.dark))),R.contrastText&&Z(E[$],"contrastTextChannel",Ks(Zs(R.contrastText))),$==="text"&&(Tr(E[$],"primary"),Tr(E[$],"secondary")),$==="action"&&(R.active&&Tr(E[$],"active"),R.selected&&Tr(E[$],"selected")))})}),T=t.reduce((L,E)=>Yt(L,E),T);const O={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:XC(T),enableContrastVars:a},{vars:M,generateThemeVars:j,generateStyleSheets:A}=JS(T,O);return T.vars=M,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([L,E])=>{T[L]=E}),T.generateThemeVars=j,T.generateStyleSheets=A,T.generateSpacing=function(){return gh(u.spacing,Pa(this))},T.getColorSchemeSelector=QS(c),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=l,T.unstable_sxConfig={...Us,...u?.unstable_sxConfig},T.unstable_sx=function(E){return Fr({sx:E,theme:this})},T.toRuntimeSource=Qh,T}function rm(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:rd({...n===!0?{}:n.palette,mode:t})})}function Js(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,l=s||"light",c=o?.[l],d={...o,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return od(e,...t);let u=n;"palette"in e||d[l]&&(d[l]!==!0?u=d[l].palette:l==="dark"&&(u={mode:"dark"}));const f=od({...e,palette:u},...t);return f.defaultColorScheme=l,f.colorSchemes=d,f.palette.mode==="light"&&(f.colorSchemes.light={...d.light!==!0&&d.light,palette:f.palette},rm(f,"dark",d.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:f.palette},rm(f,"light",d.light)),f}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),eT({...a,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}function tT(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function nT(e){return parseFloat(e)}const ad=Js();function gt(){const e=qs(ad);return process.env.NODE_ENV!=="production"&&I.useDebugValue(e),e[er]||e}function om(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sn=e=>om(e)&&e!=="classes",te=Th({themeId:er,defaultTheme:ad,rootShouldForwardProp:Sn});function rT({theme:e,...t}){const n=er in e?e[er]:void 0;return p.jsx(Xs,{...t,themeId:n?er:void 0,theme:n||e})}const qa={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};process.env.NODE_ENV!=="production"&&(i.string,i.string,i.string,i.string,i.string,i.oneOf(["dark","light","system"]),i.string,i.string);const{CssVarsProvider:oT}=GS({themeId:er,theme:()=>Js({cssVariables:!0}),colorSchemeStorageKey:qa.colorSchemeStorageKey,modeStorageKey:qa.modeStorageKey,defaultColorScheme:{light:qa.defaultLightColorScheme,dark:qa.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Zh(e.palette,e.typography)};return t.unstable_sx=function(r){return Fr({sx:r,theme:this})},t}}),sT=oT;function iT({theme:e,...t}){const n=I.useMemo(()=>{if(typeof e=="function")return e;const r=er in e?e[er]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?p.jsx(rT,{theme:n,...t}):p.jsx(sT,{theme:e,...t})}function sm(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function im(e){return p.jsx(Uc,{...e,defaultTheme:ad,themeId:er})}process.env.NODE_ENV!=="production"&&(im.propTypes={styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool])});function aT(e){return function(n){return p.jsx(im,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function lT(){return Na}const Le=FS;process.env.NODE_ENV!=="production"&&(i.node,i.object.isRequired);function Be(e){return LS(e)}function cT(e){return Ae("MuiSvgIcon",e)}Re("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dT=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${J(t)}`,`fontSize${J(n)}`]};return Ne(o,cT,r)},uT=te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${J(n.color)}`],t[`fontSize${J(n.fontSize)}`]]}})(Le(({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}}]}))),Ga=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:h="0 0 24 24",...m}=r,g=I.isValidElement(o)&&o.type==="svg",y={...r,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:g},b={};u||(b.viewBox=h);const v=dT(y);return p.jsxs(uT,{as:l,className:ge(v.root,s),focusable:"false",color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...b,...m,...g&&o.props,ownerState:y,children:[g?o.props.children:o,f?p.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(Ga.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,fontSize:i.oneOfType([i.oneOf(["inherit","large","medium","small"]),i.string]),htmlColor:i.string,inheritViewBox:i.bool,shapeRendering:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),titleAccess:i.string,viewBox:i.string}),Ga.muiName="SvgIcon";function Cn(e,t){function n(r,o){return p.jsx(Ga,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ga.muiName,I.memo(I.forwardRef(n))}function Qs(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function pn(e){return e&&e.ownerDocument||document}function Hn(e){return pn(e).defaultView||window}function fT(e,t){if(process.env.NODE_ENV==="production")return()=>()=>null;const n=t?{...t.propTypes}:null;return o=>(s,a,l,c,d,...u)=>{const f=d||a,h=n?.[f];if(h){const m=h(s,a,l,c,d,...u);if(m)return m}return typeof s[a]<"u"&&!s[o]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function am(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function lm(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const s=o||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function ei(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:s}=I.useRef(t!==void 0),[a,l]=I.useState(n),c=s?t:a;if(process.env.NODE_ENV!=="production"){I.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${o} 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(`
73
73
  `))},[o,r,t]);const{current:u}=I.useRef(n);I.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
74
- `))},[JSON.stringify(n)])}const d=I.useCallback(u=>{s||l(u)},[]);return[c,d]}function jn(e){const t=I.useRef(e);return Pn(()=>{t.current=e}),I.useRef((...n)=>(0,t.current)(...n)).current}function qt(...e){const t=I.useRef(void 0),n=I.useCallback(r=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{o.forEach(s=>s?.())}},e);return I.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function pT(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function cm(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(d=>{pT(d,l[d])&&typeof a[d]=="function"&&(c[d]=(...u)=>{a[d](...u),l[d](...u)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,d=ge(a?.className,l?.className,c?.className),u=n(c,l);return{...l,...c,...u,...!!d&&{className:d},...l?.style&&c?.style&&{style:{...l.style,...c.style}},...l?.sx&&c?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,o=n(e,r),s=ge(r?.className,e?.className);return{...t,...e,...o,...!!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]]}}}function zr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function dm(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 ld(e,t){return ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ld(e,t)}function um(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ld(e,t)}const fm={disabled:!1};var hT=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.shape({enter:i.number,exit:i.number,appear:i.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&i.oneOfType([i.string,i.shape({enter:i.string,exit:i.string,active:i.string}),i.shape({enter:i.string,enterDone:i.string,enterActive:i.string,exit:i.string,exitDone:i.string,exitActive:i.string})]);const Ka=x.createContext(null);var mT=function(t){return t.scrollTop},ti="unmounted",io="exited",ao="entering",zo="entered",cd="exiting",ir=(function(e){um(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=io,s.appearStatus=ao):c=zo:r.unmountOnExit||r.mountOnEnter?c=ti:c=io,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var a=o.in;return a&&s.status===ti?{status:io}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ao&&a!==zo&&(s=ao):(a===ao||a===zo)&&(s=cd)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,a,l;return s=a=l=o,o!=null&&typeof o!="number"&&(s=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:s,enter:a,appear:l}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===ao){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:js.findDOMNode(this);a&&mT(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===io&&this.setState({status:ti})},n.performEnter=function(o){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[js.findDOMNode(this),l],d=c[0],u=c[1],f=this.getTimeouts(),h=l?f.appear:f.enter;if(!o&&!a||fm.disabled){this.safeSetState({status:zo},function(){s.props.onEntered(d)});return}this.props.onEnter(d,u),this.safeSetState({status:ao},function(){s.props.onEntering(d,u),s.onTransitionEnd(h,function(){s.safeSetState({status:zo},function(){s.props.onEntered(d,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:js.findDOMNode(this);if(!s||fm.disabled){this.safeSetState({status:io},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:cd},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:io},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,s.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:js.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=c[0],u=c[1];this.props.addEndListener(d,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ti)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=dm(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Ka.Provider,{value:null},typeof a=="function"?a(o,l):x.cloneElement(x.Children.only(a),l))},t})(x.Component);ir.contextType=Ka,ir.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:i.shape({current:typeof Element>"u"?i.any:function(e,t,n,r,o,s){var a=e[t];return i.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,s)}}),children:i.oneOfType([i.func.isRequired,i.element.isRequired]).isRequired,in:i.bool,mountOnEnter:i.bool,unmountOnExit:i.bool,appear:i.bool,enter:i.bool,exit:i.bool,timeout:function(t){var n=hT;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return n.apply(void 0,[t].concat(o))},addEndListener:i.func,onEnter:i.func,onEntering:i.func,onEntered:i.func,onExit:i.func,onExiting:i.func,onExited:i.func}:{};function Vo(){}ir.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vo,onEntering:Vo,onEntered:Vo,onExit:Vo,onExiting:Vo,onExited:Vo},ir.UNMOUNTED=ti,ir.EXITED=io,ir.ENTERING=ao,ir.ENTERED=zo,ir.EXITING=cd;function gT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dd(e,t){var n=function(s){return t&&x.isValidElement(s)?t(s):s},r=Object.create(null);return e&&x.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function yT(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var a,l={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var d=r[c][a];l[r[c][a]]=n(d)}l[c]=n(c)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function lo(e,t,n){return n[t]!=null?n[t]:e.props[t]}function bT(e,t){return dd(e.children,function(n){return x.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:lo(n,"appear",e),enter:lo(n,"enter",e),exit:lo(n,"exit",e)})})}function vT(e,t,n){var r=dd(e.children),o=yT(t,r);return Object.keys(o).forEach(function(s){var a=o[s];if(x.isValidElement(a)){var l=s in t,c=s in r,d=t[s],u=x.isValidElement(d)&&!d.props.in;c&&(!l||u)?o[s]=x.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:lo(a,"exit",e),enter:lo(a,"enter",e)}):!c&&l&&!u?o[s]=x.cloneElement(a,{in:!1}):c&&l&&x.isValidElement(d)&&(o[s]=x.cloneElement(a,{onExited:n.bind(null,a),in:d.props.in,exit:lo(a,"exit",e),enter:lo(a,"enter",e)}))}}),o}var xT=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},wT={component:"div",childFactory:function(t){return t}},ud=(function(e){um(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var a=s.handleExited.bind(gT(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(o,s){var a=s.children,l=s.handleExited,c=s.firstRender;return{children:c?bT(o,l):vT(o,a,l),firstRender:!1}},n.handleExited=function(o,s){var a=dd(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(l){var c=ua({},l.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,s=o.component,a=o.childFactory,l=dm(o,["component","childFactory"]),c=this.state.contextValue,d=xT(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,s===null?x.createElement(Ka.Provider,{value:c},d):x.createElement(Ka.Provider,{value:c},x.createElement(s,l,d))},t})(x.Component);ud.propTypes=process.env.NODE_ENV!=="production"?{component:i.any,children:i.node,appear:i.bool,enter:i.bool,exit:i.bool,childFactory:i.func}:{},ud.defaultProps=wT;const pm={};function hm(e,t){const n=I.useRef(pm);return n.current===pm&&(n.current=e(t)),n}const ST=[];function CT(e){I.useEffect(e,ST)}class Xa{static create(){return new Xa}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 Ho(){const e=hm(Xa.create).current;return CT(e.disposeEffect),e}function TT(e){const{prototype:t={}}=e;return!!t.isReactComponent}function kT(e,t,n,r,o){const s=e[t],a=o||t;if(s==null||typeof window>"u")return null;let l;return typeof s=="function"&&!TT(s)&&(l="Did you accidentally provide a plain function component instead?"),s===I.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const fd=zr(i.elementType,kT),mm=e=>e.scrollTop;function Za(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Ja(e){return typeof e=="string"}function gm(e,t,n){return e===void 0||Ja(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function ym(e,t,n){return typeof e=="function"?e(t,n):e}function bm(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 vm(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 xm(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const m=ge(n?.className,s,o?.className,r?.className),g={...n?.style,...o?.style,...r?.style},y={...n,...o,...r};return m.length>0&&(y.className=m),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const a=bm({...o,...r}),l=vm(r),c=vm(o),d=t(a),u=ge(d?.className,n?.className,s,o?.className,r?.className),f={...d?.style,...n?.style,...o?.style,...r?.style},h={...d,...n,...c,...l};return u.length>0&&(h.className=u),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:d.ref}}function qe(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:d,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...h}=s,m=u[e]||r,g=ym(f[e],o),{props:{component:y,...b},internalRef:v}=xm({className:n,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),T=qt(v,g?.ref,t.ref),S=e==="root"?y||d:y,C=gm(m,{...e==="root"&&!d&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...b,...S&&!l&&{as:S},...S&&l&&{component:S},ref:T},o);return[m,C]}function ET(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 wm(e,t,n,r){const o=e[t];if(o==null||!Number.isInteger(o)){const s=ET(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Sm(e,t,n,r){return e[t]===void 0?null:wm(e,t,n,r)}function pd(){return null}Sm.isRequired=wm,pd.isRequired=pd;const ar=process.env.NODE_ENV==="production"?pd:Sm;function OT(e){return Ae("MuiPaper",e)}Re("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 MT=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ne(s,OT,o)},PT=te("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}`]]}})(Le(({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)"}}]}))),ni=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiPaper"}),o=gt(),{className:s,component:a="div",elevation:l=1,square:c=!1,variant:d="elevation",...u}=r,f={...r,component:a,elevation:l,square:c,variant:d},h=MT(f);return process.env.NODE_ENV!=="production"&&o.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
74
+ `))},[JSON.stringify(n)])}const d=I.useCallback(u=>{s||l(u)},[]);return[c,d]}function jn(e){const t=I.useRef(e);return Pn(()=>{t.current=e}),I.useRef((...n)=>(0,t.current)(...n)).current}function qt(...e){const t=I.useRef(void 0),n=I.useCallback(r=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{o.forEach(s=>s?.())}},e);return I.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function pT(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function cm(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(d=>{pT(d,l[d])&&typeof a[d]=="function"&&(c[d]=(...u)=>{a[d](...u),l[d](...u)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,d=ge(a?.className,l?.className,c?.className),u=n(c,l);return{...l,...c,...u,...!!d&&{className:d},...l?.style&&c?.style&&{style:{...l.style,...c.style}},...l?.sx&&c?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,o=n(e,r),s=ge(r?.className,e?.className);return{...t,...e,...o,...!!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]]}}}function zr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function dm(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 ld(e,t){return ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ld(e,t)}function um(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ld(e,t)}const fm={disabled:!1};var hT=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.shape({enter:i.number,exit:i.number,appear:i.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&i.oneOfType([i.string,i.shape({enter:i.string,exit:i.string,active:i.string}),i.shape({enter:i.string,enterDone:i.string,enterActive:i.string,exit:i.string,exitDone:i.string,exitActive:i.string})]);const Ka=x.createContext(null);var mT=function(t){return t.scrollTop},ti="unmounted",io="exited",ao="entering",zo="entered",cd="exiting",ir=(function(e){um(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=io,s.appearStatus=ao):c=zo:r.unmountOnExit||r.mountOnEnter?c=ti:c=io,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var a=o.in;return a&&s.status===ti?{status:io}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ao&&a!==zo&&(s=ao):(a===ao||a===zo)&&(s=cd)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,a,l;return s=a=l=o,o!=null&&typeof o!="number"&&(s=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:s,enter:a,appear:l}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===ao){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:js.findDOMNode(this);a&&mT(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===io&&this.setState({status:ti})},n.performEnter=function(o){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[js.findDOMNode(this),l],d=c[0],u=c[1],f=this.getTimeouts(),h=l?f.appear:f.enter;if(!o&&!a||fm.disabled){this.safeSetState({status:zo},function(){s.props.onEntered(d)});return}this.props.onEnter(d,u),this.safeSetState({status:ao},function(){s.props.onEntering(d,u),s.onTransitionEnd(h,function(){s.safeSetState({status:zo},function(){s.props.onEntered(d,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:js.findDOMNode(this);if(!s||fm.disabled){this.safeSetState({status:io},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:cd},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:io},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,s.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:js.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=c[0],u=c[1];this.props.addEndListener(d,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ti)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=dm(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Ka.Provider,{value:null},typeof a=="function"?a(o,l):x.cloneElement(x.Children.only(a),l))},t})(x.Component);ir.contextType=Ka,ir.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:i.shape({current:typeof Element>"u"?i.any:function(e,t,n,r,o,s){var a=e[t];return i.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,s)}}),children:i.oneOfType([i.func.isRequired,i.element.isRequired]).isRequired,in:i.bool,mountOnEnter:i.bool,unmountOnExit:i.bool,appear:i.bool,enter:i.bool,exit:i.bool,timeout:function(t){var n=hT;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return n.apply(void 0,[t].concat(o))},addEndListener:i.func,onEnter:i.func,onEntering:i.func,onEntered:i.func,onExit:i.func,onExiting:i.func,onExited:i.func}:{};function Vo(){}ir.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vo,onEntering:Vo,onEntered:Vo,onExit:Vo,onExiting:Vo,onExited:Vo},ir.UNMOUNTED=ti,ir.EXITED=io,ir.ENTERING=ao,ir.ENTERED=zo,ir.EXITING=cd;function gT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dd(e,t){var n=function(s){return t&&x.isValidElement(s)?t(s):s},r=Object.create(null);return e&&x.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function yT(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var a,l={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var d=r[c][a];l[r[c][a]]=n(d)}l[c]=n(c)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function lo(e,t,n){return n[t]!=null?n[t]:e.props[t]}function bT(e,t){return dd(e.children,function(n){return x.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:lo(n,"appear",e),enter:lo(n,"enter",e),exit:lo(n,"exit",e)})})}function vT(e,t,n){var r=dd(e.children),o=yT(t,r);return Object.keys(o).forEach(function(s){var a=o[s];if(x.isValidElement(a)){var l=s in t,c=s in r,d=t[s],u=x.isValidElement(d)&&!d.props.in;c&&(!l||u)?o[s]=x.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:lo(a,"exit",e),enter:lo(a,"enter",e)}):!c&&l&&!u?o[s]=x.cloneElement(a,{in:!1}):c&&l&&x.isValidElement(d)&&(o[s]=x.cloneElement(a,{onExited:n.bind(null,a),in:d.props.in,exit:lo(a,"exit",e),enter:lo(a,"enter",e)}))}}),o}var xT=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},wT={component:"div",childFactory:function(t){return t}},ud=(function(e){um(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var a=s.handleExited.bind(gT(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(o,s){var a=s.children,l=s.handleExited,c=s.firstRender;return{children:c?bT(o,l):vT(o,a,l),firstRender:!1}},n.handleExited=function(o,s){var a=dd(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(l){var c=ua({},l.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,s=o.component,a=o.childFactory,l=dm(o,["component","childFactory"]),c=this.state.contextValue,d=xT(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,s===null?x.createElement(Ka.Provider,{value:c},d):x.createElement(Ka.Provider,{value:c},x.createElement(s,l,d))},t})(x.Component);ud.propTypes=process.env.NODE_ENV!=="production"?{component:i.any,children:i.node,appear:i.bool,enter:i.bool,exit:i.bool,childFactory:i.func}:{},ud.defaultProps=wT;const pm={};function hm(e,t){const n=I.useRef(pm);return n.current===pm&&(n.current=e(t)),n}const ST=[];function CT(e){I.useEffect(e,ST)}class Xa{static create(){return new Xa}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 Ho(){const e=hm(Xa.create).current;return CT(e.disposeEffect),e}function TT(e){const{prototype:t={}}=e;return!!t.isReactComponent}function kT(e,t,n,r,o){const s=e[t],a=o||t;if(s==null||typeof window>"u")return null;let l;return typeof s=="function"&&!TT(s)&&(l="Did you accidentally provide a plain function component instead?"),s===I.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const fd=zr(i.elementType,kT),mm=e=>e.scrollTop;function Za(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Ja(e){return typeof e=="string"}function gm(e,t,n){return e===void 0||Ja(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function ym(e,t,n){return typeof e=="function"?e(t,n):e}function bm(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 vm(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 xm(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const m=ge(n?.className,s,o?.className,r?.className),g={...n?.style,...o?.style,...r?.style},y={...n,...o,...r};return m.length>0&&(y.className=m),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const a=bm({...o,...r}),l=vm(r),c=vm(o),d=t(a),u=ge(d?.className,n?.className,s,o?.className,r?.className),f={...d?.style,...n?.style,...o?.style,...r?.style},h={...d,...n,...c,...l};return u.length>0&&(h.className=u),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:d.ref}}function qe(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:d,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...h}=s,m=u[e]||r,g=ym(f[e],o),{props:{component:y,...b},internalRef:v}=xm({className:n,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),k=qt(v,g?.ref,t.ref),S=e==="root"?y||d:y,C=gm(m,{...e==="root"&&!d&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...b,...S&&!l&&{as:S},...S&&l&&{component:S},ref:k},o);return[m,C]}function ET(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 wm(e,t,n,r){const o=e[t];if(o==null||!Number.isInteger(o)){const s=ET(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Sm(e,t,n,r){return e[t]===void 0?null:wm(e,t,n,r)}function pd(){return null}Sm.isRequired=wm,pd.isRequired=pd;const ar=process.env.NODE_ENV==="production"?pd:Sm;function OT(e){return Ae("MuiPaper",e)}Re("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 MT=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ne(s,OT,o)},PT=te("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}`]]}})(Le(({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)"}}]}))),ni=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiPaper"}),o=gt(),{className:s,component:a="div",elevation:l=1,square:c=!1,variant:d="elevation",...u}=r,f={...r,component:a,elevation:l,square:c,variant:d},h=MT(f);return process.env.NODE_ENV!=="production"&&o.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
75
75
  `)),p.jsx(PT,{as:a,ownerState:f,className:ge(h.root,s),ref:n,...u,style:{...d==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ba("#fff",sd(l))}, ${Ba("#fff",sd(l))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(ni.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,elevation:zr(ar,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:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["elevation","outlined"]),i.string])});const hn=i.oneOfType([i.func,i.object]);function Qa(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(`
76
76
  `))}return!1}class el{static create(){return new el}static use(){const t=hm(el.create).current,[n,r]=I.useState(!1);return t.shouldMount=n,t.setShouldMount=r,I.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=IT(),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 jT(){return el.use()}function IT(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Cm(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:a,in:l,onExited:c,timeout:d}=e,[u,f]=I.useState(!1),h=ge(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:a,height:a,top:-(a/2)+s,left:-(a/2)+o},g=ge(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&f(!0),I.useEffect(()=>{if(!l&&c!=null){const y=setTimeout(c,d);return()=>{clearTimeout(y)}}},[c,l,d]),p.jsx("span",{className:h,style:m,children:p.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(Cm.propTypes={classes:i.object.isRequired,className:i.string,in:i.bool,onExited:i.func,pulsate:i.bool,rippleSize:i.number,rippleX:i.number,rippleY:i.number,timeout:i.number.isRequired});const In=Re("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),hd=550,DT=80,AT=Lr`
77
77
  0% {
@@ -146,7 +146,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
146
146
  animation-iteration-count: infinite;
147
147
  animation-delay: 200ms;
148
148
  }
149
- `,Tm=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:a,...l}=r,[c,d]=I.useState([]),u=I.useRef(0),f=I.useRef(null);I.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const h=I.useRef(!1),m=Ho(),g=I.useRef(null),y=I.useRef(null),b=I.useCallback(C=>{const{pulsate:w,rippleX:k,rippleY:O,rippleSize:P,cb:j}=C;d(A=>[...A,p.jsx(LT,{classes:{ripple:ge(s.ripple,In.ripple),rippleVisible:ge(s.rippleVisible,In.rippleVisible),ripplePulsate:ge(s.ripplePulsate,In.ripplePulsate),child:ge(s.child,In.child),childLeaving:ge(s.childLeaving,In.childLeaving),childPulsate:ge(s.childPulsate,In.childPulsate)},timeout:hd,pulsate:w,rippleX:k,rippleY:O,rippleSize:P},u.current)]),u.current+=1,f.current=j},[s]),v=I.useCallback((C={},w={},k=()=>{})=>{const{pulsate:O=!1,center:P=o||w.pulsate,fakeElement:j=!1}=w;if(C?.type==="mousedown"&&h.current){h.current=!1;return}C?.type==="touchstart"&&(h.current=!0);const A=j?null:y.current,L=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let E,R,M;if(P||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)E=Math.round(L.width/2),R=Math.round(L.height/2);else{const{clientX:N,clientY:$}=C.touches&&C.touches.length>0?C.touches[0]:C;E=Math.round(N-L.left),R=Math.round($-L.top)}if(P)M=Math.sqrt((2*L.width**2+L.height**2)/3),M%2===0&&(M+=1);else{const N=Math.max(Math.abs((A?A.clientWidth:0)-E),E)*2+2,$=Math.max(Math.abs((A?A.clientHeight:0)-R),R)*2+2;M=Math.sqrt(N**2+$**2)}C?.touches?g.current===null&&(g.current=()=>{b({pulsate:O,rippleX:E,rippleY:R,rippleSize:M,cb:k})},m.start(DT,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:O,rippleX:E,rippleY:R,rippleSize:M,cb:k})},[o,b,m]),T=I.useCallback(()=>{v({},{pulsate:!0})},[v]),S=I.useCallback((C,w)=>{if(m.clear(),C?.type==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{S(C,w)});return}g.current=null,d(k=>k.length>0?k.slice(1):k),f.current=w},[m]);return I.useImperativeHandle(n,()=>({pulsate:T,start:v,stop:S}),[T,v,S]),p.jsx($T,{className:ge(In.root,s.root,a),ref:y,...l,children:p.jsx(ud,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Tm.propTypes={center:i.bool,classes:i.object,className:i.string});function BT(e){return Ae("MuiButtonBase",e)}const _T=Re("MuiButtonBase",["root","disabled","focusVisible"]),FT=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ne({root:["root",t&&"disabled",n&&"focusVisible"]},BT,o);return n&&r&&(a.root+=` ${r}`),a},WT=te("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"},[`&.${_T.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),lr=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:a,className:l,component:c="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:h=!1,focusVisibleClassName:m,LinkComponent:g="a",onBlur:y,onClick:b,onContextMenu:v,onDragLeave:T,onFocus:S,onFocusVisible:C,onKeyDown:w,onKeyUp:k,onMouseDown:O,onMouseLeave:P,onMouseUp:j,onTouchEnd:A,onTouchMove:L,onTouchStart:E,tabIndex:R=0,TouchRippleProps:M,touchRippleRef:N,type:$,...F}=r,H=I.useRef(null),z=jT(),_=qt(z.ref,N),[D,V]=I.useState(!1);d&&D&&V(!1),I.useImperativeHandle(o,()=>({focusVisible:()=>{V(!0),H.current.focus()}}),[]);const U=z.shouldMount&&!u&&!d;I.useEffect(()=>{D&&h&&!u&&z.pulsate()},[u,h,D,z]);const G=kr(z,"start",O,f),X=kr(z,"stop",v,f),q=kr(z,"stop",T,f),K=kr(z,"stop",j,f),ce=kr(z,"stop",xe=>{D&&xe.preventDefault(),P&&P(xe)},f),de=kr(z,"start",E,f),W=kr(z,"stop",A,f),ee=kr(z,"stop",L,f),B=kr(z,"stop",xe=>{Qa(xe.target)||V(!1),y&&y(xe)},!1),ue=jn(xe=>{H.current||(H.current=xe.currentTarget),Qa(xe.target)&&(V(!0),C&&C(xe)),S&&S(xe)}),Q=()=>{const xe=H.current;return c&&c!=="button"&&!(xe.tagName==="A"&&xe.href)},ne=jn(xe=>{h&&!xe.repeat&&D&&xe.key===" "&&z.stop(xe,()=>{z.start(xe)}),xe.target===xe.currentTarget&&Q()&&xe.key===" "&&xe.preventDefault(),w&&w(xe),xe.target===xe.currentTarget&&Q()&&xe.key==="Enter"&&!d&&(xe.preventDefault(),b&&b(xe))}),we=jn(xe=>{h&&xe.key===" "&&D&&!xe.defaultPrevented&&z.stop(xe,()=>{z.pulsate(xe)}),k&&k(xe),b&&xe.target===xe.currentTarget&&Q()&&xe.key===" "&&!xe.defaultPrevented&&b(xe)});let ke=c;ke==="button"&&(F.href||F.to)&&(ke=g);const Ce={};if(ke==="button"){const xe=!!F.formAction;Ce.type=$===void 0&&!xe?"button":$,Ce.disabled=d}else!F.href&&!F.to&&(Ce.role="button"),d&&(Ce["aria-disabled"]=d);const ve=qt(n,H),_e={...r,centerRipple:s,component:c,disabled:d,disableRipple:u,disableTouchRipple:f,focusRipple:h,tabIndex:R,focusVisible:D},Ee=FT(_e);return p.jsxs(WT,{as:ke,className:ge(Ee.root,l),ownerState:_e,onBlur:B,onClick:b,onContextMenu:X,onFocus:ue,onKeyDown:ne,onKeyUp:we,onMouseDown:G,onMouseLeave:ce,onMouseUp:K,onDragLeave:q,onTouchEnd:W,onTouchMove:ee,onTouchStart:de,ref:ve,tabIndex:d?-1:R,type:$,...Ce,...F,children:[a,U?p.jsx(Tm,{ref:_,center:s,...M}):null]})});function kr(e,t,n,r=!1){return jn(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(lr.propTypes={action:hn,centerRipple:i.bool,children:i.node,classes:i.object,className:i.string,component:fd,disabled:i.bool,disableRipple:i.bool,disableTouchRipple:i.bool,focusRipple:i.bool,focusVisibleClassName:i.string,formAction:i.oneOfType([i.func,i.string]),href:i.any,LinkComponent:i.elementType,onBlur:i.func,onClick:i.func,onContextMenu:i.func,onDragLeave:i.func,onFocus:i.func,onFocusVisible:i.func,onKeyDown:i.func,onKeyUp:i.func,onMouseDown:i.func,onMouseLeave:i.func,onMouseUp:i.func,onTouchEnd:i.func,onTouchMove:i.func,onTouchStart:i.func,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number,TouchRippleProps:i.object,touchRippleRef:i.oneOfType([i.func,i.shape({current:i.shape({pulsate:i.func.isRequired,start:i.func.isRequired,stop:i.func.isRequired})})]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string])});function zT(e){return typeof e.main=="string"}function VT(e,t=[]){if(!zT(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Wt(e=[]){return([,t])=>t&&VT(t,e)}function HT(e){return Ae("MuiCircularProgress",e)}Re("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Un=44,md=Lr`
149
+ `,Tm=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:a,...l}=r,[c,d]=I.useState([]),u=I.useRef(0),f=I.useRef(null);I.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const h=I.useRef(!1),m=Ho(),g=I.useRef(null),y=I.useRef(null),b=I.useCallback(C=>{const{pulsate:w,rippleX:T,rippleY:O,rippleSize:M,cb:j}=C;d(A=>[...A,p.jsx(LT,{classes:{ripple:ge(s.ripple,In.ripple),rippleVisible:ge(s.rippleVisible,In.rippleVisible),ripplePulsate:ge(s.ripplePulsate,In.ripplePulsate),child:ge(s.child,In.child),childLeaving:ge(s.childLeaving,In.childLeaving),childPulsate:ge(s.childPulsate,In.childPulsate)},timeout:hd,pulsate:w,rippleX:T,rippleY:O,rippleSize:M},u.current)]),u.current+=1,f.current=j},[s]),v=I.useCallback((C={},w={},T=()=>{})=>{const{pulsate:O=!1,center:M=o||w.pulsate,fakeElement:j=!1}=w;if(C?.type==="mousedown"&&h.current){h.current=!1;return}C?.type==="touchstart"&&(h.current=!0);const A=j?null:y.current,L=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let E,N,P;if(M||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)E=Math.round(L.width/2),N=Math.round(L.height/2);else{const{clientX:$,clientY:R}=C.touches&&C.touches.length>0?C.touches[0]:C;E=Math.round($-L.left),N=Math.round(R-L.top)}if(M)P=Math.sqrt((2*L.width**2+L.height**2)/3),P%2===0&&(P+=1);else{const $=Math.max(Math.abs((A?A.clientWidth:0)-E),E)*2+2,R=Math.max(Math.abs((A?A.clientHeight:0)-N),N)*2+2;P=Math.sqrt($**2+R**2)}C?.touches?g.current===null&&(g.current=()=>{b({pulsate:O,rippleX:E,rippleY:N,rippleSize:P,cb:T})},m.start(DT,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:O,rippleX:E,rippleY:N,rippleSize:P,cb:T})},[o,b,m]),k=I.useCallback(()=>{v({},{pulsate:!0})},[v]),S=I.useCallback((C,w)=>{if(m.clear(),C?.type==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{S(C,w)});return}g.current=null,d(T=>T.length>0?T.slice(1):T),f.current=w},[m]);return I.useImperativeHandle(n,()=>({pulsate:k,start:v,stop:S}),[k,v,S]),p.jsx($T,{className:ge(In.root,s.root,a),ref:y,...l,children:p.jsx(ud,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Tm.propTypes={center:i.bool,classes:i.object,className:i.string});function BT(e){return Ae("MuiButtonBase",e)}const _T=Re("MuiButtonBase",["root","disabled","focusVisible"]),FT=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ne({root:["root",t&&"disabled",n&&"focusVisible"]},BT,o);return n&&r&&(a.root+=` ${r}`),a},WT=te("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"},[`&.${_T.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),lr=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:a,className:l,component:c="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:h=!1,focusVisibleClassName:m,LinkComponent:g="a",onBlur:y,onClick:b,onContextMenu:v,onDragLeave:k,onFocus:S,onFocusVisible:C,onKeyDown:w,onKeyUp:T,onMouseDown:O,onMouseLeave:M,onMouseUp:j,onTouchEnd:A,onTouchMove:L,onTouchStart:E,tabIndex:N=0,TouchRippleProps:P,touchRippleRef:$,type:R,...W}=r,V=I.useRef(null),H=jT(),B=qt(H.ref,$),[D,F]=I.useState(!1);d&&D&&F(!1),I.useImperativeHandle(o,()=>({focusVisible:()=>{F(!0),V.current.focus()}}),[]);const U=H.shouldMount&&!u&&!d;I.useEffect(()=>{D&&h&&!u&&H.pulsate()},[u,h,D,H]);const q=kr(H,"start",O,f),X=kr(H,"stop",v,f),G=kr(H,"stop",k,f),K=kr(H,"stop",j,f),ae=kr(H,"stop",xe=>{D&&xe.preventDefault(),M&&M(xe)},f),le=kr(H,"start",E,f),z=kr(H,"stop",A,f),ee=kr(H,"stop",L,f),_=kr(H,"stop",xe=>{Qa(xe.target)||F(!1),y&&y(xe)},!1),ue=jn(xe=>{V.current||(V.current=xe.currentTarget),Qa(xe.target)&&(F(!0),C&&C(xe)),S&&S(xe)}),Q=()=>{const xe=V.current;return c&&c!=="button"&&!(xe.tagName==="A"&&xe.href)},ne=jn(xe=>{h&&!xe.repeat&&D&&xe.key===" "&&H.stop(xe,()=>{H.start(xe)}),xe.target===xe.currentTarget&&Q()&&xe.key===" "&&xe.preventDefault(),w&&w(xe),xe.target===xe.currentTarget&&Q()&&xe.key==="Enter"&&!d&&(xe.preventDefault(),b&&b(xe))}),we=jn(xe=>{h&&xe.key===" "&&D&&!xe.defaultPrevented&&H.stop(xe,()=>{H.pulsate(xe)}),T&&T(xe),b&&xe.target===xe.currentTarget&&Q()&&xe.key===" "&&!xe.defaultPrevented&&b(xe)});let ke=c;ke==="button"&&(W.href||W.to)&&(ke=g);const Ce={};if(ke==="button"){const xe=!!W.formAction;Ce.type=R===void 0&&!xe?"button":R,Ce.disabled=d}else!W.href&&!W.to&&(Ce.role="button"),d&&(Ce["aria-disabled"]=d);const ve=qt(n,V),_e={...r,centerRipple:s,component:c,disabled:d,disableRipple:u,disableTouchRipple:f,focusRipple:h,tabIndex:N,focusVisible:D},Ee=FT(_e);return p.jsxs(WT,{as:ke,className:ge(Ee.root,l),ownerState:_e,onBlur:_,onClick:b,onContextMenu:X,onFocus:ue,onKeyDown:ne,onKeyUp:we,onMouseDown:q,onMouseLeave:ae,onMouseUp:K,onDragLeave:G,onTouchEnd:z,onTouchMove:ee,onTouchStart:le,ref:ve,tabIndex:d?-1:N,type:R,...Ce,...W,children:[a,U?p.jsx(Tm,{ref:B,center:s,...P}):null]})});function kr(e,t,n,r=!1){return jn(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(lr.propTypes={action:hn,centerRipple:i.bool,children:i.node,classes:i.object,className:i.string,component:fd,disabled:i.bool,disableRipple:i.bool,disableTouchRipple:i.bool,focusRipple:i.bool,focusVisibleClassName:i.string,formAction:i.oneOfType([i.func,i.string]),href:i.any,LinkComponent:i.elementType,onBlur:i.func,onClick:i.func,onContextMenu:i.func,onDragLeave:i.func,onFocus:i.func,onFocusVisible:i.func,onKeyDown:i.func,onKeyUp:i.func,onMouseDown:i.func,onMouseLeave:i.func,onMouseUp:i.func,onTouchEnd:i.func,onTouchMove:i.func,onTouchStart:i.func,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number,TouchRippleProps:i.object,touchRippleRef:i.oneOfType([i.func,i.shape({current:i.shape({pulsate:i.func.isRequired,start:i.func.isRequired,stop:i.func.isRequired})})]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string])});function zT(e){return typeof e.main=="string"}function VT(e,t=[]){if(!zT(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Wt(e=[]){return([,t])=>t&&VT(t,e)}function HT(e){return Ae("MuiCircularProgress",e)}Re("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Un=44,md=Lr`
150
150
  0% {
151
151
  transform: rotate(0deg);
152
152
  }
@@ -173,26 +173,26 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
173
173
  animation: ${md} 1.4s linear infinite;
174
174
  `:null,YT=typeof gd!="string"?zs`
175
175
  animation: ${gd} 1.4s ease-in-out infinite;
176
- `:null,qT=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${J(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${J(n)}`,o&&"circleDisableShrink"]};return Ne(s,HT,t)},GT=te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${J(n.color)}`]]}})(Le(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:UT||{animation:`${md} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Wt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),KT=te("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),XT=te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${J(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Le(({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:YT||{animation:`${gd} 1.4s ease-in-out infinite`}}]}))),ZT=te("circle",{name:"MuiCircularProgress",slot:"Track"})(Le(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Uo=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:d,thickness:u=3.6,value:f=0,variant:h="indeterminate",...m}=r,g={...r,color:s,disableShrink:a,size:c,thickness:u,value:f,variant:h,enableTrackSlot:l},y=qT(g),b={},v={},T={};if(h==="determinate"){const S=2*Math.PI*((Un-u)/2);b.strokeDasharray=S.toFixed(3),T["aria-valuenow"]=Math.round(f),b.strokeDashoffset=`${((100-f)/100*S).toFixed(3)}px`,v.transform="rotate(-90deg)"}return p.jsx(GT,{className:ge(y.root,o),style:{width:c,height:c,...v,...d},ownerState:g,ref:n,role:"progressbar",...T,...m,children:p.jsxs(KT,{className:y.svg,ownerState:g,viewBox:`${Un/2} ${Un/2} ${Un} ${Un}`,children:[l?p.jsx(ZT,{className:y.track,ownerState:g,cx:Un,cy:Un,r:(Un-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,p.jsx(XT,{className:y.circle,style:b,ownerState:g,cx:Un,cy:Un,r:(Un-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(Uo.propTypes={classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","error","info","success","warning"]),i.string]),disableShrink:zr(i.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:i.bool,size:i.oneOfType([i.number,i.string]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),thickness:i.number,value:i.number,variant:i.oneOf(["determinate","indeterminate"])});function JT(e){return Ae("MuiIconButton",e)}const km=Re("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),QT=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${J(r)}`,o&&`edge${J(o)}`,`size${J(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ne(l,JT,t)},ek=te(lr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${J(n.color)}`],n.edge&&t[`edge${J(n.edge)}`],t[`size${J(n.size)}`]]}})(Le(({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}}]})),Le(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Wt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Wt()).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)}}],[`&.${km.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${km.loading}`]:{color:"transparent"}}))),tk=te("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"}}]})),tl=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:a,color:l="default",disabled:c=!1,disableFocusRipple:d=!1,size:u="medium",id:f,loading:h=null,loadingIndicator:m,...g}=r,y=so(f),b=m??p.jsx(Uo,{"aria-labelledby":y,color:"inherit",size:16}),v={...r,edge:o,color:l,disabled:c,disableFocusRipple:d,loading:h,loadingIndicator:b,size:u},T=QT(v);return p.jsxs(ek,{id:h?y:f,className:ge(T.root,a),centerRipple:!0,focusRipple:!d,disabled:c||h,ref:n,...g,ownerState:v,children:[typeof h=="boolean"&&p.jsx("span",{className:T.loadingWrapper,style:{display:"contents"},children:p.jsx(tk,{className:T.loadingIndicator,ownerState:v,children:h&&b})}),s]})});process.env.NODE_ENV!=="production"&&(tl.propTypes={children:zr(i.node,e=>I.Children.toArray(e.children).some(n=>I.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(`
177
- `)):null),classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),id:i.string,loading:i.bool,loadingIndicator:i.node,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function nk(e){return Ae("MuiTypography",e)}Re("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const rk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ok=lT(),sk=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:a}=e,l={root:["root",s,e.align!=="inherit"&&`align${J(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ne(l,nk,a)},ik=te("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${J(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Le(({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(Wt()).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${J(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}}]}))),Em={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},pt=I.forwardRef(function(t,n){const{color:r,...o}=Be({props:t,name:"MuiTypography"}),s=!rk[r],a=ok({...o,...s&&{color:r}}),{align:l="inherit",className:c,component:d,gutterBottom:u=!1,noWrap:f=!1,paragraph:h=!1,variant:m="body1",variantMapping:g=Em,...y}=a,b={...a,align:l,color:r,className:c,component:d,gutterBottom:u,noWrap:f,paragraph:h,variant:m,variantMapping:g},v=d||(h?"p":g[m]||Em[m])||"span",T=sk(b);return p.jsx(ik,{as:v,ref:n,className:ge(T.root,c),...y,ownerState:b,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...y.style}})});process.env.NODE_ENV!=="production"&&(pt.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),i.string]),component:i.elementType,gutterBottom:i.bool,noWrap:i.bool,paragraph:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),i.string]),variantMapping:i.object});function Om(e){const t=I.useRef({});return I.useEffect(()=>{t.current=e}),t.current}function Er(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=o||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var mn="top",Dn="bottom",An="right",gn="left",yd="auto",ri=[mn,Dn,An,gn],Yo="start",oi="end",ak="clippingParents",Mm="viewport",si="popper",lk="reference",Pm=ri.reduce(function(e,t){return e.concat([t+"-"+Yo,t+"-"+oi])},[]),jm=[].concat(ri,[yd]).reduce(function(e,t){return e.concat([t,t+"-"+Yo,t+"-"+oi])},[]),ck="beforeRead",dk="read",uk="afterRead",fk="beforeMain",pk="main",hk="afterMain",mk="beforeWrite",gk="write",yk="afterWrite",bk=[ck,dk,uk,fk,pk,hk,mk,gk,yk];function cr(e){return e?(e.nodeName||"").toLowerCase():null}function Tn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function co(e){var t=Tn(e).Element;return e instanceof t||e instanceof Element}function Rn(e){var t=Tn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bd(e){if(typeof ShadowRoot>"u")return!1;var t=Tn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function vk(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Rn(s)||!cr(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function xk(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 o=t.elements[r],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,d){return c[d]="",c},{});!Rn(o)||!cr(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const wk={name:"applyStyles",enabled:!0,phase:"write",fn:vk,effect:xk,requires:["computeStyles"]};function dr(e){return e.split("-")[0]}var uo=Math.max,nl=Math.min,qo=Math.round;function vd(){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 Im(){return!/^((?!chrome|android).)*safari/i.test(vd())}function Go(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Rn(e)&&(o=e.offsetWidth>0&&qo(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&qo(r.height)/e.offsetHeight||1);var a=co(e)?Tn(e):window,l=a.visualViewport,c=!Im()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/o,u=(r.top+(c&&l?l.offsetTop:0))/s,f=r.width/o,h=r.height/s;return{width:f,height:h,top:u,right:d+f,bottom:u+h,left:d,x:d,y:u}}function xd(e){var t=Go(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 Dm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bd(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Or(e){return Tn(e).getComputedStyle(e)}function Sk(e){return["table","td","th"].indexOf(cr(e))>=0}function Vr(e){return((co(e)?e.ownerDocument:e.document)||window.document).documentElement}function rl(e){return cr(e)==="html"?e:e.assignedSlot||e.parentNode||(bd(e)?e.host:null)||Vr(e)}function Am(e){return!Rn(e)||Or(e).position==="fixed"?null:e.offsetParent}function Ck(e){var t=/firefox/i.test(vd()),n=/Trident/i.test(vd());if(n&&Rn(e)){var r=Or(e);if(r.position==="fixed")return null}var o=rl(e);for(bd(o)&&(o=o.host);Rn(o)&&["html","body"].indexOf(cr(o))<0;){var s=Or(o);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 o;o=o.parentNode}return null}function ii(e){for(var t=Tn(e),n=Am(e);n&&Sk(n)&&Or(n).position==="static";)n=Am(n);return n&&(cr(n)==="html"||cr(n)==="body"&&Or(n).position==="static")?t:n||Ck(e)||t}function wd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ai(e,t,n){return uo(e,nl(t,n))}function Tk(e,t,n){var r=ai(e,t,n);return r>n?n:r}function Rm(){return{top:0,right:0,bottom:0,left:0}}function Nm(e){return Object.assign({},Rm(),e)}function $m(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var kk=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Nm(typeof t!="number"?t:$m(t,ri))};function Ek(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=dr(n.placement),c=wd(l),d=[gn,An].indexOf(l)>=0,u=d?"height":"width";if(!(!s||!a)){var f=kk(o.padding,n),h=xd(s),m=c==="y"?mn:gn,g=c==="y"?Dn:An,y=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],b=a[c]-n.rects.reference[c],v=ii(s),T=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,S=y/2-b/2,C=f[m],w=T-h[u]-f[g],k=T/2-h[u]/2+S,O=ai(C,k,w),P=c;n.modifiersData[r]=(t={},t[P]=O,t.centerOffset=O-k,t)}}function Ok(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Dm(t.elements.popper,o)&&(t.elements.arrow=o))}const Mk={name:"arrow",enabled:!0,phase:"main",fn:Ek,effect:Ok,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ko(e){return e.split("-")[1]}var Pk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jk(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:qo(n*o)/o||0,y:qo(r*o)/o||0}}function Lm(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=a.x,m=h===void 0?0:h,g=a.y,y=g===void 0?0:g,b=typeof u=="function"?u({x:m,y}):{x:m,y};m=b.x,y=b.y;var v=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),S=gn,C=mn,w=window;if(d){var k=ii(n),O="clientHeight",P="clientWidth";if(k===Tn(n)&&(k=Vr(n),Or(k).position!=="static"&&l==="absolute"&&(O="scrollHeight",P="scrollWidth")),k=k,o===mn||(o===gn||o===An)&&s===oi){C=Dn;var j=f&&k===w&&w.visualViewport?w.visualViewport.height:k[O];y-=j-r.height,y*=c?1:-1}if(o===gn||(o===mn||o===Dn)&&s===oi){S=An;var A=f&&k===w&&w.visualViewport?w.visualViewport.width:k[P];m-=A-r.width,m*=c?1:-1}}var L=Object.assign({position:l},d&&Pk),E=u===!0?jk({x:m,y},Tn(n)):{x:m,y};if(m=E.x,y=E.y,c){var R;return Object.assign({},L,(R={},R[C]=T?"0":"",R[S]=v?"0":"",R.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",R))}return Object.assign({},L,(t={},t[C]=T?y+"px":"",t[S]=v?m+"px":"",t.transform="",t))}function Ik(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:dr(t.placement),variation:Ko(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Lm(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Lm(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Dk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ik,data:{}};var ol={passive:!0};function Ak(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,c=Tn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(u){u.addEventListener("scroll",n.update,ol)}),l&&c.addEventListener("resize",n.update,ol),function(){s&&d.forEach(function(u){u.removeEventListener("scroll",n.update,ol)}),l&&c.removeEventListener("resize",n.update,ol)}}const Rk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ak,data:{}};var Nk={left:"right",right:"left",bottom:"top",top:"bottom"};function sl(e){return e.replace(/left|right|bottom|top/g,function(t){return Nk[t]})}var $k={start:"end",end:"start"};function Bm(e){return e.replace(/start|end/g,function(t){return $k[t]})}function Sd(e){var t=Tn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Cd(e){return Go(Vr(e)).left+Sd(e).scrollLeft}function Lk(e,t){var n=Tn(e),r=Vr(e),o=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){s=o.width,a=o.height;var d=Im();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:l+Cd(e),y:c}}function Bk(e){var t,n=Vr(e),r=Sd(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=uo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=uo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Cd(e),c=-r.scrollTop;return Or(o||n).direction==="rtl"&&(l+=uo(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function Td(e){var t=Or(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function _m(e){return["html","body","#document"].indexOf(cr(e))>=0?e.ownerDocument.body:Rn(e)&&Td(e)?e:_m(rl(e))}function li(e,t){var n;t===void 0&&(t=[]);var r=_m(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Tn(r),a=o?[s].concat(s.visualViewport||[],Td(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(li(rl(a)))}function kd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _k(e,t){var n=Go(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 Fm(e,t,n){return t===Mm?kd(Lk(e,n)):co(t)?_k(t,n):kd(Bk(Vr(e)))}function Fk(e){var t=li(rl(e)),n=["absolute","fixed"].indexOf(Or(e).position)>=0,r=n&&Rn(e)?ii(e):e;return co(r)?t.filter(function(o){return co(o)&&Dm(o,r)&&cr(o)!=="body"}):[]}function Wk(e,t,n,r){var o=t==="clippingParents"?Fk(e):[].concat(t),s=[].concat(o,[n]),a=s[0],l=s.reduce(function(c,d){var u=Fm(e,d,r);return c.top=uo(u.top,c.top),c.right=nl(u.right,c.right),c.bottom=nl(u.bottom,c.bottom),c.left=uo(u.left,c.left),c},Fm(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Wm(e){var t=e.reference,n=e.element,r=e.placement,o=r?dr(r):null,s=r?Ko(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case mn:c={x:a,y:t.y-n.height};break;case Dn:c={x:a,y:t.y+t.height};break;case An:c={x:t.x+t.width,y:l};break;case gn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?wd(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(s){case Yo:c[d]=c[d]-(t[u]/2-n[u]/2);break;case oi:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function ci(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,a=s===void 0?e.strategy:s,l=n.boundary,c=l===void 0?ak:l,d=n.rootBoundary,u=d===void 0?Mm:d,f=n.elementContext,h=f===void 0?si:f,m=n.altBoundary,g=m===void 0?!1:m,y=n.padding,b=y===void 0?0:y,v=Nm(typeof b!="number"?b:$m(b,ri)),T=h===si?lk:si,S=e.rects.popper,C=e.elements[g?T:h],w=Wk(co(C)?C:C.contextElement||Vr(e.elements.popper),c,u,a),k=Go(e.elements.reference),O=Wm({reference:k,element:S,placement:o}),P=kd(Object.assign({},S,O)),j=h===si?P:k,A={top:w.top-j.top+v.top,bottom:j.bottom-w.bottom+v.bottom,left:w.left-j.left+v.left,right:j.right-w.right+v.right},L=e.modifiersData.offset;if(h===si&&L){var E=L[o];Object.keys(A).forEach(function(R){var M=[An,Dn].indexOf(R)>=0?1:-1,N=[mn,Dn].indexOf(R)>=0?"y":"x";A[R]+=E[N]*M})}return A}function zk(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?jm:c,u=Ko(r),f=u?l?Pm:Pm.filter(function(g){return Ko(g)===u}):ri,h=f.filter(function(g){return d.indexOf(g)>=0});h.length===0&&(h=f);var m=h.reduce(function(g,y){return g[y]=ci(e,{placement:y,boundary:o,rootBoundary:s,padding:a})[dr(y)],g},{});return Object.keys(m).sort(function(g,y){return m[g]-m[y]})}function Vk(e){if(dr(e)===yd)return[];var t=sl(e);return[Bm(e),t,Bm(t)]}function Hk(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,y=n.allowedAutoPlacements,b=t.options.placement,v=dr(b),T=v===b,S=c||(T||!g?[sl(b)]:Vk(b)),C=[b].concat(S).reduce(function(G,X){return G.concat(dr(X)===yd?zk(t,{placement:X,boundary:u,rootBoundary:f,padding:d,flipVariations:g,allowedAutoPlacements:y}):X)},[]),w=t.rects.reference,k=t.rects.popper,O=new Map,P=!0,j=C[0],A=0;A<C.length;A++){var L=C[A],E=dr(L),R=Ko(L)===Yo,M=[mn,Dn].indexOf(E)>=0,N=M?"width":"height",$=ci(t,{placement:L,boundary:u,rootBoundary:f,altBoundary:h,padding:d}),F=M?R?An:gn:R?Dn:mn;w[N]>k[N]&&(F=sl(F));var H=sl(F),z=[];if(s&&z.push($[E]<=0),l&&z.push($[F]<=0,$[H]<=0),z.every(function(G){return G})){j=L,P=!1;break}O.set(L,z)}if(P)for(var _=g?3:1,D=function(X){var q=C.find(function(K){var ce=O.get(K);if(ce)return ce.slice(0,X).every(function(de){return de})});if(q)return j=q,"break"},V=_;V>0;V--){var U=D(V);if(U==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const Uk={name:"flip",enabled:!0,phase:"main",fn:Hk,requiresIfExists:["offset"],data:{_skip:!1}};function zm(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 Vm(e){return[mn,An,Dn,gn].some(function(t){return e[t]>=0})}function Yk(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,a=ci(t,{elementContext:"reference"}),l=ci(t,{altBoundary:!0}),c=zm(a,r),d=zm(l,o,s),u=Vm(c),f=Vm(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const qk={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yk};function Gk(e,t,n){var r=dr(e),o=[gn,mn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*o,[gn,An].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function Kk(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,a=jm.reduce(function(u,f){return u[f]=Gk(f,t.rects,s),u},{}),l=a[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const Xk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Kk};function Zk(e){var t=e.state,n=e.name;t.modifiersData[n]=Wm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Jk={name:"popperOffsets",enabled:!0,phase:"read",fn:Zk,data:{}};function Qk(e){return e==="x"?"y":"x"}function eE(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,m=h===void 0?!0:h,g=n.tetherOffset,y=g===void 0?0:g,b=ci(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:u}),v=dr(t.placement),T=Ko(t.placement),S=!T,C=wd(v),w=Qk(C),k=t.modifiersData.popperOffsets,O=t.rects.reference,P=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(k){if(s){var R,M=C==="y"?mn:gn,N=C==="y"?Dn:An,$=C==="y"?"height":"width",F=k[C],H=F+b[M],z=F-b[N],_=m?-P[$]/2:0,D=T===Yo?O[$]:P[$],V=T===Yo?-P[$]:-O[$],U=t.elements.arrow,G=m&&U?xd(U):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Rm(),q=X[M],K=X[N],ce=ai(0,O[$],G[$]),de=S?O[$]/2-_-ce-q-A.mainAxis:D-ce-q-A.mainAxis,W=S?-O[$]/2+_+ce+K+A.mainAxis:V+ce+K+A.mainAxis,ee=t.elements.arrow&&ii(t.elements.arrow),B=ee?C==="y"?ee.clientTop||0:ee.clientLeft||0:0,ue=(R=L?.[C])!=null?R:0,Q=F+de-ue-B,ne=F+W-ue,we=ai(m?nl(H,Q):H,F,m?uo(z,ne):z);k[C]=we,E[C]=we-F}if(l){var ke,Ce=C==="x"?mn:gn,ve=C==="x"?Dn:An,_e=k[w],Ee=w==="y"?"height":"width",xe=_e+b[Ce],re=_e-b[ve],ie=[mn,gn].indexOf(v)!==-1,Te=(ke=L?.[w])!=null?ke:0,he=ie?xe:_e-O[Ee]-P[Ee]-Te+A.altAxis,pe=ie?_e+O[Ee]+P[Ee]-Te-A.altAxis:re,Ie=m&&ie?Tk(he,_e,pe):ai(m?he:xe,_e,m?pe:re);k[w]=Ie,E[w]=Ie-_e}t.modifiersData[r]=E}}const tE={name:"preventOverflow",enabled:!0,phase:"main",fn:eE,requiresIfExists:["offset"]};function nE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rE(e){return e===Tn(e)||!Rn(e)?Sd(e):nE(e)}function oE(e){var t=e.getBoundingClientRect(),n=qo(t.width)/e.offsetWidth||1,r=qo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function sE(e,t,n){n===void 0&&(n=!1);var r=Rn(t),o=Rn(t)&&oE(t),s=Vr(t),a=Go(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((cr(t)!=="body"||Td(s))&&(l=rE(t)),Rn(t)?(c=Go(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Cd(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function iE(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function aE(e){var t=iE(e);return bk.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function lE(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cE(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Hm={placement:"bottom",modifiers:[],strategy:"absolute"};function Um(){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 dE(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?Hm:o;return function(l,c,d){d===void 0&&(d=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hm,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],h=!1,m={state:u,setOptions:function(v){var T=typeof v=="function"?v(u.options):v;y(),u.options=Object.assign({},s,u.options,T),u.scrollParents={reference:co(l)?li(l):l.contextElement?li(l.contextElement):[],popper:li(c)};var S=aE(cE([].concat(r,u.options.modifiers)));return u.orderedModifiers=S.filter(function(C){return C.enabled}),g(),m.update()},forceUpdate:function(){if(!h){var v=u.elements,T=v.reference,S=v.popper;if(Um(T,S)){u.rects={reference:sE(T,ii(S),u.options.strategy==="fixed"),popper:xd(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(A){return u.modifiersData[A.name]=Object.assign({},A.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var w=u.orderedModifiers[C],k=w.fn,O=w.options,P=O===void 0?{}:O,j=w.name;typeof k=="function"&&(u=k({state:u,options:P,name:j,instance:m})||u)}}}},update:lE(function(){return new Promise(function(b){m.forceUpdate(),b(u)})}),destroy:function(){y(),h=!0}};if(!Um(l,c))return m;m.setOptions(d).then(function(b){!h&&d.onFirstUpdate&&d.onFirstUpdate(b)});function g(){u.orderedModifiers.forEach(function(b){var v=b.name,T=b.options,S=T===void 0?{}:T,C=b.effect;if(typeof C=="function"){var w=C({state:u,name:v,instance:m,options:S}),k=function(){};f.push(w||k)}})}function y(){f.forEach(function(b){return b()}),f=[]}return m}}var uE=[Rk,Jk,Dk,wk,Xk,Uk,tE,Mk,qk],fE=dE({defaultModifiers:uE});function fo(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...s}=e,a=o?{}:ym(n,r),{props:l,internalRef:c}=xm({...s,externalSlotProps:a}),d=qt(c,a?.ref,e.additionalProps?.ref);return gm(t,{...l,ref:d},r)}function Xo(e){return parseInt(I.version,10)>=19?e?.props?.ref||null:e?.ref||null}function pE(e){return typeof e=="function"?e():e}const di=I.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[a,l]=I.useState(null),c=qt(I.isValidElement(r)?Xo(r):null,n);if(Pn(()=>{s||l(pE(o)||document.body)},[o,s]),Pn(()=>{if(a&&!s)return am(n,a),()=>{am(n,null)}},[n,a,s]),s){if(I.isValidElement(r)){const d={ref:c};return I.cloneElement(r,d)}return r}return a&&rx.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(di.propTypes={children:i.node,container:i.oneOfType([Er,i.func]),disablePortal:i.bool}),process.env.NODE_ENV!=="production"&&(di.propTypes=za(di.propTypes));function hE(e){return Ae("MuiPopper",e)}Re("MuiPopper",["root"]);function mE(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 il(e){return typeof e=="function"?e():e}function al(e){return e.nodeType!==void 0}function gE(e){return!al(e)}const yE=e=>{const{classes:t}=e;return Ne({root:["root"]},hE,t)},bE={},vE=I.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:u,popperRef:f,slotProps:h={},slots:m={},TransitionProps:g,ownerState:y,...b}=t,v=I.useRef(null),T=qt(v,n),S=I.useRef(null),C=qt(S,f),w=I.useRef(C);Pn(()=>{w.current=C},[C]),I.useImperativeHandle(f,()=>S.current,[]);const k=mE(d,s),[O,P]=I.useState(k),[j,A]=I.useState(il(r));I.useEffect(()=>{S.current&&S.current.forceUpdate()}),I.useEffect(()=>{r&&A(il(r))},[r]),Pn(()=>{if(!j||!c)return;const N=H=>{P(H.placement)};if(process.env.NODE_ENV!=="production"&&j&&al(j)&&j.nodeType===1){const H=j.getBoundingClientRect();process.env.NODE_ENV!=="test"&&H.top===0&&H.left===0&&H.right===0&&H.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(`
178
- `))}let $=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{N(H)}}];l!=null&&($=$.concat(l)),u&&u.modifiers!=null&&($=$.concat(u.modifiers));const F=fE(j,v.current,{placement:k,...u,modifiers:$});return w.current(F),()=>{F.destroy(),w.current(null)}},[j,a,l,c,u,k]);const L={placement:O};g!==null&&(L.TransitionProps=g);const E=yE(t),R=m.root??"div",M=fo({elementType:R,externalSlotProps:h.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:T},ownerState:t,className:E.root});return p.jsx(R,{...M,children:typeof o=="function"?o(L):o})}),Ym=I.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:d,open:u,placement:f="bottom",popperOptions:h=bE,popperRef:m,style:g,transition:y=!1,slotProps:b={},slots:v={},...T}=t,[S,C]=I.useState(!0),w=()=>{C(!1)},k=()=>{C(!0)};if(!c&&!u&&(!y||S))return null;let O;if(s)O=s;else if(r){const A=il(r);O=A&&al(A)?pn(A).body:pn(null).body}const P=!u&&c&&(!y||S)?"none":void 0,j=y?{in:u,onEnter:w,onExited:k}:void 0;return p.jsx(di,{disablePortal:l,container:O,children:p.jsx(vE,{anchorEl:r,direction:a,disablePortal:l,modifiers:d,ref:n,open:y?!S:u,placement:f,popperOptions:h,popperRef:m,slotProps:b,slots:v,...T,style:{position:"fixed",top:0,left:0,display:P,...g},TransitionProps:j,children:o})})});process.env.NODE_ENV!=="production"&&(Ym.propTypes={anchorEl:zr(i.oneOfType([Er,i.object,i.func]),e=>{if(e.open){const t=il(e.anchorEl);if(t&&al(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(`
176
+ `:null,qT=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${J(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${J(n)}`,o&&"circleDisableShrink"]};return Ne(s,HT,t)},GT=te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${J(n.color)}`]]}})(Le(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:UT||{animation:`${md} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Wt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),KT=te("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),XT=te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${J(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Le(({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:YT||{animation:`${gd} 1.4s ease-in-out infinite`}}]}))),ZT=te("circle",{name:"MuiCircularProgress",slot:"Track"})(Le(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Uo=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:d,thickness:u=3.6,value:f=0,variant:h="indeterminate",...m}=r,g={...r,color:s,disableShrink:a,size:c,thickness:u,value:f,variant:h,enableTrackSlot:l},y=qT(g),b={},v={},k={};if(h==="determinate"){const S=2*Math.PI*((Un-u)/2);b.strokeDasharray=S.toFixed(3),k["aria-valuenow"]=Math.round(f),b.strokeDashoffset=`${((100-f)/100*S).toFixed(3)}px`,v.transform="rotate(-90deg)"}return p.jsx(GT,{className:ge(y.root,o),style:{width:c,height:c,...v,...d},ownerState:g,ref:n,role:"progressbar",...k,...m,children:p.jsxs(KT,{className:y.svg,ownerState:g,viewBox:`${Un/2} ${Un/2} ${Un} ${Un}`,children:[l?p.jsx(ZT,{className:y.track,ownerState:g,cx:Un,cy:Un,r:(Un-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,p.jsx(XT,{className:y.circle,style:b,ownerState:g,cx:Un,cy:Un,r:(Un-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(Uo.propTypes={classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","error","info","success","warning"]),i.string]),disableShrink:zr(i.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:i.bool,size:i.oneOfType([i.number,i.string]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),thickness:i.number,value:i.number,variant:i.oneOf(["determinate","indeterminate"])});function JT(e){return Ae("MuiIconButton",e)}const km=Re("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),QT=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${J(r)}`,o&&`edge${J(o)}`,`size${J(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ne(l,JT,t)},ek=te(lr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${J(n.color)}`],n.edge&&t[`edge${J(n.edge)}`],t[`size${J(n.size)}`]]}})(Le(({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}}]})),Le(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Wt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Wt()).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)}}],[`&.${km.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${km.loading}`]:{color:"transparent"}}))),tk=te("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"}}]})),tl=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:a,color:l="default",disabled:c=!1,disableFocusRipple:d=!1,size:u="medium",id:f,loading:h=null,loadingIndicator:m,...g}=r,y=so(f),b=m??p.jsx(Uo,{"aria-labelledby":y,color:"inherit",size:16}),v={...r,edge:o,color:l,disabled:c,disableFocusRipple:d,loading:h,loadingIndicator:b,size:u},k=QT(v);return p.jsxs(ek,{id:h?y:f,className:ge(k.root,a),centerRipple:!0,focusRipple:!d,disabled:c||h,ref:n,...g,ownerState:v,children:[typeof h=="boolean"&&p.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:p.jsx(tk,{className:k.loadingIndicator,ownerState:v,children:h&&b})}),s]})});process.env.NODE_ENV!=="production"&&(tl.propTypes={children:zr(i.node,e=>I.Children.toArray(e.children).some(n=>I.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(`
177
+ `)):null),classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),id:i.string,loading:i.bool,loadingIndicator:i.node,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function nk(e){return Ae("MuiTypography",e)}Re("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const rk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ok=lT(),sk=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:a}=e,l={root:["root",s,e.align!=="inherit"&&`align${J(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ne(l,nk,a)},ik=te("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${J(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Le(({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(Wt()).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${J(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}}]}))),Em={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},pt=I.forwardRef(function(t,n){const{color:r,...o}=Be({props:t,name:"MuiTypography"}),s=!rk[r],a=ok({...o,...s&&{color:r}}),{align:l="inherit",className:c,component:d,gutterBottom:u=!1,noWrap:f=!1,paragraph:h=!1,variant:m="body1",variantMapping:g=Em,...y}=a,b={...a,align:l,color:r,className:c,component:d,gutterBottom:u,noWrap:f,paragraph:h,variant:m,variantMapping:g},v=d||(h?"p":g[m]||Em[m])||"span",k=sk(b);return p.jsx(ik,{as:v,ref:n,className:ge(k.root,c),...y,ownerState:b,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...y.style}})});process.env.NODE_ENV!=="production"&&(pt.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),i.string]),component:i.elementType,gutterBottom:i.bool,noWrap:i.bool,paragraph:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),i.string]),variantMapping:i.object});function Om(e){const t=I.useRef({});return I.useEffect(()=>{t.current=e}),t.current}function Er(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=o||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var mn="top",Dn="bottom",An="right",gn="left",yd="auto",ri=[mn,Dn,An,gn],Yo="start",oi="end",ak="clippingParents",Mm="viewport",si="popper",lk="reference",Pm=ri.reduce(function(e,t){return e.concat([t+"-"+Yo,t+"-"+oi])},[]),jm=[].concat(ri,[yd]).reduce(function(e,t){return e.concat([t,t+"-"+Yo,t+"-"+oi])},[]),ck="beforeRead",dk="read",uk="afterRead",fk="beforeMain",pk="main",hk="afterMain",mk="beforeWrite",gk="write",yk="afterWrite",bk=[ck,dk,uk,fk,pk,hk,mk,gk,yk];function cr(e){return e?(e.nodeName||"").toLowerCase():null}function Tn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function co(e){var t=Tn(e).Element;return e instanceof t||e instanceof Element}function Rn(e){var t=Tn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bd(e){if(typeof ShadowRoot>"u")return!1;var t=Tn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function vk(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Rn(s)||!cr(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function xk(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 o=t.elements[r],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,d){return c[d]="",c},{});!Rn(o)||!cr(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const wk={name:"applyStyles",enabled:!0,phase:"write",fn:vk,effect:xk,requires:["computeStyles"]};function dr(e){return e.split("-")[0]}var uo=Math.max,nl=Math.min,qo=Math.round;function vd(){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 Im(){return!/^((?!chrome|android).)*safari/i.test(vd())}function Go(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Rn(e)&&(o=e.offsetWidth>0&&qo(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&qo(r.height)/e.offsetHeight||1);var a=co(e)?Tn(e):window,l=a.visualViewport,c=!Im()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/o,u=(r.top+(c&&l?l.offsetTop:0))/s,f=r.width/o,h=r.height/s;return{width:f,height:h,top:u,right:d+f,bottom:u+h,left:d,x:d,y:u}}function xd(e){var t=Go(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 Dm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bd(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Or(e){return Tn(e).getComputedStyle(e)}function Sk(e){return["table","td","th"].indexOf(cr(e))>=0}function Vr(e){return((co(e)?e.ownerDocument:e.document)||window.document).documentElement}function rl(e){return cr(e)==="html"?e:e.assignedSlot||e.parentNode||(bd(e)?e.host:null)||Vr(e)}function Am(e){return!Rn(e)||Or(e).position==="fixed"?null:e.offsetParent}function Ck(e){var t=/firefox/i.test(vd()),n=/Trident/i.test(vd());if(n&&Rn(e)){var r=Or(e);if(r.position==="fixed")return null}var o=rl(e);for(bd(o)&&(o=o.host);Rn(o)&&["html","body"].indexOf(cr(o))<0;){var s=Or(o);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 o;o=o.parentNode}return null}function ii(e){for(var t=Tn(e),n=Am(e);n&&Sk(n)&&Or(n).position==="static";)n=Am(n);return n&&(cr(n)==="html"||cr(n)==="body"&&Or(n).position==="static")?t:n||Ck(e)||t}function wd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ai(e,t,n){return uo(e,nl(t,n))}function Tk(e,t,n){var r=ai(e,t,n);return r>n?n:r}function Rm(){return{top:0,right:0,bottom:0,left:0}}function Nm(e){return Object.assign({},Rm(),e)}function $m(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var kk=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Nm(typeof t!="number"?t:$m(t,ri))};function Ek(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=dr(n.placement),c=wd(l),d=[gn,An].indexOf(l)>=0,u=d?"height":"width";if(!(!s||!a)){var f=kk(o.padding,n),h=xd(s),m=c==="y"?mn:gn,g=c==="y"?Dn:An,y=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],b=a[c]-n.rects.reference[c],v=ii(s),k=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,S=y/2-b/2,C=f[m],w=k-h[u]-f[g],T=k/2-h[u]/2+S,O=ai(C,T,w),M=c;n.modifiersData[r]=(t={},t[M]=O,t.centerOffset=O-T,t)}}function Ok(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Dm(t.elements.popper,o)&&(t.elements.arrow=o))}const Mk={name:"arrow",enabled:!0,phase:"main",fn:Ek,effect:Ok,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ko(e){return e.split("-")[1]}var Pk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jk(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:qo(n*o)/o||0,y:qo(r*o)/o||0}}function Lm(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=a.x,m=h===void 0?0:h,g=a.y,y=g===void 0?0:g,b=typeof u=="function"?u({x:m,y}):{x:m,y};m=b.x,y=b.y;var v=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),S=gn,C=mn,w=window;if(d){var T=ii(n),O="clientHeight",M="clientWidth";if(T===Tn(n)&&(T=Vr(n),Or(T).position!=="static"&&l==="absolute"&&(O="scrollHeight",M="scrollWidth")),T=T,o===mn||(o===gn||o===An)&&s===oi){C=Dn;var j=f&&T===w&&w.visualViewport?w.visualViewport.height:T[O];y-=j-r.height,y*=c?1:-1}if(o===gn||(o===mn||o===Dn)&&s===oi){S=An;var A=f&&T===w&&w.visualViewport?w.visualViewport.width:T[M];m-=A-r.width,m*=c?1:-1}}var L=Object.assign({position:l},d&&Pk),E=u===!0?jk({x:m,y},Tn(n)):{x:m,y};if(m=E.x,y=E.y,c){var N;return Object.assign({},L,(N={},N[C]=k?"0":"",N[S]=v?"0":"",N.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",N))}return Object.assign({},L,(t={},t[C]=k?y+"px":"",t[S]=v?m+"px":"",t.transform="",t))}function Ik(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:dr(t.placement),variation:Ko(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Lm(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Lm(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Dk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ik,data:{}};var ol={passive:!0};function Ak(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,c=Tn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(u){u.addEventListener("scroll",n.update,ol)}),l&&c.addEventListener("resize",n.update,ol),function(){s&&d.forEach(function(u){u.removeEventListener("scroll",n.update,ol)}),l&&c.removeEventListener("resize",n.update,ol)}}const Rk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ak,data:{}};var Nk={left:"right",right:"left",bottom:"top",top:"bottom"};function sl(e){return e.replace(/left|right|bottom|top/g,function(t){return Nk[t]})}var $k={start:"end",end:"start"};function Bm(e){return e.replace(/start|end/g,function(t){return $k[t]})}function Sd(e){var t=Tn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Cd(e){return Go(Vr(e)).left+Sd(e).scrollLeft}function Lk(e,t){var n=Tn(e),r=Vr(e),o=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){s=o.width,a=o.height;var d=Im();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:l+Cd(e),y:c}}function Bk(e){var t,n=Vr(e),r=Sd(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=uo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=uo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Cd(e),c=-r.scrollTop;return Or(o||n).direction==="rtl"&&(l+=uo(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function Td(e){var t=Or(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function _m(e){return["html","body","#document"].indexOf(cr(e))>=0?e.ownerDocument.body:Rn(e)&&Td(e)?e:_m(rl(e))}function li(e,t){var n;t===void 0&&(t=[]);var r=_m(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Tn(r),a=o?[s].concat(s.visualViewport||[],Td(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(li(rl(a)))}function kd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _k(e,t){var n=Go(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 Fm(e,t,n){return t===Mm?kd(Lk(e,n)):co(t)?_k(t,n):kd(Bk(Vr(e)))}function Fk(e){var t=li(rl(e)),n=["absolute","fixed"].indexOf(Or(e).position)>=0,r=n&&Rn(e)?ii(e):e;return co(r)?t.filter(function(o){return co(o)&&Dm(o,r)&&cr(o)!=="body"}):[]}function Wk(e,t,n,r){var o=t==="clippingParents"?Fk(e):[].concat(t),s=[].concat(o,[n]),a=s[0],l=s.reduce(function(c,d){var u=Fm(e,d,r);return c.top=uo(u.top,c.top),c.right=nl(u.right,c.right),c.bottom=nl(u.bottom,c.bottom),c.left=uo(u.left,c.left),c},Fm(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Wm(e){var t=e.reference,n=e.element,r=e.placement,o=r?dr(r):null,s=r?Ko(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case mn:c={x:a,y:t.y-n.height};break;case Dn:c={x:a,y:t.y+t.height};break;case An:c={x:t.x+t.width,y:l};break;case gn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?wd(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(s){case Yo:c[d]=c[d]-(t[u]/2-n[u]/2);break;case oi:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function ci(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,a=s===void 0?e.strategy:s,l=n.boundary,c=l===void 0?ak:l,d=n.rootBoundary,u=d===void 0?Mm:d,f=n.elementContext,h=f===void 0?si:f,m=n.altBoundary,g=m===void 0?!1:m,y=n.padding,b=y===void 0?0:y,v=Nm(typeof b!="number"?b:$m(b,ri)),k=h===si?lk:si,S=e.rects.popper,C=e.elements[g?k:h],w=Wk(co(C)?C:C.contextElement||Vr(e.elements.popper),c,u,a),T=Go(e.elements.reference),O=Wm({reference:T,element:S,placement:o}),M=kd(Object.assign({},S,O)),j=h===si?M:T,A={top:w.top-j.top+v.top,bottom:j.bottom-w.bottom+v.bottom,left:w.left-j.left+v.left,right:j.right-w.right+v.right},L=e.modifiersData.offset;if(h===si&&L){var E=L[o];Object.keys(A).forEach(function(N){var P=[An,Dn].indexOf(N)>=0?1:-1,$=[mn,Dn].indexOf(N)>=0?"y":"x";A[N]+=E[$]*P})}return A}function zk(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?jm:c,u=Ko(r),f=u?l?Pm:Pm.filter(function(g){return Ko(g)===u}):ri,h=f.filter(function(g){return d.indexOf(g)>=0});h.length===0&&(h=f);var m=h.reduce(function(g,y){return g[y]=ci(e,{placement:y,boundary:o,rootBoundary:s,padding:a})[dr(y)],g},{});return Object.keys(m).sort(function(g,y){return m[g]-m[y]})}function Vk(e){if(dr(e)===yd)return[];var t=sl(e);return[Bm(e),t,Bm(t)]}function Hk(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,y=n.allowedAutoPlacements,b=t.options.placement,v=dr(b),k=v===b,S=c||(k||!g?[sl(b)]:Vk(b)),C=[b].concat(S).reduce(function(q,X){return q.concat(dr(X)===yd?zk(t,{placement:X,boundary:u,rootBoundary:f,padding:d,flipVariations:g,allowedAutoPlacements:y}):X)},[]),w=t.rects.reference,T=t.rects.popper,O=new Map,M=!0,j=C[0],A=0;A<C.length;A++){var L=C[A],E=dr(L),N=Ko(L)===Yo,P=[mn,Dn].indexOf(E)>=0,$=P?"width":"height",R=ci(t,{placement:L,boundary:u,rootBoundary:f,altBoundary:h,padding:d}),W=P?N?An:gn:N?Dn:mn;w[$]>T[$]&&(W=sl(W));var V=sl(W),H=[];if(s&&H.push(R[E]<=0),l&&H.push(R[W]<=0,R[V]<=0),H.every(function(q){return q})){j=L,M=!1;break}O.set(L,H)}if(M)for(var B=g?3:1,D=function(X){var G=C.find(function(K){var ae=O.get(K);if(ae)return ae.slice(0,X).every(function(le){return le})});if(G)return j=G,"break"},F=B;F>0;F--){var U=D(F);if(U==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const Uk={name:"flip",enabled:!0,phase:"main",fn:Hk,requiresIfExists:["offset"],data:{_skip:!1}};function zm(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 Vm(e){return[mn,An,Dn,gn].some(function(t){return e[t]>=0})}function Yk(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,a=ci(t,{elementContext:"reference"}),l=ci(t,{altBoundary:!0}),c=zm(a,r),d=zm(l,o,s),u=Vm(c),f=Vm(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const qk={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yk};function Gk(e,t,n){var r=dr(e),o=[gn,mn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*o,[gn,An].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function Kk(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,a=jm.reduce(function(u,f){return u[f]=Gk(f,t.rects,s),u},{}),l=a[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const Xk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Kk};function Zk(e){var t=e.state,n=e.name;t.modifiersData[n]=Wm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Jk={name:"popperOffsets",enabled:!0,phase:"read",fn:Zk,data:{}};function Qk(e){return e==="x"?"y":"x"}function eE(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,m=h===void 0?!0:h,g=n.tetherOffset,y=g===void 0?0:g,b=ci(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:u}),v=dr(t.placement),k=Ko(t.placement),S=!k,C=wd(v),w=Qk(C),T=t.modifiersData.popperOffsets,O=t.rects.reference,M=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(T){if(s){var N,P=C==="y"?mn:gn,$=C==="y"?Dn:An,R=C==="y"?"height":"width",W=T[C],V=W+b[P],H=W-b[$],B=m?-M[R]/2:0,D=k===Yo?O[R]:M[R],F=k===Yo?-M[R]:-O[R],U=t.elements.arrow,q=m&&U?xd(U):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Rm(),G=X[P],K=X[$],ae=ai(0,O[R],q[R]),le=S?O[R]/2-B-ae-G-A.mainAxis:D-ae-G-A.mainAxis,z=S?-O[R]/2+B+ae+K+A.mainAxis:F+ae+K+A.mainAxis,ee=t.elements.arrow&&ii(t.elements.arrow),_=ee?C==="y"?ee.clientTop||0:ee.clientLeft||0:0,ue=(N=L?.[C])!=null?N:0,Q=W+le-ue-_,ne=W+z-ue,we=ai(m?nl(V,Q):V,W,m?uo(H,ne):H);T[C]=we,E[C]=we-W}if(l){var ke,Ce=C==="x"?mn:gn,ve=C==="x"?Dn:An,_e=T[w],Ee=w==="y"?"height":"width",xe=_e+b[Ce],re=_e-b[ve],ie=[mn,gn].indexOf(v)!==-1,Te=(ke=L?.[w])!=null?ke:0,he=ie?xe:_e-O[Ee]-M[Ee]-Te+A.altAxis,pe=ie?_e+O[Ee]+M[Ee]-Te-A.altAxis:re,Ie=m&&ie?Tk(he,_e,pe):ai(m?he:xe,_e,m?pe:re);T[w]=Ie,E[w]=Ie-_e}t.modifiersData[r]=E}}const tE={name:"preventOverflow",enabled:!0,phase:"main",fn:eE,requiresIfExists:["offset"]};function nE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rE(e){return e===Tn(e)||!Rn(e)?Sd(e):nE(e)}function oE(e){var t=e.getBoundingClientRect(),n=qo(t.width)/e.offsetWidth||1,r=qo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function sE(e,t,n){n===void 0&&(n=!1);var r=Rn(t),o=Rn(t)&&oE(t),s=Vr(t),a=Go(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((cr(t)!=="body"||Td(s))&&(l=rE(t)),Rn(t)?(c=Go(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Cd(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function iE(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function aE(e){var t=iE(e);return bk.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function lE(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cE(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Hm={placement:"bottom",modifiers:[],strategy:"absolute"};function Um(){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 dE(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?Hm:o;return function(l,c,d){d===void 0&&(d=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hm,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],h=!1,m={state:u,setOptions:function(v){var k=typeof v=="function"?v(u.options):v;y(),u.options=Object.assign({},s,u.options,k),u.scrollParents={reference:co(l)?li(l):l.contextElement?li(l.contextElement):[],popper:li(c)};var S=aE(cE([].concat(r,u.options.modifiers)));return u.orderedModifiers=S.filter(function(C){return C.enabled}),g(),m.update()},forceUpdate:function(){if(!h){var v=u.elements,k=v.reference,S=v.popper;if(Um(k,S)){u.rects={reference:sE(k,ii(S),u.options.strategy==="fixed"),popper:xd(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(A){return u.modifiersData[A.name]=Object.assign({},A.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var w=u.orderedModifiers[C],T=w.fn,O=w.options,M=O===void 0?{}:O,j=w.name;typeof T=="function"&&(u=T({state:u,options:M,name:j,instance:m})||u)}}}},update:lE(function(){return new Promise(function(b){m.forceUpdate(),b(u)})}),destroy:function(){y(),h=!0}};if(!Um(l,c))return m;m.setOptions(d).then(function(b){!h&&d.onFirstUpdate&&d.onFirstUpdate(b)});function g(){u.orderedModifiers.forEach(function(b){var v=b.name,k=b.options,S=k===void 0?{}:k,C=b.effect;if(typeof C=="function"){var w=C({state:u,name:v,instance:m,options:S}),T=function(){};f.push(w||T)}})}function y(){f.forEach(function(b){return b()}),f=[]}return m}}var uE=[Rk,Jk,Dk,wk,Xk,Uk,tE,Mk,qk],fE=dE({defaultModifiers:uE});function fo(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...s}=e,a=o?{}:ym(n,r),{props:l,internalRef:c}=xm({...s,externalSlotProps:a}),d=qt(c,a?.ref,e.additionalProps?.ref);return gm(t,{...l,ref:d},r)}function Xo(e){return parseInt(I.version,10)>=19?e?.props?.ref||null:e?.ref||null}function pE(e){return typeof e=="function"?e():e}const di=I.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[a,l]=I.useState(null),c=qt(I.isValidElement(r)?Xo(r):null,n);if(Pn(()=>{s||l(pE(o)||document.body)},[o,s]),Pn(()=>{if(a&&!s)return am(n,a),()=>{am(n,null)}},[n,a,s]),s){if(I.isValidElement(r)){const d={ref:c};return I.cloneElement(r,d)}return r}return a&&rx.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(di.propTypes={children:i.node,container:i.oneOfType([Er,i.func]),disablePortal:i.bool}),process.env.NODE_ENV!=="production"&&(di.propTypes=za(di.propTypes));function hE(e){return Ae("MuiPopper",e)}Re("MuiPopper",["root"]);function mE(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 il(e){return typeof e=="function"?e():e}function al(e){return e.nodeType!==void 0}function gE(e){return!al(e)}const yE=e=>{const{classes:t}=e;return Ne({root:["root"]},hE,t)},bE={},vE=I.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:u,popperRef:f,slotProps:h={},slots:m={},TransitionProps:g,ownerState:y,...b}=t,v=I.useRef(null),k=qt(v,n),S=I.useRef(null),C=qt(S,f),w=I.useRef(C);Pn(()=>{w.current=C},[C]),I.useImperativeHandle(f,()=>S.current,[]);const T=mE(d,s),[O,M]=I.useState(T),[j,A]=I.useState(il(r));I.useEffect(()=>{S.current&&S.current.forceUpdate()}),I.useEffect(()=>{r&&A(il(r))},[r]),Pn(()=>{if(!j||!c)return;const $=V=>{M(V.placement)};if(process.env.NODE_ENV!=="production"&&j&&al(j)&&j.nodeType===1){const V=j.getBoundingClientRect();process.env.NODE_ENV!=="test"&&V.top===0&&V.left===0&&V.right===0&&V.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(`
178
+ `))}let R=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{$(V)}}];l!=null&&(R=R.concat(l)),u&&u.modifiers!=null&&(R=R.concat(u.modifiers));const W=fE(j,v.current,{placement:T,...u,modifiers:R});return w.current(W),()=>{W.destroy(),w.current(null)}},[j,a,l,c,u,T]);const L={placement:O};g!==null&&(L.TransitionProps=g);const E=yE(t),N=m.root??"div",P=fo({elementType:N,externalSlotProps:h.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:k},ownerState:t,className:E.root});return p.jsx(N,{...P,children:typeof o=="function"?o(L):o})}),Ym=I.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:d,open:u,placement:f="bottom",popperOptions:h=bE,popperRef:m,style:g,transition:y=!1,slotProps:b={},slots:v={},...k}=t,[S,C]=I.useState(!0),w=()=>{C(!1)},T=()=>{C(!0)};if(!c&&!u&&(!y||S))return null;let O;if(s)O=s;else if(r){const A=il(r);O=A&&al(A)?pn(A).body:pn(null).body}const M=!u&&c&&(!y||S)?"none":void 0,j=y?{in:u,onEnter:w,onExited:T}:void 0;return p.jsx(di,{disablePortal:l,container:O,children:p.jsx(vE,{anchorEl:r,direction:a,disablePortal:l,modifiers:d,ref:n,open:y?!S:u,placement:f,popperOptions:h,popperRef:m,slotProps:b,slots:v,...k,style:{position:"fixed",top:0,left:0,display:M,...g},TransitionProps:j,children:o})})});process.env.NODE_ENV!=="production"&&(Ym.propTypes={anchorEl:zr(i.oneOfType([Er,i.object,i.func]),e=>{if(e.open){const t=il(e.anchorEl);if(t&&al(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(`
179
179
  `))}else if(!t||typeof t.getBoundingClientRect!="function"||gE(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(`
180
- `))}return null}),children:i.oneOfType([i.node,i.func]),container:i.oneOfType([Er,i.func]),direction:i.oneOf(["ltr","rtl"]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.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:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.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:i.oneOf(["absolute","fixed"])}),popperRef:hn,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),transition:i.bool});const xE=te(Ym,{name:"MuiPopper",slot:"Root"})({}),ui=I.forwardRef(function(t,n){const r=_o(),o=Be({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:d,disablePortal:u,keepMounted:f,modifiers:h,open:m,placement:g,popperOptions:y,popperRef:b,transition:v,slots:T,slotProps:S,...C}=o,w=T?.root??l?.Root,k={anchorEl:s,container:d,disablePortal:u,keepMounted:f,modifiers:h,open:m,placement:g,popperOptions:y,popperRef:b,transition:v,...C};return p.jsx(xE,{as:a,direction:r?"rtl":"ltr",slots:{root:w},slotProps:S??c,...k,ref:n})});process.env.NODE_ENV!=="production"&&(ui.propTypes={anchorEl:i.oneOfType([Er,i.object,i.func]),children:i.oneOfType([i.node,i.func]),component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([Er,i.func]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.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:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.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:i.oneOf(["absolute","fixed"])}),popperRef:hn,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transition:i.bool});const wE=Cn(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function SE(e){return Ae("MuiChip",e)}const tt=Re("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),CE=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:a,clickable:l,variant:c}=e,d={root:["root",c,n&&"disabled",`size${J(r)}`,`color${J(o)}`,l&&"clickable",l&&`clickableColor${J(o)}`,a&&"deletable",a&&`deletableColor${J(o)}`,`${c}${J(o)}`],label:["label",`label${J(r)}`],avatar:["avatar",`avatar${J(r)}`,`avatarColor${J(o)}`],icon:["icon",`icon${J(r)}`,`iconColor${J(s)}`],deleteIcon:["deleteIcon",`deleteIcon${J(r)}`,`deleteIconColor${J(o)}`,`deleteIcon${J(c)}Color${J(o)}`]};return Ne(d,SE,t)},TE=te("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:a,size:l,variant:c}=n;return[{[`& .${tt.avatar}`]:t.avatar},{[`& .${tt.avatar}`]:t[`avatar${J(l)}`]},{[`& .${tt.avatar}`]:t[`avatarColor${J(r)}`]},{[`& .${tt.icon}`]:t.icon},{[`& .${tt.icon}`]:t[`icon${J(l)}`]},{[`& .${tt.icon}`]:t[`iconColor${J(o)}`]},{[`& .${tt.deleteIcon}`]:t.deleteIcon},{[`& .${tt.deleteIcon}`]:t[`deleteIcon${J(l)}`]},{[`& .${tt.deleteIcon}`]:t[`deleteIconColor${J(r)}`]},{[`& .${tt.deleteIcon}`]:t[`deleteIcon${J(c)}Color${J(r)}`]},t.root,t[`size${J(l)}`],t[`color${J(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${J(r)}`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${J(r)}`],t[c],t[`${c}${J(r)}`]]}})(Le(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${tt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${tt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${tt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${tt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${tt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${tt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${tt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${tt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${tt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Wt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${tt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${tt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${tt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${tt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Wt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${tt.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${tt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Wt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${tt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${tt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${tt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${tt.avatar}`]:{marginLeft:4},[`& .${tt.avatarSmall}`]:{marginLeft:2},[`& .${tt.icon}`]:{marginLeft:4},[`& .${tt.iconSmall}`]:{marginLeft:2},[`& .${tt.deleteIcon}`]:{marginRight:5},[`& .${tt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Wt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${tt.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${tt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${tt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),kE=te("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${J(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function qm(e){return e.key==="Backspace"||e.key==="Delete"}const Gm=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:a,color:l="default",component:c,deleteIcon:d,disabled:u=!1,icon:f,label:h,onClick:m,onDelete:g,onKeyDown:y,onKeyUp:b,size:v="medium",variant:T="filled",tabIndex:S,skipFocusWhenDisabled:C=!1,slots:w={},slotProps:k={},...O}=r,P=I.useRef(null),j=qt(P,n),A=q=>{q.stopPropagation(),g&&g(q)},L=q=>{q.currentTarget===q.target&&qm(q)&&q.preventDefault(),y&&y(q)},E=q=>{q.currentTarget===q.target&&g&&qm(q)&&g(q),b&&b(q)},R=a!==!1&&m?!0:a,M=R||g?lr:c||"div",N={...r,component:M,disabled:u,size:v,color:l,iconColor:I.isValidElement(f)&&f.props.color||l,onDelete:!!g,clickable:R,variant:T},$=CE(N),F=M===lr?{component:c||"div",focusVisibleClassName:$.focusVisible,...g&&{disableRipple:!0}}:{};let H=null;g&&(H=d&&I.isValidElement(d)?I.cloneElement(d,{className:ge(d.props.className,$.deleteIcon),onClick:A}):p.jsx(wE,{className:$.deleteIcon,onClick:A}));let z=null;o&&I.isValidElement(o)&&(z=I.cloneElement(o,{className:ge($.avatar,o.props.className)}));let _=null;f&&I.isValidElement(f)&&(_=I.cloneElement(f,{className:ge($.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&z&&_&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const D={slots:w,slotProps:k},[V,U]=qe("root",{elementType:TE,externalForwardedProps:{...D,...O},ownerState:N,shouldForwardComponentProp:!0,ref:j,className:ge($.root,s),additionalProps:{disabled:R&&u?!0:void 0,tabIndex:C&&u?-1:S,...F},getSlotProps:q=>({...q,onClick:K=>{q.onClick?.(K),m?.(K)},onKeyDown:K=>{q.onKeyDown?.(K),L(K)},onKeyUp:K=>{q.onKeyUp?.(K),E(K)}})}),[G,X]=qe("label",{elementType:kE,externalForwardedProps:D,ownerState:N,className:$.label});return p.jsxs(V,{as:M,...U,children:[z||_,p.jsx(G,{...X,children:h}),H]})});process.env.NODE_ENV!=="production"&&(Gm.propTypes={avatar:i.element,children:lm,classes:i.object,className:i.string,clickable:i.bool,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,deleteIcon:i.element,disabled:i.bool,icon:i.element,label:i.node,onClick:i.func,onDelete:i.func,onKeyDown:i.func,onKeyUp:i.func,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),skipFocusWhenDisabled:i.bool,slotProps:i.shape({label:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({label:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number,variant:i.oneOfType([i.oneOf(["filled","outlined"]),i.string])});function ll(e){return parseInt(e,10)||0}const EE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function OE(e){for(const t in e)return!1;return!0}function Km(e){return OE(e)||e.outerHeightStyle===0&&!e.overflowing}const Xm=I.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:a,value:l,...c}=t,{current:d}=I.useRef(l!=null),u=I.useRef(null),f=qt(n,u),h=I.useRef(null),m=I.useRef(null),g=I.useCallback(()=>{const S=u.current,C=m.current;if(!S||!C)return;const k=Hn(S).getComputedStyle(S);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=k.width,C.value=S.value||t.placeholder||"x",C.value.slice(-1)===`
181
- `&&(C.value+=" ");const O=k.boxSizing,P=ll(k.paddingBottom)+ll(k.paddingTop),j=ll(k.borderBottomWidth)+ll(k.borderTopWidth),A=C.scrollHeight;C.value="x";const L=C.scrollHeight;let E=A;s&&(E=Math.max(Number(s)*L,E)),o&&(E=Math.min(Number(o)*L,E)),E=Math.max(E,L);const R=E+(O==="border-box"?P+j:0),M=Math.abs(E-A)<=1;return{outerHeightStyle:R,overflowing:M}},[o,s,t.placeholder]),y=jn(()=>{const S=u.current,C=g();if(!S||!C||Km(C))return!1;const w=C.outerHeightStyle;return h.current!=null&&h.current!==w}),b=I.useCallback(()=>{const S=u.current,C=g();if(!S||!C||Km(C))return;const w=C.outerHeightStyle;h.current!==w&&(h.current=w,S.style.height=`${w}px`),S.style.overflow=C.overflowing?"hidden":""},[g]),v=I.useRef(-1);Pn(()=>{const S=Qs(b),C=u?.current;if(!C)return;const w=Hn(C);w.addEventListener("resize",S);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{y()&&(k.unobserve(C),cancelAnimationFrame(v.current),b(),v.current=requestAnimationFrame(()=>{k.observe(C)}))}),k.observe(C)),()=>{S.clear(),cancelAnimationFrame(v.current),w.removeEventListener("resize",S),k&&k.disconnect()}},[g,b,y]),Pn(()=>{b()});const T=S=>{d||b();const C=S.target,w=C.value.length,k=C.value.endsWith(`
182
- `),O=C.selectionStart===w;k&&O&&C.setSelectionRange(w,w),r&&r(S)};return p.jsxs(I.Fragment,{children:[p.jsx("textarea",{value:l,onChange:T,ref:f,rows:s,style:a,...c}),p.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:{...EE.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Xm.propTypes={className:i.string,maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),onChange:i.func,placeholder:i.string,style:i.object,value:i.oneOfType([i.arrayOf(i.string),i.number,i.string])});function Zo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const fi=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(fi.displayName="FormControlContext");function Hr(){return I.useContext(fi)}function Zm(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function cl(e,t=!1){return e&&(Zm(e.value)&&e.value!==""||t&&Zm(e.defaultValue)&&e.defaultValue!=="")}function ME(e){return e.startAdornment}function PE(e){return Ae("MuiInputBase",e)}const Jo=Re("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Jm;const dl=(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${J(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ul=(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]},jE=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:a,formControl:l,fullWidth:c,hiddenLabel:d,multiline:u,readOnly:f,size:h,startAdornment:m,type:g}=e,y={root:["root",`color${J(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",h&&h!=="medium"&&`size${J(h)}`,u&&"multiline",m&&"adornedStart",s&&"adornedEnd",d&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",m&&"inputAdornedStart",s&&"inputAdornedEnd",f&&"readOnly"]};return Ne(y,PE,t)},fl=te("div",{name:"MuiInputBase",slot:"Root",overridesResolver:dl})(Le(({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",[`&.${Jo.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%"}}]}))),pl=te("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ul})(Le(({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"},o=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] + .${Jo.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Jo.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"}}]}})),Qm=aT({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),hl=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:l,color:c,components:d={},componentsProps:u={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:m,endAdornment:g,error:y,fullWidth:b=!1,id:v,inputComponent:T="input",inputProps:S={},inputRef:C,margin:w,maxRows:k,minRows:O,multiline:P=!1,name:j,onBlur:A,onChange:L,onClick:E,onFocus:R,onKeyDown:M,onKeyUp:N,placeholder:$,readOnly:F,renderSuffix:H,rows:z,size:_,slotProps:D={},slots:V={},startAdornment:U,type:G="text",value:X,...q}=r,K=S.value!=null?S.value:X,{current:ce}=I.useRef(K!=null),de=I.useRef(),W=I.useCallback(Oe=>{process.env.NODE_ENV!=="production"&&Oe&&Oe.nodeName!=="INPUT"&&!Oe.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(`
183
- `))},[]),ee=qt(de,C,S.ref,W),[B,ue]=I.useState(!1),Q=Hr();process.env.NODE_ENV!=="production"&&I.useEffect(()=>{if(Q)return Q.registerEffect()},[Q]);const ne=Zo({props:r,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ne.focused=Q?Q.focused:B,I.useEffect(()=>{!Q&&h&&B&&(ue(!1),A&&A())},[Q,h,B,A]);const we=Q&&Q.onFilled,ke=Q&&Q.onEmpty,Ce=I.useCallback(Oe=>{cl(Oe)?we&&we():ke&&ke()},[we,ke]);Pn(()=>{ce&&Ce({value:K})},[K,Ce,ce]);const ve=Oe=>{R&&R(Oe),S.onFocus&&S.onFocus(Oe),Q&&Q.onFocus?Q.onFocus(Oe):ue(!0)},_e=Oe=>{A&&A(Oe),S.onBlur&&S.onBlur(Oe),Q&&Q.onBlur?Q.onBlur(Oe):ue(!1)},Ee=(Oe,...Tt)=>{if(!ce){const st=Oe.target||de.current;if(st==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.":Qn(1));Ce({value:st.value})}S.onChange&&S.onChange(Oe,...Tt),L&&L(Oe,...Tt)};I.useEffect(()=>{Ce(de.current)},[]);const xe=Oe=>{de.current&&Oe.currentTarget===Oe.target&&de.current.focus(),E&&E(Oe)};let re=T,ie=S;P&&re==="input"&&(z?(process.env.NODE_ENV!=="production"&&(O||k)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ie={type:void 0,minRows:z,maxRows:z,...ie}):ie={type:void 0,maxRows:k,minRows:O,...ie},re=Xm);const Te=Oe=>{Ce(Oe.animationName==="mui-auto-fill-cancel"?de.current:{value:"x"})};I.useEffect(()=>{Q&&Q.setAdornedStart(!!U)},[Q,U]);const he={...r,color:ne.color||"primary",disabled:ne.disabled,endAdornment:g,error:ne.error,focused:ne.focused,formControl:Q,fullWidth:b,hiddenLabel:ne.hiddenLabel,multiline:P,size:ne.size,startAdornment:U,type:G},pe=jE(he),Ie=V.root||d.Root||fl,Fe=D.root||u.root||{},He=V.input||d.Input||pl;return ie={...ie,...D.input??u.input},p.jsxs(I.Fragment,{children:[!m&&typeof Qm=="function"&&(Jm||(Jm=p.jsx(Qm,{}))),p.jsxs(Ie,{...Fe,ref:n,onClick:xe,...q,...!Ja(Ie)&&{ownerState:{...he,...Fe.ownerState}},className:ge(pe.root,Fe.className,l,F&&"MuiInputBase-readOnly"),children:[U,p.jsx(fi.Provider,{value:null,children:p.jsx(He,{"aria-invalid":ne.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:f,disabled:ne.disabled,id:v,onAnimationStart:Te,name:j,placeholder:$,readOnly:F,required:ne.required,rows:z,value:K,onKeyDown:M,onKeyUp:N,type:G,...ie,...!Ja(He)&&{as:re,ownerState:{...he,...ie.ownerState}},ref:ee,className:ge(pe.input,ie.className,F&&"MuiInputBase-readOnly"),onBlur:_e,onChange:Ee,onFocus:ve})}),g,H?H({...ne,startAdornment:U}):null]})]})});process.env.NODE_ENV!=="production"&&(hl.propTypes={"aria-describedby":i.string,autoComplete:i.string,autoFocus:i.bool,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableInjectingGlobalStyles:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:fd,inputProps:i.object,inputRef:hn,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClick:i.func,onFocus:i.func,onInvalid:i.func,onKeyDown:i.func,onKeyUp:i.func,placeholder:i.string,readOnly:i.bool,renderSuffix:i.func,required:i.bool,rows:i.oneOfType([i.number,i.string]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any});function IE(e){return Ae("MuiInput",e)}const pi={...Jo,...Re("MuiInput",["root","underline","input"])};function DE(e){return Ae("MuiOutlinedInput",e)}const ur={...Jo,...Re("MuiOutlinedInput",["root","notchedOutline","input"])};function AE(e){return Ae("MuiFilledInput",e)}const po={...Jo,...Re("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},RE=Cn(p.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function NE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function eg(e,t,n,r,o){const s=e[t],a=o||t;if(s==null||typeof window>"u")return null;let l;const c=s.type;return typeof c=="function"&&!NE(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Qo=zr(i.element,eg);Qo.isRequired=zr(i.element.isRequired,eg);const $E={entering:{opacity:1},entered:{opacity:1}},hi=I.forwardRef(function(t,n){const r=gt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:c,in:d,onEnter:u,onEntered:f,onEntering:h,onExit:m,onExited:g,onExiting:y,style:b,timeout:v=o,TransitionComponent:T=ir,...S}=t,C=I.useRef(null),w=qt(C,Xo(l),n),k=M=>N=>{if(M){const $=C.current;N===void 0?M($):M($,N)}},O=k(h),P=k((M,N)=>{mm(M);const $=Za({style:b,timeout:v,easing:c},{mode:"enter"});M.style.webkitTransition=r.transitions.create("opacity",$),M.style.transition=r.transitions.create("opacity",$),u&&u(M,N)}),j=k(f),A=k(y),L=k(M=>{const N=Za({style:b,timeout:v,easing:c},{mode:"exit"});M.style.webkitTransition=r.transitions.create("opacity",N),M.style.transition=r.transitions.create("opacity",N),m&&m(M)}),E=k(g),R=M=>{s&&s(C.current,M)};return p.jsx(T,{appear:a,in:d,nodeRef:C,onEnter:P,onEntered:j,onEntering:O,onExit:L,onExited:E,onExiting:A,addEndListener:R,timeout:v,...S,children:(M,{ownerState:N,...$})=>I.cloneElement(l,{style:{opacity:0,visibility:M==="exited"&&!d?"hidden":void 0,...$E[M],...b,...l.props.style},ref:w,...$})})});process.env.NODE_ENV!=="production"&&(hi.propTypes={addEndListener:i.func,appear:i.bool,children:Qo.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function LE(e){return Ae("MuiBackdrop",e)}Re("MuiBackdrop",["root","invisible"]);const BE=e=>{const{classes:t,invisible:n}=e;return Ne({root:["root",n&&"invisible"]},LE,t)},_E=te("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"}}]}),ml=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:a="div",invisible:l=!1,open:c,components:d={},componentsProps:u={},slotProps:f={},slots:h={},TransitionComponent:m,transitionDuration:g,...y}=r,b={...r,component:a,invisible:l},v=BE(b),T={transition:m,root:d.Root,...h},S={...u,...f},C={component:a,slots:T,slotProps:S},[w,k]=qe("root",{elementType:_E,externalForwardedProps:C,className:ge(v.root,s),ownerState:b}),[O,P]=qe("transition",{elementType:hi,externalForwardedProps:C,ownerState:b});return p.jsx(O,{in:c,timeout:g,...y,...P,children:p.jsx(w,{"aria-hidden":!0,...k,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(ml.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.object}),invisible:i.bool,open:i.bool.isRequired,slotProps:i.shape({root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function FE(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=Om({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:l,max:c=r}=a?s:e,d=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:a,max:c,displayValue:d}}function WE(e){return Ae("MuiBadge",e)}const Ur=Re("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Ed=10,Od=4,zE=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:a={}}=e,l={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${J(n.vertical)}${J(n.horizontal)}`,`anchorOrigin${J(n.vertical)}${J(n.horizontal)}${J(o)}`,`overlap${J(o)}`,t!=="default"&&`color${J(t)}`]};return Ne(l,WE,a)},VE=te("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),HE=te("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${J(n.anchorOrigin.vertical)}${J(n.anchorOrigin.horizontal)}${J(n.overlap)}`],n.color!=="default"&&t[`color${J(n.color)}`],n.invisible&&t.invisible]}})(Le(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Ed*2,lineHeight:1,padding:"0 6px",height:Ed*2,borderRadius:Ed,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Wt(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Od,height:Od*2,minWidth:Od*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function tg(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const Md=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:s,classes:a,component:l,components:c={},componentsProps:d={},children:u,overlap:f="rectangular",color:h="default",invisible:m=!1,max:g=99,badgeContent:y,slots:b,slotProps:v,showZero:T=!1,variant:S="standard",...C}=r,{badgeContent:w,invisible:k,max:O,displayValue:P}=FE({max:g,invisible:m,badgeContent:y,showZero:T}),j=Om({anchorOrigin:tg(o),color:h,overlap:f,variant:S,badgeContent:y}),A=k||w==null&&S!=="dot",{color:L=h,overlap:E=f,anchorOrigin:R,variant:M=S}=A?j:r,N=tg(R),$=M!=="dot"?P:void 0,F={...r,badgeContent:w,invisible:A,max:O,displayValue:$,showZero:T,anchorOrigin:N,color:L,overlap:E,variant:M},H=zE(F),z={slots:{root:b?.root??c.Root,badge:b?.badge??c.Badge},slotProps:{root:v?.root??d.root,badge:v?.badge??d.badge}},[_,D]=qe("root",{elementType:VE,externalForwardedProps:{...z,...C},ownerState:F,className:ge(H.root,s),ref:n,additionalProps:{as:l}}),[V,U]=qe("badge",{elementType:HE,externalForwardedProps:z,ownerState:F,className:H.badge});return p.jsxs(_,{...D,children:[u,p.jsx(V,{...U,children:$})]})});process.env.NODE_ENV!=="production"&&(Md.propTypes={anchorOrigin:i.shape({horizontal:i.oneOf(["left","right"]),vertical:i.oneOf(["bottom","top"])}),badgeContent:i.node,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,components:i.shape({Badge:i.elementType,Root:i.elementType}),componentsProps:i.shape({badge:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),invisible:i.bool,max:i.number,overlap:i.oneOf(["circular","rectangular"]),showZero:i.bool,slotProps:i.shape({badge:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({badge:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["dot","standard"]),i.string])});const UE=Re("MuiBox",["root"]),YE=Js(),se=vS({themeId:er,defaultTheme:YE,defaultClassName:UE.root,generateClassName:bh.generate});process.env.NODE_ENV!=="production"&&(se.propTypes={children:i.node,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const qE=Cn(p.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),GE=te(lr,{name:"MuiBreadcrumbCollapsed"})(Le(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:Kc(e.palette.grey[200],.12)}:{backgroundColor:Kc(e.palette.grey[600],.12)}}}))),KE=te(qE)({width:24,height:16});function ng(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return p.jsx("li",{children:p.jsx(GE,{focusRipple:!0,...r,ownerState:o,children:p.jsx(KE,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}process.env.NODE_ENV!=="production"&&(ng.propTypes={slotProps:i.shape({collapsedIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({CollapsedIcon:i.elementType}),sx:i.object});function XE(e){return Ae("MuiBreadcrumbs",e)}const ZE=Re("MuiBreadcrumbs",["root","ol","li","separator"]),JE=e=>{const{classes:t}=e;return Ne({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},XE,t)},QE=te(pt,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${ZE.li}`]:t.li},t.root]})({}),eO=te("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),tO=te("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function nO(e,t,n,r){return e.reduce((o,s,a)=>(a<e.length-1?o=o.concat(s,p.jsx(tO,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(s),o),[])}const rg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiBreadcrumbs"}),{children:o,className:s,component:a="nav",slots:l={},slotProps:c={},expandText:d="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:f=1,maxItems:h=8,separator:m="/",...g}=r,[y,b]=I.useState(!1),v={...r,component:a,expanded:y,expandText:d,itemsAfterCollapse:u,itemsBeforeCollapse:f,maxItems:h,separator:m},T=JE(v),S=fo({elementType:l.CollapsedIcon,externalSlotProps:c.collapsedIcon,ownerState:v}),C=I.useRef(null),w=O=>{const P=()=>{b(!0);const j=C.current.querySelector("a[href],button,[tabindex]");j&&j.focus()};return f+u>=O.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${u}} + itemsBeforeCollapse={${f}} >= maxItems={${h}}`].join(`
184
- `)),O):[...O.slice(0,f),p.jsx(ng,{"aria-label":d,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:S},onClick:P},"ellipsis"),...O.slice(O.length-u,O.length)]},k=I.Children.toArray(o).filter(O=>(process.env.NODE_ENV!=="production"&&Cr.isFragment(O)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
185
- `)),I.isValidElement(O))).map((O,P)=>p.jsx("li",{className:T.li,children:O},`child-${P}`));return p.jsx(QE,{ref:n,component:a,color:"textSecondary",className:ge(T.root,s),ownerState:v,...g,children:p.jsx(eO,{className:T.ol,ref:C,ownerState:v,children:nO(y||h&&k.length<=h?k:w(k),T.separator,m,v)})})});process.env.NODE_ENV!=="production"&&(rg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,expandText:i.string,itemsAfterCollapse:ar,itemsBeforeCollapse:ar,maxItems:ar,separator:i.node,slotProps:i.shape({collapsedIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({CollapsedIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function rO(e){return Ae("MuiButton",e)}const ho=Re("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),og=I.createContext({});process.env.NODE_ENV!=="production"&&(og.displayName="ButtonGroupContext");const sg=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(sg.displayName="ButtonGroupButtonContext");const oO=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,loading:a,loadingPosition:l,classes:c}=e,d={root:["root",a&&"loading",s,`${s}${J(t)}`,`size${J(o)}`,`${s}Size${J(o)}`,`color${J(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${J(l)}`],startIcon:["icon","startIcon",`iconSize${J(o)}`],endIcon:["icon","endIcon",`iconSize${J(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Ne(d,rO,c);return{...c,...u}},ig=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],sO=te(lr,{shouldForwardProp:e=>Sn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${J(n.color)}`],t[`size${J(n.size)}`],t[`${n.variant}Size${J(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Le(({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"},[`&.${ho.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]},[`&.${ho.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ho.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)",[`&.${ho.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(Wt()).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"},[`&.${ho.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ho.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}),[`&.${ho.loading}`]:{color:"transparent"}}}]}})),iO=te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${J(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...ig]})),aO=te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${J(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...ig]})),lO=te("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}}]})),ag=te("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),gl=I.forwardRef(function(t,n){const r=I.useContext(og),o=I.useContext(sg),s=Gs(r,t),a=Be({props:s,name:"MuiButton"}),{children:l,color:c="primary",component:d="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:y,fullWidth:b=!1,id:v,loading:T=null,loadingIndicator:S,loadingPosition:C="center",size:w="medium",startIcon:k,type:O,variant:P="text",...j}=a,A=so(v),L=S??p.jsx(Uo,{"aria-labelledby":A,color:"inherit",size:16}),E={...a,color:c,component:d,disabled:f,disableElevation:h,disableFocusRipple:m,fullWidth:b,loading:T,loadingIndicator:L,loadingPosition:C,size:w,type:O,variant:P},R=oO(E),M=(k||T&&C==="start")&&p.jsx(iO,{className:R.startIcon,ownerState:E,children:k||p.jsx(ag,{className:R.loadingIconPlaceholder,ownerState:E})}),N=(g||T&&C==="end")&&p.jsx(aO,{className:R.endIcon,ownerState:E,children:g||p.jsx(ag,{className:R.loadingIconPlaceholder,ownerState:E})}),$=o||"",F=typeof T=="boolean"?p.jsx("span",{className:R.loadingWrapper,style:{display:"contents"},children:T&&p.jsx(lO,{className:R.loadingIndicator,ownerState:E,children:L})}):null;return p.jsxs(sO,{ownerState:E,className:ge(r.className,R.root,u,$),component:d,disabled:f||T,focusRipple:!m,focusVisibleClassName:ge(R.focusVisible,y),ref:n,type:O,id:T?A:v,...j,classes:R,children:[M,C!=="end"&&F,l,C==="end"&&F,N]})});process.env.NODE_ENV!=="production"&&(gl.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","success","error","info","warning"]),i.string]),component:i.elementType,disabled:i.bool,disableElevation:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,endIcon:i.node,focusVisibleClassName:i.string,fullWidth:i.bool,href:i.string,id:i.string,loading:i.bool,loadingIndicator:i.node,loadingPosition:i.oneOf(["center","end","start"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),startIcon:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string]),variant:i.oneOfType([i.oneOf(["contained","outlined","text"]),i.string])});function cO(e){return Ae("PrivateSwitchBase",e)}Re("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const dO=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${J(o)}`],input:["input"]};return Ne(s,cO,t)},uO=te(lr,{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}}]}),fO=te("input",{name:"MuiSwitchBase",shouldForwardProp:Sn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Pd=I.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:u,id:f,inputProps:h,inputRef:m,name:g,onBlur:y,onChange:b,onFocus:v,readOnly:T,required:S=!1,tabIndex:C,type:w,value:k,slots:O={},slotProps:P={},...j}=t,[A,L]=ei({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),E=Hr(),R=X=>{v&&v(X),E&&E.onFocus&&E.onFocus(X)},M=X=>{y&&y(X),E&&E.onBlur&&E.onBlur(X)},N=X=>{if(X.nativeEvent.defaultPrevented||T)return;const q=X.target.checked;L(q),b&&b(X,q)};let $=l;E&&typeof $>"u"&&($=E.disabled);const F=w==="checkbox"||w==="radio",H={...t,checked:A,disabled:$,disableFocusRipple:c,edge:d},z=dO(H),_={slots:O,slotProps:{input:h,...P}},[D,V]=qe("root",{ref:n,elementType:uO,className:z.root,shouldForwardComponentProp:!0,externalForwardedProps:{..._,component:"span",...j},getSlotProps:X=>({...X,onFocus:q=>{X.onFocus?.(q),R(q)},onBlur:q=>{X.onBlur?.(q),M(q)}}),ownerState:H,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:$,role:void 0,tabIndex:null}}),[U,G]=qe("input",{ref:m,elementType:fO,className:z.input,externalForwardedProps:_,getSlotProps:X=>({...X,onChange:q=>{X.onChange?.(q),N(q)}}),ownerState:H,additionalProps:{autoFocus:r,checked:o,defaultChecked:a,disabled:$,id:F?f:void 0,name:g,readOnly:T,required:S,tabIndex:C,type:w,...w==="checkbox"&&k===void 0?{}:{value:k}}});return p.jsxs(D,{...V,children:[p.jsx(U,{...G}),A?s:u]})});process.env.NODE_ENV!=="production"&&(Pd.propTypes={autoFocus:i.bool,checked:i.bool,checkedIcon:i.node.isRequired,classes:i.object,className:i.string,defaultChecked:i.bool,disabled:i.bool,disableFocusRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node.isRequired,id:i.string,inputProps:i.object,inputRef:hn,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,readOnly:i.bool,required:i.bool,slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.string.isRequired,value:i.any});const pO=Cn(p.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"),hO=Cn(p.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"),mO=Cn(p.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 gO(e){return Ae("MuiCheckbox",e)}const jd=Re("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),yO=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${J(r)}`,`size${J(o)}`]},a=Ne(s,gO,t);return{...t,...a}},bO=te(Pd,{shouldForwardProp:e=>Sn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${J(n.size)}`],n.color!=="default"&&t[`color${J(n.color)}`]]}})(Le(({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(Wt()).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(Wt()).map(([t])=>({props:{color:t},style:{[`&.${jd.checked}, &.${jd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${jd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),vO=p.jsx(hO,{}),xO=p.jsx(pO,{}),wO=p.jsx(mO,{}),lg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiCheckbox"}),{checkedIcon:o=vO,color:s="primary",icon:a=xO,indeterminate:l=!1,indeterminateIcon:c=wO,inputProps:d,size:u="medium",disableRipple:f=!1,className:h,slots:m={},slotProps:g={},...y}=r,b=l?c:a,v=l?c:o,T={...r,disableRipple:f,color:s,indeterminate:l,size:u},S=yO(T),C=g.input??d,[w,k]=qe("root",{ref:n,elementType:bO,className:ge(S.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:m,slotProps:g,...y},ownerState:T,additionalProps:{type:"checkbox",icon:I.cloneElement(b,{fontSize:b.props.fontSize??u}),checkedIcon:I.cloneElement(v,{fontSize:v.props.fontSize??u}),disableRipple:f,slots:m,slotProps:{input:cm(typeof C=="function"?C(T):C,{"data-indeterminate":l})}}});return p.jsx(w,{...k,classes:S})});process.env.NODE_ENV!=="production"&&(lg.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,icon:i.node,id:i.string,indeterminate:i.bool,indeterminateIcon:i.node,inputProps:i.object,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function cg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function SO(e){const t=pn(e);return t.body===e?Hn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function mi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function dg(e){return parseFloat(Hn(e).getComputedStyle(e).paddingRight)||0}function CO(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 ug(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,a=>{const l=!s.includes(a),c=!CO(a);l&&c&&mi(a,o)})}function Id(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function TO(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(SO(r)){const a=cg(Hn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${dg(r)+a}px`;const l=pn(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${dg(c)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=pn(r).body;else{const a=r.parentElement,l=Hn(r);s=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:l})=>{s?a.style.setProperty(l,s):a.style.removeProperty(l)})}}function kO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class EO{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&&mi(t.modalRef,!1);const o=kO(n);ug(n,t.mount,t.modalRef,o,!0);const s=Id(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:o}),r)}mount(t,n){const r=Id(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=TO(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Id(this.containers,a=>a.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&mi(t.modalRef,n),ug(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&mi(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function es(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const OO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function MO(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 PO(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 jO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||PO(e))}function IO(e){const t=[],n=[];return Array.from(e.querySelectorAll(OO)).forEach((r,o)=>{const s=MO(r);s===-1||!jO(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function DO(){return!0}function yl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=IO,isEnabled:a=DO,open:l}=e,c=I.useRef(!1),d=I.useRef(null),u=I.useRef(null),f=I.useRef(null),h=I.useRef(null),m=I.useRef(!1),g=I.useRef(null),y=qt(Xo(t),g),b=I.useRef(null);I.useEffect(()=>{!l||!g.current||(m.current=!n)},[n,l]),I.useEffect(()=>{if(!l||!g.current)return;const S=pn(g.current),C=es(S);return g.current.contains(C)||(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(`
186
- `)),g.current.setAttribute("tabIndex","-1")),m.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),I.useEffect(()=>{if(!l||!g.current)return;const S=pn(g.current),C=O=>{if(b.current=O,r||!a()||O.key!=="Tab")return;es(S)===g.current&&O.shiftKey&&(c.current=!0,u.current&&u.current.focus())},w=()=>{const O=g.current;if(O===null)return;const P=es(S);if(!S.hasFocus()||!a()||c.current){c.current=!1;return}if(O.contains(P)||r&&P!==d.current&&P!==u.current)return;if(P!==h.current)h.current=null;else if(h.current!==null)return;if(!m.current)return;let j=[];if((P===d.current||P===u.current)&&(j=s(g.current)),j.length>0){const A=!!(b.current?.shiftKey&&b.current?.key==="Tab"),L=j[0],E=j[j.length-1];typeof L!="string"&&typeof E!="string"&&(A?E.focus():L.focus())}else O.focus()};S.addEventListener("focusin",w),S.addEventListener("keydown",C,!0);const k=setInterval(()=>{const O=es(S);O&&O.tagName==="BODY"&&w()},50);return()=>{clearInterval(k),S.removeEventListener("focusin",w),S.removeEventListener("keydown",C,!0)}},[n,r,o,a,l,s]);const v=S=>{f.current===null&&(f.current=S.relatedTarget),m.current=!0,h.current=S.target;const C=t.props.onFocus;C&&C(S)},T=S=>{f.current===null&&(f.current=S.relatedTarget),m.current=!0};return p.jsxs(I.Fragment,{children:[p.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:d,"data-testid":"sentinelStart"}),I.cloneElement(t,{ref:y,onFocus:v}),p.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(yl.propTypes={children:Qo,disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableRestoreFocus:i.bool,getTabbable:i.func,isEnabled:i.func,open:i.bool.isRequired}),process.env.NODE_ENV!=="production"&&(yl.propTypes=za(yl.propTypes));function AO(e){return typeof e=="function"?e():e}function RO(e){return e?e.props.hasOwnProperty("in"):!1}const fg=()=>{},bl=new EO;function NO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:u}=e,f=I.useRef({}),h=I.useRef(null),m=I.useRef(null),g=qt(m,u),[y,b]=I.useState(!d),v=RO(l);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const S=()=>pn(h.current),C=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),w=()=>{bl.mount(C(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},k=jn(()=>{const N=AO(t)||S().body;bl.add(C(),N),m.current&&w()}),O=()=>bl.isTopModal(C()),P=jn(N=>{h.current=N,N&&(d&&O()?w():m.current&&mi(m.current,T))}),j=I.useCallback(()=>{bl.remove(C(),T)},[T]);I.useEffect(()=>()=>{j()},[j]),I.useEffect(()=>{d?k():(!v||!o)&&j()},[d,j,v,o,k]);const A=N=>$=>{N.onKeyDown?.($),!($.key!=="Escape"||$.which===229||!O())&&(n||($.stopPropagation(),c&&c($,"escapeKeyDown")))},L=N=>$=>{N.onClick?.($),$.target===$.currentTarget&&c&&c($,"backdropClick")};return{getRootProps:(N={})=>{const $=bm(e);delete $.onTransitionEnter,delete $.onTransitionExited;const F={...$,...N};return{role:"presentation",...F,onKeyDown:A(F),ref:g}},getBackdropProps:(N={})=>{const $=N;return{"aria-hidden":!0,...$,onClick:L($),open:d}},getTransitionProps:()=>{const N=()=>{b(!1),s&&s()},$=()=>{b(!0),a&&a(),o&&j()};return{onEnter:sm(N,l?.props.onEnter??fg),onExited:sm($,l?.props.onExited??fg)}},rootRef:g,portalRef:P,isTopModal:O,exited:y,hasTransition:v}}function $O(e){return Ae("MuiModal",e)}Re("MuiModal",["root","hidden","backdrop"]);const LO=e=>{const{open:t,exited:n,classes:r}=e;return Ne({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},$O,r)},BO=te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Le(({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"}}]}))),_O=te(ml,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Dd=I.forwardRef(function(t,n){const r=Be({name:"MuiModal",props:t}),{BackdropComponent:o=_O,BackdropProps:s,classes:a,className:l,closeAfterTransition:c=!1,children:d,container:u,component:f,components:h={},componentsProps:m={},disableAutoFocus:g=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:b=!1,disablePortal:v=!1,disableRestoreFocus:T=!1,disableScrollLock:S=!1,hideBackdrop:C=!1,keepMounted:w=!1,onClose:k,onTransitionEnter:O,onTransitionExited:P,open:j,slotProps:A={},slots:L={},theme:E,...R}=r,M={...r,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:y,disableEscapeKeyDown:b,disablePortal:v,disableRestoreFocus:T,disableScrollLock:S,hideBackdrop:C,keepMounted:w},{getRootProps:N,getBackdropProps:$,getTransitionProps:F,portalRef:H,isTopModal:z,exited:_,hasTransition:D}=NO({...M,rootRef:n}),V={...M,exited:_},U=LO(V),G={};if(d.props.tabIndex===void 0&&(G.tabIndex="-1"),D){const{onEnter:W,onExited:ee}=F();G.onEnter=W,G.onExited=ee}const X={slots:{root:h.Root,backdrop:h.Backdrop,...L},slotProps:{...m,...A}},[q,K]=qe("root",{ref:n,elementType:BO,externalForwardedProps:{...X,...R,component:f},getSlotProps:N,ownerState:V,className:ge(l,U?.root,!V.open&&V.exited&&U?.hidden)}),[ce,de]=qe("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:X,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:W=>$({...W,onClick:ee=>{W?.onClick&&W.onClick(ee)}}),className:ge(s?.className,U?.backdrop),ownerState:V});return!w&&!j&&(!D||_)?null:p.jsx(di,{ref:H,container:u,disablePortal:v,children:p.jsxs(q,{...K,children:[!C&&o?p.jsx(ce,{...de}):null,p.jsx(yl,{disableEnforceFocus:y,disableAutoFocus:g,disableRestoreFocus:T,isEnabled:z,open:j,children:I.cloneElement(d,G)})]})})});process.env.NODE_ENV!=="production"&&(Dd.propTypes={BackdropComponent:i.elementType,BackdropProps:i.object,children:Qo.isRequired,classes:i.object,className:i.string,closeAfterTransition:i.bool,component:i.elementType,components:i.shape({Backdrop:i.elementType,Root:i.elementType}),componentsProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([Er,i.func]),disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableEscapeKeyDown:i.bool,disablePortal:i.bool,disableRestoreFocus:i.bool,disableScrollLock:i.bool,hideBackdrop:i.bool,keepMounted:i.bool,onClose:i.func,onTransitionEnter:i.func,onTransitionExited:i.func,open:i.bool.isRequired,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function FO(e){return Ae("MuiDialog",e)}const Ad=Re("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),pg=I.createContext({});process.env.NODE_ENV!=="production"&&(pg.displayName="DialogContext");const WO=te(ml,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),zO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${J(n)}`],paper:["paper",`paperScroll${J(n)}`,`paperWidth${J(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return Ne(a,FO,t)},VO=te(Dd,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),HO=te("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${J(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"}}}]}),UO=te(ni,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${J(n.scroll)}`],t[`paperWidth${J(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Le(({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)`,[`&.${Ad.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}`,[`&.${Ad.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,[`&.${Ad.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Rd=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiDialog"}),o=gt(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:d,BackdropProps:u,children:f,className:h,disableEscapeKeyDown:m=!1,fullScreen:g=!1,fullWidth:y=!1,maxWidth:b="sm",onClick:v,onClose:T,open:S,PaperComponent:C=ni,PaperProps:w={},scroll:k="paper",slots:O={},slotProps:P={},TransitionComponent:j=hi,transitionDuration:A=s,TransitionProps:L,...E}=r,R={...r,disableEscapeKeyDown:m,fullScreen:g,fullWidth:y,maxWidth:b,scroll:k},M=zO(R),N=I.useRef(),$=ue=>{N.current=ue.target===ue.currentTarget},F=ue=>{v&&v(ue),N.current&&(N.current=null,T&&T(ue,"backdropClick"))},H=so(l),z=I.useMemo(()=>({titleId:H}),[H]),_={transition:j,...O},D={transition:L,paper:w,backdrop:u,...P},V={slots:_,slotProps:D},[U,G]=qe("root",{elementType:VO,shouldForwardComponentProp:!0,externalForwardedProps:V,ownerState:R,className:ge(M.root,h),ref:n}),[X,q]=qe("backdrop",{elementType:WO,shouldForwardComponentProp:!0,externalForwardedProps:V,ownerState:R,className:M.backdrop}),[K,ce]=qe("paper",{elementType:UO,shouldForwardComponentProp:!0,externalForwardedProps:V,ownerState:R,className:ge(M.paper,w.className)}),[de,W]=qe("container",{elementType:HO,externalForwardedProps:V,ownerState:R,className:M.container}),[ee,B]=qe("transition",{elementType:hi,externalForwardedProps:V,ownerState:R,additionalProps:{appear:!0,in:S,timeout:A,role:"presentation"}});return p.jsx(U,{closeAfterTransition:!0,slots:{backdrop:X},slotProps:{backdrop:{transitionDuration:A,as:d,...q}},disableEscapeKeyDown:m,onClose:T,open:S,onClick:F,...G,...E,children:p.jsx(ee,{...B,children:p.jsx(de,{onMouseDown:$,...W,children:p.jsx(K,{as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":H,"aria-modal":c,...ce,children:p.jsx(pg.Provider,{value:z,children:f})})})})})});process.env.NODE_ENV!=="production"&&(Rd.propTypes={"aria-describedby":i.string,"aria-labelledby":i.string,"aria-modal":i.oneOfType([i.oneOf(["false","true"]),i.bool]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,disableEscapeKeyDown:i.bool,fullScreen:i.bool,fullWidth:i.bool,maxWidth:i.oneOfType([i.oneOf(["xs","sm","md","lg","xl",!1]),i.string]),onClick:i.func,onClose:i.func,open:i.bool.isRequired,PaperComponent:i.elementType,PaperProps:i.object,scroll:i.oneOf(["body","paper"]),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),container:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,container:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function YO(e){return Ae("MuiDialogActions",e)}Re("MuiDialogActions",["root","spacing"]);const qO=e=>{const{classes:t,disableSpacing:n}=e;return Ne({root:["root",!n&&"spacing"]},YO,t)},GO=te("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}}}]}),Nd=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...a}=r,l={...r,disableSpacing:s},c=qO(l);return p.jsx(GO,{className:ge(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Nd.propTypes={children:i.node,classes:i.object,className:i.string,disableSpacing:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function KO(e){return Ae("MuiDialogContent",e)}Re("MuiDialogContent",["root","dividers"]);const XO=Re("MuiDialogTitle",["root"]),ZO=e=>{const{classes:t,dividers:n}=e;return Ne({root:["root",n&&"dividers"]},KO,t)},JO=te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Le(({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:{[`.${XO.root} + &`]:{paddingTop:0}}}]}))),$d=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...a}=r,l={...r,dividers:s},c=ZO(l);return p.jsx(JO,{className:ge(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&($d.propTypes={children:i.node,classes:i.object,className:i.string,dividers:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function QO(e){return Ae("MuiDivider",e)}Re("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const e3=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:a,textAlign:l,variant:c}=e;return Ne({root:["root",t&&"absolute",c,s&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},QO,r)},t3=te("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]}})(Le(({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%"}}}]}))),n3=te("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Le(({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)`}}]}))),ts=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:a,orientation:l="horizontal",component:c=s||l==="vertical"?"div":"hr",flexItem:d=!1,light:u=!1,role:f=c!=="hr"?"separator":void 0,textAlign:h="center",variant:m="fullWidth",...g}=r,y={...r,absolute:o,component:c,flexItem:d,light:u,orientation:l,role:f,textAlign:h,variant:m},b=e3(y);return p.jsx(t3,{as:c,className:ge(b.root,a),role:f,ref:n,ownerState:y,"aria-orientation":f==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...g,children:s?p.jsx(n3,{className:b.wrapper,ownerState:y,children:s}):null})});ts&&(ts.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(ts.propTypes={absolute:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,flexItem:i.bool,light:i.bool,orientation:i.oneOf(["horizontal","vertical"]),role:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),textAlign:i.oneOf(["center","left","right"]),variant:i.oneOfType([i.oneOf(["fullWidth","inset","middle"]),i.string])});const r3=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:s,hiddenLabel:a,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${J(s)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},d=Ne(c,AE,t);return{...t,...d}},o3=te(fl,{shouldForwardProp:e=>Sn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...dl(e,t),!n.disableUnderline&&t.underline]}})(Le(({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)",o=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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${po.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${po.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"},[`&.${po.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${po.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(.${po.disabled}, .${po.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${po.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Wt()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),s3=te(pl,{name:"MuiFilledInput",slot:"Input",overridesResolver:ul})(Le(({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}}]}))),vl=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:a,fullWidth:l=!1,hiddenLabel:c,inputComponent:d="input",multiline:u=!1,slotProps:f,slots:h={},type:m="text",...g}=r,y={...r,disableUnderline:o,fullWidth:l,inputComponent:d,multiline:u,type:m},b=r3(r),v={root:{ownerState:y},input:{ownerState:y}},T=f??a?Yt(v,f??a):v,S=h.root??s.Root??o3,C=h.input??s.Input??s3;return p.jsx(hl,{slots:{root:S,input:C},slotProps:T,fullWidth:l,inputComponent:d,multiline:u,ref:n,type:m,...g,classes:b})});process.env.NODE_ENV!=="production"&&(vl.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:hn,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),vl.muiName="Input";function i3(e){return Ae("MuiFormControl",e)}Re("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const a3=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${J(n)}`,r&&"fullWidth"]};return Ne(o,i3,t)},l3=te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${J(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%"}}]}),hg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiFormControl"}),{children:o,className:s,color:a="primary",component:l="div",disabled:c=!1,error:d=!1,focused:u,fullWidth:f=!1,hiddenLabel:h=!1,margin:m="none",required:g=!1,size:y="medium",variant:b="outlined",...v}=r,T={...r,color:a,component:l,disabled:c,error:d,fullWidth:f,hiddenLabel:h,margin:m,required:g,size:y,variant:b},S=a3(T),[C,w]=I.useState(()=>{let $=!1;return o&&I.Children.forEach(o,F=>{if(!Ha(F,["Input","Select"]))return;const H=Ha(F,["Select"])?F.props.input:F;H&&ME(H.props)&&($=!0)}),$}),[k,O]=I.useState(()=>{let $=!1;return o&&I.Children.forEach(o,F=>{Ha(F,["Input","Select"])&&(cl(F.props,!0)||cl(F.props.inputProps,!0))&&($=!0)}),$}),[P,j]=I.useState(!1);c&&P&&j(!1);const A=u!==void 0&&!c?u:P;let L;const E=I.useRef(!1);process.env.NODE_ENV!=="production"&&(L=()=>(E.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
187
- `)),E.current=!0,()=>{E.current=!1}));const R=I.useCallback(()=>{O(!0)},[]),M=I.useCallback(()=>{O(!1)},[]),N=I.useMemo(()=>({adornedStart:C,setAdornedStart:w,color:a,disabled:c,error:d,filled:k,focused:A,fullWidth:f,hiddenLabel:h,size:y,onBlur:()=>{j(!1)},onFocus:()=>{j(!0)},onEmpty:M,onFilled:R,registerEffect:L,required:g,variant:b}),[C,a,c,d,k,A,f,h,L,M,R,g,y,b]);return p.jsx(fi.Provider,{value:N,children:p.jsx(l3,{as:l,ownerState:T,className:ge(S.root,s),ref:n,...v,children:o})})});process.env.NODE_ENV!=="production"&&(hg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,focused:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,margin:i.oneOf(["dense","none","normal"]),required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});function c3(e){return Ae("MuiFormHelperText",e)}const mg=Re("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var gg;const d3=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:a,focused:l,required:c}=e,d={root:["root",o&&"disabled",s&&"error",r&&`size${J(r)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return Ne(d,c3,t)},u3=te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${J(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${mg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mg.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}}]}))),yg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:a="p",disabled:l,error:c,filled:d,focused:u,margin:f,required:h,variant:m,...g}=r,y=Hr(),b=Zo({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),v={...r,component:a,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete v.ownerState;const T=d3(v);return p.jsx(u3,{as:a,className:ge(T.root,s),ref:n,...g,ownerState:v,children:o===" "?gg||(gg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});process.env.NODE_ENV!=="production"&&(yg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["filled","outlined","standard"]),i.string])});function f3(e){return Ae("MuiFormLabel",e)}const gi=Re("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),p3=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:a,required:l}=e,c={root:["root",`color${J(n)}`,o&&"disabled",s&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return Ne(c,f3,t)},h3=te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Le(({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(Wt()).map(([t])=>({props:{color:t},style:{[`&.${gi.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${gi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gi.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),m3=te("span",{name:"MuiFormLabel",slot:"Asterisk"})(Le(({theme:e})=>({[`&.${gi.error}`]:{color:(e.vars||e).palette.error.main}}))),bg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:a,component:l="label",disabled:c,error:d,filled:u,focused:f,required:h,...m}=r,g=Hr(),y=Zo({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),b={...r,color:y.color||"primary",component:l,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},v=p3(b);return p.jsxs(h3,{as:l,ownerState:b,className:ge(v.root,s),ref:n,...m,children:[o,y.required&&p.jsxs(m3,{ownerState:b,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(bg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const yi=gC({createStyledComponent:te("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Be({props:e,name:"MuiGrid"}),useTheme:gt});if(process.env.NODE_ENV!=="production"&&(yi.propTypes={children:i.node,columns:i.oneOfType([i.arrayOf(i.number),i.number,i.object]),columnSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),container:i.bool,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),offset:i.oneOfType([i.string,i.number,i.arrayOf(i.oneOfType([i.string,i.number])),i.object]),rowSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),size:i.oneOfType([i.string,i.bool,i.number,i.arrayOf(i.oneOfType([i.string,i.bool,i.number])),i.object]),spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),unstable_level:i.number,wrap:i.oneOf(["nowrap","wrap-reverse","wrap"])}),process.env.NODE_ENV!=="production"){const e=yi,t=fT("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}function Ld(e){return`scale(${e}, ${e**2})`}const g3={entering:{opacity:1,transform:Ld(1)},entered:{opacity:1,transform:"none"}},Bd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bi=I.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:a,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:f,onExited:h,onExiting:m,style:g,timeout:y="auto",TransitionComponent:b=ir,...v}=t,T=Ho(),S=I.useRef(),C=gt(),w=I.useRef(null),k=qt(w,Xo(s),n),O=N=>$=>{if(N){const F=w.current;$===void 0?N(F):N(F,$)}},P=O(u),j=O((N,$)=>{mm(N);const{duration:F,delay:H,easing:z}=Za({style:g,timeout:y,easing:a},{mode:"enter"});let _;y==="auto"?(_=C.transitions.getAutoHeightDuration(N.clientHeight),S.current=_):_=F,N.style.transition=[C.transitions.create("opacity",{duration:_,delay:H}),C.transitions.create("transform",{duration:Bd?_:_*.666,delay:H,easing:z})].join(","),c&&c(N,$)}),A=O(d),L=O(m),E=O(N=>{const{duration:$,delay:F,easing:H}=Za({style:g,timeout:y,easing:a},{mode:"exit"});let z;y==="auto"?(z=C.transitions.getAutoHeightDuration(N.clientHeight),S.current=z):z=$,N.style.transition=[C.transitions.create("opacity",{duration:z,delay:F}),C.transitions.create("transform",{duration:Bd?z:z*.666,delay:Bd?F:F||z*.333,easing:H})].join(","),N.style.opacity=0,N.style.transform=Ld(.75),f&&f(N)}),R=O(h),M=N=>{y==="auto"&&T.start(S.current||0,N),r&&r(w.current,N)};return p.jsx(b,{appear:o,in:l,nodeRef:w,onEnter:j,onEntered:A,onEntering:P,onExit:E,onExited:R,onExiting:L,addEndListener:M,timeout:y==="auto"?null:y,...v,children:(N,{ownerState:$,...F})=>I.cloneElement(s,{style:{opacity:0,transform:Ld(.75),visibility:N==="exited"&&!l?"hidden":void 0,...g3[N],...g,...s.props.style},ref:k,...F})})});process.env.NODE_ENV!=="production"&&(bi.propTypes={addEndListener:i.func,appear:i.bool,children:Qo.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])}),bi&&(bi.muiSupportAuto=!0);const y3=e=>{const{classes:t,disableUnderline:n}=e,o=Ne({root:["root",!n&&"underline"],input:["input"]},IE,t);return{...t,...o}},b3=te(fl,{shouldForwardProp:e=>Sn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...dl(e,t),!n.disableUnderline&&t.underline]}})(Le(({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"},[`&.${pi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pi.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(.${pi.disabled}, .${pi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${pi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Wt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),v3=te(pl,{name:"MuiInput",slot:"Input",overridesResolver:ul})({}),xl=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:a,fullWidth:l=!1,inputComponent:c="input",multiline:d=!1,slotProps:u,slots:f={},type:h="text",...m}=r,g=y3(r),b={root:{ownerState:{disableUnderline:o}}},v=u??a?Yt(u??a,b):b,T=f.root??s.Root??b3,S=f.input??s.Input??v3;return p.jsx(hl,{slots:{root:T,input:S},slotProps:v,fullWidth:l,inputComponent:c,multiline:d,ref:n,type:h,...m,classes:g})});process.env.NODE_ENV!=="production"&&(xl.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:hn,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),xl.muiName="Input";function x3(e){return Ae("MuiInputAdornment",e)}const vg=Re("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var xg;const w3=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${J(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},S3=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:a}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${J(o)}`,a,r&&"hiddenLabel",s&&`size${J(s)}`]};return Ne(l,x3,t)},C3=te("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:w3})(Le(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${vg.positionStart}&:not(.${vg.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),wl=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:d,variant:u,...f}=r,h=Hr()||{};let m=u;u&&h.variant&&process.env.NODE_ENV!=="production"&&u===h.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),h&&!m&&(m=h.variant);const g={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:l,position:d,variant:m},y=S3(g);return p.jsx(fi.Provider,{value:null,children:p.jsx(C3,{as:a,ownerState:g,className:ge(y.root,s),ref:n,...f,children:typeof o=="string"&&!c?p.jsx(pt,{color:"textSecondary",children:o}):p.jsxs(I.Fragment,{children:[d==="start"?xg||(xg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});process.env.NODE_ENV!=="production"&&(wl.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,disablePointerEvents:i.bool,disableTypography:i.bool,position:i.oneOf(["end","start"]).isRequired,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});function T3(e){return Ae("MuiInputLabel",e)}Re("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const k3=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:a,required:l}=e,c={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="medium"&&`size${J(r)}`,a],asterisk:[l&&"asterisk"]},d=Ne(c,T3,t);return{...t,...d}},E3=te(bg,{shouldForwardProp:e=>Sn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gi.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]]}})(Le(({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)"}}]}))),wg=I.forwardRef(function(t,n){const r=Be({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:a,variant:l,className:c,...d}=r,u=Hr();let f=a;typeof f>"u"&&u&&(f=u.filled||u.focused||u.adornedStart);const h=Zo({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),m={...r,disableAnimation:o,formControl:u,shrink:f,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=k3(m);return p.jsx(E3,{"data-shrink":f,ref:n,className:ge(g.root,c),...d,ownerState:m,classes:g})});process.env.NODE_ENV!=="production"&&(wg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),disableAnimation:i.bool,disabled:i.bool,error:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,shrink:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});const Sg=I.createContext({});process.env.NODE_ENV!=="production"&&(Sg.displayName="ListContext");function O3(e){return Ae("MuiList",e)}Re("MuiList",["root","padding","dense","subheader"]);const M3=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ne({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},O3,t)},P3=te("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}}]}),mo=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiList"}),{children:o,className:s,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:d,...u}=r,f=I.useMemo(()=>({dense:l}),[l]),h={...r,component:a,dense:l,disablePadding:c},m=M3(h);return p.jsx(Sg.Provider,{value:f,children:p.jsxs(P3,{as:a,className:ge(m.root,s),ref:n,ownerState:h,...u,children:[d,o]})})});process.env.NODE_ENV!=="production"&&(mo.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,dense:i.bool,disablePadding:i.bool,subheader:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function _d(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Cg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Tg(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 vi(e,t,n,r,o,s){let a=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Tg(l,s)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const kg=I.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:u,variant:f="selectedMenu",...h}=t,m=I.useRef(null),g=I.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pn(()=>{o&&m.current.focus()},[o]),I.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:C})=>{const w=!m.current.style.width;if(S.clientHeight<m.current.clientHeight&&w){const k=`${cg(Hn(S))}px`;m.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=k,m.current.style.width=`calc(100% + ${k})`}return m.current}}),[]);const y=S=>{const C=m.current,w=S.key;if(S.ctrlKey||S.metaKey||S.altKey){u&&u(S);return}const O=es(pn(C));if(w==="ArrowDown")S.preventDefault(),vi(C,O,d,c,_d);else if(w==="ArrowUp")S.preventDefault(),vi(C,O,d,c,Cg);else if(w==="Home")S.preventDefault(),vi(C,null,d,c,_d);else if(w==="End")S.preventDefault(),vi(C,null,d,c,Cg);else if(w.length===1){const P=g.current,j=w.toLowerCase(),A=performance.now();P.keys.length>0&&(A-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&j!==P.keys[0]&&(P.repeating=!1)),P.lastTime=A,P.keys.push(j);const L=O&&!P.repeating&&Tg(O,P);P.previousKeyMatched&&(L||vi(C,O,!1,c,_d,P))?S.preventDefault():P.previousKeyMatched=!1}u&&u(S)},b=qt(m,n);let v=-1;I.Children.forEach(a,(S,C)=>{if(!I.isValidElement(S)){v===C&&(v+=1,v>=a.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&Cr.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
188
- `)),S.props.disabled||(f==="selectedMenu"&&S.props.selected||v===-1)&&(v=C),v===C&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const T=I.Children.map(a,(S,C)=>{if(C===v){const w={};return s&&(w.autoFocus=!0),S.props.tabIndex===void 0&&f==="selectedMenu"&&(w.tabIndex=0),I.cloneElement(S,w)}return S});return p.jsx(mo,{role:"menu",ref:b,className:l,onKeyDown:y,tabIndex:o?0:-1,...h,children:T})});process.env.NODE_ENV!=="production"&&(kg.propTypes={autoFocus:i.bool,autoFocusItem:i.bool,children:i.node,className:i.string,disabledItemsFocusable:i.bool,disableListWrap:i.bool,onKeyDown:i.func,variant:i.oneOf(["menu","selectedMenu"])});function j3(e){return Ae("MuiPopover",e)}Re("MuiPopover",["root","paper"]);function Eg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Og(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Mg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function xi(e){return typeof e=="function"?e():e}const I3=e=>{const{classes:t}=e;return Ne({root:["root"],paper:["paper"]},j3,t)},D3=te(Dd,{name:"MuiPopover",slot:"Root"})({}),Pg=te(ni,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),wi=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:d,className:u,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:y={},slots:b={},slotProps:v={},transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:C="auto",TransitionProps:w={},disableScrollLock:k=!1,...O}=r,P=I.useRef(),j={...r,anchorOrigin:a,anchorReference:c,elevation:h,marginThreshold:m,transformOrigin:T,TransitionComponent:S,transitionDuration:C,TransitionProps:w},A=I3(j),L=I.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const W=xi(s),ee=W&&W.nodeType===1?W:pn(P.current).body,B=ee.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ue=ee.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ue.top===0&&ue.left===0&&ue.right===0&&ue.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(`
189
- `))}return{top:B.top+Eg(B,a.vertical),left:B.left+Og(B,a.horizontal)}},[s,a.horizontal,a.vertical,l,c]),E=I.useCallback(W=>({vertical:Eg(W,T.vertical),horizontal:Og(W,T.horizontal)}),[T.horizontal,T.vertical]),R=I.useCallback(W=>{const ee={width:W.offsetWidth,height:W.offsetHeight},B=E(ee);if(c==="none")return{top:null,left:null,transformOrigin:Mg(B)};const ue=L();let Q=ue.top-B.vertical,ne=ue.left-B.horizontal;const we=Q+ee.height,ke=ne+ee.width,Ce=Hn(xi(s)),ve=Ce.innerHeight-m,_e=Ce.innerWidth-m;if(m!==null&&Q<m){const Ee=Q-m;Q-=Ee,B.vertical+=Ee}else if(m!==null&&we>ve){const Ee=we-ve;Q-=Ee,B.vertical+=Ee}if(process.env.NODE_ENV!=="production"&&ee.height>ve&&ee.height&&ve&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ee.height-ve}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
190
- `)),m!==null&&ne<m){const Ee=ne-m;ne-=Ee,B.horizontal+=Ee}else if(ke>_e){const Ee=ke-_e;ne-=Ee,B.horizontal+=Ee}return{top:`${Math.round(Q)}px`,left:`${Math.round(ne)}px`,transformOrigin:Mg(B)}},[s,c,L,E,m]),[M,N]=I.useState(g),$=I.useCallback(()=>{const W=P.current;if(!W)return;const ee=R(W);ee.top!==null&&W.style.setProperty("top",ee.top),ee.left!==null&&(W.style.left=ee.left),W.style.transformOrigin=ee.transformOrigin,N(!0)},[R]);I.useEffect(()=>(k&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[s,k,$]);const F=()=>{$()},H=()=>{N(!1)};I.useEffect(()=>{g&&$()}),I.useImperativeHandle(o,()=>g?{updatePosition:()=>{$()}}:null,[g,$]),I.useEffect(()=>{if(!g)return;const W=Qs(()=>{$()}),ee=Hn(xi(s));return ee.addEventListener("resize",W),()=>{W.clear(),ee.removeEventListener("resize",W)}},[s,g,$]);let z=C;const _={slots:{transition:S,...b},slotProps:{transition:w,paper:y,...v}},[D,V]=qe("transition",{elementType:bi,externalForwardedProps:_,ownerState:j,getSlotProps:W=>({...W,onEntering:(ee,B)=>{W.onEntering?.(ee,B),F()},onExited:ee=>{W.onExited?.(ee),H()}}),additionalProps:{appear:!0,in:g}});C==="auto"&&!D.muiSupportAuto&&(z=void 0);const U=f||(s?pn(xi(s)).body:void 0),[G,{slots:X,slotProps:q,...K}]=qe("root",{ref:n,elementType:D3,externalForwardedProps:{..._,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:cm(typeof v.backdrop=="function"?v.backdrop(j):v.backdrop,{invisible:!0})},container:U,open:g},ownerState:j,className:ge(A.root,u)}),[ce,de]=qe("paper",{ref:P,className:A.paper,elementType:Pg,externalForwardedProps:_,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:M?void 0:{opacity:0}},ownerState:j});return p.jsx(G,{...K,...!Ja(G)&&{slots:X,slotProps:q,disableScrollLock:k},children:p.jsx(D,{...V,timeout:z,children:p.jsx(ce,{...de,children:d})})})});process.env.NODE_ENV!=="production"&&(wi.propTypes={action:hn,anchorEl:zr(i.oneOfType([Er,i.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=xi(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(`
180
+ `))}return null}),children:i.oneOfType([i.node,i.func]),container:i.oneOfType([Er,i.func]),direction:i.oneOf(["ltr","rtl"]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.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:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.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:i.oneOf(["absolute","fixed"])}),popperRef:hn,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),transition:i.bool});const xE=te(Ym,{name:"MuiPopper",slot:"Root"})({}),ui=I.forwardRef(function(t,n){const r=_o(),o=Be({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:d,disablePortal:u,keepMounted:f,modifiers:h,open:m,placement:g,popperOptions:y,popperRef:b,transition:v,slots:k,slotProps:S,...C}=o,w=k?.root??l?.Root,T={anchorEl:s,container:d,disablePortal:u,keepMounted:f,modifiers:h,open:m,placement:g,popperOptions:y,popperRef:b,transition:v,...C};return p.jsx(xE,{as:a,direction:r?"rtl":"ltr",slots:{root:w},slotProps:S??c,...T,ref:n})});process.env.NODE_ENV!=="production"&&(ui.propTypes={anchorEl:i.oneOfType([Er,i.object,i.func]),children:i.oneOfType([i.node,i.func]),component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([Er,i.func]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.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:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.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:i.oneOf(["absolute","fixed"])}),popperRef:hn,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transition:i.bool});const wE=Cn(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function SE(e){return Ae("MuiChip",e)}const tt=Re("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),CE=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:a,clickable:l,variant:c}=e,d={root:["root",c,n&&"disabled",`size${J(r)}`,`color${J(o)}`,l&&"clickable",l&&`clickableColor${J(o)}`,a&&"deletable",a&&`deletableColor${J(o)}`,`${c}${J(o)}`],label:["label",`label${J(r)}`],avatar:["avatar",`avatar${J(r)}`,`avatarColor${J(o)}`],icon:["icon",`icon${J(r)}`,`iconColor${J(s)}`],deleteIcon:["deleteIcon",`deleteIcon${J(r)}`,`deleteIconColor${J(o)}`,`deleteIcon${J(c)}Color${J(o)}`]};return Ne(d,SE,t)},TE=te("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:a,size:l,variant:c}=n;return[{[`& .${tt.avatar}`]:t.avatar},{[`& .${tt.avatar}`]:t[`avatar${J(l)}`]},{[`& .${tt.avatar}`]:t[`avatarColor${J(r)}`]},{[`& .${tt.icon}`]:t.icon},{[`& .${tt.icon}`]:t[`icon${J(l)}`]},{[`& .${tt.icon}`]:t[`iconColor${J(o)}`]},{[`& .${tt.deleteIcon}`]:t.deleteIcon},{[`& .${tt.deleteIcon}`]:t[`deleteIcon${J(l)}`]},{[`& .${tt.deleteIcon}`]:t[`deleteIconColor${J(r)}`]},{[`& .${tt.deleteIcon}`]:t[`deleteIcon${J(c)}Color${J(r)}`]},t.root,t[`size${J(l)}`],t[`color${J(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${J(r)}`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${J(r)}`],t[c],t[`${c}${J(r)}`]]}})(Le(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${tt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${tt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${tt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${tt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${tt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${tt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${tt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${tt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${tt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Wt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${tt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${tt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${tt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${tt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Wt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${tt.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${tt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Wt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${tt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${tt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${tt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${tt.avatar}`]:{marginLeft:4},[`& .${tt.avatarSmall}`]:{marginLeft:2},[`& .${tt.icon}`]:{marginLeft:4},[`& .${tt.iconSmall}`]:{marginLeft:2},[`& .${tt.deleteIcon}`]:{marginRight:5},[`& .${tt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Wt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${tt.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${tt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${tt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),kE=te("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${J(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function qm(e){return e.key==="Backspace"||e.key==="Delete"}const Gm=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:a,color:l="default",component:c,deleteIcon:d,disabled:u=!1,icon:f,label:h,onClick:m,onDelete:g,onKeyDown:y,onKeyUp:b,size:v="medium",variant:k="filled",tabIndex:S,skipFocusWhenDisabled:C=!1,slots:w={},slotProps:T={},...O}=r,M=I.useRef(null),j=qt(M,n),A=G=>{G.stopPropagation(),g&&g(G)},L=G=>{G.currentTarget===G.target&&qm(G)&&G.preventDefault(),y&&y(G)},E=G=>{G.currentTarget===G.target&&g&&qm(G)&&g(G),b&&b(G)},N=a!==!1&&m?!0:a,P=N||g?lr:c||"div",$={...r,component:P,disabled:u,size:v,color:l,iconColor:I.isValidElement(f)&&f.props.color||l,onDelete:!!g,clickable:N,variant:k},R=CE($),W=P===lr?{component:c||"div",focusVisibleClassName:R.focusVisible,...g&&{disableRipple:!0}}:{};let V=null;g&&(V=d&&I.isValidElement(d)?I.cloneElement(d,{className:ge(d.props.className,R.deleteIcon),onClick:A}):p.jsx(wE,{className:R.deleteIcon,onClick:A}));let H=null;o&&I.isValidElement(o)&&(H=I.cloneElement(o,{className:ge(R.avatar,o.props.className)}));let B=null;f&&I.isValidElement(f)&&(B=I.cloneElement(f,{className:ge(R.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&H&&B&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const D={slots:w,slotProps:T},[F,U]=qe("root",{elementType:TE,externalForwardedProps:{...D,...O},ownerState:$,shouldForwardComponentProp:!0,ref:j,className:ge(R.root,s),additionalProps:{disabled:N&&u?!0:void 0,tabIndex:C&&u?-1:S,...W},getSlotProps:G=>({...G,onClick:K=>{G.onClick?.(K),m?.(K)},onKeyDown:K=>{G.onKeyDown?.(K),L(K)},onKeyUp:K=>{G.onKeyUp?.(K),E(K)}})}),[q,X]=qe("label",{elementType:kE,externalForwardedProps:D,ownerState:$,className:R.label});return p.jsxs(F,{as:P,...U,children:[H||B,p.jsx(q,{...X,children:h}),V]})});process.env.NODE_ENV!=="production"&&(Gm.propTypes={avatar:i.element,children:lm,classes:i.object,className:i.string,clickable:i.bool,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,deleteIcon:i.element,disabled:i.bool,icon:i.element,label:i.node,onClick:i.func,onDelete:i.func,onKeyDown:i.func,onKeyUp:i.func,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),skipFocusWhenDisabled:i.bool,slotProps:i.shape({label:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({label:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number,variant:i.oneOfType([i.oneOf(["filled","outlined"]),i.string])});function ll(e){return parseInt(e,10)||0}const EE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function OE(e){for(const t in e)return!1;return!0}function Km(e){return OE(e)||e.outerHeightStyle===0&&!e.overflowing}const Xm=I.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:a,value:l,...c}=t,{current:d}=I.useRef(l!=null),u=I.useRef(null),f=qt(n,u),h=I.useRef(null),m=I.useRef(null),g=I.useCallback(()=>{const S=u.current,C=m.current;if(!S||!C)return;const T=Hn(S).getComputedStyle(S);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=T.width,C.value=S.value||t.placeholder||"x",C.value.slice(-1)===`
181
+ `&&(C.value+=" ");const O=T.boxSizing,M=ll(T.paddingBottom)+ll(T.paddingTop),j=ll(T.borderBottomWidth)+ll(T.borderTopWidth),A=C.scrollHeight;C.value="x";const L=C.scrollHeight;let E=A;s&&(E=Math.max(Number(s)*L,E)),o&&(E=Math.min(Number(o)*L,E)),E=Math.max(E,L);const N=E+(O==="border-box"?M+j:0),P=Math.abs(E-A)<=1;return{outerHeightStyle:N,overflowing:P}},[o,s,t.placeholder]),y=jn(()=>{const S=u.current,C=g();if(!S||!C||Km(C))return!1;const w=C.outerHeightStyle;return h.current!=null&&h.current!==w}),b=I.useCallback(()=>{const S=u.current,C=g();if(!S||!C||Km(C))return;const w=C.outerHeightStyle;h.current!==w&&(h.current=w,S.style.height=`${w}px`),S.style.overflow=C.overflowing?"hidden":""},[g]),v=I.useRef(-1);Pn(()=>{const S=Qs(b),C=u?.current;if(!C)return;const w=Hn(C);w.addEventListener("resize",S);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(()=>{y()&&(T.unobserve(C),cancelAnimationFrame(v.current),b(),v.current=requestAnimationFrame(()=>{T.observe(C)}))}),T.observe(C)),()=>{S.clear(),cancelAnimationFrame(v.current),w.removeEventListener("resize",S),T&&T.disconnect()}},[g,b,y]),Pn(()=>{b()});const k=S=>{d||b();const C=S.target,w=C.value.length,T=C.value.endsWith(`
182
+ `),O=C.selectionStart===w;T&&O&&C.setSelectionRange(w,w),r&&r(S)};return p.jsxs(I.Fragment,{children:[p.jsx("textarea",{value:l,onChange:k,ref:f,rows:s,style:a,...c}),p.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:{...EE.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Xm.propTypes={className:i.string,maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),onChange:i.func,placeholder:i.string,style:i.object,value:i.oneOfType([i.arrayOf(i.string),i.number,i.string])});function Zo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const fi=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(fi.displayName="FormControlContext");function Hr(){return I.useContext(fi)}function Zm(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function cl(e,t=!1){return e&&(Zm(e.value)&&e.value!==""||t&&Zm(e.defaultValue)&&e.defaultValue!=="")}function ME(e){return e.startAdornment}function PE(e){return Ae("MuiInputBase",e)}const Jo=Re("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Jm;const dl=(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${J(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ul=(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]},jE=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:a,formControl:l,fullWidth:c,hiddenLabel:d,multiline:u,readOnly:f,size:h,startAdornment:m,type:g}=e,y={root:["root",`color${J(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",h&&h!=="medium"&&`size${J(h)}`,u&&"multiline",m&&"adornedStart",s&&"adornedEnd",d&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",m&&"inputAdornedStart",s&&"inputAdornedEnd",f&&"readOnly"]};return Ne(y,PE,t)},fl=te("div",{name:"MuiInputBase",slot:"Root",overridesResolver:dl})(Le(({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",[`&.${Jo.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%"}}]}))),pl=te("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ul})(Le(({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"},o=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] + .${Jo.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Jo.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"}}]}})),Qm=aT({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),hl=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:l,color:c,components:d={},componentsProps:u={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:m,endAdornment:g,error:y,fullWidth:b=!1,id:v,inputComponent:k="input",inputProps:S={},inputRef:C,margin:w,maxRows:T,minRows:O,multiline:M=!1,name:j,onBlur:A,onChange:L,onClick:E,onFocus:N,onKeyDown:P,onKeyUp:$,placeholder:R,readOnly:W,renderSuffix:V,rows:H,size:B,slotProps:D={},slots:F={},startAdornment:U,type:q="text",value:X,...G}=r,K=S.value!=null?S.value:X,{current:ae}=I.useRef(K!=null),le=I.useRef(),z=I.useCallback(Oe=>{process.env.NODE_ENV!=="production"&&Oe&&Oe.nodeName!=="INPUT"&&!Oe.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(`
183
+ `))},[]),ee=qt(le,C,S.ref,z),[_,ue]=I.useState(!1),Q=Hr();process.env.NODE_ENV!=="production"&&I.useEffect(()=>{if(Q)return Q.registerEffect()},[Q]);const ne=Zo({props:r,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ne.focused=Q?Q.focused:_,I.useEffect(()=>{!Q&&h&&_&&(ue(!1),A&&A())},[Q,h,_,A]);const we=Q&&Q.onFilled,ke=Q&&Q.onEmpty,Ce=I.useCallback(Oe=>{cl(Oe)?we&&we():ke&&ke()},[we,ke]);Pn(()=>{ae&&Ce({value:K})},[K,Ce,ae]);const ve=Oe=>{N&&N(Oe),S.onFocus&&S.onFocus(Oe),Q&&Q.onFocus?Q.onFocus(Oe):ue(!0)},_e=Oe=>{A&&A(Oe),S.onBlur&&S.onBlur(Oe),Q&&Q.onBlur?Q.onBlur(Oe):ue(!1)},Ee=(Oe,...Tt)=>{if(!ae){const st=Oe.target||le.current;if(st==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.":Qn(1));Ce({value:st.value})}S.onChange&&S.onChange(Oe,...Tt),L&&L(Oe,...Tt)};I.useEffect(()=>{Ce(le.current)},[]);const xe=Oe=>{le.current&&Oe.currentTarget===Oe.target&&le.current.focus(),E&&E(Oe)};let re=k,ie=S;M&&re==="input"&&(H?(process.env.NODE_ENV!=="production"&&(O||T)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ie={type:void 0,minRows:H,maxRows:H,...ie}):ie={type:void 0,maxRows:T,minRows:O,...ie},re=Xm);const Te=Oe=>{Ce(Oe.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})};I.useEffect(()=>{Q&&Q.setAdornedStart(!!U)},[Q,U]);const he={...r,color:ne.color||"primary",disabled:ne.disabled,endAdornment:g,error:ne.error,focused:ne.focused,formControl:Q,fullWidth:b,hiddenLabel:ne.hiddenLabel,multiline:M,size:ne.size,startAdornment:U,type:q},pe=jE(he),Ie=F.root||d.Root||fl,Fe=D.root||u.root||{},He=F.input||d.Input||pl;return ie={...ie,...D.input??u.input},p.jsxs(I.Fragment,{children:[!m&&typeof Qm=="function"&&(Jm||(Jm=p.jsx(Qm,{}))),p.jsxs(Ie,{...Fe,ref:n,onClick:xe,...G,...!Ja(Ie)&&{ownerState:{...he,...Fe.ownerState}},className:ge(pe.root,Fe.className,l,W&&"MuiInputBase-readOnly"),children:[U,p.jsx(fi.Provider,{value:null,children:p.jsx(He,{"aria-invalid":ne.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:f,disabled:ne.disabled,id:v,onAnimationStart:Te,name:j,placeholder:R,readOnly:W,required:ne.required,rows:H,value:K,onKeyDown:P,onKeyUp:$,type:q,...ie,...!Ja(He)&&{as:re,ownerState:{...he,...ie.ownerState}},ref:ee,className:ge(pe.input,ie.className,W&&"MuiInputBase-readOnly"),onBlur:_e,onChange:Ee,onFocus:ve})}),g,V?V({...ne,startAdornment:U}):null]})]})});process.env.NODE_ENV!=="production"&&(hl.propTypes={"aria-describedby":i.string,autoComplete:i.string,autoFocus:i.bool,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableInjectingGlobalStyles:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:fd,inputProps:i.object,inputRef:hn,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClick:i.func,onFocus:i.func,onInvalid:i.func,onKeyDown:i.func,onKeyUp:i.func,placeholder:i.string,readOnly:i.bool,renderSuffix:i.func,required:i.bool,rows:i.oneOfType([i.number,i.string]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any});function IE(e){return Ae("MuiInput",e)}const pi={...Jo,...Re("MuiInput",["root","underline","input"])};function DE(e){return Ae("MuiOutlinedInput",e)}const ur={...Jo,...Re("MuiOutlinedInput",["root","notchedOutline","input"])};function AE(e){return Ae("MuiFilledInput",e)}const po={...Jo,...Re("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},RE=Cn(p.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function NE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function eg(e,t,n,r,o){const s=e[t],a=o||t;if(s==null||typeof window>"u")return null;let l;const c=s.type;return typeof c=="function"&&!NE(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Qo=zr(i.element,eg);Qo.isRequired=zr(i.element.isRequired,eg);const $E={entering:{opacity:1},entered:{opacity:1}},hi=I.forwardRef(function(t,n){const r=gt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:c,in:d,onEnter:u,onEntered:f,onEntering:h,onExit:m,onExited:g,onExiting:y,style:b,timeout:v=o,TransitionComponent:k=ir,...S}=t,C=I.useRef(null),w=qt(C,Xo(l),n),T=P=>$=>{if(P){const R=C.current;$===void 0?P(R):P(R,$)}},O=T(h),M=T((P,$)=>{mm(P);const R=Za({style:b,timeout:v,easing:c},{mode:"enter"});P.style.webkitTransition=r.transitions.create("opacity",R),P.style.transition=r.transitions.create("opacity",R),u&&u(P,$)}),j=T(f),A=T(y),L=T(P=>{const $=Za({style:b,timeout:v,easing:c},{mode:"exit"});P.style.webkitTransition=r.transitions.create("opacity",$),P.style.transition=r.transitions.create("opacity",$),m&&m(P)}),E=T(g),N=P=>{s&&s(C.current,P)};return p.jsx(k,{appear:a,in:d,nodeRef:C,onEnter:M,onEntered:j,onEntering:O,onExit:L,onExited:E,onExiting:A,addEndListener:N,timeout:v,...S,children:(P,{ownerState:$,...R})=>I.cloneElement(l,{style:{opacity:0,visibility:P==="exited"&&!d?"hidden":void 0,...$E[P],...b,...l.props.style},ref:w,...R})})});process.env.NODE_ENV!=="production"&&(hi.propTypes={addEndListener:i.func,appear:i.bool,children:Qo.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function LE(e){return Ae("MuiBackdrop",e)}Re("MuiBackdrop",["root","invisible"]);const BE=e=>{const{classes:t,invisible:n}=e;return Ne({root:["root",n&&"invisible"]},LE,t)},_E=te("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"}}]}),ml=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:a="div",invisible:l=!1,open:c,components:d={},componentsProps:u={},slotProps:f={},slots:h={},TransitionComponent:m,transitionDuration:g,...y}=r,b={...r,component:a,invisible:l},v=BE(b),k={transition:m,root:d.Root,...h},S={...u,...f},C={component:a,slots:k,slotProps:S},[w,T]=qe("root",{elementType:_E,externalForwardedProps:C,className:ge(v.root,s),ownerState:b}),[O,M]=qe("transition",{elementType:hi,externalForwardedProps:C,ownerState:b});return p.jsx(O,{in:c,timeout:g,...y,...M,children:p.jsx(w,{"aria-hidden":!0,...T,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(ml.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.object}),invisible:i.bool,open:i.bool.isRequired,slotProps:i.shape({root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function FE(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=Om({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:l,max:c=r}=a?s:e,d=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:a,max:c,displayValue:d}}function WE(e){return Ae("MuiBadge",e)}const Ur=Re("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Ed=10,Od=4,zE=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:a={}}=e,l={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${J(n.vertical)}${J(n.horizontal)}`,`anchorOrigin${J(n.vertical)}${J(n.horizontal)}${J(o)}`,`overlap${J(o)}`,t!=="default"&&`color${J(t)}`]};return Ne(l,WE,a)},VE=te("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),HE=te("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${J(n.anchorOrigin.vertical)}${J(n.anchorOrigin.horizontal)}${J(n.overlap)}`],n.color!=="default"&&t[`color${J(n.color)}`],n.invisible&&t.invisible]}})(Le(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Ed*2,lineHeight:1,padding:"0 6px",height:Ed*2,borderRadius:Ed,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Wt(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Od,height:Od*2,minWidth:Od*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ur.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function tg(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const Md=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:s,classes:a,component:l,components:c={},componentsProps:d={},children:u,overlap:f="rectangular",color:h="default",invisible:m=!1,max:g=99,badgeContent:y,slots:b,slotProps:v,showZero:k=!1,variant:S="standard",...C}=r,{badgeContent:w,invisible:T,max:O,displayValue:M}=FE({max:g,invisible:m,badgeContent:y,showZero:k}),j=Om({anchorOrigin:tg(o),color:h,overlap:f,variant:S,badgeContent:y}),A=T||w==null&&S!=="dot",{color:L=h,overlap:E=f,anchorOrigin:N,variant:P=S}=A?j:r,$=tg(N),R=P!=="dot"?M:void 0,W={...r,badgeContent:w,invisible:A,max:O,displayValue:R,showZero:k,anchorOrigin:$,color:L,overlap:E,variant:P},V=zE(W),H={slots:{root:b?.root??c.Root,badge:b?.badge??c.Badge},slotProps:{root:v?.root??d.root,badge:v?.badge??d.badge}},[B,D]=qe("root",{elementType:VE,externalForwardedProps:{...H,...C},ownerState:W,className:ge(V.root,s),ref:n,additionalProps:{as:l}}),[F,U]=qe("badge",{elementType:HE,externalForwardedProps:H,ownerState:W,className:V.badge});return p.jsxs(B,{...D,children:[u,p.jsx(F,{...U,children:R})]})});process.env.NODE_ENV!=="production"&&(Md.propTypes={anchorOrigin:i.shape({horizontal:i.oneOf(["left","right"]),vertical:i.oneOf(["bottom","top"])}),badgeContent:i.node,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,components:i.shape({Badge:i.elementType,Root:i.elementType}),componentsProps:i.shape({badge:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),invisible:i.bool,max:i.number,overlap:i.oneOf(["circular","rectangular"]),showZero:i.bool,slotProps:i.shape({badge:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({badge:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["dot","standard"]),i.string])});const UE=Re("MuiBox",["root"]),YE=Js(),se=vS({themeId:er,defaultTheme:YE,defaultClassName:UE.root,generateClassName:bh.generate});process.env.NODE_ENV!=="production"&&(se.propTypes={children:i.node,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const qE=Cn(p.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),GE=te(lr,{name:"MuiBreadcrumbCollapsed"})(Le(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:Kc(e.palette.grey[200],.12)}:{backgroundColor:Kc(e.palette.grey[600],.12)}}}))),KE=te(qE)({width:24,height:16});function ng(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return p.jsx("li",{children:p.jsx(GE,{focusRipple:!0,...r,ownerState:o,children:p.jsx(KE,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}process.env.NODE_ENV!=="production"&&(ng.propTypes={slotProps:i.shape({collapsedIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({CollapsedIcon:i.elementType}),sx:i.object});function XE(e){return Ae("MuiBreadcrumbs",e)}const ZE=Re("MuiBreadcrumbs",["root","ol","li","separator"]),JE=e=>{const{classes:t}=e;return Ne({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},XE,t)},QE=te(pt,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${ZE.li}`]:t.li},t.root]})({}),eO=te("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),tO=te("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function nO(e,t,n,r){return e.reduce((o,s,a)=>(a<e.length-1?o=o.concat(s,p.jsx(tO,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(s),o),[])}const rg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiBreadcrumbs"}),{children:o,className:s,component:a="nav",slots:l={},slotProps:c={},expandText:d="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:f=1,maxItems:h=8,separator:m="/",...g}=r,[y,b]=I.useState(!1),v={...r,component:a,expanded:y,expandText:d,itemsAfterCollapse:u,itemsBeforeCollapse:f,maxItems:h,separator:m},k=JE(v),S=fo({elementType:l.CollapsedIcon,externalSlotProps:c.collapsedIcon,ownerState:v}),C=I.useRef(null),w=O=>{const M=()=>{b(!0);const j=C.current.querySelector("a[href],button,[tabindex]");j&&j.focus()};return f+u>=O.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${u}} + itemsBeforeCollapse={${f}} >= maxItems={${h}}`].join(`
184
+ `)),O):[...O.slice(0,f),p.jsx(ng,{"aria-label":d,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:S},onClick:M},"ellipsis"),...O.slice(O.length-u,O.length)]},T=I.Children.toArray(o).filter(O=>(process.env.NODE_ENV!=="production"&&Cr.isFragment(O)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
185
+ `)),I.isValidElement(O))).map((O,M)=>p.jsx("li",{className:k.li,children:O},`child-${M}`));return p.jsx(QE,{ref:n,component:a,color:"textSecondary",className:ge(k.root,s),ownerState:v,...g,children:p.jsx(eO,{className:k.ol,ref:C,ownerState:v,children:nO(y||h&&T.length<=h?T:w(T),k.separator,m,v)})})});process.env.NODE_ENV!=="production"&&(rg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,expandText:i.string,itemsAfterCollapse:ar,itemsBeforeCollapse:ar,maxItems:ar,separator:i.node,slotProps:i.shape({collapsedIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({CollapsedIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function rO(e){return Ae("MuiButton",e)}const ho=Re("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),og=I.createContext({});process.env.NODE_ENV!=="production"&&(og.displayName="ButtonGroupContext");const sg=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(sg.displayName="ButtonGroupButtonContext");const oO=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,loading:a,loadingPosition:l,classes:c}=e,d={root:["root",a&&"loading",s,`${s}${J(t)}`,`size${J(o)}`,`${s}Size${J(o)}`,`color${J(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${J(l)}`],startIcon:["icon","startIcon",`iconSize${J(o)}`],endIcon:["icon","endIcon",`iconSize${J(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Ne(d,rO,c);return{...c,...u}},ig=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],sO=te(lr,{shouldForwardProp:e=>Sn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${J(n.color)}`],t[`size${J(n.size)}`],t[`${n.variant}Size${J(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Le(({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"},[`&.${ho.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]},[`&.${ho.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ho.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)",[`&.${ho.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(Wt()).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"},[`&.${ho.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ho.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}),[`&.${ho.loading}`]:{color:"transparent"}}}]}})),iO=te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${J(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...ig]})),aO=te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${J(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...ig]})),lO=te("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}}]})),ag=te("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),gl=I.forwardRef(function(t,n){const r=I.useContext(og),o=I.useContext(sg),s=Gs(r,t),a=Be({props:s,name:"MuiButton"}),{children:l,color:c="primary",component:d="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:y,fullWidth:b=!1,id:v,loading:k=null,loadingIndicator:S,loadingPosition:C="center",size:w="medium",startIcon:T,type:O,variant:M="text",...j}=a,A=so(v),L=S??p.jsx(Uo,{"aria-labelledby":A,color:"inherit",size:16}),E={...a,color:c,component:d,disabled:f,disableElevation:h,disableFocusRipple:m,fullWidth:b,loading:k,loadingIndicator:L,loadingPosition:C,size:w,type:O,variant:M},N=oO(E),P=(T||k&&C==="start")&&p.jsx(iO,{className:N.startIcon,ownerState:E,children:T||p.jsx(ag,{className:N.loadingIconPlaceholder,ownerState:E})}),$=(g||k&&C==="end")&&p.jsx(aO,{className:N.endIcon,ownerState:E,children:g||p.jsx(ag,{className:N.loadingIconPlaceholder,ownerState:E})}),R=o||"",W=typeof k=="boolean"?p.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:k&&p.jsx(lO,{className:N.loadingIndicator,ownerState:E,children:L})}):null;return p.jsxs(sO,{ownerState:E,className:ge(r.className,N.root,u,R),component:d,disabled:f||k,focusRipple:!m,focusVisibleClassName:ge(N.focusVisible,y),ref:n,type:O,id:k?A:v,...j,classes:N,children:[P,C!=="end"&&W,l,C==="end"&&W,$]})});process.env.NODE_ENV!=="production"&&(gl.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","success","error","info","warning"]),i.string]),component:i.elementType,disabled:i.bool,disableElevation:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,endIcon:i.node,focusVisibleClassName:i.string,fullWidth:i.bool,href:i.string,id:i.string,loading:i.bool,loadingIndicator:i.node,loadingPosition:i.oneOf(["center","end","start"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),startIcon:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string]),variant:i.oneOfType([i.oneOf(["contained","outlined","text"]),i.string])});function cO(e){return Ae("PrivateSwitchBase",e)}Re("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const dO=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${J(o)}`],input:["input"]};return Ne(s,cO,t)},uO=te(lr,{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}}]}),fO=te("input",{name:"MuiSwitchBase",shouldForwardProp:Sn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Pd=I.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:u,id:f,inputProps:h,inputRef:m,name:g,onBlur:y,onChange:b,onFocus:v,readOnly:k,required:S=!1,tabIndex:C,type:w,value:T,slots:O={},slotProps:M={},...j}=t,[A,L]=ei({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),E=Hr(),N=X=>{v&&v(X),E&&E.onFocus&&E.onFocus(X)},P=X=>{y&&y(X),E&&E.onBlur&&E.onBlur(X)},$=X=>{if(X.nativeEvent.defaultPrevented||k)return;const G=X.target.checked;L(G),b&&b(X,G)};let R=l;E&&typeof R>"u"&&(R=E.disabled);const W=w==="checkbox"||w==="radio",V={...t,checked:A,disabled:R,disableFocusRipple:c,edge:d},H=dO(V),B={slots:O,slotProps:{input:h,...M}},[D,F]=qe("root",{ref:n,elementType:uO,className:H.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",...j},getSlotProps:X=>({...X,onFocus:G=>{X.onFocus?.(G),N(G)},onBlur:G=>{X.onBlur?.(G),P(G)}}),ownerState:V,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:R,role:void 0,tabIndex:null}}),[U,q]=qe("input",{ref:m,elementType:fO,className:H.input,externalForwardedProps:B,getSlotProps:X=>({...X,onChange:G=>{X.onChange?.(G),$(G)}}),ownerState:V,additionalProps:{autoFocus:r,checked:o,defaultChecked:a,disabled:R,id:W?f:void 0,name:g,readOnly:k,required:S,tabIndex:C,type:w,...w==="checkbox"&&T===void 0?{}:{value:T}}});return p.jsxs(D,{...F,children:[p.jsx(U,{...q}),A?s:u]})});process.env.NODE_ENV!=="production"&&(Pd.propTypes={autoFocus:i.bool,checked:i.bool,checkedIcon:i.node.isRequired,classes:i.object,className:i.string,defaultChecked:i.bool,disabled:i.bool,disableFocusRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node.isRequired,id:i.string,inputProps:i.object,inputRef:hn,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,readOnly:i.bool,required:i.bool,slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.string.isRequired,value:i.any});const pO=Cn(p.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"),hO=Cn(p.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"),mO=Cn(p.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 gO(e){return Ae("MuiCheckbox",e)}const jd=Re("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),yO=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${J(r)}`,`size${J(o)}`]},a=Ne(s,gO,t);return{...t,...a}},bO=te(Pd,{shouldForwardProp:e=>Sn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${J(n.size)}`],n.color!=="default"&&t[`color${J(n.color)}`]]}})(Le(({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(Wt()).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(Wt()).map(([t])=>({props:{color:t},style:{[`&.${jd.checked}, &.${jd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${jd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),vO=p.jsx(hO,{}),xO=p.jsx(pO,{}),wO=p.jsx(mO,{}),lg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiCheckbox"}),{checkedIcon:o=vO,color:s="primary",icon:a=xO,indeterminate:l=!1,indeterminateIcon:c=wO,inputProps:d,size:u="medium",disableRipple:f=!1,className:h,slots:m={},slotProps:g={},...y}=r,b=l?c:a,v=l?c:o,k={...r,disableRipple:f,color:s,indeterminate:l,size:u},S=yO(k),C=g.input??d,[w,T]=qe("root",{ref:n,elementType:bO,className:ge(S.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:m,slotProps:g,...y},ownerState:k,additionalProps:{type:"checkbox",icon:I.cloneElement(b,{fontSize:b.props.fontSize??u}),checkedIcon:I.cloneElement(v,{fontSize:v.props.fontSize??u}),disableRipple:f,slots:m,slotProps:{input:cm(typeof C=="function"?C(k):C,{"data-indeterminate":l})}}});return p.jsx(w,{...T,classes:S})});process.env.NODE_ENV!=="production"&&(lg.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,icon:i.node,id:i.string,indeterminate:i.bool,indeterminateIcon:i.node,inputProps:i.object,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function cg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function SO(e){const t=pn(e);return t.body===e?Hn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function mi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function dg(e){return parseFloat(Hn(e).getComputedStyle(e).paddingRight)||0}function CO(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 ug(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,a=>{const l=!s.includes(a),c=!CO(a);l&&c&&mi(a,o)})}function Id(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function TO(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(SO(r)){const a=cg(Hn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${dg(r)+a}px`;const l=pn(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${dg(c)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=pn(r).body;else{const a=r.parentElement,l=Hn(r);s=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:l})=>{s?a.style.setProperty(l,s):a.style.removeProperty(l)})}}function kO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class EO{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&&mi(t.modalRef,!1);const o=kO(n);ug(n,t.mount,t.modalRef,o,!0);const s=Id(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:o}),r)}mount(t,n){const r=Id(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=TO(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Id(this.containers,a=>a.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&mi(t.modalRef,n),ug(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&mi(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function es(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const OO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function MO(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 PO(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 jO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||PO(e))}function IO(e){const t=[],n=[];return Array.from(e.querySelectorAll(OO)).forEach((r,o)=>{const s=MO(r);s===-1||!jO(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function DO(){return!0}function yl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=IO,isEnabled:a=DO,open:l}=e,c=I.useRef(!1),d=I.useRef(null),u=I.useRef(null),f=I.useRef(null),h=I.useRef(null),m=I.useRef(!1),g=I.useRef(null),y=qt(Xo(t),g),b=I.useRef(null);I.useEffect(()=>{!l||!g.current||(m.current=!n)},[n,l]),I.useEffect(()=>{if(!l||!g.current)return;const S=pn(g.current),C=es(S);return g.current.contains(C)||(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(`
186
+ `)),g.current.setAttribute("tabIndex","-1")),m.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),I.useEffect(()=>{if(!l||!g.current)return;const S=pn(g.current),C=O=>{if(b.current=O,r||!a()||O.key!=="Tab")return;es(S)===g.current&&O.shiftKey&&(c.current=!0,u.current&&u.current.focus())},w=()=>{const O=g.current;if(O===null)return;const M=es(S);if(!S.hasFocus()||!a()||c.current){c.current=!1;return}if(O.contains(M)||r&&M!==d.current&&M!==u.current)return;if(M!==h.current)h.current=null;else if(h.current!==null)return;if(!m.current)return;let j=[];if((M===d.current||M===u.current)&&(j=s(g.current)),j.length>0){const A=!!(b.current?.shiftKey&&b.current?.key==="Tab"),L=j[0],E=j[j.length-1];typeof L!="string"&&typeof E!="string"&&(A?E.focus():L.focus())}else O.focus()};S.addEventListener("focusin",w),S.addEventListener("keydown",C,!0);const T=setInterval(()=>{const O=es(S);O&&O.tagName==="BODY"&&w()},50);return()=>{clearInterval(T),S.removeEventListener("focusin",w),S.removeEventListener("keydown",C,!0)}},[n,r,o,a,l,s]);const v=S=>{f.current===null&&(f.current=S.relatedTarget),m.current=!0,h.current=S.target;const C=t.props.onFocus;C&&C(S)},k=S=>{f.current===null&&(f.current=S.relatedTarget),m.current=!0};return p.jsxs(I.Fragment,{children:[p.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:d,"data-testid":"sentinelStart"}),I.cloneElement(t,{ref:y,onFocus:v}),p.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(yl.propTypes={children:Qo,disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableRestoreFocus:i.bool,getTabbable:i.func,isEnabled:i.func,open:i.bool.isRequired}),process.env.NODE_ENV!=="production"&&(yl.propTypes=za(yl.propTypes));function AO(e){return typeof e=="function"?e():e}function RO(e){return e?e.props.hasOwnProperty("in"):!1}const fg=()=>{},bl=new EO;function NO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:u}=e,f=I.useRef({}),h=I.useRef(null),m=I.useRef(null),g=qt(m,u),[y,b]=I.useState(!d),v=RO(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const S=()=>pn(h.current),C=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),w=()=>{bl.mount(C(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},T=jn(()=>{const $=AO(t)||S().body;bl.add(C(),$),m.current&&w()}),O=()=>bl.isTopModal(C()),M=jn($=>{h.current=$,$&&(d&&O()?w():m.current&&mi(m.current,k))}),j=I.useCallback(()=>{bl.remove(C(),k)},[k]);I.useEffect(()=>()=>{j()},[j]),I.useEffect(()=>{d?T():(!v||!o)&&j()},[d,j,v,o,T]);const A=$=>R=>{$.onKeyDown?.(R),!(R.key!=="Escape"||R.which===229||!O())&&(n||(R.stopPropagation(),c&&c(R,"escapeKeyDown")))},L=$=>R=>{$.onClick?.(R),R.target===R.currentTarget&&c&&c(R,"backdropClick")};return{getRootProps:($={})=>{const R=bm(e);delete R.onTransitionEnter,delete R.onTransitionExited;const W={...R,...$};return{role:"presentation",...W,onKeyDown:A(W),ref:g}},getBackdropProps:($={})=>{const R=$;return{"aria-hidden":!0,...R,onClick:L(R),open:d}},getTransitionProps:()=>{const $=()=>{b(!1),s&&s()},R=()=>{b(!0),a&&a(),o&&j()};return{onEnter:sm($,l?.props.onEnter??fg),onExited:sm(R,l?.props.onExited??fg)}},rootRef:g,portalRef:M,isTopModal:O,exited:y,hasTransition:v}}function $O(e){return Ae("MuiModal",e)}Re("MuiModal",["root","hidden","backdrop"]);const LO=e=>{const{open:t,exited:n,classes:r}=e;return Ne({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},$O,r)},BO=te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Le(({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"}}]}))),_O=te(ml,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Dd=I.forwardRef(function(t,n){const r=Be({name:"MuiModal",props:t}),{BackdropComponent:o=_O,BackdropProps:s,classes:a,className:l,closeAfterTransition:c=!1,children:d,container:u,component:f,components:h={},componentsProps:m={},disableAutoFocus:g=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:b=!1,disablePortal:v=!1,disableRestoreFocus:k=!1,disableScrollLock:S=!1,hideBackdrop:C=!1,keepMounted:w=!1,onClose:T,onTransitionEnter:O,onTransitionExited:M,open:j,slotProps:A={},slots:L={},theme:E,...N}=r,P={...r,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:y,disableEscapeKeyDown:b,disablePortal:v,disableRestoreFocus:k,disableScrollLock:S,hideBackdrop:C,keepMounted:w},{getRootProps:$,getBackdropProps:R,getTransitionProps:W,portalRef:V,isTopModal:H,exited:B,hasTransition:D}=NO({...P,rootRef:n}),F={...P,exited:B},U=LO(F),q={};if(d.props.tabIndex===void 0&&(q.tabIndex="-1"),D){const{onEnter:z,onExited:ee}=W();q.onEnter=z,q.onExited=ee}const X={slots:{root:h.Root,backdrop:h.Backdrop,...L},slotProps:{...m,...A}},[G,K]=qe("root",{ref:n,elementType:BO,externalForwardedProps:{...X,...N,component:f},getSlotProps:$,ownerState:F,className:ge(l,U?.root,!F.open&&F.exited&&U?.hidden)}),[ae,le]=qe("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:X,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:z=>R({...z,onClick:ee=>{z?.onClick&&z.onClick(ee)}}),className:ge(s?.className,U?.backdrop),ownerState:F});return!w&&!j&&(!D||B)?null:p.jsx(di,{ref:V,container:u,disablePortal:v,children:p.jsxs(G,{...K,children:[!C&&o?p.jsx(ae,{...le}):null,p.jsx(yl,{disableEnforceFocus:y,disableAutoFocus:g,disableRestoreFocus:k,isEnabled:H,open:j,children:I.cloneElement(d,q)})]})})});process.env.NODE_ENV!=="production"&&(Dd.propTypes={BackdropComponent:i.elementType,BackdropProps:i.object,children:Qo.isRequired,classes:i.object,className:i.string,closeAfterTransition:i.bool,component:i.elementType,components:i.shape({Backdrop:i.elementType,Root:i.elementType}),componentsProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([Er,i.func]),disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableEscapeKeyDown:i.bool,disablePortal:i.bool,disableRestoreFocus:i.bool,disableScrollLock:i.bool,hideBackdrop:i.bool,keepMounted:i.bool,onClose:i.func,onTransitionEnter:i.func,onTransitionExited:i.func,open:i.bool.isRequired,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function FO(e){return Ae("MuiDialog",e)}const Ad=Re("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),pg=I.createContext({});process.env.NODE_ENV!=="production"&&(pg.displayName="DialogContext");const WO=te(ml,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),zO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${J(n)}`],paper:["paper",`paperScroll${J(n)}`,`paperWidth${J(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return Ne(a,FO,t)},VO=te(Dd,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),HO=te("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${J(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"}}}]}),UO=te(ni,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${J(n.scroll)}`],t[`paperWidth${J(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Le(({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)`,[`&.${Ad.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}`,[`&.${Ad.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,[`&.${Ad.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Rd=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiDialog"}),o=gt(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:d,BackdropProps:u,children:f,className:h,disableEscapeKeyDown:m=!1,fullScreen:g=!1,fullWidth:y=!1,maxWidth:b="sm",onClick:v,onClose:k,open:S,PaperComponent:C=ni,PaperProps:w={},scroll:T="paper",slots:O={},slotProps:M={},TransitionComponent:j=hi,transitionDuration:A=s,TransitionProps:L,...E}=r,N={...r,disableEscapeKeyDown:m,fullScreen:g,fullWidth:y,maxWidth:b,scroll:T},P=zO(N),$=I.useRef(),R=ue=>{$.current=ue.target===ue.currentTarget},W=ue=>{v&&v(ue),$.current&&($.current=null,k&&k(ue,"backdropClick"))},V=so(l),H=I.useMemo(()=>({titleId:V}),[V]),B={transition:j,...O},D={transition:L,paper:w,backdrop:u,...M},F={slots:B,slotProps:D},[U,q]=qe("root",{elementType:VO,shouldForwardComponentProp:!0,externalForwardedProps:F,ownerState:N,className:ge(P.root,h),ref:n}),[X,G]=qe("backdrop",{elementType:WO,shouldForwardComponentProp:!0,externalForwardedProps:F,ownerState:N,className:P.backdrop}),[K,ae]=qe("paper",{elementType:UO,shouldForwardComponentProp:!0,externalForwardedProps:F,ownerState:N,className:ge(P.paper,w.className)}),[le,z]=qe("container",{elementType:HO,externalForwardedProps:F,ownerState:N,className:P.container}),[ee,_]=qe("transition",{elementType:hi,externalForwardedProps:F,ownerState:N,additionalProps:{appear:!0,in:S,timeout:A,role:"presentation"}});return p.jsx(U,{closeAfterTransition:!0,slots:{backdrop:X},slotProps:{backdrop:{transitionDuration:A,as:d,...G}},disableEscapeKeyDown:m,onClose:k,open:S,onClick:W,...q,...E,children:p.jsx(ee,{..._,children:p.jsx(le,{onMouseDown:R,...z,children:p.jsx(K,{as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":V,"aria-modal":c,...ae,children:p.jsx(pg.Provider,{value:H,children:f})})})})})});process.env.NODE_ENV!=="production"&&(Rd.propTypes={"aria-describedby":i.string,"aria-labelledby":i.string,"aria-modal":i.oneOfType([i.oneOf(["false","true"]),i.bool]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,disableEscapeKeyDown:i.bool,fullScreen:i.bool,fullWidth:i.bool,maxWidth:i.oneOfType([i.oneOf(["xs","sm","md","lg","xl",!1]),i.string]),onClick:i.func,onClose:i.func,open:i.bool.isRequired,PaperComponent:i.elementType,PaperProps:i.object,scroll:i.oneOf(["body","paper"]),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),container:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,container:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function YO(e){return Ae("MuiDialogActions",e)}Re("MuiDialogActions",["root","spacing"]);const qO=e=>{const{classes:t,disableSpacing:n}=e;return Ne({root:["root",!n&&"spacing"]},YO,t)},GO=te("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}}}]}),Nd=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...a}=r,l={...r,disableSpacing:s},c=qO(l);return p.jsx(GO,{className:ge(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Nd.propTypes={children:i.node,classes:i.object,className:i.string,disableSpacing:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function KO(e){return Ae("MuiDialogContent",e)}Re("MuiDialogContent",["root","dividers"]);const XO=Re("MuiDialogTitle",["root"]),ZO=e=>{const{classes:t,dividers:n}=e;return Ne({root:["root",n&&"dividers"]},KO,t)},JO=te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Le(({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:{[`.${XO.root} + &`]:{paddingTop:0}}}]}))),$d=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...a}=r,l={...r,dividers:s},c=ZO(l);return p.jsx(JO,{className:ge(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&($d.propTypes={children:i.node,classes:i.object,className:i.string,dividers:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function QO(e){return Ae("MuiDivider",e)}Re("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const e3=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:a,textAlign:l,variant:c}=e;return Ne({root:["root",t&&"absolute",c,s&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},QO,r)},t3=te("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]}})(Le(({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%"}}}]}))),n3=te("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Le(({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)`}}]}))),ts=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:a,orientation:l="horizontal",component:c=s||l==="vertical"?"div":"hr",flexItem:d=!1,light:u=!1,role:f=c!=="hr"?"separator":void 0,textAlign:h="center",variant:m="fullWidth",...g}=r,y={...r,absolute:o,component:c,flexItem:d,light:u,orientation:l,role:f,textAlign:h,variant:m},b=e3(y);return p.jsx(t3,{as:c,className:ge(b.root,a),role:f,ref:n,ownerState:y,"aria-orientation":f==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...g,children:s?p.jsx(n3,{className:b.wrapper,ownerState:y,children:s}):null})});ts&&(ts.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(ts.propTypes={absolute:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,flexItem:i.bool,light:i.bool,orientation:i.oneOf(["horizontal","vertical"]),role:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),textAlign:i.oneOf(["center","left","right"]),variant:i.oneOfType([i.oneOf(["fullWidth","inset","middle"]),i.string])});const r3=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:s,hiddenLabel:a,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${J(s)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},d=Ne(c,AE,t);return{...t,...d}},o3=te(fl,{shouldForwardProp:e=>Sn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...dl(e,t),!n.disableUnderline&&t.underline]}})(Le(({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)",o=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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${po.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${po.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"},[`&.${po.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${po.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(.${po.disabled}, .${po.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${po.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Wt()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),s3=te(pl,{name:"MuiFilledInput",slot:"Input",overridesResolver:ul})(Le(({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}}]}))),vl=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:a,fullWidth:l=!1,hiddenLabel:c,inputComponent:d="input",multiline:u=!1,slotProps:f,slots:h={},type:m="text",...g}=r,y={...r,disableUnderline:o,fullWidth:l,inputComponent:d,multiline:u,type:m},b=r3(r),v={root:{ownerState:y},input:{ownerState:y}},k=f??a?Yt(v,f??a):v,S=h.root??s.Root??o3,C=h.input??s.Input??s3;return p.jsx(hl,{slots:{root:S,input:C},slotProps:k,fullWidth:l,inputComponent:d,multiline:u,ref:n,type:m,...g,classes:b})});process.env.NODE_ENV!=="production"&&(vl.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:hn,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),vl.muiName="Input";function i3(e){return Ae("MuiFormControl",e)}Re("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const a3=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${J(n)}`,r&&"fullWidth"]};return Ne(o,i3,t)},l3=te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${J(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%"}}]}),hg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiFormControl"}),{children:o,className:s,color:a="primary",component:l="div",disabled:c=!1,error:d=!1,focused:u,fullWidth:f=!1,hiddenLabel:h=!1,margin:m="none",required:g=!1,size:y="medium",variant:b="outlined",...v}=r,k={...r,color:a,component:l,disabled:c,error:d,fullWidth:f,hiddenLabel:h,margin:m,required:g,size:y,variant:b},S=a3(k),[C,w]=I.useState(()=>{let R=!1;return o&&I.Children.forEach(o,W=>{if(!Ha(W,["Input","Select"]))return;const V=Ha(W,["Select"])?W.props.input:W;V&&ME(V.props)&&(R=!0)}),R}),[T,O]=I.useState(()=>{let R=!1;return o&&I.Children.forEach(o,W=>{Ha(W,["Input","Select"])&&(cl(W.props,!0)||cl(W.props.inputProps,!0))&&(R=!0)}),R}),[M,j]=I.useState(!1);c&&M&&j(!1);const A=u!==void 0&&!c?u:M;let L;const E=I.useRef(!1);process.env.NODE_ENV!=="production"&&(L=()=>(E.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
187
+ `)),E.current=!0,()=>{E.current=!1}));const N=I.useCallback(()=>{O(!0)},[]),P=I.useCallback(()=>{O(!1)},[]),$=I.useMemo(()=>({adornedStart:C,setAdornedStart:w,color:a,disabled:c,error:d,filled:T,focused:A,fullWidth:f,hiddenLabel:h,size:y,onBlur:()=>{j(!1)},onFocus:()=>{j(!0)},onEmpty:P,onFilled:N,registerEffect:L,required:g,variant:b}),[C,a,c,d,T,A,f,h,L,P,N,g,y,b]);return p.jsx(fi.Provider,{value:$,children:p.jsx(l3,{as:l,ownerState:k,className:ge(S.root,s),ref:n,...v,children:o})})});process.env.NODE_ENV!=="production"&&(hg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,focused:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,margin:i.oneOf(["dense","none","normal"]),required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});function c3(e){return Ae("MuiFormHelperText",e)}const mg=Re("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var gg;const d3=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:a,focused:l,required:c}=e,d={root:["root",o&&"disabled",s&&"error",r&&`size${J(r)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return Ne(d,c3,t)},u3=te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${J(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${mg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mg.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}}]}))),yg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:a="p",disabled:l,error:c,filled:d,focused:u,margin:f,required:h,variant:m,...g}=r,y=Hr(),b=Zo({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),v={...r,component:a,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete v.ownerState;const k=d3(v);return p.jsx(u3,{as:a,className:ge(k.root,s),ref:n,...g,ownerState:v,children:o===" "?gg||(gg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});process.env.NODE_ENV!=="production"&&(yg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["filled","outlined","standard"]),i.string])});function f3(e){return Ae("MuiFormLabel",e)}const gi=Re("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),p3=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:a,required:l}=e,c={root:["root",`color${J(n)}`,o&&"disabled",s&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return Ne(c,f3,t)},h3=te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Le(({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(Wt()).map(([t])=>({props:{color:t},style:{[`&.${gi.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${gi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gi.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),m3=te("span",{name:"MuiFormLabel",slot:"Asterisk"})(Le(({theme:e})=>({[`&.${gi.error}`]:{color:(e.vars||e).palette.error.main}}))),bg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:a,component:l="label",disabled:c,error:d,filled:u,focused:f,required:h,...m}=r,g=Hr(),y=Zo({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),b={...r,color:y.color||"primary",component:l,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},v=p3(b);return p.jsxs(h3,{as:l,ownerState:b,className:ge(v.root,s),ref:n,...m,children:[o,y.required&&p.jsxs(m3,{ownerState:b,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(bg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const yi=gC({createStyledComponent:te("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Be({props:e,name:"MuiGrid"}),useTheme:gt});if(process.env.NODE_ENV!=="production"&&(yi.propTypes={children:i.node,columns:i.oneOfType([i.arrayOf(i.number),i.number,i.object]),columnSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),container:i.bool,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),offset:i.oneOfType([i.string,i.number,i.arrayOf(i.oneOfType([i.string,i.number])),i.object]),rowSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),size:i.oneOfType([i.string,i.bool,i.number,i.arrayOf(i.oneOfType([i.string,i.bool,i.number])),i.object]),spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),unstable_level:i.number,wrap:i.oneOf(["nowrap","wrap-reverse","wrap"])}),process.env.NODE_ENV!=="production"){const e=yi,t=fT("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}function Ld(e){return`scale(${e}, ${e**2})`}const g3={entering:{opacity:1,transform:Ld(1)},entered:{opacity:1,transform:"none"}},Bd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bi=I.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:a,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:f,onExited:h,onExiting:m,style:g,timeout:y="auto",TransitionComponent:b=ir,...v}=t,k=Ho(),S=I.useRef(),C=gt(),w=I.useRef(null),T=qt(w,Xo(s),n),O=$=>R=>{if($){const W=w.current;R===void 0?$(W):$(W,R)}},M=O(u),j=O(($,R)=>{mm($);const{duration:W,delay:V,easing:H}=Za({style:g,timeout:y,easing:a},{mode:"enter"});let B;y==="auto"?(B=C.transitions.getAutoHeightDuration($.clientHeight),S.current=B):B=W,$.style.transition=[C.transitions.create("opacity",{duration:B,delay:V}),C.transitions.create("transform",{duration:Bd?B:B*.666,delay:V,easing:H})].join(","),c&&c($,R)}),A=O(d),L=O(m),E=O($=>{const{duration:R,delay:W,easing:V}=Za({style:g,timeout:y,easing:a},{mode:"exit"});let H;y==="auto"?(H=C.transitions.getAutoHeightDuration($.clientHeight),S.current=H):H=R,$.style.transition=[C.transitions.create("opacity",{duration:H,delay:W}),C.transitions.create("transform",{duration:Bd?H:H*.666,delay:Bd?W:W||H*.333,easing:V})].join(","),$.style.opacity=0,$.style.transform=Ld(.75),f&&f($)}),N=O(h),P=$=>{y==="auto"&&k.start(S.current||0,$),r&&r(w.current,$)};return p.jsx(b,{appear:o,in:l,nodeRef:w,onEnter:j,onEntered:A,onEntering:M,onExit:E,onExited:N,onExiting:L,addEndListener:P,timeout:y==="auto"?null:y,...v,children:($,{ownerState:R,...W})=>I.cloneElement(s,{style:{opacity:0,transform:Ld(.75),visibility:$==="exited"&&!l?"hidden":void 0,...g3[$],...g,...s.props.style},ref:T,...W})})});process.env.NODE_ENV!=="production"&&(bi.propTypes={addEndListener:i.func,appear:i.bool,children:Qo.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])}),bi&&(bi.muiSupportAuto=!0);const y3=e=>{const{classes:t,disableUnderline:n}=e,o=Ne({root:["root",!n&&"underline"],input:["input"]},IE,t);return{...t,...o}},b3=te(fl,{shouldForwardProp:e=>Sn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...dl(e,t),!n.disableUnderline&&t.underline]}})(Le(({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"},[`&.${pi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pi.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(.${pi.disabled}, .${pi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${pi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Wt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),v3=te(pl,{name:"MuiInput",slot:"Input",overridesResolver:ul})({}),xl=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:a,fullWidth:l=!1,inputComponent:c="input",multiline:d=!1,slotProps:u,slots:f={},type:h="text",...m}=r,g=y3(r),b={root:{ownerState:{disableUnderline:o}}},v=u??a?Yt(u??a,b):b,k=f.root??s.Root??b3,S=f.input??s.Input??v3;return p.jsx(hl,{slots:{root:k,input:S},slotProps:v,fullWidth:l,inputComponent:c,multiline:d,ref:n,type:h,...m,classes:g})});process.env.NODE_ENV!=="production"&&(xl.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:hn,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),xl.muiName="Input";function x3(e){return Ae("MuiInputAdornment",e)}const vg=Re("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var xg;const w3=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${J(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},S3=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:a}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${J(o)}`,a,r&&"hiddenLabel",s&&`size${J(s)}`]};return Ne(l,x3,t)},C3=te("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:w3})(Le(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${vg.positionStart}&:not(.${vg.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),wl=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:d,variant:u,...f}=r,h=Hr()||{};let m=u;u&&h.variant&&process.env.NODE_ENV!=="production"&&u===h.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),h&&!m&&(m=h.variant);const g={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:l,position:d,variant:m},y=S3(g);return p.jsx(fi.Provider,{value:null,children:p.jsx(C3,{as:a,ownerState:g,className:ge(y.root,s),ref:n,...f,children:typeof o=="string"&&!c?p.jsx(pt,{color:"textSecondary",children:o}):p.jsxs(I.Fragment,{children:[d==="start"?xg||(xg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});process.env.NODE_ENV!=="production"&&(wl.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,disablePointerEvents:i.bool,disableTypography:i.bool,position:i.oneOf(["end","start"]).isRequired,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});function T3(e){return Ae("MuiInputLabel",e)}Re("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const k3=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:a,required:l}=e,c={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="medium"&&`size${J(r)}`,a],asterisk:[l&&"asterisk"]},d=Ne(c,T3,t);return{...t,...d}},E3=te(bg,{shouldForwardProp:e=>Sn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gi.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]]}})(Le(({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)"}}]}))),wg=I.forwardRef(function(t,n){const r=Be({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:a,variant:l,className:c,...d}=r,u=Hr();let f=a;typeof f>"u"&&u&&(f=u.filled||u.focused||u.adornedStart);const h=Zo({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),m={...r,disableAnimation:o,formControl:u,shrink:f,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=k3(m);return p.jsx(E3,{"data-shrink":f,ref:n,className:ge(g.root,c),...d,ownerState:m,classes:g})});process.env.NODE_ENV!=="production"&&(wg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),disableAnimation:i.bool,disabled:i.bool,error:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,shrink:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});const Sg=I.createContext({});process.env.NODE_ENV!=="production"&&(Sg.displayName="ListContext");function O3(e){return Ae("MuiList",e)}Re("MuiList",["root","padding","dense","subheader"]);const M3=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ne({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},O3,t)},P3=te("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}}]}),mo=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiList"}),{children:o,className:s,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:d,...u}=r,f=I.useMemo(()=>({dense:l}),[l]),h={...r,component:a,dense:l,disablePadding:c},m=M3(h);return p.jsx(Sg.Provider,{value:f,children:p.jsxs(P3,{as:a,className:ge(m.root,s),ref:n,ownerState:h,...u,children:[d,o]})})});process.env.NODE_ENV!=="production"&&(mo.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,dense:i.bool,disablePadding:i.bool,subheader:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function _d(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Cg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Tg(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 vi(e,t,n,r,o,s){let a=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Tg(l,s)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const kg=I.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:u,variant:f="selectedMenu",...h}=t,m=I.useRef(null),g=I.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pn(()=>{o&&m.current.focus()},[o]),I.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:C})=>{const w=!m.current.style.width;if(S.clientHeight<m.current.clientHeight&&w){const T=`${cg(Hn(S))}px`;m.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=T,m.current.style.width=`calc(100% + ${T})`}return m.current}}),[]);const y=S=>{const C=m.current,w=S.key;if(S.ctrlKey||S.metaKey||S.altKey){u&&u(S);return}const O=es(pn(C));if(w==="ArrowDown")S.preventDefault(),vi(C,O,d,c,_d);else if(w==="ArrowUp")S.preventDefault(),vi(C,O,d,c,Cg);else if(w==="Home")S.preventDefault(),vi(C,null,d,c,_d);else if(w==="End")S.preventDefault(),vi(C,null,d,c,Cg);else if(w.length===1){const M=g.current,j=w.toLowerCase(),A=performance.now();M.keys.length>0&&(A-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&j!==M.keys[0]&&(M.repeating=!1)),M.lastTime=A,M.keys.push(j);const L=O&&!M.repeating&&Tg(O,M);M.previousKeyMatched&&(L||vi(C,O,!1,c,_d,M))?S.preventDefault():M.previousKeyMatched=!1}u&&u(S)},b=qt(m,n);let v=-1;I.Children.forEach(a,(S,C)=>{if(!I.isValidElement(S)){v===C&&(v+=1,v>=a.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&Cr.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
188
+ `)),S.props.disabled||(f==="selectedMenu"&&S.props.selected||v===-1)&&(v=C),v===C&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const k=I.Children.map(a,(S,C)=>{if(C===v){const w={};return s&&(w.autoFocus=!0),S.props.tabIndex===void 0&&f==="selectedMenu"&&(w.tabIndex=0),I.cloneElement(S,w)}return S});return p.jsx(mo,{role:"menu",ref:b,className:l,onKeyDown:y,tabIndex:o?0:-1,...h,children:k})});process.env.NODE_ENV!=="production"&&(kg.propTypes={autoFocus:i.bool,autoFocusItem:i.bool,children:i.node,className:i.string,disabledItemsFocusable:i.bool,disableListWrap:i.bool,onKeyDown:i.func,variant:i.oneOf(["menu","selectedMenu"])});function j3(e){return Ae("MuiPopover",e)}Re("MuiPopover",["root","paper"]);function Eg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Og(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Mg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function xi(e){return typeof e=="function"?e():e}const I3=e=>{const{classes:t}=e;return Ne({root:["root"],paper:["paper"]},j3,t)},D3=te(Dd,{name:"MuiPopover",slot:"Root"})({}),Pg=te(ni,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),wi=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:d,className:u,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:y={},slots:b={},slotProps:v={},transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:C="auto",TransitionProps:w={},disableScrollLock:T=!1,...O}=r,M=I.useRef(),j={...r,anchorOrigin:a,anchorReference:c,elevation:h,marginThreshold:m,transformOrigin:k,TransitionComponent:S,transitionDuration:C,TransitionProps:w},A=I3(j),L=I.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const z=xi(s),ee=z&&z.nodeType===1?z:pn(M.current).body,_=ee.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ue=ee.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ue.top===0&&ue.left===0&&ue.right===0&&ue.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(`
189
+ `))}return{top:_.top+Eg(_,a.vertical),left:_.left+Og(_,a.horizontal)}},[s,a.horizontal,a.vertical,l,c]),E=I.useCallback(z=>({vertical:Eg(z,k.vertical),horizontal:Og(z,k.horizontal)}),[k.horizontal,k.vertical]),N=I.useCallback(z=>{const ee={width:z.offsetWidth,height:z.offsetHeight},_=E(ee);if(c==="none")return{top:null,left:null,transformOrigin:Mg(_)};const ue=L();let Q=ue.top-_.vertical,ne=ue.left-_.horizontal;const we=Q+ee.height,ke=ne+ee.width,Ce=Hn(xi(s)),ve=Ce.innerHeight-m,_e=Ce.innerWidth-m;if(m!==null&&Q<m){const Ee=Q-m;Q-=Ee,_.vertical+=Ee}else if(m!==null&&we>ve){const Ee=we-ve;Q-=Ee,_.vertical+=Ee}if(process.env.NODE_ENV!=="production"&&ee.height>ve&&ee.height&&ve&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ee.height-ve}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
190
+ `)),m!==null&&ne<m){const Ee=ne-m;ne-=Ee,_.horizontal+=Ee}else if(ke>_e){const Ee=ke-_e;ne-=Ee,_.horizontal+=Ee}return{top:`${Math.round(Q)}px`,left:`${Math.round(ne)}px`,transformOrigin:Mg(_)}},[s,c,L,E,m]),[P,$]=I.useState(g),R=I.useCallback(()=>{const z=M.current;if(!z)return;const ee=N(z);ee.top!==null&&z.style.setProperty("top",ee.top),ee.left!==null&&(z.style.left=ee.left),z.style.transformOrigin=ee.transformOrigin,$(!0)},[N]);I.useEffect(()=>(T&&window.addEventListener("scroll",R),()=>window.removeEventListener("scroll",R)),[s,T,R]);const W=()=>{R()},V=()=>{$(!1)};I.useEffect(()=>{g&&R()}),I.useImperativeHandle(o,()=>g?{updatePosition:()=>{R()}}:null,[g,R]),I.useEffect(()=>{if(!g)return;const z=Qs(()=>{R()}),ee=Hn(xi(s));return ee.addEventListener("resize",z),()=>{z.clear(),ee.removeEventListener("resize",z)}},[s,g,R]);let H=C;const B={slots:{transition:S,...b},slotProps:{transition:w,paper:y,...v}},[D,F]=qe("transition",{elementType:bi,externalForwardedProps:B,ownerState:j,getSlotProps:z=>({...z,onEntering:(ee,_)=>{z.onEntering?.(ee,_),W()},onExited:ee=>{z.onExited?.(ee),V()}}),additionalProps:{appear:!0,in:g}});C==="auto"&&!D.muiSupportAuto&&(H=void 0);const U=f||(s?pn(xi(s)).body:void 0),[q,{slots:X,slotProps:G,...K}]=qe("root",{ref:n,elementType:D3,externalForwardedProps:{...B,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:cm(typeof v.backdrop=="function"?v.backdrop(j):v.backdrop,{invisible:!0})},container:U,open:g},ownerState:j,className:ge(A.root,u)}),[ae,le]=qe("paper",{ref:M,className:A.paper,elementType:Pg,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:P?void 0:{opacity:0}},ownerState:j});return p.jsx(q,{...K,...!Ja(q)&&{slots:X,slotProps:G,disableScrollLock:T},children:p.jsx(D,{...F,timeout:H,children:p.jsx(ae,{...le,children:d})})})});process.env.NODE_ENV!=="production"&&(wi.propTypes={action:hn,anchorEl:zr(i.oneOfType([Er,i.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=xi(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(`
191
191
  `))}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(`
192
- `))}return null}),anchorOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),anchorPosition:i.shape({left:i.number.isRequired,top:i.number.isRequired}),anchorReference:i.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,container:i.oneOfType([Er,i.func]),disableScrollLock:i.bool,elevation:ar,marginThreshold:i.number,onClose:i.func,open:i.bool.isRequired,PaperProps:i.shape({component:fd}),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transformOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function A3(e){return Ae("MuiMenu",e)}Re("MuiMenu",["root","paper","list"]);const R3={vertical:"top",horizontal:"right"},N3={vertical:"top",horizontal:"left"},$3=e=>{const{classes:t}=e;return Ne({root:["root"],paper:["paper"],list:["list"]},A3,t)},L3=te(wi,{shouldForwardProp:e=>Sn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),B3=te(Pg,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),_3=te(kg,{name:"MuiMenu",slot:"List"})({outline:0}),jg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:a,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g,...y}={},variant:b="selectedMenu",slots:v={},slotProps:T={},...S}=r,C=_o(),w={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:y,variant:b},k=$3(w),O=o&&!l&&u,P=I.useRef(null),j=(z,_)=>{P.current&&P.current.adjustStyleForScrollbar(z,{direction:C?"rtl":"ltr"}),g&&g(z,_)},A=z=>{z.key==="Tab"&&(z.preventDefault(),d&&d(z,"tabKeyDown"))};let L=-1;I.Children.map(s,(z,_)=>{I.isValidElement(z)&&(process.env.NODE_ENV!=="production"&&Cr.isFragment(z)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
193
- `)),z.props.disabled||(b==="selectedMenu"&&z.props.selected||L===-1)&&(L=_))});const E={slots:v,slotProps:{list:c,transition:y,paper:f,...T}},R=fo({elementType:v.root,externalSlotProps:T.root,ownerState:w,className:[k.root,a]}),[M,N]=qe("paper",{className:k.paper,elementType:B3,externalForwardedProps:E,shouldForwardComponentProp:!0,ownerState:w}),[$,F]=qe("list",{className:ge(k.list,c.className),elementType:_3,shouldForwardComponentProp:!0,externalForwardedProps:E,getSlotProps:z=>({...z,onKeyDown:_=>{A(_),z.onKeyDown?.(_)}}),ownerState:w}),H=typeof E.slotProps.transition=="function"?E.slotProps.transition(w):E.slotProps.transition;return p.jsx(L3,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?R3:N3,slots:{root:v.root,paper:M,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:R,paper:N,backdrop:typeof T.backdrop=="function"?T.backdrop(w):T.backdrop,transition:{...H,onEntering:(...z)=>{j(...z),H?.onEntering?.(...z)}}},open:u,ref:n,transitionDuration:m,ownerState:w,...S,classes:h,children:p.jsx($,{actions:P,autoFocus:o&&(L===-1||l),autoFocusItem:O,variant:b,...F,children:s})})});process.env.NODE_ENV!=="production"&&(jg.propTypes={anchorEl:i.oneOfType([Er,i.func]),autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,disableAutoFocusItem:i.bool,MenuListProps:i.object,onClose:i.func,open:i.bool.isRequired,PaperProps:i.object,PopoverClasses:i.object,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),list:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,list:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object,variant:i.oneOf(["menu","selectedMenu"])});function F3(e){return Ae("MuiNativeSelect",e)}const Fd=Re("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),W3=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${J(n)}`,s&&"iconOpen",r&&"disabled"]};return Ne(l,F3,t)},Ig=te("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Fd.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}}}]})),z3=te(Ig,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Sn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Fd.multiple}`]:t.multiple}]}})({}),Dg=te("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Fd.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}}]})),V3=te(Dg,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${J(n.variant)}`],n.open&&t.iconOpen]}})({}),Ag=I.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:a,inputRef:l,variant:c="standard",...d}=t,u={...t,disabled:o,variant:c,error:s},f=W3(u);return p.jsxs(I.Fragment,{children:[p.jsx(z3,{ownerState:u,className:ge(f.select,r),disabled:o,ref:l||n,...d}),t.multiple?null:p.jsx(V3,{as:a,ownerState:u,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(Ag.propTypes={children:i.node,classes:i.object,className:i.string,disabled:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:hn,multiple:i.bool,name:i.string,onChange:i.func,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});var Rg;const H3=te("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Sn})({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%"}),U3=te("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Sn})(Le(({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 Ng(e){const{children:t,classes:n,className:r,label:o,notched:s,...a}=e,l=o!=null&&o!=="",c={...e,notched:s,withLabel:l};return p.jsx(H3,{"aria-hidden":!0,className:r,ownerState:c,...a,children:p.jsx(U3,{ownerState:c,children:l?p.jsx("span",{children:o}):Rg||(Rg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(Ng.propTypes={children:i.node,classes:i.object,className:i.string,label:i.node,notched:i.bool.isRequired,style:i.object});const Y3=e=>{const{classes:t}=e,r=Ne({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},DE,t);return{...t,...r}},q3=te(fl,{shouldForwardProp:e=>Sn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:dl})(Le(({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 .${ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ur.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${ur.focused} .${ur.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Wt()).map(([n])=>({props:{color:n},style:{[`&.${ur.focused} .${ur.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${ur.error} .${ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ur.disabled} .${ur.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"}}]}})),G3=te(Ng,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Le(({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}})),K3=te(pl,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ul})(Le(({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}}]}))),Sl=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:d,slots:u={},slotProps:f={},type:h="text",...m}=r,g=Y3(r),y=Hr(),b=Zo({props:r,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...r,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:y,fullWidth:s,hiddenLabel:b.hiddenLabel,multiline:c,size:b.size,type:h},T=u.root??o.Root??q3,S=u.input??o.Input??K3,[C,w]=qe("notchedOutline",{elementType:G3,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:u,slotProps:f},additionalProps:{label:l!=null&&l!==""&&b.required?p.jsxs(I.Fragment,{children:[l," ","*"]}):l}});return p.jsx(hl,{slots:{root:T,input:S},slotProps:f,renderSuffix:k=>p.jsx(C,{...w,notched:typeof d<"u"?d:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:s,inputComponent:a,multiline:c,ref:n,type:h,...m,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Sl.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),defaultValue:i.any,disabled:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:hn,label:i.node,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,notched:i.bool,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,notchedOutline:i.oneOfType([i.func,i.object]),root:i.object}),slots:i.shape({input:i.elementType,notchedOutline:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),Sl.muiName="Input";function X3(e){return Ae("MuiPagination",e)}Re("MuiPagination",["root","ul","outlined","text"]);function Z3(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:s=!1,hideNextButton:a=!1,hidePrevButton:l=!1,onChange:c,page:d,showFirstButton:u=!1,showLastButton:f=!1,siblingCount:h=1,...m}=e,[g,y]=ei({controlled:d,default:o,name:n,state:"page"}),b=(j,A)=>{d||y(A),c&&c(j,A)},v=(j,A)=>{const L=A-j+1;return Array.from({length:L},(E,R)=>j+R)},T=v(1,Math.min(t,r)),S=v(Math.max(r-t+1,t+1),r),C=Math.max(Math.min(g-h,r-t-h*2-1),t+2),w=Math.min(Math.max(g+h,t+h*2+2),r-t-1),k=[...u?["first"]:[],...l?[]:["previous"],...T,...C>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...v(C,w),...w<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...S,...a?[]:["next"],...f?["last"]:[]],O=j=>{switch(j){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return r;default:return null}};return{items:k.map(j=>typeof j=="number"?{onClick:A=>{b(A,j)},type:"page",page:j,selected:j===g,disabled:s,"aria-current":j===g?"page":void 0}:{onClick:A=>{b(A,O(j))},type:j,page:O(j),selected:!1,disabled:s||!j.includes("ellipsis")&&(j==="next"||j==="last"?g>=r:g<=1)}),...m}}function J3(e){return Ae("MuiPaginationItem",e)}const nn=Re("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Q3=Cn(p.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),e5=Cn(p.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),t5=Cn(p.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),n5=Cn(p.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),$g=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${J(n.size)}`],n.variant==="text"&&t[`text${J(n.color)}`],n.variant==="outlined"&&t[`outlined${J(n.color)}`],n.shape==="rounded"&&t.rounded,n.type==="page"&&t.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&t.ellipsis,(n.type==="previous"||n.type==="next")&&t.previousNext,(n.type==="first"||n.type==="last")&&t.firstLast]},r5=e=>{const{classes:t,color:n,disabled:r,selected:o,size:s,shape:a,type:l,variant:c}=e,d={root:["root",`size${J(s)}`,c,a,n!=="standard"&&`color${J(n)}`,n!=="standard"&&`${c}${J(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return Ne(d,J3,t)},o5=te("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:$g})(Le(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),s5=te(lr,{name:"MuiPaginationItem",slot:"Root",overridesResolver:$g})(Le(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nn.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},[`&.${nn.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${nn.selected}`]:{[`&.${nn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${nn.selected}`]:{[`&.${nn.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Wt(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${nn.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${nn.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Wt(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${nn.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.5)}`,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.activatedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))]}))),i5=te("div",{name:"MuiPaginationItem",slot:"Icon"})(Le(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),Lg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiPaginationItem"}),{className:o,color:s="standard",component:a,components:l={},disabled:c=!1,page:d,selected:u=!1,shape:f="circular",size:h="medium",slots:m={},slotProps:g={},type:y="page",variant:b="text",...v}=r,T={...r,color:s,disabled:c,selected:u,shape:f,size:h,type:y,variant:b},S=_o(),C=r5(T),w={slots:{previous:m.previous??l.previous,next:m.next??l.next,first:m.first??l.first,last:m.last??l.last},slotProps:g},[k,O]=qe("previous",{elementType:t5,externalForwardedProps:w,ownerState:T}),[P,j]=qe("next",{elementType:n5,externalForwardedProps:w,ownerState:T}),[A,L]=qe("first",{elementType:Q3,externalForwardedProps:w,ownerState:T}),[E,R]=qe("last",{elementType:e5,externalForwardedProps:w,ownerState:T}),M=S?{previous:"next",next:"previous",first:"last",last:"first"}[y]:y,N={previous:k,next:P,first:A,last:E}[M],$={previous:O,next:j,first:L,last:R}[M];return y==="start-ellipsis"||y==="end-ellipsis"?p.jsx(o5,{ref:n,ownerState:T,className:ge(C.root,o),children:"…"}):p.jsxs(s5,{ref:n,ownerState:T,component:a,disabled:c,className:ge(C.root,o),...v,children:[y==="page"&&d,N?p.jsx(i5,{...$,className:C.icon,as:N}):null]})});process.env.NODE_ENV!=="production"&&(Lg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","standard"]),i.string]),component:i.elementType,components:i.shape({first:i.elementType,last:i.elementType,next:i.elementType,previous:i.elementType}),disabled:i.bool,page:i.node,selected:i.bool,shape:i.oneOf(["circular","rounded"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),slotProps:i.shape({first:i.oneOfType([i.func,i.object]),last:i.oneOfType([i.func,i.object]),next:i.oneOfType([i.func,i.object]),previous:i.oneOfType([i.func,i.object])}),slots:i.shape({first:i.elementType,last:i.elementType,next:i.elementType,previous:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:i.oneOfType([i.oneOf(["outlined","text"]),i.string])});const a5=e=>{const{classes:t,variant:n}=e;return Ne({root:["root",n],ul:["ul"]},X3,t)},l5=te("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),c5=te("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function d5(e,t,n){return e==="page"?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const Bg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:s,color:a="standard",count:l=1,defaultPage:c=1,disabled:d=!1,getItemAriaLabel:u=d5,hideNextButton:f=!1,hidePrevButton:h=!1,onChange:m,page:g,renderItem:y=A=>p.jsx(Lg,{...A}),shape:b="circular",showFirstButton:v=!1,showLastButton:T=!1,siblingCount:S=1,size:C="medium",variant:w="text",...k}=r,{items:O}=Z3({...r,componentName:"Pagination"}),P={...r,boundaryCount:o,color:a,count:l,defaultPage:c,disabled:d,getItemAriaLabel:u,hideNextButton:f,hidePrevButton:h,renderItem:y,shape:b,showFirstButton:v,showLastButton:T,siblingCount:S,size:C,variant:w},j=a5(P);return p.jsx(l5,{"aria-label":"pagination navigation",className:ge(j.root,s),ownerState:P,ref:n,...k,children:p.jsx(c5,{className:j.ul,ownerState:P,children:O.map((A,L)=>p.jsx("li",{children:y({...A,color:a,"aria-label":u(A.type,A.page,A.selected),shape:b,size:C,variant:w})},L))})})});process.env.NODE_ENV!=="production"&&(Bg.propTypes={boundaryCount:ar,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","standard"]),i.string]),count:ar,defaultPage:ar,disabled:i.bool,getItemAriaLabel:i.func,hideNextButton:i.bool,hidePrevButton:i.bool,onChange:i.func,page:ar,renderItem:i.func,shape:i.oneOf(["circular","rounded"]),showFirstButton:i.bool,showLastButton:i.bool,siblingCount:ar,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["outlined","text"]),i.string])});function _g(e){return Ae("MuiSelect",e)}const Si=Re("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Fg;const u5=te(Ig,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Si.select}`]:t.select},{[`&.${Si.select}`]:t[n.variant]},{[`&.${Si.error}`]:t.error},{[`&.${Si.multiple}`]:t.multiple}]}})({[`&.${Si.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),f5=te(Dg,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${J(n.variant)}`],n.open&&t.iconOpen]}})({}),p5=te("input",{shouldForwardProp:e=>om(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Wg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function h5(e){return e==null||typeof e=="string"&&!e.trim()}const m5=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${J(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ne(l,_g,t)},zg=I.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:u,disabled:f,displayEmpty:h,error:m=!1,IconComponent:g,inputRef:y,labelId:b,MenuProps:v={},multiple:T,name:S,onBlur:C,onChange:w,onClose:k,onFocus:O,onKeyDown:P,onMouseDown:j,onOpen:A,open:L,readOnly:E,renderValue:R,required:M,SelectDisplayProps:N={},tabIndex:$,type:F,value:H,variant:z="standard",..._}=t,[D,V]=ei({controlled:H,default:u,name:"Select"}),[U,G]=ei({controlled:L,default:d,name:"Select"}),X=I.useRef(null),q=I.useRef(null),[K,ce]=I.useState(null),{current:de}=I.useRef(L!=null),[W,ee]=I.useState(),B=qt(n,y),ue=I.useCallback(me=>{q.current=me,me&&ce(me)},[]),Q=K?.parentNode;I.useImperativeHandle(B,()=>({focus:()=>{q.current.focus()},node:X.current,value:D}),[D]);const ne=K!==null&&U;I.useEffect(()=>{if(!ne||!Q||a||typeof ResizeObserver>"u")return;const me=new ResizeObserver(()=>{ee(Q.clientWidth)});return me.observe(Q),()=>{me.disconnect()}},[ne,Q,a]),I.useEffect(()=>{d&&U&&K&&!de&&(ee(a?null:Q.clientWidth),q.current.focus())},[K,a]),I.useEffect(()=>{s&&q.current.focus()},[s]),I.useEffect(()=>{if(!b)return;const me=pn(q.current).getElementById(b);if(me){const fe=()=>{getSelection().isCollapsed&&q.current.focus()};return me.addEventListener("click",fe),()=>{me.removeEventListener("click",fe)}}},[b]);const we=(me,fe)=>{me?A&&A(fe):k&&k(fe),de||(ee(a?null:Q.clientWidth),G(me))},ke=me=>{j?.(me),me.button===0&&(me.preventDefault(),q.current.focus(),we(!0,me))},Ce=me=>{we(!1,me)},ve=I.Children.toArray(l),_e=me=>{const fe=ve.find(De=>De.props.value===me.target.value);fe!==void 0&&(V(fe.props.value),w&&w(me,fe))},Ee=me=>fe=>{let De;if(fe.currentTarget.hasAttribute("tabindex")){if(T){De=Array.isArray(D)?D.slice():[];const Me=D.indexOf(me.props.value);Me===-1?De.push(me.props.value):De.splice(Me,1)}else De=me.props.value;if(me.props.onClick&&me.props.onClick(fe),D!==De&&(V(De),w)){const Me=fe.nativeEvent||fe,Je=new Me.constructor(Me.type,Me);Object.defineProperty(Je,"target",{writable:!0,value:{value:De,name:S}}),w(Je,me)}T||we(!1,fe)}},xe=me=>{E||([" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),we(!0,me)),P?.(me))},re=me=>{!ne&&C&&(Object.defineProperty(me,"target",{writable:!0,value:{value:D,name:S}}),C(me))};delete _["aria-invalid"];let ie,Te;const he=[];let pe=!1,Ie=!1;(cl({value:D})||h)&&(R?ie=R(D):pe=!0);const Fe=ve.map(me=>{if(!I.isValidElement(me))return null;process.env.NODE_ENV!=="production"&&Cr.isFragment(me)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
194
- `));let fe;if(T){if(!Array.isArray(D))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Qn(2));fe=D.some(De=>Wg(De,me.props.value)),fe&&pe&&he.push(me.props.children)}else fe=Wg(D,me.props.value),fe&&pe&&(Te=me.props.children);return fe&&(Ie=!0),I.cloneElement(me,{"aria-selected":fe?"true":"false",onClick:Ee(me),onKeyUp:De=>{De.key===" "&&De.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(De)},role:"option",selected:fe,value:void 0,"data-value":me.props.value})});process.env.NODE_ENV!=="production"&&I.useEffect(()=>{if(!Ie&&!T&&D!==""){const me=ve.map(fe=>fe.props.value);console.warn([`MUI: You have provided an out-of-range value \`${D}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${me.filter(fe=>fe!=null).map(fe=>`\`${fe}\``).join(", ")||'""'}.`].join(`
195
- `))}},[Ie,ve,T,S,D]),pe&&(T?he.length===0?ie=null:ie=he.reduce((me,fe,De)=>(me.push(fe),De<he.length-1&&me.push(", "),me),[]):ie=Te);let He=W;!a&&de&&K&&(He=Q.clientWidth);let Oe;typeof $<"u"?Oe=$:Oe=f?null:0;const Tt=N.id||(S?`mui-component-select-${S}`:void 0),st={...t,variant:z,value:D,open:ne,error:m},nt=m5(st),dn={...v.PaperProps,...typeof v.slotProps?.paper=="function"?v.slotProps.paper(st):v.slotProps?.paper},Jn={...v.MenuListProps,...typeof v.slotProps?.list=="function"?v.slotProps.list(st):v.slotProps?.list},Wn=so();return p.jsxs(I.Fragment,{children:[p.jsx(u5,{as:"div",ref:ue,tabIndex:Oe,role:"combobox","aria-controls":ne?Wn:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":ne?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[b,Tt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":M?"true":void 0,"aria-invalid":m?"true":void 0,onKeyDown:xe,onMouseDown:f||E?null:ke,onBlur:re,onFocus:O,...N,ownerState:st,className:ge(N.className,nt.select,c),id:Tt,children:h5(ie)?Fg||(Fg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):ie}),p.jsx(p5,{"aria-invalid":m,value:Array.isArray(D)?D.join(","):D,name:S,ref:X,"aria-hidden":!0,onChange:_e,tabIndex:-1,disabled:f,className:nt.nativeInput,autoFocus:s,required:M,..._,ownerState:st}),p.jsx(f5,{as:g,className:nt.icon,ownerState:st}),p.jsx(jg,{id:`menu-${S||""}`,anchorEl:Q,open:ne,onClose:Ce,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":T?"true":void 0,disableListWrap:!0,id:Wn,...Jn},paper:{...dn,style:{minWidth:He,...dn!=null?dn.style:null}}},children:Fe})]})});process.env.NODE_ENV!=="production"&&(zg.propTypes={"aria-describedby":i.string,"aria-label":i.string,autoFocus:i.bool,autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,disabled:i.bool,displayEmpty:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:hn,labelId:i.string,MenuProps:i.object,multiple:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClose:i.func,onFocus:i.func,onOpen:i.func,open:i.bool,readOnly:i.bool,renderValue:i.func,required:i.bool,SelectDisplayProps:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.any,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});const g5=e=>{const{classes:t}=e,r=Ne({root:["root"]},_g,t);return{...t,...r}},Wd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Sn(e)&&e!=="variant"},y5=te(xl,Wd)(""),b5=te(Sl,Wd)(""),v5=te(vl,Wd)(""),zd=I.forwardRef(function(t,n){const r=Be({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:u=RE,id:f,input:h,inputProps:m,label:g,labelId:y,MenuProps:b,multiple:v=!1,native:T=!1,onClose:S,onOpen:C,open:w,renderValue:k,SelectDisplayProps:O,variant:P="outlined",...j}=r,A=T?Ag:zg,L=Hr(),E=Zo({props:r,muiFormControl:L,states:["variant","error"]}),R=E.variant||P,M={...r,variant:R,classes:a},N=g5(M),{root:$,...F}=N,H=h||{standard:p.jsx(y5,{ownerState:M}),outlined:p.jsx(b5,{label:g,ownerState:M}),filled:p.jsx(v5,{ownerState:M})}[R],z=qt(n,Xo(H));return p.jsx(I.Fragment,{children:I.cloneElement(H,{inputComponent:A,inputProps:{children:s,error:E.error,IconComponent:u,variant:R,type:void 0,multiple:v,...T?{id:f}:{autoWidth:o,defaultOpen:c,displayEmpty:d,labelId:y,MenuProps:b,onClose:S,onOpen:C,open:w,renderValue:k,SelectDisplayProps:{id:f,...O}},...m,classes:m?Yt(F,m.classes):F,...h?h.props.inputProps:{}},...(v&&T||d)&&R==="outlined"?{notched:!0}:{},ref:z,className:ge(H.props.className,l,N.root),...!h&&{variant:R},...j})})});process.env.NODE_ENV!=="production"&&(zd.propTypes={autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,displayEmpty:i.bool,IconComponent:i.elementType,id:i.string,input:i.element,inputProps:i.object,label:i.node,labelId:i.string,MenuProps:i.object,multiple:i.bool,native:i.bool,onChange:i.func,onClose:i.func,onOpen:i.func,open:i.bool,renderValue:i.func,SelectDisplayProps:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.oneOfType([i.oneOf([""]),i.any]),variant:i.oneOf(["filled","outlined","standard"])}),zd.muiName="Select";function x5(e){return Ae("MuiSkeleton",e)}Re("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const w5=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:a}=e;return Ne({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!a&&"heightAuto"]},x5,t)},Vd=Lr`
192
+ `))}return null}),anchorOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),anchorPosition:i.shape({left:i.number.isRequired,top:i.number.isRequired}),anchorReference:i.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,container:i.oneOfType([Er,i.func]),disableScrollLock:i.bool,elevation:ar,marginThreshold:i.number,onClose:i.func,open:i.bool.isRequired,PaperProps:i.shape({component:fd}),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transformOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function A3(e){return Ae("MuiMenu",e)}Re("MuiMenu",["root","paper","list"]);const R3={vertical:"top",horizontal:"right"},N3={vertical:"top",horizontal:"left"},$3=e=>{const{classes:t}=e;return Ne({root:["root"],paper:["paper"],list:["list"]},A3,t)},L3=te(wi,{shouldForwardProp:e=>Sn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),B3=te(Pg,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),_3=te(kg,{name:"MuiMenu",slot:"List"})({outline:0}),jg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:a,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g,...y}={},variant:b="selectedMenu",slots:v={},slotProps:k={},...S}=r,C=_o(),w={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:y,variant:b},T=$3(w),O=o&&!l&&u,M=I.useRef(null),j=(H,B)=>{M.current&&M.current.adjustStyleForScrollbar(H,{direction:C?"rtl":"ltr"}),g&&g(H,B)},A=H=>{H.key==="Tab"&&(H.preventDefault(),d&&d(H,"tabKeyDown"))};let L=-1;I.Children.map(s,(H,B)=>{I.isValidElement(H)&&(process.env.NODE_ENV!=="production"&&Cr.isFragment(H)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
193
+ `)),H.props.disabled||(b==="selectedMenu"&&H.props.selected||L===-1)&&(L=B))});const E={slots:v,slotProps:{list:c,transition:y,paper:f,...k}},N=fo({elementType:v.root,externalSlotProps:k.root,ownerState:w,className:[T.root,a]}),[P,$]=qe("paper",{className:T.paper,elementType:B3,externalForwardedProps:E,shouldForwardComponentProp:!0,ownerState:w}),[R,W]=qe("list",{className:ge(T.list,c.className),elementType:_3,shouldForwardComponentProp:!0,externalForwardedProps:E,getSlotProps:H=>({...H,onKeyDown:B=>{A(B),H.onKeyDown?.(B)}}),ownerState:w}),V=typeof E.slotProps.transition=="function"?E.slotProps.transition(w):E.slotProps.transition;return p.jsx(L3,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?R3:N3,slots:{root:v.root,paper:P,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:N,paper:$,backdrop:typeof k.backdrop=="function"?k.backdrop(w):k.backdrop,transition:{...V,onEntering:(...H)=>{j(...H),V?.onEntering?.(...H)}}},open:u,ref:n,transitionDuration:m,ownerState:w,...S,classes:h,children:p.jsx(R,{actions:M,autoFocus:o&&(L===-1||l),autoFocusItem:O,variant:b,...W,children:s})})});process.env.NODE_ENV!=="production"&&(jg.propTypes={anchorEl:i.oneOfType([Er,i.func]),autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,disableAutoFocusItem:i.bool,MenuListProps:i.object,onClose:i.func,open:i.bool.isRequired,PaperProps:i.object,PopoverClasses:i.object,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),list:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,list:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object,variant:i.oneOf(["menu","selectedMenu"])});function F3(e){return Ae("MuiNativeSelect",e)}const Fd=Re("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),W3=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${J(n)}`,s&&"iconOpen",r&&"disabled"]};return Ne(l,F3,t)},Ig=te("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Fd.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}}}]})),z3=te(Ig,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Sn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Fd.multiple}`]:t.multiple}]}})({}),Dg=te("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Fd.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}}]})),V3=te(Dg,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${J(n.variant)}`],n.open&&t.iconOpen]}})({}),Ag=I.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:a,inputRef:l,variant:c="standard",...d}=t,u={...t,disabled:o,variant:c,error:s},f=W3(u);return p.jsxs(I.Fragment,{children:[p.jsx(z3,{ownerState:u,className:ge(f.select,r),disabled:o,ref:l||n,...d}),t.multiple?null:p.jsx(V3,{as:a,ownerState:u,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(Ag.propTypes={children:i.node,classes:i.object,className:i.string,disabled:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:hn,multiple:i.bool,name:i.string,onChange:i.func,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});var Rg;const H3=te("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Sn})({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%"}),U3=te("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Sn})(Le(({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 Ng(e){const{children:t,classes:n,className:r,label:o,notched:s,...a}=e,l=o!=null&&o!=="",c={...e,notched:s,withLabel:l};return p.jsx(H3,{"aria-hidden":!0,className:r,ownerState:c,...a,children:p.jsx(U3,{ownerState:c,children:l?p.jsx("span",{children:o}):Rg||(Rg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(Ng.propTypes={children:i.node,classes:i.object,className:i.string,label:i.node,notched:i.bool.isRequired,style:i.object});const Y3=e=>{const{classes:t}=e,r=Ne({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},DE,t);return{...t,...r}},q3=te(fl,{shouldForwardProp:e=>Sn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:dl})(Le(({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 .${ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ur.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${ur.focused} .${ur.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Wt()).map(([n])=>({props:{color:n},style:{[`&.${ur.focused} .${ur.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${ur.error} .${ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ur.disabled} .${ur.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"}}]}})),G3=te(Ng,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Le(({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}})),K3=te(pl,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ul})(Le(({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}}]}))),Sl=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:d,slots:u={},slotProps:f={},type:h="text",...m}=r,g=Y3(r),y=Hr(),b=Zo({props:r,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...r,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:y,fullWidth:s,hiddenLabel:b.hiddenLabel,multiline:c,size:b.size,type:h},k=u.root??o.Root??q3,S=u.input??o.Input??K3,[C,w]=qe("notchedOutline",{elementType:G3,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:u,slotProps:f},additionalProps:{label:l!=null&&l!==""&&b.required?p.jsxs(I.Fragment,{children:[l," ","*"]}):l}});return p.jsx(hl,{slots:{root:k,input:S},slotProps:f,renderSuffix:T=>p.jsx(C,{...w,notched:typeof d<"u"?d:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:s,inputComponent:a,multiline:c,ref:n,type:h,...m,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Sl.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),defaultValue:i.any,disabled:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:hn,label:i.node,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,notched:i.bool,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,notchedOutline:i.oneOfType([i.func,i.object]),root:i.object}),slots:i.shape({input:i.elementType,notchedOutline:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),Sl.muiName="Input";function X3(e){return Ae("MuiPagination",e)}Re("MuiPagination",["root","ul","outlined","text"]);function Z3(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:s=!1,hideNextButton:a=!1,hidePrevButton:l=!1,onChange:c,page:d,showFirstButton:u=!1,showLastButton:f=!1,siblingCount:h=1,...m}=e,[g,y]=ei({controlled:d,default:o,name:n,state:"page"}),b=(j,A)=>{d||y(A),c&&c(j,A)},v=(j,A)=>{const L=A-j+1;return Array.from({length:L},(E,N)=>j+N)},k=v(1,Math.min(t,r)),S=v(Math.max(r-t+1,t+1),r),C=Math.max(Math.min(g-h,r-t-h*2-1),t+2),w=Math.min(Math.max(g+h,t+h*2+2),r-t-1),T=[...u?["first"]:[],...l?[]:["previous"],...k,...C>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...v(C,w),...w<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...S,...a?[]:["next"],...f?["last"]:[]],O=j=>{switch(j){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return r;default:return null}};return{items:T.map(j=>typeof j=="number"?{onClick:A=>{b(A,j)},type:"page",page:j,selected:j===g,disabled:s,"aria-current":j===g?"page":void 0}:{onClick:A=>{b(A,O(j))},type:j,page:O(j),selected:!1,disabled:s||!j.includes("ellipsis")&&(j==="next"||j==="last"?g>=r:g<=1)}),...m}}function J3(e){return Ae("MuiPaginationItem",e)}const nn=Re("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Q3=Cn(p.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),e5=Cn(p.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),t5=Cn(p.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),n5=Cn(p.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),$g=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${J(n.size)}`],n.variant==="text"&&t[`text${J(n.color)}`],n.variant==="outlined"&&t[`outlined${J(n.color)}`],n.shape==="rounded"&&t.rounded,n.type==="page"&&t.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&t.ellipsis,(n.type==="previous"||n.type==="next")&&t.previousNext,(n.type==="first"||n.type==="last")&&t.firstLast]},r5=e=>{const{classes:t,color:n,disabled:r,selected:o,size:s,shape:a,type:l,variant:c}=e,d={root:["root",`size${J(s)}`,c,a,n!=="standard"&&`color${J(n)}`,n!=="standard"&&`${c}${J(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return Ne(d,J3,t)},o5=te("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:$g})(Le(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),s5=te(lr,{name:"MuiPaginationItem",slot:"Root",overridesResolver:$g})(Le(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nn.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},[`&.${nn.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${nn.selected}`]:{[`&.${nn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${nn.selected}`]:{[`&.${nn.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Wt(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${nn.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${nn.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Wt(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${nn.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.5)}`,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.activatedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))]}))),i5=te("div",{name:"MuiPaginationItem",slot:"Icon"})(Le(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),Lg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiPaginationItem"}),{className:o,color:s="standard",component:a,components:l={},disabled:c=!1,page:d,selected:u=!1,shape:f="circular",size:h="medium",slots:m={},slotProps:g={},type:y="page",variant:b="text",...v}=r,k={...r,color:s,disabled:c,selected:u,shape:f,size:h,type:y,variant:b},S=_o(),C=r5(k),w={slots:{previous:m.previous??l.previous,next:m.next??l.next,first:m.first??l.first,last:m.last??l.last},slotProps:g},[T,O]=qe("previous",{elementType:t5,externalForwardedProps:w,ownerState:k}),[M,j]=qe("next",{elementType:n5,externalForwardedProps:w,ownerState:k}),[A,L]=qe("first",{elementType:Q3,externalForwardedProps:w,ownerState:k}),[E,N]=qe("last",{elementType:e5,externalForwardedProps:w,ownerState:k}),P=S?{previous:"next",next:"previous",first:"last",last:"first"}[y]:y,$={previous:T,next:M,first:A,last:E}[P],R={previous:O,next:j,first:L,last:N}[P];return y==="start-ellipsis"||y==="end-ellipsis"?p.jsx(o5,{ref:n,ownerState:k,className:ge(C.root,o),children:"…"}):p.jsxs(s5,{ref:n,ownerState:k,component:a,disabled:c,className:ge(C.root,o),...v,children:[y==="page"&&d,$?p.jsx(i5,{...R,className:C.icon,as:$}):null]})});process.env.NODE_ENV!=="production"&&(Lg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","standard"]),i.string]),component:i.elementType,components:i.shape({first:i.elementType,last:i.elementType,next:i.elementType,previous:i.elementType}),disabled:i.bool,page:i.node,selected:i.bool,shape:i.oneOf(["circular","rounded"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),slotProps:i.shape({first:i.oneOfType([i.func,i.object]),last:i.oneOfType([i.func,i.object]),next:i.oneOfType([i.func,i.object]),previous:i.oneOfType([i.func,i.object])}),slots:i.shape({first:i.elementType,last:i.elementType,next:i.elementType,previous:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:i.oneOfType([i.oneOf(["outlined","text"]),i.string])});const a5=e=>{const{classes:t,variant:n}=e;return Ne({root:["root",n],ul:["ul"]},X3,t)},l5=te("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),c5=te("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function d5(e,t,n){return e==="page"?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const Bg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:s,color:a="standard",count:l=1,defaultPage:c=1,disabled:d=!1,getItemAriaLabel:u=d5,hideNextButton:f=!1,hidePrevButton:h=!1,onChange:m,page:g,renderItem:y=A=>p.jsx(Lg,{...A}),shape:b="circular",showFirstButton:v=!1,showLastButton:k=!1,siblingCount:S=1,size:C="medium",variant:w="text",...T}=r,{items:O}=Z3({...r,componentName:"Pagination"}),M={...r,boundaryCount:o,color:a,count:l,defaultPage:c,disabled:d,getItemAriaLabel:u,hideNextButton:f,hidePrevButton:h,renderItem:y,shape:b,showFirstButton:v,showLastButton:k,siblingCount:S,size:C,variant:w},j=a5(M);return p.jsx(l5,{"aria-label":"pagination navigation",className:ge(j.root,s),ownerState:M,ref:n,...T,children:p.jsx(c5,{className:j.ul,ownerState:M,children:O.map((A,L)=>p.jsx("li",{children:y({...A,color:a,"aria-label":u(A.type,A.page,A.selected),shape:b,size:C,variant:w})},L))})})});process.env.NODE_ENV!=="production"&&(Bg.propTypes={boundaryCount:ar,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","standard"]),i.string]),count:ar,defaultPage:ar,disabled:i.bool,getItemAriaLabel:i.func,hideNextButton:i.bool,hidePrevButton:i.bool,onChange:i.func,page:ar,renderItem:i.func,shape:i.oneOf(["circular","rounded"]),showFirstButton:i.bool,showLastButton:i.bool,siblingCount:ar,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["outlined","text"]),i.string])});function _g(e){return Ae("MuiSelect",e)}const Si=Re("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Fg;const u5=te(Ig,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Si.select}`]:t.select},{[`&.${Si.select}`]:t[n.variant]},{[`&.${Si.error}`]:t.error},{[`&.${Si.multiple}`]:t.multiple}]}})({[`&.${Si.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),f5=te(Dg,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${J(n.variant)}`],n.open&&t.iconOpen]}})({}),p5=te("input",{shouldForwardProp:e=>om(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Wg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function h5(e){return e==null||typeof e=="string"&&!e.trim()}const m5=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${J(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ne(l,_g,t)},zg=I.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:u,disabled:f,displayEmpty:h,error:m=!1,IconComponent:g,inputRef:y,labelId:b,MenuProps:v={},multiple:k,name:S,onBlur:C,onChange:w,onClose:T,onFocus:O,onKeyDown:M,onMouseDown:j,onOpen:A,open:L,readOnly:E,renderValue:N,required:P,SelectDisplayProps:$={},tabIndex:R,type:W,value:V,variant:H="standard",...B}=t,[D,F]=ei({controlled:V,default:u,name:"Select"}),[U,q]=ei({controlled:L,default:d,name:"Select"}),X=I.useRef(null),G=I.useRef(null),[K,ae]=I.useState(null),{current:le}=I.useRef(L!=null),[z,ee]=I.useState(),_=qt(n,y),ue=I.useCallback(me=>{G.current=me,me&&ae(me)},[]),Q=K?.parentNode;I.useImperativeHandle(_,()=>({focus:()=>{G.current.focus()},node:X.current,value:D}),[D]);const ne=K!==null&&U;I.useEffect(()=>{if(!ne||!Q||a||typeof ResizeObserver>"u")return;const me=new ResizeObserver(()=>{ee(Q.clientWidth)});return me.observe(Q),()=>{me.disconnect()}},[ne,Q,a]),I.useEffect(()=>{d&&U&&K&&!le&&(ee(a?null:Q.clientWidth),G.current.focus())},[K,a]),I.useEffect(()=>{s&&G.current.focus()},[s]),I.useEffect(()=>{if(!b)return;const me=pn(G.current).getElementById(b);if(me){const fe=()=>{getSelection().isCollapsed&&G.current.focus()};return me.addEventListener("click",fe),()=>{me.removeEventListener("click",fe)}}},[b]);const we=(me,fe)=>{me?A&&A(fe):T&&T(fe),le||(ee(a?null:Q.clientWidth),q(me))},ke=me=>{j?.(me),me.button===0&&(me.preventDefault(),G.current.focus(),we(!0,me))},Ce=me=>{we(!1,me)},ve=I.Children.toArray(l),_e=me=>{const fe=ve.find(De=>De.props.value===me.target.value);fe!==void 0&&(F(fe.props.value),w&&w(me,fe))},Ee=me=>fe=>{let De;if(fe.currentTarget.hasAttribute("tabindex")){if(k){De=Array.isArray(D)?D.slice():[];const Me=D.indexOf(me.props.value);Me===-1?De.push(me.props.value):De.splice(Me,1)}else De=me.props.value;if(me.props.onClick&&me.props.onClick(fe),D!==De&&(F(De),w)){const Me=fe.nativeEvent||fe,Je=new Me.constructor(Me.type,Me);Object.defineProperty(Je,"target",{writable:!0,value:{value:De,name:S}}),w(Je,me)}k||we(!1,fe)}},xe=me=>{E||([" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),we(!0,me)),M?.(me))},re=me=>{!ne&&C&&(Object.defineProperty(me,"target",{writable:!0,value:{value:D,name:S}}),C(me))};delete B["aria-invalid"];let ie,Te;const he=[];let pe=!1,Ie=!1;(cl({value:D})||h)&&(N?ie=N(D):pe=!0);const Fe=ve.map(me=>{if(!I.isValidElement(me))return null;process.env.NODE_ENV!=="production"&&Cr.isFragment(me)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
194
+ `));let fe;if(k){if(!Array.isArray(D))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Qn(2));fe=D.some(De=>Wg(De,me.props.value)),fe&&pe&&he.push(me.props.children)}else fe=Wg(D,me.props.value),fe&&pe&&(Te=me.props.children);return fe&&(Ie=!0),I.cloneElement(me,{"aria-selected":fe?"true":"false",onClick:Ee(me),onKeyUp:De=>{De.key===" "&&De.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(De)},role:"option",selected:fe,value:void 0,"data-value":me.props.value})});process.env.NODE_ENV!=="production"&&I.useEffect(()=>{if(!Ie&&!k&&D!==""){const me=ve.map(fe=>fe.props.value);console.warn([`MUI: You have provided an out-of-range value \`${D}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${me.filter(fe=>fe!=null).map(fe=>`\`${fe}\``).join(", ")||'""'}.`].join(`
195
+ `))}},[Ie,ve,k,S,D]),pe&&(k?he.length===0?ie=null:ie=he.reduce((me,fe,De)=>(me.push(fe),De<he.length-1&&me.push(", "),me),[]):ie=Te);let He=z;!a&&le&&K&&(He=Q.clientWidth);let Oe;typeof R<"u"?Oe=R:Oe=f?null:0;const Tt=$.id||(S?`mui-component-select-${S}`:void 0),st={...t,variant:H,value:D,open:ne,error:m},nt=m5(st),dn={...v.PaperProps,...typeof v.slotProps?.paper=="function"?v.slotProps.paper(st):v.slotProps?.paper},Jn={...v.MenuListProps,...typeof v.slotProps?.list=="function"?v.slotProps.list(st):v.slotProps?.list},Wn=so();return p.jsxs(I.Fragment,{children:[p.jsx(u5,{as:"div",ref:ue,tabIndex:Oe,role:"combobox","aria-controls":ne?Wn:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":ne?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[b,Tt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":P?"true":void 0,"aria-invalid":m?"true":void 0,onKeyDown:xe,onMouseDown:f||E?null:ke,onBlur:re,onFocus:O,...$,ownerState:st,className:ge($.className,nt.select,c),id:Tt,children:h5(ie)?Fg||(Fg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):ie}),p.jsx(p5,{"aria-invalid":m,value:Array.isArray(D)?D.join(","):D,name:S,ref:X,"aria-hidden":!0,onChange:_e,tabIndex:-1,disabled:f,className:nt.nativeInput,autoFocus:s,required:P,...B,ownerState:st}),p.jsx(f5,{as:g,className:nt.icon,ownerState:st}),p.jsx(jg,{id:`menu-${S||""}`,anchorEl:Q,open:ne,onClose:Ce,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:Wn,...Jn},paper:{...dn,style:{minWidth:He,...dn!=null?dn.style:null}}},children:Fe})]})});process.env.NODE_ENV!=="production"&&(zg.propTypes={"aria-describedby":i.string,"aria-label":i.string,autoFocus:i.bool,autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,disabled:i.bool,displayEmpty:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:hn,labelId:i.string,MenuProps:i.object,multiple:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClose:i.func,onFocus:i.func,onOpen:i.func,open:i.bool,readOnly:i.bool,renderValue:i.func,required:i.bool,SelectDisplayProps:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.any,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});const g5=e=>{const{classes:t}=e,r=Ne({root:["root"]},_g,t);return{...t,...r}},Wd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Sn(e)&&e!=="variant"},y5=te(xl,Wd)(""),b5=te(Sl,Wd)(""),v5=te(vl,Wd)(""),zd=I.forwardRef(function(t,n){const r=Be({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:u=RE,id:f,input:h,inputProps:m,label:g,labelId:y,MenuProps:b,multiple:v=!1,native:k=!1,onClose:S,onOpen:C,open:w,renderValue:T,SelectDisplayProps:O,variant:M="outlined",...j}=r,A=k?Ag:zg,L=Hr(),E=Zo({props:r,muiFormControl:L,states:["variant","error"]}),N=E.variant||M,P={...r,variant:N,classes:a},$=g5(P),{root:R,...W}=$,V=h||{standard:p.jsx(y5,{ownerState:P}),outlined:p.jsx(b5,{label:g,ownerState:P}),filled:p.jsx(v5,{ownerState:P})}[N],H=qt(n,Xo(V));return p.jsx(I.Fragment,{children:I.cloneElement(V,{inputComponent:A,inputProps:{children:s,error:E.error,IconComponent:u,variant:N,type:void 0,multiple:v,...k?{id:f}:{autoWidth:o,defaultOpen:c,displayEmpty:d,labelId:y,MenuProps:b,onClose:S,onOpen:C,open:w,renderValue:T,SelectDisplayProps:{id:f,...O}},...m,classes:m?Yt(W,m.classes):W,...h?h.props.inputProps:{}},...(v&&k||d)&&N==="outlined"?{notched:!0}:{},ref:H,className:ge(V.props.className,l,$.root),...!h&&{variant:N},...j})})});process.env.NODE_ENV!=="production"&&(zd.propTypes={autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,displayEmpty:i.bool,IconComponent:i.elementType,id:i.string,input:i.element,inputProps:i.object,label:i.node,labelId:i.string,MenuProps:i.object,multiple:i.bool,native:i.bool,onChange:i.func,onClose:i.func,onOpen:i.func,open:i.bool,renderValue:i.func,SelectDisplayProps:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.oneOfType([i.oneOf([""]),i.any]),variant:i.oneOf(["filled","outlined","standard"])}),zd.muiName="Select";function x5(e){return Ae("MuiSkeleton",e)}Re("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const w5=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:a}=e;return Ne({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!a&&"heightAuto"]},x5,t)},Vd=Lr`
196
196
  0% {
197
197
  opacity: 1;
198
198
  }
@@ -228,14 +228,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
228
228
  transparent,
229
229
  ${(e.vars||e).palette.action.hover},
230
230
  transparent
231
- )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:C5||{"&::after":{animation:`${Hd} 2s linear 0.5s infinite`}}}]}})),fr=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:a="span",height:l,style:c,variant:d="text",width:u,...f}=r,h={...r,animation:o,component:a,variant:d,hasChildren:!!f.children},m=w5(h);return p.jsx(T5,{as:a,ref:n,className:ge(m.root,s),ownerState:h,...f,style:{width:u,height:l,...c}})});process.env.NODE_ENV!=="production"&&(fr.propTypes={animation:i.oneOf(["pulse","wave",!1]),children:i.node,classes:i.object,className:i.string,component:i.elementType,height:i.oneOfType([i.number,i.string]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["circular","rectangular","rounded","text"]),i.string]),width:i.oneOfType([i.number,i.string])});function k5(e){return Ae("MuiTooltip",e)}const At=Re("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function E5(e){return Math.round(e*1e5)/1e5}const O5=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${J(s.split("-")[0])}`],arrow:["arrow"]};return Ne(a,k5,t)},M5=te(ui,{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]}})(Le(({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"] .${At.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${At.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${At.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${At.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${At.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${At.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${At.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${At.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),P5=te("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${J(n.placement.split("-")[0])}`]]}})(Le(({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,[`.${At.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${At.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${At.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${At.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:`${E5(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${At.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${At.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),j5=te("span",{name:"MuiTooltip",slot:"Arrow"})(Le(({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 Cl=!1;const Vg=new Xa;let Ci={x:0,y:0};function Tl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Ti=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:a,components:l={},componentsProps:c={},describeChild:d=!1,disableFocusListener:u=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:m=!1,enterDelay:g=100,enterNextDelay:y=0,enterTouchDelay:b=700,followCursor:v=!1,id:T,leaveDelay:S=0,leaveTouchDelay:C=1500,onClose:w,onOpen:k,open:O,placement:P="bottom",PopperComponent:j,PopperProps:A={},slotProps:L={},slots:E={},title:R,TransitionComponent:M,TransitionProps:N,...$}=r,F=I.isValidElement(s)?s:p.jsx("span",{children:s}),H=gt(),z=_o(),[_,D]=I.useState(),[V,U]=I.useState(null),G=I.useRef(!1),X=h||v,q=Ho(),K=Ho(),ce=Ho(),de=Ho(),[W,ee]=ei({controlled:O,default:!1,name:"Tooltip",state:"open"});let B=W;if(process.env.NODE_ENV!=="production"){const{current:We}=I.useRef(O!==void 0);I.useEffect(()=>{_&&_.disabled&&!We&&R!==""&&_.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
- `))},[R,_,We])}const ue=so(T),Q=I.useRef(),ne=jn(()=>{Q.current!==void 0&&(document.body.style.WebkitUserSelect=Q.current,Q.current=void 0),de.clear()});I.useEffect(()=>ne,[ne]);const we=We=>{Vg.clear(),Cl=!0,ee(!0),k&&!B&&k(We)},ke=jn(We=>{Vg.start(800+S,()=>{Cl=!1}),ee(!1),w&&B&&w(We),q.start(H.transitions.duration.shortest,()=>{G.current=!1})}),Ce=We=>{G.current&&We.type!=="touchstart"||(_&&_.removeAttribute("title"),K.clear(),ce.clear(),g||Cl&&y?K.start(Cl?y:g,()=>{we(We)}):we(We))},ve=We=>{K.clear(),ce.start(S,()=>{ke(We)})},[,_e]=I.useState(!1),Ee=We=>{Qa(We.target)||(_e(!1),ve(We))},xe=We=>{_||D(We.currentTarget),Qa(We.target)&&(_e(!0),Ce(We))},re=We=>{G.current=!0;const Ht=F.props;Ht.onTouchStart&&Ht.onTouchStart(We)},ie=We=>{re(We),ce.clear(),q.clear(),ne(),Q.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",de.start(b,()=>{document.body.style.WebkitUserSelect=Q.current,Ce(We)})},Te=We=>{F.props.onTouchEnd&&F.props.onTouchEnd(We),ne(),ce.start(C,()=>{ke(We)})};I.useEffect(()=>{if(!B)return;function We(Ht){Ht.key==="Escape"&&ke(Ht)}return document.addEventListener("keydown",We),()=>{document.removeEventListener("keydown",We)}},[ke,B]);const he=qt(Xo(F),D,n);!R&&R!==0&&(B=!1);const pe=I.useRef(),Ie=We=>{const Ht=F.props;Ht.onMouseMove&&Ht.onMouseMove(We),Ci={x:We.clientX,y:We.clientY},pe.current&&pe.current.update()},Fe={},He=typeof R=="string";d?(Fe.title=!B&&He&&!f?R:null,Fe["aria-describedby"]=B?ue:null):(Fe["aria-label"]=He?R:null,Fe["aria-labelledby"]=B&&!He?ue:null);const Oe={...Fe,...$,...F.props,className:ge($.className,F.props.className),onTouchStart:re,ref:he,...v?{onMouseMove:Ie}:{}};process.env.NODE_ENV!=="production"&&(Oe["data-mui-internal-clone-element"]=!0,I.useEffect(()=>{_&&!_.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
233
- `))},[_]));const Tt={};m||(Oe.onTouchStart=ie,Oe.onTouchEnd=Te),f||(Oe.onMouseOver=Tl(Ce,Oe.onMouseOver),Oe.onMouseLeave=Tl(ve,Oe.onMouseLeave),X||(Tt.onMouseOver=Ce,Tt.onMouseLeave=ve)),u||(Oe.onFocus=Tl(xe,Oe.onFocus),Oe.onBlur=Tl(Ee,Oe.onBlur),X||(Tt.onFocus=xe,Tt.onBlur=Ee)),process.env.NODE_ENV!=="production"&&F.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${F.props.title}\` or the Tooltip component.`].join(`
234
- `));const st={...r,isRtl:z,arrow:o,disableInteractive:X,placement:P,PopperComponentProp:j,touch:G.current},nt=typeof L.popper=="function"?L.popper(st):L.popper,dn=I.useMemo(()=>{let We=[{name:"arrow",enabled:!!V,options:{element:V,padding:4}}];return A.popperOptions?.modifiers&&(We=We.concat(A.popperOptions.modifiers)),nt?.popperOptions?.modifiers&&(We=We.concat(nt.popperOptions.modifiers)),{...A.popperOptions,...nt?.popperOptions,modifiers:We}},[V,A.popperOptions,nt?.popperOptions]),Jn=O5(st),Wn=typeof L.transition=="function"?L.transition(st):L.transition,me={slots:{popper:l.Popper,transition:l.Transition??M,tooltip:l.Tooltip,arrow:l.Arrow,...E},slotProps:{arrow:L.arrow??c.arrow,popper:{...A,...nt??c.popper},tooltip:L.tooltip??c.tooltip,transition:{...N,...Wn??c.transition}}},[fe,De]=qe("popper",{elementType:M5,externalForwardedProps:me,ownerState:st,className:ge(Jn.popper,A?.className)}),[Me,Je]=qe("transition",{elementType:bi,externalForwardedProps:me,ownerState:st}),[Nt,Ke]=qe("tooltip",{elementType:P5,className:Jn.tooltip,externalForwardedProps:me,ownerState:st}),[to,Sr]=qe("arrow",{elementType:j5,className:Jn.arrow,externalForwardedProps:me,ownerState:st,ref:U});return p.jsxs(I.Fragment,{children:[I.cloneElement(F,Oe),p.jsx(fe,{as:j??ui,placement:P,anchorEl:v?{getBoundingClientRect:()=>({top:Ci.y,left:Ci.x,right:Ci.x,bottom:Ci.y,width:0,height:0})}:_,popperRef:pe,open:_?B:!1,id:ue,transition:!0,...Tt,...De,popperOptions:dn,children:({TransitionProps:We})=>p.jsx(Me,{timeout:H.transitions.duration.shorter,...We,...Je,children:p.jsxs(Nt,{...Ke,children:[R,o?p.jsx(to,{...Sr}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Ti.propTypes={arrow:i.bool,children:Qo.isRequired,classes:i.object,className:i.string,components:i.shape({Arrow:i.elementType,Popper:i.elementType,Tooltip:i.elementType,Transition:i.elementType}),componentsProps:i.shape({arrow:i.object,popper:i.object,tooltip:i.object,transition:i.object}),describeChild:i.bool,disableFocusListener:i.bool,disableHoverListener:i.bool,disableInteractive:i.bool,disableTouchListener:i.bool,enterDelay:i.number,enterNextDelay:i.number,enterTouchDelay:i.number,followCursor:i.bool,id:i.string,leaveDelay:i.number,leaveTouchDelay:i.number,onClose:i.func,onOpen:i.func,open:i.bool,placement:i.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:i.elementType,PopperProps:i.object,slotProps:i.shape({arrow:i.oneOfType([i.func,i.object]),popper:i.oneOfType([i.func,i.object]),tooltip:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({arrow:i.elementType,popper:i.elementType,tooltip:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),title:i.node,TransitionComponent:i.elementType,TransitionProps:i.object});const Ge=CC({createStyledComponent:te("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Be({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(Ge.propTypes={children:i.node,component:i.elementType,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),divider:i.node,spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),useFlexGap:i.bool});function I5(e){return Ae("MuiSwitch",e)}const rn=Re("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),D5=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:a}=e,l={root:["root",n&&`edge${J(n)}`,`size${J(r)}`],switchBase:["switchBase",`color${J(o)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Ne(l,I5,t);return{...t,...c}},A5=te("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${J(n.edge)}`],t[`size${J(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,[`& .${rn.thumb}`]:{width:16,height:16},[`& .${rn.switchBase}`]:{padding:4,[`&.${rn.checked}`]:{transform:"translateX(16px)"}}}}]}),R5=te(Pd,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${rn.input}`]:t.input},n.color!=="default"&&t[`color${J(n.color)}`]]}})(Le(({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}),[`&.${rn.checked}`]:{transform:"translateX(20px)"},[`&.${rn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${rn.checked} + .${rn.track}`]:{opacity:.5},[`&.${rn.disabled} + .${rn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${rn.input}`]:{left:"-100%",width:"300%"}})),Le(({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(Wt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${rn.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"}},[`&.${rn.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)}`}},[`&.${rn.checked} + .${rn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),N5=te("span",{name:"MuiSwitch",slot:"Track"})(Le(({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}`}))),$5=te("span",{name:"MuiSwitch",slot:"Thumb"})(Le(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Hg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:a=!1,size:l="medium",sx:c,slots:d={},slotProps:u={},...f}=r,h={...r,color:s,edge:a,size:l},m=D5(h),g={slots:d,slotProps:u},[y,b]=qe("root",{className:ge(m.root,o),elementType:A5,externalForwardedProps:g,ownerState:h,additionalProps:{sx:c}}),[v,T]=qe("thumb",{className:m.thumb,elementType:$5,externalForwardedProps:g,ownerState:h}),S=p.jsx(v,{...T}),[C,w]=qe("track",{className:m.track,elementType:N5,externalForwardedProps:g,ownerState:h});return p.jsxs(y,{...b,children:[p.jsx(R5,{type:"checkbox",icon:S,checkedIcon:S,ref:n,ownerState:h,...f,classes:{...m,root:m.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(h):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(h):u.input}}}),p.jsx(C,{...w})]})});process.env.NODE_ENV!=="production"&&(Hg.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node,id:i.string,inputProps:i.object,inputRef:hn,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),switchBase:i.oneOfType([i.func,i.object]),thumb:i.oneOfType([i.func,i.object]),track:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType,switchBase:i.elementType,thumb:i.elementType,track:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function L5(e){return Ae("MuiTab",e)}const Nn=Re("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),B5=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:s,label:a,selected:l,disabled:c}=e,d={root:["root",s&&a&&"labelIcon",`textColor${J(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",c&&"disabled"],icon:["iconWrapper","icon"]};return Ne(d,L5,t)},_5=te(lr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${J(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Nn.iconWrapper}`]:t.iconWrapper},{[`& .${Nn.icon}`]:t.icon}]}})(Le(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Nn.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Nn.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Nn.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Nn.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Nn.selected}`]:{opacity:1},[`&.${Nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Nn.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Nn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Nn.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Nn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Ug=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:a=!1,fullWidth:l,icon:c,iconPosition:d="top",indicator:u,label:f,onChange:h,onClick:m,onFocus:g,selected:y,selectionFollowsFocus:b,textColor:v="inherit",value:T,wrapped:S=!1,...C}=r,w={...r,disabled:s,disableFocusRipple:a,selected:y,icon:!!c,iconPosition:d,label:!!f,fullWidth:l,textColor:v,wrapped:S},k=B5(w),O=c&&f&&I.isValidElement(c)?I.cloneElement(c,{className:ge(k.icon,c.props.className)}):c,P=A=>{!y&&h&&h(A,T),m&&m(A)},j=A=>{b&&!y&&h&&h(A,T),g&&g(A)};return p.jsxs(_5,{focusRipple:!a,className:ge(k.root,o),ref:n,role:"tab","aria-selected":y,disabled:s,onClick:P,onFocus:j,ownerState:w,tabIndex:y?0:-1,...C,children:[d==="top"||d==="start"?p.jsxs(I.Fragment,{children:[O,f]}):p.jsxs(I.Fragment,{children:[f,O]}),u]})});process.env.NODE_ENV!=="production"&&(Ug.propTypes={children:lm,classes:i.object,className:i.string,disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,icon:i.oneOfType([i.element,i.string]),iconPosition:i.oneOf(["bottom","end","start","top"]),label:i.node,onChange:i.func,onClick:i.func,onFocus:i.func,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any,wrapped:i.bool});const Ud=I.createContext();process.env.NODE_ENV!=="production"&&(Ud.displayName="TableContext");function F5(e){return Ae("MuiTable",e)}Re("MuiTable",["root","stickyHeader"]);const W5=e=>{const{classes:t,stickyHeader:n}=e;return Ne({root:["root",n&&"stickyHeader"]},F5,t)},z5=te("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Le(({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"}}]}))),Yg="table",Yd=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTable"}),{className:o,component:s=Yg,padding:a="normal",size:l="medium",stickyHeader:c=!1,...d}=r,u={...r,component:s,padding:a,size:l,stickyHeader:c},f=W5(u),h=I.useMemo(()=>({padding:a,size:l,stickyHeader:c}),[a,l,c]);return p.jsx(Ud.Provider,{value:h,children:p.jsx(z5,{as:s,role:s===Yg?null:"table",ref:n,className:ge(f.root,o),ownerState:u,...d})})});process.env.NODE_ENV!=="production"&&(Yd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),stickyHeader:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const ki=I.createContext();process.env.NODE_ENV!=="production"&&(ki.displayName="Tablelvl2Context");function V5(e){return Ae("MuiTableBody",e)}Re("MuiTableBody",["root"]);const H5=e=>{const{classes:t}=e;return Ne({root:["root"]},V5,t)},U5=te("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Y5={variant:"body"},qg="tbody",qd=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTableBody"}),{className:o,component:s=qg,...a}=r,l={...r,component:s},c=H5(l);return p.jsx(ki.Provider,{value:Y5,children:p.jsx(U5,{className:ge(c.root,o),as:s,ref:n,role:s===qg?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(qd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function q5(e){return Ae("MuiTableCell",e)}const Gd=Re("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),G5=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${J(r)}`,o!=="normal"&&`padding${J(o)}`,`size${J(s)}`]};return Ne(l,q5,t)},K5=te("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${J(n.size)}`],n.padding!=="normal"&&t[`padding${J(n.padding)}`],n.align!=="inherit"&&t[`align${J(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Le(({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",[`&.${Gd.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}}]}))),ns=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:a,padding:l,scope:c,size:d,sortDirection:u,variant:f,...h}=r,m=I.useContext(Ud),g=I.useContext(ki),y=g&&g.variant==="head";let b;a?b=a:b=y?"th":"td";let v=c;b==="td"?v=void 0:!v&&y&&(v="col");const T=f||g&&g.variant,S={...r,align:o,component:b,padding:l||(m&&m.padding?m.padding:"normal"),size:d||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:T==="head"&&m&&m.stickyHeader,variant:T},C=G5(S);let w=null;return u&&(w=u==="asc"?"ascending":"descending"),p.jsx(K5,{as:b,ref:n,className:ge(C.root,s),"aria-sort":w,scope:v,ownerState:S,...h})});process.env.NODE_ENV!=="production"&&(ns.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),scope:i.string,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sortDirection:i.oneOf(["asc","desc",!1]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body","footer","head"]),i.string])});function X5(e){return Ae("MuiTableContainer",e)}Re("MuiTableContainer",["root"]);const Z5=e=>{const{classes:t}=e;return Ne({root:["root"]},X5,t)},J5=te("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Kd=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTableContainer"}),{className:o,component:s="div",...a}=r,l={...r,component:s},c=Z5(l);return p.jsx(J5,{ref:n,as:s,className:ge(c.root,o),ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Kd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Q5(e){return Ae("MuiTableHead",e)}Re("MuiTableHead",["root"]);const eM=e=>{const{classes:t}=e;return Ne({root:["root"]},Q5,t)},tM=te("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),nM={variant:"head"},Gg="thead",Xd=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTableHead"}),{className:o,component:s=Gg,...a}=r,l={...r,component:s},c=eM(l);return p.jsx(ki.Provider,{value:nM,children:p.jsx(tM,{as:s,className:ge(c.root,o),ref:n,role:s===Gg?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Xd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const rM=Cn(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),oM=Cn(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function sM(e){return Ae("MuiTableRow",e)}const Kg=Re("MuiTableRow",["root","selected","hover","head","footer"]),iM=e=>{const{classes:t,selected:n,hover:r,head:o,footer:s}=e;return Ne({root:["root",n&&"selected",r&&"hover",o&&"head",s&&"footer"]},sM,t)},aM=te("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Le(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Kg.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Kg.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}`)}}}))),Xg="tr",Zg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTableRow"}),{className:o,component:s=Xg,hover:a=!1,selected:l=!1,...c}=r,d=I.useContext(ki),u={...r,component:s,hover:a,selected:l,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},f=iM(u);return p.jsx(aM,{as:s,ref:n,className:ge(f.root,o),role:s===Xg?null:"row",ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(Zg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,hover:i.bool,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function lM(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function cM(e,t,n,r={},o=()=>{}){const{ease:s=lM,duration:a=300}=r;let l=null;const c=t[e];let d=!1;const u=()=>{d=!0},f=h=>{if(d){o(new Error("Animation cancelled"));return}l===null&&(l=h);const m=Math.min(1,(h-l)/a);if(t[e]=s(m)*(n-c)+c,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return c===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const dM={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Jg(e){const{onChange:t,...n}=e,r=I.useRef(),o=I.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Pn(()=>{const a=Qs(()=>{const c=r.current;s(),c!==r.current&&t(r.current)}),l=Hn(o.current);return l.addEventListener("resize",a),()=>{a.clear(),l.removeEventListener("resize",a)}},[t]),I.useEffect(()=>{s(),t(r.current)},[t]),p.jsx("div",{style:dM,...n,ref:o})}process.env.NODE_ENV!=="production"&&(Jg.propTypes={onChange:i.func.isRequired});function uM(e){return Ae("MuiTabScrollButton",e)}const fM=Re("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),pM=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ne({root:["root",n,r&&"disabled"]},uM,t)},hM=te(lr,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${fM.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Qg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:a={},direction:l,orientation:c,disabled:d,...u}=r,f=_o(),h={isRtl:f,...r},m=pM(h),g=s.StartScrollButtonIcon??rM,y=s.EndScrollButtonIcon??oM,b=fo({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=fo({elementType:y,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return p.jsx(hM,{component:"div",className:ge(m.root,o),ref:n,role:null,ownerState:h,tabIndex:null,...u,style:{...u.style,...c==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:l==="left"?p.jsx(g,{...b}):p.jsx(y,{...v})})});process.env.NODE_ENV!=="production"&&(Qg.propTypes={children:i.node,classes:i.object,className:i.string,direction:i.oneOf(["left","right"]).isRequired,disabled:i.bool,orientation:i.oneOf(["horizontal","vertical"]).isRequired,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({EndScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function mM(e){return Ae("MuiTabs",e)}const Zd=Re("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),e0=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,t0=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,kl=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=n(e,o);else{o.focus();return}}},gM=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:s,centered:a,scrollButtonsHideMobile:l,classes:c}=e;return Ne({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},mM,c)},yM=te("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zd.scrollButtons}`]:t.scrollButtons},{[`& .${Zd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Le(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Zd.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),bM=te("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),vM=te("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),xM=te("span",{name:"MuiTabs",slot:"Indicator"})(Le(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),wM=te(Jg)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),n0={};let r0=!1;const o0=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTabs"}),o=gt(),s=_o(),{"aria-label":a,"aria-labelledby":l,action:c,centered:d=!1,children:u,className:f,component:h="div",allowScrollButtonsMobile:m=!1,indicatorColor:g="primary",onChange:y,orientation:b="horizontal",ScrollButtonComponent:v,scrollButtons:T="auto",selectionFollowsFocus:S,slots:C={},slotProps:w={},TabIndicatorProps:k={},TabScrollButtonProps:O={},textColor:P="primary",value:j,variant:A="standard",visibleScrollbar:L=!1,...E}=r,R=A==="scrollable",M=b==="vertical",N=M?"scrollTop":"scrollLeft",$=M?"top":"left",F=M?"bottom":"right",H=M?"clientHeight":"clientWidth",z=M?"height":"width",_={...r,component:h,allowScrollButtonsMobile:m,indicatorColor:g,orientation:b,vertical:M,scrollButtons:T,textColor:P,variant:A,visibleScrollbar:L,fixed:!R,hideScrollbar:R&&!L,scrollableX:R&&!M,scrollableY:R&&M,centered:d&&!R,scrollButtonsHideMobile:!m},D=gM(_),V=fo({elementType:C.StartScrollButtonIcon,externalSlotProps:w.startScrollButtonIcon,ownerState:_}),U=fo({elementType:C.EndScrollButtonIcon,externalSlotProps:w.endScrollButtonIcon,ownerState:_});process.env.NODE_ENV!=="production"&&d&&R&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[G,X]=I.useState(!1),[q,K]=I.useState(n0),[ce,de]=I.useState(!1),[W,ee]=I.useState(!1),[B,ue]=I.useState(!1),[Q,ne]=I.useState({overflow:"hidden",scrollbarWidth:0}),we=new Map,ke=I.useRef(null),Ce=I.useRef(null),ve={slots:C,slotProps:{indicator:k,scrollButtons:O,...w}},_e=()=>{const be=ke.current;let Pe;if(be){const rt=be.getBoundingClientRect();Pe={clientWidth:be.clientWidth,scrollLeft:be.scrollLeft,scrollTop:be.scrollTop,scrollWidth:be.scrollWidth,top:rt.top,bottom:rt.bottom,left:rt.left,right:rt.right}}let Qe;if(be&&j!==!1){const rt=Ce.current.children;if(rt.length>0){const jt=rt[we.get(j)];process.env.NODE_ENV!=="production"&&(jt||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${j}".`,we.keys?`You can provide one of the following values: ${Array.from(we.keys()).join(", ")}.`:null].join(`
231
+ )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:C5||{"&::after":{animation:`${Hd} 2s linear 0.5s infinite`}}}]}})),fr=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:a="span",height:l,style:c,variant:d="text",width:u,...f}=r,h={...r,animation:o,component:a,variant:d,hasChildren:!!f.children},m=w5(h);return p.jsx(T5,{as:a,ref:n,className:ge(m.root,s),ownerState:h,...f,style:{width:u,height:l,...c}})});process.env.NODE_ENV!=="production"&&(fr.propTypes={animation:i.oneOf(["pulse","wave",!1]),children:i.node,classes:i.object,className:i.string,component:i.elementType,height:i.oneOfType([i.number,i.string]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["circular","rectangular","rounded","text"]),i.string]),width:i.oneOfType([i.number,i.string])});function k5(e){return Ae("MuiTooltip",e)}const At=Re("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function E5(e){return Math.round(e*1e5)/1e5}const O5=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${J(s.split("-")[0])}`],arrow:["arrow"]};return Ne(a,k5,t)},M5=te(ui,{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]}})(Le(({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"] .${At.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${At.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${At.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${At.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${At.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${At.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${At.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${At.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),P5=te("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${J(n.placement.split("-")[0])}`]]}})(Le(({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,[`.${At.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${At.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${At.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${At.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:`${E5(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${At.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${At.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),j5=te("span",{name:"MuiTooltip",slot:"Arrow"})(Le(({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 Cl=!1;const Vg=new Xa;let Ci={x:0,y:0};function Tl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Ti=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:a,components:l={},componentsProps:c={},describeChild:d=!1,disableFocusListener:u=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:m=!1,enterDelay:g=100,enterNextDelay:y=0,enterTouchDelay:b=700,followCursor:v=!1,id:k,leaveDelay:S=0,leaveTouchDelay:C=1500,onClose:w,onOpen:T,open:O,placement:M="bottom",PopperComponent:j,PopperProps:A={},slotProps:L={},slots:E={},title:N,TransitionComponent:P,TransitionProps:$,...R}=r,W=I.isValidElement(s)?s:p.jsx("span",{children:s}),V=gt(),H=_o(),[B,D]=I.useState(),[F,U]=I.useState(null),q=I.useRef(!1),X=h||v,G=Ho(),K=Ho(),ae=Ho(),le=Ho(),[z,ee]=ei({controlled:O,default:!1,name:"Tooltip",state:"open"});let _=z;if(process.env.NODE_ENV!=="production"){const{current:We}=I.useRef(O!==void 0);I.useEffect(()=>{B&&B.disabled&&!We&&N!==""&&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
+ `))},[N,B,We])}const ue=so(k),Q=I.useRef(),ne=jn(()=>{Q.current!==void 0&&(document.body.style.WebkitUserSelect=Q.current,Q.current=void 0),le.clear()});I.useEffect(()=>ne,[ne]);const we=We=>{Vg.clear(),Cl=!0,ee(!0),T&&!_&&T(We)},ke=jn(We=>{Vg.start(800+S,()=>{Cl=!1}),ee(!1),w&&_&&w(We),G.start(V.transitions.duration.shortest,()=>{q.current=!1})}),Ce=We=>{q.current&&We.type!=="touchstart"||(B&&B.removeAttribute("title"),K.clear(),ae.clear(),g||Cl&&y?K.start(Cl?y:g,()=>{we(We)}):we(We))},ve=We=>{K.clear(),ae.start(S,()=>{ke(We)})},[,_e]=I.useState(!1),Ee=We=>{Qa(We.target)||(_e(!1),ve(We))},xe=We=>{B||D(We.currentTarget),Qa(We.target)&&(_e(!0),Ce(We))},re=We=>{q.current=!0;const Ht=W.props;Ht.onTouchStart&&Ht.onTouchStart(We)},ie=We=>{re(We),ae.clear(),G.clear(),ne(),Q.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",le.start(b,()=>{document.body.style.WebkitUserSelect=Q.current,Ce(We)})},Te=We=>{W.props.onTouchEnd&&W.props.onTouchEnd(We),ne(),ae.start(C,()=>{ke(We)})};I.useEffect(()=>{if(!_)return;function We(Ht){Ht.key==="Escape"&&ke(Ht)}return document.addEventListener("keydown",We),()=>{document.removeEventListener("keydown",We)}},[ke,_]);const he=qt(Xo(W),D,n);!N&&N!==0&&(_=!1);const pe=I.useRef(),Ie=We=>{const Ht=W.props;Ht.onMouseMove&&Ht.onMouseMove(We),Ci={x:We.clientX,y:We.clientY},pe.current&&pe.current.update()},Fe={},He=typeof N=="string";d?(Fe.title=!_&&He&&!f?N:null,Fe["aria-describedby"]=_?ue:null):(Fe["aria-label"]=He?N:null,Fe["aria-labelledby"]=_&&!He?ue:null);const Oe={...Fe,...R,...W.props,className:ge(R.className,W.props.className),onTouchStart:re,ref:he,...v?{onMouseMove:Ie}:{}};process.env.NODE_ENV!=="production"&&(Oe["data-mui-internal-clone-element"]=!0,I.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 Tt={};m||(Oe.onTouchStart=ie,Oe.onTouchEnd=Te),f||(Oe.onMouseOver=Tl(Ce,Oe.onMouseOver),Oe.onMouseLeave=Tl(ve,Oe.onMouseLeave),X||(Tt.onMouseOver=Ce,Tt.onMouseLeave=ve)),u||(Oe.onFocus=Tl(xe,Oe.onFocus),Oe.onBlur=Tl(Ee,Oe.onBlur),X||(Tt.onFocus=xe,Tt.onBlur=Ee)),process.env.NODE_ENV!=="production"&&W.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${W.props.title}\` or the Tooltip component.`].join(`
234
+ `));const st={...r,isRtl:H,arrow:o,disableInteractive:X,placement:M,PopperComponentProp:j,touch:q.current},nt=typeof L.popper=="function"?L.popper(st):L.popper,dn=I.useMemo(()=>{let We=[{name:"arrow",enabled:!!F,options:{element:F,padding:4}}];return A.popperOptions?.modifiers&&(We=We.concat(A.popperOptions.modifiers)),nt?.popperOptions?.modifiers&&(We=We.concat(nt.popperOptions.modifiers)),{...A.popperOptions,...nt?.popperOptions,modifiers:We}},[F,A.popperOptions,nt?.popperOptions]),Jn=O5(st),Wn=typeof L.transition=="function"?L.transition(st):L.transition,me={slots:{popper:l.Popper,transition:l.Transition??P,tooltip:l.Tooltip,arrow:l.Arrow,...E},slotProps:{arrow:L.arrow??c.arrow,popper:{...A,...nt??c.popper},tooltip:L.tooltip??c.tooltip,transition:{...$,...Wn??c.transition}}},[fe,De]=qe("popper",{elementType:M5,externalForwardedProps:me,ownerState:st,className:ge(Jn.popper,A?.className)}),[Me,Je]=qe("transition",{elementType:bi,externalForwardedProps:me,ownerState:st}),[Nt,Ke]=qe("tooltip",{elementType:P5,className:Jn.tooltip,externalForwardedProps:me,ownerState:st}),[to,Sr]=qe("arrow",{elementType:j5,className:Jn.arrow,externalForwardedProps:me,ownerState:st,ref:U});return p.jsxs(I.Fragment,{children:[I.cloneElement(W,Oe),p.jsx(fe,{as:j??ui,placement:M,anchorEl:v?{getBoundingClientRect:()=>({top:Ci.y,left:Ci.x,right:Ci.x,bottom:Ci.y,width:0,height:0})}:B,popperRef:pe,open:B?_:!1,id:ue,transition:!0,...Tt,...De,popperOptions:dn,children:({TransitionProps:We})=>p.jsx(Me,{timeout:V.transitions.duration.shorter,...We,...Je,children:p.jsxs(Nt,{...Ke,children:[N,o?p.jsx(to,{...Sr}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Ti.propTypes={arrow:i.bool,children:Qo.isRequired,classes:i.object,className:i.string,components:i.shape({Arrow:i.elementType,Popper:i.elementType,Tooltip:i.elementType,Transition:i.elementType}),componentsProps:i.shape({arrow:i.object,popper:i.object,tooltip:i.object,transition:i.object}),describeChild:i.bool,disableFocusListener:i.bool,disableHoverListener:i.bool,disableInteractive:i.bool,disableTouchListener:i.bool,enterDelay:i.number,enterNextDelay:i.number,enterTouchDelay:i.number,followCursor:i.bool,id:i.string,leaveDelay:i.number,leaveTouchDelay:i.number,onClose:i.func,onOpen:i.func,open:i.bool,placement:i.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:i.elementType,PopperProps:i.object,slotProps:i.shape({arrow:i.oneOfType([i.func,i.object]),popper:i.oneOfType([i.func,i.object]),tooltip:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({arrow:i.elementType,popper:i.elementType,tooltip:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),title:i.node,TransitionComponent:i.elementType,TransitionProps:i.object});const Ge=CC({createStyledComponent:te("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Be({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(Ge.propTypes={children:i.node,component:i.elementType,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),divider:i.node,spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),useFlexGap:i.bool});function I5(e){return Ae("MuiSwitch",e)}const rn=Re("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),D5=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:a}=e,l={root:["root",n&&`edge${J(n)}`,`size${J(r)}`],switchBase:["switchBase",`color${J(o)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Ne(l,I5,t);return{...t,...c}},A5=te("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${J(n.edge)}`],t[`size${J(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,[`& .${rn.thumb}`]:{width:16,height:16},[`& .${rn.switchBase}`]:{padding:4,[`&.${rn.checked}`]:{transform:"translateX(16px)"}}}}]}),R5=te(Pd,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${rn.input}`]:t.input},n.color!=="default"&&t[`color${J(n.color)}`]]}})(Le(({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}),[`&.${rn.checked}`]:{transform:"translateX(20px)"},[`&.${rn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${rn.checked} + .${rn.track}`]:{opacity:.5},[`&.${rn.disabled} + .${rn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${rn.input}`]:{left:"-100%",width:"300%"}})),Le(({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(Wt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${rn.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"}},[`&.${rn.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)}`}},[`&.${rn.checked} + .${rn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),N5=te("span",{name:"MuiSwitch",slot:"Track"})(Le(({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}`}))),$5=te("span",{name:"MuiSwitch",slot:"Thumb"})(Le(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Hg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:a=!1,size:l="medium",sx:c,slots:d={},slotProps:u={},...f}=r,h={...r,color:s,edge:a,size:l},m=D5(h),g={slots:d,slotProps:u},[y,b]=qe("root",{className:ge(m.root,o),elementType:A5,externalForwardedProps:g,ownerState:h,additionalProps:{sx:c}}),[v,k]=qe("thumb",{className:m.thumb,elementType:$5,externalForwardedProps:g,ownerState:h}),S=p.jsx(v,{...k}),[C,w]=qe("track",{className:m.track,elementType:N5,externalForwardedProps:g,ownerState:h});return p.jsxs(y,{...b,children:[p.jsx(R5,{type:"checkbox",icon:S,checkedIcon:S,ref:n,ownerState:h,...f,classes:{...m,root:m.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(h):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(h):u.input}}}),p.jsx(C,{...w})]})});process.env.NODE_ENV!=="production"&&(Hg.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node,id:i.string,inputProps:i.object,inputRef:hn,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),switchBase:i.oneOfType([i.func,i.object]),thumb:i.oneOfType([i.func,i.object]),track:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType,switchBase:i.elementType,thumb:i.elementType,track:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function L5(e){return Ae("MuiTab",e)}const Nn=Re("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),B5=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:s,label:a,selected:l,disabled:c}=e,d={root:["root",s&&a&&"labelIcon",`textColor${J(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",c&&"disabled"],icon:["iconWrapper","icon"]};return Ne(d,L5,t)},_5=te(lr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${J(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Nn.iconWrapper}`]:t.iconWrapper},{[`& .${Nn.icon}`]:t.icon}]}})(Le(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Nn.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Nn.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Nn.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Nn.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Nn.selected}`]:{opacity:1},[`&.${Nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Nn.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Nn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Nn.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Nn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Ug=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:a=!1,fullWidth:l,icon:c,iconPosition:d="top",indicator:u,label:f,onChange:h,onClick:m,onFocus:g,selected:y,selectionFollowsFocus:b,textColor:v="inherit",value:k,wrapped:S=!1,...C}=r,w={...r,disabled:s,disableFocusRipple:a,selected:y,icon:!!c,iconPosition:d,label:!!f,fullWidth:l,textColor:v,wrapped:S},T=B5(w),O=c&&f&&I.isValidElement(c)?I.cloneElement(c,{className:ge(T.icon,c.props.className)}):c,M=A=>{!y&&h&&h(A,k),m&&m(A)},j=A=>{b&&!y&&h&&h(A,k),g&&g(A)};return p.jsxs(_5,{focusRipple:!a,className:ge(T.root,o),ref:n,role:"tab","aria-selected":y,disabled:s,onClick:M,onFocus:j,ownerState:w,tabIndex:y?0:-1,...C,children:[d==="top"||d==="start"?p.jsxs(I.Fragment,{children:[O,f]}):p.jsxs(I.Fragment,{children:[f,O]}),u]})});process.env.NODE_ENV!=="production"&&(Ug.propTypes={children:lm,classes:i.object,className:i.string,disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,icon:i.oneOfType([i.element,i.string]),iconPosition:i.oneOf(["bottom","end","start","top"]),label:i.node,onChange:i.func,onClick:i.func,onFocus:i.func,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any,wrapped:i.bool});const Ud=I.createContext();process.env.NODE_ENV!=="production"&&(Ud.displayName="TableContext");function F5(e){return Ae("MuiTable",e)}Re("MuiTable",["root","stickyHeader"]);const W5=e=>{const{classes:t,stickyHeader:n}=e;return Ne({root:["root",n&&"stickyHeader"]},F5,t)},z5=te("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Le(({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"}}]}))),Yg="table",Yd=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTable"}),{className:o,component:s=Yg,padding:a="normal",size:l="medium",stickyHeader:c=!1,...d}=r,u={...r,component:s,padding:a,size:l,stickyHeader:c},f=W5(u),h=I.useMemo(()=>({padding:a,size:l,stickyHeader:c}),[a,l,c]);return p.jsx(Ud.Provider,{value:h,children:p.jsx(z5,{as:s,role:s===Yg?null:"table",ref:n,className:ge(f.root,o),ownerState:u,...d})})});process.env.NODE_ENV!=="production"&&(Yd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),stickyHeader:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const ki=I.createContext();process.env.NODE_ENV!=="production"&&(ki.displayName="Tablelvl2Context");function V5(e){return Ae("MuiTableBody",e)}Re("MuiTableBody",["root"]);const H5=e=>{const{classes:t}=e;return Ne({root:["root"]},V5,t)},U5=te("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Y5={variant:"body"},qg="tbody",qd=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTableBody"}),{className:o,component:s=qg,...a}=r,l={...r,component:s},c=H5(l);return p.jsx(ki.Provider,{value:Y5,children:p.jsx(U5,{className:ge(c.root,o),as:s,ref:n,role:s===qg?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(qd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function q5(e){return Ae("MuiTableCell",e)}const Gd=Re("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),G5=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${J(r)}`,o!=="normal"&&`padding${J(o)}`,`size${J(s)}`]};return Ne(l,q5,t)},K5=te("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${J(n.size)}`],n.padding!=="normal"&&t[`padding${J(n.padding)}`],n.align!=="inherit"&&t[`align${J(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Le(({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",[`&.${Gd.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}}]}))),ns=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:a,padding:l,scope:c,size:d,sortDirection:u,variant:f,...h}=r,m=I.useContext(Ud),g=I.useContext(ki),y=g&&g.variant==="head";let b;a?b=a:b=y?"th":"td";let v=c;b==="td"?v=void 0:!v&&y&&(v="col");const k=f||g&&g.variant,S={...r,align:o,component:b,padding:l||(m&&m.padding?m.padding:"normal"),size:d||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:k==="head"&&m&&m.stickyHeader,variant:k},C=G5(S);let w=null;return u&&(w=u==="asc"?"ascending":"descending"),p.jsx(K5,{as:b,ref:n,className:ge(C.root,s),"aria-sort":w,scope:v,ownerState:S,...h})});process.env.NODE_ENV!=="production"&&(ns.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),scope:i.string,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sortDirection:i.oneOf(["asc","desc",!1]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body","footer","head"]),i.string])});function X5(e){return Ae("MuiTableContainer",e)}Re("MuiTableContainer",["root"]);const Z5=e=>{const{classes:t}=e;return Ne({root:["root"]},X5,t)},J5=te("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Kd=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTableContainer"}),{className:o,component:s="div",...a}=r,l={...r,component:s},c=Z5(l);return p.jsx(J5,{ref:n,as:s,className:ge(c.root,o),ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Kd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Q5(e){return Ae("MuiTableHead",e)}Re("MuiTableHead",["root"]);const eM=e=>{const{classes:t}=e;return Ne({root:["root"]},Q5,t)},tM=te("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),nM={variant:"head"},Gg="thead",Xd=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTableHead"}),{className:o,component:s=Gg,...a}=r,l={...r,component:s},c=eM(l);return p.jsx(ki.Provider,{value:nM,children:p.jsx(tM,{as:s,className:ge(c.root,o),ref:n,role:s===Gg?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Xd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const rM=Cn(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),oM=Cn(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function sM(e){return Ae("MuiTableRow",e)}const Kg=Re("MuiTableRow",["root","selected","hover","head","footer"]),iM=e=>{const{classes:t,selected:n,hover:r,head:o,footer:s}=e;return Ne({root:["root",n&&"selected",r&&"hover",o&&"head",s&&"footer"]},sM,t)},aM=te("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Le(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Kg.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Kg.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}`)}}}))),Xg="tr",Zg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTableRow"}),{className:o,component:s=Xg,hover:a=!1,selected:l=!1,...c}=r,d=I.useContext(ki),u={...r,component:s,hover:a,selected:l,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},f=iM(u);return p.jsx(aM,{as:s,ref:n,className:ge(f.root,o),role:s===Xg?null:"row",ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(Zg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,hover:i.bool,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function lM(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function cM(e,t,n,r={},o=()=>{}){const{ease:s=lM,duration:a=300}=r;let l=null;const c=t[e];let d=!1;const u=()=>{d=!0},f=h=>{if(d){o(new Error("Animation cancelled"));return}l===null&&(l=h);const m=Math.min(1,(h-l)/a);if(t[e]=s(m)*(n-c)+c,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return c===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const dM={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Jg(e){const{onChange:t,...n}=e,r=I.useRef(),o=I.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Pn(()=>{const a=Qs(()=>{const c=r.current;s(),c!==r.current&&t(r.current)}),l=Hn(o.current);return l.addEventListener("resize",a),()=>{a.clear(),l.removeEventListener("resize",a)}},[t]),I.useEffect(()=>{s(),t(r.current)},[t]),p.jsx("div",{style:dM,...n,ref:o})}process.env.NODE_ENV!=="production"&&(Jg.propTypes={onChange:i.func.isRequired});function uM(e){return Ae("MuiTabScrollButton",e)}const fM=Re("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),pM=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ne({root:["root",n,r&&"disabled"]},uM,t)},hM=te(lr,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${fM.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Qg=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:a={},direction:l,orientation:c,disabled:d,...u}=r,f=_o(),h={isRtl:f,...r},m=pM(h),g=s.StartScrollButtonIcon??rM,y=s.EndScrollButtonIcon??oM,b=fo({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=fo({elementType:y,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return p.jsx(hM,{component:"div",className:ge(m.root,o),ref:n,role:null,ownerState:h,tabIndex:null,...u,style:{...u.style,...c==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:l==="left"?p.jsx(g,{...b}):p.jsx(y,{...v})})});process.env.NODE_ENV!=="production"&&(Qg.propTypes={children:i.node,classes:i.object,className:i.string,direction:i.oneOf(["left","right"]).isRequired,disabled:i.bool,orientation:i.oneOf(["horizontal","vertical"]).isRequired,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({EndScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function mM(e){return Ae("MuiTabs",e)}const Zd=Re("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),e0=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,t0=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,kl=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=n(e,o);else{o.focus();return}}},gM=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:s,centered:a,scrollButtonsHideMobile:l,classes:c}=e;return Ne({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},mM,c)},yM=te("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zd.scrollButtons}`]:t.scrollButtons},{[`& .${Zd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Le(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Zd.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),bM=te("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),vM=te("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),xM=te("span",{name:"MuiTabs",slot:"Indicator"})(Le(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),wM=te(Jg)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),n0={};let r0=!1;const o0=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTabs"}),o=gt(),s=_o(),{"aria-label":a,"aria-labelledby":l,action:c,centered:d=!1,children:u,className:f,component:h="div",allowScrollButtonsMobile:m=!1,indicatorColor:g="primary",onChange:y,orientation:b="horizontal",ScrollButtonComponent:v,scrollButtons:k="auto",selectionFollowsFocus:S,slots:C={},slotProps:w={},TabIndicatorProps:T={},TabScrollButtonProps:O={},textColor:M="primary",value:j,variant:A="standard",visibleScrollbar:L=!1,...E}=r,N=A==="scrollable",P=b==="vertical",$=P?"scrollTop":"scrollLeft",R=P?"top":"left",W=P?"bottom":"right",V=P?"clientHeight":"clientWidth",H=P?"height":"width",B={...r,component:h,allowScrollButtonsMobile:m,indicatorColor:g,orientation:b,vertical:P,scrollButtons:k,textColor:M,variant:A,visibleScrollbar:L,fixed:!N,hideScrollbar:N&&!L,scrollableX:N&&!P,scrollableY:N&&P,centered:d&&!N,scrollButtonsHideMobile:!m},D=gM(B),F=fo({elementType:C.StartScrollButtonIcon,externalSlotProps:w.startScrollButtonIcon,ownerState:B}),U=fo({elementType:C.EndScrollButtonIcon,externalSlotProps:w.endScrollButtonIcon,ownerState:B});process.env.NODE_ENV!=="production"&&d&&N&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[q,X]=I.useState(!1),[G,K]=I.useState(n0),[ae,le]=I.useState(!1),[z,ee]=I.useState(!1),[_,ue]=I.useState(!1),[Q,ne]=I.useState({overflow:"hidden",scrollbarWidth:0}),we=new Map,ke=I.useRef(null),Ce=I.useRef(null),ve={slots:C,slotProps:{indicator:T,scrollButtons:O,...w}},_e=()=>{const be=ke.current;let Pe;if(be){const rt=be.getBoundingClientRect();Pe={clientWidth:be.clientWidth,scrollLeft:be.scrollLeft,scrollTop:be.scrollTop,scrollWidth:be.scrollWidth,top:rt.top,bottom:rt.bottom,left:rt.left,right:rt.right}}let Qe;if(be&&j!==!1){const rt=Ce.current.children;if(rt.length>0){const jt=rt[we.get(j)];process.env.NODE_ENV!=="production"&&(jt||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${j}".`,we.keys?`You can provide one of the following values: ${Array.from(we.keys()).join(", ")}.`:null].join(`
236
236
  `))),Qe=jt?jt.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!r0&&Qe&&Qe.width===0&&Qe.height===0&&Pe.clientWidth!==0&&(Pe=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${j}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
237
- `)),r0=!0)}}return{tabsMeta:Pe,tabMeta:Qe}},Ee=jn(()=>{const{tabsMeta:be,tabMeta:Pe}=_e();let Qe=0,rt;M?(rt="top",Pe&&be&&(Qe=Pe.top-be.top+be.scrollTop)):(rt=s?"right":"left",Pe&&be&&(Qe=(s?-1:1)*(Pe[rt]-be[rt]+be.scrollLeft)));const jt={[rt]:Qe,[z]:Pe?Pe[z]:0};if(typeof q[rt]!="number"||typeof q[z]!="number")K(jt);else{const Ut=Math.abs(q[rt]-jt[rt]),zn=Math.abs(q[z]-jt[z]);(Ut>=1||zn>=1)&&K(jt)}}),xe=(be,{animation:Pe=!0}={})=>{Pe?cM(N,ke.current,be,{duration:o.transitions.duration.standard}):ke.current[N]=be},re=be=>{let Pe=ke.current[N];M?Pe+=be:Pe+=be*(s?-1:1),xe(Pe)},ie=()=>{const be=ke.current[H];let Pe=0;const Qe=Array.from(Ce.current.children);for(let rt=0;rt<Qe.length;rt+=1){const jt=Qe[rt];if(Pe+jt[H]>be){rt===0&&(Pe=be);break}Pe+=jt[H]}return Pe},Te=()=>{re(-1*ie())},he=()=>{re(ie())},[pe,{onChange:Ie,...Fe}]=qe("scrollbar",{className:ge(D.scrollableX,D.hideScrollbar),elementType:wM,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:_}),He=I.useCallback(be=>{Ie?.(be),ne({overflow:null,scrollbarWidth:be})},[Ie]),[Oe,Tt]=qe("scrollButtons",{className:ge(D.scrollButtons,O.className),elementType:Qg,externalForwardedProps:ve,ownerState:_,additionalProps:{orientation:b,slots:{StartScrollButtonIcon:C.startScrollButtonIcon||C.StartScrollButtonIcon,EndScrollButtonIcon:C.endScrollButtonIcon||C.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:V,endScrollButtonIcon:U}}}),st=()=>{const be={};be.scrollbarSizeListener=R?p.jsx(pe,{...Fe,onChange:He}):null;const Qe=R&&(T==="auto"&&(ce||W)||T===!0);return be.scrollButtonStart=Qe?p.jsx(Oe,{direction:s?"right":"left",onClick:Te,disabled:!ce,...Tt}):null,be.scrollButtonEnd=Qe?p.jsx(Oe,{direction:s?"left":"right",onClick:he,disabled:!W,...Tt}):null,be},nt=jn(be=>{const{tabsMeta:Pe,tabMeta:Qe}=_e();if(!(!Qe||!Pe)){if(Qe[$]<Pe[$]){const rt=Pe[N]+(Qe[$]-Pe[$]);xe(rt,{animation:be})}else if(Qe[F]>Pe[F]){const rt=Pe[N]+(Qe[F]-Pe[F]);xe(rt,{animation:be})}}}),dn=jn(()=>{R&&T!==!1&&ue(!B)});I.useEffect(()=>{const be=Qs(()=>{ke.current&&Ee()});let Pe;const Qe=Ut=>{Ut.forEach(zn=>{zn.removedNodes.forEach(un=>{Pe?.unobserve(un)}),zn.addedNodes.forEach(un=>{Pe?.observe(un)})}),be(),dn()},rt=Hn(ke.current);rt.addEventListener("resize",be);let jt;return typeof ResizeObserver<"u"&&(Pe=new ResizeObserver(be),Array.from(Ce.current.children).forEach(Ut=>{Pe.observe(Ut)})),typeof MutationObserver<"u"&&(jt=new MutationObserver(Qe),jt.observe(Ce.current,{childList:!0})),()=>{be.clear(),rt.removeEventListener("resize",be),jt?.disconnect(),Pe?.disconnect()}},[Ee,dn]),I.useEffect(()=>{const be=Array.from(Ce.current.children),Pe=be.length;if(typeof IntersectionObserver<"u"&&Pe>0&&R&&T!==!1){const Qe=be[0],rt=be[Pe-1],jt={root:ke.current,threshold:.99},Ut=vn=>{de(!vn[0].isIntersecting)},zn=new IntersectionObserver(Ut,jt);zn.observe(Qe);const un=vn=>{ee(!vn[0].isIntersecting)},$r=new IntersectionObserver(un,jt);return $r.observe(rt),()=>{zn.disconnect(),$r.disconnect()}}},[R,T,B,u?.length]),I.useEffect(()=>{X(!0)},[]),I.useEffect(()=>{Ee()}),I.useEffect(()=>{nt(n0!==q)},[nt,q]),I.useImperativeHandle(c,()=>({updateIndicator:Ee,updateScrollButtons:dn}),[Ee,dn]);const[Jn,Wn]=qe("indicator",{className:ge(D.indicator,k.className),elementType:xM,externalForwardedProps:ve,ownerState:_,additionalProps:{style:q}}),me=p.jsx(Jn,{...Wn});let fe=0;const De=I.Children.map(u,be=>{if(!I.isValidElement(be))return null;process.env.NODE_ENV!=="production"&&Cr.isFragment(be)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
238
- `));const Pe=be.props.value===void 0?fe:be.props.value;we.set(Pe,fe);const Qe=Pe===j;return fe+=1,I.cloneElement(be,{fullWidth:A==="fullWidth",indicator:Qe&&!G&&me,selected:Qe,selectionFollowsFocus:S,onChange:y,textColor:P,value:Pe,...fe===1&&j===!1&&!be.props.tabIndex?{tabIndex:0}:{}})}),Me=be=>{if(be.altKey||be.shiftKey||be.ctrlKey||be.metaKey)return;const Pe=Ce.current,Qe=es(pn(Pe));if(Qe?.getAttribute("role")!=="tab")return;let jt=b==="horizontal"?"ArrowLeft":"ArrowUp",Ut=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&s&&(jt="ArrowRight",Ut="ArrowLeft"),be.key){case jt:be.preventDefault(),kl(Pe,Qe,t0);break;case Ut:be.preventDefault(),kl(Pe,Qe,e0);break;case"Home":be.preventDefault(),kl(Pe,null,e0);break;case"End":be.preventDefault(),kl(Pe,null,t0);break}},Je=st(),[Nt,Ke]=qe("root",{ref:n,className:ge(D.root,f),elementType:yM,externalForwardedProps:{...ve,...E,component:h},ownerState:_}),[to,Sr]=qe("scroller",{ref:ke,className:D.scroller,elementType:bM,externalForwardedProps:ve,ownerState:_,additionalProps:{style:{overflow:Q.overflow,[M?`margin${s?"Left":"Right"}`:"marginBottom"]:L?void 0:-Q.scrollbarWidth}}}),[We,Ht]=qe("list",{ref:Ce,className:ge(D.list,D.flexContainer),elementType:vM,externalForwardedProps:ve,ownerState:_,getSlotProps:be=>({...be,onKeyDown:Pe=>{Me(Pe),be.onKeyDown?.(Pe)}})});return p.jsxs(Nt,{...Ke,children:[Je.scrollButtonStart,Je.scrollbarSizeListener,p.jsxs(to,{...Sr,children:[p.jsx(We,{"aria-label":a,"aria-labelledby":l,"aria-orientation":b==="vertical"?"vertical":null,role:"tablist",...Ht,children:De}),G&&me]}),Je.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(o0.propTypes={action:hn,allowScrollButtonsMobile:i.bool,"aria-label":i.string,"aria-labelledby":i.string,centered:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,indicatorColor:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),onChange:i.func,orientation:i.oneOf(["horizontal","vertical"]),ScrollButtonComponent:i.elementType,scrollButtons:i.oneOf(["auto",!1,!0]),selectionFollowsFocus:i.bool,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),indicator:i.oneOfType([i.func,i.object]),list:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),scrollbar:i.oneOfType([i.func,i.object]),scrollButtons:i.oneOfType([i.func,i.object]),scroller:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({endScrollButtonIcon:i.elementType,EndScrollButtonIcon:i.elementType,indicator:i.elementType,list:i.elementType,root:i.elementType,scrollbar:i.elementType,scrollButtons:i.elementType,scroller:i.elementType,startScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TabIndicatorProps:i.object,TabScrollButtonProps:i.object,textColor:i.oneOf(["inherit","primary","secondary"]),value:i.any,variant:i.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:i.bool});function SM(e){return Ae("MuiTextField",e)}Re("MuiTextField",["root"]);const CM={standard:xl,filled:vl,outlined:Sl},TM=e=>{const{classes:t}=e;return Ne({root:["root"]},SM,t)},kM=te(hg,{name:"MuiTextField",slot:"Root"})({}),Jd=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:a,className:l,color:c="primary",defaultValue:d,disabled:u=!1,error:f=!1,FormHelperTextProps:h,fullWidth:m=!1,helperText:g,id:y,InputLabelProps:b,inputProps:v,InputProps:T,inputRef:S,label:C,maxRows:w,minRows:k,multiline:O=!1,name:P,onBlur:j,onChange:A,onFocus:L,placeholder:E,required:R=!1,rows:M,select:N=!1,SelectProps:$,slots:F={},slotProps:H={},type:z,value:_,variant:D="outlined",...V}=r,U={...r,autoFocus:s,color:c,disabled:u,error:f,fullWidth:m,multiline:O,required:R,select:N,variant:D},G=TM(U);process.env.NODE_ENV!=="production"&&N&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const X=so(y),q=g&&X?`${X}-helper-text`:void 0,K=C&&X?`${X}-label`:void 0,ce=CM[D],de={slots:F,slotProps:{input:T,inputLabel:b,htmlInput:v,formHelperText:h,select:$,...H}},W={},ee=de.slotProps.inputLabel;D==="outlined"&&(ee&&typeof ee.shrink<"u"&&(W.notched=ee.shrink),W.label=C),N&&((!$||!$.native)&&(W.id=void 0),W["aria-describedby"]=void 0);const[B,ue]=qe("root",{elementType:kM,shouldForwardComponentProp:!0,externalForwardedProps:{...de,...V},ownerState:U,className:ge(G.root,l),ref:n,additionalProps:{disabled:u,error:f,fullWidth:m,required:R,color:c,variant:D}}),[Q,ne]=qe("input",{elementType:ce,externalForwardedProps:de,additionalProps:W,ownerState:U}),[we,ke]=qe("inputLabel",{elementType:wg,externalForwardedProps:de,ownerState:U}),[Ce,ve]=qe("htmlInput",{elementType:"input",externalForwardedProps:de,ownerState:U}),[_e,Ee]=qe("formHelperText",{elementType:yg,externalForwardedProps:de,ownerState:U}),[xe,re]=qe("select",{elementType:zd,externalForwardedProps:de,ownerState:U}),ie=p.jsx(Q,{"aria-describedby":q,autoComplete:o,autoFocus:s,defaultValue:d,fullWidth:m,multiline:O,name:P,rows:M,maxRows:w,minRows:k,type:z,value:_,id:X,inputRef:S,onBlur:j,onChange:A,onFocus:L,placeholder:E,inputProps:ve,slots:{input:F.htmlInput?Ce:void 0},...ne});return p.jsxs(B,{...ue,children:[C!=null&&C!==""&&p.jsx(we,{htmlFor:X,id:K,...ke,children:C}),N?p.jsx(xe,{"aria-describedby":q,id:X,labelId:K,value:_,input:ie,...re,children:a}):ie,g&&p.jsx(_e,{id:q,...Ee,children:g})]})});process.env.NODE_ENV!=="production"&&(Jd.propTypes={autoComplete:i.string,autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),defaultValue:i.any,disabled:i.bool,error:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:hn,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,placeholder:i.string,required:i.bool,rows:i.oneOfType([i.number,i.string]),select:i.bool,SelectProps:i.object,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({formHelperText:i.oneOfType([i.func,i.object]),htmlInput:i.oneOfType([i.func,i.object]),input:i.oneOfType([i.func,i.object]),inputLabel:i.oneOfType([i.func,i.object]),select:i.oneOfType([i.func,i.object])}),slots:i.shape({formHelperText:i.elementType,htmlInput:i.elementType,input:i.elementType,inputLabel:i.elementType,root:i.elementType,select:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any,variant:i.oneOf(["filled","outlined","standard"])});const El={THEME:"THEME",LOGOUT:"LOGOUT"},Xe={Search:"data:image/svg+xml,%3csvg%20width='16'%20height='15'%20viewBox='0%200%2016%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.6503%2013.8006C11.3232%2013.8006%2014.3006%2010.8232%2014.3006%207.15029C14.3006%203.47744%2011.3232%200.5%207.6503%200.5C3.97744%200.5%201%203.47744%201%207.15029C1%2010.8232%203.97744%2013.8006%207.6503%2013.8006Z'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.9997%2014.5006L13.5996%2013.1006'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Refresh:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.0733%203.38664C6.6533%203.21331%207.2933%203.09998%207.99997%203.09998C11.1933%203.09998%2013.78%205.68664%2013.78%208.87998C13.78%2012.0733%2011.1933%2014.66%207.99997%2014.66C4.80664%2014.66%202.21997%2012.0733%202.21997%208.87998C2.21997%207.69331%202.57997%206.58664%203.1933%205.66664'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54671L7.17337%201.33337'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54663L7.49337%205.18663'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Close:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%3e%3ccircle%20cx='12'%20cy='12'%20r='11'%20fill='none'%20stroke='%23E85353'%20stroke-width='2'/%3e%3cpath%20d='M8.5%208.5l7%207M15.5%208.5l-7%207'%20stroke='%23E85353'%20stroke-width='2'/%3e%3c/svg%3e",Unsort:"data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.646447%203.24676C0.451184%203.44202%200.451184%203.7586%200.646447%203.95387C0.841709%204.14913%201.15829%204.14913%201.35355%203.95387L0.646447%203.24676ZM3.40012%201.2002H3.90012C3.90012%200.997964%203.7783%200.815646%203.59146%200.738256C3.40462%200.660865%203.18956%200.703643%203.04656%200.846642L3.40012%201.2002ZM2.90012%2010.8007C2.90012%2011.0768%203.12398%2011.3007%203.40012%2011.3007C3.67626%2011.3007%203.90012%2011.0768%203.90012%2010.8007H2.90012ZM9.35377%208.7541C9.54903%208.55884%209.54903%208.24226%209.35377%208.04699C9.15851%207.85173%208.84193%207.85173%208.64666%208.04699L9.35377%208.7541ZM6.6001%2010.8007H6.1001C6.1001%2011.0029%206.22192%2011.1852%206.40876%2011.2626C6.5956%2011.34%206.81065%2011.2972%206.95365%2011.1542L6.6001%2010.8007ZM7.1001%201.2002C7.1001%200.924053%206.87624%200.700195%206.6001%200.700195C6.32396%200.700195%206.1001%200.924053%206.1001%201.2002H7.1001ZM1.35355%203.95387L3.75367%201.55375L3.04656%200.846642L0.646447%203.24676L1.35355%203.95387ZM2.90012%201.2002V10.8007H3.90012V1.2002H2.90012ZM8.64666%208.04699L6.24655%2010.4471L6.95365%2011.1542L9.35377%208.7541L8.64666%208.04699ZM7.1001%2010.8007V1.2002H6.1001V10.8007H7.1001Z'%20fill='%23909090'/%3e%3c/svg%3e",AscSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%204.59888L4.5%201.09888L1%204.59888'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%2010.9013V1.19702'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",DescSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%207.40112L4.5%2010.9011L8%207.40112'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%201.09869L4.5%2010.803'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Menu:"data:image/svg+xml,%3csvg%20width='4'%20height='10'%20viewBox='0%200%204%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%207.5C1.45%207.5%201%207.95%201%208.5C1%209.05%201.45%209.5%202%209.5C2.55%209.5%203%209.05%203%208.5C3%207.95%202.55%207.5%202%207.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%204C1.45%204%201%204.45%201%205C1%205.55%201.45%206%202%206C2.55%206%203%205.55%203%205C3%204.45%202.55%204%202%204Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%200.5C1.45%200.5%201%200.95%201%201.5C1%202.05%201.45%202.5%202%202.5C2.55%202.5%203%202.05%203%201.5C3%200.95%202.55%200.5%202%200.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3c/svg%3e",Manage:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.75065%202.33398V11.6673M2.33398%208.60482H8.75065M2.33398%205.39648H8.75065M3.50065%2011.6673H10.5007C11.145%2011.6673%2011.6673%2011.145%2011.6673%2010.5007V3.50065C11.6673%202.85632%2011.145%202.33398%2010.5007%202.33398H3.50065C2.85632%202.33398%202.33398%202.85632%202.33398%203.50065V10.5007C2.33398%2011.145%202.85632%2011.6673%203.50065%2011.6673Z'%20stroke='%23A8A8A8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectUp:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%200.595703L5.50126%204.09444C5.08807%204.50763%204.41193%204.50763%203.99874%204.09444L0.5%200.595703'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectDown:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%204.4043L5.50126%200.90556C5.08807%200.492365%204.41193%200.492365%203.99874%200.90556L0.5%204.4043'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Upload:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25016%209.9165V6.4165L4.0835%207.58317'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25%206.4165L6.41667%207.58317'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317V8.74984C12.8332%2011.6665%2011.6665%2012.8332%208.74984%2012.8332H5.24984C2.33317%2012.8332%201.1665%2011.6665%201.1665%208.74984V5.24984C1.1665%202.33317%202.33317%201.1665%205.24984%201.1665H8.1665'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317H10.4998C8.74984%205.83317%208.1665%205.24984%208.1665%203.49984V1.1665L12.8332%205.83317Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Download:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25%206.41699V9.91699L6.41667%208.75033'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25114%209.91667L4.08447%208.75'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366V8.75033C12.8322%2011.667%2011.6655%2012.8337%208.74886%2012.8337H5.24886C2.33219%2012.8337%201.16553%2011.667%201.16553%208.75033V5.25033C1.16553%202.33366%202.33219%201.16699%205.24886%201.16699H8.16553'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366H10.4989C8.74886%205.83366%208.16553%205.25033%208.16553%203.50033V1.16699L12.8322%205.83366Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",More:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.4531%202.16699H7.64478C8.07645%202.16699%208.43227%202.52283%208.43227%202.9545V3.81782C8.43227%204.13282%208.23395%204.52366%208.04145%204.722L6.3498%206.21533C6.11647%206.41366%205.95894%206.80449%205.95894%207.11949V8.81117C5.95894%209.0445%205.80145%209.3595%205.60312%209.482L5.05478%209.83782C4.54145%2010.1528%203.8356%209.79699%203.8356%209.16699V7.08449C3.8356%206.81032%203.67811%206.4545%203.52061%206.25616L2.02728%204.68116C1.82895%204.48282%201.67146%204.13282%201.67146%203.89365V2.98949C1.66562%202.52283%202.02144%202.16699%202.4531%202.16699Z'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.66211%207.99998V9.74998C1.66211%2012.6666%202.82878%2013.8333%205.74544%2013.8333H9.24544C12.1621%2013.8333%2013.3288%2012.6666%2013.3288%209.74998V6.24998C13.3288%204.42998%2012.8738%203.28664%2011.8179%202.69164C11.5204%202.52248%2010.9254%202.39414%2010.3829%202.30664'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.08789%208.5835H11.0046'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.91211%2010.9165H10.9954'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowRight:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.45508%209.96028L7.71508%206.70028C8.10008%206.31528%208.10008%205.68528%207.71508%205.30028L4.45508%202.04028'%20stroke='%23A8A8A8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Cross:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25244L2.75%2012.7366'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",CrossLight:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25244L2.75%2012.7366'%20stroke='%23666D80'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23666D80'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",PaginationLeft:"data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.5%209.96346L1.82547%206.28893C1.39151%205.85497%201.39151%205.14487%201.82547%204.71091L5.5%201.03638'%20stroke='%23909090'%20stroke-width='1.2'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",PaginationRight:"data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.5%209.96346L5.17453%206.28893C5.60849%205.85498%205.60849%205.14487%205.17453%204.71091L1.5%201.03638'%20stroke='%23909090'%20stroke-width='1.2'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Import:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.6649%201.33252L9.19824%206.79919'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.66504%204.11377V7.33377H11.885'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.33496%201.33252H6.00163C2.66829%201.33252%201.33496%202.66585%201.33496%205.99919V9.99919C1.33496%2013.3325%202.66829%2014.6659%206.00163%2014.6659H10.0016C13.335%2014.6659%2014.6683%2013.3325%2014.6683%209.99919V8.66585'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Expand:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%206V2H10'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2%2010V14H6'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14%202L9%207'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%209L2%2014'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Merge:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5114%206.05379L10.4511%209.04164L10.4814%209.0719C10.8132%209.40375%2010.9784%209.84252%2010.9769%2010.2806C10.9754%2010.7187%2010.8077%2011.1577%2010.4735%2011.4919L10.3922%2011.5732C10.2241%2011.7413%2010.0025%2011.8263%209.7824%2011.8271C9.56227%2011.8279%209.34086%2011.7443%209.17346%2011.5769L7.78628%2010.1897L4.12799%2013.1773L4.12799%2013.1773L4.06473%2013.0999L12.5114%206.05379ZM12.5114%206.05379C12.8545%206.18859%2013.1918%206.29598%2013.5225%206.3222C13.9811%206.3591%2014.409%206.24328%2014.79%205.86233C14.9483%205.704%2015.0749%205.43718%2015.0758%205.15458C15.0766%204.92373%2014.9983%204.68086%2014.7942%204.47678L11.5247%201.20722C11.3206%201.00314%2011.0777%200.924811%2010.8469%200.925604L10.8472%201.0256C10.5923%201.02601%2010.3506%201.14147%2010.2098%201.2822C9.85167%201.64036%209.74361%202.03912%209.77846%202.4714C9.80525%202.80959%209.92193%203.15912%2010.0693%203.52532M12.5114%206.05379L10.8471%200.925604C10.5647%200.926052%2010.2979%201.05275%2010.1391%201.21149C9.75774%201.59287%209.64191%202.0216%209.67877%202.4793M10.0693%203.52532L10.0126%203.44299L9.94694%203.48823M10.0693%203.52532L9.97655%203.56266C9.96655%203.53782%209.95668%203.51301%209.94694%203.48823M10.0693%203.52532L6.94655%205.67851M9.94694%203.48823C9.81244%203.14589%209.70493%202.80948%209.67877%202.4793M9.94694%203.48823L6.95836%205.5489M9.67877%202.4793C9.67878%202.47935%209.67878%202.47939%209.67879%202.47944L9.77841%202.47141L9.67877%202.4793ZM6.95836%205.5489L7.01726%205.6078L6.94655%205.67851M6.95836%205.5489L6.9281%205.51864C6.59577%205.18631%206.15746%205.02161%205.71939%205.02312C5.28131%205.02462%204.84181%205.19279%204.50813%205.52647L4.42677%205.60783C4.25803%205.77657%204.17412%205.99823%204.17337%206.21807C4.17261%206.43897%204.25556%206.65997%204.42307%206.82748L5.81025%208.21466M6.95836%205.5489L6.88979%205.59618L6.94655%205.67851M6.94655%205.67851L6.85739%205.58935C6.54488%205.27684%206.13258%205.1217%205.71973%205.12311C5.30688%205.12453%204.89304%205.28298%204.57884%205.59718L4.49749%205.67854C4.34833%205.82769%204.27404%206.02364%204.27337%206.21842C4.2727%206.41412%204.34611%206.6091%204.49378%206.75677L5.9449%208.20789M5.81025%208.21466L5.86745%208.14463L5.9449%208.20789M5.81025%208.21466L2.82266%2011.873L2.82261%2011.873C2.66975%2012.0605%202.58321%2012.2918%202.5819%2012.5216L2.5819%2012.5219L2.58189%2012.5237L2.68189%2012.5241L5.9449%208.20789M5.81025%208.21466L5.87419%208.2786L5.9449%208.20789M9.67929%208.9237L9.70517%208.88617L12.0837%205.43671C12.173%205.2898%2012.359%205.22439%2012.5234%205.29377M9.67929%208.9237L10.8454%201.63016C10.9045%201.62996%2010.9672%201.64976%2011.0237%201.70625L14.2933%204.97582C14.3498%205.03232%2014.3696%205.09506%2014.3694%205.15415C14.3691%205.2439%2014.3302%205.32407%2014.2915%205.3628C14.0788%205.57541%2013.845%205.63877%2013.5816%205.61797L13.5737%205.71766L13.5817%205.61798C13.2757%205.59352%2012.9203%205.46074%2012.5234%205.29377M9.67929%208.9237L9.68069%208.92915M9.67929%208.9237L9.68069%208.92915M12.5234%205.29377C12.5234%205.29378%2012.5234%205.29379%2012.5234%205.2938L12.4845%205.38592M12.5234%205.29377C12.5233%205.29376%2012.5233%205.29375%2012.5233%205.29374L12.4845%205.38592M12.4845%205.38592C12.3663%205.33599%2012.2315%205.38352%2012.1678%205.49091L12.4845%205.38592ZM9.68069%208.92915C9.61177%209.06459%209.63845%209.22978%209.74409%209.33659L9.74448%209.33699L9.98131%209.57381C10.175%209.76752%2010.2717%2010.0244%2010.2708%2010.2826V10.2828C10.2704%2010.5403%2010.1719%2010.7983%209.97594%2010.9943L9.89458%2011.0757C9.86461%2011.1056%209.82417%2011.1213%209.78426%2011.1215C9.743%2011.1213%209.70347%2011.1059%209.67442%2011.0769L4.92402%206.32649C4.89507%206.29754%204.8797%206.25724%204.87984%206.21654L4.77984%206.2162L4.87984%206.21654C4.87998%206.17511%204.89552%206.13514%204.92526%206.1054L5.00662%206.02404C5.20212%205.82854%205.46009%205.73002%205.71831%205.72914L5.71848%205.72914C5.97604%205.72783%206.23289%205.82446%206.4271%206.01868L6.66393%206.2555C6.79239%206.38396%206.99539%206.3914%207.13378%206.28051L10.5799%203.90425L10.5799%203.90425L10.5806%203.90375C10.719%203.80648%2010.7688%203.62722%2010.7059%203.47652L10.7058%203.47623C10.5388%203.07917%2010.4055%202.72425%2010.3811%202.4183L10.3811%202.41823C10.3599%202.15556%2010.4236%201.92124%2010.6367%201.70807C10.6755%201.66934%2010.7556%201.63047%2010.8454%201.63016L9.68069%208.92915ZM6.30997%208.71246L7.28616%209.68865L3.68235%2012.6321C3.61745%2012.685%203.54349%2012.7114%203.47784%2012.7116L3.47784%2012.7115L3.47462%2012.7117L3.46448%2012.712C3.41893%2012.7093%203.37647%2012.6919%203.34137%2012.6568C3.3036%2012.619%203.28592%2012.5717%203.28609%2012.5199C3.28631%2012.4557%203.31278%2012.3822%203.36653%2012.3163L6.30997%208.71246Z'%20fill='%23007AFF'%20stroke='%23007AFF'%20stroke-width='0.2'/%3e%3c/svg%3e",FilterLight:"data:image/svg+xml,%3csvg%20width='13'%20height='14'%20viewBox='0%200%2013%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.26379%2011.7614L6.50005%2012.2543C5.79047%2012.693%204.80463%2012.2001%204.80463%2011.3226V8.4247C4.80463%208.04011%204.58797%207.5472%204.36589%207.27637L2.28587%205.08803C2.00962%204.81178%201.79297%204.32428%201.79297%203.99387V2.7372C1.79297%202.08178%202.2859%201.58887%202.88715%201.58887H10.113C10.7142%201.58887%2011.2071%202.08178%2011.2071%202.68303V3.88553C11.2071%204.32428%2010.9309%204.87137%2010.66%205.1422'%20stroke='%23282A2A'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.25136%206.94027L7.33383%208.85776C7.258%208.93359%207.18759%209.07443%207.17134%209.17734L7.06842%209.9086C7.03051%2010.174%207.21468%2010.3582%207.48009%2010.3203L8.21133%2010.2173C8.31425%2010.2011%208.46051%2010.1307%208.53093%2010.0549L10.4484%208.13735C10.7788%207.80693%2010.9359%207.42235%2010.4484%206.93485C9.96633%206.45277%209.58177%206.60986%209.25136%206.94027Z'%20stroke='%23282A2A'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.98047%207.21094C9.14297%207.79594%209.59795%208.25092%2010.183%208.41342'%20stroke='%23282A2A'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Filter:"data:image/svg+xml,%3csvg%20width='13'%20height='14'%20viewBox='0%200%2013%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.26379%2011.7614L6.50005%2012.2543C5.79047%2012.693%204.80463%2012.2001%204.80463%2011.3226V8.4247C4.80463%208.04011%204.58797%207.5472%204.36589%207.27637L2.28587%205.08803C2.00962%204.81178%201.79297%204.32428%201.79297%203.99387V2.7372C1.79297%202.08178%202.2859%201.58887%202.88715%201.58887H10.113C10.7142%201.58887%2011.2071%202.08178%2011.2071%202.68303V3.88553C11.2071%204.32428%2010.9309%204.87137%2010.66%205.1422'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.25136%206.94027L7.33383%208.85776C7.258%208.93359%207.18759%209.07443%207.17134%209.17734L7.06842%209.9086C7.03051%2010.174%207.21468%2010.3582%207.48009%2010.3203L8.21133%2010.2173C8.31425%2010.2011%208.46051%2010.1307%208.53093%2010.0549L10.4484%208.13735C10.7788%207.80693%2010.9359%207.42235%2010.4484%206.93485C9.96633%206.45277%209.58177%206.60986%209.25136%206.94027Z'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.98047%207.21094C9.14297%207.79594%209.59795%208.25092%2010.183%208.41342'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",FilterClose:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='12'%20height='12'%20rx='3'%20fill='%23E85353'/%3e%3cpath%20d='M3.75%208.25L8.25%203.75'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.25%208.25L3.75%203.75'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Check:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.00001%2014.6666H10C13.3333%2014.6666%2014.6667%2013.3333%2014.6667%209.99992V5.99992C14.6667%202.66659%2013.3333%201.33325%2010%201.33325H6.00001C2.66668%201.33325%201.33334%202.66659%201.33334%205.99992V9.99992C1.33334%2013.3333%202.66668%2014.6666%206.00001%2014.6666Z'%20fill='%23E94F1C'%20stroke='%23E94F1C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.16666%207.99995L7.05332%209.88661L10.8333%206.11328'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Uncheck:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.00001%2014.6666H10C13.3333%2014.6666%2014.6667%2013.3333%2014.6667%209.99992V5.99992C14.6667%202.66659%2013.3333%201.33325%2010%201.33325H6.00001C2.66668%201.33325%201.33334%202.66659%201.33334%205.99992V9.99992C1.33334%2013.3333%202.66668%2014.6666%206.00001%2014.6666Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Calendar:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.66602%201.16602V2.91602'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.33398%201.16602V2.91602'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.04102%205.30176H11.9577'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%204.95768V9.91602C12.25%2011.666%2011.375%2012.8327%209.33333%2012.8327H4.66667C2.625%2012.8327%201.75%2011.666%201.75%209.91602V4.95768C1.75%203.20768%202.625%202.04102%204.66667%202.04102H9.33333C11.375%202.04102%2012.25%203.20768%2012.25%204.95768Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.99745%207.99186H7.00269'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83729%207.99186H4.84253'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83729%209.74186H4.84253'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Collapse:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%203V7H13'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%2013V9H3'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14%202L9%207'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%209L2%2014'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Group:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.12852%201.82495L11.816%203.46245C12.8785%203.9312%2012.8785%204.7062%2011.816%205.17495L8.12852%206.81245C7.70977%206.99995%207.02227%206.99995%206.60352%206.81245L2.91602%205.17495C1.85352%204.7062%201.85352%203.9312%202.91602%203.46245L6.60352%201.82495C7.02227%201.63745%207.70977%201.63745%208.12852%201.82495Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.875%206.875C1.875%207.4%202.26875%208.00625%202.75%208.21875L6.99375%2010.1062C7.31875%2010.25%207.6875%2010.25%208.00625%2010.1062L12.25%208.21875C12.7313%208.00625%2013.125%207.4%2013.125%206.875'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.875%2010C1.875%2010.5812%202.21875%2011.1062%202.75%2011.3437L6.99375%2013.2312C7.31875%2013.375%207.6875%2013.375%208.00625%2013.2312L12.25%2011.3437C12.7813%2011.1062%2013.125%2010.5812%2013.125%2010'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",CrossWhite:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25293L2.75%2012.7371'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Save:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.61086%204.11505C3.64436%204.11505%202.86086%203.33155%202.86086%202.36505V0.290039H2.5407C1.13751%200.290039%200%201.42755%200%202.83074V9.24934C0%2010.3917%200.753899%2011.3579%201.79129%2011.6777V8.57536C1.79129%207.05657%203.02251%205.82536%204.5413%205.82536H6.9599C8.47869%205.82536%209.7099%207.05658%209.7099%208.57536V11.6773C10.7467%2011.3572%2011.5%2010.3912%2011.5%209.24934V4.56517C11.5%204.0332%2011.2887%203.52301%2010.9125%203.14685L8.64319%200.877528C8.64211%200.876443%208.64102%200.875359%208.63993%200.874277V2.36505C8.63993%203.33155%207.85643%204.11505%206.88993%204.11505H4.61086ZM7.13993%200.290039H4.36086V2.36505C4.36086%202.50312%204.47279%202.61505%204.61086%202.61505H6.88993C7.028%202.61505%207.13993%202.50312%207.13993%202.36505V0.290039ZM4.5413%207.32536C3.85094%207.32536%203.29129%207.885%203.29129%208.57536V11.7091H8.2099V8.57536C8.2099%207.885%207.65026%207.32536%206.9599%207.32536H4.5413Z'%20fill='%23909090'/%3e%3c/svg%3e",UploadDark:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25065%209.91699V6.41699L4.08398%207.58366'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25%206.41699L6.41667%207.58366'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8327%205.83366V8.75033C12.8327%2011.667%2011.666%2012.8337%208.74935%2012.8337H5.24935C2.33268%2012.8337%201.16602%2011.667%201.16602%208.75033V5.25033C1.16602%202.33366%202.33268%201.16699%205.24935%201.16699H8.16602'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8327%205.83366H10.4993C8.74935%205.83366%208.16602%205.25033%208.16602%203.50033V1.16699L12.8327%205.83366Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowDownLight:"data:image/svg+xml,%3csvg%20width='8'%20height='4'%20viewBox='0%200%208%204'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%200.543945L4.32449%203.21945C4.00852%203.53542%203.49148%203.53542%203.17551%203.21945L0.5%200.543945'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowUpLight:"data:image/svg+xml,%3csvg%20width='8'%20height='4'%20viewBox='0%200%208%204'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%203.45605L4.32449%200.78055C4.00852%200.464578%203.49148%200.464578%203.17551%200.78055L0.5%203.45605'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Drag:"data:image/svg+xml,%3csvg%20width='13'%20height='13'%20viewBox='0%200%2016%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.5%207.5C5.675%207.5%205%208.175%205%209C5%209.825%205.675%2010.5%206.5%2010.5C7.325%2010.5%208%209.825%208%209C8%208.175%207.325%207.5%206.5%207.5Z'%20fill='%23909090'/%3e%3cpath%20d='M6.5%2013.5C5.675%2013.5%205%2014.175%205%2015C5%2015.825%205.675%2016.5%206.5%2016.5C7.325%2016.5%208%2015.825%208%2015C8%2014.175%207.325%2013.5%206.5%2013.5Z'%20fill='%23909090'/%3e%3cpath%20d='M6.5%201.5C5.675%201.5%205%202.175%205%203C5%203.825%205.675%204.5%206.5%204.5C7.325%204.5%208%203.825%208%203C8%202.175%207.325%201.5%206.5%201.5Z'%20fill='%23909090'/%3e%3cpath%20d='M12%207.5C11.175%207.5%2010.5%208.175%2010.5%209C10.5%209.825%2011.175%2010.5%2012%2010.5C12.825%2010.5%2013.5%209.825%2013.5%209C13.5%208.175%2012.825%207.5%2012%207.5Z'%20fill='%23909090'/%3e%3cpath%20d='M12%2013.5C11.175%2013.5%2010.5%2014.175%2010.5%2015C10.5%2015.825%2011.175%2016.5%2012%2016.5C12.825%2016.5%2013.5%2015.825%2013.5%2015C13.5%2014.175%2012.825%2013.5%2012%2013.5Z'%20fill='%23909090'/%3e%3cpath%20d='M12%201.5C11.175%201.5%2010.5%202.175%2010.5%203C10.5%203.825%2011.175%204.5%2012%204.5C12.825%204.5%2013.5%203.825%2013.5%203C13.5%202.175%2012.825%201.5%2012%201.5Z'%20fill='%23909090'/%3e%3c/svg%3e",CloseCircle:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.00065%2014.6663C11.6673%2014.6663%2014.6673%2011.6663%2014.6673%207.99967C14.6673%204.33301%2011.6673%201.33301%208.00065%201.33301C4.33398%201.33301%201.33398%204.33301%201.33398%207.99967C1.33398%2011.6663%204.33398%2014.6663%208.00065%2014.6663Z'%20stroke='%23999999'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.11328%209.88661L9.88661%206.11328'%20stroke='%23999999'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.88661%209.88661L6.11328%206.11328'%20stroke='%23999999'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",AddSquare:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.66602%207H9.33268'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%209.33366V4.66699'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.24935%2012.8337H8.74935C11.666%2012.8337%2012.8327%2011.667%2012.8327%208.75033V5.25033C12.8327%202.33366%2011.666%201.16699%208.74935%201.16699H5.24935C2.33268%201.16699%201.16602%202.33366%201.16602%205.25033V8.75033C1.16602%2011.667%202.33268%2012.8337%205.24935%2012.8337Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",CalendarEdit:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.66699%201.16699V2.91699'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.33301%201.16699V2.91699'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.04199%205.30273H11.9587'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.2058%209.19949L9.14078%2011.2645C9.05912%2011.3462%208.98327%2011.4978%208.96577%2011.6087L8.85494%2012.3962C8.8141%2012.682%209.01244%2012.8803%209.29828%2012.8395L10.0858%2012.7287C10.1966%2012.7112%2010.3541%2012.6353%2010.4299%2012.5537L12.4949%2010.4887C12.8508%2010.1328%2013.0199%209.71867%2012.4949%209.19367C11.9758%208.6745%2011.5616%208.84366%2011.2058%209.19949Z'%20stroke='white'%20stroke-width='0.6'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10.9082%209.49707C11.0832%2010.1271%2011.5732%2010.6171%2012.2032%2010.7921'%20stroke='white'%20stroke-width='0.6'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%2012.8337H4.66667C2.625%2012.8337%201.75%2011.667%201.75%209.91699V4.95866C1.75%203.20866%202.625%202.04199%204.66667%202.04199H9.33333C11.375%202.04199%2012.25%203.20866%2012.25%204.95866V7.00033'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.99745%207.99186H7.00269'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83827%207.99186H4.84351'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83827%209.74186H4.84351'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e"},EM={light:Js({mode:"light",palette:{primary:{appBackground:"#FFFFFF",main:"#f5f7fa",notifyBackground:"#F8FAFB",notifyTextColor:"#525252",notifyActiveText:"#282A2A",notifyBorderColor:"#D0D4DA",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#E6EAEC",notifyActiveBorderColor:"#1D1D1D",notifyIconColor:"#666D80"},brandColor:{blue:"#0166FF",lightBlue:"#0582CA",orange:"#E94F1C",lightOrange:"#ff9a78",grey1:"#595959",red:"#E85353",main:"#FF6D33",grey3:"#898A93",paginationBc:"#EDEDED",white:"#FFFFFF",grey:"#2D2D2F"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}},icons:{close:Xe.CrossLight,filter:Xe.FilterLight}}),dark:Js({mode:"dark",palette:{primary:{appBackground:"#101010",main:"#f5f7fa",notifyBackground:"#1D1D1D",notifyTextColor:"#A8A8A8",notifyActiveText:"#FFFFFF",notifyBorderColor:"#313133",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#2C2C2F",notifyActiveBorderColor:"#FFFFFF",notifyIconColor:"#909090"},brandColor:{blue:"#0166FF",lightBlue:"#0582CA",orange:"#E94F1C",lightOrange:"#ff9a78",grey1:"#595959",main:"#FF6D33",red:"#E85353",grey3:"#898A93",paginationBc:"#1D1D1F",white:"#FFFFFF"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}},icons:{close:Xe.Cross,filter:Xe.Filter}})};function Gt({children:e}){const t=JSON.parse(localStorage.getItem("settings"))?.platform?.theme||"light",[n,r]=x.useState(t);return x.useEffect(()=>{const o=s=>{r(s?.detail)};return window.addEventListener(El.THEME,o),()=>{window.removeEventListener(El.THEME,o)}},[]),p.jsx(iT,{theme:EM[n],children:e})}const Qd=x.createContext({});function Yr(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const eu=typeof window<"u",tu=eu?x.useLayoutEffect:x.useEffect,Ol=x.createContext(null);function nu(e,t){e.indexOf(t)===-1&&e.push(t)}function ru(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function OM([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const o=n<0?e.length+n:n,[s]=e.splice(t,1);e.splice(o,0,s)}return e}const pr=(e,t,n)=>n>t?t:n<e?e:n;function ou(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let rs=()=>{},Yn=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(rs=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(ou(t,n))},Yn=(e,t,n)=>{if(!e)throw new Error(ou(t,n))});const Mr={},s0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function i0(e){return typeof e=="object"&&e!==null}const a0=e=>/^0[^.\s]+$/u.test(e);function su(e){let t;return()=>(t===void 0&&(t=e()),t)}const $n=e=>e,MM=(e,t)=>n=>t(e(n)),Ei=(...e)=>e.reduce(MM),Oi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class iu{constructor(){this.subscriptions=[]}add(t){return nu(this.subscriptions,t),()=>ru(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const hr=e=>e*1e3,Ln=e=>e/1e3;function l0(e,t){return t?e*(1e3/t):0}const c0=new Set;function au(e,t,n){e||c0.has(t)||(console.warn(ou(t,n)),c0.add(t))}const d0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,PM=1e-7,jM=12;function IM(e,t,n,r,o){let s,a,l=0;do a=t+(n-t)/2,s=d0(a,r,o)-e,s>0?n=a:t=a;while(Math.abs(s)>PM&&++l<jM);return a}function Mi(e,t,n,r){if(e===t&&n===r)return $n;const o=s=>IM(s,0,1,e,n);return s=>s===0||s===1?s:d0(o(s),t,r)}const u0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,f0=e=>t=>1-e(1-t),p0=Mi(.33,1.53,.69,.99),lu=f0(p0),h0=u0(lu),m0=e=>(e*=2)<1?.5*lu(e):.5*(2-Math.pow(2,-10*(e-1))),cu=e=>1-Math.sin(Math.acos(e)),g0=f0(cu),y0=u0(cu),DM=Mi(.42,0,1,1),AM=Mi(0,0,.58,1),b0=Mi(.42,0,.58,1),RM=e=>Array.isArray(e)&&typeof e[0]!="number",v0=e=>Array.isArray(e)&&typeof e[0]=="number",x0={linear:$n,easeIn:DM,easeInOut:b0,easeOut:AM,circIn:cu,circInOut:y0,circOut:g0,backIn:lu,backInOut:h0,backOut:p0,anticipate:m0},NM=e=>typeof e=="string",w0=e=>{if(v0(e)){Yn(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Mi(t,n,r,o)}else if(NM(e))return Yn(x0[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),x0[e];return e},Ml=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $M(e,t){let n=new Set,r=new Set,o=!1,s=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(u){a.has(u)&&(d.schedule(u),e()),u(l)}const d={schedule:(u,f=!1,h=!1)=>{const g=h&&o?n:r;return f&&a.add(u),g.has(u)||g.add(u),u},cancel:u=>{r.delete(u),a.delete(u)},process:u=>{if(l=u,o){s=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,s&&(s=!1,d.process(u))}};return d}const LM=40;function S0(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Ml.reduce((S,C)=>(S[C]=$M(s),S),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:u,update:f,preRender:h,render:m,postRender:g}=a,y=()=>{const S=Mr.useManualTiming?o.timestamp:performance.now();n=!1,Mr.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(S-o.timestamp,LM),1)),o.timestamp=S,o.isProcessing=!0,l.process(o),c.process(o),d.process(o),u.process(o),f.process(o),h.process(o),m.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},b=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:Ml.reduce((S,C)=>{const w=a[C];return S[C]=(k,O=!1,P=!1)=>(n||b(),w.schedule(k,O,P)),S},{}),cancel:S=>{for(let C=0;C<Ml.length;C++)a[Ml[C]].cancel(S)},state:o,steps:a}}const{schedule:wt,cancel:Pr,state:Xt,steps:du}=S0(typeof requestAnimationFrame<"u"?requestAnimationFrame:$n,!0);let Pl;function BM(){Pl=void 0}const on={now:()=>(Pl===void 0&&on.set(Xt.isProcessing||Mr.useManualTiming?Xt.timestamp:performance.now()),Pl),set:e=>{Pl=e,queueMicrotask(BM)}},C0=e=>t=>typeof t=="string"&&t.startsWith(e),T0=C0("--"),_M=C0("var(--"),uu=e=>_M(e)?FM.test(e.split("/*")[0].trim()):!1,FM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function k0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const os={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Pi={...os,transform:e=>pr(0,1,e)},jl={...os,default:1},ji=e=>Math.round(e*1e5)/1e5,fu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function WM(e){return e==null}const zM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pu=(e,t)=>n=>!!(typeof n=="string"&&zM.test(n)&&n.startsWith(e)||t&&!WM(n)&&Object.prototype.hasOwnProperty.call(n,t)),E0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,a,l]=r.match(fu);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},VM=e=>pr(0,255,e),hu={...os,transform:e=>Math.round(VM(e))},go={test:pu("rgb","red"),parse:E0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+hu.transform(e)+", "+hu.transform(t)+", "+hu.transform(n)+", "+ji(Pi.transform(r))+")"};function HM(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const mu={test:pu("#"),parse:HM,transform:go.transform},Ii=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),qr=Ii("deg"),mr=Ii("%"),Se=Ii("px"),UM=Ii("vh"),YM=Ii("vw"),O0={...mr,parse:e=>mr.parse(e)/100,transform:e=>mr.transform(e*100)},ss={test:pu("hsl","hue"),parse:E0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+mr.transform(ji(t))+", "+mr.transform(ji(n))+", "+ji(Pi.transform(r))+")"},_t={test:e=>go.test(e)||mu.test(e)||ss.test(e),parse:e=>go.test(e)?go.parse(e):ss.test(e)?ss.parse(e):mu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?go.transform(e):ss.transform(e),getAnimatableNone:e=>{const t=_t.parse(e);return t.alpha=0,_t.transform(t)}},qM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function GM(e){return isNaN(e)&&typeof e=="string"&&(e.match(fu)?.length||0)+(e.match(qM)?.length||0)>0}const M0="number",P0="color",KM="var",XM="var(",j0="${}",ZM=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Di(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const l=t.replace(ZM,c=>(_t.test(c)?(r.color.push(s),o.push(P0),n.push(_t.parse(c))):c.startsWith(XM)?(r.var.push(s),o.push(KM),n.push(c)):(r.number.push(s),o.push(M0),n.push(parseFloat(c))),++s,j0)).split(j0);return{values:n,split:l,indexes:r,types:o}}function I0(e){return Di(e).values}function D0(e){const{split:t,types:n}=Di(e),r=t.length;return o=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],o[a]!==void 0){const l=n[a];l===M0?s+=ji(o[a]):l===P0?s+=_t.transform(o[a]):s+=o[a]}return s}}const JM=e=>typeof e=="number"?0:_t.test(e)?_t.getAnimatableNone(e):e;function QM(e){const t=I0(e);return D0(e)(t.map(JM))}const Gr={test:GM,parse:I0,createTransformer:D0,getAnimatableNone:QM};function gu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eP({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,a=0;if(!t)o=s=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;o=gu(c,l,e+1/3),s=gu(c,l,e),a=gu(c,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function Il(e,t){return n=>n>0?t:e}const Et=(e,t,n)=>e+(t-e)*n,yu=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},tP=[mu,go,ss],nP=e=>tP.find(t=>t.test(e));function A0(e){const t=nP(e);if(rs(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===ss&&(n=eP(n)),n}const R0=(e,t)=>{const n=A0(e),r=A0(t);if(!n||!r)return Il(e,t);const o={...n};return s=>(o.red=yu(n.red,r.red,s),o.green=yu(n.green,r.green,s),o.blue=yu(n.blue,r.blue,s),o.alpha=Et(n.alpha,r.alpha,s),go.transform(o))},bu=new Set(["none","hidden"]);function rP(e,t){return bu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function oP(e,t){return n=>Et(e,t,n)}function vu(e){return typeof e=="number"?oP:typeof e=="string"?uu(e)?Il:_t.test(e)?R0:aP:Array.isArray(e)?N0:typeof e=="object"?_t.test(e)?R0:sP:Il}function N0(e,t){const n=[...e],r=n.length,o=e.map((s,a)=>vu(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=o[a](s);return n}}function sP(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=vu(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function iP(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][r[s]],l=e.values[a]??0;n[o]=l,r[s]++}return n}const aP=(e,t)=>{const n=Gr.createTransformer(t),r=Di(e),o=Di(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?bu.has(e)&&!o.values.length||bu.has(t)&&!r.values.length?rP(e,t):Ei(N0(iP(r,o),o.values),n):(rs(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Il(e,t))};function $0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Et(e,t,n):vu(e)(e,t)}const lP=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>wt.update(t,n),stop:()=>Pr(t),now:()=>Xt.isProcessing?Xt.timestamp:on.now()}},L0=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Dl=2e4;function xu(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Dl;)t+=n,r=e.next(t);return t>=Dl?1/0:t}function cP(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(xu(r),Dl);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Ln(o)}}const dP=5;function B0(e,t,n){const r=Math.max(t-dP,0);return l0(n-e(r),t-r)}const Mt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},wu=.001;function uP({duration:e=Mt.duration,bounce:t=Mt.bounce,velocity:n=Mt.velocity,mass:r=Mt.mass}){let o,s;rs(e<=hr(Mt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=pr(Mt.minDamping,Mt.maxDamping,a),e=pr(Mt.minDuration,Mt.maxDuration,Ln(e)),a<1?(o=d=>{const u=d*a,f=u*e,h=u-n,m=Su(d,a),g=Math.exp(-f);return wu-h/m*g},s=d=>{const f=d*a*e,h=f*n+n,m=Math.pow(a,2)*Math.pow(d,2)*e,g=Math.exp(-f),y=Su(Math.pow(d,2),a);return(-o(d)+wu>0?-1:1)*((h-m)*g)/y}):(o=d=>{const u=Math.exp(-d*e),f=(d-n)*e+1;return-wu+u*f},s=d=>{const u=Math.exp(-d*e),f=(n-d)*(e*e);return u*f});const l=5/e,c=pP(o,s,l);if(e=hr(e),isNaN(c))return{stiffness:Mt.stiffness,damping:Mt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const fP=12;function pP(e,t,n){let r=n;for(let o=1;o<fP;o++)r=r-e(r)/t(r);return r}function Su(e,t){return e*Math.sqrt(1-t*t)}const hP=["duration","bounce"],mP=["stiffness","damping","mass"];function _0(e,t){return t.some(n=>e[n]!==void 0)}function gP(e){let t={velocity:Mt.velocity,stiffness:Mt.stiffness,damping:Mt.damping,mass:Mt.mass,isResolvedFromDuration:!1,...e};if(!_0(e,mP)&&_0(e,hP))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*pr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Mt.mass,stiffness:o,damping:s}}else{const n=uP(e);t={...t,...n,mass:Mt.mass},t.isResolvedFromDuration=!0}return t}function Al(e=Mt.visualDuration,t=Mt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:c,damping:d,mass:u,duration:f,velocity:h,isResolvedFromDuration:m}=gP({...n,velocity:-Ln(n.velocity||0)}),g=h||0,y=d/(2*Math.sqrt(c*u)),b=a-s,v=Ln(Math.sqrt(c/u)),T=Math.abs(b)<5;r||(r=T?Mt.restSpeed.granular:Mt.restSpeed.default),o||(o=T?Mt.restDelta.granular:Mt.restDelta.default);let S;if(y<1){const w=Su(v,y);S=k=>{const O=Math.exp(-y*v*k);return a-O*((g+y*v*b)/w*Math.sin(w*k)+b*Math.cos(w*k))}}else if(y===1)S=w=>a-Math.exp(-v*w)*(b+(g+v*b)*w);else{const w=v*Math.sqrt(y*y-1);S=k=>{const O=Math.exp(-y*v*k),P=Math.min(w*k,300);return a-O*((g+y*v*b)*Math.sinh(P)+w*b*Math.cosh(P))/w}}const C={calculatedDuration:m&&f||null,next:w=>{const k=S(w);if(m)l.done=w>=f;else{let O=w===0?g:0;y<1&&(O=w===0?hr(g):B0(S,w,k));const P=Math.abs(O)<=r,j=Math.abs(a-k)<=o;l.done=P&&j}return l.value=l.done?a:k,l},toString:()=>{const w=Math.min(xu(C),Dl),k=L0(O=>C.next(w*O).value,w,30);return w+"ms "+k},toTransition:()=>{}};return C}Al.applyToOptions=e=>{const t=cP(e,100,Al);return e.ease=t.ease,e.duration=hr(t.duration),e.type="keyframes",e};function Cu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:a,min:l,max:c,restDelta:d=.5,restSpeed:u}){const f=e[0],h={done:!1,value:f},m=P=>l!==void 0&&P<l||c!==void 0&&P>c,g=P=>l===void 0?c:c===void 0||Math.abs(l-P)<Math.abs(c-P)?l:c;let y=n*t;const b=f+y,v=a===void 0?b:a(b);v!==b&&(y=v-f);const T=P=>-y*Math.exp(-P/r),S=P=>v+T(P),C=P=>{const j=T(P),A=S(P);h.done=Math.abs(j)<=d,h.value=h.done?v:A};let w,k;const O=P=>{m(h.value)&&(w=P,k=Al({keyframes:[h.value,g(h.value)],velocity:B0(S,P,h.value),damping:o,stiffness:s,restDelta:d,restSpeed:u}))};return O(0),{calculatedDuration:null,next:P=>{let j=!1;return!k&&w===void 0&&(j=!0,C(P),O(P)),w!==void 0&&P>=w?k.next(P-w):(!j&&C(P),h)}}}function yP(e,t,n){const r=[],o=n||Mr.mix||$0,s=e.length-1;for(let a=0;a<s;a++){let l=o(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||$n:t;l=Ei(c,l)}r.push(l)}return r}function F0(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(Yn(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=yP(t,r,o),c=l.length,d=u=>{if(a&&u<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const h=Oi(e[f],e[f+1],u);return l[f](h)};return n?u=>d(pr(e[0],e[s-1],u)):d}function bP(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Oi(0,t,r);e.push(Et(n,1,o))}}function vP(e){const t=[0];return bP(t,e.length-1),t}function xP(e,t){return e.map(n=>n*t)}function wP(e,t){return e.map(()=>t||b0).splice(0,e.length-1)}function is({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=RM(r)?r.map(w0):w0(r),s={done:!1,value:t[0]},a=xP(n&&n.length===t.length?n:vP(t),e),l=F0(a,t,{ease:Array.isArray(o)?o:wP(t,o)});return{calculatedDuration:e,next:c=>(s.value=l(c),s.done=c>=e,s)}}const SP=e=>e!==null;function Tu(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(SP),l=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!l||r===void 0?s[l]:r}const CP={decay:Cu,inertia:Cu,tween:is,keyframes:is,spring:Al};function W0(e){typeof e.type=="string"&&(e.type=CP[e.type])}class ku{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const TP=e=>e/100;class Eu extends ku{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==on.now()&&this.tick(on.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;W0(t);const{type:n=is,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=t;let{keyframes:l}=t;const c=n||is;process.env.NODE_ENV!=="production"&&c!==is&&Yn(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==is&&typeof l[0]!="number"&&(this.mixKeyframes=Ei(TP,$0(l[0],l[1])),l=[0,100]);const d=c({...t,keyframes:l});s==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=xu(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:u,repeat:f,repeatType:h,repeatDelay:m,type:g,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-d*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let S=this.currentTime,C=r;if(f){const P=Math.min(this.currentTime,o)/l;let j=Math.floor(P),A=P%1;!A&&P>=1&&(A=1),A===1&&j--,j=Math.min(j,f+1),j%2&&(h==="reverse"?(A=1-A,m&&(A-=m/l)):h==="mirror"&&(C=a)),S=pr(0,1,A)*l}const w=T?{done:!1,value:u[0]}:C.next(S);s&&(w.value=s(w.value));let{done:k}=w;!T&&c!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return O&&g!==Cu&&(w.value=Tu(u,this.options,b,this.speed)),y&&y(w.value),O&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return Ln(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ln(t)}get time(){return Ln(this.currentTime)}set time(t){t=hr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(on.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ln(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=lP,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(on.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function kP(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const yo=e=>e*180/Math.PI,Ou=e=>{const t=yo(Math.atan2(e[1],e[0]));return Mu(t)},EP={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ou,rotateZ:Ou,skewX:e=>yo(Math.atan(e[1])),skewY:e=>yo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Mu=e=>(e=e%360,e<0&&(e+=360),e),z0=Ou,V0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),H0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),OP={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:V0,scaleY:H0,scale:e=>(V0(e)+H0(e))/2,rotateX:e=>Mu(yo(Math.atan2(e[6],e[5]))),rotateY:e=>Mu(yo(Math.atan2(-e[2],e[0]))),rotateZ:z0,rotate:z0,skewX:e=>yo(Math.atan(e[4])),skewY:e=>yo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Pu(e){return e.includes("scale")?1:0}function ju(e,t){if(!e||e==="none")return Pu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=OP,o=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=EP,o=l}if(!o)return Pu(t);const s=r[t],a=o[1].split(",").map(PP);return typeof s=="function"?s(a):a[s]}const MP=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ju(n,t)};function PP(e){return parseFloat(e.trim())}const as=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ls=new Set(as),U0=e=>e===os||e===Se,jP=new Set(["x","y","z"]),IP=as.filter(e=>!jP.has(e));function DP(e){const t=[];return IP.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Kr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ju(t,"x"),y:(e,{transform:t})=>ju(t,"y")};Kr.translateX=Kr.x,Kr.translateY=Kr.y;const bo=new Set;let Iu=!1,Du=!1,Au=!1;function Y0(){if(Du){const e=Array.from(bo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=DP(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([s,a])=>{r.getValue(s)?.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Du=!1,Iu=!1,bo.forEach(e=>e.complete(Au)),bo.clear()}function q0(){bo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Du=!0)})}function AP(){Au=!0,q0(),Y0(),Au=!1}class Ru{constructor(t,n,r,o,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(bo.add(this),Iu||(Iu=!0,wt.read(q0),wt.resolveKeyframes(Y0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}kP(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),bo.delete(this)}cancel(){this.state==="scheduled"&&(bo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const RP=e=>e.startsWith("--");function NP(e,t,n){RP(t)?e.style.setProperty(t,n):e.style[t]=n}const $P=su(()=>window.ScrollTimeline!==void 0),LP={};function BP(e,t){const n=su(e);return()=>LP[t]??n()}const G0=BP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ai=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,K0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ai([0,.65,.55,1]),circOut:Ai([.55,0,1,.45]),backIn:Ai([.31,.01,.66,-.59]),backOut:Ai([.33,1.53,.69,.99])};function X0(e,t){if(e)return typeof e=="function"?G0()?L0(e,t):"ease-out":v0(e)?Ai(e):Array.isArray(e)?e.map(n=>X0(n,t)||K0.easeOut):K0[e]}function _P(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:a="loop",ease:l="easeOut",times:c}={},d=void 0){const u={[t]:n};c&&(u.offset=c);const f=X0(l,o);Array.isArray(f)&&(u.easing=f);const h={delay:r,duration:o,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(u,h)}function Z0(e){return typeof e=="function"&&"applyToOptions"in e}function FP({type:e,...t}){return Z0(e)&&G0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class WP extends ku{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,Yn(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=FP(t);this.animation=_P(n,r,o,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=Tu(o,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(u):NP(n,r,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ln(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ln(t)}get time(){return Ln(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=hr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&$P()?(this.animation.timeline=t,$n):n(this)}}const J0={anticipate:m0,backInOut:h0,circInOut:y0};function zP(e){return e in J0}function VP(e){typeof e.ease=="string"&&zP(e.ease)&&(e.ease=J0[e.ease])}const Nu=10;class HP extends WP{constructor(t){VP(t),W0(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Eu({...a,autoplay:!1}),c=Math.max(Nu,on.now()-this.startTime),d=pr(0,Nu,c-Nu);n.setWithVelocity(l.sample(Math.max(0,c-d)).value,l.sample(c).value,d),l.stop()}}const Q0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gr.test(e)||e==="0")&&!e.startsWith("url("));function UP(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function YP(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=Q0(o,t),l=Q0(s,t);return rs(a===l,`You are trying to animate ${t} from "${o}" to "${s}". "${a?s:o}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:UP(e)||(n==="spring"||Z0(n))&&r}function $u(e){e.duration=0,e.type="keyframes"}const qP=new Set(["opacity","clipPath","filter","transform"]),GP=su(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function KP(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return GP()&&n&&qP.has(n)&&(n!=="transform"||!d)&&!c&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}const XP=40;class ZP extends ku{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",keyframes:l,name:c,motionValue:d,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=on.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:a,name:c,motionValue:d,element:u,...f},m=u?.KeyframeResolver||Ru;this.keyframeResolver=new m(l,(g,y,b)=>this.onKeyframesResolved(g,y,h,!b),c,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:a,velocity:l,delay:c,isHandoff:d,onUpdate:u}=r;this.resolvedAt=on.now(),YP(t,s,a,l)||((Mr.instantAnimations||!c)&&u?.(Tu(t,r,n)),t[0]=t[t.length-1],$u(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>XP?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!d&&KP(h)?new HP({...h,element:h.motionValue.owner.current}):new Eu(h);m.finished.then(()=>this.notifyFinished()).catch($n),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),AP()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const JP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function QP(e){const t=JP.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const ej=4;function ey(e,t,n=1){Yn(n<=ej,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=QP(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return s0(a)?parseFloat(a):a}return uu(o)?ey(o,t,n+1):o}function Lu(e,t){return e?.[t]??e?.default??e}const ty=new Set(["width","height","top","left","right","bottom",...as]),tj={test:e=>e==="auto",parse:e=>e},ny=e=>t=>t.test(e),ry=[os,Se,mr,qr,YM,UM,tj],oy=e=>ry.find(ny(e));function nj(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||a0(e):!0}const rj=new Set(["brightness","contrast","saturate","opacity"]);function oj(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(fu)||[];if(!r)return e;const o=n.replace(r,"");let s=rj.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const sj=/\b([a-z-]*)\(.*?\)/gu,Bu={...Gr,getAnimatableNone:e=>{const t=e.match(sj);return t?t.map(oj).join(" "):e}},sy={...os,transform:Math.round},_u={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,inset:Se,insetBlock:Se,insetBlockStart:Se,insetBlockEnd:Se,insetInline:Se,insetInlineStart:Se,insetInlineEnd:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,paddingBlock:Se,paddingBlockStart:Se,paddingBlockEnd:Se,paddingInline:Se,paddingInlineStart:Se,paddingInlineEnd:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,marginBlock:Se,marginBlockStart:Se,marginBlockEnd:Se,marginInline:Se,marginInlineStart:Se,marginInlineEnd:Se,backgroundPositionX:Se,backgroundPositionY:Se,...{rotate:qr,rotateX:qr,rotateY:qr,rotateZ:qr,scale:jl,scaleX:jl,scaleY:jl,scaleZ:jl,skew:qr,skewX:qr,skewY:qr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:Pi,originX:O0,originY:O0,originZ:Se},zIndex:sy,fillOpacity:Pi,strokeOpacity:Pi,numOctaves:sy},ij={..._u,color:_t,backgroundColor:_t,outlineColor:_t,fill:_t,stroke:_t,borderColor:_t,borderTopColor:_t,borderRightColor:_t,borderBottomColor:_t,borderLeftColor:_t,filter:Bu,WebkitFilter:Bu},iy=e=>ij[e];function ay(e,t){let n=iy(e);return n!==Bu&&(n=Gr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const aj=new Set(["auto","none","0"]);function lj(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!aj.has(s)&&Di(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=ay(n,o)}class cj extends Ru{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let f=t[u];if(typeof f=="string"&&(f=f.trim(),uu(f))){const h=ey(f,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ty.has(r)||t.length!==2)return;const[o,s]=t,a=oy(o),l=oy(s),c=k0(o),d=k0(s);if(c!==d&&Kr[r]){this.needsMeasurement=!0;return}if(a!==l)if(U0(a)&&U0(l))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else Kr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||nj(t[o]))&&r.push(o);r.length&&lj(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Kr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Kr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function dj(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const ly=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function cy(e){return i0(e)&&"offsetHeight"in e}const dy=30,uj=e=>!isNaN(parseFloat(e)),Ri={current:void 0};class fj{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=on.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=on.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=uj(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&au(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new iu);const r=this.events[t].add(n);return t==="change"?()=>{r(),wt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Ri.current&&Ri.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=on.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>dy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,dy);return l0(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vo(e,t){return new fj(e,t)}const{schedule:Fu}=S0(queueMicrotask,!1),qn={x:!1,y:!1};function uy(){return qn.x||qn.y}function pj(e){return e==="x"||e==="y"?qn[e]?null:(qn[e]=!0,()=>{qn[e]=!1}):qn.x||qn.y?null:(qn.x=qn.y=!0,()=>{qn.x=qn.y=!1})}function fy(e,t){const n=dj(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function py(e){return!(e.pointerType==="touch"||uy())}function hj(e,t,n={}){const[r,o,s]=fy(e,n),a=l=>{if(!py(l))return;const{target:c}=l,d=t(c,l);if(typeof d!="function"||!c)return;const u=f=>{py(f)&&(d(f),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(l=>{l.addEventListener("pointerenter",a,o)}),s}const hy=(e,t)=>t?e===t?!0:hy(e,t.parentElement):!1,Wu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,mj=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function my(e){return mj.has(e.tagName)||e.isContentEditable===!0}const Rl=new WeakSet;function gy(e){return t=>{t.key==="Enter"&&e(t)}}function zu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const gj=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=gy(()=>{if(Rl.has(n))return;zu(n,"down");const o=gy(()=>{zu(n,"up")}),s=()=>zu(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function yy(e){return Wu(e)&&!uy()}function yj(e,t,n={}){const[r,o,s]=fy(e,n),a=l=>{const c=l.currentTarget;if(!yy(l))return;Rl.add(c);const d=t(c,l),u=(m,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Rl.has(c)&&Rl.delete(c),yy(m)&&typeof d=="function"&&d(m,{success:g})},f=m=>{u(m,c===window||c===document||n.useGlobalTarget||hy(c,m.target))},h=m=>{u(m,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",h,o)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,o),cy(l)&&(l.addEventListener("focus",d=>gj(d,o)),!my(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),s}function by(e){return i0(e)&&"ownerSVGElement"in e}function bj(e){return by(e)&&e.tagName==="svg"}function vj(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],s=e[2+n],a=e[3+n],l=F0(o,s,a);return t?l(r):l}const Zt=e=>!!(e&&e.getVelocity),xj=[...ry,_t,Gr],wj=e=>xj.find(ny(e)),Nl=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function vy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Sj(...e){return t=>{let n=!1;const r=e.map(o=>{const s=vy(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():vy(e[o],null)}}}}function Cj(...e){return I.useCallback(Sj(...e),e)}class Tj extends I.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=cy(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=o-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function kj({children:e,isPresent:t,anchorX:n,root:r}){const o=x.useId(),s=x.useRef(null),a=x.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=x.useContext(Nl),c=e.props?.ref??e?.ref,d=Cj(s,c);return x.useInsertionEffect(()=>{const{width:u,height:f,top:h,left:m,right:g}=a.current;if(t||!s.current||!u||!f)return;const y=n==="left"?`left: ${m}`:`right: ${g}`;s.current.dataset.motionPopId=o;const b=document.createElement("style");l&&(b.nonce=l);const v=r??document.head;return v.appendChild(b),b.sheet&&b.sheet.insertRule(`
237
+ `)),r0=!0)}}return{tabsMeta:Pe,tabMeta:Qe}},Ee=jn(()=>{const{tabsMeta:be,tabMeta:Pe}=_e();let Qe=0,rt;P?(rt="top",Pe&&be&&(Qe=Pe.top-be.top+be.scrollTop)):(rt=s?"right":"left",Pe&&be&&(Qe=(s?-1:1)*(Pe[rt]-be[rt]+be.scrollLeft)));const jt={[rt]:Qe,[H]:Pe?Pe[H]:0};if(typeof G[rt]!="number"||typeof G[H]!="number")K(jt);else{const Ut=Math.abs(G[rt]-jt[rt]),zn=Math.abs(G[H]-jt[H]);(Ut>=1||zn>=1)&&K(jt)}}),xe=(be,{animation:Pe=!0}={})=>{Pe?cM($,ke.current,be,{duration:o.transitions.duration.standard}):ke.current[$]=be},re=be=>{let Pe=ke.current[$];P?Pe+=be:Pe+=be*(s?-1:1),xe(Pe)},ie=()=>{const be=ke.current[V];let Pe=0;const Qe=Array.from(Ce.current.children);for(let rt=0;rt<Qe.length;rt+=1){const jt=Qe[rt];if(Pe+jt[V]>be){rt===0&&(Pe=be);break}Pe+=jt[V]}return Pe},Te=()=>{re(-1*ie())},he=()=>{re(ie())},[pe,{onChange:Ie,...Fe}]=qe("scrollbar",{className:ge(D.scrollableX,D.hideScrollbar),elementType:wM,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:B}),He=I.useCallback(be=>{Ie?.(be),ne({overflow:null,scrollbarWidth:be})},[Ie]),[Oe,Tt]=qe("scrollButtons",{className:ge(D.scrollButtons,O.className),elementType:Qg,externalForwardedProps:ve,ownerState:B,additionalProps:{orientation:b,slots:{StartScrollButtonIcon:C.startScrollButtonIcon||C.StartScrollButtonIcon,EndScrollButtonIcon:C.endScrollButtonIcon||C.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:F,endScrollButtonIcon:U}}}),st=()=>{const be={};be.scrollbarSizeListener=N?p.jsx(pe,{...Fe,onChange:He}):null;const Qe=N&&(k==="auto"&&(ae||z)||k===!0);return be.scrollButtonStart=Qe?p.jsx(Oe,{direction:s?"right":"left",onClick:Te,disabled:!ae,...Tt}):null,be.scrollButtonEnd=Qe?p.jsx(Oe,{direction:s?"left":"right",onClick:he,disabled:!z,...Tt}):null,be},nt=jn(be=>{const{tabsMeta:Pe,tabMeta:Qe}=_e();if(!(!Qe||!Pe)){if(Qe[R]<Pe[R]){const rt=Pe[$]+(Qe[R]-Pe[R]);xe(rt,{animation:be})}else if(Qe[W]>Pe[W]){const rt=Pe[$]+(Qe[W]-Pe[W]);xe(rt,{animation:be})}}}),dn=jn(()=>{N&&k!==!1&&ue(!_)});I.useEffect(()=>{const be=Qs(()=>{ke.current&&Ee()});let Pe;const Qe=Ut=>{Ut.forEach(zn=>{zn.removedNodes.forEach(un=>{Pe?.unobserve(un)}),zn.addedNodes.forEach(un=>{Pe?.observe(un)})}),be(),dn()},rt=Hn(ke.current);rt.addEventListener("resize",be);let jt;return typeof ResizeObserver<"u"&&(Pe=new ResizeObserver(be),Array.from(Ce.current.children).forEach(Ut=>{Pe.observe(Ut)})),typeof MutationObserver<"u"&&(jt=new MutationObserver(Qe),jt.observe(Ce.current,{childList:!0})),()=>{be.clear(),rt.removeEventListener("resize",be),jt?.disconnect(),Pe?.disconnect()}},[Ee,dn]),I.useEffect(()=>{const be=Array.from(Ce.current.children),Pe=be.length;if(typeof IntersectionObserver<"u"&&Pe>0&&N&&k!==!1){const Qe=be[0],rt=be[Pe-1],jt={root:ke.current,threshold:.99},Ut=vn=>{le(!vn[0].isIntersecting)},zn=new IntersectionObserver(Ut,jt);zn.observe(Qe);const un=vn=>{ee(!vn[0].isIntersecting)},$r=new IntersectionObserver(un,jt);return $r.observe(rt),()=>{zn.disconnect(),$r.disconnect()}}},[N,k,_,u?.length]),I.useEffect(()=>{X(!0)},[]),I.useEffect(()=>{Ee()}),I.useEffect(()=>{nt(n0!==G)},[nt,G]),I.useImperativeHandle(c,()=>({updateIndicator:Ee,updateScrollButtons:dn}),[Ee,dn]);const[Jn,Wn]=qe("indicator",{className:ge(D.indicator,T.className),elementType:xM,externalForwardedProps:ve,ownerState:B,additionalProps:{style:G}}),me=p.jsx(Jn,{...Wn});let fe=0;const De=I.Children.map(u,be=>{if(!I.isValidElement(be))return null;process.env.NODE_ENV!=="production"&&Cr.isFragment(be)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
238
+ `));const Pe=be.props.value===void 0?fe:be.props.value;we.set(Pe,fe);const Qe=Pe===j;return fe+=1,I.cloneElement(be,{fullWidth:A==="fullWidth",indicator:Qe&&!q&&me,selected:Qe,selectionFollowsFocus:S,onChange:y,textColor:M,value:Pe,...fe===1&&j===!1&&!be.props.tabIndex?{tabIndex:0}:{}})}),Me=be=>{if(be.altKey||be.shiftKey||be.ctrlKey||be.metaKey)return;const Pe=Ce.current,Qe=es(pn(Pe));if(Qe?.getAttribute("role")!=="tab")return;let jt=b==="horizontal"?"ArrowLeft":"ArrowUp",Ut=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&s&&(jt="ArrowRight",Ut="ArrowLeft"),be.key){case jt:be.preventDefault(),kl(Pe,Qe,t0);break;case Ut:be.preventDefault(),kl(Pe,Qe,e0);break;case"Home":be.preventDefault(),kl(Pe,null,e0);break;case"End":be.preventDefault(),kl(Pe,null,t0);break}},Je=st(),[Nt,Ke]=qe("root",{ref:n,className:ge(D.root,f),elementType:yM,externalForwardedProps:{...ve,...E,component:h},ownerState:B}),[to,Sr]=qe("scroller",{ref:ke,className:D.scroller,elementType:bM,externalForwardedProps:ve,ownerState:B,additionalProps:{style:{overflow:Q.overflow,[P?`margin${s?"Left":"Right"}`:"marginBottom"]:L?void 0:-Q.scrollbarWidth}}}),[We,Ht]=qe("list",{ref:Ce,className:ge(D.list,D.flexContainer),elementType:vM,externalForwardedProps:ve,ownerState:B,getSlotProps:be=>({...be,onKeyDown:Pe=>{Me(Pe),be.onKeyDown?.(Pe)}})});return p.jsxs(Nt,{...Ke,children:[Je.scrollButtonStart,Je.scrollbarSizeListener,p.jsxs(to,{...Sr,children:[p.jsx(We,{"aria-label":a,"aria-labelledby":l,"aria-orientation":b==="vertical"?"vertical":null,role:"tablist",...Ht,children:De}),q&&me]}),Je.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(o0.propTypes={action:hn,allowScrollButtonsMobile:i.bool,"aria-label":i.string,"aria-labelledby":i.string,centered:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,indicatorColor:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),onChange:i.func,orientation:i.oneOf(["horizontal","vertical"]),ScrollButtonComponent:i.elementType,scrollButtons:i.oneOf(["auto",!1,!0]),selectionFollowsFocus:i.bool,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),indicator:i.oneOfType([i.func,i.object]),list:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),scrollbar:i.oneOfType([i.func,i.object]),scrollButtons:i.oneOfType([i.func,i.object]),scroller:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({endScrollButtonIcon:i.elementType,EndScrollButtonIcon:i.elementType,indicator:i.elementType,list:i.elementType,root:i.elementType,scrollbar:i.elementType,scrollButtons:i.elementType,scroller:i.elementType,startScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TabIndicatorProps:i.object,TabScrollButtonProps:i.object,textColor:i.oneOf(["inherit","primary","secondary"]),value:i.any,variant:i.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:i.bool});function SM(e){return Ae("MuiTextField",e)}Re("MuiTextField",["root"]);const CM={standard:xl,filled:vl,outlined:Sl},TM=e=>{const{classes:t}=e;return Ne({root:["root"]},SM,t)},kM=te(hg,{name:"MuiTextField",slot:"Root"})({}),Jd=I.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:a,className:l,color:c="primary",defaultValue:d,disabled:u=!1,error:f=!1,FormHelperTextProps:h,fullWidth:m=!1,helperText:g,id:y,InputLabelProps:b,inputProps:v,InputProps:k,inputRef:S,label:C,maxRows:w,minRows:T,multiline:O=!1,name:M,onBlur:j,onChange:A,onFocus:L,placeholder:E,required:N=!1,rows:P,select:$=!1,SelectProps:R,slots:W={},slotProps:V={},type:H,value:B,variant:D="outlined",...F}=r,U={...r,autoFocus:s,color:c,disabled:u,error:f,fullWidth:m,multiline:O,required:N,select:$,variant:D},q=TM(U);process.env.NODE_ENV!=="production"&&$&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const X=so(y),G=g&&X?`${X}-helper-text`:void 0,K=C&&X?`${X}-label`:void 0,ae=CM[D],le={slots:W,slotProps:{input:k,inputLabel:b,htmlInput:v,formHelperText:h,select:R,...V}},z={},ee=le.slotProps.inputLabel;D==="outlined"&&(ee&&typeof ee.shrink<"u"&&(z.notched=ee.shrink),z.label=C),$&&((!R||!R.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const[_,ue]=qe("root",{elementType:kM,shouldForwardComponentProp:!0,externalForwardedProps:{...le,...F},ownerState:U,className:ge(q.root,l),ref:n,additionalProps:{disabled:u,error:f,fullWidth:m,required:N,color:c,variant:D}}),[Q,ne]=qe("input",{elementType:ae,externalForwardedProps:le,additionalProps:z,ownerState:U}),[we,ke]=qe("inputLabel",{elementType:wg,externalForwardedProps:le,ownerState:U}),[Ce,ve]=qe("htmlInput",{elementType:"input",externalForwardedProps:le,ownerState:U}),[_e,Ee]=qe("formHelperText",{elementType:yg,externalForwardedProps:le,ownerState:U}),[xe,re]=qe("select",{elementType:zd,externalForwardedProps:le,ownerState:U}),ie=p.jsx(Q,{"aria-describedby":G,autoComplete:o,autoFocus:s,defaultValue:d,fullWidth:m,multiline:O,name:M,rows:P,maxRows:w,minRows:T,type:H,value:B,id:X,inputRef:S,onBlur:j,onChange:A,onFocus:L,placeholder:E,inputProps:ve,slots:{input:W.htmlInput?Ce:void 0},...ne});return p.jsxs(_,{...ue,children:[C!=null&&C!==""&&p.jsx(we,{htmlFor:X,id:K,...ke,children:C}),$?p.jsx(xe,{"aria-describedby":G,id:X,labelId:K,value:B,input:ie,...re,children:a}):ie,g&&p.jsx(_e,{id:G,...Ee,children:g})]})});process.env.NODE_ENV!=="production"&&(Jd.propTypes={autoComplete:i.string,autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),defaultValue:i.any,disabled:i.bool,error:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:hn,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,placeholder:i.string,required:i.bool,rows:i.oneOfType([i.number,i.string]),select:i.bool,SelectProps:i.object,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({formHelperText:i.oneOfType([i.func,i.object]),htmlInput:i.oneOfType([i.func,i.object]),input:i.oneOfType([i.func,i.object]),inputLabel:i.oneOfType([i.func,i.object]),select:i.oneOfType([i.func,i.object])}),slots:i.shape({formHelperText:i.elementType,htmlInput:i.elementType,input:i.elementType,inputLabel:i.elementType,root:i.elementType,select:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any,variant:i.oneOf(["filled","outlined","standard"])});const El={THEME:"THEME",LOGOUT:"LOGOUT"},Xe={Search:"data:image/svg+xml,%3csvg%20width='16'%20height='15'%20viewBox='0%200%2016%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.6503%2013.8006C11.3232%2013.8006%2014.3006%2010.8232%2014.3006%207.15029C14.3006%203.47744%2011.3232%200.5%207.6503%200.5C3.97744%200.5%201%203.47744%201%207.15029C1%2010.8232%203.97744%2013.8006%207.6503%2013.8006Z'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.9997%2014.5006L13.5996%2013.1006'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Refresh:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.0733%203.38664C6.6533%203.21331%207.2933%203.09998%207.99997%203.09998C11.1933%203.09998%2013.78%205.68664%2013.78%208.87998C13.78%2012.0733%2011.1933%2014.66%207.99997%2014.66C4.80664%2014.66%202.21997%2012.0733%202.21997%208.87998C2.21997%207.69331%202.57997%206.58664%203.1933%205.66664'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54671L7.17337%201.33337'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54663L7.49337%205.18663'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Close:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%3e%3ccircle%20cx='12'%20cy='12'%20r='11'%20fill='none'%20stroke='%23E85353'%20stroke-width='2'/%3e%3cpath%20d='M8.5%208.5l7%207M15.5%208.5l-7%207'%20stroke='%23E85353'%20stroke-width='2'/%3e%3c/svg%3e",Unsort:"data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.646447%203.24676C0.451184%203.44202%200.451184%203.7586%200.646447%203.95387C0.841709%204.14913%201.15829%204.14913%201.35355%203.95387L0.646447%203.24676ZM3.40012%201.2002H3.90012C3.90012%200.997964%203.7783%200.815646%203.59146%200.738256C3.40462%200.660865%203.18956%200.703643%203.04656%200.846642L3.40012%201.2002ZM2.90012%2010.8007C2.90012%2011.0768%203.12398%2011.3007%203.40012%2011.3007C3.67626%2011.3007%203.90012%2011.0768%203.90012%2010.8007H2.90012ZM9.35377%208.7541C9.54903%208.55884%209.54903%208.24226%209.35377%208.04699C9.15851%207.85173%208.84193%207.85173%208.64666%208.04699L9.35377%208.7541ZM6.6001%2010.8007H6.1001C6.1001%2011.0029%206.22192%2011.1852%206.40876%2011.2626C6.5956%2011.34%206.81065%2011.2972%206.95365%2011.1542L6.6001%2010.8007ZM7.1001%201.2002C7.1001%200.924053%206.87624%200.700195%206.6001%200.700195C6.32396%200.700195%206.1001%200.924053%206.1001%201.2002H7.1001ZM1.35355%203.95387L3.75367%201.55375L3.04656%200.846642L0.646447%203.24676L1.35355%203.95387ZM2.90012%201.2002V10.8007H3.90012V1.2002H2.90012ZM8.64666%208.04699L6.24655%2010.4471L6.95365%2011.1542L9.35377%208.7541L8.64666%208.04699ZM7.1001%2010.8007V1.2002H6.1001V10.8007H7.1001Z'%20fill='%23909090'/%3e%3c/svg%3e",AscSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%204.59888L4.5%201.09888L1%204.59888'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%2010.9013V1.19702'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",DescSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%207.40112L4.5%2010.9011L8%207.40112'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%201.09869L4.5%2010.803'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Menu:"data:image/svg+xml,%3csvg%20width='4'%20height='10'%20viewBox='0%200%204%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%207.5C1.45%207.5%201%207.95%201%208.5C1%209.05%201.45%209.5%202%209.5C2.55%209.5%203%209.05%203%208.5C3%207.95%202.55%207.5%202%207.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%204C1.45%204%201%204.45%201%205C1%205.55%201.45%206%202%206C2.55%206%203%205.55%203%205C3%204.45%202.55%204%202%204Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%200.5C1.45%200.5%201%200.95%201%201.5C1%202.05%201.45%202.5%202%202.5C2.55%202.5%203%202.05%203%201.5C3%200.95%202.55%200.5%202%200.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3c/svg%3e",Manage:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.75065%202.33398V11.6673M2.33398%208.60482H8.75065M2.33398%205.39648H8.75065M3.50065%2011.6673H10.5007C11.145%2011.6673%2011.6673%2011.145%2011.6673%2010.5007V3.50065C11.6673%202.85632%2011.145%202.33398%2010.5007%202.33398H3.50065C2.85632%202.33398%202.33398%202.85632%202.33398%203.50065V10.5007C2.33398%2011.145%202.85632%2011.6673%203.50065%2011.6673Z'%20stroke='%23A8A8A8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectUp:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%200.595703L5.50126%204.09444C5.08807%204.50763%204.41193%204.50763%203.99874%204.09444L0.5%200.595703'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectDown:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%204.4043L5.50126%200.90556C5.08807%200.492365%204.41193%200.492365%203.99874%200.90556L0.5%204.4043'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Upload:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25016%209.9165V6.4165L4.0835%207.58317'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25%206.4165L6.41667%207.58317'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317V8.74984C12.8332%2011.6665%2011.6665%2012.8332%208.74984%2012.8332H5.24984C2.33317%2012.8332%201.1665%2011.6665%201.1665%208.74984V5.24984C1.1665%202.33317%202.33317%201.1665%205.24984%201.1665H8.1665'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317H10.4998C8.74984%205.83317%208.1665%205.24984%208.1665%203.49984V1.1665L12.8332%205.83317Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Download:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25%206.41699V9.91699L6.41667%208.75033'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25114%209.91667L4.08447%208.75'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366V8.75033C12.8322%2011.667%2011.6655%2012.8337%208.74886%2012.8337H5.24886C2.33219%2012.8337%201.16553%2011.667%201.16553%208.75033V5.25033C1.16553%202.33366%202.33219%201.16699%205.24886%201.16699H8.16553'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366H10.4989C8.74886%205.83366%208.16553%205.25033%208.16553%203.50033V1.16699L12.8322%205.83366Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",More:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.4531%202.16699H7.64478C8.07645%202.16699%208.43227%202.52283%208.43227%202.9545V3.81782C8.43227%204.13282%208.23395%204.52366%208.04145%204.722L6.3498%206.21533C6.11647%206.41366%205.95894%206.80449%205.95894%207.11949V8.81117C5.95894%209.0445%205.80145%209.3595%205.60312%209.482L5.05478%209.83782C4.54145%2010.1528%203.8356%209.79699%203.8356%209.16699V7.08449C3.8356%206.81032%203.67811%206.4545%203.52061%206.25616L2.02728%204.68116C1.82895%204.48282%201.67146%204.13282%201.67146%203.89365V2.98949C1.66562%202.52283%202.02144%202.16699%202.4531%202.16699Z'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.66211%207.99998V9.74998C1.66211%2012.6666%202.82878%2013.8333%205.74544%2013.8333H9.24544C12.1621%2013.8333%2013.3288%2012.6666%2013.3288%209.74998V6.24998C13.3288%204.42998%2012.8738%203.28664%2011.8179%202.69164C11.5204%202.52248%2010.9254%202.39414%2010.3829%202.30664'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.08789%208.5835H11.0046'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.91211%2010.9165H10.9954'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowRight:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.45508%209.96028L7.71508%206.70028C8.10008%206.31528%208.10008%205.68528%207.71508%205.30028L4.45508%202.04028'%20stroke='%23A8A8A8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Cross:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25244L2.75%2012.7366'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",CrossLight:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25244L2.75%2012.7366'%20stroke='%23666D80'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23666D80'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",PaginationLeft:"data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.5%209.96346L1.82547%206.28893C1.39151%205.85497%201.39151%205.14487%201.82547%204.71091L5.5%201.03638'%20stroke='%23909090'%20stroke-width='1.2'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",PaginationRight:"data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.5%209.96346L5.17453%206.28893C5.60849%205.85498%205.60849%205.14487%205.17453%204.71091L1.5%201.03638'%20stroke='%23909090'%20stroke-width='1.2'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Import:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.6649%201.33252L9.19824%206.79919'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.66504%204.11377V7.33377H11.885'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.33496%201.33252H6.00163C2.66829%201.33252%201.33496%202.66585%201.33496%205.99919V9.99919C1.33496%2013.3325%202.66829%2014.6659%206.00163%2014.6659H10.0016C13.335%2014.6659%2014.6683%2013.3325%2014.6683%209.99919V8.66585'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Expand:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%206V2H10'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2%2010V14H6'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14%202L9%207'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%209L2%2014'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Merge:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5114%206.05379L10.4511%209.04164L10.4814%209.0719C10.8132%209.40375%2010.9784%209.84252%2010.9769%2010.2806C10.9754%2010.7187%2010.8077%2011.1577%2010.4735%2011.4919L10.3922%2011.5732C10.2241%2011.7413%2010.0025%2011.8263%209.7824%2011.8271C9.56227%2011.8279%209.34086%2011.7443%209.17346%2011.5769L7.78628%2010.1897L4.12799%2013.1773L4.12799%2013.1773L4.06473%2013.0999L12.5114%206.05379ZM12.5114%206.05379C12.8545%206.18859%2013.1918%206.29598%2013.5225%206.3222C13.9811%206.3591%2014.409%206.24328%2014.79%205.86233C14.9483%205.704%2015.0749%205.43718%2015.0758%205.15458C15.0766%204.92373%2014.9983%204.68086%2014.7942%204.47678L11.5247%201.20722C11.3206%201.00314%2011.0777%200.924811%2010.8469%200.925604L10.8472%201.0256C10.5923%201.02601%2010.3506%201.14147%2010.2098%201.2822C9.85167%201.64036%209.74361%202.03912%209.77846%202.4714C9.80525%202.80959%209.92193%203.15912%2010.0693%203.52532M12.5114%206.05379L10.8471%200.925604C10.5647%200.926052%2010.2979%201.05275%2010.1391%201.21149C9.75774%201.59287%209.64191%202.0216%209.67877%202.4793M10.0693%203.52532L10.0126%203.44299L9.94694%203.48823M10.0693%203.52532L9.97655%203.56266C9.96655%203.53782%209.95668%203.51301%209.94694%203.48823M10.0693%203.52532L6.94655%205.67851M9.94694%203.48823C9.81244%203.14589%209.70493%202.80948%209.67877%202.4793M9.94694%203.48823L6.95836%205.5489M9.67877%202.4793C9.67878%202.47935%209.67878%202.47939%209.67879%202.47944L9.77841%202.47141L9.67877%202.4793ZM6.95836%205.5489L7.01726%205.6078L6.94655%205.67851M6.95836%205.5489L6.9281%205.51864C6.59577%205.18631%206.15746%205.02161%205.71939%205.02312C5.28131%205.02462%204.84181%205.19279%204.50813%205.52647L4.42677%205.60783C4.25803%205.77657%204.17412%205.99823%204.17337%206.21807C4.17261%206.43897%204.25556%206.65997%204.42307%206.82748L5.81025%208.21466M6.95836%205.5489L6.88979%205.59618L6.94655%205.67851M6.94655%205.67851L6.85739%205.58935C6.54488%205.27684%206.13258%205.1217%205.71973%205.12311C5.30688%205.12453%204.89304%205.28298%204.57884%205.59718L4.49749%205.67854C4.34833%205.82769%204.27404%206.02364%204.27337%206.21842C4.2727%206.41412%204.34611%206.6091%204.49378%206.75677L5.9449%208.20789M5.81025%208.21466L5.86745%208.14463L5.9449%208.20789M5.81025%208.21466L2.82266%2011.873L2.82261%2011.873C2.66975%2012.0605%202.58321%2012.2918%202.5819%2012.5216L2.5819%2012.5219L2.58189%2012.5237L2.68189%2012.5241L5.9449%208.20789M5.81025%208.21466L5.87419%208.2786L5.9449%208.20789M9.67929%208.9237L9.70517%208.88617L12.0837%205.43671C12.173%205.2898%2012.359%205.22439%2012.5234%205.29377M9.67929%208.9237L10.8454%201.63016C10.9045%201.62996%2010.9672%201.64976%2011.0237%201.70625L14.2933%204.97582C14.3498%205.03232%2014.3696%205.09506%2014.3694%205.15415C14.3691%205.2439%2014.3302%205.32407%2014.2915%205.3628C14.0788%205.57541%2013.845%205.63877%2013.5816%205.61797L13.5737%205.71766L13.5817%205.61798C13.2757%205.59352%2012.9203%205.46074%2012.5234%205.29377M9.67929%208.9237L9.68069%208.92915M9.67929%208.9237L9.68069%208.92915M12.5234%205.29377C12.5234%205.29378%2012.5234%205.29379%2012.5234%205.2938L12.4845%205.38592M12.5234%205.29377C12.5233%205.29376%2012.5233%205.29375%2012.5233%205.29374L12.4845%205.38592M12.4845%205.38592C12.3663%205.33599%2012.2315%205.38352%2012.1678%205.49091L12.4845%205.38592ZM9.68069%208.92915C9.61177%209.06459%209.63845%209.22978%209.74409%209.33659L9.74448%209.33699L9.98131%209.57381C10.175%209.76752%2010.2717%2010.0244%2010.2708%2010.2826V10.2828C10.2704%2010.5403%2010.1719%2010.7983%209.97594%2010.9943L9.89458%2011.0757C9.86461%2011.1056%209.82417%2011.1213%209.78426%2011.1215C9.743%2011.1213%209.70347%2011.1059%209.67442%2011.0769L4.92402%206.32649C4.89507%206.29754%204.8797%206.25724%204.87984%206.21654L4.77984%206.2162L4.87984%206.21654C4.87998%206.17511%204.89552%206.13514%204.92526%206.1054L5.00662%206.02404C5.20212%205.82854%205.46009%205.73002%205.71831%205.72914L5.71848%205.72914C5.97604%205.72783%206.23289%205.82446%206.4271%206.01868L6.66393%206.2555C6.79239%206.38396%206.99539%206.3914%207.13378%206.28051L10.5799%203.90425L10.5799%203.90425L10.5806%203.90375C10.719%203.80648%2010.7688%203.62722%2010.7059%203.47652L10.7058%203.47623C10.5388%203.07917%2010.4055%202.72425%2010.3811%202.4183L10.3811%202.41823C10.3599%202.15556%2010.4236%201.92124%2010.6367%201.70807C10.6755%201.66934%2010.7556%201.63047%2010.8454%201.63016L9.68069%208.92915ZM6.30997%208.71246L7.28616%209.68865L3.68235%2012.6321C3.61745%2012.685%203.54349%2012.7114%203.47784%2012.7116L3.47784%2012.7115L3.47462%2012.7117L3.46448%2012.712C3.41893%2012.7093%203.37647%2012.6919%203.34137%2012.6568C3.3036%2012.619%203.28592%2012.5717%203.28609%2012.5199C3.28631%2012.4557%203.31278%2012.3822%203.36653%2012.3163L6.30997%208.71246Z'%20fill='%23007AFF'%20stroke='%23007AFF'%20stroke-width='0.2'/%3e%3c/svg%3e",FilterLight:"data:image/svg+xml,%3csvg%20width='13'%20height='14'%20viewBox='0%200%2013%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.26379%2011.7614L6.50005%2012.2543C5.79047%2012.693%204.80463%2012.2001%204.80463%2011.3226V8.4247C4.80463%208.04011%204.58797%207.5472%204.36589%207.27637L2.28587%205.08803C2.00962%204.81178%201.79297%204.32428%201.79297%203.99387V2.7372C1.79297%202.08178%202.2859%201.58887%202.88715%201.58887H10.113C10.7142%201.58887%2011.2071%202.08178%2011.2071%202.68303V3.88553C11.2071%204.32428%2010.9309%204.87137%2010.66%205.1422'%20stroke='%23282A2A'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.25136%206.94027L7.33383%208.85776C7.258%208.93359%207.18759%209.07443%207.17134%209.17734L7.06842%209.9086C7.03051%2010.174%207.21468%2010.3582%207.48009%2010.3203L8.21133%2010.2173C8.31425%2010.2011%208.46051%2010.1307%208.53093%2010.0549L10.4484%208.13735C10.7788%207.80693%2010.9359%207.42235%2010.4484%206.93485C9.96633%206.45277%209.58177%206.60986%209.25136%206.94027Z'%20stroke='%23282A2A'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.98047%207.21094C9.14297%207.79594%209.59795%208.25092%2010.183%208.41342'%20stroke='%23282A2A'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Filter:"data:image/svg+xml,%3csvg%20width='13'%20height='14'%20viewBox='0%200%2013%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.26379%2011.7614L6.50005%2012.2543C5.79047%2012.693%204.80463%2012.2001%204.80463%2011.3226V8.4247C4.80463%208.04011%204.58797%207.5472%204.36589%207.27637L2.28587%205.08803C2.00962%204.81178%201.79297%204.32428%201.79297%203.99387V2.7372C1.79297%202.08178%202.2859%201.58887%202.88715%201.58887H10.113C10.7142%201.58887%2011.2071%202.08178%2011.2071%202.68303V3.88553C11.2071%204.32428%2010.9309%204.87137%2010.66%205.1422'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.25136%206.94027L7.33383%208.85776C7.258%208.93359%207.18759%209.07443%207.17134%209.17734L7.06842%209.9086C7.03051%2010.174%207.21468%2010.3582%207.48009%2010.3203L8.21133%2010.2173C8.31425%2010.2011%208.46051%2010.1307%208.53093%2010.0549L10.4484%208.13735C10.7788%207.80693%2010.9359%207.42235%2010.4484%206.93485C9.96633%206.45277%209.58177%206.60986%209.25136%206.94027Z'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.98047%207.21094C9.14297%207.79594%209.59795%208.25092%2010.183%208.41342'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",FilterClose:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='12'%20height='12'%20rx='3'%20fill='%23E85353'/%3e%3cpath%20d='M3.75%208.25L8.25%203.75'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.25%208.25L3.75%203.75'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Check:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.00001%2014.6666H10C13.3333%2014.6666%2014.6667%2013.3333%2014.6667%209.99992V5.99992C14.6667%202.66659%2013.3333%201.33325%2010%201.33325H6.00001C2.66668%201.33325%201.33334%202.66659%201.33334%205.99992V9.99992C1.33334%2013.3333%202.66668%2014.6666%206.00001%2014.6666Z'%20fill='%23E94F1C'%20stroke='%23E94F1C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.16666%207.99995L7.05332%209.88661L10.8333%206.11328'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Uncheck:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.00001%2014.6666H10C13.3333%2014.6666%2014.6667%2013.3333%2014.6667%209.99992V5.99992C14.6667%202.66659%2013.3333%201.33325%2010%201.33325H6.00001C2.66668%201.33325%201.33334%202.66659%201.33334%205.99992V9.99992C1.33334%2013.3333%202.66668%2014.6666%206.00001%2014.6666Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Calendar:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.66602%201.16602V2.91602'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.33398%201.16602V2.91602'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.04102%205.30176H11.9577'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%204.95768V9.91602C12.25%2011.666%2011.375%2012.8327%209.33333%2012.8327H4.66667C2.625%2012.8327%201.75%2011.666%201.75%209.91602V4.95768C1.75%203.20768%202.625%202.04102%204.66667%202.04102H9.33333C11.375%202.04102%2012.25%203.20768%2012.25%204.95768Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.99745%207.99186H7.00269'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83729%207.99186H4.84253'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83729%209.74186H4.84253'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Collapse:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%203V7H13'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%2013V9H3'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14%202L9%207'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%209L2%2014'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Group:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.12852%201.82495L11.816%203.46245C12.8785%203.9312%2012.8785%204.7062%2011.816%205.17495L8.12852%206.81245C7.70977%206.99995%207.02227%206.99995%206.60352%206.81245L2.91602%205.17495C1.85352%204.7062%201.85352%203.9312%202.91602%203.46245L6.60352%201.82495C7.02227%201.63745%207.70977%201.63745%208.12852%201.82495Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.875%206.875C1.875%207.4%202.26875%208.00625%202.75%208.21875L6.99375%2010.1062C7.31875%2010.25%207.6875%2010.25%208.00625%2010.1062L12.25%208.21875C12.7313%208.00625%2013.125%207.4%2013.125%206.875'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.875%2010C1.875%2010.5812%202.21875%2011.1062%202.75%2011.3437L6.99375%2013.2312C7.31875%2013.375%207.6875%2013.375%208.00625%2013.2312L12.25%2011.3437C12.7813%2011.1062%2013.125%2010.5812%2013.125%2010'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",CrossWhite:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25293L2.75%2012.7371'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Save:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.61086%204.11505C3.64436%204.11505%202.86086%203.33155%202.86086%202.36505V0.290039H2.5407C1.13751%200.290039%200%201.42755%200%202.83074V9.24934C0%2010.3917%200.753899%2011.3579%201.79129%2011.6777V8.57536C1.79129%207.05657%203.02251%205.82536%204.5413%205.82536H6.9599C8.47869%205.82536%209.7099%207.05658%209.7099%208.57536V11.6773C10.7467%2011.3572%2011.5%2010.3912%2011.5%209.24934V4.56517C11.5%204.0332%2011.2887%203.52301%2010.9125%203.14685L8.64319%200.877528C8.64211%200.876443%208.64102%200.875359%208.63993%200.874277V2.36505C8.63993%203.33155%207.85643%204.11505%206.88993%204.11505H4.61086ZM7.13993%200.290039H4.36086V2.36505C4.36086%202.50312%204.47279%202.61505%204.61086%202.61505H6.88993C7.028%202.61505%207.13993%202.50312%207.13993%202.36505V0.290039ZM4.5413%207.32536C3.85094%207.32536%203.29129%207.885%203.29129%208.57536V11.7091H8.2099V8.57536C8.2099%207.885%207.65026%207.32536%206.9599%207.32536H4.5413Z'%20fill='%23909090'/%3e%3c/svg%3e",UploadDark:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25065%209.91699V6.41699L4.08398%207.58366'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25%206.41699L6.41667%207.58366'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8327%205.83366V8.75033C12.8327%2011.667%2011.666%2012.8337%208.74935%2012.8337H5.24935C2.33268%2012.8337%201.16602%2011.667%201.16602%208.75033V5.25033C1.16602%202.33366%202.33268%201.16699%205.24935%201.16699H8.16602'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8327%205.83366H10.4993C8.74935%205.83366%208.16602%205.25033%208.16602%203.50033V1.16699L12.8327%205.83366Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowDownLight:"data:image/svg+xml,%3csvg%20width='8'%20height='4'%20viewBox='0%200%208%204'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%200.543945L4.32449%203.21945C4.00852%203.53542%203.49148%203.53542%203.17551%203.21945L0.5%200.543945'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowUpLight:"data:image/svg+xml,%3csvg%20width='8'%20height='4'%20viewBox='0%200%208%204'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%203.45605L4.32449%200.78055C4.00852%200.464578%203.49148%200.464578%203.17551%200.78055L0.5%203.45605'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Drag:"data:image/svg+xml,%3csvg%20width='13'%20height='13'%20viewBox='0%200%2016%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.5%207.5C5.675%207.5%205%208.175%205%209C5%209.825%205.675%2010.5%206.5%2010.5C7.325%2010.5%208%209.825%208%209C8%208.175%207.325%207.5%206.5%207.5Z'%20fill='%23909090'/%3e%3cpath%20d='M6.5%2013.5C5.675%2013.5%205%2014.175%205%2015C5%2015.825%205.675%2016.5%206.5%2016.5C7.325%2016.5%208%2015.825%208%2015C8%2014.175%207.325%2013.5%206.5%2013.5Z'%20fill='%23909090'/%3e%3cpath%20d='M6.5%201.5C5.675%201.5%205%202.175%205%203C5%203.825%205.675%204.5%206.5%204.5C7.325%204.5%208%203.825%208%203C8%202.175%207.325%201.5%206.5%201.5Z'%20fill='%23909090'/%3e%3cpath%20d='M12%207.5C11.175%207.5%2010.5%208.175%2010.5%209C10.5%209.825%2011.175%2010.5%2012%2010.5C12.825%2010.5%2013.5%209.825%2013.5%209C13.5%208.175%2012.825%207.5%2012%207.5Z'%20fill='%23909090'/%3e%3cpath%20d='M12%2013.5C11.175%2013.5%2010.5%2014.175%2010.5%2015C10.5%2015.825%2011.175%2016.5%2012%2016.5C12.825%2016.5%2013.5%2015.825%2013.5%2015C13.5%2014.175%2012.825%2013.5%2012%2013.5Z'%20fill='%23909090'/%3e%3cpath%20d='M12%201.5C11.175%201.5%2010.5%202.175%2010.5%203C10.5%203.825%2011.175%204.5%2012%204.5C12.825%204.5%2013.5%203.825%2013.5%203C13.5%202.175%2012.825%201.5%2012%201.5Z'%20fill='%23909090'/%3e%3c/svg%3e",CloseCircle:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.00065%2014.6663C11.6673%2014.6663%2014.6673%2011.6663%2014.6673%207.99967C14.6673%204.33301%2011.6673%201.33301%208.00065%201.33301C4.33398%201.33301%201.33398%204.33301%201.33398%207.99967C1.33398%2011.6663%204.33398%2014.6663%208.00065%2014.6663Z'%20stroke='%23999999'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.11328%209.88661L9.88661%206.11328'%20stroke='%23999999'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.88661%209.88661L6.11328%206.11328'%20stroke='%23999999'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",AddSquare:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.66602%207H9.33268'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%209.33366V4.66699'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.24935%2012.8337H8.74935C11.666%2012.8337%2012.8327%2011.667%2012.8327%208.75033V5.25033C12.8327%202.33366%2011.666%201.16699%208.74935%201.16699H5.24935C2.33268%201.16699%201.16602%202.33366%201.16602%205.25033V8.75033C1.16602%2011.667%202.33268%2012.8337%205.24935%2012.8337Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",CalendarEdit:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.66699%201.16699V2.91699'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.33301%201.16699V2.91699'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.04199%205.30273H11.9587'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.2058%209.19949L9.14078%2011.2645C9.05912%2011.3462%208.98327%2011.4978%208.96577%2011.6087L8.85494%2012.3962C8.8141%2012.682%209.01244%2012.8803%209.29828%2012.8395L10.0858%2012.7287C10.1966%2012.7112%2010.3541%2012.6353%2010.4299%2012.5537L12.4949%2010.4887C12.8508%2010.1328%2013.0199%209.71867%2012.4949%209.19367C11.9758%208.6745%2011.5616%208.84366%2011.2058%209.19949Z'%20stroke='white'%20stroke-width='0.6'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10.9082%209.49707C11.0832%2010.1271%2011.5732%2010.6171%2012.2032%2010.7921'%20stroke='white'%20stroke-width='0.6'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%2012.8337H4.66667C2.625%2012.8337%201.75%2011.667%201.75%209.91699V4.95866C1.75%203.20866%202.625%202.04199%204.66667%202.04199H9.33333C11.375%202.04199%2012.25%203.20866%2012.25%204.95866V7.00033'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.99745%207.99186H7.00269'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83827%207.99186H4.84351'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83827%209.74186H4.84351'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e"},EM={light:Js({mode:"light",palette:{primary:{appBackground:"#FFFFFF",main:"#f5f7fa",notifyBackground:"#F8FAFB",notifyTextColor:"#525252",notifyActiveText:"#282A2A",notifyBorderColor:"#D0D4DA",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#E6EAEC",notifyActiveBorderColor:"#1D1D1D",notifyIconColor:"#666D80"},brandColor:{blue:"#0166FF",lightBlue:"#0582CA",orange:"#E94F1C",lightOrange:"#ff9a78",grey1:"#595959",red:"#E85353",main:"#FF6D33",grey3:"#898A93",paginationBc:"#EDEDED",white:"#FFFFFF",grey:"#2D2D2F"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}},icons:{close:Xe.CrossLight,filter:Xe.FilterLight}}),dark:Js({mode:"dark",palette:{primary:{appBackground:"#101010",main:"#f5f7fa",notifyBackground:"#1D1D1D",notifyTextColor:"#A8A8A8",notifyActiveText:"#FFFFFF",notifyBorderColor:"#313133",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#2C2C2F",notifyActiveBorderColor:"#FFFFFF",notifyIconColor:"#909090"},brandColor:{blue:"#0166FF",lightBlue:"#0582CA",orange:"#E94F1C",lightOrange:"#ff9a78",grey1:"#595959",main:"#FF6D33",red:"#E85353",grey3:"#898A93",paginationBc:"#1D1D1F",white:"#FFFFFF"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}},icons:{close:Xe.Cross,filter:Xe.Filter}})};function Gt({children:e}){const t=JSON.parse(localStorage.getItem("settings"))?.platform?.theme||"light",[n,r]=x.useState(t);return x.useEffect(()=>{const o=s=>{r(s?.detail)};return window.addEventListener(El.THEME,o),()=>{window.removeEventListener(El.THEME,o)}},[]),p.jsx(iT,{theme:EM[n],children:e})}const Qd=x.createContext({});function Yr(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const eu=typeof window<"u",tu=eu?x.useLayoutEffect:x.useEffect,Ol=x.createContext(null);function nu(e,t){e.indexOf(t)===-1&&e.push(t)}function ru(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function OM([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const o=n<0?e.length+n:n,[s]=e.splice(t,1);e.splice(o,0,s)}return e}const pr=(e,t,n)=>n>t?t:n<e?e:n;function ou(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let rs=()=>{},Yn=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(rs=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(ou(t,n))},Yn=(e,t,n)=>{if(!e)throw new Error(ou(t,n))});const Mr={},s0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function i0(e){return typeof e=="object"&&e!==null}const a0=e=>/^0[^.\s]+$/u.test(e);function su(e){let t;return()=>(t===void 0&&(t=e()),t)}const $n=e=>e,MM=(e,t)=>n=>t(e(n)),Ei=(...e)=>e.reduce(MM),Oi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class iu{constructor(){this.subscriptions=[]}add(t){return nu(this.subscriptions,t),()=>ru(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const hr=e=>e*1e3,Ln=e=>e/1e3;function l0(e,t){return t?e*(1e3/t):0}const c0=new Set;function au(e,t,n){e||c0.has(t)||(console.warn(ou(t,n)),c0.add(t))}const d0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,PM=1e-7,jM=12;function IM(e,t,n,r,o){let s,a,l=0;do a=t+(n-t)/2,s=d0(a,r,o)-e,s>0?n=a:t=a;while(Math.abs(s)>PM&&++l<jM);return a}function Mi(e,t,n,r){if(e===t&&n===r)return $n;const o=s=>IM(s,0,1,e,n);return s=>s===0||s===1?s:d0(o(s),t,r)}const u0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,f0=e=>t=>1-e(1-t),p0=Mi(.33,1.53,.69,.99),lu=f0(p0),h0=u0(lu),m0=e=>(e*=2)<1?.5*lu(e):.5*(2-Math.pow(2,-10*(e-1))),cu=e=>1-Math.sin(Math.acos(e)),g0=f0(cu),y0=u0(cu),DM=Mi(.42,0,1,1),AM=Mi(0,0,.58,1),b0=Mi(.42,0,.58,1),RM=e=>Array.isArray(e)&&typeof e[0]!="number",v0=e=>Array.isArray(e)&&typeof e[0]=="number",x0={linear:$n,easeIn:DM,easeInOut:b0,easeOut:AM,circIn:cu,circInOut:y0,circOut:g0,backIn:lu,backInOut:h0,backOut:p0,anticipate:m0},NM=e=>typeof e=="string",w0=e=>{if(v0(e)){Yn(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Mi(t,n,r,o)}else if(NM(e))return Yn(x0[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),x0[e];return e},Ml=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $M(e,t){let n=new Set,r=new Set,o=!1,s=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(u){a.has(u)&&(d.schedule(u),e()),u(l)}const d={schedule:(u,f=!1,h=!1)=>{const g=h&&o?n:r;return f&&a.add(u),g.has(u)||g.add(u),u},cancel:u=>{r.delete(u),a.delete(u)},process:u=>{if(l=u,o){s=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,s&&(s=!1,d.process(u))}};return d}const LM=40;function S0(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Ml.reduce((S,C)=>(S[C]=$M(s),S),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:u,update:f,preRender:h,render:m,postRender:g}=a,y=()=>{const S=Mr.useManualTiming?o.timestamp:performance.now();n=!1,Mr.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(S-o.timestamp,LM),1)),o.timestamp=S,o.isProcessing=!0,l.process(o),c.process(o),d.process(o),u.process(o),f.process(o),h.process(o),m.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},b=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:Ml.reduce((S,C)=>{const w=a[C];return S[C]=(T,O=!1,M=!1)=>(n||b(),w.schedule(T,O,M)),S},{}),cancel:S=>{for(let C=0;C<Ml.length;C++)a[Ml[C]].cancel(S)},state:o,steps:a}}const{schedule:wt,cancel:Pr,state:Xt,steps:du}=S0(typeof requestAnimationFrame<"u"?requestAnimationFrame:$n,!0);let Pl;function BM(){Pl=void 0}const on={now:()=>(Pl===void 0&&on.set(Xt.isProcessing||Mr.useManualTiming?Xt.timestamp:performance.now()),Pl),set:e=>{Pl=e,queueMicrotask(BM)}},C0=e=>t=>typeof t=="string"&&t.startsWith(e),T0=C0("--"),_M=C0("var(--"),uu=e=>_M(e)?FM.test(e.split("/*")[0].trim()):!1,FM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function k0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const os={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Pi={...os,transform:e=>pr(0,1,e)},jl={...os,default:1},ji=e=>Math.round(e*1e5)/1e5,fu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function WM(e){return e==null}const zM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pu=(e,t)=>n=>!!(typeof n=="string"&&zM.test(n)&&n.startsWith(e)||t&&!WM(n)&&Object.prototype.hasOwnProperty.call(n,t)),E0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,a,l]=r.match(fu);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},VM=e=>pr(0,255,e),hu={...os,transform:e=>Math.round(VM(e))},go={test:pu("rgb","red"),parse:E0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+hu.transform(e)+", "+hu.transform(t)+", "+hu.transform(n)+", "+ji(Pi.transform(r))+")"};function HM(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const mu={test:pu("#"),parse:HM,transform:go.transform},Ii=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),qr=Ii("deg"),mr=Ii("%"),Se=Ii("px"),UM=Ii("vh"),YM=Ii("vw"),O0={...mr,parse:e=>mr.parse(e)/100,transform:e=>mr.transform(e*100)},ss={test:pu("hsl","hue"),parse:E0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+mr.transform(ji(t))+", "+mr.transform(ji(n))+", "+ji(Pi.transform(r))+")"},_t={test:e=>go.test(e)||mu.test(e)||ss.test(e),parse:e=>go.test(e)?go.parse(e):ss.test(e)?ss.parse(e):mu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?go.transform(e):ss.transform(e),getAnimatableNone:e=>{const t=_t.parse(e);return t.alpha=0,_t.transform(t)}},qM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function GM(e){return isNaN(e)&&typeof e=="string"&&(e.match(fu)?.length||0)+(e.match(qM)?.length||0)>0}const M0="number",P0="color",KM="var",XM="var(",j0="${}",ZM=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Di(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const l=t.replace(ZM,c=>(_t.test(c)?(r.color.push(s),o.push(P0),n.push(_t.parse(c))):c.startsWith(XM)?(r.var.push(s),o.push(KM),n.push(c)):(r.number.push(s),o.push(M0),n.push(parseFloat(c))),++s,j0)).split(j0);return{values:n,split:l,indexes:r,types:o}}function I0(e){return Di(e).values}function D0(e){const{split:t,types:n}=Di(e),r=t.length;return o=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],o[a]!==void 0){const l=n[a];l===M0?s+=ji(o[a]):l===P0?s+=_t.transform(o[a]):s+=o[a]}return s}}const JM=e=>typeof e=="number"?0:_t.test(e)?_t.getAnimatableNone(e):e;function QM(e){const t=I0(e);return D0(e)(t.map(JM))}const Gr={test:GM,parse:I0,createTransformer:D0,getAnimatableNone:QM};function gu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eP({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,a=0;if(!t)o=s=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;o=gu(c,l,e+1/3),s=gu(c,l,e),a=gu(c,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function Il(e,t){return n=>n>0?t:e}const Et=(e,t,n)=>e+(t-e)*n,yu=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},tP=[mu,go,ss],nP=e=>tP.find(t=>t.test(e));function A0(e){const t=nP(e);if(rs(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===ss&&(n=eP(n)),n}const R0=(e,t)=>{const n=A0(e),r=A0(t);if(!n||!r)return Il(e,t);const o={...n};return s=>(o.red=yu(n.red,r.red,s),o.green=yu(n.green,r.green,s),o.blue=yu(n.blue,r.blue,s),o.alpha=Et(n.alpha,r.alpha,s),go.transform(o))},bu=new Set(["none","hidden"]);function rP(e,t){return bu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function oP(e,t){return n=>Et(e,t,n)}function vu(e){return typeof e=="number"?oP:typeof e=="string"?uu(e)?Il:_t.test(e)?R0:aP:Array.isArray(e)?N0:typeof e=="object"?_t.test(e)?R0:sP:Il}function N0(e,t){const n=[...e],r=n.length,o=e.map((s,a)=>vu(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=o[a](s);return n}}function sP(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=vu(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function iP(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][r[s]],l=e.values[a]??0;n[o]=l,r[s]++}return n}const aP=(e,t)=>{const n=Gr.createTransformer(t),r=Di(e),o=Di(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?bu.has(e)&&!o.values.length||bu.has(t)&&!r.values.length?rP(e,t):Ei(N0(iP(r,o),o.values),n):(rs(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Il(e,t))};function $0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Et(e,t,n):vu(e)(e,t)}const lP=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>wt.update(t,n),stop:()=>Pr(t),now:()=>Xt.isProcessing?Xt.timestamp:on.now()}},L0=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Dl=2e4;function xu(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Dl;)t+=n,r=e.next(t);return t>=Dl?1/0:t}function cP(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(xu(r),Dl);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Ln(o)}}const dP=5;function B0(e,t,n){const r=Math.max(t-dP,0);return l0(n-e(r),t-r)}const Mt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},wu=.001;function uP({duration:e=Mt.duration,bounce:t=Mt.bounce,velocity:n=Mt.velocity,mass:r=Mt.mass}){let o,s;rs(e<=hr(Mt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=pr(Mt.minDamping,Mt.maxDamping,a),e=pr(Mt.minDuration,Mt.maxDuration,Ln(e)),a<1?(o=d=>{const u=d*a,f=u*e,h=u-n,m=Su(d,a),g=Math.exp(-f);return wu-h/m*g},s=d=>{const f=d*a*e,h=f*n+n,m=Math.pow(a,2)*Math.pow(d,2)*e,g=Math.exp(-f),y=Su(Math.pow(d,2),a);return(-o(d)+wu>0?-1:1)*((h-m)*g)/y}):(o=d=>{const u=Math.exp(-d*e),f=(d-n)*e+1;return-wu+u*f},s=d=>{const u=Math.exp(-d*e),f=(n-d)*(e*e);return u*f});const l=5/e,c=pP(o,s,l);if(e=hr(e),isNaN(c))return{stiffness:Mt.stiffness,damping:Mt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const fP=12;function pP(e,t,n){let r=n;for(let o=1;o<fP;o++)r=r-e(r)/t(r);return r}function Su(e,t){return e*Math.sqrt(1-t*t)}const hP=["duration","bounce"],mP=["stiffness","damping","mass"];function _0(e,t){return t.some(n=>e[n]!==void 0)}function gP(e){let t={velocity:Mt.velocity,stiffness:Mt.stiffness,damping:Mt.damping,mass:Mt.mass,isResolvedFromDuration:!1,...e};if(!_0(e,mP)&&_0(e,hP))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*pr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Mt.mass,stiffness:o,damping:s}}else{const n=uP(e);t={...t,...n,mass:Mt.mass},t.isResolvedFromDuration=!0}return t}function Al(e=Mt.visualDuration,t=Mt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:c,damping:d,mass:u,duration:f,velocity:h,isResolvedFromDuration:m}=gP({...n,velocity:-Ln(n.velocity||0)}),g=h||0,y=d/(2*Math.sqrt(c*u)),b=a-s,v=Ln(Math.sqrt(c/u)),k=Math.abs(b)<5;r||(r=k?Mt.restSpeed.granular:Mt.restSpeed.default),o||(o=k?Mt.restDelta.granular:Mt.restDelta.default);let S;if(y<1){const w=Su(v,y);S=T=>{const O=Math.exp(-y*v*T);return a-O*((g+y*v*b)/w*Math.sin(w*T)+b*Math.cos(w*T))}}else if(y===1)S=w=>a-Math.exp(-v*w)*(b+(g+v*b)*w);else{const w=v*Math.sqrt(y*y-1);S=T=>{const O=Math.exp(-y*v*T),M=Math.min(w*T,300);return a-O*((g+y*v*b)*Math.sinh(M)+w*b*Math.cosh(M))/w}}const C={calculatedDuration:m&&f||null,next:w=>{const T=S(w);if(m)l.done=w>=f;else{let O=w===0?g:0;y<1&&(O=w===0?hr(g):B0(S,w,T));const M=Math.abs(O)<=r,j=Math.abs(a-T)<=o;l.done=M&&j}return l.value=l.done?a:T,l},toString:()=>{const w=Math.min(xu(C),Dl),T=L0(O=>C.next(w*O).value,w,30);return w+"ms "+T},toTransition:()=>{}};return C}Al.applyToOptions=e=>{const t=cP(e,100,Al);return e.ease=t.ease,e.duration=hr(t.duration),e.type="keyframes",e};function Cu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:a,min:l,max:c,restDelta:d=.5,restSpeed:u}){const f=e[0],h={done:!1,value:f},m=M=>l!==void 0&&M<l||c!==void 0&&M>c,g=M=>l===void 0?c:c===void 0||Math.abs(l-M)<Math.abs(c-M)?l:c;let y=n*t;const b=f+y,v=a===void 0?b:a(b);v!==b&&(y=v-f);const k=M=>-y*Math.exp(-M/r),S=M=>v+k(M),C=M=>{const j=k(M),A=S(M);h.done=Math.abs(j)<=d,h.value=h.done?v:A};let w,T;const O=M=>{m(h.value)&&(w=M,T=Al({keyframes:[h.value,g(h.value)],velocity:B0(S,M,h.value),damping:o,stiffness:s,restDelta:d,restSpeed:u}))};return O(0),{calculatedDuration:null,next:M=>{let j=!1;return!T&&w===void 0&&(j=!0,C(M),O(M)),w!==void 0&&M>=w?T.next(M-w):(!j&&C(M),h)}}}function yP(e,t,n){const r=[],o=n||Mr.mix||$0,s=e.length-1;for(let a=0;a<s;a++){let l=o(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||$n:t;l=Ei(c,l)}r.push(l)}return r}function F0(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(Yn(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=yP(t,r,o),c=l.length,d=u=>{if(a&&u<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const h=Oi(e[f],e[f+1],u);return l[f](h)};return n?u=>d(pr(e[0],e[s-1],u)):d}function bP(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Oi(0,t,r);e.push(Et(n,1,o))}}function vP(e){const t=[0];return bP(t,e.length-1),t}function xP(e,t){return e.map(n=>n*t)}function wP(e,t){return e.map(()=>t||b0).splice(0,e.length-1)}function is({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=RM(r)?r.map(w0):w0(r),s={done:!1,value:t[0]},a=xP(n&&n.length===t.length?n:vP(t),e),l=F0(a,t,{ease:Array.isArray(o)?o:wP(t,o)});return{calculatedDuration:e,next:c=>(s.value=l(c),s.done=c>=e,s)}}const SP=e=>e!==null;function Tu(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(SP),l=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!l||r===void 0?s[l]:r}const CP={decay:Cu,inertia:Cu,tween:is,keyframes:is,spring:Al};function W0(e){typeof e.type=="string"&&(e.type=CP[e.type])}class ku{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const TP=e=>e/100;class Eu extends ku{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==on.now()&&this.tick(on.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;W0(t);const{type:n=is,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=t;let{keyframes:l}=t;const c=n||is;process.env.NODE_ENV!=="production"&&c!==is&&Yn(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==is&&typeof l[0]!="number"&&(this.mixKeyframes=Ei(TP,$0(l[0],l[1])),l=[0,100]);const d=c({...t,keyframes:l});s==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=xu(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:u,repeat:f,repeatType:h,repeatDelay:m,type:g,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-d*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let S=this.currentTime,C=r;if(f){const M=Math.min(this.currentTime,o)/l;let j=Math.floor(M),A=M%1;!A&&M>=1&&(A=1),A===1&&j--,j=Math.min(j,f+1),j%2&&(h==="reverse"?(A=1-A,m&&(A-=m/l)):h==="mirror"&&(C=a)),S=pr(0,1,A)*l}const w=k?{done:!1,value:u[0]}:C.next(S);s&&(w.value=s(w.value));let{done:T}=w;!k&&c!==null&&(T=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return O&&g!==Cu&&(w.value=Tu(u,this.options,b,this.speed)),y&&y(w.value),O&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return Ln(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ln(t)}get time(){return Ln(this.currentTime)}set time(t){t=hr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(on.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ln(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=lP,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(on.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function kP(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const yo=e=>e*180/Math.PI,Ou=e=>{const t=yo(Math.atan2(e[1],e[0]));return Mu(t)},EP={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ou,rotateZ:Ou,skewX:e=>yo(Math.atan(e[1])),skewY:e=>yo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Mu=e=>(e=e%360,e<0&&(e+=360),e),z0=Ou,V0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),H0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),OP={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:V0,scaleY:H0,scale:e=>(V0(e)+H0(e))/2,rotateX:e=>Mu(yo(Math.atan2(e[6],e[5]))),rotateY:e=>Mu(yo(Math.atan2(-e[2],e[0]))),rotateZ:z0,rotate:z0,skewX:e=>yo(Math.atan(e[4])),skewY:e=>yo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Pu(e){return e.includes("scale")?1:0}function ju(e,t){if(!e||e==="none")return Pu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=OP,o=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=EP,o=l}if(!o)return Pu(t);const s=r[t],a=o[1].split(",").map(PP);return typeof s=="function"?s(a):a[s]}const MP=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ju(n,t)};function PP(e){return parseFloat(e.trim())}const as=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ls=new Set(as),U0=e=>e===os||e===Se,jP=new Set(["x","y","z"]),IP=as.filter(e=>!jP.has(e));function DP(e){const t=[];return IP.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Kr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ju(t,"x"),y:(e,{transform:t})=>ju(t,"y")};Kr.translateX=Kr.x,Kr.translateY=Kr.y;const bo=new Set;let Iu=!1,Du=!1,Au=!1;function Y0(){if(Du){const e=Array.from(bo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=DP(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([s,a])=>{r.getValue(s)?.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Du=!1,Iu=!1,bo.forEach(e=>e.complete(Au)),bo.clear()}function q0(){bo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Du=!0)})}function AP(){Au=!0,q0(),Y0(),Au=!1}class Ru{constructor(t,n,r,o,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(bo.add(this),Iu||(Iu=!0,wt.read(q0),wt.resolveKeyframes(Y0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}kP(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),bo.delete(this)}cancel(){this.state==="scheduled"&&(bo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const RP=e=>e.startsWith("--");function NP(e,t,n){RP(t)?e.style.setProperty(t,n):e.style[t]=n}const $P=su(()=>window.ScrollTimeline!==void 0),LP={};function BP(e,t){const n=su(e);return()=>LP[t]??n()}const G0=BP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ai=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,K0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ai([0,.65,.55,1]),circOut:Ai([.55,0,1,.45]),backIn:Ai([.31,.01,.66,-.59]),backOut:Ai([.33,1.53,.69,.99])};function X0(e,t){if(e)return typeof e=="function"?G0()?L0(e,t):"ease-out":v0(e)?Ai(e):Array.isArray(e)?e.map(n=>X0(n,t)||K0.easeOut):K0[e]}function _P(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:a="loop",ease:l="easeOut",times:c}={},d=void 0){const u={[t]:n};c&&(u.offset=c);const f=X0(l,o);Array.isArray(f)&&(u.easing=f);const h={delay:r,duration:o,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(u,h)}function Z0(e){return typeof e=="function"&&"applyToOptions"in e}function FP({type:e,...t}){return Z0(e)&&G0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class WP extends ku{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,Yn(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=FP(t);this.animation=_P(n,r,o,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=Tu(o,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(u):NP(n,r,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ln(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ln(t)}get time(){return Ln(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=hr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&$P()?(this.animation.timeline=t,$n):n(this)}}const J0={anticipate:m0,backInOut:h0,circInOut:y0};function zP(e){return e in J0}function VP(e){typeof e.ease=="string"&&zP(e.ease)&&(e.ease=J0[e.ease])}const Nu=10;class HP extends WP{constructor(t){VP(t),W0(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Eu({...a,autoplay:!1}),c=Math.max(Nu,on.now()-this.startTime),d=pr(0,Nu,c-Nu);n.setWithVelocity(l.sample(Math.max(0,c-d)).value,l.sample(c).value,d),l.stop()}}const Q0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gr.test(e)||e==="0")&&!e.startsWith("url("));function UP(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function YP(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=Q0(o,t),l=Q0(s,t);return rs(a===l,`You are trying to animate ${t} from "${o}" to "${s}". "${a?s:o}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:UP(e)||(n==="spring"||Z0(n))&&r}function $u(e){e.duration=0,e.type="keyframes"}const qP=new Set(["opacity","clipPath","filter","transform"]),GP=su(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function KP(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return GP()&&n&&qP.has(n)&&(n!=="transform"||!d)&&!c&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}const XP=40;class ZP extends ku{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",keyframes:l,name:c,motionValue:d,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=on.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:a,name:c,motionValue:d,element:u,...f},m=u?.KeyframeResolver||Ru;this.keyframeResolver=new m(l,(g,y,b)=>this.onKeyframesResolved(g,y,h,!b),c,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:a,velocity:l,delay:c,isHandoff:d,onUpdate:u}=r;this.resolvedAt=on.now(),YP(t,s,a,l)||((Mr.instantAnimations||!c)&&u?.(Tu(t,r,n)),t[0]=t[t.length-1],$u(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>XP?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!d&&KP(h)?new HP({...h,element:h.motionValue.owner.current}):new Eu(h);m.finished.then(()=>this.notifyFinished()).catch($n),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),AP()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const JP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function QP(e){const t=JP.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const ej=4;function ey(e,t,n=1){Yn(n<=ej,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=QP(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return s0(a)?parseFloat(a):a}return uu(o)?ey(o,t,n+1):o}function Lu(e,t){return e?.[t]??e?.default??e}const ty=new Set(["width","height","top","left","right","bottom",...as]),tj={test:e=>e==="auto",parse:e=>e},ny=e=>t=>t.test(e),ry=[os,Se,mr,qr,YM,UM,tj],oy=e=>ry.find(ny(e));function nj(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||a0(e):!0}const rj=new Set(["brightness","contrast","saturate","opacity"]);function oj(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(fu)||[];if(!r)return e;const o=n.replace(r,"");let s=rj.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const sj=/\b([a-z-]*)\(.*?\)/gu,Bu={...Gr,getAnimatableNone:e=>{const t=e.match(sj);return t?t.map(oj).join(" "):e}},sy={...os,transform:Math.round},_u={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,inset:Se,insetBlock:Se,insetBlockStart:Se,insetBlockEnd:Se,insetInline:Se,insetInlineStart:Se,insetInlineEnd:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,paddingBlock:Se,paddingBlockStart:Se,paddingBlockEnd:Se,paddingInline:Se,paddingInlineStart:Se,paddingInlineEnd:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,marginBlock:Se,marginBlockStart:Se,marginBlockEnd:Se,marginInline:Se,marginInlineStart:Se,marginInlineEnd:Se,backgroundPositionX:Se,backgroundPositionY:Se,...{rotate:qr,rotateX:qr,rotateY:qr,rotateZ:qr,scale:jl,scaleX:jl,scaleY:jl,scaleZ:jl,skew:qr,skewX:qr,skewY:qr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:Pi,originX:O0,originY:O0,originZ:Se},zIndex:sy,fillOpacity:Pi,strokeOpacity:Pi,numOctaves:sy},ij={..._u,color:_t,backgroundColor:_t,outlineColor:_t,fill:_t,stroke:_t,borderColor:_t,borderTopColor:_t,borderRightColor:_t,borderBottomColor:_t,borderLeftColor:_t,filter:Bu,WebkitFilter:Bu},iy=e=>ij[e];function ay(e,t){let n=iy(e);return n!==Bu&&(n=Gr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const aj=new Set(["auto","none","0"]);function lj(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!aj.has(s)&&Di(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=ay(n,o)}class cj extends Ru{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let f=t[u];if(typeof f=="string"&&(f=f.trim(),uu(f))){const h=ey(f,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ty.has(r)||t.length!==2)return;const[o,s]=t,a=oy(o),l=oy(s),c=k0(o),d=k0(s);if(c!==d&&Kr[r]){this.needsMeasurement=!0;return}if(a!==l)if(U0(a)&&U0(l))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else Kr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||nj(t[o]))&&r.push(o);r.length&&lj(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Kr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Kr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function dj(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const ly=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function cy(e){return i0(e)&&"offsetHeight"in e}const dy=30,uj=e=>!isNaN(parseFloat(e)),Ri={current:void 0};class fj{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=on.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=on.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=uj(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&au(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new iu);const r=this.events[t].add(n);return t==="change"?()=>{r(),wt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Ri.current&&Ri.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=on.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>dy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,dy);return l0(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vo(e,t){return new fj(e,t)}const{schedule:Fu}=S0(queueMicrotask,!1),qn={x:!1,y:!1};function uy(){return qn.x||qn.y}function pj(e){return e==="x"||e==="y"?qn[e]?null:(qn[e]=!0,()=>{qn[e]=!1}):qn.x||qn.y?null:(qn.x=qn.y=!0,()=>{qn.x=qn.y=!1})}function fy(e,t){const n=dj(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function py(e){return!(e.pointerType==="touch"||uy())}function hj(e,t,n={}){const[r,o,s]=fy(e,n),a=l=>{if(!py(l))return;const{target:c}=l,d=t(c,l);if(typeof d!="function"||!c)return;const u=f=>{py(f)&&(d(f),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(l=>{l.addEventListener("pointerenter",a,o)}),s}const hy=(e,t)=>t?e===t?!0:hy(e,t.parentElement):!1,Wu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,mj=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function my(e){return mj.has(e.tagName)||e.isContentEditable===!0}const Rl=new WeakSet;function gy(e){return t=>{t.key==="Enter"&&e(t)}}function zu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const gj=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=gy(()=>{if(Rl.has(n))return;zu(n,"down");const o=gy(()=>{zu(n,"up")}),s=()=>zu(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function yy(e){return Wu(e)&&!uy()}function yj(e,t,n={}){const[r,o,s]=fy(e,n),a=l=>{const c=l.currentTarget;if(!yy(l))return;Rl.add(c);const d=t(c,l),u=(m,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Rl.has(c)&&Rl.delete(c),yy(m)&&typeof d=="function"&&d(m,{success:g})},f=m=>{u(m,c===window||c===document||n.useGlobalTarget||hy(c,m.target))},h=m=>{u(m,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",h,o)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,o),cy(l)&&(l.addEventListener("focus",d=>gj(d,o)),!my(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),s}function by(e){return i0(e)&&"ownerSVGElement"in e}function bj(e){return by(e)&&e.tagName==="svg"}function vj(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],s=e[2+n],a=e[3+n],l=F0(o,s,a);return t?l(r):l}const Zt=e=>!!(e&&e.getVelocity),xj=[...ry,_t,Gr],wj=e=>xj.find(ny(e)),Nl=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function vy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Sj(...e){return t=>{let n=!1;const r=e.map(o=>{const s=vy(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():vy(e[o],null)}}}}function Cj(...e){return I.useCallback(Sj(...e),e)}class Tj extends I.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=cy(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=o-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function kj({children:e,isPresent:t,anchorX:n,root:r}){const o=x.useId(),s=x.useRef(null),a=x.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=x.useContext(Nl),c=e.props?.ref??e?.ref,d=Cj(s,c);return x.useInsertionEffect(()=>{const{width:u,height:f,top:h,left:m,right:g}=a.current;if(t||!s.current||!u||!f)return;const y=n==="left"?`left: ${m}`:`right: ${g}`;s.current.dataset.motionPopId=o;const b=document.createElement("style");l&&(b.nonce=l);const v=r??document.head;return v.appendChild(b),b.sheet&&b.sheet.insertRule(`
239
239
  [data-motion-pop-id="${o}"] {
240
240
  position: absolute !important;
241
241
  width: ${u}px !important;
@@ -243,15 +243,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
243
243
  ${y}px !important;
244
244
  top: ${h}px !important;
245
245
  }
246
- `),()=>{v.contains(b)&&v.removeChild(b)}},[t]),p.jsx(Tj,{isPresent:t,childRef:s,sizeRef:a,children:I.cloneElement(e,{ref:d})})}const Ej=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:a,anchorX:l,root:c})=>{const d=Yr(Oj),u=x.useId();let f=!0,h=x.useMemo(()=>(f=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:m=>{d.set(m,!0);for(const g of d.values())if(!g)return;r&&r()},register:m=>(d.set(m,!1),()=>d.delete(m))}),[n,d,r]);return s&&f&&(h={...h}),x.useMemo(()=>{d.forEach((m,g)=>d.set(g,!1))},[n]),I.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),a==="popLayout"&&(e=p.jsx(kj,{isPresent:n,anchorX:l,root:c,children:e})),p.jsx(Ol.Provider,{value:h,children:e})};function Oj(){return new Map}function xy(e=!0){const t=x.useContext(Ol);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=x.useId();x.useEffect(()=>{if(e)return o(s)},[e]);const a=x.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const $l=e=>e.key||"";function wy(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const Mj=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:a=!1,anchorX:l="left",root:c})=>{const[d,u]=xy(a),f=x.useMemo(()=>wy(e),[e]),h=a&&!d?[]:f.map($l),m=x.useRef(!0),g=x.useRef(f),y=Yr(()=>new Map),b=x.useRef(new Set),[v,T]=x.useState(f),[S,C]=x.useState(f);tu(()=>{m.current=!1,g.current=f;for(let O=0;O<S.length;O++){const P=$l(S[O]);h.includes(P)?(y.delete(P),b.current.delete(P)):y.get(P)!==!0&&y.set(P,!1)}},[S,h.length,h.join("-")]);const w=[];if(f!==v){let O=[...f];for(let P=0;P<S.length;P++){const j=S[P],A=$l(j);h.includes(A)||(O.splice(P,0,j),w.push(j))}return s==="wait"&&w.length&&(O=w),C(wy(O)),T(f),null}process.env.NODE_ENV!=="production"&&s==="wait"&&S.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:k}=x.useContext(Qd);return p.jsx(p.Fragment,{children:S.map(O=>{const P=$l(O),j=a&&!d?!1:f===S||h.includes(P),A=()=>{if(b.current.has(P))return;if(b.current.add(P),y.has(P))y.set(P,!0);else return;let L=!0;y.forEach(E=>{E||(L=!1)}),L&&(k?.(),C(g.current),a&&u?.(),r&&r())};return p.jsx(Ej,{isPresent:j,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:c,onExitComplete:j?void 0:A,anchorX:l,children:O},P)})})},Sy=x.createContext({strict:!1}),Cy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},cs={};for(const e in Cy)cs[e]={isEnabled:t=>Cy[e].some(n=>!!t[n])};function Pj(e){for(const t in e)cs[t]={...cs[t],...e[t]}}const jj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ll(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jj.has(e)}let Ty=e=>!Ll(e);function Ij(e){typeof e=="function"&&(Ty=t=>t.startsWith("on")?!Ll(t):e(t))}try{Ij(require("@emotion/is-prop-valid").default)}catch{}function Dj(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Ty(o)||n===!0&&Ll(o)||!t&&!Ll(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Bl=x.createContext({});function _l(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ni(e){return typeof e=="string"||Array.isArray(e)}const Vu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hu=["initial",...Vu];function Fl(e){return _l(e.animate)||Hu.some(t=>Ni(e[t]))}function ky(e){return!!(Fl(e)||e.variants)}function Aj(e,t){if(Fl(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ni(n)?n:void 0,animate:Ni(r)?r:void 0}}return e.inherit!==!1?t:{}}function Rj(e){const{initial:t,animate:n}=Aj(e,x.useContext(Bl));return x.useMemo(()=>({initial:t,animate:n}),[Ey(t),Ey(n)])}function Ey(e){return Array.isArray(e)?e.join(" "):e}function Oy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const $i={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=Oy(e,t.target.x),r=Oy(e,t.target.y);return`${n}% ${r}%`}},Nj={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Gr.parse(e);if(o.length>5)return r;const s=Gr.createTransformer(e),a=typeof o[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;o[0+a]/=l,o[1+a]/=c;const d=Et(l,c,.5);return typeof o[2+a]=="number"&&(o[2+a]/=d),typeof o[3+a]=="number"&&(o[3+a]/=d),s(o)}},Uu={borderRadius:{...$i,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$i,borderTopRightRadius:$i,borderBottomLeftRadius:$i,borderBottomRightRadius:$i,boxShadow:Nj};function My(e,{layout:t,layoutId:n}){return ls.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Uu[e]||e==="opacity")}const $j={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Lj=as.length;function Bj(e,t,n){let r="",o=!0;for(let s=0;s<Lj;s++){const a=as[s],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(a.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const d=ly(l,_u[a]);if(!c){o=!1;const u=$j[a]||a;r+=`${u}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Yu(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let a=!1,l=!1;for(const c in t){const d=t[c];if(ls.has(c)){a=!0;continue}else if(T0(c)){o[c]=d;continue}else{const u=ly(d,_u[c]);c.startsWith("origin")?(l=!0,s[c]=u):r[c]=u}}if(t.transform||(a||n?r.transform=Bj(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:u=0}=s;r.transformOrigin=`${c} ${d} ${u}`}}const qu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Py(e,t,n){for(const r in t)!Zt(t[r])&&!My(r,n)&&(e[r]=t[r])}function _j({transformTemplate:e},t){return x.useMemo(()=>{const n=qu();return Yu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Fj(e,t){const n=e.style||{},r={};return Py(r,n,e),Object.assign(r,_j(e,t)),r}function Wj(e,t){const n={},r=Fj(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const zj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vj={offset:"strokeDashoffset",array:"strokeDasharray"};function Hj(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?zj:Vj;e[s.offset]=Se.transform(-r);const a=Se.transform(t),l=Se.transform(n);e[s.array]=`${a} ${l}`}const Uj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function jy(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:a=0,...l},c,d,u){if(Yu(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete f.transformBox);for(const m of Uj)f[m]!==void 0&&(h[m]=f[m],delete f[m]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&Hj(f,o,s,a,!1)}const Iy=()=>({...qu(),attrs:{}}),Dy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Yj(e,t,n,r){const o=x.useMemo(()=>{const s=Iy();return jy(s,t,Dy(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Py(s,e.style,e),o.style={...s,...o.style}}return o}const qj=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Gu(e){return typeof e!="string"||e.includes("-")?!1:!!(qj.indexOf(e)>-1||/[A-Z]/u.test(e))}function Gj(e,t,n,{latestValues:r},o,s=!1,a){const c=(a??Gu(e)?Yj:Wj)(t,r,o,e),d=Dj(t,typeof e=="string",s),u=e!==x.Fragment?{...d,...c,ref:n}:{},{children:f}=t,h=x.useMemo(()=>Zt(f)?f.get():f,[f]);return x.createElement(e,{...u,children:h})}function Ay(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ku(e,t,n,r){if(typeof t=="function"){const[o,s]=Ay(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=Ay(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function Wl(e){return Zt(e)?e.get():e}function Kj({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Xj(n,r,o,e),renderState:t()}}function Xj(e,t,n,r){const o={},s=r(e,{});for(const h in s)o[h]=Wl(s[h]);let{initial:a,animate:l}=e;const c=Fl(e),d=ky(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let u=n?n.initial===!1:!1;u=u||a===!1;const f=u?l:a;if(f&&typeof f!="boolean"&&!_l(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m<h.length;m++){const g=Ku(e,h[m]);if(g){const{transitionEnd:y,transition:b,...v}=g;for(const T in v){let S=v[T];if(Array.isArray(S)){const C=u?S.length-1:0;S=S[C]}S!==null&&(o[T]=S)}for(const T in y)o[T]=y[T]}}}return o}const Ry=e=>(t,n)=>{const r=x.useContext(Bl),o=x.useContext(Ol),s=()=>Kj(e,t,r,o);return n?s():Yr(s)};function Xu(e,t,n){const{style:r}=e,o={};for(const s in r)(Zt(r[s])||t.style&&Zt(t.style[s])||My(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=r[s]);return o}const Zj=Ry({scrapeMotionValuesFromProps:Xu,createRenderState:qu});function Ny(e,t,n){const r=Xu(e,t,n);for(const o in e)if(Zt(e[o])||Zt(t[o])){const s=as.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}const Jj=Ry({scrapeMotionValuesFromProps:Ny,createRenderState:Iy}),Qj=Symbol.for("motionComponentSymbol");function eI(e,t,n){const r=x.useRef(n);x.useInsertionEffect(()=>{r.current=n});const o=x.useRef(null);return x.useCallback(s=>{s&&e.onMount?.(s),t&&(s?t.mount(s):t.unmount());const a=r.current;if(typeof a=="function")if(s){const l=a(s);typeof l=="function"&&(o.current=l)}else o.current?(o.current(),o.current=null):a(s);else a&&(a.current=s)},[t])}const Zu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$y="data-"+Zu("framerAppearId"),Ly=x.createContext({});function Li(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tI(e,t,n,r,o,s){const{visualElement:a}=x.useContext(Bl),l=x.useContext(Sy),c=x.useContext(Ol),d=x.useContext(Nl).reducedMotion,u=x.useRef(null);r=r||l.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,isSVG:s}));const f=u.current,h=x.useContext(Ly);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&nI(u.current,n,o,h);const m=x.useRef(!1);x.useInsertionEffect(()=>{f&&m.current&&f.update(n,c)});const g=n[$y],y=x.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return tu(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),y.current&&f.animationState&&f.animationState.animateChanges())}),x.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),y.current=!1),f.enteringChildren=void 0)}),f}function nI(e,t,n,r){const{layoutId:o,layout:s,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:By(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!a||l&&Li(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:d})}function By(e){if(e)return e.options.allowProjection!==!1?e.projection:By(e.parent)}function Ju(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&Pj(r);const s=n?n==="svg":Gu(e),a=s?Jj:Zj;function l(d,u){let f;const h={...x.useContext(Nl),...d,layoutId:rI(d)},{isStatic:m}=h,g=Rj(d),y=a(d,m);if(!m&&eu){oI(h,r);const b=sI(h);f=b.MeasureLayout,g.visualElement=tI(e,y,h,o,b.ProjectionNode,s)}return p.jsxs(Bl.Provider,{value:g,children:[f&&g.visualElement?p.jsx(f,{visualElement:g.visualElement,...h}):null,Gj(e,d,eI(y,g.visualElement,u),y,m,t,s)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=x.forwardRef(l);return c[Qj]=e,c}function rI({layoutId:e}){const t=x.useContext(Qd).id;return t&&e!==void 0?t+"-"+e:e}function oI(e,t){const n=x.useContext(Sy).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?rs(!1,r,"lazy-strict-mode"):Yn(!1,r,"lazy-strict-mode")}}function sI(e){const{drag:t,layout:n}=cs;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function iI(e,t){if(typeof Proxy>"u")return Ju;const n=new Map,r=(s,a)=>Ju(s,a,e,t),o=(s,a)=>(process.env.NODE_ENV!=="production"&&au(!1,"motion() is deprecated. Use motion.create() instead."),r(s,a));return new Proxy(o,{get:(s,a)=>a==="create"?r:(n.has(a)||n.set(a,Ju(a,void 0,e,t)),n.get(a))})}function _y({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lI(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Qu(e){return e===void 0||e===1}function ef({scale:e,scaleX:t,scaleY:n}){return!Qu(e)||!Qu(t)||!Qu(n)}function xo(e){return ef(e)||Fy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Fy(e){return Wy(e.x)||Wy(e.y)}function Wy(e){return e&&e!=="0%"}function zl(e,t,n){const r=e-n,o=t*r;return n+o}function zy(e,t,n,r,o){return o!==void 0&&(e=zl(e,o,r)),zl(e,n,r)+t}function tf(e,t=0,n=1,r,o){e.min=zy(e.min,t,n,r,o),e.max=zy(e.max,t,n,r,o)}function Vy(e,{x:t,y:n}){tf(e.x,t.translate,t.scale,t.originPoint),tf(e.y,n.translate,n.scale,n.originPoint)}const Hy=.999999999999,Uy=1.0000000000001;function cI(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,a;for(let l=0;l<o;l++){s=n[l],a=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&us(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Vy(e,a)),r&&xo(s.latestValues)&&us(e,s.latestValues))}t.x<Uy&&t.x>Hy&&(t.x=1),t.y<Uy&&t.y>Hy&&(t.y=1)}function ds(e,t){e.min=e.min+t,e.max=e.max+t}function Yy(e,t,n,r,o=.5){const s=Et(e.min,e.max,o);tf(e,t,n,s,r)}function us(e,t){Yy(e.x,t.x,t.scaleX,t.scale,t.originX),Yy(e.y,t.y,t.scaleY,t.scale,t.originY)}function qy(e,t){return _y(lI(e.getBoundingClientRect(),t))}function dI(e,t,n){const r=qy(e,n),{scroll:o}=t;return o&&(ds(r.x,o.offset.x),ds(r.y,o.offset.y)),r}const Gy=()=>({translate:0,scale:1,origin:0,originPoint:0}),fs=()=>({x:Gy(),y:Gy()}),Ky=()=>({min:0,max:0}),zt=()=>({x:Ky(),y:Ky()}),nf={current:null},Xy={current:!1};function uI(){if(Xy.current=!0,!!eu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>nf.current=e.matches;e.addEventListener("change",t),t()}else nf.current=!1}const fI=new WeakMap;function pI(e,t,n){for(const r in t){const o=t[r],s=n[r];if(Zt(o))e.addValue(r,o);else if(Zt(s))e.addValue(r,vo(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(r);e.addValue(r,vo(a!==void 0?a:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Zy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class hI{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:s,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ru,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=on.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,wt.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=Fl(n),this.isVariantNode=ky(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const m=f[h];c[h]!==void 0&&Zt(m)&&m.set(c[h])}}mount(t){this.current=t,fI.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Xy.current||uI(),this.shouldReduceMotion=nf.current),process.env.NODE_ENV!=="production"&&au(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Pr(this.notifyUpdate),Pr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ls.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&wt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in cs){const n=cs[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):zt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Zy.length;r++){const o=Zy[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,a=t[s];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=pI(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=vo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(s0(r)||a0(r))?r=parseFloat(r):!wj(r)&&Gr.test(n)&&(r=ay(t,n)),this.setBaseTarget(t,Zt(r)?r.get():r)),Zt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Ku(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Zt(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new iu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Fu.render(this.render)}}class Jy extends hI{constructor(){super(...arguments),this.KeyframeResolver=cj}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Zt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Qy(e,{style:t,vars:n},r,o){const s=e.style;let a;for(a in t)s[a]=t[a];o?.applyProjectionStyles(s,r);for(a in n)s.setProperty(a,n[a])}function mI(e){return window.getComputedStyle(e)}class gI extends Jy{constructor(){super(...arguments),this.type="html",this.renderInstance=Qy}readValueFromInstance(t,n){if(ls.has(n))return this.projection?.isProjecting?Pu(n):MP(t,n);{const r=mI(t),o=(T0(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return qy(t,n)}build(t,n,r){Yu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Xu(t,n,r)}}const eb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function yI(e,t,n,r){Qy(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(eb.has(o)?o:Zu(o),t.attrs[o])}class bI extends Jy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=zt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ls.has(n)){const r=iy(n);return r&&r.default||0}return n=eb.has(n)?n:Zu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ny(t,n,r)}build(t,n,r){jy(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){yI(t,n,r,o)}mount(t){this.isSVGTag=Dy(t.tagName),super.mount(t)}}const vI=(e,t)=>t.isSVG??Gu(e)?new bI(t):new gI(t,{allowProjection:e!==x.Fragment});function ps(e,t,n){const r=e.getProps();return Ku(r,t,n!==void 0?n:r.custom,e)}const rf=e=>Array.isArray(e);function xI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vo(n))}function wI(e){return rf(e)?e[e.length-1]||0:e}function SI(e,t){const n=ps(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const a in s){const l=wI(s[a]);xI(e,a,l)}}function CI(e){return!!(Zt(e)&&e.add)}function of(e,t){const n=e.getValue("willChange");if(CI(n))return n.add(t);if(!n&&Mr.WillChange){const r=new Mr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function tb(e){return e.props[$y]}const TI=e=>e!==null;function kI(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(TI),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const EI={type:"spring",stiffness:500,damping:25,restSpeed:10},OI=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),MI={type:"keyframes",duration:.8},PI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jI=(e,{keyframes:t})=>t.length>2?MI:ls.has(e)?e.startsWith("scale")?OI(t[1]):EI:PI;function II({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:a,repeatDelay:l,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const sf=(e,t,n,r={},o,s)=>a=>{const l=Lu(r,e)||{},c=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-hr(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:o};II(l)||Object.assign(u,jI(e,u)),u.duration&&(u.duration=hr(u.duration)),u.repeatDelay&&(u.repeatDelay=hr(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&($u(u),u.delay===0&&(f=!0)),(Mr.instantAnimations||Mr.skipAnimations)&&(f=!0,$u(u),u.delay=0),u.allowFlatten=!l.type&&!l.ease,f&&!s&&t.get()!==void 0){const h=kI(u.keyframes,l);if(h!==void 0){wt.update(()=>{u.onUpdate(h),u.onComplete()});return}}return l.isSync?new Eu(u):new ZP(u)};function DI({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function nb(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const u in l){const f=e.getValue(u,e.latestValues[u]??null),h=l[u];if(h===void 0||d&&DI(d,u))continue;const m={delay:n,...Lu(s||{},u)},g=f.get();if(g!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=tb(e);if(v){const T=window.MotionHandoffAnimation(v,u,wt);T!==null&&(m.startTime=T,y=!0)}}of(e,u),f.start(sf(u,f,h,e.shouldReduceMotion&&ty.has(u)?{type:!1}:m,e,y));const b=f.animation;b&&c.push(b)}return a&&Promise.all(c).then(()=>{wt.update(()=>{a&&SI(e,a)})}),c}function rb(e,t,n,r=0,o=1){const s=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),a=e.size,l=(a-1)*r;return typeof n=="function"?n(s,a):o===1?s*r:l-s*r}function af(e,t,n={}){const r=ps(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(nb(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:f}=o;return AI(e,t,c,d,u,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,d]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>d())}else return Promise.all([s(),a(n.delay)])}function AI(e,t,n=0,r=0,o=0,s=1,a){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(af(c,t,{...a,delay:n+(typeof r=="function"?0:r)+rb(e.variantChildren,c,r,o,s)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function RI(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>af(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=af(e,t,n);else{const o=typeof t=="function"?ps(e,t,n.custom):t;r=Promise.all(nb(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function ob(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const NI=Hu.length;function sb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?sb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<NI;n++){const r=Hu[n],o=e.props[r];(Ni(o)||o===!1)&&(t[r]=o)}return t}const $I=[...Vu].reverse(),LI=Vu.length;function BI(e){return t=>Promise.all(t.map(({animation:n,options:r})=>RI(e,n,r)))}function _I(e){let t=BI(e),n=ib(),r=!0;const o=c=>(d,u)=>{const f=ps(e,u,c==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:m,...g}=f;d={...d,...g,...m}}return d};function s(c){t=c(e)}function a(c){const{props:d}=e,u=sb(e.parent)||{},f=[],h=new Set;let m={},g=1/0;for(let b=0;b<LI;b++){const v=$I[b],T=n[v],S=d[v]!==void 0?d[v]:u[v],C=Ni(S),w=v===c?T.isActive:null;w===!1&&(g=b);let k=S===u[v]&&S!==d[v]&&C;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),T.protectedKeys={...m},!T.isActive&&w===null||!S&&!T.prevProp||_l(S)||typeof S=="boolean")continue;const O=FI(T.prevProp,S);let P=O||v===c&&T.isActive&&!k&&C||b>g&&C,j=!1;const A=Array.isArray(S)?S:[S];let L=A.reduce(o(v),{});w===!1&&(L={});const{prevResolvedValues:E={}}=T,R={...E,...L},M=F=>{P=!0,h.has(F)&&(j=!0,h.delete(F)),T.needsAnimating[F]=!0;const H=e.getValue(F);H&&(H.liveStyle=!1)};for(const F in R){const H=L[F],z=E[F];if(m.hasOwnProperty(F))continue;let _=!1;rf(H)&&rf(z)?_=!ob(H,z):_=H!==z,_?H!=null?M(F):h.add(F):H!==void 0&&h.has(F)?M(F):T.protectedKeys[F]=!0}T.prevProp=S,T.prevResolvedValues=L,T.isActive&&(m={...m,...L}),r&&e.blockInitialAnimation&&(P=!1);const N=k&&O;P&&(!N||j)&&f.push(...A.map(F=>{const H={type:v};if(typeof F=="string"&&r&&!N&&e.manuallyAnimateOnMount&&e.parent){const{parent:z}=e,_=ps(z,F);if(z.enteringChildren&&_){const{delayChildren:D}=_.transition||{};H.delay=rb(z.enteringChildren,e,D)}}return{animation:F,options:H}}))}if(h.size){const b={};if(typeof d.initial!="boolean"){const v=ps(e,Array.isArray(d.initial)?d.initial[0]:d.initial);v&&v.transition&&(b.transition=v.transition)}h.forEach(v=>{const T=e.getBaseTarget(v),S=e.getValue(v);S&&(S.liveStyle=!0),b[v]=T??null}),f.push({animation:b})}let y=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function l(c,d){if(n[c].isActive===d)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(c,d)),n[c].isActive=d;const u=a(c);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:a,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=ib()}}}function FI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ob(t,e):!1}function wo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ib(){return{animate:wo(!0),whileInView:wo(),whileHover:wo(),whileTap:wo(),whileDrag:wo(),whileFocus:wo(),exit:wo()}}class Xr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class WI extends Xr{constructor(t){super(t),t.animationState||(t.animationState=_I(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();_l(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let zI=0;class VI extends Xr{constructor(){super(...arguments),this.id=zI++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const HI={animation:{Feature:WI},exit:{Feature:VI}};function Bi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function _i(e){return{point:{x:e.pageX,y:e.pageY}}}const UI=e=>t=>Wu(t)&&e(t,_i(t));function Fi(e,t,n,r){return Bi(e,t,UI(n),r)}const ab=1e-4,YI=1-ab,qI=1+ab,lb=.01,GI=0-lb,KI=0+lb;function sn(e){return e.max-e.min}function XI(e,t,n){return Math.abs(e-t)<=n}function cb(e,t,n,r=.5){e.origin=r,e.originPoint=Et(t.min,t.max,e.origin),e.scale=sn(n)/sn(t),e.translate=Et(n.min,n.max,e.origin)-e.originPoint,(e.scale>=YI&&e.scale<=qI||isNaN(e.scale))&&(e.scale=1),(e.translate>=GI&&e.translate<=KI||isNaN(e.translate))&&(e.translate=0)}function Wi(e,t,n,r){cb(e.x,t.x,n.x,r?r.originX:void 0),cb(e.y,t.y,n.y,r?r.originY:void 0)}function db(e,t,n){e.min=n.min+t.min,e.max=e.min+sn(t)}function ZI(e,t,n){db(e.x,t.x,n.x),db(e.y,t.y,n.y)}function ub(e,t,n){e.min=t.min-n.min,e.max=e.min+sn(t)}function Vl(e,t,n){ub(e.x,t.x,n.x),ub(e.y,t.y,n.y)}function Bn(e){return[e("x"),e("y")]}const fb=({current:e})=>e?e.ownerDocument.defaultView:null,pb=(e,t)=>Math.abs(e-t);function JI(e,t){const n=pb(e.x,t.x),r=pb(e.y,t.y);return Math.sqrt(n**2+r**2)}const hb=new Set(["auto","scroll"]);class mb{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=cf(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=JI(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!y)return;const{point:b}=m,{timestamp:v}=Xt;this.history.push({...b,timestamp:v});const{onStart:T,onMove:S}=this.handlers;g||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=lf(g,this.transformPagePoint),wt.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:b,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=cf(m.type==="pointercancel"?this.lastMoveEventInfo:lf(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,T),b&&b(m,T)},!Wu(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=o||window;const c=_i(t),d=lf(c,this.transformPagePoint),{point:u}=d,{timestamp:f}=Xt;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,cf(d,this.history)),this.removeListeners=Ei(Fi(this.contextWindow,"pointermove",this.handlePointerMove),Fi(this.contextWindow,"pointerup",this.handlePointerUp),Fi(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(hb.has(r.overflowX)||hb.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:o.x-n.x,y:o.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,o),wt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Pr(this.updatePoint)}}function lf(e,t){return t?{point:t(e.point)}:e}function gb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cf({point:e},t){return{point:e,delta:gb(e,yb(t)),offset:gb(e,QI(t)),velocity:eD(t,.1)}}function QI(e){return e[0]}function yb(e){return e[e.length-1]}function eD(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=yb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>hr(t)));)n--;if(!r)return{x:0,y:0};const s=Ln(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function tD(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Et(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Et(n,e,r.max):Math.min(e,n)),e}function bb(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function nD(e,{top:t,left:n,bottom:r,right:o}){return{x:bb(e.x,n,o),y:bb(e.y,t,r)}}function vb(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function rD(e,t){return{x:vb(e.x,t.x),y:vb(e.y,t.y)}}function oD(e,t){let n=.5;const r=sn(e),o=sn(t);return o>r?n=Oi(t.min,t.max-r,e.min):r>o&&(n=Oi(e.min,e.max-o,t.min)),pr(0,1,n)}function sD(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const df=.35;function iD(e=df){return e===!1?e=0:e===!0&&(e=df),{x:xb(e,"left","right"),y:xb(e,"top","bottom")}}function xb(e,t,n){return{min:wb(e,t),max:wb(e,n)}}function wb(e,t){return typeof e=="number"?e:e[t]||0}const aD=new WeakMap;class lD{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=zt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=f=>{n?(this.stopAnimation(),this.snapToCursor(_i(f).point)):this.pauseAnimation()},a=(f,h)=>{this.stopAnimation();const{drag:m,dragPropagation:g,onDragStart:y}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=pj(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Bn(v=>{let T=this.getAxisMotionValue(v).get()||0;if(mr.test(T)){const{projection:S}=this.visualElement;if(S&&S.layout){const C=S.layout.layoutBox[v];C&&(T=sn(C)*(parseFloat(T)/100))}}this.originPoint[v]=T}),y&&wt.postRender(()=>y(f,h)),of(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:y,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:v}=h;if(g&&this.currentDirection===null){this.currentDirection=cD(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),b&&b(f,h)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Bn(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new mb(t,{onSessionStart:s,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:fb(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:a}=o;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&wt.postRender(()=>l(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Hl(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=tD(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Li(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=nD(r.layoutBox,t):this.constraints=!1,this.elastic=iD(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Bn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=sD(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Li(t))return!1;const r=t.current;Yn(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=dI(r,o.root,this.visualElement.getTransformPagePoint());let a=rD(o.layout.layoutBox,s);if(n){const l=n(aI(a));this.hasMutatedConstraints=!!l,l&&(a=_y(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=Bn(u=>{if(!Hl(u,n,this.currentDirection))return;let f=c&&c[u]||{};a&&(f={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(u,g)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return of(this.visualElement,t),r.start(sf(t,r,0,n,this.visualElement,!1))}stopAnimation(){Bn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Bn(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Bn(n=>{const{drag:r}=this.getProps();if(!Hl(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:l}=o.layout.layoutBox[n],c=s.get()||0;s.set(t[n]-Et(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Li(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Bn(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();o[a]=oD({min:c,max:c},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Bn(a=>{if(!Hl(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];l.set(Et(c,d,o[a]))})}addListeners(){if(!this.visualElement.current)return;aD.set(this.visualElement,this);const t=this.visualElement.current,n=Fi(t,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&!my(c.target)&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Li(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),wt.read(r);const a=Bi(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Bn(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())}));return()=>{a(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:a=df,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:a,dragMomentum:l}}}function Hl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function cD(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class dD extends Xr{constructor(t){super(t),this.removeGroupControls=$n,this.removeListeners=$n,this.controls=new lD(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$n}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const Sb=e=>(t,n)=>{e&&wt.postRender(()=>e(t,n))};class uD extends Xr{constructor(){super(...arguments),this.removePointerDownListener=$n}onPointerDown(t){this.session=new mb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Sb(t),onStart:Sb(n),onMove:r,onEnd:(s,a)=>{delete this.session,o&&wt.postRender(()=>o(s,a))}}}mount(){this.removePointerDownListener=Fi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ul={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let uf=!1;class fD extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),uf&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Ul.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,uf=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||wt.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Fu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;uf=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Cb(e){const[t,n]=xy(),r=x.useContext(Qd);return p.jsx(fD,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(Ly),isPresent:t,safeToRemove:n})}function pD(e,t,n){const r=Zt(e)?e:vo(e);return r.start(sf("",r,t,n)),r.animation}const hD=(e,t)=>e.depth-t.depth;class mD{constructor(){this.children=[],this.isDirty=!1}add(t){nu(this.children,t),this.isDirty=!0}remove(t){ru(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(hD),this.isDirty=!1,this.children.forEach(t)}}function gD(e,t){const n=on.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(Pr(r),e(s-t))};return wt.setup(r,!0),()=>Pr(r)}const Tb=["TopLeft","TopRight","BottomLeft","BottomRight"],yD=Tb.length,kb=e=>typeof e=="string"?parseFloat(e):e,Eb=e=>typeof e=="number"||Se.test(e);function bD(e,t,n,r,o,s){o?(e.opacity=Et(0,n.opacity??1,vD(r)),e.opacityExit=Et(t.opacity??1,0,xD(r))):s&&(e.opacity=Et(t.opacity??1,n.opacity??1,r));for(let a=0;a<yD;a++){const l=`border${Tb[a]}Radius`;let c=Ob(t,l),d=Ob(n,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||Eb(c)===Eb(d)?(e[l]=Math.max(Et(kb(c),kb(d),r),0),(mr.test(d)||mr.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||n.rotate)&&(e.rotate=Et(t.rotate||0,n.rotate||0,r))}function Ob(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const vD=Mb(0,.5,g0),xD=Mb(.5,.95,$n);function Mb(e,t,n){return r=>r<e?0:r>t?1:n(Oi(e,t,r))}function Pb(e,t){e.min=t.min,e.max=t.max}function Gn(e,t){Pb(e.x,t.x),Pb(e.y,t.y)}function jb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ib(e,t,n,r,o){return e-=t,e=zl(e,1/n,r),o!==void 0&&(e=zl(e,1/o,r)),e}function wD(e,t=0,n=1,r=.5,o,s=e,a=e){if(mr.test(t)&&(t=parseFloat(t),t=Et(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=Et(s.min,s.max,r);e===s&&(l-=t),e.min=Ib(e.min,t,n,l,o),e.max=Ib(e.max,t,n,l,o)}function Db(e,t,[n,r,o],s,a){wD(e,t[n],t[r],t[o],t.scale,s,a)}const SD=["x","scaleX","originX"],CD=["y","scaleY","originY"];function Ab(e,t,n,r){Db(e.x,t,SD,n?n.x:void 0,r?r.x:void 0),Db(e.y,t,CD,n?n.y:void 0,r?r.y:void 0)}function Rb(e){return e.translate===0&&e.scale===1}function Nb(e){return Rb(e.x)&&Rb(e.y)}function $b(e,t){return e.min===t.min&&e.max===t.max}function TD(e,t){return $b(e.x,t.x)&&$b(e.y,t.y)}function Lb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Bb(e,t){return Lb(e.x,t.x)&&Lb(e.y,t.y)}function _b(e){return sn(e.x)/sn(e.y)}function Fb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class kD{constructor(){this.members=[]}add(t){nu(this.members,t),t.scheduleRender()}remove(t){if(ru(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ED(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((o||s||a)&&(r=`translate3d(${o}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:f,rotateY:h,skewX:m,skewY:g}=n;d&&(r=`perspective(${d}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const ff=["","X","Y","Z"],OD=1e3;let MD=0;function pf(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Wb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=tb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",wt,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Wb(r)}function zb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},l=t?.()){this.id=MD++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ID),this.nodes.forEach(ND),this.nodes.forEach($D),this.nodes.forEach(DD)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new mD)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new iu),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=by(a)&&!bj(a),this.instance=a;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let u,f=0;const h=()=>this.root.updateBlockedByResize=!1;wt.read(()=>{f=window.innerWidth}),e(a,()=>{const m=window.innerWidth;m!==f&&(f=m,this.root.updateBlockedByResize=!0,u&&u(),u=gD(h,250),Ul.hasAnimatedSinceResize&&(Ul.hasAnimatedSinceResize=!1,this.nodes.forEach(Ub)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||WD,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=d.getProps(),v=!this.targetLayout||!Bb(this.targetLayout,m),T=!f&&h;if(this.options.layoutRoot||this.resumeFrom||T||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...Lu(g,"layout"),onPlay:y,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(u,T)}else f||Ub(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Pr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(LD),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Wb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Vb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Hb);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(RD),this.nodes.forEach(PD),this.nodes.forEach(jD)):this.nodes.forEach(Hb),this.clearAllSnapshots();const l=on.now();Xt.delta=pr(0,1e3/60,l-Xt.timestamp),Xt.timestamp=l,Xt.isProcessing=!0,du.update.process(Xt),du.preRender.process(Xt),du.render.process(Xt),Xt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(AD),this.sharedNodes.forEach(BD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,wt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){wt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!sn(this.snapshot.measuredBox.x)&&!sn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=zt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Nb(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;a&&this.instance&&(l||xo(this.latestValues)||u)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),zD(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return zt();const l=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(VD))){const{scroll:d}=this.root;d&&(ds(l.x,d.offset.x),ds(l.y,d.offset.y))}return l}removeElementScroll(a){const l=zt();if(Gn(l,a),this.scroll?.wasRoot)return l;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:u,options:f}=d;d!==this.root&&u&&f.layoutScroll&&(u.wasRoot&&Gn(l,a),ds(l.x,u.offset.x),ds(l.y,u.offset.y))}return l}applyTransform(a,l=!1){const c=zt();Gn(c,a);for(let d=0;d<this.path.length;d++){const u=this.path[d];!l&&u.options.layoutScroll&&u.scroll&&u!==u.root&&us(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),xo(u.latestValues)&&us(c,u.latestValues)}return xo(this.latestValues)&&us(c,this.latestValues),c}removeTransform(a){const l=zt();Gn(l,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!xo(d.latestValues))continue;ef(d.latestValues)&&d.updateSnapshot();const u=zt(),f=d.measurePageBox();Gn(u,f),Ab(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return xo(this.latestValues)&&Ab(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Xt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=Xt.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=zt(),this.targetWithTransforms=zt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ZI(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Gn(this.target,this.layout.layoutBox),Vy(this.target,this.targetDelta)):Gn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ef(this.parent.latestValues)||Fy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=zt(),this.relativeTargetOrigin=zt(),Vl(this.relativeTargetOrigin,l,c),Gn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Xt.timestamp&&(c=!1),c)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;Gn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;cI(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=zt());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(jb(this.prevProjectionDelta.x,this.projectionDelta.x),jb(this.prevProjectionDelta.y,this.projectionDelta.y)),Wi(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Fb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fs(),this.projectionDelta=fs(),this.projectionDeltaWithTransform=fs()}setAnimationOrigin(a,l=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},f=fs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=zt(),m=c?c.source:void 0,g=this.layout?this.layout.source:void 0,y=m!==g,b=this.getStack(),v=!b||b.members.length<=1,T=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(FD));this.animationProgress=0;let S;this.mixTargetDelta=C=>{const w=C/1e3;Yb(f.x,a.x,w),Yb(f.y,a.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vl(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_D(this.relativeTarget,this.relativeTargetOrigin,h,w),S&&TD(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=zt()),Gn(S,this.relativeTarget)),y&&(this.animationValues=u,bD(u,d,this.latestValues,w,T,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Pr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wt.update(()=>{Ul.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=vo(0)),this.currentAnimation=pD(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(OD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:u}=a;if(!(!l||!c||!d)){if(this!==a&&this.layout&&d&&Zb(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||zt();const f=sn(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const h=sn(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+h}Gn(l,c),us(l,u),Wi(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new kD),this.sharedNodes.get(a).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&pf("z",a,d,this.animationValues);for(let u=0;u<ff.length;u++)pf(`rotate${ff[u]}`,a,d,this.animationValues),pf(`skew${ff[u]}`,a,d,this.animationValues);a.render();for(const u in d)a.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);a.scheduleRender()}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Wl(l?.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Wl(l?.pointerEvents)||""),this.hasProjected&&!xo(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let f=ED(this.projectionDeltaWithTransform,this.treeScale,u);c&&(f=c(u,f)),a.transform=f;const{x:h,y:m}=this.projectionDelta;a.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,d.animationValues?a.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:a.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in Uu){if(u[g]===void 0)continue;const{correct:y,applyTo:b,isCSSVariable:v}=Uu[g],T=f==="none"?u[g]:y(u[g],d);if(b){const S=b.length;for(let C=0;C<S;C++)a[b[C]]=T}else v?this.options.visualElement.renderState.vars[g]=T:a[g]=T}this.options.layoutId&&(a.pointerEvents=d===this?Wl(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(Vb),this.root.sharedNodes.clear()}}}function PD(e){e.updateLayout()}function jD(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;o==="size"?Bn(u=>{const f=s?t.measuredBox[u]:t.layoutBox[u],h=sn(f);f.min=n[u].min,f.max=f.min+h}):Zb(o,t.layoutBox,n)&&Bn(u=>{const f=s?t.measuredBox[u]:t.layoutBox[u],h=sn(n[u]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const a=fs();Wi(a,n,t.layoutBox);const l=fs();s?Wi(l,e.applyTransform(r,!0),t.measuredBox):Wi(l,n,t.layoutBox);const c=!Nb(a);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:f,layout:h}=u;if(f&&h){const m=zt();Vl(m,t.layoutBox,f.layoutBox);const g=zt();Vl(g,n,h.layoutBox),Bb(m,g)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function ID(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function DD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function AD(e){e.clearSnapshot()}function Vb(e){e.clearMeasurements()}function Hb(e){e.isLayoutDirty=!1}function RD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ub(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ND(e){e.resolveTargetDelta()}function $D(e){e.calcProjection()}function LD(e){e.resetSkewAndRotation()}function BD(e){e.removeLeadSnapshot()}function Yb(e,t,n){e.translate=Et(t.translate,0,n),e.scale=Et(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function qb(e,t,n,r){e.min=Et(t.min,n.min,r),e.max=Et(t.max,n.max,r)}function _D(e,t,n,r){qb(e.x,t.x,n.x,r),qb(e.y,t.y,n.y,r)}function FD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const WD={duration:.45,ease:[.4,0,.1,1]},Gb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Kb=Gb("applewebkit/")&&!Gb("chrome/")?Math.round:$n;function Xb(e){e.min=Kb(e.min),e.max=Kb(e.max)}function zD(e){Xb(e.x),Xb(e.y)}function Zb(e,t,n){return e==="position"||e==="preserve-aspect"&&!XI(_b(t),_b(n),.2)}function VD(e){return e!==e.root&&e.scroll?.wasRoot}const HD=zb({attachResizeListener:(e,t)=>Bi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hf={current:void 0},Jb=zb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hf.current){const e=new HD({});e.mount(window),e.setOptions({layoutScroll:!0}),hf.current=e}return hf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),UD={pan:{Feature:uD},drag:{Feature:dD,ProjectionNode:Jb,MeasureLayout:Cb}};function Qb(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&wt.postRender(()=>s(t,_i(t)))}class YD extends Xr{mount(){const{current:t}=this.node;t&&(this.unmount=hj(t,(n,r)=>(Qb(this.node,r,"Start"),o=>Qb(this.node,o,"End"))))}unmount(){}}class qD extends Xr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ei(Bi(this.node.current,"focus",()=>this.onFocus()),Bi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ev(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&wt.postRender(()=>s(t,_i(t)))}class GD extends Xr{mount(){const{current:t}=this.node;t&&(this.unmount=yj(t,(n,r)=>(ev(this.node,r,"Start"),(o,{success:s})=>ev(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const mf=new WeakMap,gf=new WeakMap,KD=e=>{const t=mf.get(e.target);t&&t(e)},XD=e=>{e.forEach(KD)};function ZD({root:e,...t}){const n=e||document;gf.has(n)||gf.set(n,{});const r=gf.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(XD,{root:e,...t})),r[o]}function JD(e,t,n){const r=ZD(t);return mf.set(e,n),r.observe(e),()=>{mf.delete(e),r.unobserve(e)}}const QD={some:0,all:1};class eA extends Xr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:QD[o]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),h=d?u:f;h&&h(c)};return JD(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(tA(t,n))&&this.startObserver()}unmount(){}}function tA({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const nA={...HI,...{inView:{Feature:eA},tap:{Feature:GD},focus:{Feature:qD},hover:{Feature:YD}},...UD,...{layout:{ProjectionNode:Jb,MeasureLayout:Cb}}},Zr=iI(nA,vI);function tv(e){const t=Yr(()=>vo(e)),{isStatic:n}=x.useContext(Nl);if(n){const[,r]=x.useState(e);x.useEffect(()=>t.on("change",r),[])}return t}function nv(e,t){const n=tv(t()),r=()=>n.set(t());return r(),tu(()=>{const o=()=>wt.preRender(r,!1,!0),s=e.map(a=>a.on("change",o));return()=>{s.forEach(a=>a()),Pr(r)}}),n}function rA(e){Ri.current=[],e();const t=nv(Ri.current,e);return Ri.current=void 0,t}function oA(e,t,n,r){if(typeof e=="function")return rA(e);const s=typeof t=="function"?t:vj(t,n,r);return Array.isArray(e)?rv(e,s):rv([e],([a])=>s(a))}function rv(e,t){const n=Yr(()=>[]);return nv(e,()=>{n.length=0;const r=e.length;for(let o=0;o<r;o++)n[o]=e[o].get();return t(n)})}class sA{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,n){this.componentControls.forEach(r=>{r.start(t.nativeEvent||t,n)})}cancel(){this.componentControls.forEach(t=>{t.cancel()})}stop(){this.componentControls.forEach(t=>{t.stop()})}}const iA=()=>new sA;function ov(){return Yr(iA)}const sv=x.createContext(null);function aA(e,t,n,r){if(!r)return e;const o=e.findIndex(u=>u.value===t);if(o===-1)return e;const s=r>0?1:-1,a=e[o+s];if(!a)return e;const l=e[o],c=a.layout,d=Et(c.min,c.max,.5);return s===1&&l.layout.max+n>d||s===-1&&l.layout.min+n<d?OM(e,o,o+s):e}function lA({children:e,as:t="ul",axis:n="y",onReorder:r,values:o,...s},a){const l=Yr(()=>Zr[t]),c=[],d=x.useRef(!1),u=x.useRef(null);Yn(!!o,"Reorder.Group must be provided a values prop","reorder-values");const f={axis:n,groupRef:u,registerItem:(g,y)=>{const b=c.findIndex(v=>g===v.value);b!==-1?c[b].layout=y[n]:c.push({value:g,layout:y[n]}),c.sort(uA)},updateOrder:(g,y,b)=>{if(d.current)return;const v=aA(c,g,y,b);c!==v&&(d.current=!0,r(v.map(dA).filter(T=>o.indexOf(T)!==-1)))}};x.useEffect(()=>{d.current=!1});const h=g=>{u.current=g,typeof a=="function"?a(g):a&&(a.current=g)},m={overflowAnchor:"none",...s.style};return p.jsx(l,{...s,style:m,ref:h,ignoreStrict:!0,children:p.jsx(sv.Provider,{value:f,children:e})})}const cA=x.forwardRef(lA);function dA(e){return e.value}function uA(e,t){return e.layout.min-t.layout.min}const Yl=50,iv=25,fA=new Set(["auto","scroll"]),zi=new WeakMap,Vi=new WeakMap;let Hi=null;function pA(){if(Hi){const e=yf(Hi,"y");e&&(Vi.delete(e),zi.delete(e));const t=yf(Hi,"x");t&&t!==e&&(Vi.delete(t),zi.delete(t)),Hi=null}}function hA(e,t){const n=getComputedStyle(e),r=t==="x"?n.overflowX:n.overflowY;return fA.has(r)}function yf(e,t){let n=e?.parentElement;for(;n;){if(hA(n,t))return n;n=n.parentElement}return null}function mA(e,t,n){const r=t.getBoundingClientRect(),o=n==="x"?r.left:r.top,s=n==="x"?r.right:r.bottom,a=e-o,l=s-e;if(a<Yl){const c=1-a/Yl;return{amount:-iv*c*c,edge:"start"}}else if(l<Yl){const c=1-l/Yl;return{amount:iv*c*c,edge:"end"}}return{amount:0,edge:null}}function gA(e,t,n,r){if(!e)return;Hi=e;const o=yf(e,n);if(!o)return;const{amount:s,edge:a}=mA(t,o,n);if(a===null){Vi.delete(o),zi.delete(o);return}if(Vi.get(o)!==a){if(!(a==="start"&&r<0||a==="end"&&r>0))return;Vi.set(o,a);const d=n==="x"?o.scrollWidth-o.clientWidth:o.scrollHeight-o.clientHeight;zi.set(o,d)}if(s>0){const c=zi.get(o);if((n==="x"?o.scrollLeft:o.scrollTop)>=c)return}n==="x"?o.scrollLeft+=s:o.scrollTop+=s}function av(e,t=0){return Zt(e)?e:tv(t)}function yA({children:e,style:t={},value:n,as:r="li",onDrag:o,onDragEnd:s,layout:a=!0,...l},c){const d=Yr(()=>Zr[r]),u=x.useContext(sv),f={x:av(t.x),y:av(t.y)},h=oA([f.x,f.y],([v,T])=>v||T?1:"unset");Yn(!!u,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:m,registerItem:g,updateOrder:y,groupRef:b}=u;return p.jsx(d,{drag:m,...l,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:h},layout:a,onDrag:(v,T)=>{const{velocity:S,point:C}=T,w=f[m].get();y(n,w,S[m]),gA(b.current,C[m],m,S[m]),o&&o(v,T)},onDragEnd:(v,T)=>{pA(),s&&s(v,T)},onLayoutMeasure:v=>{g(n,v)},ref:c,ignoreStrict:!0,children:e})}const lv=x.forwardRef(yA),Vt=({name:e,size:t=24,url:n,color:r="currentColor",style:o={},...s})=>{const{isPrimary:a}=s,l=n||Xe[e],d=gt().palette.mode==="dark",u=a?"invert(0%) brightness(200%)":d?"invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%)":"invert(48%) sepia(0%) saturate(0%) hue-rotate(181deg) brightness(95%) contrast(90%)";return l?p.jsx("img",{src:l,alt:`${e}-icon`,draggable:!1,style:{filter:u,...o},...s}):null},bA=({showOptions:e,setShowOptions:t,buttonRef:n,options:r,onClick:o})=>{const s=x.useRef(null);return x.useEffect(()=>{let a;return e&&(a=setTimeout(()=>{const l=c=>{s?.current&&!s?.current.contains(c.target)&&!n?.contains(c.target)&&t(!1)};document.addEventListener("mousedown",l),document._customLabelClickOutside=l},0)),()=>{clearTimeout(a),document._customLabelClickOutside&&(document.removeEventListener("mousedown",document._customLabelClickOutside),delete document._customLabelClickOutside)}},[e]),p.jsx(ui,{open:e,anchorEl:n,placement:"bottom",transition:!0,modifiers:[{name:"offset",options:{offset:[0,0]}},{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:a})=>{a.styles.popper.width=`${a.rects.reference.width}px`}}],style:{zIndex:1300},ref:s,children:({TransitionProps:a})=>p.jsx(hi,{...a,timeout:100,children:p.jsx(se,{sx:{background:l=>l.palette.primary.appBackground,border:l=>`1px solid ${l.palette.primary.notifyBorderColor}`,borderRadius:"0.7rem",width:"100%",padding:"0.3rem",maxHeight:"20rem",overflowY:"auto"},children:p.jsx(se,{children:r?.map((l,c)=>p.jsx(mo,{sx:{opacity:1,pointerEvents:"auto",padding:"0rem",borderTop:c!==0?d=>`0.1rem solid ${d.palette.primary.notifyBorderColor}`:"none"},onClick:d=>{d.stopPropagation(),o(l)},children:p.jsx(Ge,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{p:"0.5rem"},children:p.jsx(Ge,{direction:"row",alignItems:"center",gap:"1rem",children:p.jsx(pt,{component:"h3",sx:{color:d=>d.palette.primary.notifyActiveText,fontWeight:"300",fontSize:"1.1rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l.label})})})},c))})})})})},cv=({styles:e,label:t,helpText:n,disabled:r,onClick:o,...s})=>{const a=gt(),{t:l}=x.useContext(an);let c=l(t)?.length*(l(t)?.length>=10?6.5:8.5)+42||0;c=s?.options?c+15:c;const[d,u]=x.useState(!1),f=x.useRef(null),[h,m]=x.useState(!1),[g,y]=x.useState(e?.isAnimate),[b,v]=x.useState(!1);return p.jsx(Ti,{title:l(n)??l(t),placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.6rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:p.jsxs(Zr.button,{ref:f,onFocus:()=>v(!0),onBlur:()=>v(!1),onMouseEnter:()=>g&&u(!0),onMouseLeave:()=>{g&&u(!1),v(!1)},initial:{width:e?.width||(!g&&t?`${c/10}rem`:"3.2rem"),borderRadius:"0.7rem"},animate:{width:g?`${d?c/9:3.2}rem`:t?e?.width??`${c/10}rem`:"3.2rem"},whileHover:{backgroundColor:e?.hover?.backgroundColor,color:e?.hover?.color},transition:{duration:.2,ease:"easeInOut"},style:{height:"3.2rem",outline:"none",overflow:"hidden",backgroundColor:e?.variant!=="outlined"?e?.colorType==="secondary"?a.palette.brandColor.blue:e?.colorType==="danger"?a.palette.brandColor.red:e?.colorType==="empty"?a.palette.primary.notifyButtonBackground:a.palette.brandColor.orange:a.palette.primary.notifyBackground,border:e?.variant==="outlined"||e?.colorType==="empty"?b?`0.1rem solid ${a.palette.brandColor.orange}`:`0.1rem solid ${a.palette.primary.notifyBorderColor}`:b?`0.1rem solid ${a.palette.brandColor.orange}`:"none",display:"flex",alignItems:"center",gap:d||!g?"0.5rem":0,color:e?.variant==="outlined"||e?.colorType==="empty"?a.palette.primary.notifyTextColor:"white",justifyContent:"center",padding:d||!g?"1.2rem":"0.8rem",whiteSpace:"nowrap",opacity:r?.5:1,cursor:r?"auto":"pointer",...e},disabled:r,layout:!0,onClick:()=>{v(!1),!s?.options&&o(),s?.options&&(m(T=>!T),y(h))},...s,children:[e?.icon&&(!e?.iconPosition||e?.iconPosition==="start")&&p.jsx(Vt,{url:e?.icon,isPrimary:e?.iconPrimary}),t&&p.jsxs(Zr.div,{layout:!0,initial:{opacity:0,width:0},animate:{opacity:d||!g?1:0,width:d||!g?"auto":0},transition:{duration:.2,ease:"easeInOut",delay:d?.1:0},style:{overflow:"hidden",whiteSpace:"nowrap",display:"flex",justifyContent:"center",gap:"0.8rem"},children:[p.jsx(pt,{sx:{fontSize:"1.1rem"},children:l(t)}),s?.options&&(h?p.jsx(Vt,{url:Xe.ArrowUpLight}):p.jsx(Vt,{url:Xe.ArrowDownLight}))]}),e?.iconPosition==="end"&&p.jsx(Vt,{url:e?.icon,isPrimary:e?.iconPrimary}),p.jsx(bA,{showOptions:h,buttonRef:f?.current,setShowOptions:m,options:s?.options,onClick:o})]})})};cv.propTypes={styles:i.object.isRequired,label:i.string};function jr({...e}){return p.jsx(Gt,{children:p.jsx(cv,{...e})})}function gr({...e}){return p.jsx(Gt,{children:p.jsx(lg,{sx:{p:"0!important"},id:e?.id,icon:p.jsx(se,{component:"img",src:Xe.Uncheck}),checkedIcon:p.jsx(se,{component:"img",src:Xe.Check}),...e})})}const vA=({iconUrl:e,placeholder:t,...n})=>{const[r,o]=x.useState(!1),[s,a]=x.useState(!1),l=gt(),{t:c}=x.useContext(an);return p.jsxs(se,{sx:{display:"flex",alignItems:"center",border:`0.1rem solid ${s?l.palette.brandColor.orange:l.palette.primary.notifyBorderColor}`,borderRadius:"0.7rem",backgroundColor:l.palette.primary.notifyBackground,height:"3.2rem",paddingLeft:"0.5rem",overflow:"hidden",transition:"border 0.2s ease"},children:[e&&p.jsx(se,{component:Vt,url:e,sx:{width:"1.3rem",height:"1.3rem",margin:"0 0.5rem 0.2rem 0.5rem",userSelect:"none",pointerEvents:"none",objectFit:"contain"},draggable:!1}),p.jsx(Zr.input,{type:"text",onFocus:()=>{a(!0),o(!0)},onBlur:()=>{a(!1),o(!1)},initial:{width:"10rem"},animate:{width:r?"13rem":"10rem"},transition:{duration:.3,ease:"easeInOut"},style:{height:"3.007rem",outline:"none",boxShadow:"none",fontSize:"1.1rem",border:"none",backgroundColor:"transparent",padding:0,color:l.palette.primary.notifyTextColor,flex:1,transition:"height 0.1s ease"},placeholder:c(t),...n})]})};function dv({...e}){return p.jsx(Gt,{children:p.jsx(vA,{...e})})}const xA=te(Jd)(({theme:e})=>({width:"100%!important","& .MuiFormHelperText-root":{margin:0},"& .MuiInputBase-root.MuiOutlinedInput-root.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.brandColor.red},"& .MuiInputLabel-root.Mui-error":{color:e.palette.brandColor.red},"& .MuiFilledInput-root":{borderRadius:"0.8rem"},"& .MuiOutlinedInput-root":{fontSize:"1.1rem",color:e.palette.primary.notifyTextColor,borderRadius:"0.8rem",backgroundColor:`${e.palette.primary.notifyBackground}`,padding:"0.3rem","& fieldset":{borderColor:`${e.palette.primary.notifyBorderColor}`},"&:hover fieldset":{borderColor:`${e.palette.primary.notifyBorderColor}`},"&.Mui-focused fieldset":{borderColor:`${e.palette.brandColor.orange}`,borderWidth:"0.12rem"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:`${e.palette.primary.notifyBorderColor}`}},"& .MuiInputBase-input":{color:e.palette.primary.notifyActiveText,fontSize:"1.1rem",height:"2.6rem",padding:"0.3rem 1rem"},"& .MuiInputBase-input.Mui-disabled":{color:`${e.palette.primary.notifyTextColor} !important`,cursor:"not-allowed","-webkit-text-fill-color":`${e.palette.primary.notifyTextColor} !important`,opacity:1},"& .Mui-disabled":{color:`${e.palette.primary.notifyTextColor} !important`,overflow:"hidden",opacity:1},"& .Mui-disabled:before":{border:"none !important"},"& .MuiInputBase-input::placeholder":{color:e.palette.primary.notifyTextColor,fontSize:"1.1rem"},"& .MuiInputLabel-root":{paddingLeft:"0.5rem",backgroundColor:`${e.palette.primary.notifyBackground}!important`,color:e.palette.primary.notifyTextColor,fontSize:"1.1rem",top:"1.1rem",left:"1rem",transform:"none","&.Mui-focused":{color:e.palette.primary.notifyTextColor}},"& .MuiInputLabel-shrink":{top:"0",backgroundColor:`${e.palette.primary.notifyBackground}!important`,padding:"0 0.4rem",transform:"translateY(-50%) translateX(0rem)"},"& .MuiFormHelperText-root.Mui-error":{color:`${e.palette.brandColor.red} !important`,paddingLeft:"0.8rem",paddingTop:"0.2rem",fontSize:"0.9rem"},"& .MuiInputBase-input::placeholder":{color:e.palette.primary.notifyTextColor,opacity:1},"& .MuiFormLabel-asterisk":{color:`${e.palette.brandColor.red} !important`},"& input:-webkit-autofill":{WebkitBoxShadow:"0 0 0 10rem transparent inset !important",WebkitTextFillColor:`${e.palette.primary.notifyActiveText}!important`,caretColor:e.palette.primary.notifyActiveText,transition:"background-color 9999s ease-in-out 0s !important"},"& input:-webkit-autofill:hover ":{WebkitBoxShadow:"0 0 0 10rem transparent inset !important",WebkitTextFillColor:`${e.palette.primary.notifyActiveText}!important`}})),Ui=({showBorder:e=!0,...t})=>p.jsx(Gt,{children:p.jsx(xA,{variant:"outlined",inputProps:{style:{cursor:t?.disabled?"not-allowed":"pointer"}},slotProps:{htmlInput:{title:""}},sx:{"& .MuiFormLabel-asterisk.MuiInputLabel-asterisk":{"&::after":{content:'""',marginLeft:"4px",color:"red"}},cursor:t?.disabled?"not-allowed":"pointer",opacity:t?.disabled?.5:1,...!e&&{"& .MuiOutlinedInput-root":{borderRadius:0,"& fieldset":{borderColor:"transparent"},"&:hover fieldset":{borderColor:"transparent"},"&.Mui-focused fieldset":{borderColor:"transparent",borderWidth:"0.15rem"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"}}},...t.styles},...t})}),ql=e=>{const t=localStorage.getItem(e);return t?JSON.parse(t):""},wA=(e,t)=>{const n=new Date,r=new Date(e);let o=n-r;o<0&&(o=0);const s=Math.floor(o/1e3),a=Math.floor(s/60);return s<60?`${s} ${t("LABEL_SEC_AGO")}`:a<60?`${a} ${t("LABEL_MIN_AGO")}`:r.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})},Gl=e=>e.sort((n,r)=>{let o=new Date(n.createdAt),s=new Date(r.createdAt);return o===s?0:o>s?-1:1}).sort((n,r)=>n.isRead===r.isRead?0:r.isRead?-1:1),uv=e=>{let t=0;for(let n=0;n<e?.length;n++)e[n].isRead||t++;return t},SA=e=>{const t=[];return e?.forEach(n=>{n.isRead||t.push(n.id)}),t},CA=(e,t,n)=>e?.filter(o=>t.some(s=>o[s]?.toLowerCase()?.includes(n?.trim()?.toLowerCase()))),TA=(e,t,n)=>e?.sort((o,s)=>n==="asc"?o[t].toLowerCase().localeCompare(s[t].toLowerCase()):s[t].toLowerCase().localeCompare(o[t].toLowerCase())),bf=(e,t,n)=>e?.slice((t-1)*n,t*n),kA=e=>{const t=e?.reduce((r,o)=>{const s=new Date(o?.createdAt),a=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(s);return r[a]||(r[a]=[]),r[a].push(o),r},{});return Object.fromEntries(Object.entries(t).sort(([r],[o])=>new Date(o)-new Date(r)))},EA=(e,t)=>{if(!Array.isArray(e))return[];const n=t?.toLowerCase?.().trim();if(!n)return e;const r=o=>o.map(s=>{const a=s?.label?.toLowerCase?.().includes(n);let l=[];return Array.isArray(s.children)&&(l=r(s.children)),a||l.length>0?{...s,children:l.length>0?l:s.children}:null}).filter(Boolean);return r(e)};async function OA(e){switch(e.split("-")[0]){case"tr":return(await Promise.resolve().then(()=>i4)).tr;case"nl":return(await Promise.resolve().then(()=>IR)).nl;default:return(await Promise.resolve().then(()=>k6)).enUS}}function fv(e){if(typeof e=="number")return e;if(typeof e=="string"){const t=e.trim();if(t.endsWith("px"))return parseFloat(t);if(t.endsWith("rem")){const r=parseFloat(t),o=typeof window<"u"?parseFloat(getComputedStyle(document.documentElement).fontSize):16;return r*o}const n=parseFloat(t);return isNaN(n)?0:n}return 0}const Ve={LOADING:"LOADING",SUCCESS:"SUCCESS",ERROR:"ERROR",MARK_ALL_AS_READ:"MARK_ALL_AS_READ",SET_GRID_DATA:"SET_GRID_DATA",PREV_GRID_DEF:"PREV_GRID_DEF",HAS_SETTING_CHANGE:"HAS_SETTING_CHANGE",TRIGGER_API:"TRIGGER_API",SET_MODE:"SET_MODE",SET_ACTIVE_TAB:"SET_ACTIVE_TAB"},yr={SWR:"SWR",UNHANDLED:"UNHANDLED",NRF:"NRF"},Yi=x.createContext(null),hs=x.createContext(null);function pv({children:e}){const[t,n]=x.useReducer(MA,PA);return p.jsx(Yi.Provider,{value:t,children:p.jsx(hs.Provider,{value:n,children:p.jsx(Gt,{children:e})})})}function MA(e,t){switch(t.type){case Ve.SET_GRID_DATA:case Ve.HAS_SETTING_CHANGE:case Ve.TRIGGER_API:case Ve.PREV_GRID_DEF:return{...e,...t.payload};default:throw new Error(`${yr.UNHANDLED}: ${t}`)}}const PA={visibleGridColumns:[],prevGridColumns:{},hasChange:!1,triggerApi:!1};pv.propTypes={children:i.node.isRequired};const jA=({options:e,isDraggable:t})=>{const n=x.useRef(null),[r,o]=x.useState(!1),[s,a]=x.useState(null),[l,c]=x.useState(e),[d,u]=x.useState(!1),f=t?x.useContext(hs):null,{hasChange:h,visibleGridColumns:m}=t?x.useContext(Yi):{hasChange:!1,visibleGridColumns:[]};x.useEffect(()=>{c(e?.sort((T,S)=>T.sequenceId-S.sequenceId))},[e]);const g=T=>{t&&a(T)},y=T=>{t&&T.preventDefault()},b=T=>{if(!t||s===null||s===T)return;const S=[...l],C=S.findIndex(P=>P.sequenceId===T),w=S.findIndex(P=>P.sequenceId===s);if(C===-1||w===-1)console.warn("Invalid drag or drop index",{toInsertAtIndex:C,draggedIndex:s});else{const[P]=S.splice(w,1);S.splice(C,0,P)}const k=l.slice().sort((P,j)=>P.sequenceId-j.sequenceId).map(P=>P.sequenceId),O=S.map((P,j)=>({...P,sequenceId:k[j]??P.sequenceId}));c(O),f?.({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:O}}),f?.({type:Ve.HAS_SETTING_CHANGE,payload:{hasChange:!0}}),a(null)},v=()=>{t&&h&&f?.({type:Ve.TRIGGER_API,payload:{triggerApi:!0}})};return x.useEffect(()=>{if(n.current){const T=n.current.getBoundingClientRect(),S=window.innerHeight-T.bottom;u(S<200)}},[r]),{hasChange:h,closeDropdown:v,handleDragStart:g,handleDragOver:y,handleDrop:b}},an=x.createContext({t:e=>e}),ms=({isDraggable:e=!1,showSearch:t=!1,options:n=[],value:r,isMulti:o=!1,selectAll:s=!1,selectOnClose:a=!1,isManageColumn:l,isLoadingMore:c=!1,handleLoadMore:d,handleSearchFuncation:u,...f})=>{const{t:h}=x.useContext(an),[m,g]=x.useState(!1),[y,b]=x.useState(null),[v,T]=x.useState(""),[S,C]=x.useState([]),[w,k]=x.useState("bottom-start"),[O,P]=x.useState([]),[j,A]=x.useState(null),[L,E]=x.useState(!1),R=x.useRef(null),M=x.useRef(null),N=x.useRef(null),$=x.useRef(!1),F=x.useRef(null),H=x.useRef(null),z=x.useRef(null),[_,D]=x.useState(0),V=x.useRef([]),{closeDropdown:U,hasChange:G,handleDragStart:X,handleDrop:q}=jA({options:n,isDraggable:e});x.useEffect(()=>{C(n)},[n]),x.useEffect(()=>{const W=S?.filter(ee=>!ee?.isMandatory||ee?.isMandatory&&ee?.showHide===!0);P(W)},[S]);const K=(W,ee)=>{if(!o){f?.onChange?.(W),g(!1),D(0);return}let B=JSON.parse(JSON.stringify(r));if(!W)B=n.length===r.length?[]:n.map(Q=>({...Q}));else if(ee)if(l)B=B.map(ue=>{if(!ue.children)return ue;let Q=ue?.children?.length?[...ue?.children]:[];return Q.findIndex(we=>we.key===W.key)>-1?Q=Q.filter(we=>we.key!==W.key):Q=[...Q,W],{...ue,children:Q}});else{const ue=ee?.id,Q=W?.id,ne=W?.key,we=B.findIndex(ke=>ke.id===ue);if(we>-1){const ke=B[we],Ce=ke.children||[],_e=Ce.some(Ee=>Ee.id===Q&&Ee.key===ne)?Ce.filter(Ee=>!(Ee.id===Q&&Ee.key===ne)):[...Ce,W];B[we]={...ke,children:_e}}else B.push({id:ue,label:ee?.label,value:ee?.value,children:[W]})}else B=B.some(Q=>Q.id===W.id)?B.filter(Q=>Q.id!==W.id):[...B,{...W}];b(B),f?.onChange?.(B)},ce=x.useMemo(()=>Qs(async W=>{if(c)try{return await u(W)}catch(ee){console.error("Search API Error",ee);return}},1e3),[]);x.useEffect(()=>{ce(v)},[v]),x.useEffect(()=>{const W=EA(n,v);C(W)},[v,n]);const de=W=>{T(W.target.value)};return x.useEffect(()=>{const W=ee=>{N.current&&!N.current.contains(ee.target)&&!R.current?.contains(ee.target)&&!M.current?.contains(ee.target)&&(g(!1),D(0),T(""),U(),a&&f?.onChange?.(y,"closed"),$.current=!0,setTimeout(()=>{$.current=!1},150))};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[m,G,y]),x.useEffect(()=>{const W=V.current[_];W&&W.scrollIntoView({block:"nearest",behavior:"smooth"})},[_]),x.useEffect(()=>{if(m&&!t){const W=setTimeout(()=>{F.current&&F.current.focus()},0);return()=>clearTimeout(W)}},[m,t]),x.useEffect(()=>{if(!m||typeof d!="function")return;const W=setTimeout(()=>{const ee=F.current;let B=!1;if(!ee)return;const ue=async()=>{const Q=ee.scrollHeight-ee.scrollTop<=ee.clientHeight+1;if(c&&Q&&!B){B=!0;try{E(!0);const ne=await d();A(ne?.data),ne&&E(!1)}catch(ne){console.error("Error loading more options:",ne),E(!1)}}};return ee.addEventListener("scroll",ue),()=>ee.removeEventListener("scroll",ue)},100);return()=>clearTimeout(W)},[m,j]),p.jsxs(p.Fragment,{children:[p.jsx(se,{ref:M,sx:{position:"relative",display:"inline-block",width:"100%"},children:p.jsx(Ui,{inputProps:{readOnly:!0,tabIndex:0,inputMode:"none",role:"combobox","aria-haspopup":"listbox","aria-expanded":m,style:{cursor:f?.disabled?"not-allowed":"pointer"}},InputLabelProps:{shrink:r?.length&&!f?.placeholder},InputProps:{endAdornment:p.jsx(wl,{position:"start",children:p.jsx(Ge,{direction:"row",alignItems:"center",gap:"0.5rem",sx:{cursor:f?.disabled?"not-allowed":"pointer"},children:p.jsx(se,{component:"img",src:m?Xe.ArrowSelectDown:Xe.ArrowSelectUp})})}),startAdornment:f?.styles?.icon&&p.jsx(wl,{position:"start",sx:{pl:1,cursor:f?.disabled?"not-allowed":"pointer"},children:p.jsx(Vt,{url:f?.styles?.icon})})},sx:{opacity:f?.disabled?.5:1,"& .MuiOutlinedInput-root":{borderBottomLeftRadius:m&&w.startsWith("bottom")?0:"0.7rem",borderBottomRightRadius:m&&w.startsWith("bottom")?0:"0.7rem",borderTopLeftRadius:m&&w.startsWith("top")?0:"0.7rem",borderTopRightRadius:m&&w.startsWith("top")?0:"0.7rem"},"& .MuiInputBase-input":{caretColor:"transparent",userSelect:"none",color:W=>`${f?.placeholder?W.palette.primary.notifyTextColor:W.palette.primary.notifyActiveText}!important`}},onKeyDown:W=>{["Tab","ArrowDown","ArrowUp","Escape"].includes(W.key)||(W.preventDefault(),W.key==="Enter"&&(W.preventDefault(),g(ee=>!ee),D(s?-1:0)))},onMouseDown:W=>W.preventDefault(),onClick:W=>{f?.disabled||(W.preventDefault(),U(),a&&f?.onChange?.(y,"closed"),!$.current&&(g(ee=>!ee),m&&D(0)))},...f?.placeholder?{}:{value:Array.isArray(r)?Array.isArray(n)&&r.length===n.length&&n.length?h("LABEL_ALL_SELECTED",{count:n.length}):r.map(W=>W?.label).filter(Boolean).join(", "):r?.label||r||""},label:h(f?.label),...f})}),p.jsx(ui,{open:m,anchorEl:M.current,placement:"bottom-start",style:{zIndex:99999},ref:N,autoFocus:!0,tabIndex:0,modifiers:[{name:"offset",options:{offset:[0,0]}},{name:"updatePlacement",enabled:!0,phase:"afterWrite",fn({state:W}){k(W.placement)}}],children:p.jsxs(se,{role:"listbox",ref:F,onDragStart:W=>W.preventDefault(),sx:{userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",background:W=>W.palette.primary.appBackground,border:W=>`1px solid ${W.palette.primary.notifyBorderColor}`,borderTop:"none",borderRadius:w.startsWith("bottom")?"0 0 0.7rem 0.7rem":"0.7rem 0.7rem 0 0",width:M.current?.offsetWidth||"auto",maxHeight:"20rem",overflowY:"auto",outline:"none",scrollbarWidth:"thin"},tabIndex:0,autoFocus:!0,onKeyDown:W=>{if(W.key==="ArrowDown"||W.key==="Tab")W.preventDefault(),D(ee=>Math.min(ee+1,O.length-1));else if(W.key==="ArrowUp")W.preventDefault(),D(ee=>Math.max(ee-1,0));else if(W.key==="Enter"){W.preventDefault();const ee=O[_];ee&&K(ee)}else W.key==="Escape"&&(M.current.focus(),W.preventDefault(),g(!1),D(0))},children:[t&&p.jsx(Ui,{inputRef:H,type:"text",placeholder:h("SEARCH"),value:v,variant:"standard",autoFocus:!0,size:"small",draggable:!1,InputProps:{readOnly:!1,disableUnderline:!0,tabIndex:0,inputMode:"none"},onChange:de,sx:{position:"sticky",top:0,zIndex:1,backgroundColor:W=>W.palette.primary.appBackground,fontSize:"1.1rem",borderBottom:W=>`1px solid ${W.palette.primary.notifyBorderColor}`,"& .MuiInputBase-input":{padding:"0.3rem 1.3rem!important"}}}),O?.length>0?p.jsxs(p.Fragment,{children:[o&&s&&p.jsx(mo,{ref:z,autoFocus:!0,tabIndex:0,sx:{padding:"0.8rem 1.2rem",cursor:"pointer",border:W=>_===-1&&`0.1rem solid ${W.palette.brandColor.orange}`},onClick:W=>{W.stopPropagation(),K()},children:p.jsxs(Ge,{direction:"row",alignItems:"center",gap:"1rem",children:[p.jsx(gr,{sx:{p:0},draggable:!1,checked:n?.length>0&&r?.length===n?.length}),p.jsx(pt,{component:"h3",sx:{color:W=>W.palette.primary.notifyTextColor,fontSize:"1.1rem"},children:h("LABEL_SELECT_ALL")})]})}),O.map((W,ee)=>(!W?.isMandatory||W?.isMandatory&&W?.showHide===!0)&&p.jsxs(x.Fragment,{children:[p.jsx(mo,{"data-option-index":ee,autoFocus:!0,sx:{opacity:W?.isMandatory&&!W?.showHide||W?.disabled?.5:1,cursor:"pointer",pointerEvents:W?.disabled?"none":"auto",padding:"0.8rem 1.2rem",borderTop:ee!==0||s?B=>`0.1rem solid ${B.palette.primary.notifyBorderColor}`:"none",border:B=>ee===_&&`0.1rem solid ${B.palette.brandColor.orange}`},draggable:!1,onDragStart:W?.isMandatory?B=>{B.preventDefault()}:()=>X(W?.sequenceId),onDragOver:B=>{W?.isMandatory||B.preventDefault()},onDrop:B=>{W?.isMandatory?B.preventDefault():q(W?.sequenceId)},onClick:B=>{B.stopPropagation(),(!W?.isMandatory||W?.isMandatory&&W?.showHide===!0)&&(W?.showCheckbox||!W?.children?.length)&&K(W)},children:p.jsx(Ge,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:"1rem",width:"100%",draggable:!1,children:p.jsxs(Ge,{draggable:!1,direction:"row",alignItems:"center",gap:"1rem",sx:{minWidth:0,flex:1},children:[o&&(!W?.children?.length||W?.showCheckbox)&&p.jsx(gr,{draggable:!1,sx:{p:0},checked:r?.some(B=>B.id===W.id)}),p.jsx(pt,{draggable:!1,component:"h3",noWrap:!0,sx:{color:B=>W?.children?.length&&!W?.showCheckbox&&!W.showInHierarchy?B.palette.primary.notifyActiveText:B.palette.primary.notifyTextColor,fontWeight:W?.children?.length&&!W?.showCheckbox?"500":"300",fontSize:"1.1rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1},children:W.label})]})})}),W.children?.map((B,ue)=>(!B?.isMandatory||B?.isMandatory&&B?.showHide===!0&&B?.showInHierarchy)&&p.jsx(mo,{"data-option-index":ue,autoFocus:!0,sx:{cursor:"pointer",opacity:B?.disabled?.5:1,pointerEvents:B?.disabled?"none":"auto",padding:"0.8rem 1.2rem",pl:"1.5rem",borderTop:Q=>`0.1rem solid ${Q.palette.primary.notifyBorderColor}`},draggable:!1,onDragStart:()=>X(ee,ue),onDragOver:Q=>{B?.isMandatory||Q.preventDefault()},onDrop:Q=>{B?.isMandatory||q(ee,ue)},onClick:Q=>{Q.stopPropagation(),K(B,W)},children:p.jsxs(Ge,{direction:"row",alignItems:"center",gap:"1rem",children:[o&&W?.showChildCheckbox&&p.jsx(gr,{sx:{p:0},checked:r.some(Q=>Q.children?.some(ne=>ne.id===B.id))}),p.jsx(pt,{component:"h4",sx:{color:Q=>Q.palette.primary.notifyTextColor,fontSize:"1.05rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:B.label})]})},`${ee}-${ue}`))]},ee)),L&&p.jsx(Uo,{sx:{color:"blue"},size:45})]}):p.jsx(se,{autoFocus:!0,sx:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0.1rem 1rem",height:"3rem"},children:p.jsx(pt,{component:"h3",sx:{color:W=>W.palette.primary.notifyTextColor,fontSize:"1.1rem"},children:h("NO_OPTIONS")})})]})})]})};function hv({...e}){return p.jsx(Gt,{children:p.jsx(ms,{...e})})}const IA=te(se)(({theme:e,height:t})=>({borderRadius:"0.4rem",position:"relative",background:e.palette.primary.notifyButtonBackground,display:"flex",height:t||"2.5rem"})),DA=te(se)(({theme:e})=>({borderRadius:"0.4rem",position:"absolute",background:e.palette.primary.notifyBackground,border:`0.1rem solid ${e.palette.primary.notifyBorderColor}`,transition:"all 0.5s ease"})),mv=te(gl)(({theme:e})=>({borderRadius:"0.4rem",fontWeight:"400",transition:"all 0.2s 0.1s ease",padding:"0.4rem 0.8rem",fontSize:"1rem",textTransform:"none",zIndex:1,"&:hover":{background:"transparent",boxShadow:"none"}})),AA=({isChartType:e,setIsChartType:t,leftSwitchText:n,rigthSwitchText:r,disabled:o,height:s})=>{const[a,l]=x.useState(0),[c,d]=x.useState(0),{t:u}=x.useContext(an),f=x.useRef(null),h=x.useRef(null);return x.useLayoutEffect(()=>{if(!f.current||!h.current)return;const m=()=>{const y=e?h.current:f.current;l(y.offsetWidth),d(y.offsetLeft)};m();const g=new ResizeObserver(m);return g.observe(f.current),g.observe(h.current),()=>g.disconnect()},[e]),p.jsx(se,{sx:{display:"flex"},children:p.jsxs(IA,{height:s,children:[p.jsx(DA,{sx:{width:a,transform:`translateX(${c}px)`,height:s||"2.5rem"}}),p.jsx(mv,{ref:f,disableRipple:!0,sx:m=>({opacity:o?.5:1,cursor:`${o?"not-allowed":"pointer"}!important`,color:e?m.palette.brandColor.grey1:m.palette.primary.notifyActiveText}),onClick:()=>o?null:t(!1),children:u(n)}),p.jsx(mv,{ref:h,disableRipple:!0,sx:m=>({opacity:o?.5:1,cursor:`${o?"not-allowed":"pointer"}!important`,color:e?m.palette.primary.notifyActiveText:m.palette.brandColor.grey1}),onClick:()=>o?null:t(!0),children:u(r)})]})})};function gv({...e}){return p.jsx(Gt,{children:p.jsx(AA,{...e})})}const yv=6048e5,RA=864e5,bv=Symbol.for("constructDateFrom");function Ft(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&bv in e?e[bv](t):e instanceof Date?new e.constructor(t):new Date(t)}function xt(e,t){return Ft(t||e,e)}function vv(e,t,n){const r=xt(e,n?.in);return isNaN(t)?Ft(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function xv(e,t,n){const r=xt(e,n?.in);if(isNaN(t))return Ft(e,NaN);if(!t)return r;const o=r.getDate(),s=Ft(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const a=s.getDate();return o>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),o),r)}let NA={};function qi(){return NA}function gs(e,t){const n=qi(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=xt(e,t?.in),s=o.getDay(),a=(s<r?7:0)+s-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function Gi(e,t){return gs(e,{...t,weekStartsOn:1})}function wv(e,t){const n=xt(e,t?.in),r=n.getFullYear(),o=Ft(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Gi(o),a=Ft(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const l=Gi(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function Sv(e){const t=xt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ys(e,...t){const n=Ft.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Ki(e,t){const n=xt(e,t?.in);return n.setHours(0,0,0,0),n}function vf(e,t,n){const[r,o]=ys(n?.in,e,t),s=Ki(r),a=Ki(o),l=+s-Sv(s),c=+a-Sv(a);return Math.round((l-c)/RA)}function $A(e,t){const n=wv(e,t),r=Ft(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Gi(r)}function LA(e,t,n){return vv(e,t*7,n)}function BA(e,t,n){return xv(e,t*12,n)}function _A(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ft.bind(null,o));const s=xt(o,r);(!n||n<s||isNaN(+s))&&(n=s)}),Ft(r,n||NaN)}function FA(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ft.bind(null,o));const s=xt(o,r);(!n||n>s||isNaN(+s))&&(n=s)}),Ft(r,n||NaN)}function WA(e,t,n){const[r,o]=ys(n?.in,e,t);return+Ki(r)==+Ki(o)}function Cv(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zA(e){return!(!Cv(e)&&typeof e!="number"||isNaN(+xt(e)))}function Tv(e,t,n){const[r,o]=ys(n?.in,e,t),s=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return s*12+a}function VA(e,t){const n=xt(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function kv(e,t){const[n,r]=ys(e,t.start,t.end);return{start:n,end:r}}function HA(e,t){const{start:n,end:r}=kv(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let l=1;const c=[];for(;+a<=s;)c.push(Ft(n,a)),a.setMonth(a.getMonth()+l);return o?c.reverse():c}function UA(e,t){const n=xt(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function YA(e,t){const n=xt(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Ev(e,t){const n=xt(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function qA(e,t){const{start:n,end:r}=kv(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let l=1;const c=[];for(;+a<=s;)c.push(Ft(n,a)),a.setFullYear(a.getFullYear()+l);return o?c.reverse():c}function Ov(e,t){const n=qi(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=xt(e,t?.in),s=o.getDay(),a=(s<r?-7:0)+6-(s-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function GA(e,t){return Ov(e,{...t,weekStartsOn:1})}const KA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},XA=(e,t,n)=>{let r;const o=KA[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ir(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ZA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},JA={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},QA={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},e6={date:Ir({formats:ZA,defaultWidth:"full"}),time:Ir({formats:JA,defaultWidth:"full"}),dateTime:Ir({formats:QA,defaultWidth:"full"})},t6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n6=(e,t,n,r)=>t6[e];function ln(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):a;o=e.formattingValues[l]||e.formattingValues[a]}else{const a=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const r6={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s6={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},i6={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},a6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},l6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c6={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ln({values:r6,defaultWidth:"wide"}),quarter:ln({values:o6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ln({values:s6,defaultWidth:"wide"}),day:ln({values:i6,defaultWidth:"wide"}),dayPeriod:ln({values:a6,defaultWidth:"wide",formattingValues:l6,defaultFormattingWidth:"wide"})};function cn(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const a=s[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?u6(l,f=>f.test(a)):d6(l,f=>f.test(a));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const u=t.slice(a.length);return{value:d,rest:u}}}function d6(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function u6(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function xf(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const l=t.slice(o.length);return{value:a,rest:l}}}const f6=/^(\d+)(th|st|nd|rd)?/i,p6=/\d+/i,h6={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},m6={any:[/^b/i,/^(a|c)/i]},g6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},y6={any:[/1/i,/2/i,/3/i,/4/i]},b6={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},v6={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},x6={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},w6={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},S6={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},C6={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},T6={ordinalNumber:xf({matchPattern:f6,parsePattern:p6,valueCallback:e=>parseInt(e,10)}),era:cn({matchPatterns:h6,defaultMatchWidth:"wide",parsePatterns:m6,defaultParseWidth:"any"}),quarter:cn({matchPatterns:g6,defaultMatchWidth:"wide",parsePatterns:y6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:cn({matchPatterns:b6,defaultMatchWidth:"wide",parsePatterns:v6,defaultParseWidth:"any"}),day:cn({matchPatterns:x6,defaultMatchWidth:"wide",parsePatterns:w6,defaultParseWidth:"any"}),dayPeriod:cn({matchPatterns:S6,defaultMatchWidth:"any",parsePatterns:C6,defaultParseWidth:"any"})},Jr={code:"en-US",formatDistance:XA,formatLong:e6,formatRelative:n6,localize:c6,match:T6,options:{weekStartsOn:0,firstWeekContainsDate:1}},k6=Object.freeze(Object.defineProperty({__proto__:null,enUS:Jr},Symbol.toStringTag,{value:"Module"}));function E6(e,t){const n=xt(e,t?.in);return vf(n,Ev(n))+1}function wf(e,t){const n=xt(e,t?.in),r=+Gi(n)-+$A(n);return Math.round(r/yv)+1}function Mv(e,t){const n=xt(e,t?.in),r=n.getFullYear(),o=qi(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Ft(t?.in||e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const l=gs(a,t),c=Ft(t?.in||e,0);c.setFullYear(r,0,s),c.setHours(0,0,0,0);const d=gs(c,t);return+n>=+l?r+1:+n>=+d?r:r-1}function O6(e,t){const n=qi(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Mv(e,t),s=Ft(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),gs(s,t)}function Sf(e,t){const n=xt(e,t?.in),r=+gs(n,t)-+O6(n,t);return Math.round(r/yv)+1}function yt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Qr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return yt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):yt(n+1,2)},d(e,t){return yt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return yt(e.getHours()%12||12,t.length)},H(e,t){return yt(e.getHours(),t.length)},m(e,t){return yt(e.getMinutes(),t.length)},s(e,t){return yt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return yt(o,t.length)}},bs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Qr.y(e,t)},Y:function(e,t,n,r){const o=Mv(e,r),s=o>0?o:1-o;if(t==="YY"){const a=s%100;return yt(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):yt(s,t.length)},R:function(e,t){const n=wv(e);return yt(n,t.length)},u:function(e,t){const n=e.getFullYear();return yt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return yt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return yt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Qr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return yt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Sf(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):yt(o,t.length)},I:function(e,t,n){const r=wf(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):yt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Qr.d(e,t)},D:function(e,t,n){const r=E6(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):yt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return yt(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return yt(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return yt(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=bs.noon:r===0?o=bs.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=bs.evening:r>=12?o=bs.afternoon:r>=4?o=bs.morning:o=bs.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Qr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Qr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):yt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):yt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Qr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Qr.s(e,t)},S:function(e,t){return Qr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Iv(r);case"XXXX":case"XX":return So(r);default:return So(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Iv(r);case"xxxx":case"xx":return So(r);default:return So(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+jv(r,":");default:return"GMT"+So(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+jv(r,":");default:return"GMT"+So(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return yt(r,t.length)},T:function(e,t,n){return yt(+e,t.length)}};function jv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+yt(s,2)}function Iv(e,t){return e%60===0?(e>0?"-":"+")+yt(Math.abs(e)/60,2):So(e,t)}function So(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=yt(Math.trunc(r/60),2),s=yt(r%60,2);return n+o+t+s}const Dv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Av=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},M6={p:Av,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Dv(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Dv(r,t)).replace("{{time}}",Av(o,t))}},P6=/^D+$/,j6=/^Y+$/,I6=["D","DD","YY","YYYY"];function D6(e){return P6.test(e)}function A6(e){return j6.test(e)}function R6(e,t,n){const r=N6(e,t,n);if(console.warn(r),I6.includes(e))throw new RangeError(r)}function N6(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const $6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,L6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,B6=/^'([^]*?)'?$/,_6=/''/g,F6=/[a-zA-Z]/;function vs(e,t,n){const r=qi(),o=n?.locale??r.locale??Jr,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=xt(e,n?.in);if(!zA(l))throw new RangeError("Invalid time value");let c=t.match(L6).map(u=>{const f=u[0];if(f==="p"||f==="P"){const h=M6[f];return h(u,o.formatLong)}return u}).join("").match($6).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const f=u[0];if(f==="'")return{isToken:!1,value:W6(u)};if(Pv[f])return{isToken:!0,value:u};if(f.match(F6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return c.map(u=>{if(!u.isToken)return u.value;const f=u.value;(!n?.useAdditionalWeekYearTokens&&A6(f)||!n?.useAdditionalDayOfYearTokens&&D6(f))&&R6(f,t,String(e));const h=Pv[f[0]];return h(l,f,o.localize,d)}).join("")}function W6(e){const t=e.match(B6);return t?t[1].replace(_6,"'"):e}function z6(e,t){const n=xt(e,t?.in),r=n.getFullYear(),o=n.getMonth(),s=Ft(n,0);return s.setFullYear(r,o+1,0),s.setHours(0,0,0,0),s.getDate()}function V6(e,t){return xt(e,t?.in).getMonth()}function H6(e,t){return xt(e,t?.in).getFullYear()}function U6(e,t){return+xt(e)>+xt(t)}function Y6(e,t){return+xt(e)<+xt(t)}function q6(e,t,n){const[r,o]=ys(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function G6(e,t,n){const[r,o]=ys(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function K6(e,t,n){const r=xt(e,n?.in),o=r.getFullYear(),s=r.getDate(),a=Ft(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const l=z6(a);return r.setMonth(t,Math.min(s,l)),r}function X6(e,t,n){const r=xt(e,n?.in);return isNaN(+r)?Ft(e,NaN):(r.setFullYear(t),r)}function Z6(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const J6={},Xi={};function Co(e,t){try{const r=(J6[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in Xi?Xi[r]:Rv(r,r.split(":"))}catch{if(e in Xi)return Xi[e];const n=e?.match(Q6);return n?Rv(e,n.slice(1)):NaN}}const Q6=/([+-]\d\d):?(\d\d)?/;function Rv(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return Xi[e]=n*60+r>0?n*60+r+o:n*60-r-o}class br extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Co(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),$v(this),Cf(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new br(...n,t):new br(Date.now(),t)}withTimeZone(t){return new br(+this,t)}getTimezoneOffset(){const t=-Co(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Cf(this),+this}[Symbol.for("constructDateFrom")](t){return new br(+new Date(t),this.timeZone)}}const Nv=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Nv.test(e))return;const t=e.replace(Nv,"$1UTC");br.prototype[t]&&(e.startsWith("get")?br.prototype[e]=function(){return this.internal[t]()}:(br.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),eR(this),+this},br.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Cf(this),+this}))});function Cf(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Co(e.timeZone,e)*60))}function eR(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),$v(e)}function $v(e){const t=Co(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),s=-new Date(+r).getTimezoneOffset(),a=o-s,l=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&l&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const c=o-n;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);const d=new Date(+e);d.setUTCSeconds(0);const u=o>0?d.getSeconds():(d.getSeconds()-60)%60,f=Math.round(-(Co(e.timeZone,e)*60))%60;(f||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+f),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+f+u));const h=Co(e.timeZone,e),m=h>0?Math.floor(h):Math.ceil(h),y=-new Date(+e).getTimezoneOffset()-m,b=m!==n,v=y-c;if(b&&v){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);const T=Co(e.timeZone,e),S=T>0?Math.floor(T):Math.ceil(T),C=m-S;C&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+C),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+C))}}class en extends br{static tz(t,...n){return n.length?new en(...n,t):new en(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${Z6(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new en(+this,t)}[Symbol.for("constructDateFrom")](t){return new en(+new Date(t),this.timeZone)}}const Lv=5,tR=4;function nR(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),s=t.addDays(o,Lv*7-1);return t.getMonth(e)===t.getMonth(s)?Lv:tR}function Bv(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function rR(e,t){const n=Bv(e,t),r=nR(e,t);return t.addDays(n,r*7-1)}const oR={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},sR=(e,t,n)=>{let r;const o=oR[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},iR={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},aR={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},lR={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cR={date:Ir({formats:iR,defaultWidth:"full"}),time:Ir({formats:aR,defaultWidth:"full"}),dateTime:Ir({formats:lR,defaultWidth:"full"})},dR={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},uR=(e,t,n,r)=>dR[e],fR={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},pR={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},hR={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},mR={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},gR={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},yR={ordinalNumber:(e,t)=>Number(e)+"e",era:ln({values:fR,defaultWidth:"wide"}),quarter:ln({values:pR,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ln({values:hR,defaultWidth:"wide"}),day:ln({values:mR,defaultWidth:"wide"}),dayPeriod:ln({values:gR,defaultWidth:"wide"})},bR=/^(\d+)e?/i,vR=/\d+/i,xR={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},wR={any:[/^v/,/^n/]},SR={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},CR={any:[/1/i,/2/i,/3/i,/4/i]},TR={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},kR={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},ER={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},OR={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},MR={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},PR={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},jR={ordinalNumber:xf({matchPattern:bR,parsePattern:vR,valueCallback:e=>parseInt(e,10)}),era:cn({matchPatterns:xR,defaultMatchWidth:"wide",parsePatterns:wR,defaultParseWidth:"any"}),quarter:cn({matchPatterns:SR,defaultMatchWidth:"wide",parsePatterns:CR,defaultParseWidth:"any",valueCallback:e=>e+1}),month:cn({matchPatterns:TR,defaultMatchWidth:"wide",parsePatterns:kR,defaultParseWidth:"any"}),day:cn({matchPatterns:ER,defaultMatchWidth:"wide",parsePatterns:OR,defaultParseWidth:"any"}),dayPeriod:cn({matchPatterns:MR,defaultMatchWidth:"any",parsePatterns:PR,defaultParseWidth:"any"})},IR=Object.freeze(Object.defineProperty({__proto__:null,nl:{code:"nl",formatDistance:sR,formatLong:cR,formatRelative:uR,localize:yR,match:jR,options:{weekStartsOn:1,firstWeekContainsDate:4}}},Symbol.toStringTag,{value:"Module"})),DR={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},AR=(e,t,n)=>{let r;const o=DR[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?r+" sonra":r+" önce":r},RR={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},NR={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},$R={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},LR={date:Ir({formats:RR,defaultWidth:"full"}),time:Ir({formats:NR,defaultWidth:"full"}),dateTime:Ir({formats:$R,defaultWidth:"full"})},BR={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},_R=(e,t,n,r)=>BR[e],FR={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},WR={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},zR={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},VR={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},HR={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},UR={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},YR={ordinalNumber:(e,t)=>Number(e)+".",era:ln({values:FR,defaultWidth:"wide"}),quarter:ln({values:WR,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:ln({values:zR,defaultWidth:"wide"}),day:ln({values:VR,defaultWidth:"wide"}),dayPeriod:ln({values:HR,defaultWidth:"wide",formattingValues:UR,defaultFormattingWidth:"wide"})},qR=/^(\d+)(\.)?/i,GR=/\d+/i,KR={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},XR={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},ZR={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},JR={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},QR={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},e4={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},t4={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},n4={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},r4={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},o4={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},s4={ordinalNumber:xf({matchPattern:qR,parsePattern:GR,valueCallback:function(e){return parseInt(e,10)}}),era:cn({matchPatterns:KR,defaultMatchWidth:"wide",parsePatterns:XR,defaultParseWidth:"any"}),quarter:cn({matchPatterns:ZR,defaultMatchWidth:"wide",parsePatterns:JR,defaultParseWidth:"any",valueCallback:e=>e+1}),month:cn({matchPatterns:QR,defaultMatchWidth:"wide",parsePatterns:e4,defaultParseWidth:"any"}),day:cn({matchPatterns:t4,defaultMatchWidth:"wide",parsePatterns:n4,defaultParseWidth:"any"}),dayPeriod:cn({matchPatterns:r4,defaultMatchWidth:"any",parsePatterns:o4,defaultParseWidth:"any"})},i4=Object.freeze(Object.defineProperty({__proto__:null,tr:{code:"tr",formatDistance:AR,formatLong:LR,formatRelative:_R,localize:YR,match:s4,options:{weekStartsOn:1,firstWeekContainsDate:1}}},Symbol.toStringTag,{value:"Module"})),_v={...Jr,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,l)=>vs(a,l,{locale:Jr,...n});let s=o(e,"PPPP");return t.today&&(s=`Today, ${s}`),t.selected&&(s=`${s}, selected`),s},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>vs(o,s,{locale:Jr,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,l)=>vs(a,l,{locale:Jr,...n});let s=o(e,"PPPP");return t?.today&&(s=`Today, ${s}`),s},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>vs(o,s,{locale:Jr,...t}),r(e,"cccc")}}};class kn{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?en.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,s)=>this.overrides?.newDate?this.overrides.newDate(r,o,s):this.options.timeZone?new en(r,o,s,this.options.timeZone):new Date(r,o,s),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):vv(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):xv(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):LA(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):BA(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):vf(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):Tv(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):HA(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):qA(r),s=new Set(o.map(l=>this.getYear(l)));if(s.size===o.length)return o;const a=[];return s.forEach(l=>{a.push(new Date(l,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):rR(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):GA(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):VA(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):Ov(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):YA(r),this.format=(r,o,s)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):vs(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):wf(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):V6(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):H6(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):Sf(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):U6(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):Y6(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):Cv(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):WA(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):q6(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):G6(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):_A(r),this.min=r=>this.overrides?.min?this.overrides.min(r):FA(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):K6(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):X6(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Bv(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):Ki(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):Gi(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):UA(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):gs(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):Ev(r),this.options={locale:_v,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&kn.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,s=n?.code;if(s&&kn.yearFirstLocales.has(s))try{return new Intl.DateTimeFormat(s,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,a)}}kn.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const vr=new kn;class Fv{constructor(t,n,r=vr){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class a4{constructor(t,n){this.date=t,this.weeks=n}}class l4{constructor(t,n){this.days=n,this.weekNumber=t}}function c4(e){return x.createElement("button",{...e})}function d4(e){return x.createElement("span",{...e})}function u4(e){const{size:t=24,orientation:n="left",className:r}=e;return x.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&x.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&x.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&x.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&x.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function f4(e){const{day:t,modifiers:n,...r}=e;return x.createElement("td",{...r})}function p4(e){const{day:t,modifiers:n,...r}=e,o=x.useRef(null);return x.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),x.createElement("button",{ref:o,...r})}var je;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(je||(je={}));var Pt;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Pt||(Pt={}));var Kn;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Kn||(Kn={}));var En;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(En||(En={}));function h4(e){const{options:t,className:n,components:r,classNames:o,...s}=e,a=[o[je.Dropdown],n].join(" "),l=t?.find(({value:c})=>c===s.value);return x.createElement("span",{"data-disabled":s.disabled,className:o[je.DropdownRoot]},x.createElement(r.Select,{className:a,...s},t?.map(({value:c,label:d,disabled:u})=>x.createElement(r.Option,{key:c,value:c,disabled:u},d))),x.createElement("span",{className:o[je.CaptionLabel],"aria-hidden":!0},l?.label,x.createElement(r.Chevron,{orientation:"down",size:18,className:o[je.Chevron]})))}function m4(e){return x.createElement("div",{...e})}function g4(e){return x.createElement("div",{...e})}function y4(e){const{calendarMonth:t,displayIndex:n,...r}=e;return x.createElement("div",{...r},e.children)}function b4(e){const{calendarMonth:t,displayIndex:n,...r}=e;return x.createElement("div",{...r})}function v4(e){return x.createElement("table",{...e})}function x4(e){return x.createElement("div",{...e})}const Wv=x.createContext(void 0);function Zi(){const e=x.useContext(Wv);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function w4(e){const{components:t}=Zi();return x.createElement(t.Dropdown,{...e})}function S4(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...s}=e,{components:a,classNames:l,labels:{labelPrevious:c,labelNext:d}}=Zi(),u=x.useCallback(h=>{o&&n?.(h)},[o,n]),f=x.useCallback(h=>{r&&t?.(h)},[r,t]);return x.createElement("nav",{...s},x.createElement(a.PreviousMonthButton,{type:"button",className:l[je.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":c(r),onClick:f},x.createElement(a.Chevron,{disabled:r?void 0:!0,className:l[je.Chevron],orientation:"left"})),x.createElement(a.NextMonthButton,{type:"button",className:l[je.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":d(o),onClick:u},x.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:l[je.Chevron]})))}function C4(e){const{components:t}=Zi();return x.createElement(t.Button,{...e})}function T4(e){return x.createElement("option",{...e})}function k4(e){const{components:t}=Zi();return x.createElement(t.Button,{...e})}function E4(e){const{rootRef:t,...n}=e;return x.createElement("div",{...n,ref:t})}function O4(e){return x.createElement("select",{...e})}function M4(e){const{week:t,...n}=e;return x.createElement("tr",{...n})}function P4(e){return x.createElement("th",{...e})}function j4(e){return x.createElement("thead",{"aria-hidden":!0},x.createElement("tr",{...e}))}function I4(e){const{week:t,...n}=e;return x.createElement("th",{...n})}function D4(e){return x.createElement("th",{...e})}function A4(e){return x.createElement("tbody",{...e})}function R4(e){const{components:t}=Zi();return x.createElement(t.Dropdown,{...e})}const N4=Object.freeze(Object.defineProperty({__proto__:null,Button:c4,CaptionLabel:d4,Chevron:u4,Day:f4,DayButton:p4,Dropdown:h4,DropdownNav:m4,Footer:g4,Month:y4,MonthCaption:b4,MonthGrid:v4,Months:x4,MonthsDropdown:w4,Nav:S4,NextMonthButton:C4,Option:T4,PreviousMonthButton:k4,Root:E4,Select:O4,Week:M4,WeekNumber:I4,WeekNumberHeader:D4,Weekday:P4,Weekdays:j4,Weeks:A4,YearsDropdown:R4},Symbol.toStringTag,{value:"Module"}));function Dr(e,t,n=!1,r=vr){let{from:o,to:s}=e;const{differenceInCalendarDays:a,isSameDay:l}=r;return o&&s?(a(s,o)<0&&([o,s]=[s,o]),a(t,o)>=(n?1:0)&&a(s,t)>=(n?1:0)):!n&&s?l(s,t):!n&&o?l(o,t):!1}function Tf(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Kl(e){return!!(e&&typeof e=="object"&&"from"in e)}function kf(e){return!!(e&&typeof e=="object"&&"after"in e)}function Ef(e){return!!(e&&typeof e=="object"&&"before"in e)}function zv(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Vv(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Ar(e,t,n=vr){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:s,isAfter:a}=n;return r.some(l=>{if(typeof l=="boolean")return l;if(n.isDate(l))return o(e,l);if(Vv(l,n))return l.some(c=>o(e,c));if(Kl(l))return Dr(l,e,!1,n);if(zv(l))return Array.isArray(l.dayOfWeek)?l.dayOfWeek.includes(e.getDay()):l.dayOfWeek===e.getDay();if(Tf(l)){const c=s(l.before,e),d=s(l.after,e),u=c>0,f=d<0;return a(l.before,l.after)?f&&u:u||f}return kf(l)?s(e,l.after)>0:Ef(l)?s(l.before,e)>0:typeof l=="function"?l(e):!1})}function $4(e,t,n,r,o){const{disabled:s,hidden:a,modifiers:l,showOutsideDays:c,broadcastCalendar:d,today:u=o.today()}=t,{isSameDay:f,isSameMonth:h,startOfMonth:m,isBefore:g,endOfMonth:y,isAfter:b}=o,v=n&&m(n),T=r&&y(r),S={[Pt.focused]:[],[Pt.outside]:[],[Pt.disabled]:[],[Pt.hidden]:[],[Pt.today]:[]},C={};for(const w of e){const{date:k,displayMonth:O}=w,P=!!(O&&!h(k,O)),j=!!(v&&g(k,v)),A=!!(T&&b(k,T)),L=!!(s&&Ar(k,s,o)),E=!!(a&&Ar(k,a,o))||j||A||!d&&!c&&P||d&&c===!1&&P,R=f(k,u);P&&S.outside.push(w),L&&S.disabled.push(w),E&&S.hidden.push(w),R&&S.today.push(w),l&&Object.keys(l).forEach(M=>{const N=l?.[M];N&&Ar(k,N,o)&&(C[M]?C[M].push(w):C[M]=[w])})}return w=>{const k={[Pt.focused]:!1,[Pt.disabled]:!1,[Pt.hidden]:!1,[Pt.outside]:!1,[Pt.today]:!1},O={};for(const P in S){const j=S[P];k[P]=j.some(A=>A===w)}for(const P in C)O[P]=C[P].some(j=>j===w);return{...k,...O}}}function L4(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[s])=>(n[s]?o.push(n[s]):t[Pt[s]]?o.push(t[Pt[s]]):t[Kn[s]]&&o.push(t[Kn[s]]),o),[t[je.Day]])}function B4(e){return{...N4,...e}}function _4(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function F4(){const e={};for(const t in je)e[je[t]]=`rdp-${je[t]}`;for(const t in Pt)e[Pt[t]]=`rdp-${Pt[t]}`;for(const t in Kn)e[Kn[t]]=`rdp-${Kn[t]}`;for(const t in En)e[En[t]]=`rdp-${En[t]}`;return e}function Hv(e,t,n){return(n??new kn(t)).formatMonthYear(e)}const W4=Hv;function z4(e,t,n){return(n??new kn(t)).format(e,"d")}function V4(e,t=vr){return t.format(e,"LLLL")}function H4(e,t,n){return(n??new kn(t)).format(e,"cccccc")}function U4(e,t=vr){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function Y4(){return""}function Uv(e,t=vr){return t.format(e,"yyyy")}const q4=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Hv,formatDay:z4,formatMonthCaption:W4,formatMonthDropdown:V4,formatWeekNumber:U4,formatWeekNumberHeader:Y4,formatWeekdayName:H4,formatYearCaption:Uv,formatYearDropdown:Uv},Symbol.toStringTag,{value:"Module"}));function G4(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...q4,...e}}function Of(e,t,n,r){let o=(r??new kn(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const K4=Of;function Mf(e,t,n){return(n??new kn(t)).formatMonthYear(e)}const X4=Mf;function Yv(e,t,n,r){let o=(r??new kn(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function qv(e){return"Choose the Month"}function Gv(){return""}const Z4="Go to the Next Month";function Kv(e,t){return Z4}function Xv(e){return"Go to the Previous Month"}function Zv(e,t,n){return(n??new kn(t)).format(e,"cccc")}function Jv(e,t){return`Week ${e}`}function Qv(e){return"Week Number"}function e1(e){return"Choose the Year"}const J4=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:X4,labelDay:K4,labelDayButton:Of,labelGrid:Mf,labelGridcell:Yv,labelMonthDropdown:qv,labelNav:Gv,labelNext:Kv,labelPrevious:Xv,labelWeekNumber:Jv,labelWeekNumberHeader:Qv,labelWeekday:Zv,labelYearDropdown:e1},Symbol.toStringTag,{value:"Module"})),Xn=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function Q4(e,t){const n=t.locale?.labels??{};return{...J4,...e??{},labelDayButton:Xn(Of,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Xn(qv,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Xn(Kv,e?.labelNext,n.labelNext),labelPrevious:Xn(Xv,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Xn(Jv,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Xn(e1,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Xn(Mf,e?.labelGrid,n.labelGrid),labelGridcell:Xn(Yv,e?.labelGridcell,n.labelGridcell),labelNav:Xn(Gv,e?.labelNav,n.labelNav),labelWeekNumberHeader:Xn(Qv,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Xn(Zv,e?.labelWeekday,n.labelWeekday)}}function e9(e,t,n,r,o){const{startOfMonth:s,startOfYear:a,endOfYear:l,eachMonthOfInterval:c,getMonth:d}=o;return c({start:a(e),end:l(e)}).map(h=>{const m=r.formatMonthDropdown(h,o),g=d(h),y=t&&h<s(t)||n&&h>s(n)||!1;return{value:g,label:m,disabled:y}})}function t9(e,t={},n={}){let r={...t?.[je.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function n9(e,t,n,r){const o=r??e.today(),s=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),a=[];for(let l=0;l<7;l++){const c=e.addDays(s,l);a.push(c)}return a}function r9(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:s,endOfYear:a,eachYearOfInterval:l,getYear:c}=r,d=s(e),u=a(t),f=l({start:d,end:u});return o&&f.reverse(),f.map(h=>{const m=n.formatYearDropdown(h,r);return{value:c(h),label:m,disabled:!1}})}function o9(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,s=l=>{const c=typeof l=="number"||typeof l=="string"?new Date(l):l;return new en(c.getFullYear(),c.getMonth(),c.getDate(),12,0,0,e)},a=l=>{const c=s(l);return new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0,0)};return{today:()=>s(en.tz(e)),newDate:(l,c,d)=>new en(l,c,d,12,0,0,e),startOfDay:l=>s(l),startOfWeek:(l,c)=>{const d=s(l),u=c?.weekStartsOn??o,f=(d.getDay()-u+7)%7;return d.setDate(d.getDate()-f),d},startOfISOWeek:l=>{const c=s(l),d=(c.getDay()-1+7)%7;return c.setDate(c.getDate()-d),c},startOfMonth:l=>{const c=s(l);return c.setDate(1),c},startOfYear:l=>{const c=s(l);return c.setMonth(0,1),c},endOfWeek:(l,c)=>{const d=s(l),h=(((c?.weekStartsOn??o)+6)%7-d.getDay()+7)%7;return d.setDate(d.getDate()+h),d},endOfISOWeek:l=>{const c=s(l),d=(7-c.getDay())%7;return c.setDate(c.getDate()+d),c},endOfMonth:l=>{const c=s(l);return c.setMonth(c.getMonth()+1,0),c},endOfYear:l=>{const c=s(l);return c.setMonth(11,31),c},eachMonthOfInterval:l=>{const c=s(l.start),d=s(l.end),u=[],f=new en(c.getFullYear(),c.getMonth(),1,12,0,0,e),h=d.getFullYear()*12+d.getMonth();for(;f.getFullYear()*12+f.getMonth()<=h;)u.push(new en(f,e)),f.setMonth(f.getMonth()+1,1);return u},addDays:(l,c)=>{const d=s(l);return d.setDate(d.getDate()+c),d},addWeeks:(l,c)=>{const d=s(l);return d.setDate(d.getDate()+c*7),d},addMonths:(l,c)=>{const d=s(l);return d.setMonth(d.getMonth()+c),d},addYears:(l,c)=>{const d=s(l);return d.setFullYear(d.getFullYear()+c),d},eachYearOfInterval:l=>{const c=s(l.start),d=s(l.end),u=[],f=new en(c.getFullYear(),0,1,12,0,0,e);for(;f.getFullYear()<=d.getFullYear();)u.push(new en(f,e)),f.setFullYear(f.getFullYear()+1,0,1);return u},getWeek:(l,c)=>{const d=a(l);return Sf(d,{weekStartsOn:c?.weekStartsOn??o,firstWeekContainsDate:c?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:l=>{const c=a(l);return wf(c)},differenceInCalendarDays:(l,c)=>{const d=a(l),u=a(c);return vf(d,u)},differenceInCalendarMonths:(l,c)=>{const d=a(l),u=a(c);return Tv(d,u)}}}const Ji=e=>e instanceof HTMLElement?e:null,Pf=e=>[...e.querySelectorAll("[data-animated-month]")??[]],s9=e=>Ji(e.querySelector("[data-animated-month]")),jf=e=>Ji(e.querySelector("[data-animated-caption]")),If=e=>Ji(e.querySelector("[data-animated-weeks]")),i9=e=>Ji(e.querySelector("[data-animated-nav]")),a9=e=>Ji(e.querySelector("[data-animated-weekdays]"));function l9(e,t,{classNames:n,months:r,focused:o,dateLib:s}){const a=x.useRef(null),l=x.useRef(r),c=x.useRef(!1);x.useLayoutEffect(()=>{const d=l.current;if(l.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||d.length===0||r.length!==d.length)return;const u=s.isSameMonth(r[0].date,d[0].date),f=s.isAfter(r[0].date,d[0].date),h=f?n[En.caption_after_enter]:n[En.caption_before_enter],m=f?n[En.weeks_after_enter]:n[En.weeks_before_enter],g=a.current,y=e.current.cloneNode(!0);if(y instanceof HTMLElement?(Pf(y).forEach(S=>{if(!(S instanceof HTMLElement))return;const C=s9(S);C&&S.contains(C)&&S.removeChild(C);const w=jf(S);w&&w.classList.remove(h);const k=If(S);k&&k.classList.remove(m)}),a.current=y):a.current=null,c.current||u||o)return;const b=g instanceof HTMLElement?Pf(g):[],v=Pf(e.current);if(v?.every(T=>T instanceof HTMLElement)&&b&&b.every(T=>T instanceof HTMLElement)){c.current=!0,e.current.style.isolation="isolate";const T=i9(e.current);T&&(T.style.zIndex="1"),v.forEach((S,C)=>{const w=b[C];if(!w)return;S.style.position="relative",S.style.overflow="hidden";const k=jf(S);k&&k.classList.add(h);const O=If(S);O&&O.classList.add(m);const P=()=>{c.current=!1,e.current&&(e.current.style.isolation=""),T&&(T.style.zIndex=""),k&&k.classList.remove(h),O&&O.classList.remove(m),S.style.position="",S.style.overflow="",S.contains(w)&&S.removeChild(w)};w.style.pointerEvents="none",w.style.position="absolute",w.style.overflow="hidden",w.setAttribute("aria-hidden","true");const j=a9(w);j&&(j.style.opacity="0");const A=jf(w);A&&(A.classList.add(f?n[En.caption_before_exit]:n[En.caption_after_exit]),A.addEventListener("animationend",P));const L=If(w);L&&L.classList.add(f?n[En.weeks_before_exit]:n[En.weeks_after_exit]),S.insertBefore(w,S.firstChild)})}})}function c9(e,t,n,r){const o=e[0],s=e[e.length-1],{ISOWeek:a,fixedWeeks:l,broadcastCalendar:c}=n??{},{addDays:d,differenceInCalendarDays:u,differenceInCalendarMonths:f,endOfBroadcastWeek:h,endOfISOWeek:m,endOfMonth:g,endOfWeek:y,isAfter:b,startOfBroadcastWeek:v,startOfISOWeek:T,startOfWeek:S}=r,C=c?v(o,r):a?T(o):S(o),w=c?h(s):a?m(g(s)):y(g(s)),k=t&&(c?h(t):a?m(t):y(t)),O=k&&b(w,k)?k:w,P=u(O,C),j=f(s,o)+1,A=[];for(let R=0;R<=P;R++){const M=d(C,R);A.push(M)}const E=(c?35:42)*j;if(l&&A.length<E){const R=E-A.length;for(let M=0;M<R;M++){const N=d(A[A.length-1],1);A.push(N)}}return A}function d9(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((s,a)=>s.concat(a.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function u9(e,t,n,r){const{numberOfMonths:o=1}=n,s=[];for(let a=0;a<o;a++){const l=r.addMonths(e,a);if(t&&l>t)break;s.push(l)}return s}function t1(e,t,n,r){const{month:o,defaultMonth:s,today:a=r.today(),numberOfMonths:l=1}=e;let c=o||s||a;const{differenceInCalendarMonths:d,addMonths:u,startOfMonth:f}=r;if(n&&d(n,c)<l-1){const h=-1*(l-1);c=u(n,h)}return t&&d(c,t)<0&&(c=t),f(c)}function f9(e,t,n,r){const{addDays:o,endOfBroadcastWeek:s,endOfISOWeek:a,endOfMonth:l,endOfWeek:c,getISOWeek:d,getWeek:u,startOfBroadcastWeek:f,startOfISOWeek:h,startOfWeek:m}=r,g=e.reduce((y,b)=>{const v=n.broadcastCalendar?f(b,r):n.ISOWeek?h(b):m(b),T=n.broadcastCalendar?s(b):n.ISOWeek?a(l(b)):c(l(b)),S=t.filter(O=>O>=v&&O<=T),C=n.broadcastCalendar?35:42;if(n.fixedWeeks&&S.length<C){const O=t.filter(P=>{const j=C-S.length;return P>T&&P<=o(T,j)});S.push(...O)}const w=S.reduce((O,P)=>{const j=n.ISOWeek?d(P):u(P),A=O.find(E=>E.weekNumber===j),L=new Fv(P,b,r);return A?A.days.push(L):O.push(new l4(j,[L])),O},[]),k=new a4(b,w);return y.push(k),y},[]);return n.reverseMonths?g.reverse():g}function p9(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:s,startOfMonth:a,endOfMonth:l,addYears:c,endOfYear:d,newDate:u,today:f}=t,{fromYear:h,toYear:m,fromMonth:g,toMonth:y}=e;!n&&g&&(n=g),!n&&h&&(n=t.newDate(h,0,1)),!r&&y&&(r=y),!r&&m&&(r=u(m,11,31));const b=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=a(n):h?n=u(h,0,1):!n&&b&&(n=o(c(e.today??f(),-100))),r?r=l(r):m?r=u(m,11,31):!r&&b&&(r=d(e.today??f())),[n&&s(n),r&&s(r)]}function h9(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s=1}=n,{startOfMonth:a,addMonths:l,differenceInCalendarMonths:c}=r,d=o?s:1,u=a(e);if(!t)return l(u,d);if(!(c(t,e)<s))return l(u,d)}function m9(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s}=n,{startOfMonth:a,addMonths:l,differenceInCalendarMonths:c}=r,d=o?s??1:1,u=a(e);if(!t)return l(u,-d);if(!(c(u,t)<=0))return l(u,-d)}function g9(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function Xl(e,t){const[n,r]=x.useState(e);return[t===void 0?n:t,r]}function y9(e,t){const[n,r]=p9(e,t),{startOfMonth:o,endOfMonth:s}=t,a=t1(e,n,r,t),[l,c]=Xl(a,e.month?a:void 0);x.useEffect(()=>{const C=t1(e,n,r,t);c(C)},[e.timeZone]);const{months:d,weeks:u,days:f,previousMonth:h,nextMonth:m}=x.useMemo(()=>{const C=u9(l,r,{numberOfMonths:e.numberOfMonths},t),w=c9(C,e.endMonth?s(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),k=f9(C,w,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),O=g9(k),P=d9(k),j=m9(l,n,e,t),A=h9(l,r,e,t);return{months:k,weeks:O,days:P,previousMonth:j,nextMonth:A}},[t,l.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:g,onMonthChange:y}=e,b=C=>u.some(w=>w.days.some(k=>k.isEqualTo(C))),v=C=>{if(g)return;let w=o(C);n&&w<o(n)&&(w=o(n)),r&&w>o(r)&&(w=o(r)),c(w),y?.(w)};return{months:d,weeks:u,days:f,navStart:n,navEnd:r,previousMonth:h,nextMonth:m,goToMonth:v,goToDay:C=>{b(C)||v(C.date)}}}var xr;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(xr||(xr={}));function n1(e){return!e[Pt.disabled]&&!e[Pt.hidden]&&!e[Pt.outside]}function b9(e,t,n,r){let o,s=-1;for(const a of e){const l=t(a);n1(l)&&(l[Pt.focused]&&s<xr.FocusedModifier?(o=a,s=xr.FocusedModifier):r?.isEqualTo(a)&&s<xr.LastFocused?(o=a,s=xr.LastFocused):n(a.date)&&s<xr.Selected?(o=a,s=xr.Selected):l[Pt.today]&&s<xr.Today&&(o=a,s=xr.Today))}return o||(o=e.find(a=>n1(t(a)))),o}function v9(e,t,n,r,o,s,a){const{ISOWeek:l,broadcastCalendar:c}=s,{addDays:d,addMonths:u,addWeeks:f,addYears:h,endOfBroadcastWeek:m,endOfISOWeek:g,endOfWeek:y,max:b,min:v,startOfBroadcastWeek:T,startOfISOWeek:S,startOfWeek:C}=a;let k={day:d,week:f,month:u,year:h,startOfWeek:O=>c?T(O,a):l?S(O):C(O),endOfWeek:O=>c?m(O):l?g(O):y(O)}[e](n,t==="after"?1:-1);return t==="before"&&r?k=b([r,k]):t==="after"&&o&&(k=v([o,k])),k}function r1(e,t,n,r,o,s,a,l=0){if(l>365)return;const c=v9(e,t,n.date,r,o,s,a),d=!!(s.disabled&&Ar(c,s.disabled,a)),u=!!(s.hidden&&Ar(c,s.hidden,a)),f=c,h=new Fv(c,f,a);return!d&&!u?h:r1(e,t,h,r,o,s,a,l+1)}function x9(e,t,n,r,o){const{autoFocus:s}=e,[a,l]=x.useState(),c=b9(t.days,n,r||(()=>!1),a),[d,u]=x.useState(s?c:void 0);return{isFocusTarget:y=>!!c?.isEqualTo(y),setFocused:u,focused:d,blur:()=>{l(d),u(void 0)},moveFocus:(y,b)=>{if(!d)return;const v=r1(y,b,d,t.navStart,t.navEnd,e,o);v&&(e.disableNavigation&&!t.days.some(S=>S.isEqualTo(v))||(t.goToDay(v),u(v)))}}}function w9(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Xl(n,o?n:void 0),l=o?n:s,{isSameDay:c}=t,d=m=>l?.some(g=>c(g,m))??!1,{min:u,max:f}=e;return{selected:l,select:(m,g,y)=>{let b=[...l??[]];if(d(m)){if(l?.length===u||r&&l?.length===1)return;b=l?.filter(v=>!c(v,m))}else l?.length===f?b=[m]:b=[...b,m];return o||a(b),o?.(b,m,g,y),b},isSelected:d}}function S9(e,t,n=0,r=0,o=!1,s=vr){const{from:a,to:l}=t||{},{isSameDay:c,isAfter:d,isBefore:u}=s;let f;if(!a&&!l)f={from:e,to:n>0?void 0:e};else if(a&&!l)c(a,e)?n===0?f={from:a,to:e}:o?f={from:a,to:void 0}:f=void 0:u(e,a)?f={from:e,to:a}:f={from:a,to:e};else if(a&&l)if(c(a,e)&&c(l,e))o?f={from:a,to:l}:f=void 0;else if(c(a,e))f={from:a,to:n>0?void 0:e};else if(c(l,e))f={from:e,to:n>0?void 0:e};else if(u(e,a))f={from:e,to:l};else if(d(e,a))f={from:a,to:e};else if(d(e,l))f={from:a,to:e};else throw new Error("Invalid range");if(f?.from&&f?.to){const h=s.differenceInCalendarDays(f.to,f.from);r>0&&h>r?f={from:e,to:void 0}:n>1&&h<n&&(f={from:e,to:void 0})}return f}function C9(e,t,n=vr){const r=Array.isArray(t)?t:[t];let o=e.from;const s=n.differenceInCalendarDays(e.to,e.from),a=Math.min(s,6);for(let l=0;l<=a;l++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function o1(e,t,n=vr){return Dr(e,t.from,!1,n)||Dr(e,t.to,!1,n)||Dr(t,e.from,!1,n)||Dr(t,e.to,!1,n)}function T9(e,t,n=vr){const r=Array.isArray(t)?t:[t];if(r.filter(l=>typeof l!="function").some(l=>typeof l=="boolean"?l:n.isDate(l)?Dr(e,l,!1,n):Vv(l,n)?l.some(c=>Dr(e,c,!1,n)):Kl(l)?l.from&&l.to?o1(e,{from:l.from,to:l.to},n):!1:zv(l)?C9(e,l.dayOfWeek,n):Tf(l)?n.isAfter(l.before,l.after)?o1(e,{from:n.addDays(l.after,1),to:n.addDays(l.before,-1)},n):Ar(e.from,l,n)||Ar(e.to,l,n):kf(l)||Ef(l)?Ar(e.from,l,n)||Ar(e.to,l,n):!1))return!0;const a=r.filter(l=>typeof l=="function");if(a.length){let l=e.from;const c=n.differenceInCalendarDays(e.to,e.from);for(let d=0;d<=c;d++){if(a.some(u=>u(l)))return!0;l=n.addDays(l,1)}}return!1}function k9(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:s,onSelect:a}=e,[l,c]=Xl(o,a?o:void 0),d=a?o:l;return{selected:d,select:(h,m,g)=>{const{min:y,max:b}=e,v=h?S9(h,d,y,b,s,t):void 0;return r&&n&&v?.from&&v.to&&T9({from:v.from,to:v.to},n,t)&&(v.from=h,v.to=void 0),a||c(v),a?.(v,h,m,g),v},isSelected:h=>d&&Dr(d,h,!1,t)}}function E9(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Xl(n,o?n:void 0),l=o?n:s,{isSameDay:c}=t;return{selected:l,select:(f,h,m)=>{let g=f;return!r&&l&&l&&c(f,l)&&(g=void 0),o||a(g),o?.(g,f,h,m),g},isSelected:f=>l?c(l,f):!1}}function O9(e,t){const n=E9(e,t),r=w9(e,t),o=k9(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function _n(e,t){return e instanceof en&&e.timeZone===t?e:new en(e,t)}function xs(e,t,n){return _n(e,t)}function s1(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?xs(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?xs(r,t):r):Kl(e)?{...e,from:e.from?_n(e.from,t):e.from,to:e.to?_n(e.to,t):e.to}:Tf(e)?{before:xs(e.before,t),after:xs(e.after,t)}:kf(e)?{after:xs(e.after,t)}:Ef(e)?{before:xs(e.before,t)}:e}function Df(e,t,n){return e&&(Array.isArray(e)?e.map(r=>s1(r,t)):s1(e,t))}function M9(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=_n(t.today,n)),t.month&&(t.month=_n(t.month,n)),t.defaultMonth&&(t.defaultMonth=_n(t.defaultMonth,n)),t.startMonth&&(t.startMonth=_n(t.startMonth,n)),t.endMonth&&(t.endMonth=_n(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=_n(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(fe=>_n(fe,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?_n(t.selected.from,n):t.selected.from,to:t.selected.to?_n(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=Df(t.disabled,n)),t.hidden!==void 0&&(t.hidden=Df(t.hidden,n)),t.modifiers)){const fe={};Object.keys(t.modifiers).forEach(De=>{fe[De]=Df(t.modifiers?.[De],n)}),t.modifiers=fe}const{components:r,formatters:o,labels:s,dateLib:a,locale:l,classNames:c}=x.useMemo(()=>{const fe={..._v,...t.locale},De=t.broadcastCalendar?1:t.weekStartsOn,Me=t.noonSafe&&t.timeZone?o9(t.timeZone,{weekStartsOn:De,locale:fe}):void 0,Je=t.dateLib&&Me?{...Me,...t.dateLib}:t.dateLib??Me,Nt=new kn({locale:fe,weekStartsOn:De,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},Je);return{dateLib:Nt,components:B4(t.components),formatters:G4(t.formatters),labels:Q4(t.labels,Nt.options),locale:fe,classNames:{...F4(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:a.today()});const{captionLayout:d,mode:u,navLayout:f,numberOfMonths:h=1,onDayBlur:m,onDayClick:g,onDayFocus:y,onDayKeyDown:b,onDayMouseEnter:v,onDayMouseLeave:T,onNextClick:S,onPrevClick:C,showWeekNumber:w,styles:k}=t,{formatCaption:O,formatDay:P,formatMonthDropdown:j,formatWeekNumber:A,formatWeekNumberHeader:L,formatWeekdayName:E,formatYearDropdown:R}=o,M=y9(t,a),{days:N,months:$,navStart:F,navEnd:H,previousMonth:z,nextMonth:_,goToMonth:D}=M,V=$4(N,t,F,H,a),{isSelected:U,select:G,selected:X}=O9(t,a)??{},{blur:q,focused:K,isFocusTarget:ce,moveFocus:de,setFocused:W}=x9(t,M,V,U??(()=>!1),a),{labelDayButton:ee,labelGridcell:B,labelGrid:ue,labelMonthDropdown:Q,labelNav:ne,labelPrevious:we,labelNext:ke,labelWeekday:Ce,labelWeekNumber:ve,labelWeekNumberHeader:_e,labelYearDropdown:Ee}=s,xe=x.useMemo(()=>n9(a,t.ISOWeek,t.broadcastCalendar,t.today),[a,t.ISOWeek,t.broadcastCalendar,t.today]),re=u!==void 0||g!==void 0,ie=x.useCallback(()=>{z&&(D(z),C?.(z))},[z,D,C]),Te=x.useCallback(()=>{_&&(D(_),S?.(_))},[D,_,S]),he=x.useCallback((fe,De)=>Me=>{Me.preventDefault(),Me.stopPropagation(),W(fe),!De.disabled&&(G?.(fe.date,De,Me),g?.(fe.date,De,Me))},[G,g,W]),pe=x.useCallback((fe,De)=>Me=>{W(fe),y?.(fe.date,De,Me)},[y,W]),Ie=x.useCallback((fe,De)=>Me=>{q(),m?.(fe.date,De,Me)},[q,m]),Fe=x.useCallback((fe,De)=>Me=>{const Je={ArrowLeft:[Me.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[Me.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[Me.shiftKey?"year":"week","after"],ArrowUp:[Me.shiftKey?"year":"week","before"],PageUp:[Me.shiftKey?"year":"month","before"],PageDown:[Me.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Je[Me.key]){Me.preventDefault(),Me.stopPropagation();const[Nt,Ke]=Je[Me.key];de(Nt,Ke)}b?.(fe.date,De,Me)},[de,b,t.dir]),He=x.useCallback((fe,De)=>Me=>{v?.(fe.date,De,Me)},[v]),Oe=x.useCallback((fe,De)=>Me=>{T?.(fe.date,De,Me)},[T]),Tt=x.useCallback(fe=>De=>{const Me=Number(De.target.value),Je=a.setMonth(a.startOfMonth(fe),Me);D(Je)},[a,D]),st=x.useCallback(fe=>De=>{const Me=Number(De.target.value),Je=a.setYear(a.startOfMonth(fe),Me);D(Je)},[a,D]),{className:nt,style:dn}=x.useMemo(()=>({className:[c[je.Root],t.className].filter(Boolean).join(" "),style:{...k?.[je.Root],...t.style}}),[c,t.className,t.style,k]),Jn=_4(t),Wn=x.useRef(null);l9(Wn,!!t.animate,{classNames:c,months:$,focused:K,dateLib:a});const me={dayPickerProps:t,selected:X,select:G,isSelected:U,months:$,nextMonth:_,previousMonth:z,goToMonth:D,getModifiers:V,components:r,classNames:c,styles:k,labels:s,formatters:o};return x.createElement(Wv.Provider,{value:me},x.createElement(r.Root,{rootRef:t.animate?Wn:void 0,className:nt,style:dn,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...Jn},x.createElement(r.Months,{className:c[je.Months],style:k?.[je.Months]},!t.hideNavigation&&!f&&x.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[je.Nav],style:k?.[je.Nav],"aria-label":ne(),onPreviousClick:ie,onNextClick:Te,previousMonth:z,nextMonth:_}),$.map((fe,De)=>x.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:c[je.Month],style:k?.[je.Month],key:De,displayIndex:De,calendarMonth:fe},f==="around"&&!t.hideNavigation&&De===0&&x.createElement(r.PreviousMonthButton,{type:"button",className:c[je.PreviousMonthButton],tabIndex:z?void 0:-1,"aria-disabled":z?void 0:!0,"aria-label":we(z),onClick:ie,"data-animated-button":t.animate?"true":void 0},x.createElement(r.Chevron,{disabled:z?void 0:!0,className:c[je.Chevron],orientation:t.dir==="rtl"?"right":"left"})),x.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:c[je.MonthCaption],style:k?.[je.MonthCaption],calendarMonth:fe,displayIndex:De},d?.startsWith("dropdown")?x.createElement(r.DropdownNav,{className:c[je.Dropdowns],style:k?.[je.Dropdowns]},(()=>{const Me=d==="dropdown"||d==="dropdown-months"?x.createElement(r.MonthsDropdown,{key:"month",className:c[je.MonthsDropdown],"aria-label":Q(),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Tt(fe.date),options:e9(fe.date,F,H,o,a),style:k?.[je.Dropdown],value:a.getMonth(fe.date)}):x.createElement("span",{key:"month"},j(fe.date,a)),Je=d==="dropdown"||d==="dropdown-years"?x.createElement(r.YearsDropdown,{key:"year",className:c[je.YearsDropdown],"aria-label":Ee(a.options),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:st(fe.date),options:r9(F,H,o,a,!!t.reverseYears),style:k?.[je.Dropdown],value:a.getYear(fe.date)}):x.createElement("span",{key:"year"},R(fe.date,a));return a.getMonthYearOrder()==="year-first"?[Je,Me]:[Me,Je]})(),x.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},O(fe.date,a.options,a))):x.createElement(r.CaptionLabel,{className:c[je.CaptionLabel],role:"status","aria-live":"polite"},O(fe.date,a.options,a))),f==="around"&&!t.hideNavigation&&De===h-1&&x.createElement(r.NextMonthButton,{type:"button",className:c[je.NextMonthButton],tabIndex:_?void 0:-1,"aria-disabled":_?void 0:!0,"aria-label":ke(_),onClick:Te,"data-animated-button":t.animate?"true":void 0},x.createElement(r.Chevron,{disabled:_?void 0:!0,className:c[je.Chevron],orientation:t.dir==="rtl"?"left":"right"})),De===h-1&&f==="after"&&!t.hideNavigation&&x.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[je.Nav],style:k?.[je.Nav],"aria-label":ne(),onPreviousClick:ie,onNextClick:Te,previousMonth:z,nextMonth:_}),x.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":ue(fe.date,a.options,a)||void 0,className:c[je.MonthGrid],style:k?.[je.MonthGrid]},!t.hideWeekdays&&x.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:c[je.Weekdays],style:k?.[je.Weekdays]},w&&x.createElement(r.WeekNumberHeader,{"aria-label":_e(a.options),className:c[je.WeekNumberHeader],style:k?.[je.WeekNumberHeader],scope:"col"},L()),xe.map(Me=>x.createElement(r.Weekday,{"aria-label":Ce(Me,a.options,a),className:c[je.Weekday],key:String(Me),style:k?.[je.Weekday],scope:"col"},E(Me,a.options,a)))),x.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:c[je.Weeks],style:k?.[je.Weeks]},fe.weeks.map(Me=>x.createElement(r.Week,{className:c[je.Week],key:Me.weekNumber,style:k?.[je.Week],week:Me},w&&x.createElement(r.WeekNumber,{week:Me,style:k?.[je.WeekNumber],"aria-label":ve(Me.weekNumber,{locale:l}),className:c[je.WeekNumber],scope:"row",role:"rowheader"},A(Me.weekNumber,a)),Me.days.map(Je=>{const{date:Nt}=Je,Ke=V(Je);if(Ke[Pt.focused]=!Ke.hidden&&!!K?.isEqualTo(Je),Ke[Kn.selected]=U?.(Nt)||Ke.selected,Kl(X)){const{from:Ht,to:be}=X;Ke[Kn.range_start]=!!(Ht&&be&&a.isSameDay(Nt,Ht)),Ke[Kn.range_end]=!!(Ht&&be&&a.isSameDay(Nt,be)),Ke[Kn.range_middle]=Dr(X,Nt,!0,a)}const to=t9(Ke,k,t.modifiersStyles),Sr=L4(Ke,c,t.modifiersClassNames),We=!re&&!Ke.hidden?B(Nt,Ke,a.options,a):void 0;return x.createElement(r.Day,{key:`${Je.isoDate}_${Je.displayMonthId}`,day:Je,modifiers:Ke,className:Sr.join(" "),style:to,role:"gridcell","aria-selected":Ke.selected||void 0,"aria-label":We,"data-day":Je.isoDate,"data-month":Je.outside?Je.dateMonthId:void 0,"data-selected":Ke.selected||void 0,"data-disabled":Ke.disabled||void 0,"data-hidden":Ke.hidden||void 0,"data-outside":Je.outside||void 0,"data-focused":Ke.focused||void 0,"data-today":Ke.today||void 0},!Ke.hidden&&re?x.createElement(r.DayButton,{className:c[je.DayButton],style:k?.[je.DayButton],type:"button",day:Je,modifiers:Ke,disabled:!Ke.focused&&Ke.disabled||void 0,"aria-disabled":Ke.focused&&Ke.disabled||void 0,tabIndex:ce(Je)?0:-1,"aria-label":ee(Nt,Ke,a.options,a),onClick:he(Je,Ke),onBlur:Ie(Je,Ke),onFocus:pe(Je,Ke),onKeyDown:Fe(Je,Ke),onMouseEnter:He(Je,Ke),onMouseLeave:Oe(Je,Ke)},P(Nt,a.options,a)):!Ke.hidden&&P(Je.date,a.options,a))})))))))),t.footer&&x.createElement(r.Footer,{className:c[je.Footer],style:k?.[je.Footer],role:"status","aria-live":"polite"},t.footer)))}const P9=({color:e})=>p.jsx("svg",{width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M5.5 9.96346L1.82547 6.28893C1.39151 5.85497 1.39151 5.14487 1.82547 4.71091L5.5 1.03638",stroke:e,"stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})}),j9=({color:e})=>p.jsx("svg",{width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M1.5 9.96346L5.17453 6.28893C5.60849 5.85498 5.60849 5.14487 5.17453 4.71091L1.5 1.03638",stroke:e,"stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})}),i1=({color:e})=>p.jsx("svg",{width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M9 0.595703L5.50126 4.09444C5.08807 4.50763 4.41193 4.50763 3.99874 4.09444L0.5 0.595703",stroke:e,"stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})}),I9=({color:e})=>p.jsx("svg",{width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M9 4.4043L5.50126 0.90556C5.08807 0.492365 4.41193 0.492365 3.99874 0.90556L0.5 4.4043",stroke:e,"stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})});function a1(e){return x.useMemo(()=>Array.from({length:e},(t,n)=>{const r=String(n).padStart(2,"0");return{key:r,label:r,value:r}}),[e])}const l1=({time:e,setTime:t})=>{const n=a1(24),r=a1(60);return p.jsxs(se,{display:"flex",gap:"1rem",paddingLeft:"2rem",children:[p.jsxs(se,{display:"flex",flexDirection:"column",alignItems:"center",width:"6rem",gap:"1rem",children:[p.jsx(pt,{variant:"h5",color:o=>o.palette.primary.notifyActiveText,children:"HH"}),p.jsx(ms,{options:n,value:e.hh,onChange:o=>t(s=>({...s,hh:o.value}))})]}),p.jsxs(se,{display:"flex",flexDirection:"column",alignItems:"center",width:"6rem",gap:"1rem",children:[p.jsx(pt,{variant:"h5",color:o=>o.palette.primary.notifyActiveText,children:"MM"}),p.jsx(ms,{options:r,value:e.mm,onChange:o=>t(s=>({...s,mm:o.value}))})]})]})},D9=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function c1(e){const t=e instanceof Date?e:new Date(e);return{hh:String(t.getHours()).padStart(2,"0"),mm:String(t.getMinutes()).padStart(2,"0")}}function d1(e,t){const n=e instanceof Date?e:new Date(e);return n.setHours(Number(t.hh),Number(t.mm)),n}const A9=({label:e,mode:t="single",showTimeStamp:n=!1,value:r,onChange:o,disabled:s,readOnly:a,formatString:l,error:c,errorText:d,openCalendar:u,inputProps:f,showFooter:h,minDate:m=new Date(new Date().getFullYear()-10,0,1),maxDate:g=new Date(new Date().getFullYear()+10,11,31),yearRange:y,required:b,calendarWidth:v,calendarHeight:T,calendarZoom:S,calendarSx:C,...w})=>{const k=Array.from({length:y?.to??36},(ne,we)=>(y?.from??2e3)+we),{t:O}=x.useContext(an),P=gt(),j=x.useRef(null),A=x.useRef(null),[L,E]=x.useState(null),[R,M]=x.useState(r),[N,$]=x.useState(Jr),[F,H]=x.useState(()=>n&&r?c1(r):{hh:"00",mm:"00"}),[z,_]=x.useState(t==="range"&&r?.from?r.from:r||new Date),[D,V]=x.useState("calendar"),U=!!L,G=U?"date-picker-popover":void 0,X=ne=>{E(ne.currentTarget),M(r),n&&r&&H(c1(r))},q=()=>{E(null),V("calendar")};x.useEffect(()=>{n&&R&&M(d1(R,F))},[F]),x.useEffect(()=>{const ne=localStorage.getItem("i18nextLng")??"en-US";OA(ne).then($)},[]);const K=ne=>{_(new Date(z.getFullYear(),ne)),V("calendar")},ce=ne=>{_(new Date(ne,z.getMonth())),V("month")},de=ne=>{if(ne)if(t==="range")h?M(ne):o?.(ne);else if(t==="multiple"){const ke=[...Array.isArray(ne)?ne:[ne]];h?M(ke):o?.(ke)}else h?M(d1(ne,F)):(o?.(ne),q())},W=({orientation:ne,className:we,disabled:ke})=>p.jsx(se,{className:we,sx:{opacity:ke?.5:1,pointerEvents:ke?"none":"auto"},children:{left:p.jsx(P9,{color:P.palette.primary.notifyIconColor}),right:p.jsx(j9,{color:P.palette.primary.notifyIconColor}),down:p.jsx(i1,{color:P.palette.primary.notifyIconColor}),up:p.jsx(I9,{color:P.palette.primary.notifyIconColor})}[ne]}),ee=ne=>{const{options:we,value:ke}=ne??{},Ce=we?.length!==12,ve=we?.find(Ee=>Ee?.value===ke)?.label,_e=()=>{V("year")};return p.jsxs(Ge,{direction:"row",sx:{cursor:"pointer",justifyContent:"center",alignItems:"center",gap:"0.5rem"},onClick:_e,children:[p.jsx(pt,{sx:{color:P.palette.primary.notifyActiveText,fontSize:"1.7rem",fontWeight:"500"},children:ve}),Ce&&p.jsx(i1,{color:P.palette.primary.notifyIconColor})]})},B=()=>{const ne=Array.isArray(z)?z[0]:z;if(!(ne instanceof Date)||isNaN(ne))return null;const we=ne.getFullYear(),ke=ne.getMonth();return D==="month"?p.jsx(se,{sx:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:1,justifyContent:"center",mb:2,height:T??"30rem",width:v??"30rem"},children:D9.map((Ce,ve)=>{const _e=new Date(we,ve,1),Ee=m&&_e<new Date(m.getFullYear(),m.getMonth(),1);return p.jsx(se,{sx:{display:"flex",justifyContent:"center",alignItems:"center",cursor:Ee?"not-allowed":"pointer",opacity:Ee?.5:1},onClick:()=>!Ee&&K(ve),children:p.jsx(se,{sx:{p:"0.8rem 1.2rem",borderRadius:"2rem",bgcolor:ve===ke&&!Ee&&P.palette.brandColor.orange,color:ve===ke&&!Ee?P.palette.brandColor.white:P.palette.primary.notifyActiveText,fontSize:"1.1rem"},children:O(Ce)})},Ce)})}):D==="year"?p.jsx(se,{sx:{maxHeight:T??"30rem",overflowY:"auto",pr:1},children:p.jsx(se,{sx:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:1,justifyContent:"center",mb:2,height:T??"30rem",width:v??"30rem"},children:k.map(Ce=>{const ve=m&&Ce<m.getFullYear();return p.jsx(se,{sx:{display:"flex",justifyContent:"center",alignItems:"center",cursor:ve?"not-allowed":"pointer",opacity:ve?.5:1},onClick:()=>!ve&&ce(Ce),children:p.jsx(se,{sx:{p:"0.8rem 1.2rem",borderRadius:"2rem",bgcolor:Ce===we&&!ve&&P.palette.brandColor.orange,color:Ce===we&&!ve?P.palette.brandColor.white:P.palette.primary.notifyActiveText,fontSize:"1.1rem"},children:Ce})},Ce)})})}):null},ue=(()=>{if(!r)return"";const ne=we=>vs(we,l,{locale:N});if(t==="range"){if(r?.from&&r?.to)return`${ne(r.from)} - ${ne(r.to)}`;if(r?.from)return`${ne(r.from)} - `}return t==="multiple"&&Array.isArray(r)?r.map(ne).join(", "):ne(r)})(),Q=ne=>ne instanceof Date&&!isNaN(ne.getTime());return x.useEffect(()=>{const ne=we=>{if(!U&&!u)return;const ke=A.current?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),Ce=Array.from(ke||[]),ve=Ce[0],_e=Ce[Ce.length-1];we.key==="Tab"&&(we.shiftKey?document.activeElement===ve&&(we.preventDefault(),_e?.focus()):document.activeElement===_e&&(we.preventDefault(),ve?.focus())),we.key==="Escape"&&q?.()};return document.addEventListener("keydown",ne),()=>document.removeEventListener("keydown",ne)},[U,u,q]),p.jsxs(se,{ref:j,children:[!u&&p.jsx(Ui,{label:O(e),value:ue,onClick:s?void 0:X,disabled:s,InputLabelProps:{shrink:!!r},error:c,helperText:O(d),required:b,inputProps:{readOnly:!0,tabIndex:0,style:{cursor:s?"not-allowed":"pointer"}},InputProps:{endAdornment:p.jsx(wl,{position:"end",sx:{px:"0.5rem"},children:p.jsx(Vt,{url:Xe.Calendar,style:{zIndex:"9"}})})},onKeyDown:ne=>{ne.key==="Enter"&&(ne.preventDefault(),E(ne.currentTarget))},sx:{cursor:s?"not-allowed":"pointer",opacity:s?.6:1,"& .MuiInputBase-root":{cursor:s?"not-allowed":"pointer"},...f&&!f?.showBorder&&{"& .MuiOutlinedInput-root":{borderRadius:0,"& fieldset":{borderColor:"transparent"},"&:hover fieldset":{borderColor:"transparent"},"&.Mui-focused fieldset":{borderColor:"transparent",borderWidth:"0.1rem"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"}}},"& .MuiInputLabel-root, & .MuiInputLabel-shrink":{maxWidth:"85%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",left:"0.5rem"}}}),p.jsx(se,{component:u?se:wi,id:G,open:u?!0:U,anchorEl:L,ref:A,onClose:u||h?void 0:q,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sx:u?{width:"max-content",border:`0.1rem solid ${P.palette.primary.notifyBorderColor}`,borderRadius:"0.8rem"}:{"& .MuiPopover-paper":{backgroundColor:"transparent",borderRadius:"1rem"}},children:p.jsxs(se,{sx:{zoom:S??"0.85",backgroundColor:P.palette.primary.notifyBackground,p:"2rem 1.5rem",boxShadow:"none",borderRadius:"1rem","& .rdp-selected .rdp-day_button":{border:"none",backgroundColor:P.palette.brandColor.orange,color:P.palette.brandColor.white},"& .rdp-weekday":{color:P.palette.primary.notifyTextColor,fontSize:"1.2rem",textTransform:"uppercase"},"& .rdp-month_grid ":{marginTop:"1.5rem"},"& .rdp-month_caption":{pl:"1rem"},"& .rdp-range_start":{backgroundImage:`linear-gradient(90deg, transparent 50%, ${P.palette.brandColor.lightOrange} 50%)`},"& .rdp-range_middle":{backgroundColor:P.palette.brandColor.lightOrange,"& .rdp-day_button":{backgroundColor:"transparent"}},"& .rdp-range_end":{backgroundImage:`linear-gradient(90deg, ${P.palette.brandColor.lightOrange} 50%, transparent 50%)`},"& .rdp-caption_label":{color:P.palette.primary.notifyActiveText,fontSize:"1.7rem",fontWeight:"500"},"& .rdp-day_button:disabled":{color:P.palette.primary.notifyTextColor}},children:[p.jsxs(Ge,{flexDirection:"row",children:[B(),D==="calendar"&&p.jsx(M9,{mode:t,locale:N,selected:R||r,onSelect:u?void 0:de,month:z,onMonthChange:_,startMonth:m,endMonth:g,captionLayout:u?"label":"dropdown",hideNavigation:!!u,...w,styles:{day:{fontSize:"1.5rem",fontWeight:"300",border:"none",boxShadow:"none",outline:"none",color:P.palette.primary.notifyActiveText}},modifiersStyles:{today:{fontWeight:"bold",color:P.palette.brandColor.orange},disabled:{color:P.palette.primary.notifyBorderColor,opacity:.5,backgroundColor:"transparent",cursor:"not-allowed"}},components:{Chevron:W,Dropdown:ee},disabled:u?!0:{before:m,after:g}}),n&&p.jsx(l1,{time:F,setTime:H})]}),h&&p.jsxs(Ge,{direction:"row-reverse",gap:"0.5rem",sx:{paddingTop:"1rem",borderTop:ne=>`0.1rem solid ${ne.palette.primary.notifyBorderColor}`},children:[p.jsx(jr,{label:O("LABEL_SAVE"),styles:{variant:"filled",height:"3.2rem"},onClick:()=>{o(R),q()},disabled:n&&(R==null||!Q(new Date(R)))}),p.jsx(jr,{label:O("LABEL_CANCEL"),styles:{variant:"outlined",height:"3.2rem"},onClick:q})]})]})})]})},R9=e=>p.jsx(Gt,{children:p.jsx(A9,{...e})});function N9({...e}){return p.jsx(Gt,{children:p.jsx(l1,{...e})})}const $9=Cn(p.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"),L9=({progress:e=0,status:t})=>{const r=Math.max(0,Math.min(e,100))/2-4,o={SUCCESS:"#2A9D8F",QUEUED:"#E9C46A",FAILED:"#E76F51"},s={SUCCESS:"rgba(42, 157, 143, 0.3)",QUEUED:"rgba(233, 196, 106, 0.3)",FAILED:"rgba(231, 111, 81, 0.3)"};return p.jsxs(se,{sx:{height:"0.2rem",width:"100%",position:"relative",overflow:"hidden",backgroundColor:"transparent"},children:[p.jsx(se,{sx:{position:"absolute",bottom:0,left:"50%",width:`${r}%`,height:"100%",transform:"translateX(-99%)",backgroundColor:o[t],borderTopLeftRadius:"1rem",borderBottomLeftRadius:"1rem",filter:`drop-shadow(0px 4px 10px ${s[t]})`,transition:"width 1s ease-in-out"}}),p.jsx(se,{sx:{position:"absolute",bottom:0,left:"50%",width:`${r}%`,height:"100%",backgroundColor:o[t],borderTopRightRadius:"1rem",borderBottomRightRadius:"1rem",filter:`drop-shadow(0px 4px 10px ${s[t]})`,transition:"width 1s ease-in-out"}})]})},Af={showToast:()=>{throw new Error("ToastProvider is not mounted")}},B9={success:e=>Af.showToast(e,"SUCCESS"),error:e=>Af.showToast(e,"FAILED")},_9=te(wi)(({theme:e})=>({"& .MuiPopover-paper":{backgroundColor:"transparent!important",right:"0!important",boxShadow:"none"},"& .MuiPaper-root":{pointerEvents:"auto",maxHeight:"40vh",boxShadow:"none"}})),F9=({message:e,status:t})=>{const{t:n}=x.useContext(an),[r,o]=x.useState(0),[s,a]=x.useState(!0),[l,c]=x.useState("entering"),[d,u]=x.useState(!0);x.useEffect(()=>{let m=setInterval(()=>{o(g=>s?g>=98?(a(!1),99):g+2:g)},100);return()=>clearInterval(m)},[s]),x.useEffect(()=>{let m=null,g=null;return l==="entering"&&(m=setTimeout(()=>{c("visible"),g=setTimeout(()=>{c("exiting")},8e3)},100)),()=>{clearTimeout(m),clearTimeout(g)}},[]),x.useEffect(()=>{const m=g=>{g.detail?.logout&&u(!1)};return window.addEventListener(El.LOGOUT,m),()=>{window.removeEventListener(El.LOGOUT,m)}},[]);const f=()=>{setTimeout(()=>{c("exiting")},200)},h={entering:"translateX(100%)",visible:"translateX(-100%)",exiting:"translateX(100%)"};return p.jsx(_9,{anchorPosition:{top:118,right:0},id:"scai-toast-popover",open:d,anchorReference:"anchorPosition",disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,hideBackdrop:!0,sx:{padding:"0.5rem",pointerEvents:"none",overflow:"hidden"},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:p.jsx(se,{position:"fixed",sx:{transform:h[l],opacity:l==="exiting"?0:1,transition:"transform 0.6s ease, opacity 1s ease",mb:0},children:p.jsxs(ni,{elevation:6,sx:{display:"flex",justifyContent:"space-between",filter:"drop-shadow(rgba(0, 0, 0, 0.16) 0px 1px 4px)",width:"25rem",minHeight:"4rem",borderRadius:"1rem",cursor:"default",position:"relative",border:m=>`0.1rem solid ${m.palette.primary.notifyBorderColor}!important`,backgroundColor:m=>m.palette.primary.notifyBackground,color:m=>m.palette.primary.notifyActiveText,"&:hover .close-icon":{opacity:1,color:m=>m.palette.primary.notifyActiveText,backgroundColor:m=>`${m.palette.primary.notifyBackground}!important`,border:m=>`0.1rem solid ${m.palette.primary.notifyBorderColor}!important`}},children:[p.jsx(tl,{size:"small",onClick:m=>{m.stopPropagation(),f()},className:"close-icon",sx:{position:"absolute",top:"-0.7rem",left:"-0.7rem",padding:"2px",opacity:0,transition:"opacity 0.3s ease",color:m=>m.palette.primary.notifyActiveText,backgroundColor:m=>m.palette.primary.notifyBackground,border:m=>`0.1rem solid ${m.palette.primary.notifyBorderColor}`},children:p.jsx($9,{fontSize:"small"})}),p.jsxs(Ge,{sx:{width:"100%"},direction:"column",children:[p.jsx(pt,{sx:{flexGrow:1,padding:"1.2rem 1rem 1rem 1rem",fontSize:"1.1rem",whiteSpace:"normal"},children:n(e)}),p.jsx(L9,{progress:r,status:t})]})]})})})},W9=({message:e,status:t})=>p.jsx(Gt,{children:p.jsx(F9,{message:e,status:t})}),z9=({children:e})=>{const[t,n]=x.useState(null),r=x.useCallback((o,s)=>{n({message:o,status:s,key:Date.now()})},[]);return Af.showToast=r,p.jsxs(p.Fragment,{children:[e,t&&p.jsx(W9,{message:t.message,status:t.status},t.key)]})},V9=Lr`
246
+ `),()=>{v.contains(b)&&v.removeChild(b)}},[t]),p.jsx(Tj,{isPresent:t,childRef:s,sizeRef:a,children:I.cloneElement(e,{ref:d})})}const Ej=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:a,anchorX:l,root:c})=>{const d=Yr(Oj),u=x.useId();let f=!0,h=x.useMemo(()=>(f=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:m=>{d.set(m,!0);for(const g of d.values())if(!g)return;r&&r()},register:m=>(d.set(m,!1),()=>d.delete(m))}),[n,d,r]);return s&&f&&(h={...h}),x.useMemo(()=>{d.forEach((m,g)=>d.set(g,!1))},[n]),I.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),a==="popLayout"&&(e=p.jsx(kj,{isPresent:n,anchorX:l,root:c,children:e})),p.jsx(Ol.Provider,{value:h,children:e})};function Oj(){return new Map}function xy(e=!0){const t=x.useContext(Ol);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=x.useId();x.useEffect(()=>{if(e)return o(s)},[e]);const a=x.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const $l=e=>e.key||"";function wy(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const Mj=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:a=!1,anchorX:l="left",root:c})=>{const[d,u]=xy(a),f=x.useMemo(()=>wy(e),[e]),h=a&&!d?[]:f.map($l),m=x.useRef(!0),g=x.useRef(f),y=Yr(()=>new Map),b=x.useRef(new Set),[v,k]=x.useState(f),[S,C]=x.useState(f);tu(()=>{m.current=!1,g.current=f;for(let O=0;O<S.length;O++){const M=$l(S[O]);h.includes(M)?(y.delete(M),b.current.delete(M)):y.get(M)!==!0&&y.set(M,!1)}},[S,h.length,h.join("-")]);const w=[];if(f!==v){let O=[...f];for(let M=0;M<S.length;M++){const j=S[M],A=$l(j);h.includes(A)||(O.splice(M,0,j),w.push(j))}return s==="wait"&&w.length&&(O=w),C(wy(O)),k(f),null}process.env.NODE_ENV!=="production"&&s==="wait"&&S.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:T}=x.useContext(Qd);return p.jsx(p.Fragment,{children:S.map(O=>{const M=$l(O),j=a&&!d?!1:f===S||h.includes(M),A=()=>{if(b.current.has(M))return;if(b.current.add(M),y.has(M))y.set(M,!0);else return;let L=!0;y.forEach(E=>{E||(L=!1)}),L&&(T?.(),C(g.current),a&&u?.(),r&&r())};return p.jsx(Ej,{isPresent:j,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:c,onExitComplete:j?void 0:A,anchorX:l,children:O},M)})})},Sy=x.createContext({strict:!1}),Cy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},cs={};for(const e in Cy)cs[e]={isEnabled:t=>Cy[e].some(n=>!!t[n])};function Pj(e){for(const t in e)cs[t]={...cs[t],...e[t]}}const jj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ll(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jj.has(e)}let Ty=e=>!Ll(e);function Ij(e){typeof e=="function"&&(Ty=t=>t.startsWith("on")?!Ll(t):e(t))}try{Ij(require("@emotion/is-prop-valid").default)}catch{}function Dj(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Ty(o)||n===!0&&Ll(o)||!t&&!Ll(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Bl=x.createContext({});function _l(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ni(e){return typeof e=="string"||Array.isArray(e)}const Vu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hu=["initial",...Vu];function Fl(e){return _l(e.animate)||Hu.some(t=>Ni(e[t]))}function ky(e){return!!(Fl(e)||e.variants)}function Aj(e,t){if(Fl(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ni(n)?n:void 0,animate:Ni(r)?r:void 0}}return e.inherit!==!1?t:{}}function Rj(e){const{initial:t,animate:n}=Aj(e,x.useContext(Bl));return x.useMemo(()=>({initial:t,animate:n}),[Ey(t),Ey(n)])}function Ey(e){return Array.isArray(e)?e.join(" "):e}function Oy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const $i={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=Oy(e,t.target.x),r=Oy(e,t.target.y);return`${n}% ${r}%`}},Nj={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Gr.parse(e);if(o.length>5)return r;const s=Gr.createTransformer(e),a=typeof o[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;o[0+a]/=l,o[1+a]/=c;const d=Et(l,c,.5);return typeof o[2+a]=="number"&&(o[2+a]/=d),typeof o[3+a]=="number"&&(o[3+a]/=d),s(o)}},Uu={borderRadius:{...$i,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$i,borderTopRightRadius:$i,borderBottomLeftRadius:$i,borderBottomRightRadius:$i,boxShadow:Nj};function My(e,{layout:t,layoutId:n}){return ls.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Uu[e]||e==="opacity")}const $j={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Lj=as.length;function Bj(e,t,n){let r="",o=!0;for(let s=0;s<Lj;s++){const a=as[s],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(a.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const d=ly(l,_u[a]);if(!c){o=!1;const u=$j[a]||a;r+=`${u}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Yu(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let a=!1,l=!1;for(const c in t){const d=t[c];if(ls.has(c)){a=!0;continue}else if(T0(c)){o[c]=d;continue}else{const u=ly(d,_u[c]);c.startsWith("origin")?(l=!0,s[c]=u):r[c]=u}}if(t.transform||(a||n?r.transform=Bj(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:u=0}=s;r.transformOrigin=`${c} ${d} ${u}`}}const qu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Py(e,t,n){for(const r in t)!Zt(t[r])&&!My(r,n)&&(e[r]=t[r])}function _j({transformTemplate:e},t){return x.useMemo(()=>{const n=qu();return Yu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Fj(e,t){const n=e.style||{},r={};return Py(r,n,e),Object.assign(r,_j(e,t)),r}function Wj(e,t){const n={},r=Fj(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const zj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vj={offset:"strokeDashoffset",array:"strokeDasharray"};function Hj(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?zj:Vj;e[s.offset]=Se.transform(-r);const a=Se.transform(t),l=Se.transform(n);e[s.array]=`${a} ${l}`}const Uj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function jy(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:a=0,...l},c,d,u){if(Yu(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete f.transformBox);for(const m of Uj)f[m]!==void 0&&(h[m]=f[m],delete f[m]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&Hj(f,o,s,a,!1)}const Iy=()=>({...qu(),attrs:{}}),Dy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Yj(e,t,n,r){const o=x.useMemo(()=>{const s=Iy();return jy(s,t,Dy(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Py(s,e.style,e),o.style={...s,...o.style}}return o}const qj=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Gu(e){return typeof e!="string"||e.includes("-")?!1:!!(qj.indexOf(e)>-1||/[A-Z]/u.test(e))}function Gj(e,t,n,{latestValues:r},o,s=!1,a){const c=(a??Gu(e)?Yj:Wj)(t,r,o,e),d=Dj(t,typeof e=="string",s),u=e!==x.Fragment?{...d,...c,ref:n}:{},{children:f}=t,h=x.useMemo(()=>Zt(f)?f.get():f,[f]);return x.createElement(e,{...u,children:h})}function Ay(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ku(e,t,n,r){if(typeof t=="function"){const[o,s]=Ay(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=Ay(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function Wl(e){return Zt(e)?e.get():e}function Kj({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Xj(n,r,o,e),renderState:t()}}function Xj(e,t,n,r){const o={},s=r(e,{});for(const h in s)o[h]=Wl(s[h]);let{initial:a,animate:l}=e;const c=Fl(e),d=ky(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let u=n?n.initial===!1:!1;u=u||a===!1;const f=u?l:a;if(f&&typeof f!="boolean"&&!_l(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m<h.length;m++){const g=Ku(e,h[m]);if(g){const{transitionEnd:y,transition:b,...v}=g;for(const k in v){let S=v[k];if(Array.isArray(S)){const C=u?S.length-1:0;S=S[C]}S!==null&&(o[k]=S)}for(const k in y)o[k]=y[k]}}}return o}const Ry=e=>(t,n)=>{const r=x.useContext(Bl),o=x.useContext(Ol),s=()=>Kj(e,t,r,o);return n?s():Yr(s)};function Xu(e,t,n){const{style:r}=e,o={};for(const s in r)(Zt(r[s])||t.style&&Zt(t.style[s])||My(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=r[s]);return o}const Zj=Ry({scrapeMotionValuesFromProps:Xu,createRenderState:qu});function Ny(e,t,n){const r=Xu(e,t,n);for(const o in e)if(Zt(e[o])||Zt(t[o])){const s=as.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}const Jj=Ry({scrapeMotionValuesFromProps:Ny,createRenderState:Iy}),Qj=Symbol.for("motionComponentSymbol");function eI(e,t,n){const r=x.useRef(n);x.useInsertionEffect(()=>{r.current=n});const o=x.useRef(null);return x.useCallback(s=>{s&&e.onMount?.(s),t&&(s?t.mount(s):t.unmount());const a=r.current;if(typeof a=="function")if(s){const l=a(s);typeof l=="function"&&(o.current=l)}else o.current?(o.current(),o.current=null):a(s);else a&&(a.current=s)},[t])}const Zu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$y="data-"+Zu("framerAppearId"),Ly=x.createContext({});function Li(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tI(e,t,n,r,o,s){const{visualElement:a}=x.useContext(Bl),l=x.useContext(Sy),c=x.useContext(Ol),d=x.useContext(Nl).reducedMotion,u=x.useRef(null);r=r||l.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,isSVG:s}));const f=u.current,h=x.useContext(Ly);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&nI(u.current,n,o,h);const m=x.useRef(!1);x.useInsertionEffect(()=>{f&&m.current&&f.update(n,c)});const g=n[$y],y=x.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return tu(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),y.current&&f.animationState&&f.animationState.animateChanges())}),x.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),y.current=!1),f.enteringChildren=void 0)}),f}function nI(e,t,n,r){const{layoutId:o,layout:s,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:By(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!a||l&&Li(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:d})}function By(e){if(e)return e.options.allowProjection!==!1?e.projection:By(e.parent)}function Ju(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&Pj(r);const s=n?n==="svg":Gu(e),a=s?Jj:Zj;function l(d,u){let f;const h={...x.useContext(Nl),...d,layoutId:rI(d)},{isStatic:m}=h,g=Rj(d),y=a(d,m);if(!m&&eu){oI(h,r);const b=sI(h);f=b.MeasureLayout,g.visualElement=tI(e,y,h,o,b.ProjectionNode,s)}return p.jsxs(Bl.Provider,{value:g,children:[f&&g.visualElement?p.jsx(f,{visualElement:g.visualElement,...h}):null,Gj(e,d,eI(y,g.visualElement,u),y,m,t,s)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=x.forwardRef(l);return c[Qj]=e,c}function rI({layoutId:e}){const t=x.useContext(Qd).id;return t&&e!==void 0?t+"-"+e:e}function oI(e,t){const n=x.useContext(Sy).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?rs(!1,r,"lazy-strict-mode"):Yn(!1,r,"lazy-strict-mode")}}function sI(e){const{drag:t,layout:n}=cs;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function iI(e,t){if(typeof Proxy>"u")return Ju;const n=new Map,r=(s,a)=>Ju(s,a,e,t),o=(s,a)=>(process.env.NODE_ENV!=="production"&&au(!1,"motion() is deprecated. Use motion.create() instead."),r(s,a));return new Proxy(o,{get:(s,a)=>a==="create"?r:(n.has(a)||n.set(a,Ju(a,void 0,e,t)),n.get(a))})}function _y({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lI(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Qu(e){return e===void 0||e===1}function ef({scale:e,scaleX:t,scaleY:n}){return!Qu(e)||!Qu(t)||!Qu(n)}function xo(e){return ef(e)||Fy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Fy(e){return Wy(e.x)||Wy(e.y)}function Wy(e){return e&&e!=="0%"}function zl(e,t,n){const r=e-n,o=t*r;return n+o}function zy(e,t,n,r,o){return o!==void 0&&(e=zl(e,o,r)),zl(e,n,r)+t}function tf(e,t=0,n=1,r,o){e.min=zy(e.min,t,n,r,o),e.max=zy(e.max,t,n,r,o)}function Vy(e,{x:t,y:n}){tf(e.x,t.translate,t.scale,t.originPoint),tf(e.y,n.translate,n.scale,n.originPoint)}const Hy=.999999999999,Uy=1.0000000000001;function cI(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,a;for(let l=0;l<o;l++){s=n[l],a=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&us(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Vy(e,a)),r&&xo(s.latestValues)&&us(e,s.latestValues))}t.x<Uy&&t.x>Hy&&(t.x=1),t.y<Uy&&t.y>Hy&&(t.y=1)}function ds(e,t){e.min=e.min+t,e.max=e.max+t}function Yy(e,t,n,r,o=.5){const s=Et(e.min,e.max,o);tf(e,t,n,s,r)}function us(e,t){Yy(e.x,t.x,t.scaleX,t.scale,t.originX),Yy(e.y,t.y,t.scaleY,t.scale,t.originY)}function qy(e,t){return _y(lI(e.getBoundingClientRect(),t))}function dI(e,t,n){const r=qy(e,n),{scroll:o}=t;return o&&(ds(r.x,o.offset.x),ds(r.y,o.offset.y)),r}const Gy=()=>({translate:0,scale:1,origin:0,originPoint:0}),fs=()=>({x:Gy(),y:Gy()}),Ky=()=>({min:0,max:0}),zt=()=>({x:Ky(),y:Ky()}),nf={current:null},Xy={current:!1};function uI(){if(Xy.current=!0,!!eu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>nf.current=e.matches;e.addEventListener("change",t),t()}else nf.current=!1}const fI=new WeakMap;function pI(e,t,n){for(const r in t){const o=t[r],s=n[r];if(Zt(o))e.addValue(r,o);else if(Zt(s))e.addValue(r,vo(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(r);e.addValue(r,vo(a!==void 0?a:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Zy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class hI{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:s,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ru,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=on.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,wt.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=Fl(n),this.isVariantNode=ky(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const m=f[h];c[h]!==void 0&&Zt(m)&&m.set(c[h])}}mount(t){this.current=t,fI.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Xy.current||uI(),this.shouldReduceMotion=nf.current),process.env.NODE_ENV!=="production"&&au(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Pr(this.notifyUpdate),Pr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ls.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&wt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in cs){const n=cs[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):zt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Zy.length;r++){const o=Zy[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,a=t[s];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=pI(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=vo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(s0(r)||a0(r))?r=parseFloat(r):!wj(r)&&Gr.test(n)&&(r=ay(t,n)),this.setBaseTarget(t,Zt(r)?r.get():r)),Zt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Ku(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Zt(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new iu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Fu.render(this.render)}}class Jy extends hI{constructor(){super(...arguments),this.KeyframeResolver=cj}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Zt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Qy(e,{style:t,vars:n},r,o){const s=e.style;let a;for(a in t)s[a]=t[a];o?.applyProjectionStyles(s,r);for(a in n)s.setProperty(a,n[a])}function mI(e){return window.getComputedStyle(e)}class gI extends Jy{constructor(){super(...arguments),this.type="html",this.renderInstance=Qy}readValueFromInstance(t,n){if(ls.has(n))return this.projection?.isProjecting?Pu(n):MP(t,n);{const r=mI(t),o=(T0(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return qy(t,n)}build(t,n,r){Yu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Xu(t,n,r)}}const eb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function yI(e,t,n,r){Qy(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(eb.has(o)?o:Zu(o),t.attrs[o])}class bI extends Jy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=zt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ls.has(n)){const r=iy(n);return r&&r.default||0}return n=eb.has(n)?n:Zu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ny(t,n,r)}build(t,n,r){jy(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){yI(t,n,r,o)}mount(t){this.isSVGTag=Dy(t.tagName),super.mount(t)}}const vI=(e,t)=>t.isSVG??Gu(e)?new bI(t):new gI(t,{allowProjection:e!==x.Fragment});function ps(e,t,n){const r=e.getProps();return Ku(r,t,n!==void 0?n:r.custom,e)}const rf=e=>Array.isArray(e);function xI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vo(n))}function wI(e){return rf(e)?e[e.length-1]||0:e}function SI(e,t){const n=ps(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const a in s){const l=wI(s[a]);xI(e,a,l)}}function CI(e){return!!(Zt(e)&&e.add)}function of(e,t){const n=e.getValue("willChange");if(CI(n))return n.add(t);if(!n&&Mr.WillChange){const r=new Mr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function tb(e){return e.props[$y]}const TI=e=>e!==null;function kI(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(TI),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const EI={type:"spring",stiffness:500,damping:25,restSpeed:10},OI=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),MI={type:"keyframes",duration:.8},PI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jI=(e,{keyframes:t})=>t.length>2?MI:ls.has(e)?e.startsWith("scale")?OI(t[1]):EI:PI;function II({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:a,repeatDelay:l,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const sf=(e,t,n,r={},o,s)=>a=>{const l=Lu(r,e)||{},c=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-hr(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:o};II(l)||Object.assign(u,jI(e,u)),u.duration&&(u.duration=hr(u.duration)),u.repeatDelay&&(u.repeatDelay=hr(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&($u(u),u.delay===0&&(f=!0)),(Mr.instantAnimations||Mr.skipAnimations)&&(f=!0,$u(u),u.delay=0),u.allowFlatten=!l.type&&!l.ease,f&&!s&&t.get()!==void 0){const h=kI(u.keyframes,l);if(h!==void 0){wt.update(()=>{u.onUpdate(h),u.onComplete()});return}}return l.isSync?new Eu(u):new ZP(u)};function DI({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function nb(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const u in l){const f=e.getValue(u,e.latestValues[u]??null),h=l[u];if(h===void 0||d&&DI(d,u))continue;const m={delay:n,...Lu(s||{},u)},g=f.get();if(g!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=tb(e);if(v){const k=window.MotionHandoffAnimation(v,u,wt);k!==null&&(m.startTime=k,y=!0)}}of(e,u),f.start(sf(u,f,h,e.shouldReduceMotion&&ty.has(u)?{type:!1}:m,e,y));const b=f.animation;b&&c.push(b)}return a&&Promise.all(c).then(()=>{wt.update(()=>{a&&SI(e,a)})}),c}function rb(e,t,n,r=0,o=1){const s=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),a=e.size,l=(a-1)*r;return typeof n=="function"?n(s,a):o===1?s*r:l-s*r}function af(e,t,n={}){const r=ps(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(nb(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:f}=o;return AI(e,t,c,d,u,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,d]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>d())}else return Promise.all([s(),a(n.delay)])}function AI(e,t,n=0,r=0,o=0,s=1,a){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(af(c,t,{...a,delay:n+(typeof r=="function"?0:r)+rb(e.variantChildren,c,r,o,s)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function RI(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>af(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=af(e,t,n);else{const o=typeof t=="function"?ps(e,t,n.custom):t;r=Promise.all(nb(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function ob(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const NI=Hu.length;function sb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?sb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<NI;n++){const r=Hu[n],o=e.props[r];(Ni(o)||o===!1)&&(t[r]=o)}return t}const $I=[...Vu].reverse(),LI=Vu.length;function BI(e){return t=>Promise.all(t.map(({animation:n,options:r})=>RI(e,n,r)))}function _I(e){let t=BI(e),n=ib(),r=!0;const o=c=>(d,u)=>{const f=ps(e,u,c==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:m,...g}=f;d={...d,...g,...m}}return d};function s(c){t=c(e)}function a(c){const{props:d}=e,u=sb(e.parent)||{},f=[],h=new Set;let m={},g=1/0;for(let b=0;b<LI;b++){const v=$I[b],k=n[v],S=d[v]!==void 0?d[v]:u[v],C=Ni(S),w=v===c?k.isActive:null;w===!1&&(g=b);let T=S===u[v]&&S!==d[v]&&C;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),k.protectedKeys={...m},!k.isActive&&w===null||!S&&!k.prevProp||_l(S)||typeof S=="boolean")continue;const O=FI(k.prevProp,S);let M=O||v===c&&k.isActive&&!T&&C||b>g&&C,j=!1;const A=Array.isArray(S)?S:[S];let L=A.reduce(o(v),{});w===!1&&(L={});const{prevResolvedValues:E={}}=k,N={...E,...L},P=W=>{M=!0,h.has(W)&&(j=!0,h.delete(W)),k.needsAnimating[W]=!0;const V=e.getValue(W);V&&(V.liveStyle=!1)};for(const W in N){const V=L[W],H=E[W];if(m.hasOwnProperty(W))continue;let B=!1;rf(V)&&rf(H)?B=!ob(V,H):B=V!==H,B?V!=null?P(W):h.add(W):V!==void 0&&h.has(W)?P(W):k.protectedKeys[W]=!0}k.prevProp=S,k.prevResolvedValues=L,k.isActive&&(m={...m,...L}),r&&e.blockInitialAnimation&&(M=!1);const $=T&&O;M&&(!$||j)&&f.push(...A.map(W=>{const V={type:v};if(typeof W=="string"&&r&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:H}=e,B=ps(H,W);if(H.enteringChildren&&B){const{delayChildren:D}=B.transition||{};V.delay=rb(H.enteringChildren,e,D)}}return{animation:W,options:V}}))}if(h.size){const b={};if(typeof d.initial!="boolean"){const v=ps(e,Array.isArray(d.initial)?d.initial[0]:d.initial);v&&v.transition&&(b.transition=v.transition)}h.forEach(v=>{const k=e.getBaseTarget(v),S=e.getValue(v);S&&(S.liveStyle=!0),b[v]=k??null}),f.push({animation:b})}let y=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function l(c,d){if(n[c].isActive===d)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(c,d)),n[c].isActive=d;const u=a(c);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:a,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=ib()}}}function FI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ob(t,e):!1}function wo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ib(){return{animate:wo(!0),whileInView:wo(),whileHover:wo(),whileTap:wo(),whileDrag:wo(),whileFocus:wo(),exit:wo()}}class Xr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class WI extends Xr{constructor(t){super(t),t.animationState||(t.animationState=_I(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();_l(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let zI=0;class VI extends Xr{constructor(){super(...arguments),this.id=zI++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const HI={animation:{Feature:WI},exit:{Feature:VI}};function Bi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function _i(e){return{point:{x:e.pageX,y:e.pageY}}}const UI=e=>t=>Wu(t)&&e(t,_i(t));function Fi(e,t,n,r){return Bi(e,t,UI(n),r)}const ab=1e-4,YI=1-ab,qI=1+ab,lb=.01,GI=0-lb,KI=0+lb;function sn(e){return e.max-e.min}function XI(e,t,n){return Math.abs(e-t)<=n}function cb(e,t,n,r=.5){e.origin=r,e.originPoint=Et(t.min,t.max,e.origin),e.scale=sn(n)/sn(t),e.translate=Et(n.min,n.max,e.origin)-e.originPoint,(e.scale>=YI&&e.scale<=qI||isNaN(e.scale))&&(e.scale=1),(e.translate>=GI&&e.translate<=KI||isNaN(e.translate))&&(e.translate=0)}function Wi(e,t,n,r){cb(e.x,t.x,n.x,r?r.originX:void 0),cb(e.y,t.y,n.y,r?r.originY:void 0)}function db(e,t,n){e.min=n.min+t.min,e.max=e.min+sn(t)}function ZI(e,t,n){db(e.x,t.x,n.x),db(e.y,t.y,n.y)}function ub(e,t,n){e.min=t.min-n.min,e.max=e.min+sn(t)}function Vl(e,t,n){ub(e.x,t.x,n.x),ub(e.y,t.y,n.y)}function Bn(e){return[e("x"),e("y")]}const fb=({current:e})=>e?e.ownerDocument.defaultView:null,pb=(e,t)=>Math.abs(e-t);function JI(e,t){const n=pb(e.x,t.x),r=pb(e.y,t.y);return Math.sqrt(n**2+r**2)}const hb=new Set(["auto","scroll"]);class mb{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=cf(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=JI(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!y)return;const{point:b}=m,{timestamp:v}=Xt;this.history.push({...b,timestamp:v});const{onStart:k,onMove:S}=this.handlers;g||(k&&k(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=lf(g,this.transformPagePoint),wt.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:b,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=cf(m.type==="pointercancel"?this.lastMoveEventInfo:lf(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,k),b&&b(m,k)},!Wu(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=o||window;const c=_i(t),d=lf(c,this.transformPagePoint),{point:u}=d,{timestamp:f}=Xt;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,cf(d,this.history)),this.removeListeners=Ei(Fi(this.contextWindow,"pointermove",this.handlePointerMove),Fi(this.contextWindow,"pointerup",this.handlePointerUp),Fi(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(hb.has(r.overflowX)||hb.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:o.x-n.x,y:o.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,o),wt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Pr(this.updatePoint)}}function lf(e,t){return t?{point:t(e.point)}:e}function gb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cf({point:e},t){return{point:e,delta:gb(e,yb(t)),offset:gb(e,QI(t)),velocity:eD(t,.1)}}function QI(e){return e[0]}function yb(e){return e[e.length-1]}function eD(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=yb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>hr(t)));)n--;if(!r)return{x:0,y:0};const s=Ln(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function tD(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Et(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Et(n,e,r.max):Math.min(e,n)),e}function bb(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function nD(e,{top:t,left:n,bottom:r,right:o}){return{x:bb(e.x,n,o),y:bb(e.y,t,r)}}function vb(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function rD(e,t){return{x:vb(e.x,t.x),y:vb(e.y,t.y)}}function oD(e,t){let n=.5;const r=sn(e),o=sn(t);return o>r?n=Oi(t.min,t.max-r,e.min):r>o&&(n=Oi(e.min,e.max-o,t.min)),pr(0,1,n)}function sD(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const df=.35;function iD(e=df){return e===!1?e=0:e===!0&&(e=df),{x:xb(e,"left","right"),y:xb(e,"top","bottom")}}function xb(e,t,n){return{min:wb(e,t),max:wb(e,n)}}function wb(e,t){return typeof e=="number"?e:e[t]||0}const aD=new WeakMap;class lD{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=zt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=f=>{n?(this.stopAnimation(),this.snapToCursor(_i(f).point)):this.pauseAnimation()},a=(f,h)=>{this.stopAnimation();const{drag:m,dragPropagation:g,onDragStart:y}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=pj(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Bn(v=>{let k=this.getAxisMotionValue(v).get()||0;if(mr.test(k)){const{projection:S}=this.visualElement;if(S&&S.layout){const C=S.layout.layoutBox[v];C&&(k=sn(C)*(parseFloat(k)/100))}}this.originPoint[v]=k}),y&&wt.postRender(()=>y(f,h)),of(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:y,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:v}=h;if(g&&this.currentDirection===null){this.currentDirection=cD(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),b&&b(f,h)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Bn(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new mb(t,{onSessionStart:s,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:fb(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:a}=o;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&wt.postRender(()=>l(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Hl(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=tD(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Li(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=nD(r.layoutBox,t):this.constraints=!1,this.elastic=iD(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Bn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=sD(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Li(t))return!1;const r=t.current;Yn(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=dI(r,o.root,this.visualElement.getTransformPagePoint());let a=rD(o.layout.layoutBox,s);if(n){const l=n(aI(a));this.hasMutatedConstraints=!!l,l&&(a=_y(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=Bn(u=>{if(!Hl(u,n,this.currentDirection))return;let f=c&&c[u]||{};a&&(f={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(u,g)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return of(this.visualElement,t),r.start(sf(t,r,0,n,this.visualElement,!1))}stopAnimation(){Bn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Bn(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Bn(n=>{const{drag:r}=this.getProps();if(!Hl(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:l}=o.layout.layoutBox[n],c=s.get()||0;s.set(t[n]-Et(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Li(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Bn(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();o[a]=oD({min:c,max:c},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Bn(a=>{if(!Hl(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];l.set(Et(c,d,o[a]))})}addListeners(){if(!this.visualElement.current)return;aD.set(this.visualElement,this);const t=this.visualElement.current,n=Fi(t,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&!my(c.target)&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Li(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),wt.read(r);const a=Bi(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Bn(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())}));return()=>{a(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:a=df,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:a,dragMomentum:l}}}function Hl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function cD(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class dD extends Xr{constructor(t){super(t),this.removeGroupControls=$n,this.removeListeners=$n,this.controls=new lD(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$n}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const Sb=e=>(t,n)=>{e&&wt.postRender(()=>e(t,n))};class uD extends Xr{constructor(){super(...arguments),this.removePointerDownListener=$n}onPointerDown(t){this.session=new mb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Sb(t),onStart:Sb(n),onMove:r,onEnd:(s,a)=>{delete this.session,o&&wt.postRender(()=>o(s,a))}}}mount(){this.removePointerDownListener=Fi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ul={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let uf=!1;class fD extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),uf&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Ul.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,uf=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||wt.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Fu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;uf=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Cb(e){const[t,n]=xy(),r=x.useContext(Qd);return p.jsx(fD,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(Ly),isPresent:t,safeToRemove:n})}function pD(e,t,n){const r=Zt(e)?e:vo(e);return r.start(sf("",r,t,n)),r.animation}const hD=(e,t)=>e.depth-t.depth;class mD{constructor(){this.children=[],this.isDirty=!1}add(t){nu(this.children,t),this.isDirty=!0}remove(t){ru(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(hD),this.isDirty=!1,this.children.forEach(t)}}function gD(e,t){const n=on.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(Pr(r),e(s-t))};return wt.setup(r,!0),()=>Pr(r)}const Tb=["TopLeft","TopRight","BottomLeft","BottomRight"],yD=Tb.length,kb=e=>typeof e=="string"?parseFloat(e):e,Eb=e=>typeof e=="number"||Se.test(e);function bD(e,t,n,r,o,s){o?(e.opacity=Et(0,n.opacity??1,vD(r)),e.opacityExit=Et(t.opacity??1,0,xD(r))):s&&(e.opacity=Et(t.opacity??1,n.opacity??1,r));for(let a=0;a<yD;a++){const l=`border${Tb[a]}Radius`;let c=Ob(t,l),d=Ob(n,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||Eb(c)===Eb(d)?(e[l]=Math.max(Et(kb(c),kb(d),r),0),(mr.test(d)||mr.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||n.rotate)&&(e.rotate=Et(t.rotate||0,n.rotate||0,r))}function Ob(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const vD=Mb(0,.5,g0),xD=Mb(.5,.95,$n);function Mb(e,t,n){return r=>r<e?0:r>t?1:n(Oi(e,t,r))}function Pb(e,t){e.min=t.min,e.max=t.max}function Gn(e,t){Pb(e.x,t.x),Pb(e.y,t.y)}function jb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ib(e,t,n,r,o){return e-=t,e=zl(e,1/n,r),o!==void 0&&(e=zl(e,1/o,r)),e}function wD(e,t=0,n=1,r=.5,o,s=e,a=e){if(mr.test(t)&&(t=parseFloat(t),t=Et(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=Et(s.min,s.max,r);e===s&&(l-=t),e.min=Ib(e.min,t,n,l,o),e.max=Ib(e.max,t,n,l,o)}function Db(e,t,[n,r,o],s,a){wD(e,t[n],t[r],t[o],t.scale,s,a)}const SD=["x","scaleX","originX"],CD=["y","scaleY","originY"];function Ab(e,t,n,r){Db(e.x,t,SD,n?n.x:void 0,r?r.x:void 0),Db(e.y,t,CD,n?n.y:void 0,r?r.y:void 0)}function Rb(e){return e.translate===0&&e.scale===1}function Nb(e){return Rb(e.x)&&Rb(e.y)}function $b(e,t){return e.min===t.min&&e.max===t.max}function TD(e,t){return $b(e.x,t.x)&&$b(e.y,t.y)}function Lb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Bb(e,t){return Lb(e.x,t.x)&&Lb(e.y,t.y)}function _b(e){return sn(e.x)/sn(e.y)}function Fb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class kD{constructor(){this.members=[]}add(t){nu(this.members,t),t.scheduleRender()}remove(t){if(ru(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ED(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((o||s||a)&&(r=`translate3d(${o}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:f,rotateY:h,skewX:m,skewY:g}=n;d&&(r=`perspective(${d}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const ff=["","X","Y","Z"],OD=1e3;let MD=0;function pf(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Wb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=tb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",wt,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Wb(r)}function zb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},l=t?.()){this.id=MD++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ID),this.nodes.forEach(ND),this.nodes.forEach($D),this.nodes.forEach(DD)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new mD)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new iu),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=by(a)&&!bj(a),this.instance=a;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let u,f=0;const h=()=>this.root.updateBlockedByResize=!1;wt.read(()=>{f=window.innerWidth}),e(a,()=>{const m=window.innerWidth;m!==f&&(f=m,this.root.updateBlockedByResize=!0,u&&u(),u=gD(h,250),Ul.hasAnimatedSinceResize&&(Ul.hasAnimatedSinceResize=!1,this.nodes.forEach(Ub)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||WD,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=d.getProps(),v=!this.targetLayout||!Bb(this.targetLayout,m),k=!f&&h;if(this.options.layoutRoot||this.resumeFrom||k||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...Lu(g,"layout"),onPlay:y,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(u,k)}else f||Ub(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Pr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(LD),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Wb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Vb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Hb);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(RD),this.nodes.forEach(PD),this.nodes.forEach(jD)):this.nodes.forEach(Hb),this.clearAllSnapshots();const l=on.now();Xt.delta=pr(0,1e3/60,l-Xt.timestamp),Xt.timestamp=l,Xt.isProcessing=!0,du.update.process(Xt),du.preRender.process(Xt),du.render.process(Xt),Xt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(AD),this.sharedNodes.forEach(BD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,wt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){wt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!sn(this.snapshot.measuredBox.x)&&!sn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=zt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Nb(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;a&&this.instance&&(l||xo(this.latestValues)||u)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),zD(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return zt();const l=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(VD))){const{scroll:d}=this.root;d&&(ds(l.x,d.offset.x),ds(l.y,d.offset.y))}return l}removeElementScroll(a){const l=zt();if(Gn(l,a),this.scroll?.wasRoot)return l;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:u,options:f}=d;d!==this.root&&u&&f.layoutScroll&&(u.wasRoot&&Gn(l,a),ds(l.x,u.offset.x),ds(l.y,u.offset.y))}return l}applyTransform(a,l=!1){const c=zt();Gn(c,a);for(let d=0;d<this.path.length;d++){const u=this.path[d];!l&&u.options.layoutScroll&&u.scroll&&u!==u.root&&us(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),xo(u.latestValues)&&us(c,u.latestValues)}return xo(this.latestValues)&&us(c,this.latestValues),c}removeTransform(a){const l=zt();Gn(l,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!xo(d.latestValues))continue;ef(d.latestValues)&&d.updateSnapshot();const u=zt(),f=d.measurePageBox();Gn(u,f),Ab(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return xo(this.latestValues)&&Ab(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Xt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=Xt.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=zt(),this.targetWithTransforms=zt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ZI(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Gn(this.target,this.layout.layoutBox),Vy(this.target,this.targetDelta)):Gn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ef(this.parent.latestValues)||Fy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=zt(),this.relativeTargetOrigin=zt(),Vl(this.relativeTargetOrigin,l,c),Gn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Xt.timestamp&&(c=!1),c)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;Gn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;cI(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=zt());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(jb(this.prevProjectionDelta.x,this.projectionDelta.x),jb(this.prevProjectionDelta.y,this.projectionDelta.y)),Wi(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Fb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fs(),this.projectionDelta=fs(),this.projectionDeltaWithTransform=fs()}setAnimationOrigin(a,l=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},f=fs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=zt(),m=c?c.source:void 0,g=this.layout?this.layout.source:void 0,y=m!==g,b=this.getStack(),v=!b||b.members.length<=1,k=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(FD));this.animationProgress=0;let S;this.mixTargetDelta=C=>{const w=C/1e3;Yb(f.x,a.x,w),Yb(f.y,a.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vl(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_D(this.relativeTarget,this.relativeTargetOrigin,h,w),S&&TD(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=zt()),Gn(S,this.relativeTarget)),y&&(this.animationValues=u,bD(u,d,this.latestValues,w,k,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Pr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wt.update(()=>{Ul.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=vo(0)),this.currentAnimation=pD(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(OD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:u}=a;if(!(!l||!c||!d)){if(this!==a&&this.layout&&d&&Zb(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||zt();const f=sn(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const h=sn(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+h}Gn(l,c),us(l,u),Wi(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new kD),this.sharedNodes.get(a).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&pf("z",a,d,this.animationValues);for(let u=0;u<ff.length;u++)pf(`rotate${ff[u]}`,a,d,this.animationValues),pf(`skew${ff[u]}`,a,d,this.animationValues);a.render();for(const u in d)a.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);a.scheduleRender()}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Wl(l?.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Wl(l?.pointerEvents)||""),this.hasProjected&&!xo(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let f=ED(this.projectionDeltaWithTransform,this.treeScale,u);c&&(f=c(u,f)),a.transform=f;const{x:h,y:m}=this.projectionDelta;a.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,d.animationValues?a.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:a.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in Uu){if(u[g]===void 0)continue;const{correct:y,applyTo:b,isCSSVariable:v}=Uu[g],k=f==="none"?u[g]:y(u[g],d);if(b){const S=b.length;for(let C=0;C<S;C++)a[b[C]]=k}else v?this.options.visualElement.renderState.vars[g]=k:a[g]=k}this.options.layoutId&&(a.pointerEvents=d===this?Wl(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(Vb),this.root.sharedNodes.clear()}}}function PD(e){e.updateLayout()}function jD(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;o==="size"?Bn(u=>{const f=s?t.measuredBox[u]:t.layoutBox[u],h=sn(f);f.min=n[u].min,f.max=f.min+h}):Zb(o,t.layoutBox,n)&&Bn(u=>{const f=s?t.measuredBox[u]:t.layoutBox[u],h=sn(n[u]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const a=fs();Wi(a,n,t.layoutBox);const l=fs();s?Wi(l,e.applyTransform(r,!0),t.measuredBox):Wi(l,n,t.layoutBox);const c=!Nb(a);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:f,layout:h}=u;if(f&&h){const m=zt();Vl(m,t.layoutBox,f.layoutBox);const g=zt();Vl(g,n,h.layoutBox),Bb(m,g)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function ID(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function DD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function AD(e){e.clearSnapshot()}function Vb(e){e.clearMeasurements()}function Hb(e){e.isLayoutDirty=!1}function RD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ub(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ND(e){e.resolveTargetDelta()}function $D(e){e.calcProjection()}function LD(e){e.resetSkewAndRotation()}function BD(e){e.removeLeadSnapshot()}function Yb(e,t,n){e.translate=Et(t.translate,0,n),e.scale=Et(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function qb(e,t,n,r){e.min=Et(t.min,n.min,r),e.max=Et(t.max,n.max,r)}function _D(e,t,n,r){qb(e.x,t.x,n.x,r),qb(e.y,t.y,n.y,r)}function FD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const WD={duration:.45,ease:[.4,0,.1,1]},Gb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Kb=Gb("applewebkit/")&&!Gb("chrome/")?Math.round:$n;function Xb(e){e.min=Kb(e.min),e.max=Kb(e.max)}function zD(e){Xb(e.x),Xb(e.y)}function Zb(e,t,n){return e==="position"||e==="preserve-aspect"&&!XI(_b(t),_b(n),.2)}function VD(e){return e!==e.root&&e.scroll?.wasRoot}const HD=zb({attachResizeListener:(e,t)=>Bi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hf={current:void 0},Jb=zb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hf.current){const e=new HD({});e.mount(window),e.setOptions({layoutScroll:!0}),hf.current=e}return hf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),UD={pan:{Feature:uD},drag:{Feature:dD,ProjectionNode:Jb,MeasureLayout:Cb}};function Qb(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&wt.postRender(()=>s(t,_i(t)))}class YD extends Xr{mount(){const{current:t}=this.node;t&&(this.unmount=hj(t,(n,r)=>(Qb(this.node,r,"Start"),o=>Qb(this.node,o,"End"))))}unmount(){}}class qD extends Xr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ei(Bi(this.node.current,"focus",()=>this.onFocus()),Bi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ev(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&wt.postRender(()=>s(t,_i(t)))}class GD extends Xr{mount(){const{current:t}=this.node;t&&(this.unmount=yj(t,(n,r)=>(ev(this.node,r,"Start"),(o,{success:s})=>ev(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const mf=new WeakMap,gf=new WeakMap,KD=e=>{const t=mf.get(e.target);t&&t(e)},XD=e=>{e.forEach(KD)};function ZD({root:e,...t}){const n=e||document;gf.has(n)||gf.set(n,{});const r=gf.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(XD,{root:e,...t})),r[o]}function JD(e,t,n){const r=ZD(t);return mf.set(e,n),r.observe(e),()=>{mf.delete(e),r.unobserve(e)}}const QD={some:0,all:1};class eA extends Xr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:QD[o]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),h=d?u:f;h&&h(c)};return JD(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(tA(t,n))&&this.startObserver()}unmount(){}}function tA({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const nA={...HI,...{inView:{Feature:eA},tap:{Feature:GD},focus:{Feature:qD},hover:{Feature:YD}},...UD,...{layout:{ProjectionNode:Jb,MeasureLayout:Cb}}},Zr=iI(nA,vI);function tv(e){const t=Yr(()=>vo(e)),{isStatic:n}=x.useContext(Nl);if(n){const[,r]=x.useState(e);x.useEffect(()=>t.on("change",r),[])}return t}function nv(e,t){const n=tv(t()),r=()=>n.set(t());return r(),tu(()=>{const o=()=>wt.preRender(r,!1,!0),s=e.map(a=>a.on("change",o));return()=>{s.forEach(a=>a()),Pr(r)}}),n}function rA(e){Ri.current=[],e();const t=nv(Ri.current,e);return Ri.current=void 0,t}function oA(e,t,n,r){if(typeof e=="function")return rA(e);const s=typeof t=="function"?t:vj(t,n,r);return Array.isArray(e)?rv(e,s):rv([e],([a])=>s(a))}function rv(e,t){const n=Yr(()=>[]);return nv(e,()=>{n.length=0;const r=e.length;for(let o=0;o<r;o++)n[o]=e[o].get();return t(n)})}class sA{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,n){this.componentControls.forEach(r=>{r.start(t.nativeEvent||t,n)})}cancel(){this.componentControls.forEach(t=>{t.cancel()})}stop(){this.componentControls.forEach(t=>{t.stop()})}}const iA=()=>new sA;function ov(){return Yr(iA)}const sv=x.createContext(null);function aA(e,t,n,r){if(!r)return e;const o=e.findIndex(u=>u.value===t);if(o===-1)return e;const s=r>0?1:-1,a=e[o+s];if(!a)return e;const l=e[o],c=a.layout,d=Et(c.min,c.max,.5);return s===1&&l.layout.max+n>d||s===-1&&l.layout.min+n<d?OM(e,o,o+s):e}function lA({children:e,as:t="ul",axis:n="y",onReorder:r,values:o,...s},a){const l=Yr(()=>Zr[t]),c=[],d=x.useRef(!1),u=x.useRef(null);Yn(!!o,"Reorder.Group must be provided a values prop","reorder-values");const f={axis:n,groupRef:u,registerItem:(g,y)=>{const b=c.findIndex(v=>g===v.value);b!==-1?c[b].layout=y[n]:c.push({value:g,layout:y[n]}),c.sort(uA)},updateOrder:(g,y,b)=>{if(d.current)return;const v=aA(c,g,y,b);c!==v&&(d.current=!0,r(v.map(dA).filter(k=>o.indexOf(k)!==-1)))}};x.useEffect(()=>{d.current=!1});const h=g=>{u.current=g,typeof a=="function"?a(g):a&&(a.current=g)},m={overflowAnchor:"none",...s.style};return p.jsx(l,{...s,style:m,ref:h,ignoreStrict:!0,children:p.jsx(sv.Provider,{value:f,children:e})})}const cA=x.forwardRef(lA);function dA(e){return e.value}function uA(e,t){return e.layout.min-t.layout.min}const Yl=50,iv=25,fA=new Set(["auto","scroll"]),zi=new WeakMap,Vi=new WeakMap;let Hi=null;function pA(){if(Hi){const e=yf(Hi,"y");e&&(Vi.delete(e),zi.delete(e));const t=yf(Hi,"x");t&&t!==e&&(Vi.delete(t),zi.delete(t)),Hi=null}}function hA(e,t){const n=getComputedStyle(e),r=t==="x"?n.overflowX:n.overflowY;return fA.has(r)}function yf(e,t){let n=e?.parentElement;for(;n;){if(hA(n,t))return n;n=n.parentElement}return null}function mA(e,t,n){const r=t.getBoundingClientRect(),o=n==="x"?r.left:r.top,s=n==="x"?r.right:r.bottom,a=e-o,l=s-e;if(a<Yl){const c=1-a/Yl;return{amount:-iv*c*c,edge:"start"}}else if(l<Yl){const c=1-l/Yl;return{amount:iv*c*c,edge:"end"}}return{amount:0,edge:null}}function gA(e,t,n,r){if(!e)return;Hi=e;const o=yf(e,n);if(!o)return;const{amount:s,edge:a}=mA(t,o,n);if(a===null){Vi.delete(o),zi.delete(o);return}if(Vi.get(o)!==a){if(!(a==="start"&&r<0||a==="end"&&r>0))return;Vi.set(o,a);const d=n==="x"?o.scrollWidth-o.clientWidth:o.scrollHeight-o.clientHeight;zi.set(o,d)}if(s>0){const c=zi.get(o);if((n==="x"?o.scrollLeft:o.scrollTop)>=c)return}n==="x"?o.scrollLeft+=s:o.scrollTop+=s}function av(e,t=0){return Zt(e)?e:tv(t)}function yA({children:e,style:t={},value:n,as:r="li",onDrag:o,onDragEnd:s,layout:a=!0,...l},c){const d=Yr(()=>Zr[r]),u=x.useContext(sv),f={x:av(t.x),y:av(t.y)},h=oA([f.x,f.y],([v,k])=>v||k?1:"unset");Yn(!!u,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:m,registerItem:g,updateOrder:y,groupRef:b}=u;return p.jsx(d,{drag:m,...l,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:h},layout:a,onDrag:(v,k)=>{const{velocity:S,point:C}=k,w=f[m].get();y(n,w,S[m]),gA(b.current,C[m],m,S[m]),o&&o(v,k)},onDragEnd:(v,k)=>{pA(),s&&s(v,k)},onLayoutMeasure:v=>{g(n,v)},ref:c,ignoreStrict:!0,children:e})}const lv=x.forwardRef(yA),Vt=({name:e,size:t=24,url:n,color:r="currentColor",style:o={},...s})=>{const{isPrimary:a}=s,l=n||Xe[e],d=gt().palette.mode==="dark",u=a?"invert(0%) brightness(200%)":d?"invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%)":"invert(48%) sepia(0%) saturate(0%) hue-rotate(181deg) brightness(95%) contrast(90%)";return l?p.jsx("img",{src:l,alt:`${e}-icon`,draggable:!1,style:{filter:u,...o},...s}):null},bA=({showOptions:e,setShowOptions:t,buttonRef:n,options:r,onClick:o})=>{const s=x.useRef(null);return x.useEffect(()=>{let a;return e&&(a=setTimeout(()=>{const l=c=>{s?.current&&!s?.current.contains(c.target)&&!n?.contains(c.target)&&t(!1)};document.addEventListener("mousedown",l),document._customLabelClickOutside=l},0)),()=>{clearTimeout(a),document._customLabelClickOutside&&(document.removeEventListener("mousedown",document._customLabelClickOutside),delete document._customLabelClickOutside)}},[e]),p.jsx(ui,{open:e,anchorEl:n,placement:"bottom",transition:!0,modifiers:[{name:"offset",options:{offset:[0,0]}},{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:a})=>{a.styles.popper.width=`${a.rects.reference.width}px`}}],style:{zIndex:1300},ref:s,children:({TransitionProps:a})=>p.jsx(hi,{...a,timeout:100,children:p.jsx(se,{sx:{background:l=>l.palette.primary.appBackground,border:l=>`1px solid ${l.palette.primary.notifyBorderColor}`,borderRadius:"0.7rem",width:"100%",padding:"0.3rem",maxHeight:"20rem",overflowY:"auto"},children:p.jsx(se,{children:r?.map((l,c)=>p.jsx(mo,{sx:{opacity:1,pointerEvents:"auto",padding:"0rem",borderTop:c!==0?d=>`0.1rem solid ${d.palette.primary.notifyBorderColor}`:"none"},onClick:d=>{d.stopPropagation(),o(l)},children:p.jsx(Ge,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{p:"0.5rem"},children:p.jsx(Ge,{direction:"row",alignItems:"center",gap:"1rem",children:p.jsx(pt,{component:"h3",sx:{color:d=>d.palette.primary.notifyActiveText,fontWeight:"300",fontSize:"1.1rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l.label})})})},c))})})})})},cv=({styles:e,label:t,helpText:n,disabled:r,onClick:o,...s})=>{const a=gt(),{t:l}=x.useContext(an);let c=l(t)?.length*(l(t)?.length>=10?6.5:8.5)+42||0;c=s?.options?c+15:c;const[d,u]=x.useState(!1),f=x.useRef(null),[h,m]=x.useState(!1),[g,y]=x.useState(e?.isAnimate),[b,v]=x.useState(!1);return p.jsx(Ti,{title:l(n)??l(t),placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.6rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:p.jsxs(Zr.button,{ref:f,onFocus:()=>v(!0),onBlur:()=>v(!1),onMouseEnter:()=>g&&u(!0),onMouseLeave:()=>{g&&u(!1),v(!1)},initial:{width:e?.width||(!g&&t?`${c/10}rem`:"3.2rem"),borderRadius:"0.7rem"},animate:{width:g?`${d?c/9:3.2}rem`:t?e?.width??`${c/10}rem`:"3.2rem"},whileHover:{backgroundColor:e?.hover?.backgroundColor,color:e?.hover?.color},transition:{duration:.2,ease:"easeInOut"},style:{height:"3.2rem",outline:"none",overflow:"hidden",backgroundColor:e?.variant!=="outlined"?e?.colorType==="secondary"?a.palette.brandColor.blue:e?.colorType==="danger"?a.palette.brandColor.red:e?.colorType==="empty"?a.palette.primary.notifyButtonBackground:a.palette.brandColor.orange:a.palette.primary.notifyBackground,border:e?.variant==="outlined"||e?.colorType==="empty"?b?`0.1rem solid ${a.palette.brandColor.orange}`:`0.1rem solid ${a.palette.primary.notifyBorderColor}`:b?`0.1rem solid ${a.palette.brandColor.orange}`:"none",display:"flex",alignItems:"center",gap:d||!g?"0.5rem":0,color:e?.variant==="outlined"||e?.colorType==="empty"?a.palette.primary.notifyTextColor:"white",justifyContent:"center",padding:d||!g?"1.2rem":"0.8rem",whiteSpace:"nowrap",opacity:r?.5:1,cursor:r?"auto":"pointer",...e},disabled:r,layout:!0,onClick:()=>{v(!1),!s?.options&&o(),s?.options&&(m(k=>!k),y(h))},...s,children:[e?.icon&&(!e?.iconPosition||e?.iconPosition==="start")&&p.jsx(Vt,{url:e?.icon,isPrimary:e?.iconPrimary}),t&&p.jsxs(Zr.div,{layout:!0,initial:{opacity:0,width:0},animate:{opacity:d||!g?1:0,width:d||!g?"auto":0},transition:{duration:.2,ease:"easeInOut",delay:d?.1:0},style:{overflow:"hidden",whiteSpace:"nowrap",display:"flex",justifyContent:"center",gap:"0.8rem"},children:[p.jsx(pt,{sx:{fontSize:"1.1rem"},children:l(t)}),s?.options&&(h?p.jsx(Vt,{url:Xe.ArrowUpLight}):p.jsx(Vt,{url:Xe.ArrowDownLight}))]}),e?.iconPosition==="end"&&p.jsx(Vt,{url:e?.icon,isPrimary:e?.iconPrimary}),p.jsx(bA,{showOptions:h,buttonRef:f?.current,setShowOptions:m,options:s?.options,onClick:o})]})})};cv.propTypes={styles:i.object.isRequired,label:i.string};function jr({...e}){return p.jsx(Gt,{children:p.jsx(cv,{...e})})}function gr({...e}){return p.jsx(Gt,{children:p.jsx(lg,{sx:{p:"0!important"},id:e?.id,icon:p.jsx(se,{component:"img",src:Xe.Uncheck}),checkedIcon:p.jsx(se,{component:"img",src:Xe.Check}),...e})})}const vA=({iconUrl:e,placeholder:t,...n})=>{const[r,o]=x.useState(!1),[s,a]=x.useState(!1),l=gt(),{t:c}=x.useContext(an);return p.jsxs(se,{sx:{display:"flex",alignItems:"center",border:`0.1rem solid ${s?l.palette.brandColor.orange:l.palette.primary.notifyBorderColor}`,borderRadius:"0.7rem",backgroundColor:l.palette.primary.notifyBackground,height:"3.2rem",paddingLeft:"0.5rem",overflow:"hidden",transition:"border 0.2s ease"},children:[e&&p.jsx(se,{component:Vt,url:e,sx:{width:"1.3rem",height:"1.3rem",margin:"0 0.5rem 0.2rem 0.5rem",userSelect:"none",pointerEvents:"none",objectFit:"contain"},draggable:!1}),p.jsx(Zr.input,{type:"text",onFocus:()=>{a(!0),o(!0)},onBlur:()=>{a(!1),o(!1)},initial:{width:"10rem"},animate:{width:r?"13rem":"10rem"},transition:{duration:.3,ease:"easeInOut"},style:{height:"3.007rem",outline:"none",boxShadow:"none",fontSize:"1.1rem",border:"none",backgroundColor:"transparent",padding:0,color:l.palette.primary.notifyTextColor,flex:1,transition:"height 0.1s ease"},placeholder:c(t),...n})]})};function dv({...e}){return p.jsx(Gt,{children:p.jsx(vA,{...e})})}const xA=te(Jd)(({theme:e})=>({width:"100%!important","& .MuiFormHelperText-root":{margin:0},"& .MuiInputBase-root.MuiOutlinedInput-root.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.brandColor.red},"& .MuiInputLabel-root.Mui-error":{color:e.palette.brandColor.red},"& .MuiFilledInput-root":{borderRadius:"0.8rem"},"& .MuiOutlinedInput-root":{fontSize:"1.1rem",color:e.palette.primary.notifyTextColor,borderRadius:"0.8rem",backgroundColor:`${e.palette.primary.notifyBackground}`,padding:"0.3rem","& fieldset":{borderColor:`${e.palette.primary.notifyBorderColor}`},"&:hover fieldset":{borderColor:`${e.palette.primary.notifyBorderColor}`},"&.Mui-focused fieldset":{borderColor:`${e.palette.brandColor.orange}`,borderWidth:"0.12rem"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:`${e.palette.primary.notifyBorderColor}`}},"& .MuiInputBase-input":{color:e.palette.primary.notifyActiveText,fontSize:"1.1rem",height:"2.6rem",padding:"0.3rem 1rem"},"& .MuiInputBase-input.Mui-disabled":{color:`${e.palette.primary.notifyTextColor} !important`,cursor:"not-allowed","-webkit-text-fill-color":`${e.palette.primary.notifyTextColor} !important`,opacity:1},"& .Mui-disabled":{color:`${e.palette.primary.notifyTextColor} !important`,overflow:"hidden",opacity:1},"& .Mui-disabled:before":{border:"none !important"},"& .MuiInputBase-input::placeholder":{color:e.palette.primary.notifyTextColor,fontSize:"1.1rem"},"& .MuiInputLabel-root":{paddingLeft:"0.5rem",backgroundColor:`${e.palette.primary.notifyBackground}!important`,color:e.palette.primary.notifyTextColor,fontSize:"1.1rem",top:"1.1rem",left:"1rem",transform:"none","&.Mui-focused":{color:e.palette.primary.notifyTextColor}},"& .MuiInputLabel-shrink":{top:"0",backgroundColor:`${e.palette.primary.notifyBackground}!important`,padding:"0 0.4rem",transform:"translateY(-50%) translateX(0rem)"},"& .MuiFormHelperText-root.Mui-error":{color:`${e.palette.brandColor.red} !important`,paddingLeft:"0.8rem",paddingTop:"0.2rem",fontSize:"0.9rem"},"& .MuiInputBase-input::placeholder":{color:e.palette.primary.notifyTextColor,opacity:1},"& .MuiFormLabel-asterisk":{color:`${e.palette.brandColor.red} !important`},"& input:-webkit-autofill":{WebkitBoxShadow:"0 0 0 10rem transparent inset !important",WebkitTextFillColor:`${e.palette.primary.notifyActiveText}!important`,caretColor:e.palette.primary.notifyActiveText,transition:"background-color 9999s ease-in-out 0s !important"},"& input:-webkit-autofill:hover ":{WebkitBoxShadow:"0 0 0 10rem transparent inset !important",WebkitTextFillColor:`${e.palette.primary.notifyActiveText}!important`}})),Ui=({showBorder:e=!0,...t})=>p.jsx(Gt,{children:p.jsx(xA,{variant:"outlined",inputProps:{style:{cursor:t?.disabled?"not-allowed":"pointer"}},slotProps:{htmlInput:{title:""}},sx:{"& .MuiFormLabel-asterisk.MuiInputLabel-asterisk":{"&::after":{content:'""',marginLeft:"4px",color:"red"}},cursor:t?.disabled?"not-allowed":"pointer",opacity:t?.disabled?.5:1,...!e&&{"& .MuiOutlinedInput-root":{borderRadius:0,"& fieldset":{borderColor:"transparent"},"&:hover fieldset":{borderColor:"transparent"},"&.Mui-focused fieldset":{borderColor:"transparent",borderWidth:"0.15rem"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"}}},...t.styles},...t})}),ql=e=>{const t=localStorage.getItem(e);return t?JSON.parse(t):""},wA=(e,t)=>{const n=new Date,r=new Date(e);let o=n-r;o<0&&(o=0);const s=Math.floor(o/1e3),a=Math.floor(s/60);return s<60?`${s} ${t("LABEL_SEC_AGO")}`:a<60?`${a} ${t("LABEL_MIN_AGO")}`:r.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})},Gl=e=>e.sort((n,r)=>{let o=new Date(n.createdAt),s=new Date(r.createdAt);return o===s?0:o>s?-1:1}).sort((n,r)=>n.isRead===r.isRead?0:r.isRead?-1:1),uv=e=>{let t=0;for(let n=0;n<e?.length;n++)e[n].isRead||t++;return t},SA=e=>{const t=[];return e?.forEach(n=>{n.isRead||t.push(n.id)}),t},CA=(e,t,n)=>e?.filter(o=>t.some(s=>o[s]?.toLowerCase()?.includes(n?.trim()?.toLowerCase()))),TA=(e,t,n)=>e?.sort((o,s)=>n==="asc"?o[t].toLowerCase().localeCompare(s[t].toLowerCase()):s[t].toLowerCase().localeCompare(o[t].toLowerCase())),bf=(e,t,n)=>e?.slice((t-1)*n,t*n),kA=e=>{const t=e?.reduce((r,o)=>{const s=new Date(o?.createdAt),a=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(s);return r[a]||(r[a]=[]),r[a].push(o),r},{});return Object.fromEntries(Object.entries(t).sort(([r],[o])=>new Date(o)-new Date(r)))},EA=(e,t)=>{if(!Array.isArray(e))return[];const n=t?.toLowerCase?.().trim();if(!n)return e;const r=o=>o.map(s=>{const a=s?.label?.toLowerCase?.().includes(n);let l=[];return Array.isArray(s.children)&&(l=r(s.children)),a||l.length>0?{...s,children:l.length>0?l:s.children}:null}).filter(Boolean);return r(e)};async function OA(e){switch(e.split("-")[0]){case"tr":return(await Promise.resolve().then(()=>i4)).tr;case"nl":return(await Promise.resolve().then(()=>IR)).nl;default:return(await Promise.resolve().then(()=>k6)).enUS}}function fv(e){if(typeof e=="number")return e;if(typeof e=="string"){const t=e.trim();if(t.endsWith("px"))return parseFloat(t);if(t.endsWith("rem")){const r=parseFloat(t),o=typeof window<"u"?parseFloat(getComputedStyle(document.documentElement).fontSize):16;return r*o}const n=parseFloat(t);return isNaN(n)?0:n}return 0}const Ve={LOADING:"LOADING",SUCCESS:"SUCCESS",ERROR:"ERROR",MARK_ALL_AS_READ:"MARK_ALL_AS_READ",SET_GRID_DATA:"SET_GRID_DATA",PREV_GRID_DEF:"PREV_GRID_DEF",HAS_SETTING_CHANGE:"HAS_SETTING_CHANGE",TRIGGER_API:"TRIGGER_API",SET_MODE:"SET_MODE",SET_ACTIVE_TAB:"SET_ACTIVE_TAB"},yr={SWR:"SWR",UNHANDLED:"UNHANDLED",NRF:"NRF"},Yi=x.createContext(null),hs=x.createContext(null);function pv({children:e}){const[t,n]=x.useReducer(MA,PA);return p.jsx(Yi.Provider,{value:t,children:p.jsx(hs.Provider,{value:n,children:p.jsx(Gt,{children:e})})})}function MA(e,t){switch(t.type){case Ve.SET_GRID_DATA:case Ve.HAS_SETTING_CHANGE:case Ve.TRIGGER_API:case Ve.PREV_GRID_DEF:return{...e,...t.payload};default:throw new Error(`${yr.UNHANDLED}: ${t}`)}}const PA={visibleGridColumns:[],prevGridColumns:{},hasChange:!1,triggerApi:!1};pv.propTypes={children:i.node.isRequired};const jA=({options:e,isDraggable:t})=>{const n=x.useRef(null),[r,o]=x.useState(!1),[s,a]=x.useState(null),[l,c]=x.useState(e),[d,u]=x.useState(!1),f=t?x.useContext(hs):null,{hasChange:h,visibleGridColumns:m}=t?x.useContext(Yi):{hasChange:!1,visibleGridColumns:[]};x.useEffect(()=>{c(e?.sort((k,S)=>k.sequenceId-S.sequenceId))},[e]);const g=k=>{t&&a(k)},y=k=>{t&&k.preventDefault()},b=k=>{if(!t||s===null||s===k)return;const S=[...l],C=S.findIndex(M=>M.sequenceId===k),w=S.findIndex(M=>M.sequenceId===s);if(C===-1||w===-1)console.warn("Invalid drag or drop index",{toInsertAtIndex:C,draggedIndex:s});else{const[M]=S.splice(w,1);S.splice(C,0,M)}const T=l.slice().sort((M,j)=>M.sequenceId-j.sequenceId).map(M=>M.sequenceId),O=S.map((M,j)=>({...M,sequenceId:T[j]??M.sequenceId}));c(O),f?.({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:O}}),f?.({type:Ve.HAS_SETTING_CHANGE,payload:{hasChange:!0}}),a(null)},v=()=>{t&&h&&f?.({type:Ve.TRIGGER_API,payload:{triggerApi:!0}})};return x.useEffect(()=>{if(n.current){const k=n.current.getBoundingClientRect(),S=window.innerHeight-k.bottom;u(S<200)}},[r]),{hasChange:h,closeDropdown:v,handleDragStart:g,handleDragOver:y,handleDrop:b}},an=x.createContext({t:e=>e}),ms=({isDraggable:e=!1,showSearch:t=!1,options:n=[],value:r,isMulti:o=!1,selectAll:s=!1,selectOnClose:a=!1,isManageColumn:l,isLoadingMore:c=!1,handleLoadMore:d,handleSearchFuncation:u,...f})=>{const{t:h}=x.useContext(an),[m,g]=x.useState(!1),[y,b]=x.useState(null),[v,k]=x.useState(""),[S,C]=x.useState([]),[w,T]=x.useState("bottom-start"),[O,M]=x.useState([]),[j,A]=x.useState(null),[L,E]=x.useState(!1),N=x.useRef(null),P=x.useRef(null),$=x.useRef(null),R=x.useRef(!1),W=x.useRef(null),V=x.useRef(null),H=x.useRef(null),[B,D]=x.useState(0),F=x.useRef([]),{closeDropdown:U,hasChange:q,handleDragStart:X,handleDrop:G}=jA({options:n,isDraggable:e});x.useEffect(()=>{C(n)},[n]),x.useEffect(()=>{const z=S?.filter(ee=>!ee?.isMandatory||ee?.isMandatory&&ee?.showHide===!0);M(z)},[S]);const K=(z,ee)=>{if(!o){f?.onChange?.(z),g(!1),D(0);return}let _=JSON.parse(JSON.stringify(r));if(!z)_=n.length===r.length?[]:n.map(Q=>({...Q}));else if(ee)if(l)_=_.map(ue=>{if(!ue.children)return ue;let Q=ue?.children?.length?[...ue?.children]:[];return Q.findIndex(we=>we.key===z.key)>-1?Q=Q.filter(we=>we.key!==z.key):Q=[...Q,z],{...ue,children:Q}});else{const ue=ee?.id,Q=z?.id,ne=z?.key,we=_.findIndex(ke=>ke.id===ue);if(we>-1){const ke=_[we],Ce=ke.children||[],_e=Ce.some(Ee=>Ee.id===Q&&Ee.key===ne)?Ce.filter(Ee=>!(Ee.id===Q&&Ee.key===ne)):[...Ce,z];_[we]={...ke,children:_e}}else _.push({id:ue,label:ee?.label,value:ee?.value,children:[z]})}else _=_.some(Q=>Q.id===z.id)?_.filter(Q=>Q.id!==z.id):[..._,{...z}];b(_),f?.onChange?.(_)},ae=x.useMemo(()=>Qs(async z=>{if(c)try{return await u(z)}catch(ee){console.error("Search API Error",ee);return}},1e3),[]);x.useEffect(()=>{ae(v)},[v]),x.useEffect(()=>{const z=EA(n,v);C(z)},[v,n]);const le=z=>{k(z.target.value)};return x.useEffect(()=>{const z=ee=>{$.current&&!$.current.contains(ee.target)&&!N.current?.contains(ee.target)&&!P.current?.contains(ee.target)&&(g(!1),D(0),k(""),U(),a&&f?.onChange?.(y,"closed"),R.current=!0,setTimeout(()=>{R.current=!1},150))};return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[m,q,y]),x.useEffect(()=>{const z=F.current[B];z&&z.scrollIntoView({block:"nearest",behavior:"smooth"})},[B]),x.useEffect(()=>{if(m&&!t){const z=setTimeout(()=>{W.current&&W.current.focus()},0);return()=>clearTimeout(z)}},[m,t]),x.useEffect(()=>{if(!m||typeof d!="function")return;const z=setTimeout(()=>{const ee=W.current;let _=!1;if(!ee)return;const ue=async()=>{const Q=ee.scrollHeight-ee.scrollTop<=ee.clientHeight+1;if(c&&Q&&!_){_=!0;try{E(!0);const ne=await d();A(ne?.data),ne&&E(!1)}catch(ne){console.error("Error loading more options:",ne),E(!1)}}};return ee.addEventListener("scroll",ue),()=>ee.removeEventListener("scroll",ue)},100);return()=>clearTimeout(z)},[m,j]),p.jsxs(p.Fragment,{children:[p.jsx(se,{ref:P,sx:{position:"relative",display:"inline-block",width:"100%"},children:p.jsx(Ui,{inputProps:{readOnly:!0,tabIndex:0,inputMode:"none",role:"combobox","aria-haspopup":"listbox","aria-expanded":m,style:{cursor:f?.disabled?"not-allowed":"pointer"}},InputLabelProps:{shrink:r?.length&&!f?.placeholder},InputProps:{endAdornment:p.jsx(wl,{position:"start",children:p.jsx(Ge,{direction:"row",alignItems:"center",gap:"0.5rem",sx:{cursor:f?.disabled?"not-allowed":"pointer"},children:p.jsx(se,{component:"img",src:m?Xe.ArrowSelectDown:Xe.ArrowSelectUp})})}),startAdornment:f?.styles?.icon&&p.jsx(wl,{position:"start",sx:{pl:1,cursor:f?.disabled?"not-allowed":"pointer"},children:p.jsx(Vt,{url:f?.styles?.icon})})},sx:{opacity:f?.disabled?.5:1,"& .MuiOutlinedInput-root":{borderBottomLeftRadius:m&&w.startsWith("bottom")?0:"0.7rem",borderBottomRightRadius:m&&w.startsWith("bottom")?0:"0.7rem",borderTopLeftRadius:m&&w.startsWith("top")?0:"0.7rem",borderTopRightRadius:m&&w.startsWith("top")?0:"0.7rem"},"& .MuiInputBase-input":{caretColor:"transparent",userSelect:"none",color:z=>`${f?.placeholder?z.palette.primary.notifyTextColor:z.palette.primary.notifyActiveText}!important`}},onKeyDown:z=>{["Tab","ArrowDown","ArrowUp","Escape"].includes(z.key)||(z.preventDefault(),z.key==="Enter"&&(z.preventDefault(),g(ee=>!ee),D(s?-1:0)))},onMouseDown:z=>z.preventDefault(),onClick:z=>{f?.disabled||(z.preventDefault(),U(),a&&f?.onChange?.(y,"closed"),!R.current&&(g(ee=>!ee),m&&D(0)))},...f?.placeholder?{}:{value:Array.isArray(r)?Array.isArray(n)&&r.length===n.length&&n.length?h("LABEL_ALL_SELECTED",{count:n.length}):r.map(z=>z?.label).filter(Boolean).join(", "):r?.label||r||""},label:h(f?.label),...f})}),p.jsx(ui,{open:m,anchorEl:P.current,placement:"bottom-start",style:{zIndex:99999},ref:$,autoFocus:!0,tabIndex:0,modifiers:[{name:"offset",options:{offset:[0,0]}},{name:"updatePlacement",enabled:!0,phase:"afterWrite",fn({state:z}){T(z.placement)}}],children:p.jsxs(se,{role:"listbox",ref:W,onDragStart:z=>z.preventDefault(),sx:{userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",background:z=>z.palette.primary.appBackground,border:z=>`1px solid ${z.palette.primary.notifyBorderColor}`,borderTop:"none",borderRadius:w.startsWith("bottom")?"0 0 0.7rem 0.7rem":"0.7rem 0.7rem 0 0",width:P.current?.offsetWidth||"auto",maxHeight:"20rem",overflowY:"auto",outline:"none",scrollbarWidth:"thin"},tabIndex:0,autoFocus:!0,onKeyDown:z=>{if(z.key==="ArrowDown"||z.key==="Tab")z.preventDefault(),D(ee=>Math.min(ee+1,O.length-1));else if(z.key==="ArrowUp")z.preventDefault(),D(ee=>Math.max(ee-1,0));else if(z.key==="Enter"){z.preventDefault();const ee=O[B];ee&&K(ee)}else z.key==="Escape"&&(P.current.focus(),z.preventDefault(),g(!1),D(0))},children:[t&&p.jsx(Ui,{inputRef:V,type:"text",placeholder:h("SEARCH"),value:v,variant:"standard",autoFocus:!0,size:"small",draggable:!1,InputProps:{readOnly:!1,disableUnderline:!0,tabIndex:0,inputMode:"none"},onChange:le,sx:{position:"sticky",top:0,zIndex:1,backgroundColor:z=>z.palette.primary.appBackground,fontSize:"1.1rem",borderBottom:z=>`1px solid ${z.palette.primary.notifyBorderColor}`,"& .MuiInputBase-input":{padding:"0.3rem 1.3rem!important"}}}),O?.length>0?p.jsxs(p.Fragment,{children:[o&&s&&p.jsx(mo,{ref:H,autoFocus:!0,tabIndex:0,sx:{padding:"0.8rem 1.2rem",cursor:"pointer",border:z=>B===-1&&`0.1rem solid ${z.palette.brandColor.orange}`},onClick:z=>{z.stopPropagation(),K()},children:p.jsxs(Ge,{direction:"row",alignItems:"center",gap:"1rem",children:[p.jsx(gr,{sx:{p:0},draggable:!1,checked:n?.length>0&&r?.length===n?.length}),p.jsx(pt,{component:"h3",sx:{color:z=>z.palette.primary.notifyTextColor,fontSize:"1.1rem"},children:h("LABEL_SELECT_ALL")})]})}),O.map((z,ee)=>(!z?.isMandatory||z?.isMandatory&&z?.showHide===!0)&&p.jsxs(x.Fragment,{children:[p.jsx(mo,{"data-option-index":ee,autoFocus:!0,sx:{opacity:z?.isMandatory&&!z?.showHide||z?.disabled?.5:1,cursor:"pointer",pointerEvents:z?.disabled?"none":"auto",padding:"0.8rem 1.2rem",borderTop:ee!==0||s?_=>`0.1rem solid ${_.palette.primary.notifyBorderColor}`:"none",border:_=>ee===B&&`0.1rem solid ${_.palette.brandColor.orange}`},draggable:!1,onDragStart:z?.isMandatory?_=>{_.preventDefault()}:()=>X(z?.sequenceId),onDragOver:_=>{z?.isMandatory||_.preventDefault()},onDrop:_=>{z?.isMandatory?_.preventDefault():G(z?.sequenceId)},onClick:_=>{_.stopPropagation(),(!z?.isMandatory||z?.isMandatory&&z?.showHide===!0)&&(z?.showCheckbox||!z?.children?.length)&&K(z)},children:p.jsx(Ge,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:"1rem",width:"100%",draggable:!1,children:p.jsxs(Ge,{draggable:!1,direction:"row",alignItems:"center",gap:"1rem",sx:{minWidth:0,flex:1},children:[o&&(!z?.children?.length||z?.showCheckbox)&&p.jsx(gr,{draggable:!1,sx:{p:0},checked:r?.some(_=>_.id===z.id)}),p.jsx(pt,{draggable:!1,component:"h3",noWrap:!0,sx:{color:_=>z?.children?.length&&!z?.showCheckbox&&!z.showInHierarchy?_.palette.primary.notifyActiveText:_.palette.primary.notifyTextColor,fontWeight:z?.children?.length&&!z?.showCheckbox?"500":"300",fontSize:"1.1rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1},children:z.label})]})})}),z.children?.map((_,ue)=>(!_?.isMandatory||_?.isMandatory&&_?.showHide===!0&&_?.showInHierarchy)&&p.jsx(mo,{"data-option-index":ue,autoFocus:!0,sx:{cursor:"pointer",opacity:_?.disabled?.5:1,pointerEvents:_?.disabled?"none":"auto",padding:"0.8rem 1.2rem",pl:"1.5rem",borderTop:Q=>`0.1rem solid ${Q.palette.primary.notifyBorderColor}`},draggable:!1,onDragStart:()=>X(ee,ue),onDragOver:Q=>{_?.isMandatory||Q.preventDefault()},onDrop:Q=>{_?.isMandatory||G(ee,ue)},onClick:Q=>{Q.stopPropagation(),K(_,z)},children:p.jsxs(Ge,{direction:"row",alignItems:"center",gap:"1rem",children:[o&&z?.showChildCheckbox&&p.jsx(gr,{sx:{p:0},checked:r.some(Q=>Q.children?.some(ne=>ne.id===_.id))}),p.jsx(pt,{component:"h4",sx:{color:Q=>Q.palette.primary.notifyTextColor,fontSize:"1.05rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:_.label})]})},`${ee}-${ue}`))]},ee)),L&&p.jsx(Uo,{sx:{color:"blue"},size:45})]}):p.jsx(se,{autoFocus:!0,sx:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0.1rem 1rem",height:"3rem"},children:p.jsx(pt,{component:"h3",sx:{color:z=>z.palette.primary.notifyTextColor,fontSize:"1.1rem"},children:h("NO_OPTIONS")})})]})})]})};function hv({...e}){return p.jsx(Gt,{children:p.jsx(ms,{...e})})}const IA=te(se)(({theme:e,height:t})=>({borderRadius:"0.4rem",position:"relative",background:e.palette.primary.notifyButtonBackground,display:"flex",height:t||"2.5rem"})),DA=te(se)(({theme:e})=>({borderRadius:"0.4rem",position:"absolute",background:e.palette.primary.notifyBackground,border:`0.1rem solid ${e.palette.primary.notifyBorderColor}`,transition:"all 0.5s ease"})),mv=te(gl)(({theme:e})=>({borderRadius:"0.4rem",fontWeight:"400",transition:"all 0.2s 0.1s ease",padding:"0.4rem 0.8rem",fontSize:"1rem",textTransform:"none",zIndex:1,"&:hover":{background:"transparent",boxShadow:"none"}})),AA=({isChartType:e,setIsChartType:t,leftSwitchText:n,rigthSwitchText:r,disabled:o,height:s})=>{const[a,l]=x.useState(0),[c,d]=x.useState(0),{t:u}=x.useContext(an),f=x.useRef(null),h=x.useRef(null);return x.useLayoutEffect(()=>{if(!f.current||!h.current)return;const m=()=>{const y=e?h.current:f.current;l(y.offsetWidth),d(y.offsetLeft)};m();const g=new ResizeObserver(m);return g.observe(f.current),g.observe(h.current),()=>g.disconnect()},[e]),p.jsx(se,{sx:{display:"flex"},children:p.jsxs(IA,{height:s,children:[p.jsx(DA,{sx:{width:a,transform:`translateX(${c}px)`,height:s||"2.5rem"}}),p.jsx(mv,{ref:f,disableRipple:!0,sx:m=>({opacity:o?.5:1,cursor:`${o?"not-allowed":"pointer"}!important`,color:e?m.palette.brandColor.grey1:m.palette.primary.notifyActiveText}),onClick:()=>o?null:t(!1),children:u(n)}),p.jsx(mv,{ref:h,disableRipple:!0,sx:m=>({opacity:o?.5:1,cursor:`${o?"not-allowed":"pointer"}!important`,color:e?m.palette.primary.notifyActiveText:m.palette.brandColor.grey1}),onClick:()=>o?null:t(!0),children:u(r)})]})})};function gv({...e}){return p.jsx(Gt,{children:p.jsx(AA,{...e})})}const yv=6048e5,RA=864e5,bv=Symbol.for("constructDateFrom");function Ft(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&bv in e?e[bv](t):e instanceof Date?new e.constructor(t):new Date(t)}function xt(e,t){return Ft(t||e,e)}function vv(e,t,n){const r=xt(e,n?.in);return isNaN(t)?Ft(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function xv(e,t,n){const r=xt(e,n?.in);if(isNaN(t))return Ft(e,NaN);if(!t)return r;const o=r.getDate(),s=Ft(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const a=s.getDate();return o>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),o),r)}let NA={};function qi(){return NA}function gs(e,t){const n=qi(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=xt(e,t?.in),s=o.getDay(),a=(s<r?7:0)+s-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function Gi(e,t){return gs(e,{...t,weekStartsOn:1})}function wv(e,t){const n=xt(e,t?.in),r=n.getFullYear(),o=Ft(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Gi(o),a=Ft(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const l=Gi(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function Sv(e){const t=xt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ys(e,...t){const n=Ft.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Ki(e,t){const n=xt(e,t?.in);return n.setHours(0,0,0,0),n}function vf(e,t,n){const[r,o]=ys(n?.in,e,t),s=Ki(r),a=Ki(o),l=+s-Sv(s),c=+a-Sv(a);return Math.round((l-c)/RA)}function $A(e,t){const n=wv(e,t),r=Ft(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Gi(r)}function LA(e,t,n){return vv(e,t*7,n)}function BA(e,t,n){return xv(e,t*12,n)}function _A(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ft.bind(null,o));const s=xt(o,r);(!n||n<s||isNaN(+s))&&(n=s)}),Ft(r,n||NaN)}function FA(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ft.bind(null,o));const s=xt(o,r);(!n||n>s||isNaN(+s))&&(n=s)}),Ft(r,n||NaN)}function WA(e,t,n){const[r,o]=ys(n?.in,e,t);return+Ki(r)==+Ki(o)}function Cv(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zA(e){return!(!Cv(e)&&typeof e!="number"||isNaN(+xt(e)))}function Tv(e,t,n){const[r,o]=ys(n?.in,e,t),s=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return s*12+a}function VA(e,t){const n=xt(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function kv(e,t){const[n,r]=ys(e,t.start,t.end);return{start:n,end:r}}function HA(e,t){const{start:n,end:r}=kv(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let l=1;const c=[];for(;+a<=s;)c.push(Ft(n,a)),a.setMonth(a.getMonth()+l);return o?c.reverse():c}function UA(e,t){const n=xt(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function YA(e,t){const n=xt(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Ev(e,t){const n=xt(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function qA(e,t){const{start:n,end:r}=kv(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let l=1;const c=[];for(;+a<=s;)c.push(Ft(n,a)),a.setFullYear(a.getFullYear()+l);return o?c.reverse():c}function Ov(e,t){const n=qi(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=xt(e,t?.in),s=o.getDay(),a=(s<r?-7:0)+6-(s-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function GA(e,t){return Ov(e,{...t,weekStartsOn:1})}const KA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},XA=(e,t,n)=>{let r;const o=KA[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ir(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ZA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},JA={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},QA={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},e6={date:Ir({formats:ZA,defaultWidth:"full"}),time:Ir({formats:JA,defaultWidth:"full"}),dateTime:Ir({formats:QA,defaultWidth:"full"})},t6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n6=(e,t,n,r)=>t6[e];function ln(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):a;o=e.formattingValues[l]||e.formattingValues[a]}else{const a=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const r6={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s6={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},i6={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},a6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},l6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c6={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ln({values:r6,defaultWidth:"wide"}),quarter:ln({values:o6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ln({values:s6,defaultWidth:"wide"}),day:ln({values:i6,defaultWidth:"wide"}),dayPeriod:ln({values:a6,defaultWidth:"wide",formattingValues:l6,defaultFormattingWidth:"wide"})};function cn(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const a=s[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?u6(l,f=>f.test(a)):d6(l,f=>f.test(a));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const u=t.slice(a.length);return{value:d,rest:u}}}function d6(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function u6(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function xf(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const l=t.slice(o.length);return{value:a,rest:l}}}const f6=/^(\d+)(th|st|nd|rd)?/i,p6=/\d+/i,h6={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},m6={any:[/^b/i,/^(a|c)/i]},g6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},y6={any:[/1/i,/2/i,/3/i,/4/i]},b6={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},v6={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},x6={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},w6={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},S6={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},C6={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},T6={ordinalNumber:xf({matchPattern:f6,parsePattern:p6,valueCallback:e=>parseInt(e,10)}),era:cn({matchPatterns:h6,defaultMatchWidth:"wide",parsePatterns:m6,defaultParseWidth:"any"}),quarter:cn({matchPatterns:g6,defaultMatchWidth:"wide",parsePatterns:y6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:cn({matchPatterns:b6,defaultMatchWidth:"wide",parsePatterns:v6,defaultParseWidth:"any"}),day:cn({matchPatterns:x6,defaultMatchWidth:"wide",parsePatterns:w6,defaultParseWidth:"any"}),dayPeriod:cn({matchPatterns:S6,defaultMatchWidth:"any",parsePatterns:C6,defaultParseWidth:"any"})},Jr={code:"en-US",formatDistance:XA,formatLong:e6,formatRelative:n6,localize:c6,match:T6,options:{weekStartsOn:0,firstWeekContainsDate:1}},k6=Object.freeze(Object.defineProperty({__proto__:null,enUS:Jr},Symbol.toStringTag,{value:"Module"}));function E6(e,t){const n=xt(e,t?.in);return vf(n,Ev(n))+1}function wf(e,t){const n=xt(e,t?.in),r=+Gi(n)-+$A(n);return Math.round(r/yv)+1}function Mv(e,t){const n=xt(e,t?.in),r=n.getFullYear(),o=qi(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Ft(t?.in||e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const l=gs(a,t),c=Ft(t?.in||e,0);c.setFullYear(r,0,s),c.setHours(0,0,0,0);const d=gs(c,t);return+n>=+l?r+1:+n>=+d?r:r-1}function O6(e,t){const n=qi(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Mv(e,t),s=Ft(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),gs(s,t)}function Sf(e,t){const n=xt(e,t?.in),r=+gs(n,t)-+O6(n,t);return Math.round(r/yv)+1}function yt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Qr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return yt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):yt(n+1,2)},d(e,t){return yt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return yt(e.getHours()%12||12,t.length)},H(e,t){return yt(e.getHours(),t.length)},m(e,t){return yt(e.getMinutes(),t.length)},s(e,t){return yt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return yt(o,t.length)}},bs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Qr.y(e,t)},Y:function(e,t,n,r){const o=Mv(e,r),s=o>0?o:1-o;if(t==="YY"){const a=s%100;return yt(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):yt(s,t.length)},R:function(e,t){const n=wv(e);return yt(n,t.length)},u:function(e,t){const n=e.getFullYear();return yt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return yt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return yt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Qr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return yt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Sf(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):yt(o,t.length)},I:function(e,t,n){const r=wf(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):yt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Qr.d(e,t)},D:function(e,t,n){const r=E6(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):yt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return yt(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return yt(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return yt(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=bs.noon:r===0?o=bs.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=bs.evening:r>=12?o=bs.afternoon:r>=4?o=bs.morning:o=bs.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Qr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Qr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):yt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):yt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Qr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Qr.s(e,t)},S:function(e,t){return Qr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Iv(r);case"XXXX":case"XX":return So(r);default:return So(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Iv(r);case"xxxx":case"xx":return So(r);default:return So(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+jv(r,":");default:return"GMT"+So(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+jv(r,":");default:return"GMT"+So(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return yt(r,t.length)},T:function(e,t,n){return yt(+e,t.length)}};function jv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+yt(s,2)}function Iv(e,t){return e%60===0?(e>0?"-":"+")+yt(Math.abs(e)/60,2):So(e,t)}function So(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=yt(Math.trunc(r/60),2),s=yt(r%60,2);return n+o+t+s}const Dv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Av=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},M6={p:Av,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Dv(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Dv(r,t)).replace("{{time}}",Av(o,t))}},P6=/^D+$/,j6=/^Y+$/,I6=["D","DD","YY","YYYY"];function D6(e){return P6.test(e)}function A6(e){return j6.test(e)}function R6(e,t,n){const r=N6(e,t,n);if(console.warn(r),I6.includes(e))throw new RangeError(r)}function N6(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const $6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,L6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,B6=/^'([^]*?)'?$/,_6=/''/g,F6=/[a-zA-Z]/;function vs(e,t,n){const r=qi(),o=n?.locale??r.locale??Jr,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=xt(e,n?.in);if(!zA(l))throw new RangeError("Invalid time value");let c=t.match(L6).map(u=>{const f=u[0];if(f==="p"||f==="P"){const h=M6[f];return h(u,o.formatLong)}return u}).join("").match($6).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const f=u[0];if(f==="'")return{isToken:!1,value:W6(u)};if(Pv[f])return{isToken:!0,value:u};if(f.match(F6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return c.map(u=>{if(!u.isToken)return u.value;const f=u.value;(!n?.useAdditionalWeekYearTokens&&A6(f)||!n?.useAdditionalDayOfYearTokens&&D6(f))&&R6(f,t,String(e));const h=Pv[f[0]];return h(l,f,o.localize,d)}).join("")}function W6(e){const t=e.match(B6);return t?t[1].replace(_6,"'"):e}function z6(e,t){const n=xt(e,t?.in),r=n.getFullYear(),o=n.getMonth(),s=Ft(n,0);return s.setFullYear(r,o+1,0),s.setHours(0,0,0,0),s.getDate()}function V6(e,t){return xt(e,t?.in).getMonth()}function H6(e,t){return xt(e,t?.in).getFullYear()}function U6(e,t){return+xt(e)>+xt(t)}function Y6(e,t){return+xt(e)<+xt(t)}function q6(e,t,n){const[r,o]=ys(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function G6(e,t,n){const[r,o]=ys(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function K6(e,t,n){const r=xt(e,n?.in),o=r.getFullYear(),s=r.getDate(),a=Ft(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const l=z6(a);return r.setMonth(t,Math.min(s,l)),r}function X6(e,t,n){const r=xt(e,n?.in);return isNaN(+r)?Ft(e,NaN):(r.setFullYear(t),r)}function Z6(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const J6={},Xi={};function Co(e,t){try{const r=(J6[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in Xi?Xi[r]:Rv(r,r.split(":"))}catch{if(e in Xi)return Xi[e];const n=e?.match(Q6);return n?Rv(e,n.slice(1)):NaN}}const Q6=/([+-]\d\d):?(\d\d)?/;function Rv(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return Xi[e]=n*60+r>0?n*60+r+o:n*60-r-o}class br extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Co(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),$v(this),Cf(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new br(...n,t):new br(Date.now(),t)}withTimeZone(t){return new br(+this,t)}getTimezoneOffset(){const t=-Co(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Cf(this),+this}[Symbol.for("constructDateFrom")](t){return new br(+new Date(t),this.timeZone)}}const Nv=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Nv.test(e))return;const t=e.replace(Nv,"$1UTC");br.prototype[t]&&(e.startsWith("get")?br.prototype[e]=function(){return this.internal[t]()}:(br.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),eR(this),+this},br.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Cf(this),+this}))});function Cf(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Co(e.timeZone,e)*60))}function eR(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),$v(e)}function $v(e){const t=Co(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),s=-new Date(+r).getTimezoneOffset(),a=o-s,l=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&l&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const c=o-n;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);const d=new Date(+e);d.setUTCSeconds(0);const u=o>0?d.getSeconds():(d.getSeconds()-60)%60,f=Math.round(-(Co(e.timeZone,e)*60))%60;(f||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+f),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+f+u));const h=Co(e.timeZone,e),m=h>0?Math.floor(h):Math.ceil(h),y=-new Date(+e).getTimezoneOffset()-m,b=m!==n,v=y-c;if(b&&v){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);const k=Co(e.timeZone,e),S=k>0?Math.floor(k):Math.ceil(k),C=m-S;C&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+C),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+C))}}class en extends br{static tz(t,...n){return n.length?new en(...n,t):new en(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${Z6(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new en(+this,t)}[Symbol.for("constructDateFrom")](t){return new en(+new Date(t),this.timeZone)}}const Lv=5,tR=4;function nR(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),s=t.addDays(o,Lv*7-1);return t.getMonth(e)===t.getMonth(s)?Lv:tR}function Bv(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function rR(e,t){const n=Bv(e,t),r=nR(e,t);return t.addDays(n,r*7-1)}const oR={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},sR=(e,t,n)=>{let r;const o=oR[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},iR={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},aR={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},lR={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cR={date:Ir({formats:iR,defaultWidth:"full"}),time:Ir({formats:aR,defaultWidth:"full"}),dateTime:Ir({formats:lR,defaultWidth:"full"})},dR={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},uR=(e,t,n,r)=>dR[e],fR={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},pR={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},hR={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},mR={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},gR={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},yR={ordinalNumber:(e,t)=>Number(e)+"e",era:ln({values:fR,defaultWidth:"wide"}),quarter:ln({values:pR,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ln({values:hR,defaultWidth:"wide"}),day:ln({values:mR,defaultWidth:"wide"}),dayPeriod:ln({values:gR,defaultWidth:"wide"})},bR=/^(\d+)e?/i,vR=/\d+/i,xR={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},wR={any:[/^v/,/^n/]},SR={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},CR={any:[/1/i,/2/i,/3/i,/4/i]},TR={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},kR={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},ER={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},OR={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},MR={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},PR={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},jR={ordinalNumber:xf({matchPattern:bR,parsePattern:vR,valueCallback:e=>parseInt(e,10)}),era:cn({matchPatterns:xR,defaultMatchWidth:"wide",parsePatterns:wR,defaultParseWidth:"any"}),quarter:cn({matchPatterns:SR,defaultMatchWidth:"wide",parsePatterns:CR,defaultParseWidth:"any",valueCallback:e=>e+1}),month:cn({matchPatterns:TR,defaultMatchWidth:"wide",parsePatterns:kR,defaultParseWidth:"any"}),day:cn({matchPatterns:ER,defaultMatchWidth:"wide",parsePatterns:OR,defaultParseWidth:"any"}),dayPeriod:cn({matchPatterns:MR,defaultMatchWidth:"any",parsePatterns:PR,defaultParseWidth:"any"})},IR=Object.freeze(Object.defineProperty({__proto__:null,nl:{code:"nl",formatDistance:sR,formatLong:cR,formatRelative:uR,localize:yR,match:jR,options:{weekStartsOn:1,firstWeekContainsDate:4}}},Symbol.toStringTag,{value:"Module"})),DR={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},AR=(e,t,n)=>{let r;const o=DR[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?r+" sonra":r+" önce":r},RR={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},NR={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},$R={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},LR={date:Ir({formats:RR,defaultWidth:"full"}),time:Ir({formats:NR,defaultWidth:"full"}),dateTime:Ir({formats:$R,defaultWidth:"full"})},BR={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},_R=(e,t,n,r)=>BR[e],FR={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},WR={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},zR={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},VR={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},HR={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},UR={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},YR={ordinalNumber:(e,t)=>Number(e)+".",era:ln({values:FR,defaultWidth:"wide"}),quarter:ln({values:WR,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:ln({values:zR,defaultWidth:"wide"}),day:ln({values:VR,defaultWidth:"wide"}),dayPeriod:ln({values:HR,defaultWidth:"wide",formattingValues:UR,defaultFormattingWidth:"wide"})},qR=/^(\d+)(\.)?/i,GR=/\d+/i,KR={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},XR={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},ZR={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},JR={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},QR={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},e4={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},t4={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},n4={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},r4={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},o4={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},s4={ordinalNumber:xf({matchPattern:qR,parsePattern:GR,valueCallback:function(e){return parseInt(e,10)}}),era:cn({matchPatterns:KR,defaultMatchWidth:"wide",parsePatterns:XR,defaultParseWidth:"any"}),quarter:cn({matchPatterns:ZR,defaultMatchWidth:"wide",parsePatterns:JR,defaultParseWidth:"any",valueCallback:e=>e+1}),month:cn({matchPatterns:QR,defaultMatchWidth:"wide",parsePatterns:e4,defaultParseWidth:"any"}),day:cn({matchPatterns:t4,defaultMatchWidth:"wide",parsePatterns:n4,defaultParseWidth:"any"}),dayPeriod:cn({matchPatterns:r4,defaultMatchWidth:"any",parsePatterns:o4,defaultParseWidth:"any"})},i4=Object.freeze(Object.defineProperty({__proto__:null,tr:{code:"tr",formatDistance:AR,formatLong:LR,formatRelative:_R,localize:YR,match:s4,options:{weekStartsOn:1,firstWeekContainsDate:1}}},Symbol.toStringTag,{value:"Module"})),_v={...Jr,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,l)=>vs(a,l,{locale:Jr,...n});let s=o(e,"PPPP");return t.today&&(s=`Today, ${s}`),t.selected&&(s=`${s}, selected`),s},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>vs(o,s,{locale:Jr,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,l)=>vs(a,l,{locale:Jr,...n});let s=o(e,"PPPP");return t?.today&&(s=`Today, ${s}`),s},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>vs(o,s,{locale:Jr,...t}),r(e,"cccc")}}};class kn{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?en.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,s)=>this.overrides?.newDate?this.overrides.newDate(r,o,s):this.options.timeZone?new en(r,o,s,this.options.timeZone):new Date(r,o,s),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):vv(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):xv(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):LA(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):BA(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):vf(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):Tv(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):HA(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):qA(r),s=new Set(o.map(l=>this.getYear(l)));if(s.size===o.length)return o;const a=[];return s.forEach(l=>{a.push(new Date(l,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):rR(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):GA(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):VA(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):Ov(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):YA(r),this.format=(r,o,s)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):vs(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):wf(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):V6(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):H6(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):Sf(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):U6(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):Y6(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):Cv(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):WA(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):q6(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):G6(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):_A(r),this.min=r=>this.overrides?.min?this.overrides.min(r):FA(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):K6(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):X6(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Bv(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):Ki(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):Gi(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):UA(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):gs(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):Ev(r),this.options={locale:_v,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&kn.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,s=n?.code;if(s&&kn.yearFirstLocales.has(s))try{return new Intl.DateTimeFormat(s,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,a)}}kn.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const vr=new kn;class Fv{constructor(t,n,r=vr){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class a4{constructor(t,n){this.date=t,this.weeks=n}}class l4{constructor(t,n){this.days=n,this.weekNumber=t}}function c4(e){return x.createElement("button",{...e})}function d4(e){return x.createElement("span",{...e})}function u4(e){const{size:t=24,orientation:n="left",className:r}=e;return x.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&x.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&x.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&x.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&x.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function f4(e){const{day:t,modifiers:n,...r}=e;return x.createElement("td",{...r})}function p4(e){const{day:t,modifiers:n,...r}=e,o=x.useRef(null);return x.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),x.createElement("button",{ref:o,...r})}var je;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(je||(je={}));var Pt;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Pt||(Pt={}));var Kn;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Kn||(Kn={}));var En;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(En||(En={}));function h4(e){const{options:t,className:n,components:r,classNames:o,...s}=e,a=[o[je.Dropdown],n].join(" "),l=t?.find(({value:c})=>c===s.value);return x.createElement("span",{"data-disabled":s.disabled,className:o[je.DropdownRoot]},x.createElement(r.Select,{className:a,...s},t?.map(({value:c,label:d,disabled:u})=>x.createElement(r.Option,{key:c,value:c,disabled:u},d))),x.createElement("span",{className:o[je.CaptionLabel],"aria-hidden":!0},l?.label,x.createElement(r.Chevron,{orientation:"down",size:18,className:o[je.Chevron]})))}function m4(e){return x.createElement("div",{...e})}function g4(e){return x.createElement("div",{...e})}function y4(e){const{calendarMonth:t,displayIndex:n,...r}=e;return x.createElement("div",{...r},e.children)}function b4(e){const{calendarMonth:t,displayIndex:n,...r}=e;return x.createElement("div",{...r})}function v4(e){return x.createElement("table",{...e})}function x4(e){return x.createElement("div",{...e})}const Wv=x.createContext(void 0);function Zi(){const e=x.useContext(Wv);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function w4(e){const{components:t}=Zi();return x.createElement(t.Dropdown,{...e})}function S4(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...s}=e,{components:a,classNames:l,labels:{labelPrevious:c,labelNext:d}}=Zi(),u=x.useCallback(h=>{o&&n?.(h)},[o,n]),f=x.useCallback(h=>{r&&t?.(h)},[r,t]);return x.createElement("nav",{...s},x.createElement(a.PreviousMonthButton,{type:"button",className:l[je.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":c(r),onClick:f},x.createElement(a.Chevron,{disabled:r?void 0:!0,className:l[je.Chevron],orientation:"left"})),x.createElement(a.NextMonthButton,{type:"button",className:l[je.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":d(o),onClick:u},x.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:l[je.Chevron]})))}function C4(e){const{components:t}=Zi();return x.createElement(t.Button,{...e})}function T4(e){return x.createElement("option",{...e})}function k4(e){const{components:t}=Zi();return x.createElement(t.Button,{...e})}function E4(e){const{rootRef:t,...n}=e;return x.createElement("div",{...n,ref:t})}function O4(e){return x.createElement("select",{...e})}function M4(e){const{week:t,...n}=e;return x.createElement("tr",{...n})}function P4(e){return x.createElement("th",{...e})}function j4(e){return x.createElement("thead",{"aria-hidden":!0},x.createElement("tr",{...e}))}function I4(e){const{week:t,...n}=e;return x.createElement("th",{...n})}function D4(e){return x.createElement("th",{...e})}function A4(e){return x.createElement("tbody",{...e})}function R4(e){const{components:t}=Zi();return x.createElement(t.Dropdown,{...e})}const N4=Object.freeze(Object.defineProperty({__proto__:null,Button:c4,CaptionLabel:d4,Chevron:u4,Day:f4,DayButton:p4,Dropdown:h4,DropdownNav:m4,Footer:g4,Month:y4,MonthCaption:b4,MonthGrid:v4,Months:x4,MonthsDropdown:w4,Nav:S4,NextMonthButton:C4,Option:T4,PreviousMonthButton:k4,Root:E4,Select:O4,Week:M4,WeekNumber:I4,WeekNumberHeader:D4,Weekday:P4,Weekdays:j4,Weeks:A4,YearsDropdown:R4},Symbol.toStringTag,{value:"Module"}));function Dr(e,t,n=!1,r=vr){let{from:o,to:s}=e;const{differenceInCalendarDays:a,isSameDay:l}=r;return o&&s?(a(s,o)<0&&([o,s]=[s,o]),a(t,o)>=(n?1:0)&&a(s,t)>=(n?1:0)):!n&&s?l(s,t):!n&&o?l(o,t):!1}function Tf(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Kl(e){return!!(e&&typeof e=="object"&&"from"in e)}function kf(e){return!!(e&&typeof e=="object"&&"after"in e)}function Ef(e){return!!(e&&typeof e=="object"&&"before"in e)}function zv(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Vv(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Ar(e,t,n=vr){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:s,isAfter:a}=n;return r.some(l=>{if(typeof l=="boolean")return l;if(n.isDate(l))return o(e,l);if(Vv(l,n))return l.some(c=>o(e,c));if(Kl(l))return Dr(l,e,!1,n);if(zv(l))return Array.isArray(l.dayOfWeek)?l.dayOfWeek.includes(e.getDay()):l.dayOfWeek===e.getDay();if(Tf(l)){const c=s(l.before,e),d=s(l.after,e),u=c>0,f=d<0;return a(l.before,l.after)?f&&u:u||f}return kf(l)?s(e,l.after)>0:Ef(l)?s(l.before,e)>0:typeof l=="function"?l(e):!1})}function $4(e,t,n,r,o){const{disabled:s,hidden:a,modifiers:l,showOutsideDays:c,broadcastCalendar:d,today:u=o.today()}=t,{isSameDay:f,isSameMonth:h,startOfMonth:m,isBefore:g,endOfMonth:y,isAfter:b}=o,v=n&&m(n),k=r&&y(r),S={[Pt.focused]:[],[Pt.outside]:[],[Pt.disabled]:[],[Pt.hidden]:[],[Pt.today]:[]},C={};for(const w of e){const{date:T,displayMonth:O}=w,M=!!(O&&!h(T,O)),j=!!(v&&g(T,v)),A=!!(k&&b(T,k)),L=!!(s&&Ar(T,s,o)),E=!!(a&&Ar(T,a,o))||j||A||!d&&!c&&M||d&&c===!1&&M,N=f(T,u);M&&S.outside.push(w),L&&S.disabled.push(w),E&&S.hidden.push(w),N&&S.today.push(w),l&&Object.keys(l).forEach(P=>{const $=l?.[P];$&&Ar(T,$,o)&&(C[P]?C[P].push(w):C[P]=[w])})}return w=>{const T={[Pt.focused]:!1,[Pt.disabled]:!1,[Pt.hidden]:!1,[Pt.outside]:!1,[Pt.today]:!1},O={};for(const M in S){const j=S[M];T[M]=j.some(A=>A===w)}for(const M in C)O[M]=C[M].some(j=>j===w);return{...T,...O}}}function L4(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[s])=>(n[s]?o.push(n[s]):t[Pt[s]]?o.push(t[Pt[s]]):t[Kn[s]]&&o.push(t[Kn[s]]),o),[t[je.Day]])}function B4(e){return{...N4,...e}}function _4(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function F4(){const e={};for(const t in je)e[je[t]]=`rdp-${je[t]}`;for(const t in Pt)e[Pt[t]]=`rdp-${Pt[t]}`;for(const t in Kn)e[Kn[t]]=`rdp-${Kn[t]}`;for(const t in En)e[En[t]]=`rdp-${En[t]}`;return e}function Hv(e,t,n){return(n??new kn(t)).formatMonthYear(e)}const W4=Hv;function z4(e,t,n){return(n??new kn(t)).format(e,"d")}function V4(e,t=vr){return t.format(e,"LLLL")}function H4(e,t,n){return(n??new kn(t)).format(e,"cccccc")}function U4(e,t=vr){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function Y4(){return""}function Uv(e,t=vr){return t.format(e,"yyyy")}const q4=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Hv,formatDay:z4,formatMonthCaption:W4,formatMonthDropdown:V4,formatWeekNumber:U4,formatWeekNumberHeader:Y4,formatWeekdayName:H4,formatYearCaption:Uv,formatYearDropdown:Uv},Symbol.toStringTag,{value:"Module"}));function G4(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...q4,...e}}function Of(e,t,n,r){let o=(r??new kn(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const K4=Of;function Mf(e,t,n){return(n??new kn(t)).formatMonthYear(e)}const X4=Mf;function Yv(e,t,n,r){let o=(r??new kn(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function qv(e){return"Choose the Month"}function Gv(){return""}const Z4="Go to the Next Month";function Kv(e,t){return Z4}function Xv(e){return"Go to the Previous Month"}function Zv(e,t,n){return(n??new kn(t)).format(e,"cccc")}function Jv(e,t){return`Week ${e}`}function Qv(e){return"Week Number"}function e1(e){return"Choose the Year"}const J4=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:X4,labelDay:K4,labelDayButton:Of,labelGrid:Mf,labelGridcell:Yv,labelMonthDropdown:qv,labelNav:Gv,labelNext:Kv,labelPrevious:Xv,labelWeekNumber:Jv,labelWeekNumberHeader:Qv,labelWeekday:Zv,labelYearDropdown:e1},Symbol.toStringTag,{value:"Module"})),Xn=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function Q4(e,t){const n=t.locale?.labels??{};return{...J4,...e??{},labelDayButton:Xn(Of,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Xn(qv,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Xn(Kv,e?.labelNext,n.labelNext),labelPrevious:Xn(Xv,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Xn(Jv,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Xn(e1,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Xn(Mf,e?.labelGrid,n.labelGrid),labelGridcell:Xn(Yv,e?.labelGridcell,n.labelGridcell),labelNav:Xn(Gv,e?.labelNav,n.labelNav),labelWeekNumberHeader:Xn(Qv,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Xn(Zv,e?.labelWeekday,n.labelWeekday)}}function e9(e,t,n,r,o){const{startOfMonth:s,startOfYear:a,endOfYear:l,eachMonthOfInterval:c,getMonth:d}=o;return c({start:a(e),end:l(e)}).map(h=>{const m=r.formatMonthDropdown(h,o),g=d(h),y=t&&h<s(t)||n&&h>s(n)||!1;return{value:g,label:m,disabled:y}})}function t9(e,t={},n={}){let r={...t?.[je.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function n9(e,t,n,r){const o=r??e.today(),s=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),a=[];for(let l=0;l<7;l++){const c=e.addDays(s,l);a.push(c)}return a}function r9(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:s,endOfYear:a,eachYearOfInterval:l,getYear:c}=r,d=s(e),u=a(t),f=l({start:d,end:u});return o&&f.reverse(),f.map(h=>{const m=n.formatYearDropdown(h,r);return{value:c(h),label:m,disabled:!1}})}function o9(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,s=l=>{const c=typeof l=="number"||typeof l=="string"?new Date(l):l;return new en(c.getFullYear(),c.getMonth(),c.getDate(),12,0,0,e)},a=l=>{const c=s(l);return new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0,0)};return{today:()=>s(en.tz(e)),newDate:(l,c,d)=>new en(l,c,d,12,0,0,e),startOfDay:l=>s(l),startOfWeek:(l,c)=>{const d=s(l),u=c?.weekStartsOn??o,f=(d.getDay()-u+7)%7;return d.setDate(d.getDate()-f),d},startOfISOWeek:l=>{const c=s(l),d=(c.getDay()-1+7)%7;return c.setDate(c.getDate()-d),c},startOfMonth:l=>{const c=s(l);return c.setDate(1),c},startOfYear:l=>{const c=s(l);return c.setMonth(0,1),c},endOfWeek:(l,c)=>{const d=s(l),h=(((c?.weekStartsOn??o)+6)%7-d.getDay()+7)%7;return d.setDate(d.getDate()+h),d},endOfISOWeek:l=>{const c=s(l),d=(7-c.getDay())%7;return c.setDate(c.getDate()+d),c},endOfMonth:l=>{const c=s(l);return c.setMonth(c.getMonth()+1,0),c},endOfYear:l=>{const c=s(l);return c.setMonth(11,31),c},eachMonthOfInterval:l=>{const c=s(l.start),d=s(l.end),u=[],f=new en(c.getFullYear(),c.getMonth(),1,12,0,0,e),h=d.getFullYear()*12+d.getMonth();for(;f.getFullYear()*12+f.getMonth()<=h;)u.push(new en(f,e)),f.setMonth(f.getMonth()+1,1);return u},addDays:(l,c)=>{const d=s(l);return d.setDate(d.getDate()+c),d},addWeeks:(l,c)=>{const d=s(l);return d.setDate(d.getDate()+c*7),d},addMonths:(l,c)=>{const d=s(l);return d.setMonth(d.getMonth()+c),d},addYears:(l,c)=>{const d=s(l);return d.setFullYear(d.getFullYear()+c),d},eachYearOfInterval:l=>{const c=s(l.start),d=s(l.end),u=[],f=new en(c.getFullYear(),0,1,12,0,0,e);for(;f.getFullYear()<=d.getFullYear();)u.push(new en(f,e)),f.setFullYear(f.getFullYear()+1,0,1);return u},getWeek:(l,c)=>{const d=a(l);return Sf(d,{weekStartsOn:c?.weekStartsOn??o,firstWeekContainsDate:c?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:l=>{const c=a(l);return wf(c)},differenceInCalendarDays:(l,c)=>{const d=a(l),u=a(c);return vf(d,u)},differenceInCalendarMonths:(l,c)=>{const d=a(l),u=a(c);return Tv(d,u)}}}const Ji=e=>e instanceof HTMLElement?e:null,Pf=e=>[...e.querySelectorAll("[data-animated-month]")??[]],s9=e=>Ji(e.querySelector("[data-animated-month]")),jf=e=>Ji(e.querySelector("[data-animated-caption]")),If=e=>Ji(e.querySelector("[data-animated-weeks]")),i9=e=>Ji(e.querySelector("[data-animated-nav]")),a9=e=>Ji(e.querySelector("[data-animated-weekdays]"));function l9(e,t,{classNames:n,months:r,focused:o,dateLib:s}){const a=x.useRef(null),l=x.useRef(r),c=x.useRef(!1);x.useLayoutEffect(()=>{const d=l.current;if(l.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||d.length===0||r.length!==d.length)return;const u=s.isSameMonth(r[0].date,d[0].date),f=s.isAfter(r[0].date,d[0].date),h=f?n[En.caption_after_enter]:n[En.caption_before_enter],m=f?n[En.weeks_after_enter]:n[En.weeks_before_enter],g=a.current,y=e.current.cloneNode(!0);if(y instanceof HTMLElement?(Pf(y).forEach(S=>{if(!(S instanceof HTMLElement))return;const C=s9(S);C&&S.contains(C)&&S.removeChild(C);const w=jf(S);w&&w.classList.remove(h);const T=If(S);T&&T.classList.remove(m)}),a.current=y):a.current=null,c.current||u||o)return;const b=g instanceof HTMLElement?Pf(g):[],v=Pf(e.current);if(v?.every(k=>k instanceof HTMLElement)&&b&&b.every(k=>k instanceof HTMLElement)){c.current=!0,e.current.style.isolation="isolate";const k=i9(e.current);k&&(k.style.zIndex="1"),v.forEach((S,C)=>{const w=b[C];if(!w)return;S.style.position="relative",S.style.overflow="hidden";const T=jf(S);T&&T.classList.add(h);const O=If(S);O&&O.classList.add(m);const M=()=>{c.current=!1,e.current&&(e.current.style.isolation=""),k&&(k.style.zIndex=""),T&&T.classList.remove(h),O&&O.classList.remove(m),S.style.position="",S.style.overflow="",S.contains(w)&&S.removeChild(w)};w.style.pointerEvents="none",w.style.position="absolute",w.style.overflow="hidden",w.setAttribute("aria-hidden","true");const j=a9(w);j&&(j.style.opacity="0");const A=jf(w);A&&(A.classList.add(f?n[En.caption_before_exit]:n[En.caption_after_exit]),A.addEventListener("animationend",M));const L=If(w);L&&L.classList.add(f?n[En.weeks_before_exit]:n[En.weeks_after_exit]),S.insertBefore(w,S.firstChild)})}})}function c9(e,t,n,r){const o=e[0],s=e[e.length-1],{ISOWeek:a,fixedWeeks:l,broadcastCalendar:c}=n??{},{addDays:d,differenceInCalendarDays:u,differenceInCalendarMonths:f,endOfBroadcastWeek:h,endOfISOWeek:m,endOfMonth:g,endOfWeek:y,isAfter:b,startOfBroadcastWeek:v,startOfISOWeek:k,startOfWeek:S}=r,C=c?v(o,r):a?k(o):S(o),w=c?h(s):a?m(g(s)):y(g(s)),T=t&&(c?h(t):a?m(t):y(t)),O=T&&b(w,T)?T:w,M=u(O,C),j=f(s,o)+1,A=[];for(let N=0;N<=M;N++){const P=d(C,N);A.push(P)}const E=(c?35:42)*j;if(l&&A.length<E){const N=E-A.length;for(let P=0;P<N;P++){const $=d(A[A.length-1],1);A.push($)}}return A}function d9(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((s,a)=>s.concat(a.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function u9(e,t,n,r){const{numberOfMonths:o=1}=n,s=[];for(let a=0;a<o;a++){const l=r.addMonths(e,a);if(t&&l>t)break;s.push(l)}return s}function t1(e,t,n,r){const{month:o,defaultMonth:s,today:a=r.today(),numberOfMonths:l=1}=e;let c=o||s||a;const{differenceInCalendarMonths:d,addMonths:u,startOfMonth:f}=r;if(n&&d(n,c)<l-1){const h=-1*(l-1);c=u(n,h)}return t&&d(c,t)<0&&(c=t),f(c)}function f9(e,t,n,r){const{addDays:o,endOfBroadcastWeek:s,endOfISOWeek:a,endOfMonth:l,endOfWeek:c,getISOWeek:d,getWeek:u,startOfBroadcastWeek:f,startOfISOWeek:h,startOfWeek:m}=r,g=e.reduce((y,b)=>{const v=n.broadcastCalendar?f(b,r):n.ISOWeek?h(b):m(b),k=n.broadcastCalendar?s(b):n.ISOWeek?a(l(b)):c(l(b)),S=t.filter(O=>O>=v&&O<=k),C=n.broadcastCalendar?35:42;if(n.fixedWeeks&&S.length<C){const O=t.filter(M=>{const j=C-S.length;return M>k&&M<=o(k,j)});S.push(...O)}const w=S.reduce((O,M)=>{const j=n.ISOWeek?d(M):u(M),A=O.find(E=>E.weekNumber===j),L=new Fv(M,b,r);return A?A.days.push(L):O.push(new l4(j,[L])),O},[]),T=new a4(b,w);return y.push(T),y},[]);return n.reverseMonths?g.reverse():g}function p9(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:s,startOfMonth:a,endOfMonth:l,addYears:c,endOfYear:d,newDate:u,today:f}=t,{fromYear:h,toYear:m,fromMonth:g,toMonth:y}=e;!n&&g&&(n=g),!n&&h&&(n=t.newDate(h,0,1)),!r&&y&&(r=y),!r&&m&&(r=u(m,11,31));const b=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=a(n):h?n=u(h,0,1):!n&&b&&(n=o(c(e.today??f(),-100))),r?r=l(r):m?r=u(m,11,31):!r&&b&&(r=d(e.today??f())),[n&&s(n),r&&s(r)]}function h9(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s=1}=n,{startOfMonth:a,addMonths:l,differenceInCalendarMonths:c}=r,d=o?s:1,u=a(e);if(!t)return l(u,d);if(!(c(t,e)<s))return l(u,d)}function m9(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s}=n,{startOfMonth:a,addMonths:l,differenceInCalendarMonths:c}=r,d=o?s??1:1,u=a(e);if(!t)return l(u,-d);if(!(c(u,t)<=0))return l(u,-d)}function g9(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function Xl(e,t){const[n,r]=x.useState(e);return[t===void 0?n:t,r]}function y9(e,t){const[n,r]=p9(e,t),{startOfMonth:o,endOfMonth:s}=t,a=t1(e,n,r,t),[l,c]=Xl(a,e.month?a:void 0);x.useEffect(()=>{const C=t1(e,n,r,t);c(C)},[e.timeZone]);const{months:d,weeks:u,days:f,previousMonth:h,nextMonth:m}=x.useMemo(()=>{const C=u9(l,r,{numberOfMonths:e.numberOfMonths},t),w=c9(C,e.endMonth?s(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),T=f9(C,w,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),O=g9(T),M=d9(T),j=m9(l,n,e,t),A=h9(l,r,e,t);return{months:T,weeks:O,days:M,previousMonth:j,nextMonth:A}},[t,l.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:g,onMonthChange:y}=e,b=C=>u.some(w=>w.days.some(T=>T.isEqualTo(C))),v=C=>{if(g)return;let w=o(C);n&&w<o(n)&&(w=o(n)),r&&w>o(r)&&(w=o(r)),c(w),y?.(w)};return{months:d,weeks:u,days:f,navStart:n,navEnd:r,previousMonth:h,nextMonth:m,goToMonth:v,goToDay:C=>{b(C)||v(C.date)}}}var xr;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(xr||(xr={}));function n1(e){return!e[Pt.disabled]&&!e[Pt.hidden]&&!e[Pt.outside]}function b9(e,t,n,r){let o,s=-1;for(const a of e){const l=t(a);n1(l)&&(l[Pt.focused]&&s<xr.FocusedModifier?(o=a,s=xr.FocusedModifier):r?.isEqualTo(a)&&s<xr.LastFocused?(o=a,s=xr.LastFocused):n(a.date)&&s<xr.Selected?(o=a,s=xr.Selected):l[Pt.today]&&s<xr.Today&&(o=a,s=xr.Today))}return o||(o=e.find(a=>n1(t(a)))),o}function v9(e,t,n,r,o,s,a){const{ISOWeek:l,broadcastCalendar:c}=s,{addDays:d,addMonths:u,addWeeks:f,addYears:h,endOfBroadcastWeek:m,endOfISOWeek:g,endOfWeek:y,max:b,min:v,startOfBroadcastWeek:k,startOfISOWeek:S,startOfWeek:C}=a;let T={day:d,week:f,month:u,year:h,startOfWeek:O=>c?k(O,a):l?S(O):C(O),endOfWeek:O=>c?m(O):l?g(O):y(O)}[e](n,t==="after"?1:-1);return t==="before"&&r?T=b([r,T]):t==="after"&&o&&(T=v([o,T])),T}function r1(e,t,n,r,o,s,a,l=0){if(l>365)return;const c=v9(e,t,n.date,r,o,s,a),d=!!(s.disabled&&Ar(c,s.disabled,a)),u=!!(s.hidden&&Ar(c,s.hidden,a)),f=c,h=new Fv(c,f,a);return!d&&!u?h:r1(e,t,h,r,o,s,a,l+1)}function x9(e,t,n,r,o){const{autoFocus:s}=e,[a,l]=x.useState(),c=b9(t.days,n,r||(()=>!1),a),[d,u]=x.useState(s?c:void 0);return{isFocusTarget:y=>!!c?.isEqualTo(y),setFocused:u,focused:d,blur:()=>{l(d),u(void 0)},moveFocus:(y,b)=>{if(!d)return;const v=r1(y,b,d,t.navStart,t.navEnd,e,o);v&&(e.disableNavigation&&!t.days.some(S=>S.isEqualTo(v))||(t.goToDay(v),u(v)))}}}function w9(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Xl(n,o?n:void 0),l=o?n:s,{isSameDay:c}=t,d=m=>l?.some(g=>c(g,m))??!1,{min:u,max:f}=e;return{selected:l,select:(m,g,y)=>{let b=[...l??[]];if(d(m)){if(l?.length===u||r&&l?.length===1)return;b=l?.filter(v=>!c(v,m))}else l?.length===f?b=[m]:b=[...b,m];return o||a(b),o?.(b,m,g,y),b},isSelected:d}}function S9(e,t,n=0,r=0,o=!1,s=vr){const{from:a,to:l}=t||{},{isSameDay:c,isAfter:d,isBefore:u}=s;let f;if(!a&&!l)f={from:e,to:n>0?void 0:e};else if(a&&!l)c(a,e)?n===0?f={from:a,to:e}:o?f={from:a,to:void 0}:f=void 0:u(e,a)?f={from:e,to:a}:f={from:a,to:e};else if(a&&l)if(c(a,e)&&c(l,e))o?f={from:a,to:l}:f=void 0;else if(c(a,e))f={from:a,to:n>0?void 0:e};else if(c(l,e))f={from:e,to:n>0?void 0:e};else if(u(e,a))f={from:e,to:l};else if(d(e,a))f={from:a,to:e};else if(d(e,l))f={from:a,to:e};else throw new Error("Invalid range");if(f?.from&&f?.to){const h=s.differenceInCalendarDays(f.to,f.from);r>0&&h>r?f={from:e,to:void 0}:n>1&&h<n&&(f={from:e,to:void 0})}return f}function C9(e,t,n=vr){const r=Array.isArray(t)?t:[t];let o=e.from;const s=n.differenceInCalendarDays(e.to,e.from),a=Math.min(s,6);for(let l=0;l<=a;l++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function o1(e,t,n=vr){return Dr(e,t.from,!1,n)||Dr(e,t.to,!1,n)||Dr(t,e.from,!1,n)||Dr(t,e.to,!1,n)}function T9(e,t,n=vr){const r=Array.isArray(t)?t:[t];if(r.filter(l=>typeof l!="function").some(l=>typeof l=="boolean"?l:n.isDate(l)?Dr(e,l,!1,n):Vv(l,n)?l.some(c=>Dr(e,c,!1,n)):Kl(l)?l.from&&l.to?o1(e,{from:l.from,to:l.to},n):!1:zv(l)?C9(e,l.dayOfWeek,n):Tf(l)?n.isAfter(l.before,l.after)?o1(e,{from:n.addDays(l.after,1),to:n.addDays(l.before,-1)},n):Ar(e.from,l,n)||Ar(e.to,l,n):kf(l)||Ef(l)?Ar(e.from,l,n)||Ar(e.to,l,n):!1))return!0;const a=r.filter(l=>typeof l=="function");if(a.length){let l=e.from;const c=n.differenceInCalendarDays(e.to,e.from);for(let d=0;d<=c;d++){if(a.some(u=>u(l)))return!0;l=n.addDays(l,1)}}return!1}function k9(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:s,onSelect:a}=e,[l,c]=Xl(o,a?o:void 0),d=a?o:l;return{selected:d,select:(h,m,g)=>{const{min:y,max:b}=e,v=h?S9(h,d,y,b,s,t):void 0;return r&&n&&v?.from&&v.to&&T9({from:v.from,to:v.to},n,t)&&(v.from=h,v.to=void 0),a||c(v),a?.(v,h,m,g),v},isSelected:h=>d&&Dr(d,h,!1,t)}}function E9(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Xl(n,o?n:void 0),l=o?n:s,{isSameDay:c}=t;return{selected:l,select:(f,h,m)=>{let g=f;return!r&&l&&l&&c(f,l)&&(g=void 0),o||a(g),o?.(g,f,h,m),g},isSelected:f=>l?c(l,f):!1}}function O9(e,t){const n=E9(e,t),r=w9(e,t),o=k9(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function _n(e,t){return e instanceof en&&e.timeZone===t?e:new en(e,t)}function xs(e,t,n){return _n(e,t)}function s1(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?xs(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?xs(r,t):r):Kl(e)?{...e,from:e.from?_n(e.from,t):e.from,to:e.to?_n(e.to,t):e.to}:Tf(e)?{before:xs(e.before,t),after:xs(e.after,t)}:kf(e)?{after:xs(e.after,t)}:Ef(e)?{before:xs(e.before,t)}:e}function Df(e,t,n){return e&&(Array.isArray(e)?e.map(r=>s1(r,t)):s1(e,t))}function M9(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=_n(t.today,n)),t.month&&(t.month=_n(t.month,n)),t.defaultMonth&&(t.defaultMonth=_n(t.defaultMonth,n)),t.startMonth&&(t.startMonth=_n(t.startMonth,n)),t.endMonth&&(t.endMonth=_n(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=_n(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(fe=>_n(fe,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?_n(t.selected.from,n):t.selected.from,to:t.selected.to?_n(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=Df(t.disabled,n)),t.hidden!==void 0&&(t.hidden=Df(t.hidden,n)),t.modifiers)){const fe={};Object.keys(t.modifiers).forEach(De=>{fe[De]=Df(t.modifiers?.[De],n)}),t.modifiers=fe}const{components:r,formatters:o,labels:s,dateLib:a,locale:l,classNames:c}=x.useMemo(()=>{const fe={..._v,...t.locale},De=t.broadcastCalendar?1:t.weekStartsOn,Me=t.noonSafe&&t.timeZone?o9(t.timeZone,{weekStartsOn:De,locale:fe}):void 0,Je=t.dateLib&&Me?{...Me,...t.dateLib}:t.dateLib??Me,Nt=new kn({locale:fe,weekStartsOn:De,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},Je);return{dateLib:Nt,components:B4(t.components),formatters:G4(t.formatters),labels:Q4(t.labels,Nt.options),locale:fe,classNames:{...F4(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:a.today()});const{captionLayout:d,mode:u,navLayout:f,numberOfMonths:h=1,onDayBlur:m,onDayClick:g,onDayFocus:y,onDayKeyDown:b,onDayMouseEnter:v,onDayMouseLeave:k,onNextClick:S,onPrevClick:C,showWeekNumber:w,styles:T}=t,{formatCaption:O,formatDay:M,formatMonthDropdown:j,formatWeekNumber:A,formatWeekNumberHeader:L,formatWeekdayName:E,formatYearDropdown:N}=o,P=y9(t,a),{days:$,months:R,navStart:W,navEnd:V,previousMonth:H,nextMonth:B,goToMonth:D}=P,F=$4($,t,W,V,a),{isSelected:U,select:q,selected:X}=O9(t,a)??{},{blur:G,focused:K,isFocusTarget:ae,moveFocus:le,setFocused:z}=x9(t,P,F,U??(()=>!1),a),{labelDayButton:ee,labelGridcell:_,labelGrid:ue,labelMonthDropdown:Q,labelNav:ne,labelPrevious:we,labelNext:ke,labelWeekday:Ce,labelWeekNumber:ve,labelWeekNumberHeader:_e,labelYearDropdown:Ee}=s,xe=x.useMemo(()=>n9(a,t.ISOWeek,t.broadcastCalendar,t.today),[a,t.ISOWeek,t.broadcastCalendar,t.today]),re=u!==void 0||g!==void 0,ie=x.useCallback(()=>{H&&(D(H),C?.(H))},[H,D,C]),Te=x.useCallback(()=>{B&&(D(B),S?.(B))},[D,B,S]),he=x.useCallback((fe,De)=>Me=>{Me.preventDefault(),Me.stopPropagation(),z(fe),!De.disabled&&(q?.(fe.date,De,Me),g?.(fe.date,De,Me))},[q,g,z]),pe=x.useCallback((fe,De)=>Me=>{z(fe),y?.(fe.date,De,Me)},[y,z]),Ie=x.useCallback((fe,De)=>Me=>{G(),m?.(fe.date,De,Me)},[G,m]),Fe=x.useCallback((fe,De)=>Me=>{const Je={ArrowLeft:[Me.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[Me.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[Me.shiftKey?"year":"week","after"],ArrowUp:[Me.shiftKey?"year":"week","before"],PageUp:[Me.shiftKey?"year":"month","before"],PageDown:[Me.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Je[Me.key]){Me.preventDefault(),Me.stopPropagation();const[Nt,Ke]=Je[Me.key];le(Nt,Ke)}b?.(fe.date,De,Me)},[le,b,t.dir]),He=x.useCallback((fe,De)=>Me=>{v?.(fe.date,De,Me)},[v]),Oe=x.useCallback((fe,De)=>Me=>{k?.(fe.date,De,Me)},[k]),Tt=x.useCallback(fe=>De=>{const Me=Number(De.target.value),Je=a.setMonth(a.startOfMonth(fe),Me);D(Je)},[a,D]),st=x.useCallback(fe=>De=>{const Me=Number(De.target.value),Je=a.setYear(a.startOfMonth(fe),Me);D(Je)},[a,D]),{className:nt,style:dn}=x.useMemo(()=>({className:[c[je.Root],t.className].filter(Boolean).join(" "),style:{...T?.[je.Root],...t.style}}),[c,t.className,t.style,T]),Jn=_4(t),Wn=x.useRef(null);l9(Wn,!!t.animate,{classNames:c,months:R,focused:K,dateLib:a});const me={dayPickerProps:t,selected:X,select:q,isSelected:U,months:R,nextMonth:B,previousMonth:H,goToMonth:D,getModifiers:F,components:r,classNames:c,styles:T,labels:s,formatters:o};return x.createElement(Wv.Provider,{value:me},x.createElement(r.Root,{rootRef:t.animate?Wn:void 0,className:nt,style:dn,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...Jn},x.createElement(r.Months,{className:c[je.Months],style:T?.[je.Months]},!t.hideNavigation&&!f&&x.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[je.Nav],style:T?.[je.Nav],"aria-label":ne(),onPreviousClick:ie,onNextClick:Te,previousMonth:H,nextMonth:B}),R.map((fe,De)=>x.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:c[je.Month],style:T?.[je.Month],key:De,displayIndex:De,calendarMonth:fe},f==="around"&&!t.hideNavigation&&De===0&&x.createElement(r.PreviousMonthButton,{type:"button",className:c[je.PreviousMonthButton],tabIndex:H?void 0:-1,"aria-disabled":H?void 0:!0,"aria-label":we(H),onClick:ie,"data-animated-button":t.animate?"true":void 0},x.createElement(r.Chevron,{disabled:H?void 0:!0,className:c[je.Chevron],orientation:t.dir==="rtl"?"right":"left"})),x.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:c[je.MonthCaption],style:T?.[je.MonthCaption],calendarMonth:fe,displayIndex:De},d?.startsWith("dropdown")?x.createElement(r.DropdownNav,{className:c[je.Dropdowns],style:T?.[je.Dropdowns]},(()=>{const Me=d==="dropdown"||d==="dropdown-months"?x.createElement(r.MonthsDropdown,{key:"month",className:c[je.MonthsDropdown],"aria-label":Q(),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Tt(fe.date),options:e9(fe.date,W,V,o,a),style:T?.[je.Dropdown],value:a.getMonth(fe.date)}):x.createElement("span",{key:"month"},j(fe.date,a)),Je=d==="dropdown"||d==="dropdown-years"?x.createElement(r.YearsDropdown,{key:"year",className:c[je.YearsDropdown],"aria-label":Ee(a.options),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:st(fe.date),options:r9(W,V,o,a,!!t.reverseYears),style:T?.[je.Dropdown],value:a.getYear(fe.date)}):x.createElement("span",{key:"year"},N(fe.date,a));return a.getMonthYearOrder()==="year-first"?[Je,Me]:[Me,Je]})(),x.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},O(fe.date,a.options,a))):x.createElement(r.CaptionLabel,{className:c[je.CaptionLabel],role:"status","aria-live":"polite"},O(fe.date,a.options,a))),f==="around"&&!t.hideNavigation&&De===h-1&&x.createElement(r.NextMonthButton,{type:"button",className:c[je.NextMonthButton],tabIndex:B?void 0:-1,"aria-disabled":B?void 0:!0,"aria-label":ke(B),onClick:Te,"data-animated-button":t.animate?"true":void 0},x.createElement(r.Chevron,{disabled:B?void 0:!0,className:c[je.Chevron],orientation:t.dir==="rtl"?"left":"right"})),De===h-1&&f==="after"&&!t.hideNavigation&&x.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[je.Nav],style:T?.[je.Nav],"aria-label":ne(),onPreviousClick:ie,onNextClick:Te,previousMonth:H,nextMonth:B}),x.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":ue(fe.date,a.options,a)||void 0,className:c[je.MonthGrid],style:T?.[je.MonthGrid]},!t.hideWeekdays&&x.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:c[je.Weekdays],style:T?.[je.Weekdays]},w&&x.createElement(r.WeekNumberHeader,{"aria-label":_e(a.options),className:c[je.WeekNumberHeader],style:T?.[je.WeekNumberHeader],scope:"col"},L()),xe.map(Me=>x.createElement(r.Weekday,{"aria-label":Ce(Me,a.options,a),className:c[je.Weekday],key:String(Me),style:T?.[je.Weekday],scope:"col"},E(Me,a.options,a)))),x.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:c[je.Weeks],style:T?.[je.Weeks]},fe.weeks.map(Me=>x.createElement(r.Week,{className:c[je.Week],key:Me.weekNumber,style:T?.[je.Week],week:Me},w&&x.createElement(r.WeekNumber,{week:Me,style:T?.[je.WeekNumber],"aria-label":ve(Me.weekNumber,{locale:l}),className:c[je.WeekNumber],scope:"row",role:"rowheader"},A(Me.weekNumber,a)),Me.days.map(Je=>{const{date:Nt}=Je,Ke=F(Je);if(Ke[Pt.focused]=!Ke.hidden&&!!K?.isEqualTo(Je),Ke[Kn.selected]=U?.(Nt)||Ke.selected,Kl(X)){const{from:Ht,to:be}=X;Ke[Kn.range_start]=!!(Ht&&be&&a.isSameDay(Nt,Ht)),Ke[Kn.range_end]=!!(Ht&&be&&a.isSameDay(Nt,be)),Ke[Kn.range_middle]=Dr(X,Nt,!0,a)}const to=t9(Ke,T,t.modifiersStyles),Sr=L4(Ke,c,t.modifiersClassNames),We=!re&&!Ke.hidden?_(Nt,Ke,a.options,a):void 0;return x.createElement(r.Day,{key:`${Je.isoDate}_${Je.displayMonthId}`,day:Je,modifiers:Ke,className:Sr.join(" "),style:to,role:"gridcell","aria-selected":Ke.selected||void 0,"aria-label":We,"data-day":Je.isoDate,"data-month":Je.outside?Je.dateMonthId:void 0,"data-selected":Ke.selected||void 0,"data-disabled":Ke.disabled||void 0,"data-hidden":Ke.hidden||void 0,"data-outside":Je.outside||void 0,"data-focused":Ke.focused||void 0,"data-today":Ke.today||void 0},!Ke.hidden&&re?x.createElement(r.DayButton,{className:c[je.DayButton],style:T?.[je.DayButton],type:"button",day:Je,modifiers:Ke,disabled:!Ke.focused&&Ke.disabled||void 0,"aria-disabled":Ke.focused&&Ke.disabled||void 0,tabIndex:ae(Je)?0:-1,"aria-label":ee(Nt,Ke,a.options,a),onClick:he(Je,Ke),onBlur:Ie(Je,Ke),onFocus:pe(Je,Ke),onKeyDown:Fe(Je,Ke),onMouseEnter:He(Je,Ke),onMouseLeave:Oe(Je,Ke)},M(Nt,a.options,a)):!Ke.hidden&&M(Je.date,a.options,a))})))))))),t.footer&&x.createElement(r.Footer,{className:c[je.Footer],style:T?.[je.Footer],role:"status","aria-live":"polite"},t.footer)))}const P9=({color:e})=>p.jsx("svg",{width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M5.5 9.96346L1.82547 6.28893C1.39151 5.85497 1.39151 5.14487 1.82547 4.71091L5.5 1.03638",stroke:e,"stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})}),j9=({color:e})=>p.jsx("svg",{width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M1.5 9.96346L5.17453 6.28893C5.60849 5.85498 5.60849 5.14487 5.17453 4.71091L1.5 1.03638",stroke:e,"stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})}),i1=({color:e})=>p.jsx("svg",{width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M9 0.595703L5.50126 4.09444C5.08807 4.50763 4.41193 4.50763 3.99874 4.09444L0.5 0.595703",stroke:e,"stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})}),I9=({color:e})=>p.jsx("svg",{width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M9 4.4043L5.50126 0.90556C5.08807 0.492365 4.41193 0.492365 3.99874 0.90556L0.5 4.4043",stroke:e,"stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})});function a1(e){return x.useMemo(()=>Array.from({length:e},(t,n)=>{const r=String(n).padStart(2,"0");return{key:r,label:r,value:r}}),[e])}const l1=({time:e,setTime:t})=>{const n=a1(24),r=a1(60);return p.jsxs(se,{display:"flex",gap:"1rem",paddingLeft:"2rem",children:[p.jsxs(se,{display:"flex",flexDirection:"column",alignItems:"center",width:"6rem",gap:"1rem",children:[p.jsx(pt,{variant:"h5",color:o=>o.palette.primary.notifyActiveText,children:"HH"}),p.jsx(ms,{options:n,value:e.hh,onChange:o=>t(s=>({...s,hh:o.value}))})]}),p.jsxs(se,{display:"flex",flexDirection:"column",alignItems:"center",width:"6rem",gap:"1rem",children:[p.jsx(pt,{variant:"h5",color:o=>o.palette.primary.notifyActiveText,children:"MM"}),p.jsx(ms,{options:r,value:e.mm,onChange:o=>t(s=>({...s,mm:o.value}))})]})]})},D9=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function c1(e){const t=e instanceof Date?e:new Date(e);return{hh:String(t.getHours()).padStart(2,"0"),mm:String(t.getMinutes()).padStart(2,"0")}}function d1(e,t){const n=e instanceof Date?e:new Date(e);return n.setHours(Number(t.hh),Number(t.mm)),n}const A9=({label:e,mode:t="single",showTimeStamp:n=!1,value:r,onChange:o,disabled:s,readOnly:a,formatString:l,error:c,errorText:d,openCalendar:u,inputProps:f,showFooter:h,minDate:m=new Date(new Date().getFullYear()-10,0,1),maxDate:g=new Date(new Date().getFullYear()+10,11,31),yearRange:y,required:b,calendarWidth:v,calendarHeight:k,calendarZoom:S,calendarSx:C,...w})=>{const T=Array.from({length:y?.to??36},(ne,we)=>(y?.from??2e3)+we),{t:O}=x.useContext(an),M=gt(),j=x.useRef(null),A=x.useRef(null),[L,E]=x.useState(null),[N,P]=x.useState(r),[$,R]=x.useState(Jr),[W,V]=x.useState(()=>n&&r?c1(r):{hh:"00",mm:"00"}),[H,B]=x.useState(t==="range"&&r?.from?r.from:r||new Date),[D,F]=x.useState("calendar"),U=!!L,q=U?"date-picker-popover":void 0,X=ne=>{E(ne.currentTarget),P(r),n&&r&&V(c1(r))},G=()=>{E(null),F("calendar")};x.useEffect(()=>{n&&N&&P(d1(N,W))},[W]),x.useEffect(()=>{const ne=localStorage.getItem("i18nextLng")??"en-US";OA(ne).then(R)},[]);const K=ne=>{B(new Date(H.getFullYear(),ne)),F("calendar")},ae=ne=>{B(new Date(ne,H.getMonth())),F("month")},le=ne=>{if(ne)if(t==="range")h?P(ne):o?.(ne);else if(t==="multiple"){const ke=[...Array.isArray(ne)?ne:[ne]];h?P(ke):o?.(ke)}else h?P(d1(ne,W)):(o?.(ne),G())},z=({orientation:ne,className:we,disabled:ke})=>p.jsx(se,{className:we,sx:{opacity:ke?.5:1,pointerEvents:ke?"none":"auto"},children:{left:p.jsx(P9,{color:M.palette.primary.notifyIconColor}),right:p.jsx(j9,{color:M.palette.primary.notifyIconColor}),down:p.jsx(i1,{color:M.palette.primary.notifyIconColor}),up:p.jsx(I9,{color:M.palette.primary.notifyIconColor})}[ne]}),ee=ne=>{const{options:we,value:ke}=ne??{},Ce=we?.length!==12,ve=we?.find(Ee=>Ee?.value===ke)?.label,_e=()=>{F("year")};return p.jsxs(Ge,{direction:"row",sx:{cursor:"pointer",justifyContent:"center",alignItems:"center",gap:"0.5rem"},onClick:_e,children:[p.jsx(pt,{sx:{color:M.palette.primary.notifyActiveText,fontSize:"1.7rem",fontWeight:"500"},children:ve}),Ce&&p.jsx(i1,{color:M.palette.primary.notifyIconColor})]})},_=()=>{const ne=Array.isArray(H)?H[0]:H;if(!(ne instanceof Date)||isNaN(ne))return null;const we=ne.getFullYear(),ke=ne.getMonth();return D==="month"?p.jsx(se,{sx:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:1,justifyContent:"center",mb:2,height:k??"30rem",width:v??"30rem"},children:D9.map((Ce,ve)=>{const _e=new Date(we,ve,1),Ee=m&&_e<new Date(m.getFullYear(),m.getMonth(),1);return p.jsx(se,{sx:{display:"flex",justifyContent:"center",alignItems:"center",cursor:Ee?"not-allowed":"pointer",opacity:Ee?.5:1},onClick:()=>!Ee&&K(ve),children:p.jsx(se,{sx:{p:"0.8rem 1.2rem",borderRadius:"2rem",bgcolor:ve===ke&&!Ee&&M.palette.brandColor.orange,color:ve===ke&&!Ee?M.palette.brandColor.white:M.palette.primary.notifyActiveText,fontSize:"1.1rem"},children:O(Ce)})},Ce)})}):D==="year"?p.jsx(se,{sx:{maxHeight:k??"30rem",overflowY:"auto",pr:1},children:p.jsx(se,{sx:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:1,justifyContent:"center",mb:2,height:k??"30rem",width:v??"30rem"},children:T.map(Ce=>{const ve=m&&Ce<m.getFullYear();return p.jsx(se,{sx:{display:"flex",justifyContent:"center",alignItems:"center",cursor:ve?"not-allowed":"pointer",opacity:ve?.5:1},onClick:()=>!ve&&ae(Ce),children:p.jsx(se,{sx:{p:"0.8rem 1.2rem",borderRadius:"2rem",bgcolor:Ce===we&&!ve&&M.palette.brandColor.orange,color:Ce===we&&!ve?M.palette.brandColor.white:M.palette.primary.notifyActiveText,fontSize:"1.1rem"},children:Ce})},Ce)})})}):null},ue=(()=>{if(!r)return"";const ne=we=>vs(we,l,{locale:$});if(t==="range"){if(r?.from&&r?.to)return`${ne(r.from)} - ${ne(r.to)}`;if(r?.from)return`${ne(r.from)} - `}return t==="multiple"&&Array.isArray(r)?r.map(ne).join(", "):ne(r)})(),Q=ne=>ne instanceof Date&&!isNaN(ne.getTime());return x.useEffect(()=>{const ne=we=>{if(!U&&!u)return;const ke=A.current?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),Ce=Array.from(ke||[]),ve=Ce[0],_e=Ce[Ce.length-1];we.key==="Tab"&&(we.shiftKey?document.activeElement===ve&&(we.preventDefault(),_e?.focus()):document.activeElement===_e&&(we.preventDefault(),ve?.focus())),we.key==="Escape"&&G?.()};return document.addEventListener("keydown",ne),()=>document.removeEventListener("keydown",ne)},[U,u,G]),p.jsxs(se,{ref:j,children:[!u&&p.jsx(Ui,{label:O(e),value:ue,onClick:s?void 0:X,disabled:s,InputLabelProps:{shrink:!!r},error:c,helperText:O(d),required:b,inputProps:{readOnly:!0,tabIndex:0,style:{cursor:s?"not-allowed":"pointer"}},InputProps:{endAdornment:p.jsx(wl,{position:"end",sx:{px:"0.5rem"},children:p.jsx(Vt,{url:Xe.Calendar,style:{zIndex:"9"}})})},onKeyDown:ne=>{ne.key==="Enter"&&(ne.preventDefault(),E(ne.currentTarget))},sx:{cursor:s?"not-allowed":"pointer",opacity:s?.6:1,"& .MuiInputBase-root":{cursor:s?"not-allowed":"pointer"},...f&&!f?.showBorder&&{"& .MuiOutlinedInput-root":{borderRadius:0,"& fieldset":{borderColor:"transparent"},"&:hover fieldset":{borderColor:"transparent"},"&.Mui-focused fieldset":{borderColor:"transparent",borderWidth:"0.1rem"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"}}},"& .MuiInputLabel-root, & .MuiInputLabel-shrink":{maxWidth:"85%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",left:"0.5rem"}}}),p.jsx(se,{component:u?se:wi,id:q,open:u?!0:U,anchorEl:L,ref:A,onClose:u||h?void 0:G,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sx:u?{width:"max-content",border:`0.1rem solid ${M.palette.primary.notifyBorderColor}`,borderRadius:"0.8rem"}:{"& .MuiPopover-paper":{backgroundColor:"transparent",borderRadius:"1rem"}},children:p.jsxs(se,{sx:{zoom:S??"0.85",backgroundColor:M.palette.primary.notifyBackground,p:"2rem 1.5rem",boxShadow:"none",borderRadius:"1rem","& .rdp-selected .rdp-day_button":{border:"none",backgroundColor:M.palette.brandColor.orange,color:M.palette.brandColor.white},"& .rdp-weekday":{color:M.palette.primary.notifyTextColor,fontSize:"1.2rem",textTransform:"uppercase"},"& .rdp-month_grid ":{marginTop:"1.5rem"},"& .rdp-month_caption":{pl:"1rem"},"& .rdp-range_start":{backgroundImage:`linear-gradient(90deg, transparent 50%, ${M.palette.brandColor.lightOrange} 50%)`},"& .rdp-range_middle":{backgroundColor:M.palette.brandColor.lightOrange,"& .rdp-day_button":{backgroundColor:"transparent"}},"& .rdp-range_end":{backgroundImage:`linear-gradient(90deg, ${M.palette.brandColor.lightOrange} 50%, transparent 50%)`},"& .rdp-caption_label":{color:M.palette.primary.notifyActiveText,fontSize:"1.7rem",fontWeight:"500"},"& .rdp-day_button:disabled":{color:M.palette.primary.notifyTextColor}},children:[p.jsxs(Ge,{flexDirection:"row",children:[_(),D==="calendar"&&p.jsx(M9,{mode:t,locale:$,selected:N||r,onSelect:u?void 0:le,month:H,onMonthChange:B,startMonth:m,endMonth:g,captionLayout:u?"label":"dropdown",hideNavigation:!!u,...w,styles:{day:{fontSize:"1.5rem",fontWeight:"300",border:"none",boxShadow:"none",outline:"none",color:M.palette.primary.notifyActiveText}},modifiersStyles:{today:{fontWeight:"bold",color:M.palette.brandColor.orange},disabled:{color:M.palette.primary.notifyBorderColor,opacity:.5,backgroundColor:"transparent",cursor:"not-allowed"}},components:{Chevron:z,Dropdown:ee},disabled:u?!0:{before:m,after:g}}),n&&p.jsx(l1,{time:W,setTime:V})]}),h&&p.jsxs(Ge,{direction:"row-reverse",gap:"0.5rem",sx:{paddingTop:"1rem",borderTop:ne=>`0.1rem solid ${ne.palette.primary.notifyBorderColor}`},children:[p.jsx(jr,{label:O("LABEL_SAVE"),styles:{variant:"filled",height:"3.2rem"},onClick:()=>{o(N),G()},disabled:n&&(N==null||!Q(new Date(N)))}),p.jsx(jr,{label:O("LABEL_CANCEL"),styles:{variant:"outlined",height:"3.2rem"},onClick:G})]})]})})]})},R9=e=>p.jsx(Gt,{children:p.jsx(A9,{...e})});function N9({...e}){return p.jsx(Gt,{children:p.jsx(l1,{...e})})}const $9=Cn(p.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"),L9=({progress:e=0,status:t})=>{const r=Math.max(0,Math.min(e,100))/2-4,o={SUCCESS:"#2A9D8F",QUEUED:"#E9C46A",FAILED:"#E76F51"},s={SUCCESS:"rgba(42, 157, 143, 0.3)",QUEUED:"rgba(233, 196, 106, 0.3)",FAILED:"rgba(231, 111, 81, 0.3)"};return p.jsxs(se,{sx:{height:"0.2rem",width:"100%",position:"relative",overflow:"hidden",backgroundColor:"transparent"},children:[p.jsx(se,{sx:{position:"absolute",bottom:0,left:"50%",width:`${r}%`,height:"100%",transform:"translateX(-99%)",backgroundColor:o[t],borderTopLeftRadius:"1rem",borderBottomLeftRadius:"1rem",filter:`drop-shadow(0px 4px 10px ${s[t]})`,transition:"width 1s ease-in-out"}}),p.jsx(se,{sx:{position:"absolute",bottom:0,left:"50%",width:`${r}%`,height:"100%",backgroundColor:o[t],borderTopRightRadius:"1rem",borderBottomRightRadius:"1rem",filter:`drop-shadow(0px 4px 10px ${s[t]})`,transition:"width 1s ease-in-out"}})]})},Af={showToast:()=>{throw new Error("ToastProvider is not mounted")}},B9={success:e=>Af.showToast(e,"SUCCESS"),error:e=>Af.showToast(e,"FAILED")},_9=te(wi)(({theme:e})=>({"& .MuiPopover-paper":{backgroundColor:"transparent!important",right:"0!important",boxShadow:"none"},"& .MuiPaper-root":{pointerEvents:"auto",maxHeight:"40vh",boxShadow:"none"}})),F9=({message:e,status:t})=>{const{t:n}=x.useContext(an),[r,o]=x.useState(0),[s,a]=x.useState(!0),[l,c]=x.useState("entering"),[d,u]=x.useState(!0);x.useEffect(()=>{let m=setInterval(()=>{o(g=>s?g>=98?(a(!1),99):g+2:g)},100);return()=>clearInterval(m)},[s]),x.useEffect(()=>{let m=null,g=null;return l==="entering"&&(m=setTimeout(()=>{c("visible"),g=setTimeout(()=>{c("exiting")},8e3)},100)),()=>{clearTimeout(m),clearTimeout(g)}},[]),x.useEffect(()=>{const m=g=>{g.detail?.logout&&u(!1)};return window.addEventListener(El.LOGOUT,m),()=>{window.removeEventListener(El.LOGOUT,m)}},[]);const f=()=>{setTimeout(()=>{c("exiting")},200)},h={entering:"translateX(100%)",visible:"translateX(-100%)",exiting:"translateX(100%)"};return p.jsx(_9,{anchorPosition:{top:118,right:0},id:"scai-toast-popover",open:d,anchorReference:"anchorPosition",disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,hideBackdrop:!0,sx:{padding:"0.5rem",pointerEvents:"none",overflow:"hidden"},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:p.jsx(se,{position:"fixed",sx:{transform:h[l],opacity:l==="exiting"?0:1,transition:"transform 0.6s ease, opacity 1s ease",mb:0},children:p.jsxs(ni,{elevation:6,sx:{display:"flex",justifyContent:"space-between",filter:"drop-shadow(rgba(0, 0, 0, 0.16) 0px 1px 4px)",width:"25rem",minHeight:"4rem",borderRadius:"1rem",cursor:"default",position:"relative",border:m=>`0.1rem solid ${m.palette.primary.notifyBorderColor}!important`,backgroundColor:m=>m.palette.primary.notifyBackground,color:m=>m.palette.primary.notifyActiveText,"&:hover .close-icon":{opacity:1,color:m=>m.palette.primary.notifyActiveText,backgroundColor:m=>`${m.palette.primary.notifyBackground}!important`,border:m=>`0.1rem solid ${m.palette.primary.notifyBorderColor}!important`}},children:[p.jsx(tl,{size:"small",onClick:m=>{m.stopPropagation(),f()},className:"close-icon",sx:{position:"absolute",top:"-0.7rem",left:"-0.7rem",padding:"2px",opacity:0,transition:"opacity 0.3s ease",color:m=>m.palette.primary.notifyActiveText,backgroundColor:m=>m.palette.primary.notifyBackground,border:m=>`0.1rem solid ${m.palette.primary.notifyBorderColor}`},children:p.jsx($9,{fontSize:"small"})}),p.jsxs(Ge,{sx:{width:"100%"},direction:"column",children:[p.jsx(pt,{sx:{flexGrow:1,padding:"1.2rem 1rem 1rem 1rem",fontSize:"1.1rem",whiteSpace:"normal"},children:n(e)}),p.jsx(L9,{progress:r,status:t})]})]})})})},W9=({message:e,status:t})=>p.jsx(Gt,{children:p.jsx(F9,{message:e,status:t})}),z9=({children:e})=>{const[t,n]=x.useState(null),r=x.useCallback((o,s)=>{n({message:o,status:s,key:Date.now()})},[]);return Af.showToast=r,p.jsxs(p.Fragment,{children:[e,t&&p.jsx(W9,{message:t.message,status:t.status},t.key)]})},V9=Lr`
247
247
  0% {background-position: 0 0,100% 0 ,100% 100%,0 100%}
248
248
  33% {background-position: 0 0,100% 0 ,100% 100%,0 100%; width:60px; height: 60px}
249
249
  66% {background-position: 100% 0,100% 100%,0 100%,0 0 ; width:60px; height: 60px}
250
250
  100% {background-position: 100% 0,100% 100%,0 100%,0 0 }
251
- `;function H9(){return p.jsx(ml,{sx:{backdropFilter:"blur(2px)",backgroundColor:"transparent",opacity:1,zIndex:e=>e.zIndex.drawer+101},open:!0,children:p.jsx(se,{sx:{width:"40px",height:"40px","--c":"no-repeat linear-gradient(#E94F1C 0 0)",background:"var(--c), var(--c), var(--c), var(--c)",backgroundSize:"21px 21px",animation:`${V9} 1.5s infinite cubic-bezier(0.3,1,0,1)`}})})}const Zl=({type:e})=>{const r=gt()?.mode==="dark"?{bgcolor:"grey.800"}:{};return{grid:p.jsxs(se,{sx:{borderRadius:2,overflow:"hidden"},children:[p.jsx(fr,{variant:"text",width:"100%",height:60,sx:r}),Array.from({length:10}).map((s,a)=>p.jsx(se,{sx:{display:"flex",alignItems:"center",padding:"0.5rem",gap:"3rem"},children:Array.from({length:5}).map((l,c)=>p.jsx(se,{sx:{flex:1},children:p.jsx(fr,{variant:"text",height:45,sx:r})},c))},a))]}),toolbar:p.jsx(p.Fragment,{children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",sx:{display:"flex",gap:"1rem"},children:[p.jsxs(Ge,{direction:"row",gap:"1rem",children:[p.jsx(fr,{variant:"text",width:"10.2rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"3.5rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"15.2rem",height:"5rem",sx:r})]}),p.jsxs(Ge,{direction:"row",gap:"1rem",children:[p.jsx(fr,{variant:"text",width:"10.2rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"3.5rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"3.5rem",height:"5rem",sx:r})]})]})}),cell:p.jsx(p.Fragment,{children:p.jsx(fr,{variant:"text",width:"7rem",height:"3rem",sx:r})})}[e]};function U9({...e}){return p.jsx(Gt,{children:p.jsx(Zl,{...e})})}const Rf=x.createContext(null),u1=x.createContext(null);function f1({children:e}){const[t,n]=x.useReducer(Y9,q9);return p.jsx(Rf.Provider,{value:t,children:p.jsx(u1.Provider,{value:n,children:e})})}function Y9(e,t){switch(t.type){case Ve.LOADING:return{...e,loading:t.loading};case Ve.SUCCESS:return{...e,data:t.data?.sort((n,r)=>new Date(r.createdAt)-new Date(n.createdAt))};case Ve.MARK_ALL_AS_READ:return{...e,isMarkAllAsRead:t.isMarkAllAsRead};case Ve.SET_ACTIVE_TAB:return{...e,activeTab:t.activeTab};case Ve.SET_MODE:return{...e,mode:t.mode};case Ve.ERROR:return{...e,error:t.error};default:throw new Error(`${yr.UNHANDLED}: ${t}`)}}const q9={loading:!1,data:[],error:"",isMarkAllAsRead:{count:0,boo:!1},mode:!1,activeTab:0},p1=({parentProps:e,childProps:t})=>{const n=gt();return p.jsxs(Ge,{sx:{background:n.palette.primary.notifyBackground,border:`0.1rem solid ${n.palette.primary.notifyBorderColor}`,borderRadius:"1rem",position:"relative",overflow:"hidden"},children:[p.jsx(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{maxHeight:"10rem",p:"1.5rem",cursor:"pointer",zIndex:4},onClick:t.toggleExpand,children:e.content}),p.jsx(Zr.div,{layout:!0,initial:{opacity:0,maxHeight:0},animate:{opacity:t.isExpanded?1:0,maxHeight:t.isExpanded?"50rem":0},transition:{duration:.5,ease:"easeInOut"},style:{background:n.palette.primary.notifyBackground,overflow:"hidden",display:"flex",flexDirection:"column",width:"100%"},children:p.jsx(se,{sx:{p:"1rem"},children:t.content})})]})};p1.propTypes={parentProps:i.object.isRequired,childProps:i.object.isRequired};const h1=({accordionProps:e})=>p.jsx(Gt,{children:p.jsx(f1,{children:p.jsx(p1,{...e})})});h1.propTypes={accordionProps:i.object.isRequired};function Nf({children:e,handleClose:t,open:n,isMainDialog:r}){return p.jsx(Rd,{open:n,onClose:t,scroll:r?"paper":void 0,fullWidth:!r,maxWidth:r?void 0:"md",PaperProps:{sx:r?{position:"fixed",top:30,right:30,m:0,width:400,height:450,display:"flex",flexDirection:"column",borderRadius:2,boxShadow:6,backgroundColor:o=>o.palette.primary.notifyBackground}:{minHeight:250,maxHeight:500,borderRadius:"1.5rem",boxShadow:6,backgroundColor:o=>o.palette.primary.appBackground}},children:e})}function G9({children:e,...t}){return p.jsx(Gt,{children:p.jsx(Nf,{...t,children:e})})}const K9=({rightChild:e,leftChild:t,isDrawerMerged:n,isDrawerOpen:r,drawerTitle:o,showExpand:s,onCloseClick:a,onMergeClick:l,onExpandClick:c,isDrawerExpanded:d,styles:u,showMerge:f,isCloseVisible:h=!0})=>{const m=gt();return p.jsx(se,{sx:{position:"relative",overflow:"hidden"},children:p.jsxs(yi,{container:!0,sx:{height:"100%"},children:[p.jsx(yi,{item:!0,sx:{width:n?u?.drawerWidth?`calc(${"100%"-u?.drawerWidth})`:"75%":"100%",position:"relative",zIndex:3,height:"calc(100vh - 7rem)",p:"0rem 1.5rem",overflow:"auto"},children:t}),r&&!n&&p.jsx(p.Fragment,{children:p.jsx(se,{onClick:a,sx:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#07080B80",backdropFilter:"blur(3px)",zIndex:3,transition:"opacity 0.3s ease-in-out"}})}),e&&p.jsxs(yi,{item:!0,sx:{width:d?"90%":u?.drawerWidth||"25%",position:n?"relative":"absolute",top:0,right:0,height:"calc(100vh - 7rem)",backgroundColor:m.palette.primary.notifyBackground,transform:r?"translateX(0)":"translateX(100%)",transition:"transform 0.4s ease-in-out , width 0.4s ease-in-out",zIndex:4,borderLeft:`0.1rem solid ${m.palette.primary.notifyBorderColor}`,display:"flex",flexDirection:"column"},children:[p.jsxs(Ge,{direction:"row",alignItems:"center",sx:{width:"100%",flexShrink:0,paddingBottom:"0.8rem",px:2,pt:"0.8rem",borderBottom:g=>`0.1rem solid ${g.palette.primary.notifyBorderColor}`},children:[!d&&f&&p.jsxs(p.Fragment,{children:[p.jsx(se,{component:"img",src:Xe.Merge,sx:{display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},onClick:l}),p.jsx(ts,{orientation:"vertical",flexItem:!0,sx:{mx:"1rem",height:"auto!important",borderColor:m.palette.primary.notifyBorderColor}})]}),p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",flexGrow:1,children:[p.jsxs(Ge,{direction:"row",gap:"0.5rem",alignItems:"center",sx:{cursor:"pointer"},children:[h&&p.jsx(se,{onClick:a,children:p.jsx(Vt,{url:Xe.CrossLight})}),p.jsx(pt,{sx:{fontSize:"1.2rem",color:m.palette.primary.notifyTextColor},children:o})]}),p.jsx(Ge,{direction:"row",gap:"0.5rem",alignItems:"center",children:s&&p.jsx(se,{onClick:c,sx:{cursor:"pointer"},children:p.jsx(se,{component:"img",src:d?Xe.Collapse:Xe.Expand})})})]})]}),p.jsx(se,{sx:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},overflow:"auto",px:2},children:e})]})]})})},m1=({layoutChildren:e,layoutProps:t})=>p.jsx(Gt,{children:p.jsx(K9,{...e,...t})});m1.propTypes={layoutChildren:i.object.isRequired,layoutProps:i.object.isRequired};const $f=({list:e,handleLinkClick:t})=>{const n=gt(),{t:r}=x.useContext(an),o=({list:s})=>s?.sort((a,l)=>a.order-l.order)?.map((a,l)=>a?.link?p.jsx(mo,{component:"h3",sx:{fontSize:"1rem",cursor:"pointer",color:l===s?.length-1?n.palette.brandColor.orange:n.palette.primary.notifyTextColor},href:a?.link,underline:"hover",onClick:()=>t(a),children:r(a?.title)},l):p.jsx(pt,{component:"h3",sx:{fontSize:"1rem",color:l===s?.length-1?n.palette.brandColor.orange:n.palette.primary.notifyTextColor},children:r(a?.title)},l));return p.jsx(rg,{separator:p.jsx(Vt,{url:Xe.ArrowRight}),children:o({list:e})})};$f.propTypes={list:i.array.isRequired,handleLinkClick:i.func};function X9({...e}){return p.jsx(Gt,{children:p.jsx($f,{...e})})}const g1=({breadcrumbProps:e,switchProps:t,filterComponentProps:n,metaDataProps:r})=>{const o=gt(),{t:s}=x.useContext(an),a=n?.filterBtnProps?.disabled;return p.jsxs(p.Fragment,{children:[p.jsxs(Ge,{sx:{background:o.palette.primary.notifyBackground,borderBottom:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,height:"3rem",p:"0px 1.5rem 0 1.5rem",zIndex:4,position:"relative"},direction:"row",justifyContent:"space-between",alignItems:"center",children:[p.jsx($f,{...e}),p.jsxs(Ge,{direction:"row",gap:"1rem",alignItems:"center",children:[r,t&&p.jsx(gv,{...t}),n?.filterBtnProps&&p.jsxs(Ge,{direction:"row",children:[p.jsx(ts,{orientation:"vertical",flexItem:!0,sx:{mx:"1rem",height:"2rem!important",opacity:"1!important",borderColor:o.palette.primary.notifyBorderColor}}),p.jsxs(Ge,{direction:"row",alignItems:"center",gap:"0.5rem",onClick:n?.filterBtnProps?.onFilterClick,sx:{opacity:a?.5:1,cursor:a?"not-allowed":"pointer"},children:[p.jsx(Vt,{url:Xe.Filter}),p.jsx(pt,{sx:{fontSize:"1.1rem",color:o.palette.primary.notifyActiveText},children:s(n?.filterBtnProps?.label)})]})]})]})]}),p.jsx(Zr.div,{layout:!0,initial:{height:"0rem"},animate:{height:n?.filterBtnProps?.filterContainerVisible?"5rem":"0rem",opacity:n?.filterBtnProps?.filterContainerVisible?1:0},transition:{duration:.5,ease:"easeInOut"},style:{background:o.palette.primary.notifyBackground,borderBottom:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,padding:"0px 5.5rem 0 1.5rem",position:"relative",alignItems:"center",display:"flex",overflow:"hidden",width:n?.filterContainerProps?.isSideDrawerOpen?"75%":"100%"},children:p.jsxs(Ge,{sx:{background:o.palette.primary.appBackground,height:"3.8rem",p:"0 2rem",width:"100%",borderRadius:"0.7rem",overflow:"visible"},direction:"row",alignItems:"center",children:[p.jsxs(pt,{sx:{fontSize:"1.2rem",fontWeight:"500",color:o.palette.primary.notifyActiveText},children:[n?.labels?.description||s("Filters")," :"]}),p.jsx(se,{sx:{overflowX:"auto",overflowY:"visible",whiteSpace:"nowrap",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},margin:"0 1rem",padding:"0.5rem 0",flexGrow:1},children:p.jsx(Ge,{direction:"row",gap:"1.2rem",sx:{overflow:"visible"},children:n?.filterItems?.map((l,c)=>p.jsx(p.Fragment,{children:p.jsxs(se,{sx:{position:"relative",overflow:"visible",border:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,background:o.palette.primary.notifyBackground,borderRadius:"0.6rem",padding:"0.3rem 1.1rem",display:"inline-block"},children:[p.jsx(se,{component:"img",src:Xe.FilterClose,sx:{position:"absolute",top:"-0.4rem",right:"-0.6rem",cursor:"pointer"},onClick:()=>n?.onFilterChipClose(l)}),p.jsx(pt,{sx:{fontSize:"1rem",color:o.palette.primary.notifyTextColor},children:l?.filterLabel})]},c)}))})}),p.jsx(se,{component:pt,sx:{fontSize:"1.1rem",fontWeight:"500",textDecoration:"underline",color:o.palette.brandColor.red,cursor:"pointer"},onClick:n?.filterContainerProps?.onClearClick,children:n?.labels?.button||s("Clear")})]})})]})};g1.propTypes={breadcrumbProps:i.object.isRequired,switchProps:i.object};function y1({headerProps:e}){return p.jsx(Gt,{children:p.jsx(g1,{...e})})}y1.propTypes={headerProps:i.object.isRequired};function Z9(e){return"children"in e&&Array.isArray(e.children)}const J9=120,Q9=40,eN=1/0;function b1(e,t,n){return Math.max(t,Math.min(n,e))}function tN(e,t){switch(t.type){case"RESIZE":{const n=e.colMap[t.id];if(!n)return e;const r=b1(n.width+t.delta,n.minWidth,n.maxWidth);return r===n.width?e:{...e,colMap:{...e.colMap,[t.id]:{...n,width:r}}}}case"SET_WIDTH":{const n=e.colMap[t.id];if(!n)return e;const r=b1(t.width,n.minWidth,n.maxWidth);return{...e,colMap:{...e.colMap,[t.id]:{...n,width:r}}}}case"PIN":{const n=e.colMap[t.id];return!n||n.pinned===t.side?e:{...e,colMap:{...e.colMap,[t.id]:{...n,pinned:t.side}}}}case"TOGGLE_HIDDEN":{const n=e.colMap[t.id];return n?{...e,colMap:{...e.colMap,[t.id]:{...n,hidden:!n.hidden}}}:e}case"SHOW_ALL":{const n={...e.colMap};for(const r of Object.keys(n)){const o=n[r];o?.hidden&&(n[r]={...o,hidden:!1})}return{...e,colMap:n}}case"MOVE_BEFORE":{const{sourceId:n,targetId:r}=t,o=[...e.colOrder],s=o.indexOf(n),a=o.indexOf(r);if(s===-1||a===-1||s===a)return e;o.splice(s,1);const l=o.indexOf(r);return o.splice(l,0,n),{...e,colOrder:o}}case"MOVE_LAST":{const n=[...e.colOrder],r=n.indexOf(t.sourceId);return r===-1||r===n.length-1?e:(n.splice(r,1),n.push(t.sourceId),{...e,colOrder:n})}case"TOGGLE_SORT":{const{sort:n}=e;let r="asc";if(n.columnId===t.id)if(n.direction==="asc")r="desc";else return{...e,sort:{columnId:null,direction:"asc"}};return{...e,sort:{columnId:t.id,direction:r}}}case"RESET":return t.initial;default:return e}}function v1(e){const t=[],n=[];return e.forEach((r,o)=>{Z9(r)?(n.push(r),r.children.forEach(s=>{t.push({...s,groupId:r.id,defIndex:o})})):t.push({...r,groupId:null,defIndex:o})}),{leaves:t,groups:n}}function nN(e){var t,n,r,o,s;const{leaves:a,groups:l}=v1(e),c={},d=[];for(const u of a)d.push(u.id),c[u.id]={width:(t=u.width)!=null?t:J9,minWidth:(n=u.minWidth)!=null?n:Q9,maxWidth:(r=u.maxWidth)!=null?r:eN,pinned:(o=u.pinned)!=null?o:null,hidden:(s=u.hidden)!=null?s:!1};return{internal:{colMap:c,colOrder:d,sort:{columnId:null,direction:"asc"}},leaves:a,groups:l}}function rN(e){const{initial:t}=x.useMemo(()=>({initial:nN(e).internal}),[]),{leaves:n,groups:r}=x.useMemo(()=>v1(e),[e]),[o,s]=x.useReducer(tN,t),a=x.useMemo(()=>o.colOrder.flatMap(j=>{var A,L,E,R,M;const N=n.find(H=>H.id===j),$=o.colMap[j];return!N||!$?[]:[{id:N.id,label:N.label,field:N.field,accessor:N.accessor,renderCell:N.renderCell,deferRender:N.deferRender,renderHeader:N.renderHeader,cellStyle:N.cellStyle,headerStyle:N.headerStyle,align:(A=N.align)!=null?A:"left",sortable:(L=N.sortable)!=null?L:!0,resizable:(E=N.resizable)!=null?E:!0,draggable:(R=N.draggable)!=null?R:!0,hideable:(M=N.hideable)!=null?M:!0,groupId:N.groupId,defIndex:N.defIndex,width:$.width,minWidth:$.minWidth,maxWidth:$.maxWidth,pinned:$.pinned,hidden:$.hidden}]}),[o.colOrder,o.colMap,n]),l=x.useMemo(()=>a.filter(j=>!j.hidden),[a]),c=x.useMemo(()=>l.filter(j=>j.pinned==="left"),[l]),d=x.useMemo(()=>l.filter(j=>j.pinned==="right"),[l]),u=x.useMemo(()=>l.filter(j=>!j.pinned),[l]),f=x.useMemo(()=>c.reduce((j,A)=>j+A.width,0),[c]),h=x.useMemo(()=>d.reduce((j,A)=>j+A.width,0),[d]),m=x.useMemo(()=>u.reduce((j,A)=>j+A.width,0),[u]),g=x.useCallback((j,A)=>s({type:"RESIZE",id:j,delta:A}),[]),y=x.useCallback((j,A)=>s({type:"SET_WIDTH",id:j,width:A}),[]),b=x.useCallback((j,A)=>s({type:"PIN",id:j,side:A}),[]),v=x.useCallback(j=>s({type:"TOGGLE_HIDDEN",id:j}),[]),T=x.useCallback(()=>s({type:"SHOW_ALL"}),[]),S=x.useCallback((j,A)=>s({type:"MOVE_BEFORE",sourceId:j,targetId:A}),[]),C=x.useCallback(j=>s({type:"MOVE_LAST",sourceId:j}),[]),w=x.useCallback(j=>s({type:"TOGGLE_SORT",id:j}),[]),k=x.useCallback(()=>s({type:"RESET",initial:t}),[t]);return{...{orderedColumns:a,visibleColumns:l,pinnedLeftColumns:c,pinnedRightColumns:d,scrollableColumns:u,pinnedLeftWidth:f,pinnedRightWidth:h,scrollableWidth:m,sortState:o.sort,groups:r,hasGroups:r.length>0},...{resizeColumn:g,setColumnWidth:y,pinColumn:b,toggleColumnVisibility:v,showAllColumns:T,moveColumnBefore:S,moveColumnToEnd:C,toggleSort:w,resetColumns:k}}}const x1=16,w1=1e3;function oN(e,t,n,r){if(e===0||r<=0)return{startIndex:0,endIndex:-1,totalHeight:e*t,offsetY:0};const o=e*t,s=Math.floor(n/t),a=Math.max(0,s-x1),l=Math.ceil(r/t),c=Math.min(e-1,s+l+x1);return{startIndex:a,endIndex:c,totalHeight:o,offsetY:a*t}}function sN(e,t,n,r){var o,s,a;const l=e.length;if(l===0)return{startIndex:0,endIndex:-1};const c=Math.max(0,n-w1),d=n+r+w1;let u=0,f=l-1;for(;u<f;){const g=u+f>>>1;((o=e[g])!=null?o:0)+((s=t[g])!=null?s:0)<=c?u=g+1:f=g}const h=u;let m=h;for(;m<l-1&&((a=e[m+1])!=null?a:0)<d;)m++;return{startIndex:h,endIndex:Math.min(l-1,m)}}function iN(e){var t,n;const r=new Array(e.length);let o=0;for(let s=0;s<e.length;s++)r[s]=o,o+=(n=(t=e[s])==null?void 0:t.width)!=null?n:0;return r}function aN({onResize:e,onResizeEnd:t,getCurrentWidth:n}){const r=x.useRef(0),o=x.useRef("");return{startResize:x.useCallback((a,l)=>{a.preventDefault(),a.stopPropagation(),r.current=a.clientX,o.current=l;const c=u=>{const f=u.clientX-r.current;r.current=u.clientX,e(o.current,f)},d=()=>{window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",d),document.body.style.cursor="",document.body.style.userSelect="",t?.(o.current,n(o.current))};document.body.style.cursor="col-resize",document.body.style.userSelect="none",window.addEventListener("mousemove",c),window.addEventListener("mouseup",d)},[e,t,n])}}const S1=4,C1={draggingId:null,overTargetId:null};function lN({onMoveColumnBefore:e,onMoveColumnToEnd:t,columns:n,getColumnViewportBounds:r}){const[o,s]=x.useState(C1),a=x.useRef(n);a.current=n;const l=x.useRef(r);l.current=r;const c=x.useRef(null),d=x.useRef(null),u=x.useRef(!1),f=x.useRef(0),h=x.useCallback(T=>{c.current=T},[]),m=x.useCallback(T=>{d.current=T,T&&(T.style.display="none")},[]);x.useLayoutEffect(()=>{o.draggingId&&c.current&&(c.current.style.left=`${f.current}px`)},[o.draggingId]);const g=x.useCallback(T=>{var S,C;const w=a.current,k=w.findIndex(E=>E.id===T);if(k===-1)return{ids:new Set([T]),afterId:null};const O=w[k];let P=k,j=k;for(let E=k-1;E>=0;E--){const R=w[E];if(!R.draggable||R.groupId!==O.groupId||R.pinned!==O.pinned)break;P=E}for(let E=k+1;E<w.length;E++){const R=w[E];if(!R.draggable||R.groupId!==O.groupId||R.pinned!==O.pinned)break;j=E}const A=new Set(w.slice(P,j+1).map(E=>E.id)),L=(C=(S=w[j+1])==null?void 0:S.id)!=null?C:null;return{ids:A,afterId:L}},[]),y=x.useCallback((T,S)=>{const{ids:C,afterId:w}=g(S),k=l.current,O=[];for(const j of C){if(j===S)continue;const A=k(j);A&&O.push({id:j,left:A.left,right:A.right,mid:(A.left+A.right)/2})}O.sort((j,A)=>j.left-A.left);for(const j of O)if(T<=j.mid)return{id:j.id,lineX:j.left,afterId:w};const P=O[O.length-1];return P?{id:null,lineX:P.right,afterId:w}:{id:null,lineX:null,afterId:w}},[g]),b=x.useCallback(T=>({onPointerDown:S=>{if(S.button!==0)return;S.preventDefault();const C=S.clientX,w=S.clientY;let k=!1,O=0,P=0,j=null,A=null;const L=()=>{if(!j)return;const M=j;j=null;const{id:N,lineX:$}=y(M.clientX,T);c.current&&(c.current.style.left=`${M.clientX-O}px`),d.current&&($!==null?(d.current.style.left=`${$-1}px`,d.current.style.display="block"):d.current.style.display="none"),N!==A&&(A=N,s(F=>F.overTargetId===N?F:{...F,overTargetId:N}))},E=M=>{if(!k){if(Math.abs(M.clientX-C)<S1&&Math.abs(M.clientY-w)<S1)return;k=!0;const N=l.current(T);N&&(O=C-N.left),f.current=C-O;const{id:$}=y(C,T);A=$,s({draggingId:T,overTargetId:$}),document.body.style.cursor="grabbing",document.body.style.userSelect="none";return}j=M,P||(P=requestAnimationFrame(()=>{P=0,L()}))},R=M=>{if(document.removeEventListener("pointermove",E),document.removeEventListener("pointerup",R),P&&cancelAnimationFrame(P),document.body.style.cursor="",document.body.style.userSelect="",k){const{id:N,afterId:$}=y(M.clientX,T);N!==null&&N!==T?e(T,N):N===null&&($!==null?e(T,$):t?.(T)),u.current=!0,setTimeout(()=>{u.current=!1},0)}s(C1)};document.addEventListener("pointermove",E),document.addEventListener("pointerup",R)}}),[e,t,y]),v=x.useCallback(()=>u.current?(u.current=!1,!0):!1,[]);return{getDragHandlers:b,dragState:o,registerGhost:h,registerIndicator:m,consumeDragEnd:v}}const T1=x.createContext(null),cN=T1.Provider;function ws(){const e=x.useContext(T1);if(!e)throw new Error("[LatticeGrid] useGridContext must be inside a <LatticeGrid>.");return e}const Qi={"--vg-font":"'DM Sans', 'Segoe UI', system-ui, sans-serif","--vg-font-mono":"'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace","--vg-font-size":"12.5px","--vg-line-height":"1.45","--vg-row-height":"36px","--vg-header-height":"38px","--vg-group-height":"28px","--vg-radius":"7px","--vg-radius-sm":"4px","--vg-radius-xs":"3px","--vg-transition":"0.12s ease","--vg-z-pinned":"3","--vg-z-header":"4","--vg-z-panel":"100","--vg-scrollbar-width":"6px"},Jl={light:{...Qi,"--vg-bg":"#ffffff","--vg-bg-header":"#f7f8fa","--vg-bg-group":"#f0f2f6","--vg-bg-row-alt":"#fafbfc","--vg-bg-row-hover":"#f0f5ff","--vg-bg-row-selected":"#e8efff","--vg-bg-pinned":"#ffffff","--vg-bg-frozen":"#eff6ff","--vg-bg-toolbar":"#ffffff","--vg-bg-panel":"#ffffff","--vg-bg-btn":"#f3f4f6","--vg-bg-btn-hover":"#e9eaec","--vg-bg-btn-active":"#dbeafe","--vg-bg-tag":"#f0f2f6","--vg-bg-input":"#ffffff","--vg-text":"#111827","--vg-text-dim":"#6b7280","--vg-text-header":"#374151","--vg-text-group":"#1e2939","--vg-text-placeholder":"#9ca3af","--vg-border":"#e5e7eb","--vg-border-strong":"#d1d5db","--vg-border-focus":"#2563eb","--vg-accent":"#2563eb","--vg-accent-hover":"#1d4ed8","--vg-accent-bg":"#dbeafe","--vg-accent-text":"#1d4ed8","--vg-accent-fg":"#ffffff","--vg-shadow-pin":"4px 0 12px rgba(0,0,0,0.06)","--vg-shadow-panel":"0 8px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06)","--vg-scrollbar-track":"#f1f3f5","--vg-scrollbar-thumb":"#d1d5db","--vg-sort-icon":"#9ca3af","--vg-sort-active":"#2563eb","--vg-resize-hover":"#2563eb","--vg-drag-indicator":"#2563eb"},dark:{...Qi,"--vg-bg":"#0d1117","--vg-bg-header":"#161c28","--vg-bg-group":"#1a2235","--vg-bg-row-alt":"#111620","--vg-bg-row-hover":"#1c2438","--vg-bg-row-selected":"#1a3558","--vg-bg-pinned":"#0d1117","--vg-bg-frozen":"#0f2040","--vg-bg-toolbar":"#161c28","--vg-bg-panel":"#161c28","--vg-bg-btn":"#1c2438","--vg-bg-btn-hover":"#242e48","--vg-bg-btn-active":"#1e3558","--vg-bg-tag":"#1c2438","--vg-bg-input":"#1c2438","--vg-text":"#e2e8f4","--vg-text-dim":"#8896b4","--vg-text-header":"#b4c0d8","--vg-text-group":"#d0daf0","--vg-text-placeholder":"#4a5670","--vg-border":"#1e2840","--vg-border-strong":"#283550","--vg-border-focus":"#3b82f6","--vg-accent":"#3b82f6","--vg-accent-hover":"#60a5fa","--vg-accent-bg":"#1e3558","--vg-accent-text":"#93c5fd","--vg-accent-fg":"#ffffff","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.4)","--vg-shadow-panel":"0 8px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3)","--vg-scrollbar-track":"#161c28","--vg-scrollbar-thumb":"#283550","--vg-sort-icon":"#3a4a68","--vg-sort-active":"#3b82f6","--vg-resize-hover":"#3b82f6","--vg-drag-indicator":"#3b82f6"},ocean:{...Qi,"--vg-bg":"#081425","--vg-bg-header":"#0c1e38","--vg-bg-group":"#0f2444","--vg-bg-row-alt":"#0a1830","--vg-bg-row-hover":"#112440","--vg-bg-row-selected":"#0e2c58","--vg-bg-pinned":"#081425","--vg-bg-frozen":"#051830","--vg-bg-toolbar":"#0c1e38","--vg-bg-panel":"#0c1e38","--vg-bg-btn":"#0f2444","--vg-bg-btn-hover":"#163058","--vg-bg-btn-active":"#0e2c58","--vg-bg-tag":"#0f2444","--vg-bg-input":"#0f2444","--vg-text":"#b8d4f8","--vg-text-dim":"#3c6080","--vg-text-header":"#6aabf0","--vg-text-group":"#9ccaf0","--vg-text-placeholder":"#2a4860","--vg-border":"#0f2444","--vg-border-strong":"#163058","--vg-border-focus":"#0e9eff","--vg-accent":"#0e9eff","--vg-accent-hover":"#40b6ff","--vg-accent-bg":"#0e2c58","--vg-accent-text":"#7dd0ff","--vg-accent-fg":"#ffffff","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.5)","--vg-shadow-panel":"0 8px 40px rgba(0,10,30,0.7)","--vg-scrollbar-track":"#0c1e38","--vg-scrollbar-thumb":"#163058","--vg-sort-icon":"#1a4070","--vg-sort-active":"#0e9eff","--vg-resize-hover":"#0e9eff","--vg-drag-indicator":"#0e9eff"},forest:{...Qi,"--vg-bg":"#0a140c","--vg-bg-header":"#0f1e12","--vg-bg-group":"#132418","--vg-bg-row-alt":"#0c1810","--vg-bg-row-hover":"#162c1c","--vg-bg-row-selected":"#143a1a","--vg-bg-pinned":"#0a140c","--vg-bg-frozen":"#0a1f0a","--vg-bg-toolbar":"#0f1e12","--vg-bg-panel":"#0f1e12","--vg-bg-btn":"#132418","--vg-bg-btn-hover":"#1e3828","--vg-bg-btn-active":"#143a1a","--vg-bg-tag":"#132418","--vg-bg-input":"#132418","--vg-text":"#b8d8a8","--vg-text-dim":"#406840","--vg-text-header":"#72b860","--vg-text-group":"#98c888","--vg-text-placeholder":"#284828","--vg-border":"#132418","--vg-border-strong":"#1e3828","--vg-border-focus":"#4ade80","--vg-accent":"#4ade80","--vg-accent-hover":"#86efac","--vg-accent-bg":"#143a1a","--vg-accent-text":"#86efac","--vg-accent-fg":"#0a140c","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.5)","--vg-shadow-panel":"0 8px 40px rgba(0,10,0,0.7)","--vg-scrollbar-track":"#0f1e12","--vg-scrollbar-thumb":"#1e3828","--vg-sort-icon":"#204020","--vg-sort-active":"#4ade80","--vg-resize-hover":"#4ade80","--vg-drag-indicator":"#4ade80"},sunset:{...Qi,"--vg-bg":"#160a04","--vg-bg-header":"#221008","--vg-bg-group":"#2e160c","--vg-bg-row-alt":"#1c0e06","--vg-bg-row-hover":"#2e1a0c","--vg-bg-row-selected":"#3a1a08","--vg-bg-pinned":"#160a04","--vg-bg-frozen":"#1f0d04","--vg-bg-toolbar":"#221008","--vg-bg-panel":"#221008","--vg-bg-btn":"#2e160c","--vg-bg-btn-hover":"#3e2018","--vg-bg-btn-active":"#3a1a08","--vg-bg-tag":"#2e160c","--vg-bg-input":"#2e160c","--vg-text":"#f0c8a0","--vg-text-dim":"#805030","--vg-text-header":"#e09060","--vg-text-group":"#f0a870","--vg-text-placeholder":"#503020","--vg-border":"#2e160c","--vg-border-strong":"#3e2018","--vg-border-focus":"#fb923c","--vg-accent":"#fb923c","--vg-accent-hover":"#fdba74","--vg-accent-bg":"#3a1a08","--vg-accent-text":"#fdba74","--vg-accent-fg":"#160a04","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.5)","--vg-shadow-panel":"0 8px 40px rgba(20,0,0,0.7)","--vg-scrollbar-track":"#221008","--vg-scrollbar-thumb":"#3e2018","--vg-sort-icon":"#50280c","--vg-sort-active":"#fb923c","--vg-resize-hover":"#fb923c","--vg-drag-indicator":"#fb923c"}};function dN(e){var t;return!e||e==="light"?Jl.light:typeof e=="string"?(t=Jl[e])!=null?t:Jl.light:{...Jl.light,...e}}function OB(e){return e}function uN({direction:e,active:t}){return p.jsxs("span",{style:{display:"inline-flex",flexDirection:"column",gap:1,marginLeft:3,opacity:t?1:.3,flexShrink:0,color:t?"var(--vg-sort-active)":"var(--vg-sort-icon)",transition:"opacity var(--vg-transition)"},children:[p.jsx("svg",{width:"7",height:"5",viewBox:"0 0 7 5",children:p.jsx("path",{d:"M3.5 0L7 5H0z",fill:"currentColor",opacity:t&&e==="asc"?1:.35})}),p.jsx("svg",{width:"7",height:"5",viewBox:"0 0 7 5",children:p.jsx("path",{d:"M3.5 5L0 0h7z",fill:"currentColor",opacity:t&&e==="desc"?1:.35})})]})}function fN(){return p.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",children:p.jsx("path",{d:"M1 1l6 6M7 1L1 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}const To=x.memo(function({column:t,style:n,showResizeHandle:r=!0,isFirst:o=!1,isLast:s=!1}){var a,l;const{engine:c,dragHandlers:d,startResize:u,features:f,icons:h,styles:m,classNames:g}=ws(),{sortState:y,toggleSort:b,toggleColumnVisibility:v}=c,{getDragHandlers:T,dragState:S,consumeDragEnd:C}=d,[w,k]=x.useState(!1),O=y.columnId===t.id,P=S.draggingId===t.id,j=S.overTargetId===t.id,A=t.sortable&&f.sort,L=t.resizable&&f.resize,E=t.draggable&&f.reorder,R=t.hideable&&f.columnHide,M=E?T(t.id):{},N=D=>{C()||D.target.closest("[data-vg-hide]")||A&&b(t.id)},$=D=>{D.stopPropagation(),v(t.id)},F=D=>{D.stopPropagation(),D.preventDefault(),u(D,t.id)},H=j?"var(--vg-accent-bg)":w?"var(--vg-bg-row-hover)":"var(--vg-bg-header)",z=o?"1px solid var(--vg-border)":void 0;return p.jsxs("div",{role:"columnheader","aria-sort":O?y.direction==="asc"?"ascending":"descending":"none",className:(a=g.headerCell)!=null?a:void 0,...M,onClick:N,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),style:{...n,position:"absolute",display:"flex",alignItems:"center",justifyContent:t.align==="center"?"center":t.align==="right"?"flex-end":"flex-start",padding:"0 8px",fontWeight:600,fontSize:"var(--vg-font-size)",color:"var(--vg-text-header)",background:H,borderLeft:z,borderRight:"1px solid var(--vg-border)",borderBottom:"1px solid var(--vg-border)",cursor:A?"pointer":E?"grab":"default",userSelect:"none",opacity:P?.45:1,boxSizing:"border-box",overflow:"visible",whiteSpace:"nowrap",transition:"background var(--vg-transition)",outline:"none",...t.headerStyle,...m.headerCell,...t.groupId?m.groupHeaderCell:{}},children:[p.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:t.align},children:t.renderHeader?t.renderHeader(t,c):t.label}),A&&(()=>{if(O){const D=y.direction==="asc"?h.sortAsc:h.sortDesc;if(D)return p.jsx("span",{style:{marginLeft:3,flexShrink:0},children:D})}else if(h.sortNone)return p.jsx("span",{style:{marginLeft:3,flexShrink:0,opacity:.3},children:h.sortNone});return p.jsx(uN,{direction:y.direction,active:O})})(),R&&p.jsx("span",{"data-vg-hide":"",role:"button","aria-label":"Hide column",title:"Hide column",onClick:$,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:14,height:14,borderRadius:3,marginLeft:3,flexShrink:0,cursor:"pointer",opacity:w?.7:0,pointerEvents:w?"auto":"none",background:"transparent",color:"var(--vg-text-dim)",transition:"opacity 0.12s",userSelect:"none"},onMouseEnter:D=>{D.currentTarget.style.opacity="1",D.currentTarget.style.background="var(--vg-border-strong)"},onMouseLeave:D=>{D.currentTarget.style.opacity=w?"0.7":"0",D.currentTarget.style.background="transparent"},children:(l=h.hideColumn)!=null?l:p.jsx(fN,{})}),r&&L&&p.jsx("div",{"aria-hidden":"true","data-resize-handle":"",onPointerDown:D=>D.stopPropagation(),onMouseDown:F,onClick:D=>D.stopPropagation(),style:{position:"absolute",right:-4,top:0,width:8,height:"100%",borderRadius:2,cursor:"col-resize",background:"transparent",zIndex:3,transition:"background var(--vg-transition)"},onMouseEnter:D=>D.currentTarget.style.background="var(--vg-resize-hover)",onMouseLeave:D=>D.currentTarget.style.background="transparent"})]})});if(typeof document<"u"){const e="vg-shimmer-keyframes";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.textContent="@keyframes vg-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}",document.head.appendChild(t)}}function pN(e,t){return e.column===t.column&&e.row===t.row&&e.pinned===t.pinned&&e.isScrolling===t.isScrolling&&e.style.left===t.style.left&&e.style.top===t.style.top&&e.style.width===t.style.width&&e.style.height===t.style.height&&e.style.background===t.style.background&&e.style.zIndex===t.style.zIndex}function hN(){return p.jsx("div",{style:{width:"60%",height:10,borderRadius:4,background:"linear-gradient(90deg, var(--vg-border) 25%, var(--vg-bg-row-hover) 50%, var(--vg-border) 75%)",backgroundSize:"200% 100%",animation:"vg-shimmer 1.2s infinite linear"}})}const Ql=x.memo(function({column:t,row:n,style:r,pinned:o=!1,isScrolling:s=!1,loadingCell:a}){var l,c;const{styles:d,classNames:u}=ws();if(s&&t.deferRender&&t.renderCell)return p.jsx("div",{style:{...r,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 10px",boxSizing:"border-box",overflow:"hidden"},children:a??p.jsx(hN,{})});const f=t.accessor?t.accessor(n):n[(l=t.field)!=null?l:t.id],h=t.renderCell?t.renderCell(f,n):f??"—",m=t.align==="center"?"center":t.align==="right"?"flex-end":"flex-start",g=o?d.pinnedCell:d.cell,{background:y,backgroundColor:b,...v}=g??{},{background:T,backgroundColor:S,...C}=(c=t.cellStyle)!=null?c:{};return p.jsx("div",{className:[u.cell,o?u.pinnedCell:void 0].filter(Boolean).join(" ")||void 0,onClick:t.renderCell?w=>w.stopPropagation():void 0,style:{...r,position:"absolute",display:"flex",alignItems:"center",justifyContent:m,padding:"0 10px",fontSize:"var(--vg-font-size)",color:"var(--vg-text)",borderRight:"1px solid var(--vg-border)",boxSizing:"border-box",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",...C,...v},children:h})},pN),k1=x.memo(function({group:t,left:n,width:r,height:o}){const{classNames:s,styles:a}=ws();return p.jsx("div",{className:s.groupRow||void 0,style:{position:"absolute",left:n,top:0,width:r,height:o,display:"flex",alignItems:"center",justifyContent:"center",background:"var(--vg-bg-header)",borderRight:"1px solid var(--vg-border)",borderBottom:"1px solid var(--vg-border)",fontWeight:700,fontSize:"calc(var(--vg-font-size) - 0.5px)",letterSpacing:"0.025em",color:"var(--vg-text-group)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",boxSizing:"border-box",...t.headerStyle,...a.groupRow},children:t.label})}),mN=x.memo(function({height:t,slot:n}){return p.jsx("div",{style:{height:t,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,color:"var(--vg-text-dim)",fontSize:"var(--vg-font-size)",fontFamily:"var(--vg-font)"},children:n??p.jsxs(p.Fragment,{children:[p.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",children:[p.jsx("rect",{x:"4",y:"4",width:"28",height:"28",rx:"4",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.4"}),p.jsx("line",{x1:"4",y1:"13",x2:"32",y2:"13",stroke:"currentColor",strokeWidth:"1.2",opacity:"0.3"}),p.jsx("line",{x1:"4",y1:"22",x2:"32",y2:"22",stroke:"currentColor",strokeWidth:"1.2",opacity:"0.2"}),p.jsx("line",{x1:"14",y1:"4",x2:"14",y2:"32",stroke:"currentColor",strokeWidth:"1.2",opacity:"0.2"})]}),p.jsx("span",{style:{opacity:.5},children:"No data to display"})]})})}),gN=x.memo(function({onClose:t}){const{engine:n,features:r,classNames:o}=ws(),{orderedColumns:s,toggleColumnVisibility:a,pinColumn:l,showAllColumns:c}=n,d=x.useRef(null);x.useEffect(()=>{const f=m=>{d.current&&!d.current.contains(m.target)&&t()},h=setTimeout(()=>document.addEventListener("mousedown",f),50);return()=>{clearTimeout(h),document.removeEventListener("mousedown",f)}},[t]);const u=s.filter(f=>f.hidden).length;return p.jsxs("div",{ref:d,role:"dialog","aria-label":"Column manager",className:o.columnPanel||void 0,style:{position:"absolute",top:"calc(100% + 4px)",right:0,zIndex:"var(--vg-z-panel)",background:"var(--vg-bg-panel)",border:"1px solid var(--vg-border-strong)",borderRadius:"var(--vg-radius)",boxShadow:"var(--vg-shadow-panel)",minWidth:260,maxHeight:420,display:"flex",flexDirection:"column",overflow:"hidden",fontFamily:"var(--vg-font)"},children:[p.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px 8px",borderBottom:"1px solid var(--vg-border)",flexShrink:0},children:[p.jsxs("span",{style:{fontWeight:700,fontSize:11,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--vg-text-dim)"},children:["Columns",u>0&&p.jsxs("span",{style:{marginLeft:6,background:"var(--vg-accent-bg)",color:"var(--vg-accent-text)",borderRadius:10,padding:"1px 6px",fontSize:10},children:[u," hidden"]})]}),u>0&&p.jsx("button",{onClick:c,style:{background:"none",border:"none",cursor:"pointer",fontSize:11,color:"var(--vg-accent)",fontWeight:600,fontFamily:"var(--vg-font)",padding:"2px 4px"},children:"Show all"})]}),p.jsx("div",{style:{overflow:"auto",flex:1},children:s.map(f=>{var h;return p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 14px",fontSize:"var(--vg-font-size)",color:f.hidden?"var(--vg-text-dim)":"var(--vg-text)",transition:"background var(--vg-transition)"},onMouseEnter:m=>m.currentTarget.style.background="var(--vg-bg-row-hover)",onMouseLeave:m=>m.currentTarget.style.background="transparent",children:[p.jsx("input",{type:"checkbox",id:`vg-col-${f.id}`,checked:!f.hidden,onChange:()=>a(f.id),style:{accentColor:"var(--vg-accent)",cursor:"pointer",width:13,height:13,flexShrink:0}}),p.jsx("label",{htmlFor:`vg-col-${f.id}`,style:{flex:1,cursor:"pointer",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f.label}),r.columnPin&&p.jsxs("select",{value:(h=f.pinned)!=null?h:"",onChange:m=>l(f.id,m.target.value||null),style:{fontSize:11,padding:"2px 5px",background:"var(--vg-bg-btn)",color:"var(--vg-text)",border:"1px solid var(--vg-border-strong)",borderRadius:"var(--vg-radius-xs)",cursor:"pointer",fontFamily:"var(--vg-font)",outline:"none"},children:[p.jsx("option",{value:"",children:"No pin"}),p.jsx("option",{value:"left",children:"Pin left"}),p.jsx("option",{value:"right",children:"Pin right"})]})]},f.id)})}),p.jsx("div",{style:{padding:"10px 14px",borderTop:"1px solid var(--vg-border)",flexShrink:0},children:p.jsx("button",{onClick:t,style:{width:"100%",padding:"7px 12px",background:"var(--vg-accent)",color:"var(--vg-accent-fg)",border:"none",borderRadius:"var(--vg-radius-sm)",cursor:"pointer",fontWeight:600,fontSize:"var(--vg-font-size)",fontFamily:"var(--vg-font)",transition:"background var(--vg-transition)"},onMouseEnter:f=>f.currentTarget.style.background="var(--vg-accent-hover)",onMouseLeave:f=>f.currentTarget.style.background="var(--vg-accent)",children:"Done"})})]})}),yN=x.memo(function({left:t,right:n,colManagerSlot:r}){const{classNames:o,styles:s}=ws();return p.jsxs("div",{role:"toolbar",className:o.toolbar||void 0,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"7px 12px",background:"var(--vg-bg-toolbar)",borderBottom:"1px solid var(--vg-border)",gap:8,flexShrink:0,position:"relative",...s.toolbar},children:[p.jsx("div",{style:{display:"flex",alignItems:"center",gap:8},children:t}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,position:"relative"},children:[n,r]})]})}),bN=x.memo(function({onClick:t,active:n=!1,children:r,icon:o,"aria-label":s}){return p.jsxs("button",{onClick:t,"aria-label":s,"aria-pressed":n,style:{display:"inline-flex",alignItems:"center",gap:5,padding:"5px 10px",borderRadius:"var(--vg-radius-sm)",border:`1px solid ${n?"var(--vg-accent)":"var(--vg-border-strong)"}`,background:n?"var(--vg-accent-bg)":"var(--vg-bg-btn)",color:n?"var(--vg-accent-text)":"var(--vg-text)",fontSize:12,fontWeight:600,cursor:"pointer",fontFamily:"var(--vg-font)",transition:"all var(--vg-transition)",lineHeight:1},onMouseEnter:a=>{n||(a.currentTarget.style.background="var(--vg-bg-btn-hover)")},onMouseLeave:a=>{n||(a.currentTarget.style.background="var(--vg-bg-btn)")},children:[o,r]})}),vN=x.memo(function({startRow:t,endRow:n,totalRows:r,visibleCols:o,totalCols:s}){const{classNames:a,styles:l}=ws();return p.jsxs("div",{className:a.footer||void 0,style:{display:"flex",alignItems:"center",justifyContent:"flex-end",padding:"5px 12px",background:"var(--vg-bg-toolbar)",borderTop:"1px solid var(--vg-border)",fontSize:11,color:"var(--vg-text-dim)",fontFamily:"var(--vg-font-mono)",flexShrink:0,gap:12,...l.footer},children:[p.jsxs("span",{children:[t.toLocaleString(),"–",n.toLocaleString()," of ",r.toLocaleString()," rows"]}),p.jsx("span",{style:{opacity:.5},children:"·"}),p.jsxs("span",{children:[o,"/",s," columns"]})]})});function xN(){return p.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none","aria-hidden":"true",children:[p.jsx("rect",{x:"0.5",y:"1.5",width:"3.5",height:"9",rx:"0.8",stroke:"currentColor",strokeWidth:"1.15"}),p.jsx("rect",{x:"5",y:"1.5",width:"3",height:"9",rx:"0.8",stroke:"currentColor",strokeWidth:"1.15"}),p.jsx("rect",{x:"9.5",y:"1.5",width:"3",height:"9",rx:"0.8",stroke:"currentColor",strokeWidth:"1.15"})]})}const wN=36,SN=38,CN=28,TN={sort:!0,resize:!0,reorder:!0,columnHide:!0,columnPin:!0,alternateRows:!0,toolbar:!0,footer:!0,rowSelection:!0},kN={},EN={},ON={};function MN(e,t,n,r){var o;if(r<=0)return null;const s=e.findIndex(a=>a.id===n);return s<0?null:((o=t[s])!=null?o:0)<r?s:null}function PN({columns:e,data:t,getRowId:n,height:r,maxHeight:o=600,rowHeight:s=wN,headerHeight:a=SN,groupHeaderHeight:l=CN,theme:c="light",features:d,icons:u,classNames:f,styles:h,slots:m={},freezeColId:g,loading:y=!1,onRowClick:b,onSortChange:v,onColumnStateChange:T,onColumnResize:S,onColumnReorder:C,sortMode:w="client",ariaLabel:k="Data grid",className:O,style:P}){var j,A,L,E,R;const M=x.useMemo(()=>({...TN,...d}),[JSON.stringify(d)]),N=u??kN,$=h??EN,F=f??ON,H=rN(e),{pinnedLeftColumns:z,pinnedRightColumns:_,scrollableColumns:D,pinnedLeftWidth:V,pinnedRightWidth:U,sortState:G,groups:X,hasGroups:q,visibleColumns:K,orderedColumns:ce,resizeColumn:de,moveColumnBefore:W,moveColumnToEnd:ee}=H,B=x.useRef(G);x.useEffect(()=>{(B.current.columnId!==G.columnId||B.current.direction!==G.direction)&&(B.current=G,v?.(G))},[G,v]);const ue=x.useRef(null);x.useEffect(()=>{var oe;ue.current=G.columnId&&(oe=H.orderedColumns.find(ae=>ae.id===G.columnId))!=null?oe:null},[G.columnId]);const Q=x.useMemo(()=>{var oe;if(w==="server")return t;const ae=ue.current;if(!G.columnId||!ae)return t;const le=(oe=ae.accessor)!=null?oe:ye=>{var Ue;return ye[(Ue=ae.field)!=null?Ue:ae.id]};return[...t].sort((ye,Ue)=>{const $e=le(ye),Ye=le(Ue);if($e==null)return 1;if(Ye==null)return-1;const ze=$e<Ye?-1:$e>Ye?1:0;return G.direction==="asc"?ze:-ze})},[t,w,G.columnId,G.direction]),ne=x.useRef("");x.useEffect(()=>{if(!T)return;const oe=H.orderedColumns.map((le,ye)=>({id:le.id,hidden:le.hidden,pinned:le.pinned,width:le.width,order:ye})),ae=JSON.stringify(oe);ae!==ne.current&&(ne.current=ae,T(oe))},[H.orderedColumns,T]);const[we,ke]=x.useState(null),Ce=x.useCallback((oe,ae)=>{if(M.rowSelection){const le=String(n?n(oe,ae):ae);ke(ye=>ye===le?null:le)}b?.(oe,ae)},[M.rowSelection,n,b]),ve=x.useCallback((oe,ae)=>!we||!M.rowSelection?!1:String(n?n(oe,ae):ae)===we,[we,M.rowSelection,n]),_e=x.useRef(null),Ee=x.useRef(0),xe=x.useRef(0),[,re]=x.useReducer(oe=>oe+1,0),ie=x.useRef(0),Te=x.useRef(!1),he=x.useRef(null),pe=x.useRef(null),Ie=x.useRef(null),Fe=x.useRef(null),He=x.useMemo(()=>iN(D),[D]),Oe=x.useMemo(()=>D.map(oe=>oe.width),[D]),Tt=x.useMemo(()=>Oe.reduce((oe,ae)=>oe+ae,0),[Oe]),st=x.useRef(null),[nt,dn]=x.useState(400),[Jn,Wn]=x.useState(800);x.useEffect(()=>{const oe=st.current;if(!oe)return;const ae=new ResizeObserver(([le])=>{le&&(dn(le.contentRect.height),Wn(le.contentRect.width))});return ae.observe(oe),dn(oe.clientHeight),Wn(oe.clientWidth),()=>ae.disconnect()},[]);const me=q?l+a:a,fe=M.toolbar?36:0,De=M.footer?29:0,Me=me+Q.length*s+fe+De,Je=r??Math.min(Me,o),Nt=Math.max(0,Jn-V-U),Ke=V+Tt+U,to=x.useRef({startIndex:0,endIndex:-1,totalHeight:0,offsetY:0}),Sr=x.useCallback(oe=>{to.current=oN(Q.length,s,oe,Math.max(0,nt-me))},[Q.length,s,nt,me]),We=x.useRef({startIndex:0,endIndex:0}),Ht=x.useCallback(oe=>{const ae=Math.max(0,oe-V),le=Nt>0?Nt:1400;We.current=sN(He,Oe,ae,le)},[He,Oe,Nt,V]),be=x.useRef(null),Pe=x.useCallback(oe=>{if(!g){be.current=null;return}const ae=Math.max(0,oe-V);be.current=MN(D,He,g,ae)},[g,D,He,V]),Qe=x.useMemo(()=>{var oe;return g&&(oe=D.find(ae=>ae.id===g))!=null?oe:null},[g,D]),rt=x.useMemo(()=>{var oe;if(!Qe)return 0;const ae=D.findIndex(le=>le.id===Qe.id);return ae>=0&&(oe=He[ae])!=null?oe:0},[Qe,D,He]),jt=x.useCallback(()=>{const oe=_e.current;if(!oe)return;const ae=oe.scrollTop,le=oe.scrollLeft;xe.current=ae,Ee.current=le,Sr(ae),Ht(le),Pe(le);const ye=be.current!==null;pe.current&&(pe.current.style.visibility=ye?"visible":"hidden",pe.current.style.pointerEvents=ye?"auto":"none"),Te.current=!0,he.current&&clearTimeout(he.current),he.current=setTimeout(()=>{Te.current=!1,re()},150),cancelAnimationFrame(ie.current),ie.current=requestAnimationFrame(re)},[Sr,Ht,Pe,re]);x.useEffect(()=>{Sr(xe.current),Ht(Ee.current),Pe(Ee.current)},[Sr,Ht,Pe]),x.useEffect(()=>{const oe=Ue=>{Ue.preventDefault();const $e=_e.current;$e&&($e.scrollTop+=Ue.deltaY,$e.scrollLeft+=Ue.deltaX)},ae={passive:!1},le=Ie.current,ye=Fe.current;return le?.addEventListener("wheel",oe,ae),ye?.addEventListener("wheel",oe,ae),()=>{le?.removeEventListener("wheel",oe,ae),ye?.removeEventListener("wheel",oe,ae)}},[]),x.useLayoutEffect(()=>{if(!pe.current)return;const oe=be.current!==null;pe.current.style.visibility=oe?"visible":"hidden",pe.current.style.pointerEvents=oe?"auto":"none"});const Ut=We.current,zn=be.current,un=zn!==null&&(j=D[zn])!=null?j:null,$r=(A=Qe?.width)!=null?A:0,vn=to.current,bc=Te.current,q2=x.useMemo(()=>{const oe=new Set(X.flatMap(ae=>ae.children.map(le=>le.id)));return new Set(D.filter(ae=>!oe.has(ae.id)).map(ae=>ae.id))},[X,D]),pp=x.useRef(H.orderedColumns);pp.current=H.orderedColumns;const ca=x.useRef(C);ca.current=C;const G2=x.useRef(oe=>120);G2.current=oe=>{var ae,le;return(le=(ae=H.orderedColumns.find(ye=>ye.id===oe))==null?void 0:ae.width)!=null?le:120};const{startResize:K2}=aN({onResize:(oe,ae)=>de(oe,ae),onResizeEnd:(oe,ae)=>S?.(oe,ae),getCurrentWidth:x.useCallback(oe=>G2.current(oe),[])}),hL=x.useCallback(oe=>{var ae,le;const ye=(ae=st.current)==null?void 0:ae.getBoundingClientRect();if(!ye)return null;const Ue=Ee.current;let $e=0;for(const ze of z){if(ze.id===oe)return{left:ye.left+$e,right:ye.left+$e+ze.width};$e+=ze.width}const Ye=D.findIndex(ze=>ze.id===oe);if(Ye!==-1){const ze=D[Ye],St=Math.max(0,Ue-V),ot=V+((le=He[Ye])!=null?le:0)-St;return{left:ye.left+ot,right:ye.left+ot+ze.width}}$e=0;for(const ze of _){if(ze.id===oe){const St=ye.right-U;return{left:St+$e,right:St+$e+ze.width}}$e+=ze.width}return null},[z,D,_,V,U,He]),Ms=lN({onMoveColumnBefore:(oe,ae)=>{if(W(oe,ae),ca.current){const ye=pp.current.map(Ue=>Ue.id).filter(Ue=>Ue!==oe);ye.splice(ye.indexOf(ae),0,oe),ca.current(ye)}},onMoveColumnToEnd:oe=>{if(ee(oe),ca.current){const le=[...pp.current.map(ye=>ye.id).filter(ye=>ye!==oe),oe];ca.current(le)}},columns:K.map(oe=>({id:oe.id,groupId:oe.groupId,draggable:oe.draggable,pinned:oe.pinned})),getColumnViewportBounds:hL}),[X2,hp]=x.useState(!1),Z2=x.useMemo(()=>dN(c),[c]),mL=x.useMemo(()=>Z2,[Z2]),gL=x.useMemo(()=>({engine:H,dragHandlers:Ms,startResize:K2,features:M,icons:N,styles:$,classNames:F}),[H,Ms,K2,M,N,$,F]),J2=x.useCallback((oe,ae)=>{var le,ye,Ue,$e,Ye,ze,St,ot;return ve(oe,ae)?($e=(Ue=(le=$.rowSelected)==null?void 0:le.background)!=null?Ue:(ye=$.rowSelected)==null?void 0:ye.backgroundColor)!=null?$e:"var(--vg-bg-row-selected)":M.alternateRows&&ae%2===1?"var(--vg-bg-row-alt)":(ot=(St=(Ye=$.row)==null?void 0:Ye.background)!=null?St:(ze=$.row)==null?void 0:ze.backgroundColor)!=null?ot:"var(--vg-bg)"},[ve,M.alternateRows,$.rowSelected,$.row]),yL=x.useCallback((oe,ae)=>{var le,ye,Ue,$e,Ye,ze,St,ot,Ot,et;return ve(oe,ae)?($e=(Ue=(le=$.rowSelected)==null?void 0:le.background)!=null?Ue:(ye=$.rowSelected)==null?void 0:ye.backgroundColor)!=null?$e:"var(--vg-bg-row-selected)":M.alternateRows&&ae%2===1?"var(--vg-bg-row-alt)":(et=(Ot=(St=(Ye=$.pinnedCell)==null?void 0:Ye.background)!=null?St:(ze=$.pinnedCell)==null?void 0:ze.backgroundColor)!=null?Ot:(ot=$.row)==null?void 0:ot.background)!=null?et:"var(--vg-bg-pinned)"},[ve,M.alternateRows,$.rowSelected,$.row,$.pinnedCell]),bL=()=>{var oe,ae;const le=[],ye=new Set;for(let Ue=Ut.startIndex;Ue<=Ut.endIndex;Ue++){const $e=D[Ue];if(!$e)continue;const Ye=V+((oe=He[Ue])!=null?oe:0);if(q2.has($e.id)){le.push(p.jsx(To,{column:$e,style:{position:"absolute",left:Ye,top:0,width:$e.width,height:l+a,zIndex:1,background:"var(--vg-bg-header)"}},`hspan-${$e.id}`));continue}const ze=X.find(et=>et.children.some($t=>$t.id===$e.id));if(!ze||ye.has(ze.id))continue;ye.add(ze.id);const St=D.filter(et=>ze.children.some($t=>$t.id===et.id)),ot=St.reduce((et,$t)=>et+$t.width,0),Ot=D.findIndex(et=>{var $t;return et.id===(($t=St[0])==null?void 0:$t.id)});le.push(p.jsx(k1,{group:ze,left:V+((ae=He[Ot])!=null?ae:0),width:ot,height:l},`grp-${ze.id}`))}return le},vL=()=>{const oe=[];let ae;const le=[];for(let ye=Ut.startIndex;ye<=Ut.endIndex;ye++){const Ue=D[ye];!Ue||q2.has(Ue.id)||le.push(ye)}return le.forEach((ye,Ue)=>{var $e;const Ye=D[ye];if(!Ye)return;const ze=Ye.groupId!==ae;ae=Ye.groupId;const St=Ue===le.length-1;oe.push(p.jsx(To,{column:Ye,isFirst:ze,isLast:St,style:{position:"absolute",left:V+(($e=He[ye])!=null?$e:0),top:0,width:Ye.width,height:a,zIndex:1}},`lh-${Ye.id}`))}),oe},xL=()=>{const oe=[],ae=[];for(let le=Ut.startIndex;le<=Ut.endIndex;le++)D[le]&&ae.push(le);return ae.forEach((le,ye)=>{var Ue;const $e=D[le];$e&&oe.push(p.jsx(To,{column:$e,isFirst:ye===0,isLast:ye===ae.length-1,style:{position:"absolute",left:V+((Ue=He[le])!=null?Ue:0),top:0,width:$e.width,height:a,zIndex:1}},`fh-${$e.id}`))}),oe},wL=oe=>{var ae,le;const ye=Q[oe];if(!ye)return null;const Ue=me+oe*s,$e=J2(ye,oe),Ye=yL(ye,oe),ze=ve(ye,oe),St=String(n?n(ye,oe):oe),ot=[];for(let Lt=Ut.startIndex;Lt<=Ut.endIndex;Lt++){const Jt=D[Lt];Jt&&ot.push(p.jsx(Ql,{column:Jt,row:ye,isScrolling:bc,loadingCell:m.loadingCell,style:{position:"absolute",left:V+((ae=He[Lt])!=null?ae:0),top:0,width:Jt.width,height:s,background:$e}},`ds-${Jt.id}`))}let Ot=0;const et=z.length>0?z.map(Lt=>{const Jt=Ot;return Ot+=Lt.width,p.jsx(Ql,{column:Lt,row:ye,pinned:!0,isScrolling:bc,loadingCell:m.loadingCell,style:{position:"absolute",left:Jt,top:0,width:Lt.width,height:s,background:Ye}},`ps-l-${Lt.id}`)}):null;let $t=0;const Ps=_.length>0?_.map(Lt=>{const Jt=$t;return $t+=Lt.width,p.jsx(Ql,{column:Lt,row:ye,pinned:!0,isScrolling:bc,loadingCell:m.loadingCell,style:{position:"absolute",left:Jt,top:0,width:Lt.width,height:s,background:Ye}},`ps-r-${Lt.id}`)}):null;return p.jsxs("div",{role:"row","aria-rowindex":oe+1,"aria-selected":ze,onClick:()=>Ce(ye,oe),className:[F.row,ze?F.rowSelected:void 0].filter(Boolean).join(" ")||void 0,style:{position:"absolute",top:Ue,left:0,width:Ke,height:s,background:$e,cursor:"pointer",display:"flex",...$.row,...ze?$.rowSelected:{}},onMouseEnter:Lt=>{if(!ze){const Jt=Lt.currentTarget;Jt.style.background="var(--vg-bg-row-hover)",Jt.querySelectorAll("[data-pinned-sticky]").forEach(Po=>{Po.style.background="var(--vg-bg-row-hover)"})}},onMouseLeave:Lt=>{const Jt=Lt.currentTarget;Jt.style.background=$e,Jt.querySelectorAll("[data-pinned-sticky]").forEach(Po=>{Po.style.background=Ye})},children:[et&&p.jsx("div",{"data-pinned-sticky":"left",style:{position:"sticky",left:0,width:V,height:s,flexShrink:0,zIndex:5,background:Ye,overflow:"hidden"},children:et}),Ps&&p.jsx("div",{style:{flex:1}}),Ps&&p.jsx("div",{"data-pinned-sticky":"right",style:{position:"sticky",right:0,width:U,height:s,flexShrink:0,zIndex:5,background:Ye,overflow:"hidden"},children:Ps}),ot,ze&&((le=m.rowSelectionIndicator)==null?void 0:le.call(m,ye,oe))]},St)},SL=()=>{var oe,ae,le,ye,Ue;if(!Qe)return null;const $e=[];for(let Ye=vn.startIndex;Ye<=vn.endIndex;Ye++){const ze=Q[Ye];if(!ze)continue;const St=String(n?n(ze,Ye):Ye),ot=ve(ze,Ye),Ot=ot?(ye=(le=(oe=$.rowSelected)==null?void 0:oe.background)!=null?le:(ae=$.rowSelected)==null?void 0:ae.backgroundColor)!=null?ye:"var(--vg-bg-row-selected)":"var(--vg-bg-frozen, var(--vg-bg-row-alt))";$e.push(p.jsxs("div",{onClick:()=>Ce(ze,Ye),className:[F.row,ot?F.rowSelected:void 0].filter(Boolean).join(" ")||void 0,style:{position:"absolute",left:0,top:Ye*s,width:$r,height:s,background:Ot,cursor:"pointer",overflow:"hidden",...$.row,...ot?$.rowSelected:{}},onMouseEnter:et=>{ot||(et.currentTarget.style.background="var(--vg-bg-row-hover)")},onMouseLeave:et=>{et.currentTarget.style.background=Ot},children:[p.jsx(Ql,{column:Qe,row:ze,pinned:!0,isScrolling:bc,loadingCell:m.loadingCell,style:{position:"absolute",left:0,top:0,width:$r,height:s,background:Ot,zIndex:2}}),ot&&p.jsx("div",{style:{position:"absolute",inset:0,zIndex:3,pointerEvents:"none"},children:(Ue=m.rowSelectionIndicator)==null?void 0:Ue.call(m,ze,Ye)})]},St))}return $e},Q2=oe=>{const ae=oe==="left",le=ae?z:_,ye=ae?V:U,Ue=ae&&un!==null,$e=Ue?ye+$r:ye;if(!le.length&&!Ue)return null;const Ye=[];let ze=0;for(const Ot of le)Ye.push(ze),ze+=Ot.width;const St=ze,ot=[];if(q){const Ot=new Set;if(le.forEach((et,$t)=>{var Ps,Lt,Jt;if(!et.groupId)ot.push(p.jsx(To,{column:et,isFirst:$t===0,isLast:$t===le.length-1,style:{position:"absolute",left:Ye[$t],top:0,width:et.width,height:l+a,zIndex:2,background:"var(--vg-bg-header)"}},`ph-span-${et.id}`));else{if(!Ot.has(et.groupId)){Ot.add(et.groupId);const Po=X.find(tx=>tx.id===et.groupId);if(Po){const OL=le.filter(mp=>mp.groupId===et.groupId).reduce((mp,ML)=>mp+ML.width,0);ot.push(p.jsx(k1,{group:Po,left:(Ps=Ye[$t])!=null?Ps:0,width:OL,height:l},`pgh-${Po.id}`))}}ot.push(p.jsx(To,{column:et,isFirst:$t===0||((Lt=le[$t-1])==null?void 0:Lt.groupId)!==et.groupId,isLast:$t===le.length-1||((Jt=le[$t+1])==null?void 0:Jt.groupId)!==et.groupId,style:{position:"absolute",left:Ye[$t],top:l,width:et.width,height:a,zIndex:2,background:"var(--vg-bg-header)"}},`ph-leaf-${et.id}`))}}),Ue&&un){const et=un.align==="center"?"center":un.align==="right"?"flex-end":"flex-start";ot.push(p.jsx("div",{style:{position:"absolute",left:St,top:0,width:$r,height:l+a,background:"var(--vg-bg-frozen, var(--vg-bg-group))",borderRight:"1px solid var(--vg-border-strong)",borderBottom:"1px solid var(--vg-border-strong)",zIndex:2,boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:et,padding:"0 10px",fontWeight:700,fontSize:"calc(var(--vg-font-size) - 0.5px)",color:"var(--vg-text-group)",overflow:"hidden",whiteSpace:"nowrap",...$.headerCell},children:un.label},`ph-frozen-${un.id}`))}}else le.forEach((Ot,et)=>{ot.push(p.jsx(To,{column:Ot,isFirst:et===0,isLast:et===le.length-1,style:{position:"absolute",left:Ye[et],top:0,width:Ot.width,height:a,zIndex:2,background:"var(--vg-bg-header)"}},`ph-${Ot.id}`))}),Ue&&un&&ot.push(p.jsx(To,{column:un,style:{position:"absolute",left:St,top:0,width:$r,height:a,zIndex:2,background:"var(--vg-bg-frozen, var(--vg-accent-bg))"}},`ph-frozen-${un.id}`));return p.jsxs("div",{style:{position:"absolute",[oe]:0,top:0,width:$e,height:"100%",zIndex:20,pointerEvents:"none"},children:[p.jsx("div",{ref:ae?Ie:Fe,style:{position:"absolute",top:0,left:0,width:$e,height:me,pointerEvents:"auto"},children:p.jsx("div",{style:{position:"absolute",top:0,left:0,width:$e,height:me,background:"var(--vg-bg-header)",borderBottom:"1px solid var(--vg-border-strong)",zIndex:10,overflow:"visible"},children:ot})}),p.jsx("div",{"aria-hidden":"true",style:{position:"absolute",[ae?"right":"left"]:-8,top:0,width:8,height:"100%",pointerEvents:"none",zIndex:15,background:ae?"linear-gradient(to right, rgba(0,0,0,0.08), transparent)":"linear-gradient(to left, rgba(0,0,0,0.08), transparent)"}})]},`layer-${oe}`)},CL=p.jsxs("span",{style:{fontSize:12,color:"var(--vg-text-dim)",fontWeight:500},children:[Q.length.toLocaleString()," rows",we&&p.jsx("span",{style:{marginLeft:8,color:"var(--vg-accent)",fontWeight:600},children:"· 1 selected"})]}),TL=X2?m.columnManager?m.columnManager({engine:H,onClose:()=>hp(!1)}):p.jsx(gN,{onClose:()=>hp(!1)}):null,kL=(L=N.columnsPanel)!=null?L:p.jsx(xN,{}),ex={startRow:vn.startIndex+1,endRow:Math.min(vn.endIndex+1,Q.length),totalRows:Q.length,visibleCols:K.length,totalCols:ce.length},EL=me+Q.length*s;return p.jsx(cN,{value:gL,children:p.jsxs("div",{role:"grid","aria-label":k,"aria-rowcount":Q.length,"aria-colcount":K.length,className:[F.root,O].filter(Boolean).join(" ")||void 0,style:{...mL,fontFamily:"var(--vg-font)",fontSize:"var(--vg-font-size)",lineHeight:"var(--vg-line-height)",background:"var(--vg-bg)",border:"1px solid var(--vg-border-strong)",borderRadius:"var(--vg-radius)",overflow:"hidden",display:"flex",flexDirection:"column",height:Je,position:"relative",...$.root,...P},children:[M.toolbar&&(m.toolbar?m.toolbar(H):p.jsx(yN,{left:(E=m.toolbarLeft)!=null?E:CL,right:m.toolbarRight,colManagerSlot:p.jsxs(p.Fragment,{children:[p.jsx(bN,{onClick:()=>hp(oe=>!oe),active:X2,icon:kL,"aria-label":"Manage columns",children:"Columns"}),TL]})})),p.jsx("div",{ref:st,style:{position:"relative",flex:1,overflow:"hidden"},children:Q.length===0?p.jsx(mN,{height:nt,slot:m.emptyState}):p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:_e,onScroll:jt,style:{position:"absolute",inset:0,overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--vg-scrollbar-thumb) var(--vg-scrollbar-track)",willChange:"scroll-position"},children:p.jsxs("div",{style:{width:Ke,height:EL,position:"relative"},children:[p.jsx("div",{style:{position:"sticky",top:0,width:Ke,height:me,zIndex:8,background:"var(--vg-bg-header)",borderBottom:"1px solid var(--vg-border-strong)",...$.headerRow},children:q?p.jsxs(p.Fragment,{children:[p.jsx("div",{role:"row",style:{position:"absolute",top:0,left:0,width:Ke,height:l,overflow:"visible"},children:bL()}),p.jsx("div",{role:"row",style:{position:"absolute",top:l,left:0,width:Ke,height:a,overflow:"visible"},children:vL()})]}):p.jsx("div",{role:"row",style:{position:"absolute",top:0,left:0,width:Ke,height:a,overflow:"visible"},children:xL()})}),Qe&&p.jsx("div",{ref:pe,style:{position:"sticky",left:V,marginLeft:V+rt,width:$r,height:Q.length*s,zIndex:6,visibility:zn!==null?"visible":"hidden",pointerEvents:zn!==null?"auto":"none"},children:SL()}),Array.from({length:Math.max(0,vn.endIndex-vn.startIndex+1)},(oe,ae)=>wL(vn.startIndex+ae))]})}),Q2("left"),Q2("right"),y&&p.jsx("div",{style:{position:"absolute",inset:0,background:"rgba(255,255,255,0.6)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:50,backdropFilter:"blur(1px)"},children:(R=m.loadingOverlay)!=null?R:p.jsx("div",{style:{padding:"10px 20px",borderRadius:6,background:"var(--vg-bg)",border:"1px solid var(--vg-border-strong)",fontSize:13,color:"var(--vg-text-dim)",fontFamily:"var(--vg-font)"},children:"Loading…"})})]})}),M.footer&&(m.footer?m.footer(ex):p.jsx(vN,{...ex})),Ms.dragState.draggingId&&(()=>{var oe;const{draggingId:ae}=Ms.dragState,le=K.find($e=>$e.id===ae);if(!le)return null;const ye=(oe=st.current)==null?void 0:oe.getBoundingClientRect();if(!ye)return null;const Ue=le.align==="center"?"center":le.align==="right"?"flex-end":"flex-start";return p.jsxs(p.Fragment,{children:[p.jsxs("div",{ref:Ms.registerGhost,style:{position:"fixed",top:ye.top,width:le.width,height:ye.height,zIndex:9999,pointerEvents:"none",boxShadow:"0 6px 24px rgba(0,0,0,0.20)",borderRadius:4,overflow:"hidden",background:"var(--vg-bg)"},children:[p.jsx("div",{style:{height:me,background:"var(--vg-bg-header)",borderBottom:"1px solid var(--vg-border-strong)",display:"flex",alignItems:"center",justifyContent:Ue,padding:"0 8px",fontWeight:600,fontSize:"var(--vg-font-size)",color:"var(--vg-text-header)",boxSizing:"border-box",overflow:"hidden",whiteSpace:"nowrap"},children:le.label}),Array.from({length:vn.endIndex-vn.startIndex+1},($e,Ye)=>{var ze;const St=vn.startIndex+Ye,ot=Q[St];if(!ot)return null;const Ot=le.accessor?le.accessor(ot):ot[(ze=le.field)!=null?ze:le.id],et=le.renderCell?le.renderCell(Ot,ot):Ot??"—";return p.jsx("div",{style:{height:s,display:"flex",alignItems:"center",justifyContent:Ue,padding:"0 10px",fontSize:"var(--vg-font-size)",color:"var(--vg-text)",borderBottom:"1px solid var(--vg-border)",boxSizing:"border-box",overflow:"hidden",whiteSpace:"nowrap",background:J2(ot,St)},children:et},St)})]}),p.jsx("div",{ref:Ms.registerIndicator,style:{position:"fixed",top:ye.top,width:2,height:ye.height,background:"var(--vg-accent)",zIndex:1e4,pointerEvents:"none",borderRadius:1}})]})})()]})})}const jN=x.memo(PN);x.memo(function({currentPage:t,pageCount:n,totalRows:r,startIndex:o,endIndex:s,pageSize:a,pageSizeOptions:l,canGoPrev:c,canGoNext:d,goToPage:u,nextPage:f,prevPage:h,firstPage:m,lastPage:g,setPageSize:y}){const b=IN(t,n);return p.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,padding:"8px 12px",background:"var(--vg-bg-toolbar)",borderTop:"1px solid var(--vg-border)",borderRadius:"0 0 var(--vg-radius) var(--vg-radius)",fontFamily:"var(--vg-font)",flexWrap:"wrap"},children:[p.jsxs("span",{style:{fontSize:12,color:"var(--vg-text-dim)",fontFamily:"var(--vg-font-mono)",flexShrink:0},children:[(o+1).toLocaleString(),"–",Math.min(s+1,r).toLocaleString()," of"," ",r.toLocaleString()," rows"]}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:3},children:[p.jsx(ec,{onClick:m,disabled:!c,title:"First page",children:p.jsx(O1,{left:!0})}),p.jsx(ec,{onClick:h,disabled:!c,title:"Previous page",children:p.jsx(E1,{left:!0})}),b.map((v,T)=>v==="…"?p.jsx("span",{style:{padding:"0 4px",fontSize:12,color:"var(--vg-text-dim)"},children:"…"},`ellipsis-${T}`):p.jsx("button",{onClick:()=>u(v),"aria-current":v===t?"page":void 0,style:{minWidth:28,height:28,padding:"0 6px",borderRadius:"var(--vg-radius-xs)",border:`1px solid ${v===t?"var(--vg-accent)":"var(--vg-border-strong)"}`,background:v===t?"var(--vg-accent-bg)":"var(--vg-bg-btn)",color:v===t?"var(--vg-accent-text)":"var(--vg-text)",fontWeight:v===t?700:500,fontSize:12,cursor:"pointer",fontFamily:"var(--vg-font-mono)",lineHeight:1,transition:"all var(--vg-transition)"},children:v},v)),p.jsx(ec,{onClick:f,disabled:!d,title:"Next page",children:p.jsx(E1,{})}),p.jsx(ec,{onClick:g,disabled:!d,title:"Last page",children:p.jsx(O1,{})})]}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:7,flexShrink:0},children:[p.jsx("span",{style:{fontSize:12,color:"var(--vg-text-dim)"},children:"Rows per page"}),p.jsx("select",{value:a,onChange:v=>y(Number(v.target.value)),style:{padding:"3px 6px",borderRadius:"var(--vg-radius-xs)",border:"1px solid var(--vg-border-strong)",background:"var(--vg-bg-btn)",color:"var(--vg-text)",fontSize:12,cursor:"pointer",fontFamily:"var(--vg-font)",outline:"none"},children:l.map(v=>p.jsx("option",{value:v,children:v},v))})]})]})});function ec({onClick:e,disabled:t,title:n,children:r}){return p.jsx("button",{onClick:e,disabled:t,title:n,style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--vg-radius-xs)",border:"1px solid var(--vg-border-strong)",background:"var(--vg-bg-btn)",color:t?"var(--vg-text-dim)":"var(--vg-text)",cursor:t?"not-allowed":"pointer",opacity:t?.45:1,transition:"all var(--vg-transition)",padding:0},children:r})}function E1({left:e=!1}){return p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",style:{transform:e?"rotate(180deg)":void 0},children:p.jsx("path",{d:"M4.5 2.5L7.5 6l-3 3.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function O1({left:e=!1}){return p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",style:{transform:e?"rotate(180deg)":void 0},children:p.jsx("path",{d:"M7 2.5L4 6l3 3.5M10 2.5L7 6l3 3.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function IN(e,t){if(t<=7)return Array.from({length:t},(s,a)=>a+1);const n=[];n.push(1);const r=Math.max(2,e-1),o=Math.min(t-1,e+1);r>2&&n.push("…");for(let s=r;s<=o;s++)n.push(s);return o<t-1&&n.push("…"),n.push(t),n}function DN({engine:e,onClose:t}){const{orderedColumns:n,toggleColumnVisibility:r,pinColumn:o,showAllColumns:s,resetColumns:a}=e,[l,c]=x.useState(""),d=x.useMemo(()=>n.filter(f=>f.label.toLowerCase().includes(l.toLowerCase())),[n,l]),u=n.filter(f=>f.hidden).length;return p.jsxs("div",{style:{display:"flex",flexDirection:"column",fontFamily:'var(--vg-font, "DM Sans", sans-serif)',fontSize:"var(--vg-font-size, 12.5px)",background:"var(--vg-bg-panel, #fff)",border:"1px solid var(--vg-border-strong, #d1d5db)",borderRadius:"var(--vg-radius, 7px)",boxShadow:"var(--vg-shadow-panel, 0 8px 24px rgba(0,0,0,0.1))",overflow:"hidden",minWidth:240},children:[p.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px 8px",borderBottom:"1px solid var(--vg-border, #e5e7eb)",gap:8,flexShrink:0},children:[p.jsxs("span",{style:{fontWeight:700,fontSize:11,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--vg-text-dim, #6b7280)"},children:["Columns",u>0&&p.jsxs("span",{style:{marginLeft:6,background:"var(--vg-accent-bg, #dbeafe)",color:"var(--vg-accent-text, #1d4ed8)",borderRadius:10,padding:"1px 6px",fontSize:10},children:[u," hidden"]})]}),p.jsxs("div",{style:{display:"flex",gap:6},children:[u>0&&p.jsx("button",{onClick:s,style:{background:"none",border:"none",cursor:"pointer",fontSize:11,color:"var(--vg-accent, #2563eb)",fontWeight:600,fontFamily:"var(--vg-font, sans-serif)",padding:"2px 4px"},children:"Show all"}),p.jsx("button",{onClick:a,style:{background:"none",border:"none",cursor:"pointer",fontSize:11,color:"var(--vg-text-dim, #6b7280)",fontFamily:"var(--vg-font, sans-serif)",padding:"2px 4px"},children:"Reset"})]})]}),p.jsx("div",{style:{padding:"8px 14px",borderBottom:"1px solid var(--vg-border, #e5e7eb)",flexShrink:0},children:p.jsx("input",{value:l,onChange:f=>c(f.target.value),placeholder:"Search columns…",style:{width:"100%",padding:"5px 9px",border:"1px solid var(--vg-border-strong, #d1d5db)",borderRadius:"var(--vg-radius-sm, 4px)",background:"var(--vg-bg, #fff)",color:"var(--vg-text, #111827)",fontSize:12,outline:"none",fontFamily:"var(--vg-font, sans-serif)",boxSizing:"border-box"}})}),p.jsxs("div",{style:{overflow:"auto",flex:1,maxHeight:320},children:[d.map(f=>{var h;return p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 14px",borderBottom:"1px solid var(--vg-border, #e5e7eb)",transition:"background 0.1s"},onMouseEnter:m=>m.currentTarget.style.background="var(--vg-bg-row-hover, #f0f5ff)",onMouseLeave:m=>m.currentTarget.style.background="transparent",children:[p.jsx("input",{type:"checkbox",id:`vcm-${f.id}`,checked:!f.hidden,onChange:()=>r(f.id),style:{accentColor:"var(--vg-accent, #2563eb)",cursor:"pointer",width:13,height:13,flexShrink:0}}),p.jsx("label",{htmlFor:`vcm-${f.id}`,style:{flex:1,cursor:"pointer",color:f.hidden?"var(--vg-text-dim, #6b7280)":"var(--vg-text, #111827)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f.label}),p.jsxs("select",{value:(h=f.pinned)!=null?h:"",onChange:m=>o(f.id,m.target.value||null),style:{fontSize:11,padding:"2px 5px",background:"var(--vg-bg-btn, #f3f4f6)",color:"var(--vg-text, #111827)",border:"1px solid var(--vg-border-strong, #d1d5db)",borderRadius:"var(--vg-radius-xs, 3px)",cursor:"pointer",fontFamily:"var(--vg-font, sans-serif)",outline:"none"},children:[p.jsx("option",{value:"",children:"No pin"}),p.jsx("option",{value:"left",children:"Pin left"}),p.jsx("option",{value:"right",children:"Pin right"})]})]},f.id)}),d.length===0&&p.jsxs("div",{style:{padding:"20px 14px",textAlign:"center",fontSize:12,color:"var(--vg-text-dim, #6b7280)"},children:['No columns match "',l,'"']})]}),t&&p.jsx("div",{style:{padding:"10px 14px",borderTop:"1px solid var(--vg-border, #e5e7eb)",flexShrink:0},children:p.jsx("button",{onClick:t,style:{width:"100%",padding:"7px 12px",background:"var(--vg-accent, #2563eb)",color:"var(--vg-accent-fg, #fff)",border:"none",borderRadius:"var(--vg-radius-sm, 4px)",cursor:"pointer",fontWeight:600,fontSize:"var(--vg-font-size, 12.5px)",fontFamily:"var(--vg-font, sans-serif)"},children:"Done"})})]})}function AN(){const[e,t]=x.useState(!1),n=x.useRef(null),[r,o]=x.useState(!1),s=x.useCallback(()=>t(!0),[]),a=x.useCallback(()=>t(!1),[]),l=x.useCallback(()=>t(u=>!u),[]),c=x.useCallback(u=>{n.current=u,r||o(!0)},[r]),d=x.useCallback(({render:u,onClose:f,style:h,className:m})=>{const g=n.current;return g?u?p.jsx("div",{style:h,className:m,children:u({engine:g,close:a})}):p.jsx("div",{style:h,className:m,children:p.jsx(DN,{engine:g,onClose:f})}):null},[r,a]);return{isOpen:e,open:s,close:a,toggle:l,captureEngine:c,engine:n.current,ColumnManagerPanel:d}}function M1(e,t){return function(){return e.apply(t,arguments)}}const{toString:RN}=Object.prototype,{getPrototypeOf:Lf}=Object,{iterator:tc,toStringTag:P1}=Symbol,nc=(e=>t=>{const n=RN.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zn=e=>(e=e.toLowerCase(),t=>nc(t)===e),rc=e=>t=>typeof t===e,{isArray:Ss}=Array,Cs=rc("undefined");function ea(e){return e!==null&&!Cs(e)&&e.constructor!==null&&!Cs(e.constructor)&&yn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const j1=Zn("ArrayBuffer");function NN(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&j1(e.buffer),t}const $N=rc("string"),yn=rc("function"),I1=rc("number"),ta=e=>e!==null&&typeof e=="object",LN=e=>e===!0||e===!1,oc=e=>{if(nc(e)!=="object")return!1;const t=Lf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(P1 in e)&&!(tc in e)},BN=e=>{if(!ta(e)||ea(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},_N=Zn("Date"),FN=Zn("File"),WN=Zn("Blob"),zN=Zn("FileList"),VN=e=>ta(e)&&yn(e.pipe),HN=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||yn(e.append)&&((t=nc(e))==="formdata"||t==="object"&&yn(e.toString)&&e.toString()==="[object FormData]"))},UN=Zn("URLSearchParams"),[YN,qN,GN,KN]=["ReadableStream","Request","Response","Headers"].map(Zn),XN=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function na(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ss(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ea(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let l;for(r=0;r<a;r++)l=s[r],t.call(null,e[l],l,e)}}function D1(e,t){if(ea(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ko=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,A1=e=>!Cs(e)&&e!==ko;function Bf(){const{caseless:e,skipUndefined:t}=A1(this)&&this||{},n={},r=(o,s)=>{const a=e&&D1(n,s)||s;oc(n[a])&&oc(o)?n[a]=Bf(n[a],o):oc(o)?n[a]=Bf({},o):Ss(o)?n[a]=o.slice():(!t||!Cs(o))&&(n[a]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&na(arguments[o],r);return n}const ZN=(e,t,n,{allOwnKeys:r}={})=>(na(t,(o,s)=>{n&&yn(o)?e[s]=M1(o,n):e[s]=o},{allOwnKeys:r}),e),JN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),QN=(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)},e$=(e,t,n,r)=>{let o,s,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)a=o[s],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Lf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},t$=(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},n$=e=>{if(!e)return null;if(Ss(e))return e;let t=e.length;if(!I1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},r$=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lf(Uint8Array)),o$=(e,t)=>{const r=(e&&e[tc]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},s$=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},i$=Zn("HTMLFormElement"),a$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),R1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),l$=Zn("RegExp"),N1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};na(n,(o,s)=>{let a;(a=t(o,s,e))!==!1&&(r[s]=a||o)}),Object.defineProperties(e,r)},c$=e=>{N1(e,(t,n)=>{if(yn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(yn(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+"'")})}})},d$=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Ss(e)?r(e):r(String(e).split(t)),n},u$=()=>{},f$=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function p$(e){return!!(e&&yn(e.append)&&e[P1]==="FormData"&&e[tc])}const h$=e=>{const t=new Array(10),n=(r,o)=>{if(ta(r)){if(t.indexOf(r)>=0)return;if(ea(r))return r;if(!("toJSON"in r)){t[o]=r;const s=Ss(r)?[]:{};return na(r,(a,l)=>{const c=n(a,o+1);!Cs(c)&&(s[l]=c)}),t[o]=void 0,s}}return r};return n(e,0)},m$=Zn("AsyncFunction"),g$=e=>e&&(ta(e)||yn(e))&&yn(e.then)&&yn(e.catch),$1=((e,t)=>e?setImmediate:t?((n,r)=>(ko.addEventListener("message",({source:o,data:s})=>{o===ko&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),ko.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",yn(ko.postMessage)),y$=typeof queueMicrotask<"u"?queueMicrotask.bind(ko):typeof process<"u"&&process.nextTick||$1,Y={isArray:Ss,isArrayBuffer:j1,isBuffer:ea,isFormData:HN,isArrayBufferView:NN,isString:$N,isNumber:I1,isBoolean:LN,isObject:ta,isPlainObject:oc,isEmptyObject:BN,isReadableStream:YN,isRequest:qN,isResponse:GN,isHeaders:KN,isUndefined:Cs,isDate:_N,isFile:FN,isBlob:WN,isRegExp:l$,isFunction:yn,isStream:VN,isURLSearchParams:UN,isTypedArray:r$,isFileList:zN,forEach:na,merge:Bf,extend:ZN,trim:XN,stripBOM:JN,inherits:QN,toFlatObject:e$,kindOf:nc,kindOfTest:Zn,endsWith:t$,toArray:n$,forEachEntry:o$,matchAll:s$,isHTMLForm:i$,hasOwnProperty:R1,hasOwnProp:R1,reduceDescriptors:N1,freezeMethods:c$,toObjectSet:d$,toCamelCase:a$,noop:u$,toFiniteNumber:f$,findKey:D1,global:ko,isContextDefined:A1,isSpecCompliantForm:p$,toJSONObject:h$,isAsyncFn:m$,isThenable:g$,setImmediate:$1,asap:y$,isIterable:e=>e!=null&&yn(e[tc])};function Ze(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}Y.inherits(Ze,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:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const L1=Ze.prototype,B1={};["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=>{B1[e]={value:e}}),Object.defineProperties(Ze,B1),Object.defineProperty(L1,"isAxiosError",{value:!0}),Ze.from=(e,t,n,r,o,s)=>{const a=Object.create(L1);Y.toFlatObject(e,a,function(u){return u!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return Ze.call(a,l,c,n,r,o),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 b$=null;function _f(e){return Y.isPlainObject(e)||Y.isArray(e)}function _1(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function F1(e,t,n){return e?e.concat(t).map(function(o,s){return o=_1(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function v$(e){return Y.isArray(e)&&!e.some(_f)}const x$=Y.toFlatObject(Y,{},null,function(t){return/^is[A-Z]/.test(t)});function sc(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!Y.isUndefined(b[y])});const r=n.metaTokens,o=n.visitor||u,s=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(o))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(Y.isDate(g))return g.toISOString();if(Y.isBoolean(g))return g.toString();if(!c&&Y.isBlob(g))throw new Ze("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(g)||Y.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,y,b){let v=g;if(g&&!b&&typeof g=="object"){if(Y.endsWith(y,"{}"))y=r?y:y.slice(0,-2),g=JSON.stringify(g);else if(Y.isArray(g)&&v$(g)||(Y.isFileList(g)||Y.endsWith(y,"[]"))&&(v=Y.toArray(g)))return y=_1(y),v.forEach(function(S,C){!(Y.isUndefined(S)||S===null)&&t.append(a===!0?F1([y],C,s):a===null?y:y+"[]",d(S))}),!1}return _f(g)?!0:(t.append(F1(b,y,s),d(g)),!1)}const f=[],h=Object.assign(x$,{defaultVisitor:u,convertValue:d,isVisitable:_f});function m(g,y){if(!Y.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(g),Y.forEach(g,function(v,T){(!(Y.isUndefined(v)||v===null)&&o.call(t,v,Y.isString(T)?T.trim():T,y,h))===!0&&m(v,y?y.concat(T):[T])}),f.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return m(e),t}function W1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ff(e,t){this._pairs=[],e&&sc(e,this,t)}const z1=Ff.prototype;z1.append=function(t,n){this._pairs.push([t,n])},z1.toString=function(t){const n=t?function(r){return t.call(this,r,W1)}:W1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function w$(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function V1(e,t,n){if(!t)return e;const r=n&&n.encode||w$;Y.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(t,n):s=Y.isURLSearchParams(t)?t.toString():new Ff(t,n).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class H1{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){Y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const U1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},S$={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ff,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Wf=typeof window<"u"&&typeof document<"u",zf=typeof navigator=="object"&&navigator||void 0,C$=Wf&&(!zf||["ReactNative","NativeScript","NS"].indexOf(zf.product)<0),T$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",k$=Wf&&window.location.href||"http://localhost",tn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wf,hasStandardBrowserEnv:C$,hasStandardBrowserWebWorkerEnv:T$,navigator:zf,origin:k$},Symbol.toStringTag,{value:"Module"})),...S$};function E$(e,t){return sc(e,new tn.classes.URLSearchParams,{visitor:function(n,r,o,s){return tn.isNode&&Y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function O$(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function M$(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function Y1(e){function t(n,r,o,s){let a=n[s++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=s>=n.length;return a=!a&&Y.isArray(o)?o.length:a,c?(Y.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!l):((!o[a]||!Y.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],s)&&Y.isArray(o[a])&&(o[a]=M$(o[a])),!l)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const n={};return Y.forEachEntry(e,(r,o)=>{t(O$(r),o,n,0)}),n}return null}function P$(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ra={transitional:U1,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=Y.isObject(t);if(s&&Y.isHTMLForm(t)&&(t=new FormData(t)),Y.isFormData(t))return o?JSON.stringify(Y1(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t)||Y.isReadableStream(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return E$(t,this.formSerializer).toString();if((l=Y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return sc(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),P$(t)):t}],transformResponse:[function(t){const n=this.transitional||ra.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Y.isResponse(t)||Y.isReadableStream(t))return t;if(t&&Y.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?Ze.from(l,Ze.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tn.classes.FormData,Blob:tn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{ra.headers[e]={}});const j$=Y.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"]),I$=e=>{const t={};let n,r,o;return e&&e.split(`
251
+ `;function H9(){return p.jsx(ml,{sx:{backdropFilter:"blur(2px)",backgroundColor:"transparent",opacity:1,zIndex:e=>e.zIndex.drawer+101},open:!0,children:p.jsx(se,{sx:{width:"40px",height:"40px","--c":"no-repeat linear-gradient(#E94F1C 0 0)",background:"var(--c), var(--c), var(--c), var(--c)",backgroundSize:"21px 21px",animation:`${V9} 1.5s infinite cubic-bezier(0.3,1,0,1)`}})})}const Zl=({type:e})=>{const r=gt()?.mode==="dark"?{bgcolor:"grey.800"}:{};return{grid:p.jsxs(se,{sx:{borderRadius:2,overflow:"hidden"},children:[p.jsx(fr,{variant:"text",width:"100%",height:60,sx:r}),Array.from({length:10}).map((s,a)=>p.jsx(se,{sx:{display:"flex",alignItems:"center",padding:"0.5rem",gap:"3rem"},children:Array.from({length:5}).map((l,c)=>p.jsx(se,{sx:{flex:1},children:p.jsx(fr,{variant:"text",height:45,sx:r})},c))},a))]}),toolbar:p.jsx(p.Fragment,{children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",sx:{display:"flex",gap:"1rem"},children:[p.jsxs(Ge,{direction:"row",gap:"1rem",children:[p.jsx(fr,{variant:"text",width:"10.2rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"3.5rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"15.2rem",height:"5rem",sx:r})]}),p.jsxs(Ge,{direction:"row",gap:"1rem",children:[p.jsx(fr,{variant:"text",width:"10.2rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"3.5rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"3.5rem",height:"5rem",sx:r})]})]})}),cell:p.jsx(p.Fragment,{children:p.jsx(fr,{variant:"text",width:"7rem",height:"3rem",sx:r})})}[e]};function U9({...e}){return p.jsx(Gt,{children:p.jsx(Zl,{...e})})}const Rf=x.createContext(null),u1=x.createContext(null);function f1({children:e}){const[t,n]=x.useReducer(Y9,q9);return p.jsx(Rf.Provider,{value:t,children:p.jsx(u1.Provider,{value:n,children:e})})}function Y9(e,t){switch(t.type){case Ve.LOADING:return{...e,loading:t.loading};case Ve.SUCCESS:return{...e,data:t.data?.sort((n,r)=>new Date(r.createdAt)-new Date(n.createdAt))};case Ve.MARK_ALL_AS_READ:return{...e,isMarkAllAsRead:t.isMarkAllAsRead};case Ve.SET_ACTIVE_TAB:return{...e,activeTab:t.activeTab};case Ve.SET_MODE:return{...e,mode:t.mode};case Ve.ERROR:return{...e,error:t.error};default:throw new Error(`${yr.UNHANDLED}: ${t}`)}}const q9={loading:!1,data:[],error:"",isMarkAllAsRead:{count:0,boo:!1},mode:!1,activeTab:0},p1=({parentProps:e,childProps:t})=>{const n=gt();return p.jsxs(Ge,{sx:{background:n.palette.primary.notifyBackground,border:`0.1rem solid ${n.palette.primary.notifyBorderColor}`,borderRadius:"1rem",position:"relative",overflow:"hidden"},children:[p.jsx(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{maxHeight:"10rem",p:"1.5rem",cursor:"pointer",zIndex:4},onClick:t.toggleExpand,children:e.content}),p.jsx(Zr.div,{layout:!0,initial:{opacity:0,maxHeight:0},animate:{opacity:t.isExpanded?1:0,maxHeight:t.isExpanded?"50rem":0},transition:{duration:.5,ease:"easeInOut"},style:{background:n.palette.primary.notifyBackground,overflow:"hidden",display:"flex",flexDirection:"column",width:"100%"},children:p.jsx(se,{sx:{p:"1rem"},children:t.content})})]})};p1.propTypes={parentProps:i.object.isRequired,childProps:i.object.isRequired};const h1=({accordionProps:e})=>p.jsx(Gt,{children:p.jsx(f1,{children:p.jsx(p1,{...e})})});h1.propTypes={accordionProps:i.object.isRequired};function Nf({children:e,handleClose:t,open:n,isMainDialog:r}){return p.jsx(Rd,{open:n,onClose:t,scroll:r?"paper":void 0,fullWidth:!r,maxWidth:r?void 0:"md",PaperProps:{sx:r?{position:"fixed",top:30,right:30,m:0,width:400,height:450,display:"flex",flexDirection:"column",borderRadius:2,boxShadow:6,backgroundColor:o=>o.palette.primary.notifyBackground}:{minHeight:250,maxHeight:500,borderRadius:"1.5rem",boxShadow:6,backgroundColor:o=>o.palette.primary.appBackground}},children:e})}function G9({children:e,...t}){return p.jsx(Gt,{children:p.jsx(Nf,{...t,children:e})})}const K9=({rightChild:e,leftChild:t,isDrawerMerged:n,isDrawerOpen:r,drawerTitle:o,showExpand:s,onCloseClick:a,onMergeClick:l,onExpandClick:c,isDrawerExpanded:d,styles:u,showMerge:f,isCloseVisible:h=!0})=>{const m=gt();return p.jsx(se,{sx:{position:"relative",overflow:"hidden"},children:p.jsxs(yi,{container:!0,sx:{height:"100%"},children:[p.jsx(yi,{item:!0,sx:{width:n?u?.drawerWidth?`calc(${"100%"-u?.drawerWidth})`:"75%":"100%",position:"relative",zIndex:3,height:"calc(100vh - 7rem)",p:"0rem 1.5rem",overflow:"auto"},children:t}),r&&!n&&p.jsx(p.Fragment,{children:p.jsx(se,{onClick:a,sx:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#07080B80",backdropFilter:"blur(3px)",zIndex:3,transition:"opacity 0.3s ease-in-out"}})}),e&&p.jsxs(yi,{item:!0,sx:{width:d?"90%":u?.drawerWidth||"25%",position:n?"relative":"absolute",top:0,right:0,height:"calc(100vh - 7rem)",backgroundColor:m.palette.primary.notifyBackground,transform:r?"translateX(0)":"translateX(100%)",transition:"transform 0.4s ease-in-out , width 0.4s ease-in-out",zIndex:4,borderLeft:`0.1rem solid ${m.palette.primary.notifyBorderColor}`,display:"flex",flexDirection:"column"},children:[p.jsxs(Ge,{direction:"row",alignItems:"center",sx:{width:"100%",flexShrink:0,paddingBottom:"0.8rem",px:2,pt:"0.8rem",borderBottom:g=>`0.1rem solid ${g.palette.primary.notifyBorderColor}`},children:[!d&&f&&p.jsxs(p.Fragment,{children:[p.jsx(se,{component:"img",src:Xe.Merge,sx:{display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},onClick:l}),p.jsx(ts,{orientation:"vertical",flexItem:!0,sx:{mx:"1rem",height:"auto!important",borderColor:m.palette.primary.notifyBorderColor}})]}),p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",flexGrow:1,children:[p.jsxs(Ge,{direction:"row",gap:"0.5rem",alignItems:"center",sx:{cursor:"pointer"},children:[h&&p.jsx(se,{onClick:a,children:p.jsx(Vt,{url:Xe.CrossLight})}),p.jsx(pt,{sx:{fontSize:"1.2rem",color:m.palette.primary.notifyTextColor},children:o})]}),p.jsx(Ge,{direction:"row",gap:"0.5rem",alignItems:"center",children:s&&p.jsx(se,{onClick:c,sx:{cursor:"pointer"},children:p.jsx(se,{component:"img",src:d?Xe.Collapse:Xe.Expand})})})]})]}),p.jsx(se,{sx:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},overflow:"auto",px:2},children:e})]})]})})},m1=({layoutChildren:e,layoutProps:t})=>p.jsx(Gt,{children:p.jsx(K9,{...e,...t})});m1.propTypes={layoutChildren:i.object.isRequired,layoutProps:i.object.isRequired};const $f=({list:e,handleLinkClick:t})=>{const n=gt(),{t:r}=x.useContext(an),o=({list:s})=>s?.sort((a,l)=>a.order-l.order)?.map((a,l)=>a?.link?p.jsx(mo,{component:"h3",sx:{fontSize:"1rem",cursor:"pointer",color:l===s?.length-1?n.palette.brandColor.orange:n.palette.primary.notifyTextColor},href:a?.link,underline:"hover",onClick:()=>t(a),children:r(a?.title)},l):p.jsx(pt,{component:"h3",sx:{fontSize:"1rem",color:l===s?.length-1?n.palette.brandColor.orange:n.palette.primary.notifyTextColor},children:r(a?.title)},l));return p.jsx(rg,{separator:p.jsx(Vt,{url:Xe.ArrowRight}),children:o({list:e})})};$f.propTypes={list:i.array.isRequired,handleLinkClick:i.func};function X9({...e}){return p.jsx(Gt,{children:p.jsx($f,{...e})})}const g1=({breadcrumbProps:e,switchProps:t,filterComponentProps:n,metaDataProps:r})=>{const o=gt(),{t:s}=x.useContext(an),a=n?.filterBtnProps?.disabled;return p.jsxs(p.Fragment,{children:[p.jsxs(Ge,{sx:{background:o.palette.primary.notifyBackground,borderBottom:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,height:"3rem",p:"0px 1.5rem 0 1.5rem",zIndex:4,position:"relative"},direction:"row",justifyContent:"space-between",alignItems:"center",children:[p.jsx($f,{...e}),p.jsxs(Ge,{direction:"row",gap:"1rem",alignItems:"center",children:[r,t&&p.jsx(gv,{...t}),n?.filterBtnProps&&p.jsxs(Ge,{direction:"row",children:[p.jsx(ts,{orientation:"vertical",flexItem:!0,sx:{mx:"1rem",height:"2rem!important",opacity:"1!important",borderColor:o.palette.primary.notifyBorderColor}}),p.jsxs(Ge,{direction:"row",alignItems:"center",gap:"0.5rem",onClick:n?.filterBtnProps?.onFilterClick,sx:{opacity:a?.5:1,cursor:a?"not-allowed":"pointer"},children:[p.jsx(Vt,{url:Xe.Filter}),p.jsx(pt,{sx:{fontSize:"1.1rem",color:o.palette.primary.notifyActiveText},children:s(n?.filterBtnProps?.label)})]})]})]})]}),p.jsx(Zr.div,{layout:!0,initial:{height:"0rem"},animate:{height:n?.filterBtnProps?.filterContainerVisible?"5rem":"0rem",opacity:n?.filterBtnProps?.filterContainerVisible?1:0},transition:{duration:.5,ease:"easeInOut"},style:{background:o.palette.primary.notifyBackground,borderBottom:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,padding:"0px 5.5rem 0 1.5rem",position:"relative",alignItems:"center",display:"flex",overflow:"hidden",width:n?.filterContainerProps?.isSideDrawerOpen?"75%":"100%"},children:p.jsxs(Ge,{sx:{background:o.palette.primary.appBackground,height:"3.8rem",p:"0 2rem",width:"100%",borderRadius:"0.7rem",overflow:"visible"},direction:"row",alignItems:"center",children:[p.jsxs(pt,{sx:{fontSize:"1.2rem",fontWeight:"500",color:o.palette.primary.notifyActiveText},children:[n?.labels?.description||s("Filters")," :"]}),p.jsx(se,{sx:{overflowX:"auto",overflowY:"visible",whiteSpace:"nowrap",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},margin:"0 1rem",padding:"0.5rem 0",flexGrow:1},children:p.jsx(Ge,{direction:"row",gap:"1.2rem",sx:{overflow:"visible"},children:n?.filterItems?.map((l,c)=>p.jsx(p.Fragment,{children:p.jsxs(se,{sx:{position:"relative",overflow:"visible",border:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,background:o.palette.primary.notifyBackground,borderRadius:"0.6rem",padding:"0.3rem 1.1rem",display:"inline-block"},children:[p.jsx(se,{component:"img",src:Xe.FilterClose,sx:{position:"absolute",top:"-0.4rem",right:"-0.6rem",cursor:"pointer"},onClick:()=>n?.onFilterChipClose(l)}),p.jsx(pt,{sx:{fontSize:"1rem",color:o.palette.primary.notifyTextColor},children:l?.filterLabel})]},c)}))})}),p.jsx(se,{component:pt,sx:{fontSize:"1.1rem",fontWeight:"500",textDecoration:"underline",color:o.palette.brandColor.red,cursor:"pointer"},onClick:n?.filterContainerProps?.onClearClick,children:n?.labels?.button||s("Clear")})]})})]})};g1.propTypes={breadcrumbProps:i.object.isRequired,switchProps:i.object};function y1({headerProps:e}){return p.jsx(Gt,{children:p.jsx(g1,{...e})})}y1.propTypes={headerProps:i.object.isRequired};function Z9(e){return"children"in e&&Array.isArray(e.children)}const J9=120,Q9=40,eN=1/0;function b1(e,t,n){return Math.max(t,Math.min(n,e))}function tN(e,t){switch(t.type){case"RESIZE":{const n=e.colMap[t.id];if(!n)return e;const r=b1(n.width+t.delta,n.minWidth,n.maxWidth);return r===n.width?e:{...e,colMap:{...e.colMap,[t.id]:{...n,width:r}}}}case"SET_WIDTH":{const n=e.colMap[t.id];if(!n)return e;const r=b1(t.width,n.minWidth,n.maxWidth);return{...e,colMap:{...e.colMap,[t.id]:{...n,width:r}}}}case"PIN":{const n=e.colMap[t.id];return!n||n.pinned===t.side?e:{...e,colMap:{...e.colMap,[t.id]:{...n,pinned:t.side}}}}case"TOGGLE_HIDDEN":{const n=e.colMap[t.id];return n?{...e,colMap:{...e.colMap,[t.id]:{...n,hidden:!n.hidden}}}:e}case"SHOW_ALL":{const n={...e.colMap};for(const r of Object.keys(n)){const o=n[r];o?.hidden&&(n[r]={...o,hidden:!1})}return{...e,colMap:n}}case"MOVE_BEFORE":{const{sourceId:n,targetId:r}=t,o=[...e.colOrder],s=o.indexOf(n),a=o.indexOf(r);if(s===-1||a===-1||s===a)return e;o.splice(s,1);const l=o.indexOf(r);return o.splice(l,0,n),{...e,colOrder:o}}case"MOVE_LAST":{const n=[...e.colOrder],r=n.indexOf(t.sourceId);return r===-1||r===n.length-1?e:(n.splice(r,1),n.push(t.sourceId),{...e,colOrder:n})}case"TOGGLE_SORT":{const{sort:n}=e;let r="asc";if(n.columnId===t.id)if(n.direction==="asc")r="desc";else return{...e,sort:{columnId:null,direction:"asc"}};return{...e,sort:{columnId:t.id,direction:r}}}case"RESET":return t.initial;default:return e}}function v1(e){const t=[],n=[];return e.forEach((r,o)=>{Z9(r)?(n.push(r),r.children.forEach(s=>{t.push({...s,groupId:r.id,defIndex:o})})):t.push({...r,groupId:null,defIndex:o})}),{leaves:t,groups:n}}function nN(e){var t,n,r,o,s;const{leaves:a,groups:l}=v1(e),c={},d=[];for(const u of a)d.push(u.id),c[u.id]={width:(t=u.width)!=null?t:J9,minWidth:(n=u.minWidth)!=null?n:Q9,maxWidth:(r=u.maxWidth)!=null?r:eN,pinned:(o=u.pinned)!=null?o:null,hidden:(s=u.hidden)!=null?s:!1};return{internal:{colMap:c,colOrder:d,sort:{columnId:null,direction:"asc"}},leaves:a,groups:l}}function rN(e){const{initial:t}=x.useMemo(()=>({initial:nN(e).internal}),[]),{leaves:n,groups:r}=x.useMemo(()=>v1(e),[e]),[o,s]=x.useReducer(tN,t),a=x.useMemo(()=>o.colOrder.flatMap(j=>{var A,L,E,N,P;const $=n.find(V=>V.id===j),R=o.colMap[j];return!$||!R?[]:[{id:$.id,label:$.label,field:$.field,accessor:$.accessor,renderCell:$.renderCell,deferRender:$.deferRender,renderHeader:$.renderHeader,cellStyle:$.cellStyle,headerStyle:$.headerStyle,align:(A=$.align)!=null?A:"left",sortable:(L=$.sortable)!=null?L:!0,resizable:(E=$.resizable)!=null?E:!0,draggable:(N=$.draggable)!=null?N:!0,hideable:(P=$.hideable)!=null?P:!0,groupId:$.groupId,defIndex:$.defIndex,width:R.width,minWidth:R.minWidth,maxWidth:R.maxWidth,pinned:R.pinned,hidden:R.hidden}]}),[o.colOrder,o.colMap,n]),l=x.useMemo(()=>a.filter(j=>!j.hidden),[a]),c=x.useMemo(()=>l.filter(j=>j.pinned==="left"),[l]),d=x.useMemo(()=>l.filter(j=>j.pinned==="right"),[l]),u=x.useMemo(()=>l.filter(j=>!j.pinned),[l]),f=x.useMemo(()=>c.reduce((j,A)=>j+A.width,0),[c]),h=x.useMemo(()=>d.reduce((j,A)=>j+A.width,0),[d]),m=x.useMemo(()=>u.reduce((j,A)=>j+A.width,0),[u]),g=x.useCallback((j,A)=>s({type:"RESIZE",id:j,delta:A}),[]),y=x.useCallback((j,A)=>s({type:"SET_WIDTH",id:j,width:A}),[]),b=x.useCallback((j,A)=>s({type:"PIN",id:j,side:A}),[]),v=x.useCallback(j=>s({type:"TOGGLE_HIDDEN",id:j}),[]),k=x.useCallback(()=>s({type:"SHOW_ALL"}),[]),S=x.useCallback((j,A)=>s({type:"MOVE_BEFORE",sourceId:j,targetId:A}),[]),C=x.useCallback(j=>s({type:"MOVE_LAST",sourceId:j}),[]),w=x.useCallback(j=>s({type:"TOGGLE_SORT",id:j}),[]),T=x.useCallback(()=>s({type:"RESET",initial:t}),[t]);return{...{orderedColumns:a,visibleColumns:l,pinnedLeftColumns:c,pinnedRightColumns:d,scrollableColumns:u,pinnedLeftWidth:f,pinnedRightWidth:h,scrollableWidth:m,sortState:o.sort,groups:r,hasGroups:r.length>0},...{resizeColumn:g,setColumnWidth:y,pinColumn:b,toggleColumnVisibility:v,showAllColumns:k,moveColumnBefore:S,moveColumnToEnd:C,toggleSort:w,resetColumns:T}}}const x1=16,w1=1e3;function oN(e,t,n,r){if(e===0||r<=0)return{startIndex:0,endIndex:-1,totalHeight:e*t,offsetY:0};const o=e*t,s=Math.floor(n/t),a=Math.max(0,s-x1),l=Math.ceil(r/t),c=Math.min(e-1,s+l+x1);return{startIndex:a,endIndex:c,totalHeight:o,offsetY:a*t}}function sN(e,t,n,r){var o,s,a;const l=e.length;if(l===0)return{startIndex:0,endIndex:-1};const c=Math.max(0,n-w1),d=n+r+w1;let u=0,f=l-1;for(;u<f;){const g=u+f>>>1;((o=e[g])!=null?o:0)+((s=t[g])!=null?s:0)<=c?u=g+1:f=g}const h=u;let m=h;for(;m<l-1&&((a=e[m+1])!=null?a:0)<d;)m++;return{startIndex:h,endIndex:Math.min(l-1,m)}}function iN(e){var t,n;const r=new Array(e.length);let o=0;for(let s=0;s<e.length;s++)r[s]=o,o+=(n=(t=e[s])==null?void 0:t.width)!=null?n:0;return r}function aN({onResize:e,onResizeEnd:t,getCurrentWidth:n}){const r=x.useRef(0),o=x.useRef("");return{startResize:x.useCallback((a,l)=>{a.preventDefault(),a.stopPropagation(),r.current=a.clientX,o.current=l;const c=u=>{const f=u.clientX-r.current;r.current=u.clientX,e(o.current,f)},d=()=>{window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",d),document.body.style.cursor="",document.body.style.userSelect="",t?.(o.current,n(o.current))};document.body.style.cursor="col-resize",document.body.style.userSelect="none",window.addEventListener("mousemove",c),window.addEventListener("mouseup",d)},[e,t,n])}}const S1=4,C1={draggingId:null,overTargetId:null};function lN({onMoveColumnBefore:e,onMoveColumnToEnd:t,columns:n,getColumnViewportBounds:r}){const[o,s]=x.useState(C1),a=x.useRef(n);a.current=n;const l=x.useRef(r);l.current=r;const c=x.useRef(null),d=x.useRef(null),u=x.useRef(!1),f=x.useRef(0),h=x.useCallback(k=>{c.current=k},[]),m=x.useCallback(k=>{d.current=k,k&&(k.style.display="none")},[]);x.useLayoutEffect(()=>{o.draggingId&&c.current&&(c.current.style.left=`${f.current}px`)},[o.draggingId]);const g=x.useCallback(k=>{var S,C;const w=a.current,T=w.findIndex(E=>E.id===k);if(T===-1)return{ids:new Set([k]),afterId:null};const O=w[T];let M=T,j=T;for(let E=T-1;E>=0;E--){const N=w[E];if(!N.draggable||N.groupId!==O.groupId||N.pinned!==O.pinned)break;M=E}for(let E=T+1;E<w.length;E++){const N=w[E];if(!N.draggable||N.groupId!==O.groupId||N.pinned!==O.pinned)break;j=E}const A=new Set(w.slice(M,j+1).map(E=>E.id)),L=(C=(S=w[j+1])==null?void 0:S.id)!=null?C:null;return{ids:A,afterId:L}},[]),y=x.useCallback((k,S)=>{const{ids:C,afterId:w}=g(S),T=l.current,O=[];for(const j of C){if(j===S)continue;const A=T(j);A&&O.push({id:j,left:A.left,right:A.right,mid:(A.left+A.right)/2})}O.sort((j,A)=>j.left-A.left);for(const j of O)if(k<=j.mid)return{id:j.id,lineX:j.left,afterId:w};const M=O[O.length-1];return M?{id:null,lineX:M.right,afterId:w}:{id:null,lineX:null,afterId:w}},[g]),b=x.useCallback(k=>({onPointerDown:S=>{if(S.button!==0)return;S.preventDefault();const C=S.clientX,w=S.clientY;let T=!1,O=0,M=0,j=null,A=null;const L=()=>{if(!j)return;const P=j;j=null;const{id:$,lineX:R}=y(P.clientX,k);c.current&&(c.current.style.left=`${P.clientX-O}px`),d.current&&(R!==null?(d.current.style.left=`${R-1}px`,d.current.style.display="block"):d.current.style.display="none"),$!==A&&(A=$,s(W=>W.overTargetId===$?W:{...W,overTargetId:$}))},E=P=>{if(!T){if(Math.abs(P.clientX-C)<S1&&Math.abs(P.clientY-w)<S1)return;T=!0;const $=l.current(k);$&&(O=C-$.left),f.current=C-O;const{id:R}=y(C,k);A=R,s({draggingId:k,overTargetId:R}),document.body.style.cursor="grabbing",document.body.style.userSelect="none";return}j=P,M||(M=requestAnimationFrame(()=>{M=0,L()}))},N=P=>{if(document.removeEventListener("pointermove",E),document.removeEventListener("pointerup",N),M&&cancelAnimationFrame(M),document.body.style.cursor="",document.body.style.userSelect="",T){const{id:$,afterId:R}=y(P.clientX,k);$!==null&&$!==k?e(k,$):$===null&&(R!==null?e(k,R):t?.(k)),u.current=!0,setTimeout(()=>{u.current=!1},0)}s(C1)};document.addEventListener("pointermove",E),document.addEventListener("pointerup",N)}}),[e,t,y]),v=x.useCallback(()=>u.current?(u.current=!1,!0):!1,[]);return{getDragHandlers:b,dragState:o,registerGhost:h,registerIndicator:m,consumeDragEnd:v}}const T1=x.createContext(null),cN=T1.Provider;function ws(){const e=x.useContext(T1);if(!e)throw new Error("[LatticeGrid] useGridContext must be inside a <LatticeGrid>.");return e}const Qi={"--vg-font":"'DM Sans', 'Segoe UI', system-ui, sans-serif","--vg-font-mono":"'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace","--vg-font-size":"12.5px","--vg-line-height":"1.45","--vg-row-height":"36px","--vg-header-height":"38px","--vg-group-height":"28px","--vg-radius":"7px","--vg-radius-sm":"4px","--vg-radius-xs":"3px","--vg-transition":"0.12s ease","--vg-z-pinned":"3","--vg-z-header":"4","--vg-z-panel":"100","--vg-scrollbar-width":"6px"},Jl={light:{...Qi,"--vg-bg":"#ffffff","--vg-bg-header":"#f7f8fa","--vg-bg-group":"#f0f2f6","--vg-bg-row-alt":"#fafbfc","--vg-bg-row-hover":"#f0f5ff","--vg-bg-row-selected":"#e8efff","--vg-bg-pinned":"#ffffff","--vg-bg-frozen":"#eff6ff","--vg-bg-toolbar":"#ffffff","--vg-bg-panel":"#ffffff","--vg-bg-btn":"#f3f4f6","--vg-bg-btn-hover":"#e9eaec","--vg-bg-btn-active":"#dbeafe","--vg-bg-tag":"#f0f2f6","--vg-bg-input":"#ffffff","--vg-text":"#111827","--vg-text-dim":"#6b7280","--vg-text-header":"#374151","--vg-text-group":"#1e2939","--vg-text-placeholder":"#9ca3af","--vg-border":"#e5e7eb","--vg-border-strong":"#d1d5db","--vg-border-focus":"#2563eb","--vg-accent":"#2563eb","--vg-accent-hover":"#1d4ed8","--vg-accent-bg":"#dbeafe","--vg-accent-text":"#1d4ed8","--vg-accent-fg":"#ffffff","--vg-shadow-pin":"4px 0 12px rgba(0,0,0,0.06)","--vg-shadow-panel":"0 8px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06)","--vg-scrollbar-track":"#f1f3f5","--vg-scrollbar-thumb":"#d1d5db","--vg-sort-icon":"#9ca3af","--vg-sort-active":"#2563eb","--vg-resize-hover":"#2563eb","--vg-drag-indicator":"#2563eb"},dark:{...Qi,"--vg-bg":"#0d1117","--vg-bg-header":"#161c28","--vg-bg-group":"#1a2235","--vg-bg-row-alt":"#111620","--vg-bg-row-hover":"#1c2438","--vg-bg-row-selected":"#1a3558","--vg-bg-pinned":"#0d1117","--vg-bg-frozen":"#0f2040","--vg-bg-toolbar":"#161c28","--vg-bg-panel":"#161c28","--vg-bg-btn":"#1c2438","--vg-bg-btn-hover":"#242e48","--vg-bg-btn-active":"#1e3558","--vg-bg-tag":"#1c2438","--vg-bg-input":"#1c2438","--vg-text":"#e2e8f4","--vg-text-dim":"#8896b4","--vg-text-header":"#b4c0d8","--vg-text-group":"#d0daf0","--vg-text-placeholder":"#4a5670","--vg-border":"#1e2840","--vg-border-strong":"#283550","--vg-border-focus":"#3b82f6","--vg-accent":"#3b82f6","--vg-accent-hover":"#60a5fa","--vg-accent-bg":"#1e3558","--vg-accent-text":"#93c5fd","--vg-accent-fg":"#ffffff","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.4)","--vg-shadow-panel":"0 8px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3)","--vg-scrollbar-track":"#161c28","--vg-scrollbar-thumb":"#283550","--vg-sort-icon":"#3a4a68","--vg-sort-active":"#3b82f6","--vg-resize-hover":"#3b82f6","--vg-drag-indicator":"#3b82f6"},ocean:{...Qi,"--vg-bg":"#081425","--vg-bg-header":"#0c1e38","--vg-bg-group":"#0f2444","--vg-bg-row-alt":"#0a1830","--vg-bg-row-hover":"#112440","--vg-bg-row-selected":"#0e2c58","--vg-bg-pinned":"#081425","--vg-bg-frozen":"#051830","--vg-bg-toolbar":"#0c1e38","--vg-bg-panel":"#0c1e38","--vg-bg-btn":"#0f2444","--vg-bg-btn-hover":"#163058","--vg-bg-btn-active":"#0e2c58","--vg-bg-tag":"#0f2444","--vg-bg-input":"#0f2444","--vg-text":"#b8d4f8","--vg-text-dim":"#3c6080","--vg-text-header":"#6aabf0","--vg-text-group":"#9ccaf0","--vg-text-placeholder":"#2a4860","--vg-border":"#0f2444","--vg-border-strong":"#163058","--vg-border-focus":"#0e9eff","--vg-accent":"#0e9eff","--vg-accent-hover":"#40b6ff","--vg-accent-bg":"#0e2c58","--vg-accent-text":"#7dd0ff","--vg-accent-fg":"#ffffff","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.5)","--vg-shadow-panel":"0 8px 40px rgba(0,10,30,0.7)","--vg-scrollbar-track":"#0c1e38","--vg-scrollbar-thumb":"#163058","--vg-sort-icon":"#1a4070","--vg-sort-active":"#0e9eff","--vg-resize-hover":"#0e9eff","--vg-drag-indicator":"#0e9eff"},forest:{...Qi,"--vg-bg":"#0a140c","--vg-bg-header":"#0f1e12","--vg-bg-group":"#132418","--vg-bg-row-alt":"#0c1810","--vg-bg-row-hover":"#162c1c","--vg-bg-row-selected":"#143a1a","--vg-bg-pinned":"#0a140c","--vg-bg-frozen":"#0a1f0a","--vg-bg-toolbar":"#0f1e12","--vg-bg-panel":"#0f1e12","--vg-bg-btn":"#132418","--vg-bg-btn-hover":"#1e3828","--vg-bg-btn-active":"#143a1a","--vg-bg-tag":"#132418","--vg-bg-input":"#132418","--vg-text":"#b8d8a8","--vg-text-dim":"#406840","--vg-text-header":"#72b860","--vg-text-group":"#98c888","--vg-text-placeholder":"#284828","--vg-border":"#132418","--vg-border-strong":"#1e3828","--vg-border-focus":"#4ade80","--vg-accent":"#4ade80","--vg-accent-hover":"#86efac","--vg-accent-bg":"#143a1a","--vg-accent-text":"#86efac","--vg-accent-fg":"#0a140c","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.5)","--vg-shadow-panel":"0 8px 40px rgba(0,10,0,0.7)","--vg-scrollbar-track":"#0f1e12","--vg-scrollbar-thumb":"#1e3828","--vg-sort-icon":"#204020","--vg-sort-active":"#4ade80","--vg-resize-hover":"#4ade80","--vg-drag-indicator":"#4ade80"},sunset:{...Qi,"--vg-bg":"#160a04","--vg-bg-header":"#221008","--vg-bg-group":"#2e160c","--vg-bg-row-alt":"#1c0e06","--vg-bg-row-hover":"#2e1a0c","--vg-bg-row-selected":"#3a1a08","--vg-bg-pinned":"#160a04","--vg-bg-frozen":"#1f0d04","--vg-bg-toolbar":"#221008","--vg-bg-panel":"#221008","--vg-bg-btn":"#2e160c","--vg-bg-btn-hover":"#3e2018","--vg-bg-btn-active":"#3a1a08","--vg-bg-tag":"#2e160c","--vg-bg-input":"#2e160c","--vg-text":"#f0c8a0","--vg-text-dim":"#805030","--vg-text-header":"#e09060","--vg-text-group":"#f0a870","--vg-text-placeholder":"#503020","--vg-border":"#2e160c","--vg-border-strong":"#3e2018","--vg-border-focus":"#fb923c","--vg-accent":"#fb923c","--vg-accent-hover":"#fdba74","--vg-accent-bg":"#3a1a08","--vg-accent-text":"#fdba74","--vg-accent-fg":"#160a04","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.5)","--vg-shadow-panel":"0 8px 40px rgba(20,0,0,0.7)","--vg-scrollbar-track":"#221008","--vg-scrollbar-thumb":"#3e2018","--vg-sort-icon":"#50280c","--vg-sort-active":"#fb923c","--vg-resize-hover":"#fb923c","--vg-drag-indicator":"#fb923c"}};function dN(e){var t;return!e||e==="light"?Jl.light:typeof e=="string"?(t=Jl[e])!=null?t:Jl.light:{...Jl.light,...e}}function OB(e){return e}function uN({direction:e,active:t}){return p.jsxs("span",{style:{display:"inline-flex",flexDirection:"column",gap:1,marginLeft:3,opacity:t?1:.3,flexShrink:0,color:t?"var(--vg-sort-active)":"var(--vg-sort-icon)",transition:"opacity var(--vg-transition)"},children:[p.jsx("svg",{width:"7",height:"5",viewBox:"0 0 7 5",children:p.jsx("path",{d:"M3.5 0L7 5H0z",fill:"currentColor",opacity:t&&e==="asc"?1:.35})}),p.jsx("svg",{width:"7",height:"5",viewBox:"0 0 7 5",children:p.jsx("path",{d:"M3.5 5L0 0h7z",fill:"currentColor",opacity:t&&e==="desc"?1:.35})})]})}function fN(){return p.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",children:p.jsx("path",{d:"M1 1l6 6M7 1L1 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}const To=x.memo(function({column:t,style:n,showResizeHandle:r=!0,isFirst:o=!1,isLast:s=!1}){var a,l;const{engine:c,dragHandlers:d,startResize:u,features:f,icons:h,styles:m,classNames:g}=ws(),{sortState:y,toggleSort:b,toggleColumnVisibility:v}=c,{getDragHandlers:k,dragState:S,consumeDragEnd:C}=d,[w,T]=x.useState(!1),O=y.columnId===t.id,M=S.draggingId===t.id,j=S.overTargetId===t.id,A=t.sortable&&f.sort,L=t.resizable&&f.resize,E=t.draggable&&f.reorder,N=t.hideable&&f.columnHide,P=E?k(t.id):{},$=D=>{C()||D.target.closest("[data-vg-hide]")||A&&b(t.id)},R=D=>{D.stopPropagation(),v(t.id)},W=D=>{D.stopPropagation(),D.preventDefault(),u(D,t.id)},V=j?"var(--vg-accent-bg)":w?"var(--vg-bg-row-hover)":"var(--vg-bg-header)",H=o?"1px solid var(--vg-border)":void 0;return p.jsxs("div",{role:"columnheader","aria-sort":O?y.direction==="asc"?"ascending":"descending":"none",className:(a=g.headerCell)!=null?a:void 0,...P,onClick:$,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),style:{...n,position:"absolute",display:"flex",alignItems:"center",justifyContent:t.align==="center"?"center":t.align==="right"?"flex-end":"flex-start",padding:"0 8px",fontWeight:600,fontSize:"var(--vg-font-size)",color:"var(--vg-text-header)",background:V,borderLeft:H,borderRight:"1px solid var(--vg-border)",borderBottom:"1px solid var(--vg-border)",cursor:A?"pointer":E?"grab":"default",userSelect:"none",opacity:M?.45:1,boxSizing:"border-box",overflow:"visible",whiteSpace:"nowrap",transition:"background var(--vg-transition)",outline:"none",...t.headerStyle,...m.headerCell,...t.groupId?m.groupHeaderCell:{}},children:[p.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:t.align},children:t.renderHeader?t.renderHeader(t,c):t.label}),A&&(()=>{if(O){const D=y.direction==="asc"?h.sortAsc:h.sortDesc;if(D)return p.jsx("span",{style:{marginLeft:3,flexShrink:0},children:D})}else if(h.sortNone)return p.jsx("span",{style:{marginLeft:3,flexShrink:0,opacity:.3},children:h.sortNone});return p.jsx(uN,{direction:y.direction,active:O})})(),N&&p.jsx("span",{"data-vg-hide":"",role:"button","aria-label":"Hide column",title:"Hide column",onClick:R,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:14,height:14,borderRadius:3,marginLeft:3,flexShrink:0,cursor:"pointer",opacity:w?.7:0,pointerEvents:w?"auto":"none",background:"transparent",color:"var(--vg-text-dim)",transition:"opacity 0.12s",userSelect:"none"},onMouseEnter:D=>{D.currentTarget.style.opacity="1",D.currentTarget.style.background="var(--vg-border-strong)"},onMouseLeave:D=>{D.currentTarget.style.opacity=w?"0.7":"0",D.currentTarget.style.background="transparent"},children:(l=h.hideColumn)!=null?l:p.jsx(fN,{})}),r&&L&&p.jsx("div",{"aria-hidden":"true","data-resize-handle":"",onPointerDown:D=>D.stopPropagation(),onMouseDown:W,onClick:D=>D.stopPropagation(),style:{position:"absolute",right:-4,top:0,width:8,height:"100%",borderRadius:2,cursor:"col-resize",background:"transparent",zIndex:3,transition:"background var(--vg-transition)"},onMouseEnter:D=>D.currentTarget.style.background="var(--vg-resize-hover)",onMouseLeave:D=>D.currentTarget.style.background="transparent"})]})});if(typeof document<"u"){const e="vg-shimmer-keyframes";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.textContent="@keyframes vg-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}",document.head.appendChild(t)}}function pN(e,t){return e.column===t.column&&e.row===t.row&&e.pinned===t.pinned&&e.isScrolling===t.isScrolling&&e.style.left===t.style.left&&e.style.top===t.style.top&&e.style.width===t.style.width&&e.style.height===t.style.height&&e.style.background===t.style.background&&e.style.zIndex===t.style.zIndex}function hN(){return p.jsx("div",{style:{width:"60%",height:10,borderRadius:4,background:"linear-gradient(90deg, var(--vg-border) 25%, var(--vg-bg-row-hover) 50%, var(--vg-border) 75%)",backgroundSize:"200% 100%",animation:"vg-shimmer 1.2s infinite linear"}})}const Ql=x.memo(function({column:t,row:n,style:r,pinned:o=!1,isScrolling:s=!1,loadingCell:a}){var l,c;const{styles:d,classNames:u}=ws();if(s&&t.deferRender&&t.renderCell)return p.jsx("div",{style:{...r,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 10px",boxSizing:"border-box",overflow:"hidden"},children:a??p.jsx(hN,{})});const f=t.accessor?t.accessor(n):n[(l=t.field)!=null?l:t.id],h=t.renderCell?t.renderCell(f,n):f??"—",m=t.align==="center"?"center":t.align==="right"?"flex-end":"flex-start",g=o?d.pinnedCell:d.cell,{background:y,backgroundColor:b,...v}=g??{},{background:k,backgroundColor:S,...C}=(c=t.cellStyle)!=null?c:{};return p.jsx("div",{className:[u.cell,o?u.pinnedCell:void 0].filter(Boolean).join(" ")||void 0,onClick:t.renderCell?w=>w.stopPropagation():void 0,style:{...r,position:"absolute",display:"flex",alignItems:"center",justifyContent:m,padding:"0 10px",fontSize:"var(--vg-font-size)",color:"var(--vg-text)",borderRight:"1px solid var(--vg-border)",boxSizing:"border-box",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",...C,...v},children:h})},pN),k1=x.memo(function({group:t,left:n,width:r,height:o}){const{classNames:s,styles:a}=ws();return p.jsx("div",{className:s.groupRow||void 0,style:{position:"absolute",left:n,top:0,width:r,height:o,display:"flex",alignItems:"center",justifyContent:"center",background:"var(--vg-bg-header)",borderRight:"1px solid var(--vg-border)",borderBottom:"1px solid var(--vg-border)",fontWeight:700,fontSize:"calc(var(--vg-font-size) - 0.5px)",letterSpacing:"0.025em",color:"var(--vg-text-group)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",boxSizing:"border-box",...t.headerStyle,...a.groupRow},children:t.label})}),mN=x.memo(function({height:t,slot:n}){return p.jsx("div",{style:{height:t,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,color:"var(--vg-text-dim)",fontSize:"var(--vg-font-size)",fontFamily:"var(--vg-font)"},children:n??p.jsxs(p.Fragment,{children:[p.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",children:[p.jsx("rect",{x:"4",y:"4",width:"28",height:"28",rx:"4",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.4"}),p.jsx("line",{x1:"4",y1:"13",x2:"32",y2:"13",stroke:"currentColor",strokeWidth:"1.2",opacity:"0.3"}),p.jsx("line",{x1:"4",y1:"22",x2:"32",y2:"22",stroke:"currentColor",strokeWidth:"1.2",opacity:"0.2"}),p.jsx("line",{x1:"14",y1:"4",x2:"14",y2:"32",stroke:"currentColor",strokeWidth:"1.2",opacity:"0.2"})]}),p.jsx("span",{style:{opacity:.5},children:"No data to display"})]})})}),gN=x.memo(function({onClose:t}){const{engine:n,features:r,classNames:o}=ws(),{orderedColumns:s,toggleColumnVisibility:a,pinColumn:l,showAllColumns:c}=n,d=x.useRef(null);x.useEffect(()=>{const f=m=>{d.current&&!d.current.contains(m.target)&&t()},h=setTimeout(()=>document.addEventListener("mousedown",f),50);return()=>{clearTimeout(h),document.removeEventListener("mousedown",f)}},[t]);const u=s.filter(f=>f.hidden).length;return p.jsxs("div",{ref:d,role:"dialog","aria-label":"Column manager",className:o.columnPanel||void 0,style:{position:"absolute",top:"calc(100% + 4px)",right:0,zIndex:"var(--vg-z-panel)",background:"var(--vg-bg-panel)",border:"1px solid var(--vg-border-strong)",borderRadius:"var(--vg-radius)",boxShadow:"var(--vg-shadow-panel)",minWidth:260,maxHeight:420,display:"flex",flexDirection:"column",overflow:"hidden",fontFamily:"var(--vg-font)"},children:[p.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px 8px",borderBottom:"1px solid var(--vg-border)",flexShrink:0},children:[p.jsxs("span",{style:{fontWeight:700,fontSize:11,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--vg-text-dim)"},children:["Columns",u>0&&p.jsxs("span",{style:{marginLeft:6,background:"var(--vg-accent-bg)",color:"var(--vg-accent-text)",borderRadius:10,padding:"1px 6px",fontSize:10},children:[u," hidden"]})]}),u>0&&p.jsx("button",{onClick:c,style:{background:"none",border:"none",cursor:"pointer",fontSize:11,color:"var(--vg-accent)",fontWeight:600,fontFamily:"var(--vg-font)",padding:"2px 4px"},children:"Show all"})]}),p.jsx("div",{style:{overflow:"auto",flex:1},children:s.map(f=>{var h;return p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 14px",fontSize:"var(--vg-font-size)",color:f.hidden?"var(--vg-text-dim)":"var(--vg-text)",transition:"background var(--vg-transition)"},onMouseEnter:m=>m.currentTarget.style.background="var(--vg-bg-row-hover)",onMouseLeave:m=>m.currentTarget.style.background="transparent",children:[p.jsx("input",{type:"checkbox",id:`vg-col-${f.id}`,checked:!f.hidden,onChange:()=>a(f.id),style:{accentColor:"var(--vg-accent)",cursor:"pointer",width:13,height:13,flexShrink:0}}),p.jsx("label",{htmlFor:`vg-col-${f.id}`,style:{flex:1,cursor:"pointer",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f.label}),r.columnPin&&p.jsxs("select",{value:(h=f.pinned)!=null?h:"",onChange:m=>l(f.id,m.target.value||null),style:{fontSize:11,padding:"2px 5px",background:"var(--vg-bg-btn)",color:"var(--vg-text)",border:"1px solid var(--vg-border-strong)",borderRadius:"var(--vg-radius-xs)",cursor:"pointer",fontFamily:"var(--vg-font)",outline:"none"},children:[p.jsx("option",{value:"",children:"No pin"}),p.jsx("option",{value:"left",children:"Pin left"}),p.jsx("option",{value:"right",children:"Pin right"})]})]},f.id)})}),p.jsx("div",{style:{padding:"10px 14px",borderTop:"1px solid var(--vg-border)",flexShrink:0},children:p.jsx("button",{onClick:t,style:{width:"100%",padding:"7px 12px",background:"var(--vg-accent)",color:"var(--vg-accent-fg)",border:"none",borderRadius:"var(--vg-radius-sm)",cursor:"pointer",fontWeight:600,fontSize:"var(--vg-font-size)",fontFamily:"var(--vg-font)",transition:"background var(--vg-transition)"},onMouseEnter:f=>f.currentTarget.style.background="var(--vg-accent-hover)",onMouseLeave:f=>f.currentTarget.style.background="var(--vg-accent)",children:"Done"})})]})}),yN=x.memo(function({left:t,right:n,colManagerSlot:r}){const{classNames:o,styles:s}=ws();return p.jsxs("div",{role:"toolbar",className:o.toolbar||void 0,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"7px 12px",background:"var(--vg-bg-toolbar)",borderBottom:"1px solid var(--vg-border)",gap:8,flexShrink:0,position:"relative",...s.toolbar},children:[p.jsx("div",{style:{display:"flex",alignItems:"center",gap:8},children:t}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,position:"relative"},children:[n,r]})]})}),bN=x.memo(function({onClick:t,active:n=!1,children:r,icon:o,"aria-label":s}){return p.jsxs("button",{onClick:t,"aria-label":s,"aria-pressed":n,style:{display:"inline-flex",alignItems:"center",gap:5,padding:"5px 10px",borderRadius:"var(--vg-radius-sm)",border:`1px solid ${n?"var(--vg-accent)":"var(--vg-border-strong)"}`,background:n?"var(--vg-accent-bg)":"var(--vg-bg-btn)",color:n?"var(--vg-accent-text)":"var(--vg-text)",fontSize:12,fontWeight:600,cursor:"pointer",fontFamily:"var(--vg-font)",transition:"all var(--vg-transition)",lineHeight:1},onMouseEnter:a=>{n||(a.currentTarget.style.background="var(--vg-bg-btn-hover)")},onMouseLeave:a=>{n||(a.currentTarget.style.background="var(--vg-bg-btn)")},children:[o,r]})}),vN=x.memo(function({startRow:t,endRow:n,totalRows:r,visibleCols:o,totalCols:s}){const{classNames:a,styles:l}=ws();return p.jsxs("div",{className:a.footer||void 0,style:{display:"flex",alignItems:"center",justifyContent:"flex-end",padding:"5px 12px",background:"var(--vg-bg-toolbar)",borderTop:"1px solid var(--vg-border)",fontSize:11,color:"var(--vg-text-dim)",fontFamily:"var(--vg-font-mono)",flexShrink:0,gap:12,...l.footer},children:[p.jsxs("span",{children:[t.toLocaleString(),"–",n.toLocaleString()," of ",r.toLocaleString()," rows"]}),p.jsx("span",{style:{opacity:.5},children:"·"}),p.jsxs("span",{children:[o,"/",s," columns"]})]})});function xN(){return p.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none","aria-hidden":"true",children:[p.jsx("rect",{x:"0.5",y:"1.5",width:"3.5",height:"9",rx:"0.8",stroke:"currentColor",strokeWidth:"1.15"}),p.jsx("rect",{x:"5",y:"1.5",width:"3",height:"9",rx:"0.8",stroke:"currentColor",strokeWidth:"1.15"}),p.jsx("rect",{x:"9.5",y:"1.5",width:"3",height:"9",rx:"0.8",stroke:"currentColor",strokeWidth:"1.15"})]})}const wN=36,SN=38,CN=28,TN={sort:!0,resize:!0,reorder:!0,columnHide:!0,columnPin:!0,alternateRows:!0,toolbar:!0,footer:!0,rowSelection:!0},kN={},EN={},ON={};function MN(e,t,n,r){var o;if(r<=0)return null;const s=e.findIndex(a=>a.id===n);return s<0?null:((o=t[s])!=null?o:0)<r?s:null}function PN({columns:e,data:t,getRowId:n,height:r,maxHeight:o=600,rowHeight:s=wN,headerHeight:a=SN,groupHeaderHeight:l=CN,theme:c="light",features:d,icons:u,classNames:f,styles:h,slots:m={},freezeColId:g,loading:y=!1,onRowClick:b,onSortChange:v,onColumnStateChange:k,onColumnResize:S,onColumnReorder:C,sortMode:w="client",ariaLabel:T="Data grid",className:O,style:M}){var j,A,L,E,N;const P=x.useMemo(()=>({...TN,...d}),[JSON.stringify(d)]),$=u??kN,R=h??EN,W=f??ON,V=rN(e),{pinnedLeftColumns:H,pinnedRightColumns:B,scrollableColumns:D,pinnedLeftWidth:F,pinnedRightWidth:U,sortState:q,groups:X,hasGroups:G,visibleColumns:K,orderedColumns:ae,resizeColumn:le,moveColumnBefore:z,moveColumnToEnd:ee}=V,_=x.useRef(q);x.useEffect(()=>{(_.current.columnId!==q.columnId||_.current.direction!==q.direction)&&(_.current=q,v?.(q))},[q,v]);const ue=x.useRef(null);x.useEffect(()=>{var oe;ue.current=q.columnId&&(oe=V.orderedColumns.find(ce=>ce.id===q.columnId))!=null?oe:null},[q.columnId]);const Q=x.useMemo(()=>{var oe;if(w==="server")return t;const ce=ue.current;if(!q.columnId||!ce)return t;const de=(oe=ce.accessor)!=null?oe:ye=>{var Ue;return ye[(Ue=ce.field)!=null?Ue:ce.id]};return[...t].sort((ye,Ue)=>{const $e=de(ye),Ye=de(Ue);if($e==null)return 1;if(Ye==null)return-1;const ze=$e<Ye?-1:$e>Ye?1:0;return q.direction==="asc"?ze:-ze})},[t,w,q.columnId,q.direction]),ne=x.useRef("");x.useEffect(()=>{if(!k)return;const oe=V.orderedColumns.map((de,ye)=>({id:de.id,hidden:de.hidden,pinned:de.pinned,width:de.width,order:ye})),ce=JSON.stringify(oe);ce!==ne.current&&(ne.current=ce,k(oe))},[V.orderedColumns,k]);const[we,ke]=x.useState(null),Ce=x.useCallback((oe,ce)=>{if(P.rowSelection){const de=String(n?n(oe,ce):ce);ke(ye=>ye===de?null:de)}b?.(oe,ce)},[P.rowSelection,n,b]),ve=x.useCallback((oe,ce)=>!we||!P.rowSelection?!1:String(n?n(oe,ce):ce)===we,[we,P.rowSelection,n]),_e=x.useRef(null),Ee=x.useRef(0),xe=x.useRef(0),[,re]=x.useReducer(oe=>oe+1,0),ie=x.useRef(0),Te=x.useRef(!1),he=x.useRef(null),pe=x.useRef(null),Ie=x.useRef(null),Fe=x.useRef(null),He=x.useMemo(()=>iN(D),[D]),Oe=x.useMemo(()=>D.map(oe=>oe.width),[D]),Tt=x.useMemo(()=>Oe.reduce((oe,ce)=>oe+ce,0),[Oe]),st=x.useRef(null),[nt,dn]=x.useState(400),[Jn,Wn]=x.useState(800);x.useEffect(()=>{const oe=st.current;if(!oe)return;const ce=new ResizeObserver(([de])=>{de&&(dn(de.contentRect.height),Wn(de.contentRect.width))});return ce.observe(oe),dn(oe.clientHeight),Wn(oe.clientWidth),()=>ce.disconnect()},[]);const me=G?l+a:a,fe=P.toolbar?36:0,De=P.footer?29:0,Me=me+Q.length*s+fe+De,Je=r??Math.min(Me,o),Nt=Math.max(0,Jn-F-U),Ke=F+Tt+U,to=x.useRef({startIndex:0,endIndex:-1,totalHeight:0,offsetY:0}),Sr=x.useCallback(oe=>{to.current=oN(Q.length,s,oe,Math.max(0,nt-me))},[Q.length,s,nt,me]),We=x.useRef({startIndex:0,endIndex:0}),Ht=x.useCallback(oe=>{const ce=Math.max(0,oe-F),de=Nt>0?Nt:1400;We.current=sN(He,Oe,ce,de)},[He,Oe,Nt,F]),be=x.useRef(null),Pe=x.useCallback(oe=>{if(!g){be.current=null;return}const ce=Math.max(0,oe-F);be.current=MN(D,He,g,ce)},[g,D,He,F]),Qe=x.useMemo(()=>{var oe;return g&&(oe=D.find(ce=>ce.id===g))!=null?oe:null},[g,D]),rt=x.useMemo(()=>{var oe;if(!Qe)return 0;const ce=D.findIndex(de=>de.id===Qe.id);return ce>=0&&(oe=He[ce])!=null?oe:0},[Qe,D,He]),jt=x.useCallback(()=>{const oe=_e.current;if(!oe)return;const ce=oe.scrollTop,de=oe.scrollLeft;xe.current=ce,Ee.current=de,Sr(ce),Ht(de),Pe(de);const ye=be.current!==null;pe.current&&(pe.current.style.visibility=ye?"visible":"hidden",pe.current.style.pointerEvents=ye?"auto":"none"),Te.current=!0,he.current&&clearTimeout(he.current),he.current=setTimeout(()=>{Te.current=!1,re()},150),cancelAnimationFrame(ie.current),ie.current=requestAnimationFrame(re)},[Sr,Ht,Pe,re]);x.useEffect(()=>{Sr(xe.current),Ht(Ee.current),Pe(Ee.current)},[Sr,Ht,Pe]),x.useEffect(()=>{const oe=Ue=>{Ue.preventDefault();const $e=_e.current;$e&&($e.scrollTop+=Ue.deltaY,$e.scrollLeft+=Ue.deltaX)},ce={passive:!1},de=Ie.current,ye=Fe.current;return de?.addEventListener("wheel",oe,ce),ye?.addEventListener("wheel",oe,ce),()=>{de?.removeEventListener("wheel",oe,ce),ye?.removeEventListener("wheel",oe,ce)}},[]),x.useLayoutEffect(()=>{if(!pe.current)return;const oe=be.current!==null;pe.current.style.visibility=oe?"visible":"hidden",pe.current.style.pointerEvents=oe?"auto":"none"});const Ut=We.current,zn=be.current,un=zn!==null&&(j=D[zn])!=null?j:null,$r=(A=Qe?.width)!=null?A:0,vn=to.current,bc=Te.current,q2=x.useMemo(()=>{const oe=new Set(X.flatMap(ce=>ce.children.map(de=>de.id)));return new Set(D.filter(ce=>!oe.has(ce.id)).map(ce=>ce.id))},[X,D]),pp=x.useRef(V.orderedColumns);pp.current=V.orderedColumns;const ca=x.useRef(C);ca.current=C;const G2=x.useRef(oe=>120);G2.current=oe=>{var ce,de;return(de=(ce=V.orderedColumns.find(ye=>ye.id===oe))==null?void 0:ce.width)!=null?de:120};const{startResize:K2}=aN({onResize:(oe,ce)=>le(oe,ce),onResizeEnd:(oe,ce)=>S?.(oe,ce),getCurrentWidth:x.useCallback(oe=>G2.current(oe),[])}),hL=x.useCallback(oe=>{var ce,de;const ye=(ce=st.current)==null?void 0:ce.getBoundingClientRect();if(!ye)return null;const Ue=Ee.current;let $e=0;for(const ze of H){if(ze.id===oe)return{left:ye.left+$e,right:ye.left+$e+ze.width};$e+=ze.width}const Ye=D.findIndex(ze=>ze.id===oe);if(Ye!==-1){const ze=D[Ye],St=Math.max(0,Ue-F),ot=F+((de=He[Ye])!=null?de:0)-St;return{left:ye.left+ot,right:ye.left+ot+ze.width}}$e=0;for(const ze of B){if(ze.id===oe){const St=ye.right-U;return{left:St+$e,right:St+$e+ze.width}}$e+=ze.width}return null},[H,D,B,F,U,He]),Ms=lN({onMoveColumnBefore:(oe,ce)=>{if(z(oe,ce),ca.current){const ye=pp.current.map(Ue=>Ue.id).filter(Ue=>Ue!==oe);ye.splice(ye.indexOf(ce),0,oe),ca.current(ye)}},onMoveColumnToEnd:oe=>{if(ee(oe),ca.current){const de=[...pp.current.map(ye=>ye.id).filter(ye=>ye!==oe),oe];ca.current(de)}},columns:K.map(oe=>({id:oe.id,groupId:oe.groupId,draggable:oe.draggable,pinned:oe.pinned})),getColumnViewportBounds:hL}),[X2,hp]=x.useState(!1),Z2=x.useMemo(()=>dN(c),[c]),mL=x.useMemo(()=>Z2,[Z2]),gL=x.useMemo(()=>({engine:V,dragHandlers:Ms,startResize:K2,features:P,icons:$,styles:R,classNames:W}),[V,Ms,K2,P,$,R,W]),J2=x.useCallback((oe,ce)=>{var de,ye,Ue,$e,Ye,ze,St,ot;return ve(oe,ce)?($e=(Ue=(de=R.rowSelected)==null?void 0:de.background)!=null?Ue:(ye=R.rowSelected)==null?void 0:ye.backgroundColor)!=null?$e:"var(--vg-bg-row-selected)":P.alternateRows&&ce%2===1?"var(--vg-bg-row-alt)":(ot=(St=(Ye=R.row)==null?void 0:Ye.background)!=null?St:(ze=R.row)==null?void 0:ze.backgroundColor)!=null?ot:"var(--vg-bg)"},[ve,P.alternateRows,R.rowSelected,R.row]),yL=x.useCallback((oe,ce)=>{var de,ye,Ue,$e,Ye,ze,St,ot,Ot,et;return ve(oe,ce)?($e=(Ue=(de=R.rowSelected)==null?void 0:de.background)!=null?Ue:(ye=R.rowSelected)==null?void 0:ye.backgroundColor)!=null?$e:"var(--vg-bg-row-selected)":P.alternateRows&&ce%2===1?"var(--vg-bg-row-alt)":(et=(Ot=(St=(Ye=R.pinnedCell)==null?void 0:Ye.background)!=null?St:(ze=R.pinnedCell)==null?void 0:ze.backgroundColor)!=null?Ot:(ot=R.row)==null?void 0:ot.background)!=null?et:"var(--vg-bg-pinned)"},[ve,P.alternateRows,R.rowSelected,R.row,R.pinnedCell]),bL=()=>{var oe,ce;const de=[],ye=new Set;for(let Ue=Ut.startIndex;Ue<=Ut.endIndex;Ue++){const $e=D[Ue];if(!$e)continue;const Ye=F+((oe=He[Ue])!=null?oe:0);if(q2.has($e.id)){de.push(p.jsx(To,{column:$e,style:{position:"absolute",left:Ye,top:0,width:$e.width,height:l+a,zIndex:1,background:"var(--vg-bg-header)"}},`hspan-${$e.id}`));continue}const ze=X.find(et=>et.children.some($t=>$t.id===$e.id));if(!ze||ye.has(ze.id))continue;ye.add(ze.id);const St=D.filter(et=>ze.children.some($t=>$t.id===et.id)),ot=St.reduce((et,$t)=>et+$t.width,0),Ot=D.findIndex(et=>{var $t;return et.id===(($t=St[0])==null?void 0:$t.id)});de.push(p.jsx(k1,{group:ze,left:F+((ce=He[Ot])!=null?ce:0),width:ot,height:l},`grp-${ze.id}`))}return de},vL=()=>{const oe=[];let ce;const de=[];for(let ye=Ut.startIndex;ye<=Ut.endIndex;ye++){const Ue=D[ye];!Ue||q2.has(Ue.id)||de.push(ye)}return de.forEach((ye,Ue)=>{var $e;const Ye=D[ye];if(!Ye)return;const ze=Ye.groupId!==ce;ce=Ye.groupId;const St=Ue===de.length-1;oe.push(p.jsx(To,{column:Ye,isFirst:ze,isLast:St,style:{position:"absolute",left:F+(($e=He[ye])!=null?$e:0),top:0,width:Ye.width,height:a,zIndex:1}},`lh-${Ye.id}`))}),oe},xL=()=>{const oe=[],ce=[];for(let de=Ut.startIndex;de<=Ut.endIndex;de++)D[de]&&ce.push(de);return ce.forEach((de,ye)=>{var Ue;const $e=D[de];$e&&oe.push(p.jsx(To,{column:$e,isFirst:ye===0,isLast:ye===ce.length-1,style:{position:"absolute",left:F+((Ue=He[de])!=null?Ue:0),top:0,width:$e.width,height:a,zIndex:1}},`fh-${$e.id}`))}),oe},wL=oe=>{var ce,de;const ye=Q[oe];if(!ye)return null;const Ue=me+oe*s,$e=J2(ye,oe),Ye=yL(ye,oe),ze=ve(ye,oe),St=String(n?n(ye,oe):oe),ot=[];for(let Lt=Ut.startIndex;Lt<=Ut.endIndex;Lt++){const Jt=D[Lt];Jt&&ot.push(p.jsx(Ql,{column:Jt,row:ye,isScrolling:bc,loadingCell:m.loadingCell,style:{position:"absolute",left:F+((ce=He[Lt])!=null?ce:0),top:0,width:Jt.width,height:s,background:$e}},`ds-${Jt.id}`))}let Ot=0;const et=H.length>0?H.map(Lt=>{const Jt=Ot;return Ot+=Lt.width,p.jsx(Ql,{column:Lt,row:ye,pinned:!0,isScrolling:bc,loadingCell:m.loadingCell,style:{position:"absolute",left:Jt,top:0,width:Lt.width,height:s,background:Ye}},`ps-l-${Lt.id}`)}):null;let $t=0;const Ps=B.length>0?B.map(Lt=>{const Jt=$t;return $t+=Lt.width,p.jsx(Ql,{column:Lt,row:ye,pinned:!0,isScrolling:bc,loadingCell:m.loadingCell,style:{position:"absolute",left:Jt,top:0,width:Lt.width,height:s,background:Ye}},`ps-r-${Lt.id}`)}):null;return p.jsxs("div",{role:"row","aria-rowindex":oe+1,"aria-selected":ze,onClick:()=>Ce(ye,oe),className:[W.row,ze?W.rowSelected:void 0].filter(Boolean).join(" ")||void 0,style:{position:"absolute",top:Ue,left:0,width:Ke,height:s,background:$e,cursor:"pointer",display:"flex",...R.row,...ze?R.rowSelected:{}},onMouseEnter:Lt=>{if(!ze){const Jt=Lt.currentTarget;Jt.style.background="var(--vg-bg-row-hover)",Jt.querySelectorAll("[data-pinned-sticky]").forEach(Po=>{Po.style.background="var(--vg-bg-row-hover)"})}},onMouseLeave:Lt=>{const Jt=Lt.currentTarget;Jt.style.background=$e,Jt.querySelectorAll("[data-pinned-sticky]").forEach(Po=>{Po.style.background=Ye})},children:[et&&p.jsx("div",{"data-pinned-sticky":"left",style:{position:"sticky",left:0,width:F,height:s,flexShrink:0,zIndex:5,background:Ye,overflow:"hidden"},children:et}),Ps&&p.jsx("div",{style:{flex:1}}),Ps&&p.jsx("div",{"data-pinned-sticky":"right",style:{position:"sticky",right:0,width:U,height:s,flexShrink:0,zIndex:5,background:Ye,overflow:"hidden"},children:Ps}),ot,ze&&((de=m.rowSelectionIndicator)==null?void 0:de.call(m,ye,oe))]},St)},SL=()=>{var oe,ce,de,ye,Ue;if(!Qe)return null;const $e=[];for(let Ye=vn.startIndex;Ye<=vn.endIndex;Ye++){const ze=Q[Ye];if(!ze)continue;const St=String(n?n(ze,Ye):Ye),ot=ve(ze,Ye),Ot=ot?(ye=(de=(oe=R.rowSelected)==null?void 0:oe.background)!=null?de:(ce=R.rowSelected)==null?void 0:ce.backgroundColor)!=null?ye:"var(--vg-bg-row-selected)":"var(--vg-bg-frozen, var(--vg-bg-row-alt))";$e.push(p.jsxs("div",{onClick:()=>Ce(ze,Ye),className:[W.row,ot?W.rowSelected:void 0].filter(Boolean).join(" ")||void 0,style:{position:"absolute",left:0,top:Ye*s,width:$r,height:s,background:Ot,cursor:"pointer",overflow:"hidden",...R.row,...ot?R.rowSelected:{}},onMouseEnter:et=>{ot||(et.currentTarget.style.background="var(--vg-bg-row-hover)")},onMouseLeave:et=>{et.currentTarget.style.background=Ot},children:[p.jsx(Ql,{column:Qe,row:ze,pinned:!0,isScrolling:bc,loadingCell:m.loadingCell,style:{position:"absolute",left:0,top:0,width:$r,height:s,background:Ot,zIndex:2}}),ot&&p.jsx("div",{style:{position:"absolute",inset:0,zIndex:3,pointerEvents:"none"},children:(Ue=m.rowSelectionIndicator)==null?void 0:Ue.call(m,ze,Ye)})]},St))}return $e},Q2=oe=>{const ce=oe==="left",de=ce?H:B,ye=ce?F:U,Ue=ce&&un!==null,$e=Ue?ye+$r:ye;if(!de.length&&!Ue)return null;const Ye=[];let ze=0;for(const Ot of de)Ye.push(ze),ze+=Ot.width;const St=ze,ot=[];if(G){const Ot=new Set;if(de.forEach((et,$t)=>{var Ps,Lt,Jt;if(!et.groupId)ot.push(p.jsx(To,{column:et,isFirst:$t===0,isLast:$t===de.length-1,style:{position:"absolute",left:Ye[$t],top:0,width:et.width,height:l+a,zIndex:2,background:"var(--vg-bg-header)"}},`ph-span-${et.id}`));else{if(!Ot.has(et.groupId)){Ot.add(et.groupId);const Po=X.find(tx=>tx.id===et.groupId);if(Po){const OL=de.filter(mp=>mp.groupId===et.groupId).reduce((mp,ML)=>mp+ML.width,0);ot.push(p.jsx(k1,{group:Po,left:(Ps=Ye[$t])!=null?Ps:0,width:OL,height:l},`pgh-${Po.id}`))}}ot.push(p.jsx(To,{column:et,isFirst:$t===0||((Lt=de[$t-1])==null?void 0:Lt.groupId)!==et.groupId,isLast:$t===de.length-1||((Jt=de[$t+1])==null?void 0:Jt.groupId)!==et.groupId,style:{position:"absolute",left:Ye[$t],top:l,width:et.width,height:a,zIndex:2,background:"var(--vg-bg-header)"}},`ph-leaf-${et.id}`))}}),Ue&&un){const et=un.align==="center"?"center":un.align==="right"?"flex-end":"flex-start";ot.push(p.jsx("div",{style:{position:"absolute",left:St,top:0,width:$r,height:l+a,background:"var(--vg-bg-frozen, var(--vg-bg-group))",borderRight:"1px solid var(--vg-border-strong)",borderBottom:"1px solid var(--vg-border-strong)",zIndex:2,boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:et,padding:"0 10px",fontWeight:700,fontSize:"calc(var(--vg-font-size) - 0.5px)",color:"var(--vg-text-group)",overflow:"hidden",whiteSpace:"nowrap",...R.headerCell},children:un.label},`ph-frozen-${un.id}`))}}else de.forEach((Ot,et)=>{ot.push(p.jsx(To,{column:Ot,isFirst:et===0,isLast:et===de.length-1,style:{position:"absolute",left:Ye[et],top:0,width:Ot.width,height:a,zIndex:2,background:"var(--vg-bg-header)"}},`ph-${Ot.id}`))}),Ue&&un&&ot.push(p.jsx(To,{column:un,style:{position:"absolute",left:St,top:0,width:$r,height:a,zIndex:2,background:"var(--vg-bg-frozen, var(--vg-accent-bg))"}},`ph-frozen-${un.id}`));return p.jsxs("div",{style:{position:"absolute",[oe]:0,top:0,width:$e,height:"100%",zIndex:20,pointerEvents:"none"},children:[p.jsx("div",{ref:ce?Ie:Fe,style:{position:"absolute",top:0,left:0,width:$e,height:me,pointerEvents:"auto"},children:p.jsx("div",{style:{position:"absolute",top:0,left:0,width:$e,height:me,background:"var(--vg-bg-header)",borderBottom:"1px solid var(--vg-border-strong)",zIndex:10,overflow:"visible"},children:ot})}),p.jsx("div",{"aria-hidden":"true",style:{position:"absolute",[ce?"right":"left"]:-8,top:0,width:8,height:"100%",pointerEvents:"none",zIndex:15,background:ce?"linear-gradient(to right, rgba(0,0,0,0.08), transparent)":"linear-gradient(to left, rgba(0,0,0,0.08), transparent)"}})]},`layer-${oe}`)},CL=p.jsxs("span",{style:{fontSize:12,color:"var(--vg-text-dim)",fontWeight:500},children:[Q.length.toLocaleString()," rows",we&&p.jsx("span",{style:{marginLeft:8,color:"var(--vg-accent)",fontWeight:600},children:"· 1 selected"})]}),TL=X2?m.columnManager?m.columnManager({engine:V,onClose:()=>hp(!1)}):p.jsx(gN,{onClose:()=>hp(!1)}):null,kL=(L=$.columnsPanel)!=null?L:p.jsx(xN,{}),ex={startRow:vn.startIndex+1,endRow:Math.min(vn.endIndex+1,Q.length),totalRows:Q.length,visibleCols:K.length,totalCols:ae.length},EL=me+Q.length*s;return p.jsx(cN,{value:gL,children:p.jsxs("div",{role:"grid","aria-label":T,"aria-rowcount":Q.length,"aria-colcount":K.length,className:[W.root,O].filter(Boolean).join(" ")||void 0,style:{...mL,fontFamily:"var(--vg-font)",fontSize:"var(--vg-font-size)",lineHeight:"var(--vg-line-height)",background:"var(--vg-bg)",border:"1px solid var(--vg-border-strong)",borderRadius:"var(--vg-radius)",overflow:"hidden",display:"flex",flexDirection:"column",height:Je,position:"relative",...R.root,...M},children:[P.toolbar&&(m.toolbar?m.toolbar(V):p.jsx(yN,{left:(E=m.toolbarLeft)!=null?E:CL,right:m.toolbarRight,colManagerSlot:p.jsxs(p.Fragment,{children:[p.jsx(bN,{onClick:()=>hp(oe=>!oe),active:X2,icon:kL,"aria-label":"Manage columns",children:"Columns"}),TL]})})),p.jsx("div",{ref:st,style:{position:"relative",flex:1,overflow:"hidden"},children:Q.length===0?p.jsx(mN,{height:nt,slot:m.emptyState}):p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:_e,onScroll:jt,style:{position:"absolute",inset:0,overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--vg-scrollbar-thumb) var(--vg-scrollbar-track)",willChange:"scroll-position"},children:p.jsxs("div",{style:{width:Ke,height:EL,position:"relative"},children:[p.jsx("div",{style:{position:"sticky",top:0,width:Ke,height:me,zIndex:8,background:"var(--vg-bg-header)",borderBottom:"1px solid var(--vg-border-strong)",...R.headerRow},children:G?p.jsxs(p.Fragment,{children:[p.jsx("div",{role:"row",style:{position:"absolute",top:0,left:0,width:Ke,height:l,overflow:"visible"},children:bL()}),p.jsx("div",{role:"row",style:{position:"absolute",top:l,left:0,width:Ke,height:a,overflow:"visible"},children:vL()})]}):p.jsx("div",{role:"row",style:{position:"absolute",top:0,left:0,width:Ke,height:a,overflow:"visible"},children:xL()})}),Qe&&p.jsx("div",{ref:pe,style:{position:"sticky",left:F,marginLeft:F+rt,width:$r,height:Q.length*s,zIndex:6,visibility:zn!==null?"visible":"hidden",pointerEvents:zn!==null?"auto":"none"},children:SL()}),Array.from({length:Math.max(0,vn.endIndex-vn.startIndex+1)},(oe,ce)=>wL(vn.startIndex+ce))]})}),Q2("left"),Q2("right"),y&&p.jsx("div",{style:{position:"absolute",inset:0,background:"rgba(255,255,255,0.6)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:50,backdropFilter:"blur(1px)"},children:(N=m.loadingOverlay)!=null?N:p.jsx("div",{style:{padding:"10px 20px",borderRadius:6,background:"var(--vg-bg)",border:"1px solid var(--vg-border-strong)",fontSize:13,color:"var(--vg-text-dim)",fontFamily:"var(--vg-font)"},children:"Loading…"})})]})}),P.footer&&(m.footer?m.footer(ex):p.jsx(vN,{...ex})),Ms.dragState.draggingId&&(()=>{var oe;const{draggingId:ce}=Ms.dragState,de=K.find($e=>$e.id===ce);if(!de)return null;const ye=(oe=st.current)==null?void 0:oe.getBoundingClientRect();if(!ye)return null;const Ue=de.align==="center"?"center":de.align==="right"?"flex-end":"flex-start";return p.jsxs(p.Fragment,{children:[p.jsxs("div",{ref:Ms.registerGhost,style:{position:"fixed",top:ye.top,width:de.width,height:ye.height,zIndex:9999,pointerEvents:"none",boxShadow:"0 6px 24px rgba(0,0,0,0.20)",borderRadius:4,overflow:"hidden",background:"var(--vg-bg)"},children:[p.jsx("div",{style:{height:me,background:"var(--vg-bg-header)",borderBottom:"1px solid var(--vg-border-strong)",display:"flex",alignItems:"center",justifyContent:Ue,padding:"0 8px",fontWeight:600,fontSize:"var(--vg-font-size)",color:"var(--vg-text-header)",boxSizing:"border-box",overflow:"hidden",whiteSpace:"nowrap"},children:de.label}),Array.from({length:vn.endIndex-vn.startIndex+1},($e,Ye)=>{var ze;const St=vn.startIndex+Ye,ot=Q[St];if(!ot)return null;const Ot=de.accessor?de.accessor(ot):ot[(ze=de.field)!=null?ze:de.id],et=de.renderCell?de.renderCell(Ot,ot):Ot??"—";return p.jsx("div",{style:{height:s,display:"flex",alignItems:"center",justifyContent:Ue,padding:"0 10px",fontSize:"var(--vg-font-size)",color:"var(--vg-text)",borderBottom:"1px solid var(--vg-border)",boxSizing:"border-box",overflow:"hidden",whiteSpace:"nowrap",background:J2(ot,St)},children:et},St)})]}),p.jsx("div",{ref:Ms.registerIndicator,style:{position:"fixed",top:ye.top,width:2,height:ye.height,background:"var(--vg-accent)",zIndex:1e4,pointerEvents:"none",borderRadius:1}})]})})()]})})}const jN=x.memo(PN);x.memo(function({currentPage:t,pageCount:n,totalRows:r,startIndex:o,endIndex:s,pageSize:a,pageSizeOptions:l,canGoPrev:c,canGoNext:d,goToPage:u,nextPage:f,prevPage:h,firstPage:m,lastPage:g,setPageSize:y}){const b=IN(t,n);return p.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,padding:"8px 12px",background:"var(--vg-bg-toolbar)",borderTop:"1px solid var(--vg-border)",borderRadius:"0 0 var(--vg-radius) var(--vg-radius)",fontFamily:"var(--vg-font)",flexWrap:"wrap"},children:[p.jsxs("span",{style:{fontSize:12,color:"var(--vg-text-dim)",fontFamily:"var(--vg-font-mono)",flexShrink:0},children:[(o+1).toLocaleString(),"–",Math.min(s+1,r).toLocaleString()," of"," ",r.toLocaleString()," rows"]}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:3},children:[p.jsx(ec,{onClick:m,disabled:!c,title:"First page",children:p.jsx(O1,{left:!0})}),p.jsx(ec,{onClick:h,disabled:!c,title:"Previous page",children:p.jsx(E1,{left:!0})}),b.map((v,k)=>v==="…"?p.jsx("span",{style:{padding:"0 4px",fontSize:12,color:"var(--vg-text-dim)"},children:"…"},`ellipsis-${k}`):p.jsx("button",{onClick:()=>u(v),"aria-current":v===t?"page":void 0,style:{minWidth:28,height:28,padding:"0 6px",borderRadius:"var(--vg-radius-xs)",border:`1px solid ${v===t?"var(--vg-accent)":"var(--vg-border-strong)"}`,background:v===t?"var(--vg-accent-bg)":"var(--vg-bg-btn)",color:v===t?"var(--vg-accent-text)":"var(--vg-text)",fontWeight:v===t?700:500,fontSize:12,cursor:"pointer",fontFamily:"var(--vg-font-mono)",lineHeight:1,transition:"all var(--vg-transition)"},children:v},v)),p.jsx(ec,{onClick:f,disabled:!d,title:"Next page",children:p.jsx(E1,{})}),p.jsx(ec,{onClick:g,disabled:!d,title:"Last page",children:p.jsx(O1,{})})]}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:7,flexShrink:0},children:[p.jsx("span",{style:{fontSize:12,color:"var(--vg-text-dim)"},children:"Rows per page"}),p.jsx("select",{value:a,onChange:v=>y(Number(v.target.value)),style:{padding:"3px 6px",borderRadius:"var(--vg-radius-xs)",border:"1px solid var(--vg-border-strong)",background:"var(--vg-bg-btn)",color:"var(--vg-text)",fontSize:12,cursor:"pointer",fontFamily:"var(--vg-font)",outline:"none"},children:l.map(v=>p.jsx("option",{value:v,children:v},v))})]})]})});function ec({onClick:e,disabled:t,title:n,children:r}){return p.jsx("button",{onClick:e,disabled:t,title:n,style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--vg-radius-xs)",border:"1px solid var(--vg-border-strong)",background:"var(--vg-bg-btn)",color:t?"var(--vg-text-dim)":"var(--vg-text)",cursor:t?"not-allowed":"pointer",opacity:t?.45:1,transition:"all var(--vg-transition)",padding:0},children:r})}function E1({left:e=!1}){return p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",style:{transform:e?"rotate(180deg)":void 0},children:p.jsx("path",{d:"M4.5 2.5L7.5 6l-3 3.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function O1({left:e=!1}){return p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",style:{transform:e?"rotate(180deg)":void 0},children:p.jsx("path",{d:"M7 2.5L4 6l3 3.5M10 2.5L7 6l3 3.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function IN(e,t){if(t<=7)return Array.from({length:t},(s,a)=>a+1);const n=[];n.push(1);const r=Math.max(2,e-1),o=Math.min(t-1,e+1);r>2&&n.push("…");for(let s=r;s<=o;s++)n.push(s);return o<t-1&&n.push("…"),n.push(t),n}function DN({engine:e,onClose:t}){const{orderedColumns:n,toggleColumnVisibility:r,pinColumn:o,showAllColumns:s,resetColumns:a}=e,[l,c]=x.useState(""),d=x.useMemo(()=>n.filter(f=>f.label.toLowerCase().includes(l.toLowerCase())),[n,l]),u=n.filter(f=>f.hidden).length;return p.jsxs("div",{style:{display:"flex",flexDirection:"column",fontFamily:'var(--vg-font, "DM Sans", sans-serif)',fontSize:"var(--vg-font-size, 12.5px)",background:"var(--vg-bg-panel, #fff)",border:"1px solid var(--vg-border-strong, #d1d5db)",borderRadius:"var(--vg-radius, 7px)",boxShadow:"var(--vg-shadow-panel, 0 8px 24px rgba(0,0,0,0.1))",overflow:"hidden",minWidth:240},children:[p.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px 8px",borderBottom:"1px solid var(--vg-border, #e5e7eb)",gap:8,flexShrink:0},children:[p.jsxs("span",{style:{fontWeight:700,fontSize:11,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--vg-text-dim, #6b7280)"},children:["Columns",u>0&&p.jsxs("span",{style:{marginLeft:6,background:"var(--vg-accent-bg, #dbeafe)",color:"var(--vg-accent-text, #1d4ed8)",borderRadius:10,padding:"1px 6px",fontSize:10},children:[u," hidden"]})]}),p.jsxs("div",{style:{display:"flex",gap:6},children:[u>0&&p.jsx("button",{onClick:s,style:{background:"none",border:"none",cursor:"pointer",fontSize:11,color:"var(--vg-accent, #2563eb)",fontWeight:600,fontFamily:"var(--vg-font, sans-serif)",padding:"2px 4px"},children:"Show all"}),p.jsx("button",{onClick:a,style:{background:"none",border:"none",cursor:"pointer",fontSize:11,color:"var(--vg-text-dim, #6b7280)",fontFamily:"var(--vg-font, sans-serif)",padding:"2px 4px"},children:"Reset"})]})]}),p.jsx("div",{style:{padding:"8px 14px",borderBottom:"1px solid var(--vg-border, #e5e7eb)",flexShrink:0},children:p.jsx("input",{value:l,onChange:f=>c(f.target.value),placeholder:"Search columns…",style:{width:"100%",padding:"5px 9px",border:"1px solid var(--vg-border-strong, #d1d5db)",borderRadius:"var(--vg-radius-sm, 4px)",background:"var(--vg-bg, #fff)",color:"var(--vg-text, #111827)",fontSize:12,outline:"none",fontFamily:"var(--vg-font, sans-serif)",boxSizing:"border-box"}})}),p.jsxs("div",{style:{overflow:"auto",flex:1,maxHeight:320},children:[d.map(f=>{var h;return p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 14px",borderBottom:"1px solid var(--vg-border, #e5e7eb)",transition:"background 0.1s"},onMouseEnter:m=>m.currentTarget.style.background="var(--vg-bg-row-hover, #f0f5ff)",onMouseLeave:m=>m.currentTarget.style.background="transparent",children:[p.jsx("input",{type:"checkbox",id:`vcm-${f.id}`,checked:!f.hidden,onChange:()=>r(f.id),style:{accentColor:"var(--vg-accent, #2563eb)",cursor:"pointer",width:13,height:13,flexShrink:0}}),p.jsx("label",{htmlFor:`vcm-${f.id}`,style:{flex:1,cursor:"pointer",color:f.hidden?"var(--vg-text-dim, #6b7280)":"var(--vg-text, #111827)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f.label}),p.jsxs("select",{value:(h=f.pinned)!=null?h:"",onChange:m=>o(f.id,m.target.value||null),style:{fontSize:11,padding:"2px 5px",background:"var(--vg-bg-btn, #f3f4f6)",color:"var(--vg-text, #111827)",border:"1px solid var(--vg-border-strong, #d1d5db)",borderRadius:"var(--vg-radius-xs, 3px)",cursor:"pointer",fontFamily:"var(--vg-font, sans-serif)",outline:"none"},children:[p.jsx("option",{value:"",children:"No pin"}),p.jsx("option",{value:"left",children:"Pin left"}),p.jsx("option",{value:"right",children:"Pin right"})]})]},f.id)}),d.length===0&&p.jsxs("div",{style:{padding:"20px 14px",textAlign:"center",fontSize:12,color:"var(--vg-text-dim, #6b7280)"},children:['No columns match "',l,'"']})]}),t&&p.jsx("div",{style:{padding:"10px 14px",borderTop:"1px solid var(--vg-border, #e5e7eb)",flexShrink:0},children:p.jsx("button",{onClick:t,style:{width:"100%",padding:"7px 12px",background:"var(--vg-accent, #2563eb)",color:"var(--vg-accent-fg, #fff)",border:"none",borderRadius:"var(--vg-radius-sm, 4px)",cursor:"pointer",fontWeight:600,fontSize:"var(--vg-font-size, 12.5px)",fontFamily:"var(--vg-font, sans-serif)"},children:"Done"})})]})}function AN(){const[e,t]=x.useState(!1),n=x.useRef(null),[r,o]=x.useState(!1),s=x.useCallback(()=>t(!0),[]),a=x.useCallback(()=>t(!1),[]),l=x.useCallback(()=>t(u=>!u),[]),c=x.useCallback(u=>{n.current=u,r||o(!0)},[r]),d=x.useCallback(({render:u,onClose:f,style:h,className:m})=>{const g=n.current;return g?u?p.jsx("div",{style:h,className:m,children:u({engine:g,close:a})}):p.jsx("div",{style:h,className:m,children:p.jsx(DN,{engine:g,onClose:f})}):null},[r,a]);return{isOpen:e,open:s,close:a,toggle:l,captureEngine:c,engine:n.current,ColumnManagerPanel:d}}function M1(e,t){return function(){return e.apply(t,arguments)}}const{toString:RN}=Object.prototype,{getPrototypeOf:Lf}=Object,{iterator:tc,toStringTag:P1}=Symbol,nc=(e=>t=>{const n=RN.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zn=e=>(e=e.toLowerCase(),t=>nc(t)===e),rc=e=>t=>typeof t===e,{isArray:Ss}=Array,Cs=rc("undefined");function ea(e){return e!==null&&!Cs(e)&&e.constructor!==null&&!Cs(e.constructor)&&yn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const j1=Zn("ArrayBuffer");function NN(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&j1(e.buffer),t}const $N=rc("string"),yn=rc("function"),I1=rc("number"),ta=e=>e!==null&&typeof e=="object",LN=e=>e===!0||e===!1,oc=e=>{if(nc(e)!=="object")return!1;const t=Lf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(P1 in e)&&!(tc in e)},BN=e=>{if(!ta(e)||ea(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},_N=Zn("Date"),FN=Zn("File"),WN=Zn("Blob"),zN=Zn("FileList"),VN=e=>ta(e)&&yn(e.pipe),HN=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||yn(e.append)&&((t=nc(e))==="formdata"||t==="object"&&yn(e.toString)&&e.toString()==="[object FormData]"))},UN=Zn("URLSearchParams"),[YN,qN,GN,KN]=["ReadableStream","Request","Response","Headers"].map(Zn),XN=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function na(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ss(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ea(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let l;for(r=0;r<a;r++)l=s[r],t.call(null,e[l],l,e)}}function D1(e,t){if(ea(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ko=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,A1=e=>!Cs(e)&&e!==ko;function Bf(){const{caseless:e,skipUndefined:t}=A1(this)&&this||{},n={},r=(o,s)=>{const a=e&&D1(n,s)||s;oc(n[a])&&oc(o)?n[a]=Bf(n[a],o):oc(o)?n[a]=Bf({},o):Ss(o)?n[a]=o.slice():(!t||!Cs(o))&&(n[a]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&na(arguments[o],r);return n}const ZN=(e,t,n,{allOwnKeys:r}={})=>(na(t,(o,s)=>{n&&yn(o)?e[s]=M1(o,n):e[s]=o},{allOwnKeys:r}),e),JN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),QN=(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)},e$=(e,t,n,r)=>{let o,s,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)a=o[s],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Lf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},t$=(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},n$=e=>{if(!e)return null;if(Ss(e))return e;let t=e.length;if(!I1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},r$=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lf(Uint8Array)),o$=(e,t)=>{const r=(e&&e[tc]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},s$=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},i$=Zn("HTMLFormElement"),a$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),R1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),l$=Zn("RegExp"),N1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};na(n,(o,s)=>{let a;(a=t(o,s,e))!==!1&&(r[s]=a||o)}),Object.defineProperties(e,r)},c$=e=>{N1(e,(t,n)=>{if(yn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(yn(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+"'")})}})},d$=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Ss(e)?r(e):r(String(e).split(t)),n},u$=()=>{},f$=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function p$(e){return!!(e&&yn(e.append)&&e[P1]==="FormData"&&e[tc])}const h$=e=>{const t=new Array(10),n=(r,o)=>{if(ta(r)){if(t.indexOf(r)>=0)return;if(ea(r))return r;if(!("toJSON"in r)){t[o]=r;const s=Ss(r)?[]:{};return na(r,(a,l)=>{const c=n(a,o+1);!Cs(c)&&(s[l]=c)}),t[o]=void 0,s}}return r};return n(e,0)},m$=Zn("AsyncFunction"),g$=e=>e&&(ta(e)||yn(e))&&yn(e.then)&&yn(e.catch),$1=((e,t)=>e?setImmediate:t?((n,r)=>(ko.addEventListener("message",({source:o,data:s})=>{o===ko&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),ko.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",yn(ko.postMessage)),y$=typeof queueMicrotask<"u"?queueMicrotask.bind(ko):typeof process<"u"&&process.nextTick||$1,Y={isArray:Ss,isArrayBuffer:j1,isBuffer:ea,isFormData:HN,isArrayBufferView:NN,isString:$N,isNumber:I1,isBoolean:LN,isObject:ta,isPlainObject:oc,isEmptyObject:BN,isReadableStream:YN,isRequest:qN,isResponse:GN,isHeaders:KN,isUndefined:Cs,isDate:_N,isFile:FN,isBlob:WN,isRegExp:l$,isFunction:yn,isStream:VN,isURLSearchParams:UN,isTypedArray:r$,isFileList:zN,forEach:na,merge:Bf,extend:ZN,trim:XN,stripBOM:JN,inherits:QN,toFlatObject:e$,kindOf:nc,kindOfTest:Zn,endsWith:t$,toArray:n$,forEachEntry:o$,matchAll:s$,isHTMLForm:i$,hasOwnProperty:R1,hasOwnProp:R1,reduceDescriptors:N1,freezeMethods:c$,toObjectSet:d$,toCamelCase:a$,noop:u$,toFiniteNumber:f$,findKey:D1,global:ko,isContextDefined:A1,isSpecCompliantForm:p$,toJSONObject:h$,isAsyncFn:m$,isThenable:g$,setImmediate:$1,asap:y$,isIterable:e=>e!=null&&yn(e[tc])};function Ze(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}Y.inherits(Ze,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:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const L1=Ze.prototype,B1={};["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=>{B1[e]={value:e}}),Object.defineProperties(Ze,B1),Object.defineProperty(L1,"isAxiosError",{value:!0}),Ze.from=(e,t,n,r,o,s)=>{const a=Object.create(L1);Y.toFlatObject(e,a,function(u){return u!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return Ze.call(a,l,c,n,r,o),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 b$=null;function _f(e){return Y.isPlainObject(e)||Y.isArray(e)}function _1(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function F1(e,t,n){return e?e.concat(t).map(function(o,s){return o=_1(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function v$(e){return Y.isArray(e)&&!e.some(_f)}const x$=Y.toFlatObject(Y,{},null,function(t){return/^is[A-Z]/.test(t)});function sc(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!Y.isUndefined(b[y])});const r=n.metaTokens,o=n.visitor||u,s=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(o))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(Y.isDate(g))return g.toISOString();if(Y.isBoolean(g))return g.toString();if(!c&&Y.isBlob(g))throw new Ze("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(g)||Y.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,y,b){let v=g;if(g&&!b&&typeof g=="object"){if(Y.endsWith(y,"{}"))y=r?y:y.slice(0,-2),g=JSON.stringify(g);else if(Y.isArray(g)&&v$(g)||(Y.isFileList(g)||Y.endsWith(y,"[]"))&&(v=Y.toArray(g)))return y=_1(y),v.forEach(function(S,C){!(Y.isUndefined(S)||S===null)&&t.append(a===!0?F1([y],C,s):a===null?y:y+"[]",d(S))}),!1}return _f(g)?!0:(t.append(F1(b,y,s),d(g)),!1)}const f=[],h=Object.assign(x$,{defaultVisitor:u,convertValue:d,isVisitable:_f});function m(g,y){if(!Y.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(g),Y.forEach(g,function(v,k){(!(Y.isUndefined(v)||v===null)&&o.call(t,v,Y.isString(k)?k.trim():k,y,h))===!0&&m(v,y?y.concat(k):[k])}),f.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return m(e),t}function W1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ff(e,t){this._pairs=[],e&&sc(e,this,t)}const z1=Ff.prototype;z1.append=function(t,n){this._pairs.push([t,n])},z1.toString=function(t){const n=t?function(r){return t.call(this,r,W1)}:W1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function w$(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function V1(e,t,n){if(!t)return e;const r=n&&n.encode||w$;Y.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(t,n):s=Y.isURLSearchParams(t)?t.toString():new Ff(t,n).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class H1{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){Y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const U1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},S$={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ff,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Wf=typeof window<"u"&&typeof document<"u",zf=typeof navigator=="object"&&navigator||void 0,C$=Wf&&(!zf||["ReactNative","NativeScript","NS"].indexOf(zf.product)<0),T$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",k$=Wf&&window.location.href||"http://localhost",tn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wf,hasStandardBrowserEnv:C$,hasStandardBrowserWebWorkerEnv:T$,navigator:zf,origin:k$},Symbol.toStringTag,{value:"Module"})),...S$};function E$(e,t){return sc(e,new tn.classes.URLSearchParams,{visitor:function(n,r,o,s){return tn.isNode&&Y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function O$(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function M$(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function Y1(e){function t(n,r,o,s){let a=n[s++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=s>=n.length;return a=!a&&Y.isArray(o)?o.length:a,c?(Y.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!l):((!o[a]||!Y.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],s)&&Y.isArray(o[a])&&(o[a]=M$(o[a])),!l)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const n={};return Y.forEachEntry(e,(r,o)=>{t(O$(r),o,n,0)}),n}return null}function P$(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ra={transitional:U1,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=Y.isObject(t);if(s&&Y.isHTMLForm(t)&&(t=new FormData(t)),Y.isFormData(t))return o?JSON.stringify(Y1(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t)||Y.isReadableStream(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return E$(t,this.formSerializer).toString();if((l=Y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return sc(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),P$(t)):t}],transformResponse:[function(t){const n=this.transitional||ra.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Y.isResponse(t)||Y.isReadableStream(t))return t;if(t&&Y.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?Ze.from(l,Ze.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tn.classes.FormData,Blob:tn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{ra.headers[e]={}});const j$=Y.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"]),I$=e=>{const t={};let n,r,o;return e&&e.split(`
252
252
  `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&j$[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},q1=Symbol("internals");function oa(e){return e&&String(e).trim().toLowerCase()}function ic(e){return e===!1||e==null?e:Y.isArray(e)?e.map(ic):String(e)}function D$(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 A$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vf(e,t,n,r,o){if(Y.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Y.isString(t)){if(Y.isString(r))return t.indexOf(r)!==-1;if(Y.isRegExp(r))return r.test(t)}}function R$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function N$(e,t){const n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,a){return this[r].call(this,t,o,s,a)},configurable:!0})})}let bn=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(l,c,d){const u=oa(c);if(!u)throw new Error("header name must be a non-empty string");const f=Y.findKey(o,u);(!f||o[f]===void 0||d===!0||d===void 0&&o[f]!==!1)&&(o[f||c]=ic(l))}const a=(l,c)=>Y.forEach(l,(d,u)=>s(d,u,c));if(Y.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Y.isString(t)&&(t=t.trim())&&!A$(t))a(I$(t),n);else if(Y.isObject(t)&&Y.isIterable(t)){let l={},c,d;for(const u of t){if(!Y.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[d=u[0]]=(c=l[d])?Y.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}a(l,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=oa(t),t){const r=Y.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return D$(o);if(Y.isFunction(n))return n.call(this,o,r);if(Y.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=oa(t),t){const r=Y.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Vf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(a){if(a=oa(a),a){const l=Y.findKey(r,a);l&&(!n||Vf(r,r[l],l,n))&&(delete r[l],o=!0)}}return Y.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Vf(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return Y.forEach(this,(o,s)=>{const a=Y.findKey(r,s);if(a){n[a]=ic(o),delete n[s];return}const l=t?R$(s):String(s).trim();l!==s&&delete n[s],n[l]=ic(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Y.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Y.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(`
253
- `)}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(o=>r.set(o)),r}static accessor(t){const r=(this[q1]=this[q1]={accessors:{}}).accessors,o=this.prototype;function s(a){const l=oa(a);r[l]||(N$(o,a),r[l]=!0)}return Y.isArray(t)?t.forEach(s):s(t),this}};bn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(bn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),Y.freezeMethods(bn);function Hf(e,t){const n=this||ra,r=t||n,o=bn.from(r.headers);let s=r.data;return Y.forEach(e,function(l){s=l.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function G1(e){return!!(e&&e.__CANCEL__)}function Ts(e,t,n){Ze.call(this,e??"canceled",Ze.ERR_CANCELED,t,n),this.name="CanceledError"}Y.inherits(Ts,Ze,{__CANCEL__:!0});function K1(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ze("Request failed with status code "+n.status,[Ze.ERR_BAD_REQUEST,Ze.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function $$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function L$(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,a;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=r[s];a||(a=d),n[o]=c,r[o]=d;let f=s,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-a<t)return;const m=u&&d-u;return m?Math.round(h*1e3/m):void 0}}function B$(e,t){let n=0,r=1e3/t,o,s;const a=(d,u=Date.now())=>{n=u,o=null,s&&(clearTimeout(s),s=null),e(...d)};return[(...d)=>{const u=Date.now(),f=u-n;f>=r?a(d,u):(o=d,s||(s=setTimeout(()=>{s=null,a(o)},r-f)))},()=>o&&a(o)]}const ac=(e,t,n=3)=>{let r=0;const o=L$(50,250);return B$(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,c=a-r,d=o(c),u=a<=l;r=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-a)/d:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},X1=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Z1=e=>(...t)=>Y.asap(()=>e(...t)),_$=tn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,tn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(tn.origin),tn.navigator&&/(msie|trident)/i.test(tn.navigator.userAgent)):()=>!0,F$=tn.hasStandardBrowserEnv?{write(e,t,n,r,o,s,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];Y.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),Y.isString(r)&&l.push(`path=${r}`),Y.isString(o)&&l.push(`domain=${o}`),s===!0&&l.push("secure"),Y.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function W$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function z$(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function J1(e,t,n){let r=!W$(t);return e&&(r||n==!1)?z$(e,t):t}const Q1=e=>e instanceof bn?{...e}:e;function Eo(e,t){t=t||{};const n={};function r(d,u,f,h){return Y.isPlainObject(d)&&Y.isPlainObject(u)?Y.merge.call({caseless:h},d,u):Y.isPlainObject(u)?Y.merge({},u):Y.isArray(u)?u.slice():u}function o(d,u,f,h){if(Y.isUndefined(u)){if(!Y.isUndefined(d))return r(void 0,d,f,h)}else return r(d,u,f,h)}function s(d,u){if(!Y.isUndefined(u))return r(void 0,u)}function a(d,u){if(Y.isUndefined(u)){if(!Y.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function l(d,u,f){if(f in t)return r(d,u);if(f in e)return r(void 0,d)}const c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(d,u,f)=>o(Q1(d),Q1(u),f,!0)};return Y.forEach(Object.keys({...e,...t}),function(u){const f=c[u]||o,h=f(e[u],t[u],u);Y.isUndefined(h)&&f!==l||(n[u]=h)}),n}const e2=e=>{const t=Eo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:l}=t;if(t.headers=a=bn.from(a),t.url=V1(J1(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Y.isFormData(n)){if(tn.hasStandardBrowserEnv||tn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(Y.isFunction(n.getHeaders)){const c=n.getHeaders(),d=["content-type","content-length"];Object.entries(c).forEach(([u,f])=>{d.includes(u.toLowerCase())&&a.set(u,f)})}}if(tn.hasStandardBrowserEnv&&(r&&Y.isFunction(r)&&(r=r(t)),r||r!==!1&&_$(t.url))){const c=o&&s&&F$.read(s);c&&a.set(o,c)}return t},V$=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=e2(e);let s=o.data;const a=bn.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=o,u,f,h,m,g;function y(){m&&m(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function v(){if(!b)return;const S=bn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:S,config:e,request:b};K1(function(O){n(O),y()},function(O){r(O),y()},w),b=null}"onloadend"in b?b.onloadend=v:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(v)},b.onabort=function(){b&&(r(new Ze("Request aborted",Ze.ECONNABORTED,e,b)),b=null)},b.onerror=function(C){const w=C&&C.message?C.message:"Network Error",k=new Ze(w,Ze.ERR_NETWORK,e,b);k.event=C||null,r(k),b=null},b.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||U1;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new Ze(C,w.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,e,b)),b=null},s===void 0&&a.setContentType(null),"setRequestHeader"in b&&Y.forEach(a.toJSON(),function(C,w){b.setRequestHeader(w,C)}),Y.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),d&&([h,g]=ac(d,!0),b.addEventListener("progress",h)),c&&b.upload&&([f,m]=ac(c),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=S=>{b&&(r(!S||S.type?new Ts(null,e,b):S),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const T=$$(o.url);if(T&&tn.protocols.indexOf(T)===-1){r(new Ze("Unsupported protocol "+T+":",Ze.ERR_BAD_REQUEST,e));return}b.send(s||null)})},H$=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(d){if(!o){o=!0,l();const u=d instanceof Error?d:this.reason;r.abort(u instanceof Ze?u:new Ts(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,s(new Ze(`timeout ${t} of ms exceeded`,Ze.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>Y.asap(l),c}},U$=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Y$=async function*(e,t){for await(const n of q$(e))yield*U$(n,t)},q$=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()}},t2=(e,t,n,r)=>{const o=Y$(e,t);let s=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await o.next();if(d){l(),c.close();return}let f=u.byteLength;if(n){let h=s+=f;n(h)}c.enqueue(new Uint8Array(u))}catch(d){throw l(d),d}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},n2=64*1024,{isFunction:lc}=Y,G$=(({Request:e,Response:t})=>({Request:e,Response:t}))(Y.global),{ReadableStream:r2,TextEncoder:o2}=Y.global,s2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},K$=e=>{e=Y.merge.call({skipUndefined:!0},G$,e);const{fetch:t,Request:n,Response:r}=e,o=t?lc(t):typeof fetch=="function",s=lc(n),a=lc(r);if(!o)return!1;const l=o&&lc(r2),c=o&&(typeof o2=="function"?(g=>y=>g.encode(y))(new o2):async g=>new Uint8Array(await new n(g).arrayBuffer())),d=s&&l&&s2(()=>{let g=!1;const y=new n(tn.origin,{body:new r2,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!y}),u=a&&l&&s2(()=>Y.isReadableStream(new r("").body)),f={stream:u&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!f[g]&&(f[g]=(y,b)=>{let v=y&&y[g];if(v)return v.call(y);throw new Ze(`Response type '${g}' is not supported`,Ze.ERR_NOT_SUPPORT,b)})});const h=async g=>{if(g==null)return 0;if(Y.isBlob(g))return g.size;if(Y.isSpecCompliantForm(g))return(await new n(tn.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(g)||Y.isArrayBuffer(g))return g.byteLength;if(Y.isURLSearchParams(g)&&(g=g+""),Y.isString(g))return(await c(g)).byteLength},m=async(g,y)=>{const b=Y.toFiniteNumber(g.getContentLength());return b??h(y)};return async g=>{let{url:y,method:b,data:v,signal:T,cancelToken:S,timeout:C,onDownloadProgress:w,onUploadProgress:k,responseType:O,headers:P,withCredentials:j="same-origin",fetchOptions:A}=e2(g),L=t||fetch;O=O?(O+"").toLowerCase():"text";let E=H$([T,S&&S.toAbortSignal()],C),R=null;const M=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let N;try{if(k&&d&&b!=="get"&&b!=="head"&&(N=await m(P,v))!==0){let D=new n(y,{method:"POST",body:v,duplex:"half"}),V;if(Y.isFormData(v)&&(V=D.headers.get("content-type"))&&P.setContentType(V),D.body){const[U,G]=X1(N,ac(Z1(k)));v=t2(D.body,n2,U,G)}}Y.isString(j)||(j=j?"include":"omit");const $=s&&"credentials"in n.prototype,F={...A,signal:E,method:b.toUpperCase(),headers:P.normalize().toJSON(),body:v,duplex:"half",credentials:$?j:void 0};R=s&&new n(y,F);let H=await(s?L(R,A):L(y,F));const z=u&&(O==="stream"||O==="response");if(u&&(w||z&&M)){const D={};["status","statusText","headers"].forEach(X=>{D[X]=H[X]});const V=Y.toFiniteNumber(H.headers.get("content-length")),[U,G]=w&&X1(V,ac(Z1(w),!0))||[];H=new r(t2(H.body,n2,U,()=>{G&&G(),M&&M()}),D)}O=O||"text";let _=await f[Y.findKey(f,O)||"text"](H,g);return!z&&M&&M(),await new Promise((D,V)=>{K1(D,V,{data:_,headers:bn.from(H.headers),status:H.status,statusText:H.statusText,config:g,request:R})})}catch($){throw M&&M(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new Ze("Network Error",Ze.ERR_NETWORK,g,R),{cause:$.cause||$}):Ze.from($,$&&$.code,g,R)}}},X$=new Map,i2=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let a=s.length,l=a,c,d,u=X$;for(;l--;)c=s[l],d=u.get(c),d===void 0&&u.set(c,d=l?new Map:K$(t)),u=d;return d};i2();const Uf={http:b$,xhr:V$,fetch:{get:i2}};Y.forEach(Uf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const a2=e=>`- ${e}`,Z$=e=>Y.isFunction(e)||e===null||e===!1;function J$(e,t){e=Y.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let a=0;a<n;a++){r=e[a];let l;if(o=r,!Z$(r)&&(o=Uf[(l=String(r)).toLowerCase()],o===void 0))throw new Ze(`Unknown adapter '${l}'`);if(o&&(Y.isFunction(o)||(o=o.get(t))))break;s[l||"#"+a]=o}if(!o){const a=Object.entries(s).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since :
253
+ `)}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(o=>r.set(o)),r}static accessor(t){const r=(this[q1]=this[q1]={accessors:{}}).accessors,o=this.prototype;function s(a){const l=oa(a);r[l]||(N$(o,a),r[l]=!0)}return Y.isArray(t)?t.forEach(s):s(t),this}};bn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(bn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),Y.freezeMethods(bn);function Hf(e,t){const n=this||ra,r=t||n,o=bn.from(r.headers);let s=r.data;return Y.forEach(e,function(l){s=l.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function G1(e){return!!(e&&e.__CANCEL__)}function Ts(e,t,n){Ze.call(this,e??"canceled",Ze.ERR_CANCELED,t,n),this.name="CanceledError"}Y.inherits(Ts,Ze,{__CANCEL__:!0});function K1(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ze("Request failed with status code "+n.status,[Ze.ERR_BAD_REQUEST,Ze.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function $$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function L$(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,a;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=r[s];a||(a=d),n[o]=c,r[o]=d;let f=s,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-a<t)return;const m=u&&d-u;return m?Math.round(h*1e3/m):void 0}}function B$(e,t){let n=0,r=1e3/t,o,s;const a=(d,u=Date.now())=>{n=u,o=null,s&&(clearTimeout(s),s=null),e(...d)};return[(...d)=>{const u=Date.now(),f=u-n;f>=r?a(d,u):(o=d,s||(s=setTimeout(()=>{s=null,a(o)},r-f)))},()=>o&&a(o)]}const ac=(e,t,n=3)=>{let r=0;const o=L$(50,250);return B$(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,c=a-r,d=o(c),u=a<=l;r=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-a)/d:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},X1=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Z1=e=>(...t)=>Y.asap(()=>e(...t)),_$=tn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,tn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(tn.origin),tn.navigator&&/(msie|trident)/i.test(tn.navigator.userAgent)):()=>!0,F$=tn.hasStandardBrowserEnv?{write(e,t,n,r,o,s,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];Y.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),Y.isString(r)&&l.push(`path=${r}`),Y.isString(o)&&l.push(`domain=${o}`),s===!0&&l.push("secure"),Y.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function W$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function z$(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function J1(e,t,n){let r=!W$(t);return e&&(r||n==!1)?z$(e,t):t}const Q1=e=>e instanceof bn?{...e}:e;function Eo(e,t){t=t||{};const n={};function r(d,u,f,h){return Y.isPlainObject(d)&&Y.isPlainObject(u)?Y.merge.call({caseless:h},d,u):Y.isPlainObject(u)?Y.merge({},u):Y.isArray(u)?u.slice():u}function o(d,u,f,h){if(Y.isUndefined(u)){if(!Y.isUndefined(d))return r(void 0,d,f,h)}else return r(d,u,f,h)}function s(d,u){if(!Y.isUndefined(u))return r(void 0,u)}function a(d,u){if(Y.isUndefined(u)){if(!Y.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function l(d,u,f){if(f in t)return r(d,u);if(f in e)return r(void 0,d)}const c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(d,u,f)=>o(Q1(d),Q1(u),f,!0)};return Y.forEach(Object.keys({...e,...t}),function(u){const f=c[u]||o,h=f(e[u],t[u],u);Y.isUndefined(h)&&f!==l||(n[u]=h)}),n}const e2=e=>{const t=Eo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:l}=t;if(t.headers=a=bn.from(a),t.url=V1(J1(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Y.isFormData(n)){if(tn.hasStandardBrowserEnv||tn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(Y.isFunction(n.getHeaders)){const c=n.getHeaders(),d=["content-type","content-length"];Object.entries(c).forEach(([u,f])=>{d.includes(u.toLowerCase())&&a.set(u,f)})}}if(tn.hasStandardBrowserEnv&&(r&&Y.isFunction(r)&&(r=r(t)),r||r!==!1&&_$(t.url))){const c=o&&s&&F$.read(s);c&&a.set(o,c)}return t},V$=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=e2(e);let s=o.data;const a=bn.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=o,u,f,h,m,g;function y(){m&&m(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function v(){if(!b)return;const S=bn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:S,config:e,request:b};K1(function(O){n(O),y()},function(O){r(O),y()},w),b=null}"onloadend"in b?b.onloadend=v:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(v)},b.onabort=function(){b&&(r(new Ze("Request aborted",Ze.ECONNABORTED,e,b)),b=null)},b.onerror=function(C){const w=C&&C.message?C.message:"Network Error",T=new Ze(w,Ze.ERR_NETWORK,e,b);T.event=C||null,r(T),b=null},b.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||U1;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new Ze(C,w.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,e,b)),b=null},s===void 0&&a.setContentType(null),"setRequestHeader"in b&&Y.forEach(a.toJSON(),function(C,w){b.setRequestHeader(w,C)}),Y.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),d&&([h,g]=ac(d,!0),b.addEventListener("progress",h)),c&&b.upload&&([f,m]=ac(c),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=S=>{b&&(r(!S||S.type?new Ts(null,e,b):S),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const k=$$(o.url);if(k&&tn.protocols.indexOf(k)===-1){r(new Ze("Unsupported protocol "+k+":",Ze.ERR_BAD_REQUEST,e));return}b.send(s||null)})},H$=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(d){if(!o){o=!0,l();const u=d instanceof Error?d:this.reason;r.abort(u instanceof Ze?u:new Ts(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,s(new Ze(`timeout ${t} of ms exceeded`,Ze.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>Y.asap(l),c}},U$=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Y$=async function*(e,t){for await(const n of q$(e))yield*U$(n,t)},q$=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()}},t2=(e,t,n,r)=>{const o=Y$(e,t);let s=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await o.next();if(d){l(),c.close();return}let f=u.byteLength;if(n){let h=s+=f;n(h)}c.enqueue(new Uint8Array(u))}catch(d){throw l(d),d}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},n2=64*1024,{isFunction:lc}=Y,G$=(({Request:e,Response:t})=>({Request:e,Response:t}))(Y.global),{ReadableStream:r2,TextEncoder:o2}=Y.global,s2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},K$=e=>{e=Y.merge.call({skipUndefined:!0},G$,e);const{fetch:t,Request:n,Response:r}=e,o=t?lc(t):typeof fetch=="function",s=lc(n),a=lc(r);if(!o)return!1;const l=o&&lc(r2),c=o&&(typeof o2=="function"?(g=>y=>g.encode(y))(new o2):async g=>new Uint8Array(await new n(g).arrayBuffer())),d=s&&l&&s2(()=>{let g=!1;const y=new n(tn.origin,{body:new r2,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!y}),u=a&&l&&s2(()=>Y.isReadableStream(new r("").body)),f={stream:u&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!f[g]&&(f[g]=(y,b)=>{let v=y&&y[g];if(v)return v.call(y);throw new Ze(`Response type '${g}' is not supported`,Ze.ERR_NOT_SUPPORT,b)})});const h=async g=>{if(g==null)return 0;if(Y.isBlob(g))return g.size;if(Y.isSpecCompliantForm(g))return(await new n(tn.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(g)||Y.isArrayBuffer(g))return g.byteLength;if(Y.isURLSearchParams(g)&&(g=g+""),Y.isString(g))return(await c(g)).byteLength},m=async(g,y)=>{const b=Y.toFiniteNumber(g.getContentLength());return b??h(y)};return async g=>{let{url:y,method:b,data:v,signal:k,cancelToken:S,timeout:C,onDownloadProgress:w,onUploadProgress:T,responseType:O,headers:M,withCredentials:j="same-origin",fetchOptions:A}=e2(g),L=t||fetch;O=O?(O+"").toLowerCase():"text";let E=H$([k,S&&S.toAbortSignal()],C),N=null;const P=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let $;try{if(T&&d&&b!=="get"&&b!=="head"&&($=await m(M,v))!==0){let D=new n(y,{method:"POST",body:v,duplex:"half"}),F;if(Y.isFormData(v)&&(F=D.headers.get("content-type"))&&M.setContentType(F),D.body){const[U,q]=X1($,ac(Z1(T)));v=t2(D.body,n2,U,q)}}Y.isString(j)||(j=j?"include":"omit");const R=s&&"credentials"in n.prototype,W={...A,signal:E,method:b.toUpperCase(),headers:M.normalize().toJSON(),body:v,duplex:"half",credentials:R?j:void 0};N=s&&new n(y,W);let V=await(s?L(N,A):L(y,W));const H=u&&(O==="stream"||O==="response");if(u&&(w||H&&P)){const D={};["status","statusText","headers"].forEach(X=>{D[X]=V[X]});const F=Y.toFiniteNumber(V.headers.get("content-length")),[U,q]=w&&X1(F,ac(Z1(w),!0))||[];V=new r(t2(V.body,n2,U,()=>{q&&q(),P&&P()}),D)}O=O||"text";let B=await f[Y.findKey(f,O)||"text"](V,g);return!H&&P&&P(),await new Promise((D,F)=>{K1(D,F,{data:B,headers:bn.from(V.headers),status:V.status,statusText:V.statusText,config:g,request:N})})}catch(R){throw P&&P(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new Ze("Network Error",Ze.ERR_NETWORK,g,N),{cause:R.cause||R}):Ze.from(R,R&&R.code,g,N)}}},X$=new Map,i2=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let a=s.length,l=a,c,d,u=X$;for(;l--;)c=s[l],d=u.get(c),d===void 0&&u.set(c,d=l?new Map:K$(t)),u=d;return d};i2();const Uf={http:b$,xhr:V$,fetch:{get:i2}};Y.forEach(Uf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const a2=e=>`- ${e}`,Z$=e=>Y.isFunction(e)||e===null||e===!1;function J$(e,t){e=Y.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let a=0;a<n;a++){r=e[a];let l;if(o=r,!Z$(r)&&(o=Uf[(l=String(r)).toLowerCase()],o===void 0))throw new Ze(`Unknown adapter '${l}'`);if(o&&(Y.isFunction(o)||(o=o.get(t))))break;s[l||"#"+a]=o}if(!o){const a=Object.entries(s).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since :
254
254
  `+a.map(a2).join(`
255
255
  `):" "+a2(a[0]):"as no adapter specified";throw new Ze("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const l2={getAdapter:J$,adapters:Uf};function Yf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ts(null,e)}function c2(e){return Yf(e),e.headers=bn.from(e.headers),e.data=Hf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),l2.getAdapter(e.adapter||ra.adapter,e)(e).then(function(r){return Yf(e),r.data=Hf.call(e,e.transformResponse,r),r.headers=bn.from(r.headers),r},function(r){return G1(r)||(Yf(e),r&&r.response&&(r.response.data=Hf.call(e,e.transformResponse,r.response),r.response.headers=bn.from(r.response.headers))),Promise.reject(r)})}const d2="1.13.2",cc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const u2={};cc.transitional=function(t,n,r){function o(s,a){return"[Axios v"+d2+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,l)=>{if(t===!1)throw new Ze(o(a," has been removed"+(n?" in "+n:"")),Ze.ERR_DEPRECATED);return n&&!u2[a]&&(u2[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,a,l):!0}},cc.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Q$(e,t,n){if(typeof e!="object")throw new Ze("options must be an object",Ze.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],a=t[s];if(a){const l=e[s],c=l===void 0||a(l,s,e);if(c!==!0)throw new Ze("option "+s+" must be "+c,Ze.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ze("Unknown option "+s,Ze.ERR_BAD_OPTION)}}const dc={assertOptions:Q$,validators:cc},wr=dc.validators;let Oo=class{constructor(t){this.defaults=t||{},this.interceptors={request:new H1,response:new H1}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
256
- `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Eo(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&dc.assertOptions(r,{silentJSONParsing:wr.transitional(wr.boolean),forcedJSONParsing:wr.transitional(wr.boolean),clarifyTimeoutError:wr.transitional(wr.boolean)},!1),o!=null&&(Y.isFunction(o)?n.paramsSerializer={serialize:o}:dc.assertOptions(o,{encode:wr.function,serialize:wr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),dc.assertOptions(n,{baseUrl:wr.spelling("baseURL"),withXsrfToken:wr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&Y.merge(s.common,s[n.method]);s&&Y.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=bn.concat(a,s);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let u,f=0,h;if(!c){const g=[c2.bind(this),void 0];for(g.unshift(...l),g.push(...d),h=g.length,u=Promise.resolve(n);f<h;)u=u.then(g[f++],g[f++]);return u}h=l.length;let m=n;for(;f<h;){const g=l[f++],y=l[f++];try{m=g(m)}catch(b){y.call(this,b);break}}try{u=c2.call(this,m)}catch(g){return Promise.reject(g)}for(f=0,h=d.length;f<h;)u=u.then(d[f++],d[f++]);return u}getUri(t){t=Eo(this.defaults,t);const n=J1(t.baseURL,t.url,t.allowAbsoluteUrls);return V1(n,t.params,t.paramsSerializer)}};Y.forEach(["delete","get","head","options"],function(t){Oo.prototype[t]=function(n,r){return this.request(Eo(r||{},{method:t,url:n,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,l){return this.request(Eo(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Oo.prototype[t]=n(),Oo.prototype[t+"Form"]=n(!0)});let e8=class nx{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(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(l=>{r.subscribe(l),s=l}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,l){r.reason||(r.reason=new Ts(s,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new nx(function(o){t=o}),cancel:t}}};function t8(e){return function(n){return e.apply(null,n)}}function n8(e){return Y.isObject(e)&&e.isAxiosError===!0}const qf={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(qf).forEach(([e,t])=>{qf[t]=e});function f2(e){const t=new Oo(e),n=M1(Oo.prototype.request,t);return Y.extend(n,Oo.prototype,t,{allOwnKeys:!0}),Y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return f2(Eo(e,o))},n}const Ct=f2(ra);Ct.Axios=Oo,Ct.CanceledError=Ts,Ct.CancelToken=e8,Ct.isCancel=G1,Ct.VERSION=d2,Ct.toFormData=sc,Ct.AxiosError=Ze,Ct.Cancel=Ct.CanceledError,Ct.all=function(t){return Promise.all(t)},Ct.spread=t8,Ct.isAxiosError=n8,Ct.mergeConfig=Eo,Ct.AxiosHeaders=bn,Ct.formToJSON=e=>Y1(Y.isHTMLForm(e)?new FormData(e):e),Ct.getAdapter=l2.getAdapter,Ct.HttpStatusCode=qf,Ct.default=Ct;const{Axios:RB,AxiosError:NB,CanceledError:$B,isCancel:LB,CancelToken:BB,VERSION:_B,all:FB,Cancel:WB,isAxiosError:zB,spread:VB,toFormData:HB,AxiosHeaders:UB,HttpStatusCode:YB,formToJSON:qB,getAdapter:GB,mergeConfig:KB}=Ct,Gf={BASE_URL:"https://qa.3sc.ai/api",VERSION:"/v1"},sa={headers:{"Content-Type":"application/json"},withCredentials:!0},p2=Ct.create({baseURL:Gf.BASE_URL,axiosConfig:sa});p2.interceptors.request.use(function(e){return e},function(e){return Promise.reject(e)}),p2.interceptors.response.use(function(e){return e},function(e){return Promise.reject(e)});const Fn={TOKEN:"token",USER:"user",SNOP:"snop",SELECTED_BU:"selected_business_unit",SETTINGS:"settings"},h2={TENANT_ID:"tenant_id",BU_ID:"bu_id"},r8=Object.values({"SKU Name":"sku_name",Node:"node","Channel Name":"channel_name"}),o8=[10,25,50,100],s8={MARK_ALL_READ:"MARK_ALL_READ"},i8=o8.map(e=>({label:e,value:e})),m2={PRIMARY:"PRIMARY",SECONDARY:"SECONDARY"},uc={NOTIFICATION:"/notifications",SETTING:"/configuration/setting"};function fc(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 a8={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 Kf(e,t){function n(o,s,a){if(!(typeof document>"u")){a=fc({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+l}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],a={},l=0;l<s.length;l++){var c=s[l].split("="),d=c.slice(1).join("=");try{var u=decodeURIComponent(c[0]);if(a[u]=e.read(d,u),o===u)break}catch{}}return o?a[o]:a}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",fc({},s,{expires:-1}))},withAttributes:function(o){return Kf(this.converter,fc({},this.attributes,o))},withConverter:function(o){return Kf(fc({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var l8=Kf(a8,{path:"/"});const c8=ql(Fn.SNOP),d8=ql(Fn.SELECTED_BU),u8=ql(Fn.USER);ql(Fn.SETTINGS);const g2={BU_IDS:d8?.business_unit_id,TOKEN:JSON.parse(l8.get(Fn.TOKEN)||null),TENANT_IDS:u8?.tenant_id,SNOP_IDS:c8?.snop_id},{TENANT_ID:f8,BU_ID:p8}=h2,{TENANT_IDS:h8,BU_IDS:m8}=g2,ia=async({baseUrl:e,payload:t})=>{try{const n=`${e}${uc.SETTING}/v1?${f8}=${h8}&${p8}=${m8}`;return await Ct.post(n,t,sa)}catch(n){return n}},aa=JSON.parse(localStorage.getItem("configuration")),Xf=localStorage.getItem("i18nextLng"),g8=aa?.entities?.locationHierarchy?.[Xf]??aa?.entities?.locationHierarchy??{},y8=aa?.entities?.productHierarchy?.[Xf]??aa?.entities?.productHierarchy??{},b8=g8?.base??"Node",v8=y8?.base??"SKU",x8=aa?.entities?.labelChannel?.[Xf]||"Channel";JSON.parse(localStorage.getItem("snop"));const w8=({columns:e,gridPath:t,baseUrl:n,isDefaultConfig:r,pageSize:o=10,childUniqueKey:s,data:a})=>{const l=a?.length;let{definitions:c,defaultUserSettings:d,labels:u}=e;const f=Rr(u),h=t.split("/").filter(Boolean),m=JSON.parse(localStorage.getItem(Fn.SETTINGS));let g=h.reduce((S,C)=>S?.[C],m)||null;const y=Rr(g?.columns||[]);if(!r&&t&&l){let S=(d&&Zf({col:d,childUniqueKey:s,definitions:c}))??Zf({col:c,childUniqueKey:s});const C=S.filter(k=>!y[k.key]),w=g&&g?.columns?.some(k=>k?.children&&k.children[s]);if(l&&(C.length||s&&w===!1)){if(w==!1&&s.length>0){const k=Rr(S);S=g?.columns?.map(O=>O?.children&&!O.children[s]?{...O,children:{...O.children,[s]:k?.[O?.key]?.children[s]}}:O)}(async()=>{try{const O={...m||{platform:{theme:"light"}}},P=g?.pageSize??o;let j=O;for(let A=0;A<h.length;A++){const L=h[A];A===h.length-1?j[L]={columns:S,pageSize:P}:(j[L]={...j[L]||{}},j=j[L])}localStorage.setItem(Fn.SETTINGS,JSON.stringify(O)),await ia({baseUrl:n,payload:O})}catch(k){console.error(k)}})()}}d=(g?.columns&&S8(y,d,s))??d??Zf({col:c});const b=[],v=Rr(d);for(const S of c){const C=v[S.key]||{},w=f[S.key]||{},k=y[S.key],O=Rr(C.children||[]),P=Rr(w.children||[]);let j={...S,style:k?.style,...C,...w};S.children?.length&&(j.children=S.children.map(A=>({...A,...O[A.key],...P[A.key]}))),b.push(j)}return b.sort((S,C)=>S.sequenceId-C.sequenceId)},y2=e=>e.sort((t,n)=>t.sequenceId-n.sequenceId),la=({columns:e,childUniqueKey:t,definitions:n})=>{let r=n||e;return e?.map(o=>{let s=r?.find(a=>a?.key===o?.key);return{id:o.id,key:o.key,sequenceId:o.sequenceId||o.id,isHidden:o.isHidden||!1,style:o.style||s?.style||{},...o?.children&&{children:t?{[t]:la({columns:o.children,definitions:s?.children})}:la({columns:o.children,definitions:s?.children})}}})},Rr=e=>Array.isArray(e)&&e?.reduce((t,n)=>(t[n.key]=n,t),{}),Zf=({col:e,childUniqueKey:t,definitions:n})=>la({columns:e,childUniqueKey:t,definitions:n}),S8=(e,t,n)=>t.map(o=>{const s=e[o.key],a=o.children?o.children.map(l=>{const d=Rr(Array.isArray(s?.children)?s?.children:s?.children?.[n])?.[l.key];return{...l,sequenceId:d?.sequenceId||l.sequenceId,isHidden:d?.isHidden??l.isHidden}}):void 0;return{...o,sequenceId:s?.sequenceId||o.sequenceId,isHidden:s?.isHidden??o.isHidden,...a?{children:a}:{}}}),C8=({t:e})=>{const t=[{id:1,key:"sku_name",isSortable:!0,isMandatory:!0},{id:2,key:"node",isSortable:!0,isMandatory:!0},{id:3,key:"channel_name",isSortable:!0,isMandatory:!0}],n=[{id:1,key:"sku_name",sequenceId:1,isHidden:!1,style:{width:"20rem",minWidth:"20rem",maxWidth:"20rem"}},{id:2,key:"node",sequenceId:2,isHidden:!1,style:{width:"20rem",minWidth:"20rem",maxWidth:"20rem"}},{id:3,key:"channel_name",sequenceId:3,isHidden:!1,style:{width:"20rem",minWidth:"20rem",maxWidth:"20rem"}}],r=[{id:1,key:"sku_name",label:e(v8),isLocalizable:!1},{id:2,key:"node",label:e(b8),isLocalizable:!1},{id:3,key:"channel_name",label:e(x8),isLocalizable:!1}];return{definitions:t,defaultUserSettings:n,labels:r}},T8=e=>{if(!e)return null;try{const t=JSON.parse(localStorage.getItem(Fn.SETTINGS));return e.split("/").filter(Boolean).reduce((n,r)=>n?.[r],t)??null}catch{return null}},b2=(e=[],t)=>{const n=new Map,r=o=>o.forEach(s=>{n.set(s.key,s);const a=Array.isArray(s.children)?s.children:t?s.children?.[t]??[]:[];a.length&&r(a)});return r(e),n},v2=(e,t,n,r)=>e.map(o=>{const s=t.get(o.key),a=n?.get(o.key),l={key:o.key,sequenceId:s?.sequenceId??a?.sequenceId??o.sequenceId,isHidden:s?.isHidden??!1,style:s?.style??o.style??{}};if(o.children?.length){const c=v2(o.children,t,n,r);if(r){const d=s?.children&&!Array.isArray(s.children)?s.children:{};l.children={...d,[r]:c}}else l.children=c}return l}),k8=({definitions:e=[],defaultSetting:t=[],gridPath:n,childUniqueKey:r})=>{const s=T8(n)?.columns??[],a=b2(s,r),l=b2(t,r),c=(()=>{if(!s.length)return!0;const d=u=>u.some(f=>!a.has(f.key)||d(f.children??[]));return d(e)})();return{settings:v2(e,a,l,r),hasNewColumns:c}},pc=async({settings:e,gridPath:t,baseUrl:n})=>{if(t)try{const r=JSON.parse(localStorage.getItem(Fn.SETTINGS))??{platform:{theme:"light"}},o=t.split("/").filter(Boolean);let s=r;for(let a=0;a<o.length;a++){const l=o[a];a===o.length-1?s[l]={...s[l]??{},columns:e}:(s[l]={...s[l]??{}},s=s[l])}localStorage.setItem(Fn.SETTINGS,JSON.stringify(r)),n&&await ia({baseUrl:n,payload:r})}catch(r){console.error("saveColumnSettings failed:",r)}},E8=e=>{if(!e)return null;const{options:t,...n}=e,r=t?"select":"button",o={button:s=>p.jsx(jr,{...s,styles:{...s.styles,iconPrimary:s?.styles?.variant=="filled"}}),select:s=>p.jsx(se,{sx:{"& .MuiInputBase-input":{padding:"0rem!important"},width:s.styles?.width},children:p.jsx(hv,{...s,options:t})})};return o[r]?o[r](n):null},O8=({presentSetting:e,gridSetting:t,gridPath:n,childUniqueKey:r})=>{if(!n)return e;const o=n.split("/").filter(Boolean);let s=o.reduce((d,u)=>d?.[u],e)||null,a=la({columns:t?.grid,childUniqueKey:r});const l=Rr(s?.columns);a=a?.map(d=>{const u=d?.children||{},f=l?.[d?.key]?.children||{};return{...d,...(Object.keys(f)?.length>0||u?.[r])&&{children:{...f,[r]:u?.[r]}}}});let c=e;for(let d=0;d<o.length;d++){const u=o[d];d===o.length-1?c[u]={columns:a,pageSize:t?.pageSize??null}:(c[u]=c[u]||{},c=c[u])}return{settingObject:e,defaultUserSettings:a}},M8=async({baseUrl:e,gridSetting:t,childUniqueKey:n,gridPath:r})=>{try{const o=JSON.parse(localStorage.getItem("settings")),{settingObject:s,defaultUserSettings:a}=O8({presentSetting:o,gridSetting:t,gridPath:r,childUniqueKey:n});return localStorage.setItem("settings",JSON.stringify(s)),await ia({baseUrl:e,payload:s}),a}catch(o){console.error(o)}},x2=({index:e,visibleGridColumns:t,width:n,columnUpdaterFunction:r})=>{if(!t||!t[e])return null;t[e];let o=`${n/10}rem`;const s=t.map((a,l)=>l===e?{...a,style:{...a.style,width:o,minWidth:o,maxWidth:o}}:a);return r({updatedColumns:s}),s[e]},P8=({definitions:e=[],labels:t=[],settings:n=[],childUniqueKey:r})=>{const o=(f=[],h=!1)=>{const m=[],g=y=>{y?.forEach(b=>{m.push(b);let v=b.children;h&&r&&v&&!Array.isArray(v)&&(v=v[r]??[]),Array.isArray(v)&&v.length&&g(v)})};return g(f),m},s=o(t),a=o(n,!0),l=new Map(s.map(f=>[f.key,f])),c=new Map(a.map(f=>[f.key,f])),d=f=>{if(f){if(typeof f=="number")return f;if(f.includes("rem"))return parseFloat(f)*16;if(f.includes("px"))return parseFloat(f)}},u=f=>{const h=l.get(f.key),m=c.get(f.key),g=f.isMandatory===!0;return{id:f.key,label:h?.label,field:f.key,renderHeader:y=>p.jsx(Ti,{title:y.helpText??y.label,placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.6rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:y.label??""}),width:d(m?.style?.width??f.style?.width),minWidth:d(f.style?.minWidth),maxWidth:d(f.style?.maxWidth),sortable:f.isSortable??!1,pinned:f.isSticky?"left":void 0,hidden:m?.isHidden??!1,resizable:!g,draggable:f?.isDraggable??!g,hideable:!g,align:"center",deferRender:f.deferRender,renderCell:f.cellRenderer?(y,b,v)=>f.cellRenderer(b,v):void 0,meta:{isMandatory:g,...f},children:f.children?.map(u)}};return e.map(u)},hc=({pagination:e,gridPath:t,baseUrl:n,t:r})=>{const{selectedPage:o,rowPerPage:s,totalRecords:a,onPageChange:l,onPageSizeChange:c}=e,d=gt(),u=async(m,g)=>{if(!g)return;const y=g.split("/").filter(Boolean),b="settings",T={...JSON.parse(localStorage.getItem(b))||{}};let S=T;for(let C=0;C<y.length;C++){const w=y[C];C===y.length-1?S[w]={...S[w]||{},pageSize:m}:(S[w]={...S[w]||{}},S=S[w])}localStorage.setItem(b,JSON.stringify(T)),await ia({baseUrl:n,payload:T})},f=a===0?0:(o-1)*s+1,h=Math.min(o*s,a);return p.jsxs(se,{sx:{display:"flex",p:"1rem 1.5rem"},children:[p.jsxs(se,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"0.5rem",width:"100%"},children:[p.jsx(pt,{sx:{fontSize:"1.1rem",color:d.palette.primary.notifyTextColor},children:r("SHOWING_ROWS",{start:f,end:h,current:Math.min(o*s,a),total:a})}),p.jsx(se,{sx:{"& .MuiInputBase-input":{padding:"0rem 0.8rem!important"},width:"6rem"},children:p.jsx(ms,{options:i8,value:s,onChange:async m=>{c(m),u(m?.value,t)}})})]}),p.jsx(Bg,{count:Math.ceil(a/s),page:o,onChange:async(m,g)=>{l(g)},siblingCount:0,shape:"rounded",sx:{width:"100%","& .MuiPagination-ul":{width:"100%",display:"flex",justifyContent:"flex-end","& li:first-of-type":{border:`0.1rem solid ${d.palette.primary.notifyBorderColor}`,color:d.palette.primary.notifyActiveText,marginRight:"1.5rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex"},"& li:last-child":{border:`0.1rem solid ${d.palette.primary.notifyBorderColor}`,color:d.palette.primary.notifyActiveText,marginLeft:"1.5rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex"}},"& .MuiPaginationItem-root":{color:"#595959",fontSize:"1.1rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex","& .MuiSvgIcon-root":{fontSize:"2.2rem"}},"& .Mui-selected":{color:d.palette.primary.notifyActiveText,backgroundColor:`${d.palette.brandColor.paginationBc} !important`}}})]})};hc.propTypes={pagination:i.object.isRequired};const j8=({customTools:e})=>{const t=e?.filter(r=>r?.type===m2.PRIMARY)?.sort((r,o)=>r.sequenceId-o.sequenceId),n=e?.filter(r=>r?.type===m2.SECONDARY)?.sort((r,o)=>r.sequenceId-o.sequenceId);return{primaryButtons:t,secondaryButtons:n}},w2=({customTools:e,isExpanded:t,setIsExpanded:n})=>{const{primaryButtons:r,secondaryButtons:o}=j8({customTools:e}),[s,a]=x.useState(r),l=o?.length>0,{t:c}=x.useContext(an),d=f=>{f?a([...r,...o]):setTimeout(()=>{a(r)},100)},u=()=>{const f=!t;n(f),d(f)};return x.useEffect(()=>{d(t)},[e]),p.jsxs(p.Fragment,{children:[t&&p.jsx("div",{style:{position:"fixed",left:0,width:"100vw",height:"4rem",zIndex:998}}),p.jsxs(se,{sx:{display:"flex",alignItems:"center",gap:"0.8rem",flexWrap:"nowrap",maxWidth:"100%",whiteSpace:"nowrap",zIndex:999},children:[p.jsx(Mj,{mode:"popLayout",children:s.map((f,h)=>p.jsx(Zr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},layout:!0,children:p.jsx(se,{sx:{flexShrink:0,minWidth:"fit-content"},children:E8(f)})},`${f.id}_${h}`))}),l&&p.jsx(se,{sx:{paddingLeft:t?"0.5rem":0},children:p.jsx(jr,{label:t?"":c("LABEL_MORE_ACTIONS"),styles:{iconPrimary:!0,icon:t?Xe.CrossWhite:Xe.More,colorType:t?"danger":""},onClick:u})})]})]})};w2.propTypes={customTools:i.array.isRequired};const Jf=({defaultTools:e,isManageable:t,customTools:n,baseUrl:r,gridPath:o,pageSize:s,gridData:a,childUniqueKey:l})=>{const{t:c}=x.useContext(an),d=x.useContext(hs),u=x.useContext(Yi)||{},{visibleGridColumns:f=[],triggerApi:h=!1}=u,[m,g]=x.useState([]),[y,b]=x.useState(!1),v=n?.filter(k=>k.position==="left").sort((k,O)=>k.sequenceId-O.sequenceId)||[],T=n?.filter(k=>k.position==="right").sort((k,O)=>k.sequenceId-O.sequenceId)||[];x.useEffect(()=>{if(f.length&&t){const k={id:99999,sequenceId:99999,isLocalizable:!1,key:"horizons",label:c("Horizons"),isSortable:!1,isHidden:!0,showChildCheckbox:!0,showCheckbox:!1,isMandatory:!0,showInHierarchy:!0,showHide:!0,children:[]};let O=f.map(j=>(j?.children&&j.children.forEach(A=>{k.children.some(E=>E.key===A.key)||k.children.push({...A,showInHierarchy:!0})}),j)).filter(j=>j?.id!==k?.id);const P=k.children.length>0?[...O,k]:O;g(P)}},[f]);const S=async k=>{try{await M8({baseUrl:r,gridPath:o,childUniqueKey:l,gridSetting:{grid:k,pageSize:s}})}catch(O){console.error(O)}finally{d({type:Ve.HAS_SETTING_CHANGE,payload:{hasChange:!1}}),d({type:Ve.TRIGGER_API,payload:{triggerApi:!1}})}};x.useEffect(()=>{h&&t&&S(f)},[h]);const C=k=>{const O=k?.map(A=>A.id),P=k?.flatMap(A=>A.children||[])?.map(A=>A.id),j=m?.map(A=>{const L=O?.includes(A.id);if(Array.isArray(A.children)&&A.children.length>0){const R=A?.children?.map(N=>{const $=P?.includes?.(N.id);return{...N,isHidden:!$}}),M=R?.filter(N=>m?.some($=>$.children?.some(F=>F.id===N.id)))?.every(N=>N.isHidden);return{...A,...!A.children[0]?.showInHierarchy&&{isHidden:M||!L},children:R}}return{...A,isHidden:!L}});d({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:j}}),d({type:Ve.HAS_SETTING_CHANGE,payload:{hasChange:!0}})},w=()=>m.map(O=>{const P=Array.isArray(O.children)?O.children.filter(j=>!j.isHidden):void 0;return!O.isHidden||O.isHidden&&O.showInHierarchy?{...O,children:P}:null}).filter(Boolean);return p.jsxs(se,{sx:{margin:"1rem 0",position:"relative",zIndex:10,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:"0.6rem",width:"100%"},children:[p.jsxs(se,{sx:{display:"flex",flexDirection:"row",gap:"0.6rem",alignItems:"center"},children:[e?.search?.isRequired&&p.jsx(dv,{...e?.search,iconUrl:Xe.Search}),e?.refresh?.isRequired&&p.jsx(jr,{...e?.refresh,styles:{variant:"filled",icon:Xe.Refresh,colorType:"empty",width:"3.2rem",height:"3.2rem"}}),e?.groupBy?.isRequired&&p.jsx(se,{sx:{"& .MuiInputBase-input":{padding:"0rem!important"}},children:p.jsx(ms,{styles:{icon:Xe.Group},...e.groupBy})}),t&&p.jsx(se,{sx:{"& .MuiInputBase-input":{padding:"0rem!important"}},children:p.jsx(ms,{placeholder:c("LABEL_MANAGE_COLUMN"),options:m,value:w(),isMulti:!0,isDraggable:!0,showSearch:!0,isManageColumn:!0,onChange:C,disabled:!a.length,styles:{icon:Xe.Manage}})}),v?.length>0&&v.map((k,O)=>p.jsx(x.Fragment,{children:k.render()},k.id))]}),p.jsxs(se,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"0.6rem"},children:[T?.length>0&&T.map((k,O)=>p.jsx(x.Fragment,{children:k.render()},k.id)),n&&p.jsx(w2,{customTools:n,setIsExpanded:b,isExpanded:y}),e?.save?.isRequired&&p.jsx(se,{sx:{px:"0.5rem"},children:p.jsx(jr,{label:y?"":"Save",styles:{icon:Xe.Save,colorType:"empty"},...e?.save})}),e?.upload?.isRequired&&p.jsx(jr,{...e?.upload,styles:{variant:y?"outlined":"filled",icon:y?Xe.UploadDark:Xe.Upload,iconPrimary:!y,colorType:"secondary",isAnimate:!0}}),e?.download?.isRequired&&p.jsx(jr,{...e?.download,styles:{variant:"outlined",icon:Xe.Download,isAnimate:!0}})]})]})};Jf.propTypes={defaultTools:i.object.isRequired,customTools:i.array,isManageable:i.bool,baseUrl:i.string,gridPath:i.gridPath},te(Rd)(({theme:e})=>({"& .MuiPaper-root":{borderRadius:8,border:`1px solid ${e.palette.primary.notifyBorderColor}`,boxShadow:e.shadows[4],padding:"1rem 1rem 0rem 1rem",backgroundColor:e.palette.primary.notifyBackground}}));const Nr=te(pt)(({theme:e})=>({color:e.palette.primary.notifyTextColor,fontSize:"1.1rem"})),I8=te(Hg)(({theme:e})=>({width:28,height:16,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:"#1890ff",...e.applyStyles("dark",{backgroundColor:"#177ddc"})}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:12,height:12,borderRadius:6,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:16/2,opacity:1,backgroundColor:"rgba(0,0,0,.25)",boxSizing:"border-box",...e.applyStyles("dark",{backgroundColor:"rgba(255,255,255,.35)"})}})),D8=te(ts)(({theme:e})=>({color:e.palette.primary.notifyTextColor,padding:"0.6rem 0",fontSize:"0.9rem",fontWeight:500,"&::before, &::after":{borderColor:`${e.palette.primary.notifyBorderColor}!important`}})),A8=te(Md)(({theme:e})=>({"& .MuiBadge-badge":{right:3.5,top:1.8,border:`0.1rem solid ${e.palette.primary.notifyBackground}`,padding:"0 1.3px",borderRadius:"50%",backgroundColor:"#D44E40",fontSize:"0.725rem",minWidth:"0.7rem",height:"0.7rem"}}));te(Jd)(({theme:e})=>({"& .MuiInputBase-root":{height:"3.52rem"},"& .MuiFormLabel-root":{color:`${e.palette.primary.notifyBorderColor} !important`,fontSize:"1rem",marginTop:"0.4rem"},"& label.Mui-focused":{color:e.palette.primary.notifyTextColor},"& .MuiInput-underline:after":{borderBottomColor:e.palette.primary.notifyBorderColor,borderBottomWidth:"0.1rem"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"},"&:hover fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"},"&.Mui-focused fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"}}}));const R8=te(o0)(({theme:e})=>({minHeight:"2rem","& .MuiTabs-indicator":{height:"0.1rem",backgroundColor:e.palette.primary.notifyActiveText}})),Qf=te(Ug)(({theme:e})=>({color:e.palette.primary.notifyActiveText,textTransform:"none",fontWeight:"normal",padding:0,fontSize:"1rem",minHeight:"2rem",paddingBottom:"1rem","&.Mui-selected":{fontWeight:"bold",color:e.palette.primary.notifyActiveText}})),mc=te(Gm)(({theme:e})=>({"&.MuiChip-outlined":{borderColor:e.palette.primary.notifyBorderColor,color:e.palette.primary.notifyActiveText},height:"2rem",fontSize:"0.9rem",fontWeight:"300",borderColor:e.palette.primary.notifyBorderColor,color:e.palette.primary.notifyActiveText,borderRadius:"0.6rem",padding:"0.2rem","&:hover":{backgroundColor:`${e.palette.brandColor.orange} !important`,color:`${e.palette.brandColor.white} !important`}}));function N8(e,t){const n=new Map((t??[]).map(s=>[s.id,s.label])),r=[],o=new Set;for(const s of e)s.label?.trim()&&(s.groupId?(o.has(s.groupId)||(o.add(s.groupId),r.push({isGroup:!0,id:s.groupId,label:n.get(s.groupId)??s.groupId,children:[]})),r.find(a=>a.isGroup&&a.id===s.groupId)?.children.push(s)):r.push({isGroup:!1,...s}));return r}const ks=({children:e,indent:t=!1,onClick:n,...r})=>p.jsx(Ge,{direction:"row",alignItems:"center",gap:"0.5rem",onClick:n,sx:{pl:t?"2.2rem":"0.8rem",pr:"0.8rem",py:"0.4rem",cursor:"pointer",minHeight:"2rem",userSelect:"none","&:hover":{background:o=>o.palette.action?.hover??"rgba(0,0,0,0.04)"}},...r,children:e}),Es=({hidden:e,children:t})=>p.jsx(pt,{sx:{fontSize:"1.1rem",fontWeight:300,color:n=>e?n.palette.primary.notifyTextColor:n.palette.primary.notifyActiveText,overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t});function $8({item:e,onDragEnd:t,hiddenIds:n,expandedIds:r,toggleExpand:o,handleGroupToggle:s,handleChildToggle:a,groupAllVisible:l,groupSomeVisible:c}){const d=ov(),u=r.has(e.id);return p.jsxs(lv,{value:e,dragListener:!1,dragControls:d,onDragEnd:t,as:"div",whileDrag:{opacity:.75,scale:1.01,zIndex:50},layout:!1,style:{listStyle:"none"},children:[p.jsx(ks,{onClick:()=>e.children.length===1&&s(e),children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(se,{onPointerDown:f=>f.stopPropagation(),onClick:f=>{f.stopPropagation(),o(e.id)},sx:{cursor:"pointer",flexShrink:0,width:"2rem",height:"0.9rem",opacity:.6,display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(Vt,{url:u?Xe.ArrowSelectUp:Xe.ArrowRight})}),p.jsxs(Ge,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(se,{onPointerDown:f=>f.stopPropagation(),children:p.jsx(gr,{sx:{p:0},checked:l(e),indeterminate:c(e),onClick:f=>{f.stopPropagation(),s(e)}})}),p.jsx(Es,{hidden:!l(e)&&!c(e),children:e.label})]})]})}),u&&e.children.map(f=>p.jsx(ks,{indent:!0,onClick:()=>a(f),children:p.jsxs(Ge,{direction:"row",gap:"1rem",width:"100%",children:[p.jsx(se,{sx:{flexShrink:0,width:"1rem",height:"0.9rem"}}),p.jsx(se,{onPointerDown:h=>h.stopPropagation(),children:p.jsx(gr,{sx:{p:0},checked:!n.has(f.id),onClick:h=>{h.stopPropagation(),a(f)}})}),p.jsx(Es,{hidden:n.has(f.id),children:f.label})]})},f.id))]})}function L8({item:e,onDragEnd:t,hiddenIds:n,handleLeafToggle:r}){const o=ov();return p.jsx(lv,{value:e,dragListener:!1,dragControls:o,onDragEnd:t,as:"div",whileDrag:{opacity:.75,scale:1.01,zIndex:50},layout:!1,style:{listStyle:"none"},children:p.jsx(ks,{onClick:()=>r(e),children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(se,{sx:{flexShrink:0,width:"2rem",height:"0.9rem"}}),p.jsxs(Ge,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(se,{onPointerDown:s=>s.stopPropagation(),children:p.jsx(gr,{sx:{p:0},checked:!n.has(e.id),onClick:s=>{s.stopPropagation(),r(e)}})}),p.jsx(Es,{hidden:n.has(e.id),children:e.label})]})]})})})}const B8=({engine:e,onClose:t})=>{const{t:n}=x.useContext(an),{orderedColumns:r,toggleColumnVisibility:o,showAllColumns:s,resetColumns:a,moveColumnBefore:l,groups:c=[]}=e,d=x.useMemo(()=>r.filter(M=>M.draggable||M.hideable),[r]),[u,f]=x.useState(""),[h,m]=x.useState(new Set),[g,y]=x.useState(()=>N8(d,c)),b=x.useRef(g),[v,T]=x.useState(()=>{const M=new Set;return d.forEach(N=>{N.hidden&&M.add(N.id)}),M}),S=M=>m(N=>{const $=new Set(N);return $.has(M)?$.delete(M):$.add(M),$}),C=x.useMemo(()=>d.filter(M=>M.label?.trim()).map(M=>M.id),[d]);C.length>0&&C.every(M=>!v.has(M));const w=M=>M.children.every(N=>!v.has(N.id)),k=M=>M.children.some(N=>!v.has(N.id))&&!M.children.every(N=>!v.has(N.id)),O=M=>{const N=new Set(v),$=M.children.every(F=>!N.has(F.id));T(F=>{const H=new Set(F);return M.children.forEach(z=>$?H.add(z.id):H.delete(z.id)),H}),setTimeout(()=>{M.children.forEach(F=>{const H=N.has(F.id);$&&!H&&o(F.id),!$&&H&&o(F.id)})},0)},P=M=>{o(M.id),T(N=>{const $=new Set(N);return $.has(M.id)?$.delete(M.id):$.add(M.id),$})},j=M=>{o(M.id),T(N=>{const $=new Set(N);return $.has(M.id)?$.delete(M.id):$.add(M.id),$})},A=M=>{y(M),b.current=M},L=()=>{const N=b.current.flatMap($=>$.isGroup?$.children.map(F=>F.id):[$.id]);setTimeout(()=>{for(let $=N.length-2;$>=0;$--)l(N[$],N[$+1])},0)},E=x.useMemo(()=>{if(!u)return g;const M=u.toLowerCase();return g.reduce((N,$)=>{if($.isGroup){const F=$.label.toLowerCase().includes(M),H=$.children.filter(z=>z.label.toLowerCase().includes(M));F?N.push($):H.length&&N.push({...$,children:H})}else $.label.toLowerCase().includes(M)&&N.push($);return N},[])},[g,u]),R={hiddenIds:v,expandedIds:h,toggleExpand:S,handleGroupToggle:O,handleChildToggle:P,handleLeafToggle:j,groupAllVisible:w,groupSomeVisible:k,onDragEnd:L};return p.jsxs(se,{sx:{display:"flex",flexDirection:"column",height:"100%",background:M=>M.palette.primary.notifyBackground,border:M=>`0.1rem solid ${M.palette.primary.notifyBorderColor}`,overflow:"hidden",py:"1rem"},children:[p.jsx(se,{sx:{flexShrink:0,padding:"0rem 1rem",pb:"0.5rem"},children:p.jsx(Ui,{type:"text",placeholder:n("SEARCH"),value:u,variant:"standard",size:"small",InputProps:{disableUnderline:!0},onChange:M=>f(M.target.value),sx:{background:M=>M.palette.primary.appBackground,borderRadius:"0.8rem",border:M=>`0.1rem solid ${M.palette.primary.notifyBorderColor}`,width:"100%","& .MuiInputBase-input":{padding:"0.5rem 0.8rem!important",height:"1.8rem"}}})}),p.jsx(se,{sx:{flex:1,overflowY:"auto",scrollbarWidth:"thin"},children:(u?E:g).length===0?p.jsx(Ge,{justifyContent:"center",alignItems:"center",sx:{height:"3rem"},children:p.jsx(pt,{sx:{color:M=>M.palette.primary.notifyTextColor,fontSize:"1.1rem"},children:n("NO_OPTIONS")})}):u?p.jsx(se,{children:E.map(M=>M.isGroup?p.jsxs(se,{children:[p.jsx(ks,{onClick:()=>M.children.length===1&&O(M),children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(se,{onClick:N=>{N.stopPropagation(),S(M.id)},sx:{cursor:"pointer",flexShrink:0,width:"2rem",height:"0.9rem",opacity:.6,display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(Vt,{url:h.has(M.id)?Xe.ArrowSelectUp:Xe.ArrowRight})}),p.jsxs(Ge,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(gr,{sx:{p:0},checked:w(M),indeterminate:k(M),onClick:N=>{N.stopPropagation(),O(M)}}),p.jsx(se,{sx:{flexShrink:0,width:"2rem",height:"0.9rem",opacity:.25,display:"flex",alignItems:"center",justifyContent:"center"}}),p.jsx(Es,{hidden:!w(M)&&!k(M),children:M.label})]})]})}),M.children.map(N=>p.jsx(ks,{indent:!0,onClick:()=>P(N),children:p.jsxs(Ge,{direction:"row",gap:"1rem",width:"100%",children:[p.jsx(se,{sx:{flexShrink:0,width:"1rem",height:"0.9rem"}}),p.jsx(gr,{sx:{p:0},checked:!v.has(N.id),onClick:$=>{$.stopPropagation(),P(N)}}),p.jsx(Es,{hidden:v.has(N.id),children:N.label})]})},N.id))]},M.id):p.jsx(ks,{onClick:()=>j(M),children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(se,{sx:{flexShrink:0,width:"2rem",height:"0.9rem"}}),p.jsxs(Ge,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(gr,{sx:{p:0},checked:!v.has(M.id),onClick:N=>{N.stopPropagation(),j(M)}}),p.jsx(se,{sx:{flexShrink:0,width:"2rem",height:"0.5rem",opacity:.25,display:"flex",alignItems:"center",justifyContent:"center"}}),p.jsx(Es,{hidden:v.has(M.id),children:M.label})]})]})},M.id))}):p.jsx(cA,{as:"div",axis:"y",values:g,onReorder:A,style:{padding:0,margin:0},children:g.map(M=>M.isGroup?p.jsx($8,{item:M,...R},M.id):p.jsx(L8,{item:M,...R},M.id))})})]})};function _8({columns:e,data:t,maxHeight:n=400,freezeColId:r,features:o,rowHeight:s,colMgr:a,sidebarOpen:l,onColumnSave:c,onColumnReorder:d,onColumnResize:u,...f}){const h=gt(),m=h.mode==="dark"?"dark":"light",g=h.palette.primary.notifyBackground,y=h.palette.primary.appBackground,b=h.palette.primary.notifyTextColor,v=h.palette.primary.notifyActiveText,T=h.palette.primary.notifyBorderColor,S=h.typography?.fontFamily??"Euclid Circular Regular, sans-serif",C={root:{borderRadius:"1.4rem 0 0 1.4rem",border:`0.1rem solid ${T}`,borderRight:l?"none":`0.1rem solid ${T}`,background:g,fontFamily:S,fontSize:"1.1rem",overflow:"hidden"},headerRow:{background:g,color:v,fontWeight:600},groupRow:{background:g,color:v,borderColor:T,borderLeft:`0.1rem solid ${T}`,fontWeight:600,borderBottom:`0.1rem solid ${T}`},groupHeaderCell:{borderColor:T,borderLeft:`0.1rem solid ${T}`,borderRight:`0.1rem solid ${T}`},headerCell:{background:g,color:b,borderColor:T,borderRight:"none",padding:"0 12px",textAlign:"center",fontWeight:"bold",fontSize:"1.1rem",lineHeight:"1.5rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},row:{background:g,color:b,borderColor:T,fontSize:"1.1rem"},cell:{background:g,borderBottom:`0.1rem solid ${T}`,borderRight:"none",color:b,borderColor:T,padding:"0",textAlign:"center",fontSize:"1.1rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontVariantNumeric:"tabular-nums"},pinnedCell:{background:g,color:b,borderBottom:`0.1rem solid ${T}`,borderRight:"none",padding:"0"},pinnedHeaderCell:{background:g,color:b,borderColor:T,borderRight:"none",padding:"0"},rowSelected:{background:y}},w={sortAsc:p.jsx(Vt,{url:Xe.AscSort}),sortDesc:p.jsx(Vt,{url:Xe.DescSort}),sortNone:p.jsx(Vt,{url:Xe.Unsort})},k={columns:e,data:t,rowHeight:s,maxHeight:n,theme:m,features:o,styles:C,icons:w,slots:{loadingCell:p.jsx(Zl,{type:"cell"}),toolbar:O=>{a.captureEngine(O)},rowSelectionIndicator:(O,P)=>p.jsx("div",{style:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(to right, #F9B16E, #F68080)",pointerEvents:"none",zIndex:5}})},onColumnStateChange:O=>c?.(O),onColumnReorder:d,onColumnResize:u,...f};return p.jsx(jN,{...k})}function F8(e){const{t}=x.useContext(an),n=AN(),{tableProps:r,toolbarProps:o}=e,{pagination:s={},data:a=[],childUniqueKey:l=""}=r??{},{gridPath:c="",baseUrl:d=""}=o??{},{columns:u}=r??{},f=u?.definitions??[],h=u?.defaultUserSettings??[],m=x.useMemo(()=>f.filter(R=>R.isVisible!==!1),[u?.definitions]),{settings:g,hasNewColumns:y}=x.useMemo(()=>!c||!f.length?{settings:u?.settings??[],hasNewColumns:!1}:k8({definitions:f,defaultSetting:h,gridPath:c,childUniqueKey:l}),[c,l]),b=x.useRef(null),v=x.useRef(null),T=x.useRef(g),S=x.useRef(l);S.current!==l&&(S.current=l,T.current=g,v.current=null);const C=R=>{const M=[];return R.forEach(N=>{M.push(N),(Array.isArray(N.children)?N.children:l?N.children?.[l]??[]:[]).forEach(F=>M.push(F))}),M},w=x.useCallback(R=>{c&&(clearTimeout(b.current),b.current=setTimeout(()=>{const M=new Map(R.map(z=>[z.id,z])),N=new Map(C(T.current).map(z=>[z.key,z])),$=new Map(C(g).map(z=>[z.key,z])),F=f.map(z=>{const _=M.get(z.key),D=N.get(z.key)??$.get(z.key),V={key:z.key,sequenceId:D?.sequenceId??0,isHidden:_?_.hidden:D?.isHidden??!0,style:D?.style??z.style??{}};if(z.children?.length&&l){const U=D?.children&&!Array.isArray(D.children)?D.children:{},G=z.children.map(X=>{const q=M.get(X.key),K=N.get(X.key)??$.get(X.key);return{key:X.key,sequenceId:K?.sequenceId??0,isHidden:q?q.hidden:K?.isHidden??!1,style:K?.style??X.style??{}}});V.children={...U,[l]:G}}return V}),H=JSON.stringify(F);if(v.current===null){v.current=H,T.current=F,y&&pc({settings:F,gridPath:c,baseUrl:d});return}H!==v.current&&(v.current=H,T.current=F,pc({settings:F,gridPath:c,baseUrl:d}))},1500))},[c,d,y,f,g,l]),k=x.useCallback(R=>{if(!c)return;const M=new Map(R.map((H,z)=>[H,z])),N=new Map(C(T.current).map(H=>[H.key,H])),$=f.map(H=>{const z=N.get(H.key),_={key:H.key,sequenceId:M.get(H.key)??z?.sequenceId??0,isHidden:z?.isHidden??!1,style:z?.style??H.style??{}};return H.children?.length&&l&&z?.children&&(_.children=z.children),_}),F=JSON.stringify($);F!==v.current&&(v.current=F,T.current=$,pc({settings:$,gridPath:c,baseUrl:d}))},[c,d,f,l]),O=x.useCallback((R,M)=>{c&&(clearTimeout(b.current),b.current=setTimeout(()=>{const N=`${M}px`,$=new Map(C(T.current).map(z=>[z.key,z])),F=f.map(z=>{const _=$.get(z.key),V=z.key===R?{width:N}:_?.style??z.style??{},U={key:z.key,sequenceId:_?.sequenceId??0,isHidden:_?.isHidden??!1,style:V};if(z.children?.length&&l){const G=_?.children??{},q=(Array.isArray(G[l])?G[l]:[]).map(K=>K.key===R?{...K,style:{width:N}}:K);U.children={...G,[l]:q}}return U}),H=JSON.stringify(F);H!==v.current&&(v.current=H,T.current=F,pc({settings:F,gridPath:c,baseUrl:d}))},1500))},[c,d,f,l]),P=x.useMemo(()=>{if(!g.length)return m;const R=new Map(g.map(M=>[M.key,M.sequenceId??0]));return[...m].sort((M,N)=>(R.get(M.key)??0)-(R.get(N.key)??0))},[m,g]),j=x.useMemo(()=>u&&{...u,definitions:P,settings:g,childUniqueKey:l},[u,P,g,l]),A=P8(j),L=x.useRef(null),E={pageSize:s?.rowPerPage,gridData:a};return a.length?p.jsxs(Gt,{children:[o&&p.jsx(Jf,{...o,...E}),p.jsxs(se,{sx:{display:"flex",alignItems:"stretch"},children:[p.jsxs(se,{ref:L,sx:{flex:1,minWidth:0,alignSelf:"flex-start",position:"relative"},children:[p.jsx(_8,{...r,columns:A,colMgr:n,sidebarOpen:!1,onColumnSave:w,onColumnReorder:k,onColumnResize:O}),n.isOpen&&p.jsx(se,{sx:{position:"absolute",top:0,right:0,width:260,height:"100%",zIndex:10,display:"flex",flexDirection:"column",overflow:"hidden"},children:p.jsx(n.ColumnManagerPanel,{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},render:({engine:R,close:M})=>p.jsx(B8,{engine:R,onClose:M})})})]}),p.jsxs(se,{onClick:n.toggle,sx:{width:"2rem",flexShrink:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",gap:"0.5rem",p:"0 1.3rem",borderRadius:(n.isOpen,"0 1.4rem 1.4rem 0"),border:R=>`0.1rem solid ${R.palette.primary.notifyBorderColor}`,borderLeft:"none",background:R=>R.palette.primary.notifyButtonBackground,transition:"background 0.15s","&:hover":{background:R=>R.palette.primary.appBackground}},children:[p.jsx(se,{component:"img",src:Xe.Manage,sx:{width:"1.6rem",height:"2rem",transform:"rotate(90deg)"}}),p.jsx(pt,{sx:{fontSize:"1rem",letterSpacing:"0.08em",writingMode:"vertical-rl",textOrientation:"mixed",transform:"rotate(360deg)",userSelect:"none",color:R=>R.palette.primary.notifyTextColor},children:t("LABEL_MANAGE_COLUMN")})]})]}),s&&p.jsx(hc,{pagination:s,gridPath:c,baseUrl:d,t})]}):p.jsx(Nr,{sx:{textAlign:"center"},children:t(yr.NRF)})}const S2=e=>{let{disabled:t=!1,minWidth:n=0,maxWidth:r,className:o="",id:s,resizeStart:a,resizeEnd:l,defaultWidth:c,rowSpan:d=1,colSpan:u=1}=e;const[f,h]=x.useState(!1),[m,g]=x.useState(0),[y,b]=x.useState(0),[v,T]=x.useState(0),[S,C]=x.useState(null),w=x.useRef(null),k=x.useCallback(E=>{if(!t&&(C(s),a&&a(),h(!0),g(E),b(0),w.current)){const R=w.current.previousSibling;R&&b(R.clientWidth)}},[t,s,a]),O=x.useCallback(()=>{t||(f&&l&&S===s&&l(v),h(!1),C(null))},[t,l,S,s,v,f]),P=x.useCallback(E=>{if(t)return;const R=E instanceof TouchEvent?E.touches[0].screenX:E.screenX;if(!f)return;const M=w.current;if(!M||!M.previousSibling)return;const N=M.previousSibling,$=m-R;let F=y-$;n!==void 0&&F<n&&(F=n),r!==void 0&&F>r&&(F=r),N.style.width=F+"px",N.style.minWidth=F+"px",N.style.maxWidth=F+"px",N.style.setProperty("--column_resize_before_width",F+"px"),T(F)},[t,f,m,y,n,r]);x.useEffect(()=>{const E=w.current;if(E&&E.previousSibling){const R=E.previousSibling;c?(R.style.minWidth=c+"px",R.style.width=c+"px",R.style.maxWidth=c+"px",R.style.setProperty("--column_resize_before_width",c+"px")):n&&(R.style.minWidth=n+"px",R.style.width=n+"px",R.style.maxWidth=n+"px",R.style.setProperty("--column_resize_before_width",n+"px"))}},[c,n]),x.useEffect(()=>{const E=w.current;if(t&&E&&E.previousSibling){const R=E.previousSibling;c&&(R.style.minWidth=c+"px",R.style.width=c+"px",R.style.maxWidth=c+"px",R.style.setProperty("--column_resize_before_width",c+"px")),r&&(R.style.maxWidth=r+"px")}},[t,c,r]);const j=x.useCallback(()=>{document.addEventListener("mousemove",P),document.addEventListener("mouseup",O),document.addEventListener("touchmove",P),document.addEventListener("touchend",O)},[P,O]),A=x.useCallback(()=>{document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",O),document.removeEventListener("touchmove",P),document.removeEventListener("touchend",O)},[P,O]);x.useEffect(()=>(t||j(),()=>{A()}),[t,j,A]);const L={userSelect:"none"};return t||(L.cursor="ew-resize"),o===""&&(L.width="6px",L.backgroundColor="rgba(0, 0, 0, 0.1)"),x.createElement("th",{ref:w,style:L,rowSpan:d,colSpan:u,className:"column_resizer_own_class ".concat(t?"disabled_column_resize":""," ").concat(o),onMouseDown:t?void 0:E=>k(E.screenX),onTouchStart:t?void 0:E=>k(E.touches[0].screenX)})};function gc({isRenderCellContent:e,column:t,row:n,parent:r}){const o=n[t.key],s=o?.length>20;return p.jsx(p.Fragment,{children:e?p.jsx(se,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textTransform:"none",fontSize:"1.1rem"},children:t?.cellRenderer(n,{column:t,parent:r})}):p.jsx(p.Fragment,{children:s?p.jsx(Ti,{title:o,placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.5rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:p.jsx(se,{sx:{maxWidth:"auto",whiteSpace:"normal"},children:p.jsx(pt,{sx:{fontSize:"1.1rem",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textTransform:"none"},children:o})})}):p.jsx(se,{sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textTransform:"none",fontSize:"1.1rem",m:0},id:t.key,component:"p",children:o??""})})})}gc.propTypes={isRenderCellContent:i.bool,column:i.object,row:i.object};const W8=te(ns)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"table-cell",[`&.${Gd.head}`]:{color:e.palette.primary.notifyTextColor,backgroundColor:e.palette.primary.notifyBackground,borderColor:e.palette.primary.notifyBorderColor,padding:"0rem",textAlign:"center",lineHeight:"1.5rem"},[`&.${Gd.body}`]:{color:e.palette.primary.notifyTextColor,borderColor:e.palette.primary.notifyBorderColor,padding:"0rem",textAlign:"center"}}));function Mo({children:e,...t}){return p.jsx(W8,{...t,children:e})}Mo.propTypes={children:i.node};const z8=te(Zg)(()=>({"&:last-child td":{borderBottom:"none"}}));function eo({children:e,...t}){return p.jsx(z8,{...t,children:e})}eo.propTypes={children:i.node};const C2=x.memo(({row:e,isSelected:t,isHigh:n,onRowClick:r,children:o,sxProps:s})=>p.jsx(eo,{sx:a=>({backgroundColor:t||n?a.palette.primary.appBackground:a.palette.primary.notifyBackground,...s}),onClick:()=>r?.(e),children:o},e?.fhi)),T2=x.memo(({nestedData:e,nestedColumn:t,t:n})=>e?.length?p.jsx(p.Fragment,{children:e.map((r,o)=>p.jsx(eo,{children:t.map((s,a)=>p.jsx(Mo,{style:s?.style,children:p.jsx(gc,{isRenderCellContent:!!s?.cellRenderer,column:s,row:r})},a))},`nested-${o}`))}):p.jsx(eo,{children:p.jsx(Mo,{colSpan:t.length,children:p.jsx(Nr,{sx:{textAlign:"center"},children:n(yr.NRF)})})})),k2=(e,t,n,r,o,s)=>{const[a,l]=x.useState({isOpen:!1,column:null}),c=(h,m,g)=>{l({isOpen:h.currentTarget,column:m,isChild:!!g})},d=()=>{l({isOpen:!1,column:null,isChild:!1})},u=async()=>{d();const h=e.map(m=>{if(a?.isChild&&Array.isArray(m.children)){const g=m.children.map(b=>b.key===a.column?.key?{...b,isHidden:!0}:b),y=g.every(b=>b.isHidden);return{...m,isHidden:y?!0:m.isHidden,children:g}}return m.key===a.column?.key?{...m,isHidden:!0}:m});f({updatedColumns:h})},f=async({updatedColumns:h})=>{t({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:h}});const m=r.split("/").filter(Boolean),g=JSON.parse(localStorage.getItem(Fn.SETTINGS));let y=m.reduce((k,O)=>k?.[O],g)||null,b=la({columns:h,childUniqueKey:s});const v=Rr(y?.columns);b=b?.map(k=>{const O=k?.children||{},P=v?.[k?.key]?.children||{};return{...k,...(Object.keys(P)?.length>0||O?.[s])&&{children:{...P,[s]:O?.[s]}}}});const S={...g||{platform:{theme:"light"}}},C=y?.pageSize??o;let w=S;for(let k=0;k<m.length;k++){const O=m[k];k===m.length-1?w[O]={columns:b,pageSize:C}:(w[O]={...w[O]||{}},w=w[O])}localStorage.setItem(Fn.SETTINGS,JSON.stringify(S)),await ia({baseUrl:n,payload:S})};return{selectedColumn:a,handleMenuClick:c,handleClose:d,handleHideClick:u,columnUpdaterFunction:f}},ep=({menuOpen:e,handleClose:t,onHideClick:n})=>{const r=gt(),{t:o}=x.useContext(an);return p.jsx(wi,{open:!!e,anchorEl:e,onClose:t,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:p.jsx(se,{sx:{backgroundColor:r.palette.primary.notifyBackground,border:`0.1rem solid ${r.palette.primary.notifyBorderColor}`,minHeight:"2.3rem",display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx(gl,{onClick:n,disableRipple:!0,sx:{textTransform:"none",fontSize:"1.1rem",p:"0.4rem 1rem",minHeight:"unset",fontWeight:500,color:r.palette.primary.notifyTextColor,backgroundColor:"transparent","&:hover":{backgroundColor:"transparent"},"&:active":{backgroundColor:"transparent"},"&:focus":{backgroundColor:"transparent"}},children:o("LABEL_HIDE_COLUMN")})})})};ep.propTypes={menuOpen:i.object,handleClose:i.func,onHideClick:i.func};const E2=({sortKey:e,sortField:t,sortDir:n,handleSortClick:r})=>{const o=s=>p.jsx(tl,{onClick:r,sx:{padding:"0.2rem"},draggable:!1,children:p.jsx(Vt,{url:s})});return p.jsx(p.Fragment,{children:o(t===e?n==="asc"?Xe.AscSort:Xe.DescSort:Xe.Unsort)})};E2.propTypes={sortKey:i.string.isRequired,sortField:i.string,sortDir:i.string,handleSortClick:i.func};function tp({parent:e,column:t,sort:n,handleMenuClick:r,isManageable:o}){const s=o&&(!t?.isMandatory||t?.isMandatory&&t?.showHide===!0),a=t?.label,l=t?.helpText,c=t?.isSortable,d=n?.sortField,u=n?.sortDir,f=n?.onSort;return p.jsxs(se,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},draggable:!1,children:[p.jsx(se,{sx:{fontWeight:"bold",fontSize:"1.1rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",padding:"0.5rem",textAlign:"center"},children:p.jsx(Ti,{title:l??a,placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.6rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:a??""})}),p.jsxs(se,{sx:{display:"flex",alignItems:"center"},draggable:!1,children:[c&&p.jsx(E2,{sortKey:e?`${e?.key}|${t?.key}`:t?.key,sortField:d,sortDir:u,handleSortClick:()=>f({column:t,sortDir:u,sortField:d,parent:e})}),s&&p.jsx(tl,{draggable:!1,onClick:h=>r(h,t,e),sx:{padding:"0.2rem"},children:p.jsx(Vt,{url:Xe.Menu})})]})]})}tp.propTypes={column:i.object.isRequired,sort:i.object.isRequired,handleMenuClick:i.func,isManageable:i.bool};function O2({rows:e,sort:t,data:n,pagination:r,columns:o,nested:s,baseUrl:a,gridPath:l,childUniqueKey:c,isVirtualizedTable:d=!1,t:u}){const f=gt(),{visibleGridColumns:h}=x.useContext(Yi),m=x.useContext(hs),{selectedColumn:g,handleMenuClick:y,handleClose:b,handleHideClick:v,columnUpdaterFunction:T}=k2(h,m,a,l,r?.rowPerPage,c),S=o?.isManageable,C=o?.isResizable,w=n?.length>0,k=x.useRef(null),O=x.useRef(null),P=45,j=10,A=n?.length,[L,E]=x.useState({start:0,end:10}),[R,M]=x.useState(null),[N,$]=x.useState(null),[F,H]=x.useState(null);let z=null;const _=x.useRef(0),D=x.useRef(!1),V=x.useRef(null),U=y2(s?.column?.definitions||[]),G=s?.isNested,X=s?.data||[],q=s?.hashKey,[K,ce]=x.useState(0);x.useEffect(()=>{if(k.current){const re=()=>{ce(k.current.offsetHeight)};return re(),window.addEventListener("resize",re),()=>window.removeEventListener("resize",re)}},[n]),x.useEffect(()=>{const ie=k.current?.querySelector("thead");if(!ie)return;const Te=()=>{H(null)};return ie?.addEventListener("mousedown",Te),()=>{ie?.removeEventListener("mousedown",Te)}},[]);const de=(re,ie)=>{if(D.current){re.preventDefault();return}M(ie),H(null),re.dataTransfer.setData("colIndex",ie);const Te=h[ie],he=Te?.label,pe=document.createElement("div");pe.textContent=he,Object.assign(pe.style,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1.5rem 2.5rem",minWidth:Te?.style?.minWidth,maxWidth:Te?.style?.maxWidth,fontSize:"1.2rem",fontWeight:"500",color:f.palette.primary.notifyTextColor,background:f.palette.primary.notifyBackground,border:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,borderRadius:"0rem",pointerEvents:"none",position:"absolute",top:"0",left:"0",zIndex:"-1",textAlign:"center",boxSizing:"border-box",boxShadow:"0 1px 4px rgba(0, 0, 0, 0.2)"}),document.body.appendChild(pe);const{offsetWidth:Ie,offsetHeight:Fe}=pe;re.dataTransfer.setDragImage(pe,Ie/2,Fe/2),requestAnimationFrame(()=>{document.body.removeChild(pe)})},W=(re,ie)=>{re.preventDefault(),$(ie),ke(re)},ee=async(re,ie)=>{if(re.preventDefault(),clearInterval(z),R===null||R===ie)return;const Te=[...h],[he]=Te.splice(R,1);Te.splice(ie,0,he);const pe=h.slice().sort((Fe,He)=>Fe.sequenceId-He.sequenceId).map(Fe=>Fe.sequenceId),Ie=Te.map((Fe,He)=>({...Fe,sequenceId:pe[He]??Fe.sequenceId}));T({updatedColumns:Ie}),M(null),$(null)},B=()=>{M(null),$(null)},ue=(re,ie,Te,he)=>{if(!re)return null;const pe=re?.isMandatory&&re?.isSticky,Ie=parseFloat(re?.style?.minWidth?.toString().replace("rem",""))||7.5;ie===0&&(_.current=0);const Fe=pe?ie===0?0:`${_.current}rem`:void 0;pe&&(_.current+=Ie);const He=R===ie,Oe=N==ie||h?.[N]?.isMandatory,Tt=nt=>{re.isMandatory?(nt.preventDefault(),nt.dataTransfer.dropEffect="none"):(nt.preventDefault(),nt.dataTransfer.dropEffect="move"),W?.(nt,ie)},st=nt=>{re.isMandatory||ee?.(nt,ie)};return he&&`${he?.key}${re?.key}${ie}`,p.jsx(Mo,{rowSpan:re?.children?1:2,colSpan:re?.children?.filter(nt=>!nt?.isHidden)?.length,style:re?.style,draggable:Te&&!re?.isMandatory,onDragStart:Te&&!re?.isMandatory?nt=>de(nt,ie):nt=>{nt.preventDefault()},onDragOver:Te&&!re?.isMandatory?Tt:void 0,onDrop:Te&&!re?.isMandatory?st:void 0,onDragEnd:Te&&!re?.isMandatory?B:void 0,sx:{...re?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...re.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...re?.key==="volume_value"&&{borderLeft:"1px solid"}},...He&&{border:`0.1rem solid ${f.palette.brandColor.lightBlue}!important`},...pe&&{position:"sticky",left:Fe,zIndex:3},cursor:Oe?"not-allowed":Te&&!re?.isMandatory?"grab":"default"},children:p.jsx(tp,{parent:he,column:re,sort:t,handleMenuClick:y,isManageable:Te})},ie)},Q=x.useCallback((re,ie,Te,he)=>{if(!re)return null;const pe=re?.isMandatory&&re?.isSticky,Ie=parseFloat(re?.style?.minWidth?.toString().replace("rem",""))||7.5;Te===0&&(_.current=0);const Fe=pe?Te===0?0:`${_.current}rem`:void 0;return pe&&(_.current+=Ie),p.jsxs(Mo,{colSpan:1,style:re?.style,className:`${re?.label}`,sx:{position:"relative",...re.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...re?.key==="volume_value"&&{borderLeft:"1px solid"}},...re?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...pe&&{position:"sticky",left:Fe,zIndex:2,backgroundColor:He=>e?.selectedRow&&e?.selectedRow?.fhi===ie?.fhi||ie?.isHigh?He.palette.primary.appBackground:He.palette.primary.notifyBackground}},children:[(e?.selectedRow&&e?.selectedRow?.fhi===ie?.fhi||ie?.isHigh)&&p.jsx(se,{sx:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none",zIndex:1}}),p.jsx(gc,{isRenderCellContent:!!re?.cellRenderer,column:re,row:ie,parent:he})]},Te)},[e?.selectedRow,f]),ne=(re,ie,Te,he)=>p.jsx(p.Fragment,{children:re&&Te&&!re?.isMandatory?p.jsx(se,{resizeStart:()=>{re?.isMandatory&&!re?.isResizable||(D.current=!0)},resizeEnd:pe=>{re?.isMandatory&&!re?.isResizable||pe<=20||(D.current=!1,x2({index:ie,visibleGridColumns:h,width:pe,columnUpdaterFunction:T}))},component:re?.children||re?.isMandatory?ns:S2,rowSpan:re?.children?1:2,colSpan:1,id:ie,sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,cursor:"col-resize","&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"0.15rem",height:"1.5rem",backgroundColor:f.palette.primary.notifyBorderColor,zIndex:1},...!re?.isMandatory&&{"&:hover::after":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"0.2rem",height:`${K}px`,backgroundColor:f.palette.primary.notifyBorderColor,zIndex:1}}}}):null}),we=x.useCallback((re,ie,Te,he,pe,Ie,Fe)=>p.jsx(p.Fragment,{children:ie&&he&&!ie?.isMandatory?p.jsx(ns,{className:"column_resizer_body",sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${f.palette.primary.notifyBorderColor}`},children:(e?.selectedRow&&e?.selectedRow?.fhi===re?.fhi||re?.isHigh)&&p.jsx(se,{sx:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none"}})},`resize-${Te}_${Fe}`):null}),[e?.selectedRow,f]),ke=re=>{const ie=k.current,{left:Te,right:he}=ie.getBoundingClientRect(),pe=50,Ie=re.clientX>he-pe?1:re.clientX<Te+pe?-1:0;Ie!==0?(V.current&&clearInterval(V.current),V.current=setInterval(()=>{ie.scrollLeft+=Ie*10},50)):V.current&&(clearInterval(V.current),V.current=null)},Ce=re=>re?.map((ie,Te)=>{const he=L.start+Te,pe=ie[q],Ie=X?.[pe],Fe=e?.selectedRow&&e?.selectedRow?.fhi===ie?.fhi,He=ie?.isHigh;return p.jsxs(x.Fragment,{children:[p.jsx(C2,{row:ie,isSelected:Fe,isHigh:He,onRowClick:e?.onRowClick,children:h.map((Oe,Tt)=>Oe?.isHidden||Oe?.isVisible===!1?null:Oe?.children?Oe.children.map((st,nt)=>st?.isHidden?null:p.jsxs(x.Fragment,{children:[Q(st,ie,nt,Oe),C&&we(ie,st,nt,S,Oe,"",he)]},`col-${Tt}-${nt}`)):p.jsxs(x.Fragment,{children:[Q(Oe,ie,Tt),C&&we(ie,Oe,Tt,S,"","",he)]},`col-${Tt}`))}),G&&Ie&&p.jsx(T2,{nestedData:Ie,nestedColumn:U,t:u})]},`row-${he}`)}),ve=()=>{const re=O.current;if(!re)return;const ie=re.scrollTop,Te=re.clientHeight,he=Math.floor(ie/P)-j,pe=Math.ceil(Te/P)+2*j,Ie=Math.max(0,Math.min(A-1,he)),Fe=Math.max(Ie,Math.min(A,Ie+pe));E(He=>He.start===Ie&&He.end===Fe?He:{start:Ie,end:Fe})};x.useEffect(()=>{let re;const ie=()=>{re&&cancelAnimationFrame(re),re=requestAnimationFrame(()=>{ve()})},Te=O.current;if(!(!Te||!d))return ve(),Te.addEventListener("scroll",ie),()=>{cancelAnimationFrame(re),Te.removeEventListener("scroll",ie)}},[A]);const _e=L.start*P,Ee=(A-L.end)*P,xe=d?n?.slice(L.start,L.end):n;return w?p.jsxs(p.Fragment,{children:[p.jsx(Kd,{ref:O,sx:{willChange:"transform",WebkitTransform:"translateZ(0)",maxHeight:"40rem",whiteSpace:"nowrap",overflow:"auto",width:"100%",border:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,borderRadius:"1.4rem",position:"relative"},children:p.jsxs(Yd,{ref:k,stickyHeader:!0,"aria-label":"sticky table",sx:{backgroundColor:re=>re.palette.primary.notifyBackground},children:[p.jsxs(Xd,{children:[p.jsx(eo,{sx:{position:"sticky",top:0,zIndex:3,backgroundColor:re=>re.palette.primary.notifyBackground},children:h.map((re,ie)=>re?.isHidden||re?.isVisible===!1?null:p.jsxs(x.Fragment,{children:[ue(re,ie,S),ne(re,ie,S)]},ie))}),p.jsx(eo,{draggable:!1,sx:{position:"sticky",top:"2.5rem",backgroundColor:f.palette.primary.notifyBackground,zIndex:2},children:h.flatMap((re,ie)=>re?.isHidden||!re?.children||re?.isVisible===!1?[]:re.children.map((Te,he)=>Te?.isHidden?null:p.jsxs(x.Fragment,{children:[ue(Te,he,S,re),C&&ne(Te,he,S)]},`${ie}-${he}`)))})]}),p.jsxs(qd,{children:[d&&p.jsx("tr",{style:{height:_e}}),Ce(xe),d&&p.jsx("tr",{style:{height:Ee}})]})]})}),r&&p.jsx(hc,{pagination:r,gridPath:l,baseUrl:a,t:u}),p.jsx(ep,{menuOpen:g?.isOpen,handleClose:b,onHideClick:v})]}):p.jsx(Nr,{sx:{textAlign:"center"},children:u(yr.NRF)})}O2.propTypes={sort:i.object,data:i.array,pagination:i.object,columns:i.object,nested:i.object};function M2(e){return fv(e?.style?.width??e?.style?.minWidth??e?.style?.maxWidth)||0}const P2=e=>e?.isHidden||e?.isVisible===!1;function V8(e){const t=x.useMemo(()=>{let o=0;return e.flatMap((s,a)=>{if(P2(s))return[];if(Array.isArray(s.children)&&s.children.length){const d=s.children.filter(u=>!P2(u));return d.length?d.map(u=>{const f=M2(u),h={...u,_parent:s,_originalIndex:a,width:f,start:o,end:o+f,isSticky:!!(u?.isSticky??s?.isSticky)};return o+=f,h}):[]}const l=M2(s);if(l===0)return[];const c={...s,_parent:null,_originalIndex:a,width:l,start:o,end:o+l,isSticky:!!s?.isSticky};return o+=l,c})},[e]),n=x.useMemo(()=>{let o=0;const s={};return t.forEach(a=>{a.isSticky&&(s[a.sequenceId]=o,o+=a.width)}),s},[t]);return{columnsMeta:t,stickyOffsets:n,getStickyLeft:o=>{if(!o?.isMandatory||!o?.isSticky)return;const s=n[o.sequenceId];return s===0?0:`${s}px`}}}function H8({visibleGridColumns:e,columnUpdaterFunction:t,isResizingRef:n,startAutoScroll:r,stopAutoScroll:o}){const s=gt(),[a,l]=x.useState(null),[c,d]=x.useState(null),u=x.useCallback((b,v)=>{if(n.current){b.preventDefault();return}l(v),b.dataTransfer.setData("colIndex",v);const T=e[v],S=document.createElement("div");S.textContent=T?.label,Object.assign(S.style,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1.5rem 2.5rem",minWidth:T?.style?.minWidth,maxWidth:T?.style?.maxWidth,fontSize:"1.2rem",fontWeight:"500",color:s.palette.primary.notifyTextColor,background:s.palette.primary.notifyBackground,border:`0.1rem solid ${s.palette.primary.notifyBorderColor}`,borderRadius:"0rem",pointerEvents:"none",position:"absolute",top:"0",left:"0",zIndex:"-1",textAlign:"center",boxSizing:"border-box",boxShadow:"0 1px 4px rgba(0, 0, 0, 0.2)"}),document.body.appendChild(S);const{offsetWidth:C,offsetHeight:w}=S;b.dataTransfer.setDragImage(S,C/2,w/2),requestAnimationFrame(()=>document.body.removeChild(S))},[n,e,s]),f=x.useCallback((b,v)=>{if(b.preventDefault(),e?.[v]?.isMandatory){b.dataTransfer.dropEffect="none";return}b.dataTransfer.dropEffect="move",d(v),r(b.clientX)},[r,e]),h=x.useCallback(async(b,v)=>{if(b.preventDefault(),o(),a===null||a===v||e?.[v]?.isMandatory)return;const T=[...e],[S]=T.splice(a,1);T.splice(v,0,S);const C=[...e].sort((k,O)=>k.sequenceId-O.sequenceId).map(k=>k.sequenceId),w=T.map((k,O)=>({...k,sequenceId:C[O]??k.sequenceId}));t({updatedColumns:w}),l(null),d(null)},[a,e,t,o]),m=x.useCallback(()=>{o(),l(null),d(null)},[o]),g=b=>!b?.isMandatory,y=x.useCallback(b=>c===null||a===null?!1:!!(e?.[b]?.isMandatory||e?.[c]?.isMandatory),[c,a,e]);return{draggedColIndex:a,dragOverIndex:c,handleDragStart:u,handleDragOver:f,handleDrop:h,handleDragEnd:m,isDraggable:g,isInvalidDrop:y}}const j2=50,U8=10,Y8=50;function q8(e){const t=x.useRef(null),n=x.useCallback(()=>{t.current&&(clearInterval(t.current),t.current=null)},[]);return{startAutoScroll:x.useCallback(o=>{const s=e.current;if(!s)return;const{left:a,right:l}=s.getBoundingClientRect(),c=o>l-j2?1:o<a+j2?-1:0;if(c===0){n();return}t.current||(t.current=setInterval(()=>{s.scrollLeft+=c*U8},Y8))},[e,n]),stopAutoScroll:n}}const np=x.memo(function({column:t,index:n,isManageable:r,parent:o,stickyLeft:s,colSpanOverride:a,draggedColIndex:l,isInvalidDrop:c,onDragStart:d,onDragOver:u,onDrop:f,onDragEnd:h,sort:m,handleMenuClick:g}){const y=gt(),b=l===n,v=r&&!t?.isMandatory,T=t?.isMandatory&&t?.isSticky,S=o&&o.children?.find(k=>!k?.isHidden&&k?.isVisible!==!1)?.key===t?.key,C=!o&&Array.isArray(t?.children)&&t.children.some(k=>!k?.isHidden&&k?.isVisible!==!1),w=a??t.children?.filter(k=>!k?.isHidden)?.length;return p.jsx(Mo,{rowSpan:t?.children?1:2,colSpan:w,style:t?.style,draggable:v,onDragStart:v?k=>d(k,n):k=>k.preventDefault(),onDragOver:v?k=>u(k,n):void 0,onDrop:v?k=>f(k,n):void 0,onDragEnd:v?h:void 0,sx:{...t?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...t.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...(S||C)&&{borderLeft:"0.1rem solid"}},...b&&{border:`0.1rem solid ${y.palette.brandColor.lightBlue}!important`},...T&&{position:"sticky",left:s,zIndex:3},cursor:c(n)?"not-allowed":v?"grab":"default"},children:p.jsx(tp,{parent:o,column:t,sort:m,handleMenuClick:g,isManageable:r})},n)}),rp=x.memo(function({column:t,index:n,isManageable:r,tableHeight:o,onResizeStart:s,onResizeEnd:a}){const l=gt();return!t||!r||t?.isMandatory?null:p.jsx(se,{component:t?.children||t?.isMandatory?ns:S2,rowSpan:t?.children?1:2,colSpan:1,id:n,resizeStart:s,resizeEnd:a,sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${l.palette.primary.notifyBorderColor}`,cursor:"col-resize","&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"0.15rem",height:"1.5rem",backgroundColor:l.palette.primary.notifyBorderColor,zIndex:1},"&:hover::after":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"0.2rem",height:`${o}px`,backgroundColor:l.palette.primary.notifyBorderColor,zIndex:1}}})}),G8=x.memo(function({stickyGridColumns:t,virtualisedColumns:n,isManageable:r,isResizable:o,tableHeight:s,sort:a,handleMenuClick:l,getStickyLeft:c,offsetX:d,draggedColIndex:u,isInvalidDrop:f,onDragStart:h,onDragOver:m,onDrop:g,onDragEnd:y,isResizingRef:b,columnUpdaterFunction:v,visibleGridColumns:T}){const S=gt(),C={draggedColIndex:u,isInvalidDrop:f,onDragStart:h,onDragOver:m,onDrop:g,onDragEnd:y},w=(O,P)=>({onResizeStart:()=>{O?.isMandatory&&!O?.isResizable||(b.current=!0)},onResizeEnd:j=>{O?.isMandatory&&!O?.isResizable||j<=20||(b.current=!1,x2({index:P,visibleGridColumns:T,width:j,columnUpdaterFunction:v}))}}),k=x.useMemo(()=>{const O=[];return n.forEach(P=>{const j=P._parent?.key??P.key,A=O[O.length-1];A&&A.key===j?A.colSpan+=1:O.push({key:j,column:P._parent??P,colSpan:1,firstChild:P})}),O},[n]);return p.jsxs(Xd,{children:[p.jsxs(eo,{sx:{position:"sticky",top:0,zIndex:3,backgroundColor:S.palette.primary.notifyBackground},children:[t.map((O,P)=>{const j=O._parent??O;return p.jsxs(x.Fragment,{children:[p.jsx(np,{column:j,index:O._originalIndex,isManageable:r,stickyLeft:c(O),sort:a,handleMenuClick:l,...C}),o&&p.jsx(rp,{column:j,index:O._originalIndex,isManageable:r,tableHeight:s,...w(j,O._originalIndex)})]},`sticky-p-${P}`)}),p.jsx("th",{style:{minWidth:d,width:d,padding:0,border:"none"}}),k.map((O,P)=>p.jsxs(x.Fragment,{children:[p.jsx(np,{column:O.column,index:O.firstChild._originalIndex,colSpanOverride:O.colSpan,isManageable:r,stickyLeft:c(O.firstChild),sort:a,handleMenuClick:l,...C}),o&&p.jsx(rp,{column:O.column,index:O.firstChild._originalIndex,isManageable:r,tableHeight:s,...w(O.column,O.firstChild._originalIndex)})]},`parent-${O.key}`))]}),p.jsxs(eo,{draggable:!1,sx:{position:"sticky",top:"2.5rem",backgroundColor:S.palette.primary.notifyBackground,zIndex:2},children:[p.jsx("th",{style:{minWidth:d,width:d,padding:0,border:"none"}}),n?.map((O,P)=>O._parent&&p.jsxs(x.Fragment,{children:[p.jsx(np,{column:O,index:O._originalIndex,isManageable:r,parent:O._parent,stickyLeft:c(O),sort:a,handleMenuClick:l,...C}),o&&p.jsx(rp,{column:O,index:O._originalIndex,isManageable:r,tableHeight:s,...w(O,O._originalIndex)})]},`child-${O?._parent?.key??O.key}-${P}`))]})]})}),K8=()=>p.jsx(se,{sx:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none",zIndex:1}}),I2=x.memo(function({column:t,row:n,cellKey:r,parent:o,stickyLeft:s,isSelected:a,isHigh:l}){const c=gt(),d=t?.isMandatory&&t?.isSticky,u=a||l,f=o&&o.children?.find(h=>!h?.isHidden&&h?.isVisible!==!1)?.key===t?.key;return p.jsxs(Mo,{colSpan:1,style:t?.style,className:`${t?.label}`,sx:{position:"relative",...t.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...f&&{borderLeft:"0.1rem solid"}},...t?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...d&&{position:"sticky",left:s,zIndex:2,backgroundColor:u?c.palette.primary.appBackground:c.palette.primary.notifyBackground}},children:[u&&p.jsx(K8,{}),p.jsx(gc,{isRenderCellContent:!!t?.cellRenderer,column:t,row:n,parent:o})]},r)});function X8({actualIndex:e,extraHeight:t,measureRow:n,resetRow:r}){return useEffect(()=>(n(e,t),()=>r(e)),[e,t]),null}const Z8=x.memo(function({visibleRows:t,stickyGridColumns:n,virtualisedColumns:r,isResizable:o,isManageable:s,topSpacerHeight:a,bottomSpacerHeight:l,selectedRow:c,isNested:d,nestedRow:u,nestedColumn:f,hashKey:h,getStickyLeft:m,offsetX:g,rightSpacerWidth:y,rowStart:b,defaultRowHeight:v,measureRow:T,resetRow:S,t:C}){const w=gt(),k=x.useCallback((O,P,j)=>{if(!O||!s||O?.isMandatory)return null;const A=c&&c?.fhi===P?.fhi||P?.isHigh;return p.jsx(ns,{className:"column_resizer_body",sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${w.palette.primary.notifyBorderColor}`},children:A&&p.jsx("div",{style:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none"}})},`resize-${j}`)},[s,c,w]);return p.jsxs(qd,{children:[p.jsx("tr",{style:{height:a}}),t?.map((O,P)=>{const j=b+P,A=c&&c?.fhi===O?.fhi,L=O?.isHigh,E=u?.[O[h]];return p.jsxs(x.Fragment,{children:[p.jsxs(C2,{row:O,isSelected:A,isHigh:L,sxProps:{height:"3.5rem","& td, & th":{height:"3.5rem"}},children:[n.map((R,M)=>p.jsxs(x.Fragment,{children:[p.jsx(I2,{column:R,row:O,cellKey:M,parent:R._parent,stickyLeft:m(R),isSelected:A,isHigh:L}),o&&k(R,O,`sticky-${M}-${j}`)]},`sticky-${R.sequenceId??M}`)),p.jsx("td",{style:{minWidth:g,width:g,padding:0,border:"none"}}),r.map((R,M)=>p.jsxs(x.Fragment,{children:[p.jsx(I2,{column:R,row:O,cellKey:M,parent:R._parent,stickyLeft:m(R),isSelected:A,isHigh:L}),o&&k(R,O,`${M}-${j}`)]},`col-${R?._parent?.key??R.key}-${M}`))]}),d&&E&&p.jsxs(p.Fragment,{children:[p.jsx(X8,{actualIndex:j,extraHeight:E.length*v,measureRow:T,resetRow:S}),p.jsx(T2,{nestedData:E,nestedColumn:f,t:C})]})]},`row-${j}`)}),p.jsx("tr",{style:{height:l}})]})});function J8({rowCount:e,defaultRowHeight:t,scrollTop:n,containerRef:r,overscan:o=5}){const s=x.useRef(0),[a,l]=x.useState(()=>fv("40rem"));x.useEffect(()=>{const m=r?.current;if(!m)return;const g=m.clientHeight;g&&g!==s.current&&(s.current=g,l(g));const y=new ResizeObserver(b=>{const v=b[0].contentRect;v.height!==s.current&&(s.current=v.height,l(v.height))});return y.observe(m),()=>y.disconnect()},[]);const[c,d]=x.useState({}),u=(m,g)=>{d(y=>y[m]===g?y:{...y,[m]:g})},f=m=>{d(g=>{if(!(m in g))return g;const y={...g};return delete y[m],y})},h=x.useMemo(()=>{const m=new Array(e+1);m[0]=0;for(let g=0;g<e;g++)m[g+1]=m[g]+(c[g]??t);return m},[c,e,t]);return x.useMemo(()=>{const m=h[e],g=n+a;let y=0,b=e-1,v=0;for(;y<=b;){const S=y+b>>1;h[S+1]>n?(v=S,b=S-1):y=S+1}v=Math.max(0,v-o),y=v,b=e-1;let T=e;for(;y<=b;){const S=y+b>>1;h[S]>=g?(T=S,b=S-1):y=S+1}return T=Math.min(e,T+o),{startIndex:v,endIndex:T,topSpacerHeight:h[v],bottomSpacerHeight:m-h[T],totalHeight:m,measureRow:u,resetRow:f}},[h,e,a,n,o])}function Q8({columnWidths:e,scrollLeft:t,overscan:n=2}){const r=x.useRef(0),[o,s]=x.useState(0),a=x.useRef(null),l=x.useCallback(f=>{if(a.current?.disconnect(),!f)return;const h=f.clientWidth;h&&(r.current=h,s(h)),a.current=new ResizeObserver(m=>{const g=m[0].contentRect;g.width!==r.current&&(r.current=g.width,s(g.width))}),a.current.observe(f)},[]),c=x.useMemo(()=>e.map(f=>{const h=Number(f);return Number.isFinite(h)&&h>0?h:0}),[e]),d=x.useMemo(()=>{const f=new Array(c.length+1);f[0]=0;for(let h=0;h<c.length;h++)f[h+1]=f[h]+c[h];return f},[c]);return{...x.useMemo(()=>{const f=t+o,h=d[c.length];let m=0,g=c.length-1,y=c.length;for(;m<=g;){const v=m+g>>1;d[v+1]>t?(y=v,g=v-1):m=v+1}y=Math.max(0,y-n),m=y,g=c.length-1;let b=c.length;for(;m<=g;){const v=m+g>>1;d[v]>=f?(b=v,g=v-1):m=v+1}return b=Math.min(c.length,b+n),{startIndex:y,endIndex:b,offsetX:d[y]||0,rightSpacerWidth:h-d[b],viewportWidth:o}},[c,d,o,t,n]),measuredRef:l}}const D2=45;function eL({rows:e,sort:t,data:n,pagination:r,columns:o,nested:s,baseUrl:a,gridPath:l,childUniqueKey:c,isVirtualizedTable:d=!1,t:u}){const f=gt(),{visibleGridColumns:h}=x.useContext(Yi),m=x.useContext(hs),{selectedColumn:g,handleMenuClick:y,handleClose:b,handleHideClick:v,columnUpdaterFunction:T}=k2(h,m,a,l,r?.rowPerPage,c),S=o?.isManageable,C=o?.isResizable,w=x.useRef(null),k=x.useRef(null),O=x.useRef(!1),P=x.useRef(0),j=x.useRef(0),A=x.useRef(!1),L=x.useRef(n),[,E]=x.useState({}),{getStickyLeft:R,columnsMeta:M}=V8(h),{startAutoScroll:N,stopAutoScroll:$}=q8(w),{draggedColIndex:F,isInvalidDrop:H,handleDragStart:z,handleDragOver:_,handleDrop:D,handleDragEnd:V}=H8({visibleGridColumns:h,columnUpdaterFunction:T,isResizingRef:O,startAutoScroll:N,stopAutoScroll:$});L.current!==n&&(L.current=n,P.current=0,j.current=0,k.current&&(k.current.scrollTop=0,k.current.scrollLeft=0));const U=he=>{const pe=he.currentTarget.scrollTop,Ie=he.currentTarget.scrollLeft;A.current||(A.current=!0,requestAnimationFrame(()=>{P.current=pe,j.current=Ie,E({}),A.current=!1}))},G=x.useMemo(()=>M.filter(he=>he.isSticky&&!he.isCenterTable),[M]),X=x.useMemo(()=>M.filter(he=>he.isSticky&&he.isCenterTable||!he.isSticky),[M]),q=x.useMemo(()=>X.map(he=>he.width),[X]),{startIndex:K,endIndex:ce,topSpacerHeight:de,bottomSpacerHeight:W,measureRow:ee,resetRow:B}=J8({rowCount:n.length,defaultRowHeight:D2,scrollTop:P.current,containerRef:k,overscan:15}),{startIndex:ue,endIndex:Q,offsetX:ne,measuredRef:we}=Q8({columnWidths:q,scrollLeft:j.current,overscan:2}),ke=x.useMemo(()=>X.slice(ue,Q),[X,ue,Q]),Ce=n?.slice(K,ce),[ve,_e]=x.useState(0);x.useEffect(()=>{const he=w.current;if(!he)return;const pe=new ResizeObserver(()=>_e(he.offsetHeight));return pe.observe(he),()=>pe.disconnect()},[]);const Ee=y2(s?.column?.definitions||[]),xe=s?.isNested,re=s?.data||[],ie=s?.hashKey,Te=x.useCallback(he=>{k.current=he,we(he)},[we]);return n?.length?p.jsxs(p.Fragment,{children:[p.jsx(Kd,{ref:Te,onScroll:U,sx:{willChange:"transform",WebkitTransform:"translateZ(0)",maxHeight:"40rem",whiteSpace:"nowrap",overflow:"auto",width:"100%",border:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,borderRadius:"1.4rem",position:"relative"},children:p.jsxs(Yd,{ref:w,stickyHeader:!0,"aria-label":"sticky table",sx:{backgroundColor:f.palette.primary.notifyBackground},children:[p.jsx(G8,{offsetX:ne,stickyGridColumns:G,virtualisedColumns:ke,isManageable:S,isResizable:C,tableHeight:ve,sort:t,handleMenuClick:y,getStickyLeft:R,draggedColIndex:F,isInvalidDrop:H,onDragStart:z,onDragOver:_,onDrop:D,onDragEnd:V,isResizingRef:O,visibleGridColumns:h,columnUpdaterFunction:T}),p.jsx(Z8,{offsetX:ne,rowStart:K,defaultRowHeight:D2,measureRow:ee,resetRow:B,visibleRows:Ce,stickyGridColumns:G,virtualisedColumns:ke,isResizable:C,isManageable:S,topSpacerHeight:de,bottomSpacerHeight:W,selectedRow:e?.selectedRow,isNested:xe,nestedRow:re,nestedColumn:Ee,hashKey:ie,getStickyLeft:R,t:u})]})}),r&&p.jsx(hc,{pagination:r,gridPath:l,baseUrl:a,t:u}),p.jsx(ep,{menuOpen:g?.isOpen,handleClose:b,onHideClick:v})]}):p.jsx(Nr,{sx:{textAlign:"center"},children:u(yr.NRF)})}function A2({tableProps:e,isDefaultConfig:t,gridPath:n,baseUrl:r,childUniqueKey:o}){const{columns:s}=e,a=x.useContext(hs),{t:l}=x.useContext(an),c=!!e?.isVirtualizedTable,d=w8({columns:s,gridPath:n,baseUrl:r,isDefaultConfig:t,childUniqueKey:o,pageSize:e?.pagination?.rowPerPage,data:e?.data});return x.useEffect(()=>{d?.length&&e?.data?.length&&a?.({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:d}})},[d,e?.data]),p.jsx(p.Fragment,{children:c?p.jsx(eL,{...e,gridPath:n,baseUrl:r,childUniqueKey:o,t:l}):p.jsx(O2,{...e,gridPath:n,baseUrl:r,childUniqueKey:o,t:l})})}A2.propTypes={tableProps:i.object.isRequired,mergedColumns:i.array.isRequired};function op({tableProps:e,toolbarProps:t,isDefaultConfig:n,isLoading:r}){const o=e.columns?.isManageable;return p.jsx(pv,{children:r?p.jsxs(p.Fragment,{children:[t&&p.jsx(Zl,{type:"toolbar"}),e&&p.jsx(Zl,{type:"grid"})]}):p.jsxs(se,{sx:{position:"sticky"},children:[t&&p.jsx(Jf,{...t,isManageable:o,pageSize:e?.pagination?.rowPerPage,gridData:e?.data}),p.jsx(A2,{tableProps:e,isDefaultConfig:n,gridPath:t?.gridPath||"",baseUrl:t?.baseUrl||"",childUniqueKey:t?.childUniqueKey||""})]})})}op.propTypes={tableProps:i.object.isRequired,toolbarProps:i.object,isDefaultConfig:i.bool};const{TENANT_ID:sp,BU_ID:ip}=h2,{TENANT_IDS:ap,BU_IDS:lp}=g2,tL=async e=>{try{const t=localStorage.getItem("i18nextLng"),n=`${e}${uc.NOTIFICATION}/v1?${sp}=${ap}&${ip}=${lp}&lang=${t}`;return await Ct.get(n,sa)}catch(t){return t}},R2=async(e,t,n)=>{try{const r=localStorage.getItem("i18nextLng"),o=`${e}${uc.NOTIFICATION}${Gf.VERSION}?${sp}=${ap}&${ip}=${lp}&lang=${r}`;return await Ct.put(o,t,sa)}catch(r){return r}},nL=async({baseUrl:e,id:t,snopId:n})=>{try{const r=localStorage.getItem("i18nextLng"),o=`${e}${uc.NOTIFICATION}${Gf.VERSION}?${sp}=${ap}&${ip}=${lp}&id=${t}&lang=${r}`;return await Ct.get(o,sa)}catch(r){return r}},Os={OK:200,CREATED:201,NO_CONTENT:204,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,INTERNAL_SERVER_ERROR:500},N2=({baseUrl:e})=>{const t=x.useContext(u1),[n,r]=x.useState(!1),[o,s]=x.useState(!1),[a,l]=x.useState(!1),[c,d]=x.useState({}),[u,f]=x.useState(null),[h,m]=x.useState(1),g=x.useRef(!1),{loading:y,data:b,isMarkAllAsRead:v,mode:T,activeTab:S}=x.useContext(Rf),[C,w]=x.useState([]);x.useEffect(()=>{w(b)},[b]);const k=x.useCallback(async()=>{if(!(g.current||!e))try{t({type:Ve.LOADING,loading:!0}),t({type:Ve.SUCCESS,data:[]});const R=await tL(e);if(R.status===Os.UNAUTHORIZED){g.current=!0;return}if(R.status===Os.OK){const M=R.data?.responseData?.response||[],N=Gl(M);t({type:Ve.SET_MODE,mode:!1}),t({type:Ve.SUCCESS,data:Gl(N)}),t({type:Ve.MARK_ALL_AS_READ,isMarkAllAsRead:{count:uv(M),boo:uv(M)>0}}),t({type:Ve.LOADING,loading:!1})}}catch(R){R?.response?.status===Os.UNAUTHORIZED&&(g.current=!0),t({type:Ve.ERROR,error:yr.SWR}),t({type:Ve.LOADING,loading:!1})}},[e,t]),O=R=>{const M=(b||[]).filter(N=>T?!N.isRead:!0);return{0:M,1:M.filter(N=>N?.type==="INFO"),2:M.filter(N=>N?.type==="ERROR")}};x.useEffect(()=>{k();const R=setInterval(k,3e5);return()=>clearInterval(R)},[k]);const P=async(R,M)=>{if(!(!R||!e)){f(R);try{const N=await nL({baseUrl:e,id:R,snopId:M});if(N.status===Os.OK){const $=N.data?.responseData?.response||{};d($||{}),l(!0)}else throw new Error}catch{t({type:Ve.ERROR,error:yr.SWR})}finally{f(null)}}},j=async(R,M)=>{if(!(!R.length||!e)){t({type:Ve.LOADING,loading:!0});try{if((await R2(e,R,M)).status===Os.OK){const $=b.map(H=>R.includes(H.id)?{...H,isRead:!0}:H),F=$.filter(H=>!H.isRead).length;F===0&&t({type:Ve.SET_MODE,mode:!1}),t({type:Ve.SUCCESS,data:Gl($)}),t({type:Ve.MARK_ALL_AS_READ,isMarkAllAsRead:{count:F,boo:F>0}}),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},200)}}catch{t({type:Ve.ERROR,error:yr.SWR}),t({type:Ve.LOADING,loading:!1})}}},A=async()=>{if(e){t({type:Ve.LOADING,loading:!0});try{const R=SA(b);if((await R2(e,R,s8.MARK_ALL_READ)).status===Os.OK){const N=b.map($=>({...$,isRead:!0}));t({type:Ve.SET_MODE,mode:!1}),t({type:Ve.SUCCESS,data:Gl(N)}),t({type:Ve.MARK_ALL_AS_READ,isMarkAllAsRead:{count:0,boo:!1}}),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},200)}}catch{t({type:Ve.ERROR,error:yr.SWR}),t({type:Ve.LOADING,loading:!1})}}},L=(R,M)=>{t({type:Ve.LOADING,loading:!0}),t({type:Ve.SET_ACTIVE_TAB,activeTab:M}),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},400)},E=()=>{t({type:Ve.LOADING,loading:!0});const R=T?b||[]:(C||[]).filter(M=>!M.isRead);t({type:Ve.SET_MODE,mode:!T}),w(R),m(1),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},400)};return{fetchNotification:k,showDetailsProps:{open:a,handleClose:()=>l(!1),setOpen:l,data:c,clickId:u},alertDialogProps:{open:n,handleClose:()=>r(!1),onRefresh:k,handleRead:j,handleMarkAllAsRead:A,setOpen:r,handleShowDetails:P,clickId:u,isMainDialog:!0},activeTab:S,loading:y,tabData:O()[S],data:C,mode:T,handleTabChange:L,toggleAlertMode:E,page:h,setPage:m,isMarkAllAsRead:v}};var $2,L2,B2;function cp(){return cp=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},cp.apply(null,arguments)}var rL=function(t){return I.createElement("svg",cp({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none"},t),$2||($2=I.createElement("path",{stroke:"#909090",strokeLinecap:"round",strokeMiterlimit:10,d:"M8.013 2.19c-2.206 0-4 1.793-4 4v1.927c0 .406-.173 1.026-.38 1.373l-.766 1.273c-.474.787-.147 1.66.72 1.954 2.873.96 5.973.96 8.846 0a1.335 1.335 0 0 0 .72-1.954l-.766-1.273c-.2-.347-.374-.967-.374-1.373V6.19c0-2.2-1.8-4-4-4Z"})),L2||(L2=I.createElement("path",{stroke:"#909090",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"M9.247 2.383a4.503 4.503 0 0 0-2.467 0 1.324 1.324 0 0 1 2.467 0"})),B2||(B2=I.createElement("path",{stroke:"#909090",strokeMiterlimit:10,d:"M10.013 12.957c0 1.1-.9 2-2 2a2.007 2.007 0 0 1-2-2"})))};const oL=({count:e})=>(gt(),p.jsxs(p.Fragment,{children:[p.jsx(se,{sx:{gap:"0.5rem",display:"flex",justifyContent:"center",alignItems:"center","& svg":{transform:"scale(1)"}},children:p.jsx(rL,{style:{scale:1.2}})}),p.jsx(A8,{badgeContent:e!=0?"":null,color:"error"})]}));var _2;function dp(){return dp=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},dp.apply(null,arguments)}var sL=function(t){return I.createElement("svg",dp({xmlns:"http://www.w3.org/2000/svg",width:14,height:9,fill:"none",viewBox:"0 0 13 9"},t),_2||(_2=I.createElement("path",{fill:"#A8A8A8",fillRule:"evenodd",d:"M8.954 1.004a.406.406 0 0 1 0 .575L3.537 6.996a.406.406 0 0 1-.574 0L.796 4.829a.406.406 0 1 1 .575-.575l1.879 1.88 5.13-5.13a.406.406 0 0 1 .574 0m3.25 0a.406.406 0 0 1 0 .575L6.787 6.996a.406.406 0 1 1-.574-.575l5.416-5.417a.406.406 0 0 1 .575 0",clipRule:"evenodd"})))},F2,W2;function up(){return up=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},up.apply(null,arguments)}var iL=function(t){return I.createElement("svg",up({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none"},t),F2||(F2=I.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M7.79 6c0 .99-.8 1.79-1.79 1.79S4.21 6.99 4.21 6 5.01 4.21 6 4.21s1.79.8 1.79 1.79"})),W2||(W2=I.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M6 10.135c1.765 0 3.41-1.04 4.555-2.84.45-.705.45-1.89 0-2.595C9.41 2.9 7.765 1.86 6 1.86S2.59 2.9 1.445 4.7c-.45.705-.45 1.89 0 2.595 1.145 1.8 2.79 2.84 4.555 2.84"})))},z2;function fp(){return fp=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},fp.apply(null,arguments)}var aL=function(t){return I.createElement("svg",fp({xmlns:"http://www.w3.org/2000/svg",width:9,height:8,fill:"none"},t),z2||(z2=I.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M8.277 1.004a.406.406 0 0 1 0 .575L2.86 6.996a.406.406 0 0 1-.574 0L.119 4.829a.406.406 0 1 1 .575-.575l1.879 1.88 5.13-5.13a.406.406 0 0 1 .574 0",clipRule:"evenodd"})))};const V2=({type:e,item:t,handleShowDetails:n,handleRead:r,handleCTAClicked:o,clickId:s,t:a})=>{const l=gt(),c=JSON.parse(localStorage.getItem("settings"))?.platform?.theme;return p.jsxs(se,{className:"cards",sx:{pt:" 0.8rem"},children:[p.jsx(Ge,{display:"flex",flexDirection:"row",alignItems:"start",justifyContent:"space-between",gap:1,children:p.jsx(Md,{sx:{width:"calc(100% - 2%)","& .MuiBadge-badge":{backgroundColor:"#6041EA",height:"0.5rem",minWidth:"0.5rem"}},variant:"dot",invisible:t?.isRead,children:p.jsx(Nr,{sx:{color:l.palette.primary.notifyActiveText,whiteSpace:"normal",wordBreak:"break-word"},component:"p",className:["title-card",t?.isRead&&"read"].join(" "),children:a(t?.message)})})}),p.jsx(Ge,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:p.jsxs(Ge,{display:"flex",flexDirection:"row",justifyContent:"start",gap:1,sx:{p:"0.5rem 0"},children:[t?.isNotificationDetails&&p.jsx(mc,{icon:p.jsx(iL,{className:`${c==="light"?"chip-icon-light":"chip-icon-dark"}`}),disabled:s,onClick:n,label:s===t?.id?p.jsx(Uo,{color:"primary",size:13}):a("SHOW_DETAILS"),component:"button",variant:"filled",clickable:!0,size:"small",sx:{backgroundColor:l.palette.brandColor.orange,color:l.palette.brandColor.white}}),!t?.isRead&&p.jsx(mc,{icon:p.jsx(aL,{className:`${c==="light"?"chip-icon-light":"chip-icon-dark"}`}),disabled:s,onClick:r,label:a("ACKNOWLEDGE"),component:"button",variant:"outlined",clickable:!0,size:"small"}),t?.primaryCTAURL&&p.jsx(mc,{disabled:t?.isPrimaryCTAClicked,onClick:()=>o({redirect:t?.isPrimaryCTARedirect,isClicked:t?.isPrimaryCTAClicked,url:t?.primaryCTAURL}),label:a(t?.primaryCTALabel),component:"button",variant:"outlined",clickable:!0,size:"small"}),t?.secondaryCTAURL&&p.jsx(mc,{disabled:t?.isSecondaryCTAClicked,onClick:()=>o({redirect:t?.isSecondaryCTARedirect,isClicked:t?.isSecondaryCTAClicked,url:t?.secondaryCTAURL}),label:a(t?.secondaryCTALabel),component:"button",variant:"outlined",clickable:!0,size:"small"})]})}),p.jsxs(Ge,{display:"flex",flexDirection:"row",alignItems:"center",gap:.35,children:[p.jsx(Nr,{sx:{fontSize:"0.8rem"},children:a(t?.product)}),p.jsx(Nr,{color:l.palette.primary.notifyTextColor,children:"•"}),p.jsx(Nr,{sx:{fontSize:"0.8rem"},children:wA(t?.createdAt,a)})]})]})};V2.propTypes={type:i.string,title:i.string,subTitle:i.string,isRead:i.bool,handleShowDetails:i.func,handleRead:i.func};const yc=60,H2=2,U2=({data:e,handleRead:t,handleShowDetails:n,clickId:r,mode:o,t:s})=>{const{isMarkAllAsRead:a}=x.useContext(Rf),l=x.useRef(null),[c,d]=x.useState({start:0,end:4}),u=e?.length,f=new Date,h=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(f),m=x.useMemo(()=>o?a?.count?e?.filter(C=>!C.isRead):[]:e||[],[e,o,a]),g=m.slice(c.start,c.end),y=c.start*yc,b=(u-c.end)*yc,v=()=>{const C=l.current;if(!C)return;const w=C.scrollTop,k=C.clientHeight,O=Math.floor(w/yc)-H2,P=Math.ceil(k/yc)+2*H2,j=Math.max(0,Math.min(u-1,O)),A=Math.max(j,Math.min(u,j+P));d(L=>L.start===j&&L.end===A?L:{start:j,end:A})},T=({url:C})=>{window.open(C,"_blank")},S=x.useMemo(()=>kA(g),[g]);return x.useEffect(()=>{let C;const w=()=>{C&&cancelAnimationFrame(C),C=requestAnimationFrame(()=>{v()})},k=l.current;if(k)return v(),k.addEventListener("scroll",w),()=>{cancelAnimationFrame(C),k.removeEventListener("scroll",w)}},[u]),m.length||s("CONTAINER_MESSAGE"),p.jsxs(se,{ref:l,sx:{height:"100%",overflowY:"auto"},children:[p.jsx(se,{style:{height:y}}),Object.entries(S).map(([C,w])=>{const k=localStorage.getItem("i18nextLng"),O=new Date(C),P=new Intl.DateTimeFormat(k,{month:"long"}).format(O),j=O.getDate(),A=O.getFullYear(),L=`${P} ${j}, ${A}`;return p.jsxs(x.Fragment,{children:[C!==h&&p.jsx(D8,{children:L}),w.map((E,R)=>p.jsx(V2,{item:E,handleCTAClicked:T,handleShowDetails:()=>n(E.id,E.snopId),handleRead:()=>t([E.id],E.snopId),clickId:r,t:s},`${E.id}_${R}`))]},C)}),p.jsx(se,{style:{height:b}})]})};U2.propTypes={data:i.array,handleRead:i.func,handleShowDetails:i.func};const lL=({onRefresh:e,handleShowDetails:t,clickId:n,handleRead:r,handleMarkAllAsRead:o,t:s})=>{const{loading:a,activeTab:l,data:c,tabData:d,mode:u,page:f,setPage:h,handleTabChange:m,toggleAlertMode:g}=N2({});return p.jsxs(p.Fragment,{children:[p.jsxs(se,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,pt:2},children:[p.jsx(pt,{variant:"h2",sx:{fontSize:"1.2rem",color:y=>y.palette.primary.notifyTextColor},children:s("NOTIFICATION")}),p.jsx(se,{onClick:e,children:p.jsx(Vt,{url:Xe.Refresh,alt:"refresh",sx:{cursor:"pointer"}})})]}),p.jsx(se,{sx:{borderBottom:1,m:"1.2rem 1.2rem 0 1.2rem",borderColor:y=>y.palette.primary.notifyBorderColor},children:p.jsxs(R8,{value:l,onChange:m,children:[p.jsx(Qf,{label:p.jsx(se,{sx:{display:"flex",alignItems:"center",fontSize:"1rem",fontWeight:"500"},children:p.jsx(pt,{component:"span",sx:{fontWeight:500,fontSize:"1rem"},children:s("ALL",{count:c?.filter(y=>!y?.isRead)?.length||0})})})}),p.jsx(Qf,{label:p.jsx(se,{sx:{display:"flex",alignItems:"center",fontSize:"1rem",fontWeight:"500"},children:p.jsx(pt,{component:"span",sx:{fontWeight:500,fontSize:"1rem"},children:s("INFO",{count:c?.filter(y=>y?.type==="INFO"&&!y?.isRead)?.length||0})})}),sx:{color:y=>y.palette.brandColor.blue}}),p.jsx(Qf,{label:p.jsx(se,{sx:{display:"flex",alignItems:"center",fontSize:"1rem",fontWeight:"500"},children:s("ERROR",{count:c?.filter(y=>y?.type==="ERROR"&&!y?.isRead)?.length||0})}),sx:{color:y=>y.palette.brandColor.red}})]})}),p.jsx($d,{dividers:!0,sx:{p:0,...a&&!d.length&&{alignItems:"center",justifyContent:"center"},flexGrow:1,overflowY:"auto",mx:"1.2rem",borderColor:y=>y.palette.primary.notifyBorderColor},tabIndex:-1,children:a&&!d.length?p.jsx(se,{sx:{height:300,display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx(Uo,{size:30,sx:{color:y=>y.palette.primary.notifyIconColor}})}):p.jsx(p.Fragment,{children:p.jsx(U2,{data:d,handleShowDetails:t,handleRead:r,clickId:n,page:f,setPage:h,mode:u,t:s})})}),p.jsxs(Nd,{sx:{justifyContent:"space-between",px:"1.2rem"},children:[p.jsxs(Ge,{direction:"row",gap:1,children:[p.jsx(Nr,{sx:{fontSize:"1rem"},children:s("SHOW_UNREAD")}),p.jsx(I8,{disabled:a,checked:u,onChange:g})]}),p.jsx(gl,{variant:"outlined",className:"view-all",onClick:o,startIcon:p.jsx(sL,{}),disabled:!c?.filter(y=>!y?.isRead)?.length,style:{backgroundColor:"transparent"},sx:{fontSize:"1rem",fontWeight:"300",p:0,border:"none",textTransform:"none",color:y=>y.palette.primary.notifyTextColor,"&:hover":{color:y=>y.palette.primary.notifyActiveText,background:"transparent",boxShadow:"none",border:"none"},"&.Mui-disabled":{opacity:.5,color:y=>`${y.palette.primary.notifyActiveText}!important`,background:"transparent",boxShadow:"none",border:"none"}},children:s("READ_ALL")})]})]})},cL=({data:e,handleClose:t,t:n})=>{const[r,o]=x.useState(1),[s,a]=x.useState(10),[l,c]=x.useState(e?.notificationDetails?.length||0),[d,u]=x.useState("sku_name"),[f,h]=x.useState("asc"),[m,g]=x.useState([]),[y,b]=x.useState("");return x.useEffect(()=>{if((y||d)&&e?.notificationDetails?.length){const v=CA(e?.notificationDetails,r8,y);if(d){const T=TA(v,d,f);g(bf(T,r,s)),c(T?.length||0);return}g(bf(v,r,s)),c(v?.length||0);return}g(bf(e?.notificationDetails,r,s)),c(e?.notificationDetails?.length)},[y,e,r,s,f,d]),p.jsxs(p.Fragment,{children:[p.jsxs(Ge,{direction:"row",justifyContent:"space-between",sx:{padding:"1.5rem 2rem",borderBottom:"0.1rem solid",borderColor:v=>v.palette.primary.notifyBorderColor},children:[p.jsx(pt,{component:"h2",sx:{fontSize:"1.4rem",color:v=>v.palette.primary.notifyActiveText},children:n(e?.message)||e?.message}),p.jsx(se,{onClick:t,sx:{cursor:"pointer"},children:p.jsx(Vt,{url:Xe.CloseCircle})})]}),p.jsx($d,{children:p.jsx(op,{t:n,tableProps:{data:m,columns:{...C8({t:n}),isManageable:!1},sort:{sortField:d,sortDir:f,onSort:v=>{const T=v?.column?.key;h(S=>d===T&&S==="asc"?"desc":"asc"),u(T)}},pagination:{selectedPage:r,rowPerPage:s,totalRecords:l,onPageChange:v=>{o(v)},onPageSizeChange:v=>{a(v?.value),o(1)}}},toolbarProps:{defaultTools:{search:{isRequired:!0,onChange:v=>{const T=v.target.value;T&&o(1),b(T)},placeholder:`${n("SEARCH")}...`}}}})}),p.jsx(Nd,{sx:{padding:"1.5rem 2rem"}})]})},dL=({baseUrl:e,t})=>{const{alertDialogProps:n,showDetailsProps:r,fetchNotification:o,isMarkAllAsRead:s}=N2({baseUrl:e});return p.jsxs(p.Fragment,{children:[p.jsx(se,{sx:{display:"flex",justifyContent:"center",cursor:"pointer",marginTop:"0.6rem"},onClick:()=>{o(),n?.setOpen?.(!0)},children:p.jsx(oL,{count:s.count})}),p.jsx(Nf,{...n,children:p.jsx(lL,{...n,t})}),p.jsx(Nf,{...r,children:p.jsx(cL,{...r,t})})]})},uL=({baseUrl:e,t})=>p.jsx(Gt,{children:p.jsx(f1,{children:p.jsx(dL,{baseUrl:e,t})})}),Y2=x.createContext(null),fL=Y2.Provider,pL=()=>{const e=x.useContext(Y2);return e||console.warn("useAnalytics used outside AnalyticsProvider"),e};lt.Accordion=h1,lt.AnalyticsProvider=fL,lt.Breadcrumb=X9,lt.Button=jr,lt.Checkbox=gr,lt.DatePicker=R9,lt.Dialog=G9,lt.Grid=op,lt.GridTable=F8,lt.Header=y1,lt.InputField=dv,lt.Loader=H9,lt.Notification=uL,lt.Select=hv,lt.SkeletonLoader=U9,lt.SliderLayout=m1,lt.Switch=gv,lt.TextField=Ui,lt.TimePicker=N9,lt.ToastProvider=z9,lt.TranslationContext=an,lt.toast=B9,lt.useAnalytics=pL,Object.defineProperty(lt,Symbol.toStringTag,{value:"Module"})}));
256
+ `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Eo(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&dc.assertOptions(r,{silentJSONParsing:wr.transitional(wr.boolean),forcedJSONParsing:wr.transitional(wr.boolean),clarifyTimeoutError:wr.transitional(wr.boolean)},!1),o!=null&&(Y.isFunction(o)?n.paramsSerializer={serialize:o}:dc.assertOptions(o,{encode:wr.function,serialize:wr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),dc.assertOptions(n,{baseUrl:wr.spelling("baseURL"),withXsrfToken:wr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&Y.merge(s.common,s[n.method]);s&&Y.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=bn.concat(a,s);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let u,f=0,h;if(!c){const g=[c2.bind(this),void 0];for(g.unshift(...l),g.push(...d),h=g.length,u=Promise.resolve(n);f<h;)u=u.then(g[f++],g[f++]);return u}h=l.length;let m=n;for(;f<h;){const g=l[f++],y=l[f++];try{m=g(m)}catch(b){y.call(this,b);break}}try{u=c2.call(this,m)}catch(g){return Promise.reject(g)}for(f=0,h=d.length;f<h;)u=u.then(d[f++],d[f++]);return u}getUri(t){t=Eo(this.defaults,t);const n=J1(t.baseURL,t.url,t.allowAbsoluteUrls);return V1(n,t.params,t.paramsSerializer)}};Y.forEach(["delete","get","head","options"],function(t){Oo.prototype[t]=function(n,r){return this.request(Eo(r||{},{method:t,url:n,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,l){return this.request(Eo(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Oo.prototype[t]=n(),Oo.prototype[t+"Form"]=n(!0)});let e8=class nx{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(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(l=>{r.subscribe(l),s=l}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,l){r.reason||(r.reason=new Ts(s,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new nx(function(o){t=o}),cancel:t}}};function t8(e){return function(n){return e.apply(null,n)}}function n8(e){return Y.isObject(e)&&e.isAxiosError===!0}const qf={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(qf).forEach(([e,t])=>{qf[t]=e});function f2(e){const t=new Oo(e),n=M1(Oo.prototype.request,t);return Y.extend(n,Oo.prototype,t,{allOwnKeys:!0}),Y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return f2(Eo(e,o))},n}const Ct=f2(ra);Ct.Axios=Oo,Ct.CanceledError=Ts,Ct.CancelToken=e8,Ct.isCancel=G1,Ct.VERSION=d2,Ct.toFormData=sc,Ct.AxiosError=Ze,Ct.Cancel=Ct.CanceledError,Ct.all=function(t){return Promise.all(t)},Ct.spread=t8,Ct.isAxiosError=n8,Ct.mergeConfig=Eo,Ct.AxiosHeaders=bn,Ct.formToJSON=e=>Y1(Y.isHTMLForm(e)?new FormData(e):e),Ct.getAdapter=l2.getAdapter,Ct.HttpStatusCode=qf,Ct.default=Ct;const{Axios:RB,AxiosError:NB,CanceledError:$B,isCancel:LB,CancelToken:BB,VERSION:_B,all:FB,Cancel:WB,isAxiosError:zB,spread:VB,toFormData:HB,AxiosHeaders:UB,HttpStatusCode:YB,formToJSON:qB,getAdapter:GB,mergeConfig:KB}=Ct,Gf={BASE_URL:"https://qa.3sc.ai/api",VERSION:"/v1"},sa={headers:{"Content-Type":"application/json"},withCredentials:!0},p2=Ct.create({baseURL:Gf.BASE_URL,axiosConfig:sa});p2.interceptors.request.use(function(e){return e},function(e){return Promise.reject(e)}),p2.interceptors.response.use(function(e){return e},function(e){return Promise.reject(e)});const Fn={TOKEN:"token",USER:"user",SNOP:"snop",SELECTED_BU:"selected_business_unit",SETTINGS:"settings"},h2={TENANT_ID:"tenant_id",BU_ID:"bu_id"},r8=Object.values({"SKU Name":"sku_name",Node:"node","Channel Name":"channel_name"}),o8=[10,25,50,100],s8={MARK_ALL_READ:"MARK_ALL_READ"},i8=o8.map(e=>({label:e,value:e})),m2={PRIMARY:"PRIMARY",SECONDARY:"SECONDARY"},uc={NOTIFICATION:"/notifications",SETTING:"/configuration/setting"};function fc(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 a8={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 Kf(e,t){function n(o,s,a){if(!(typeof document>"u")){a=fc({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+l}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],a={},l=0;l<s.length;l++){var c=s[l].split("="),d=c.slice(1).join("=");try{var u=decodeURIComponent(c[0]);if(a[u]=e.read(d,u),o===u)break}catch{}}return o?a[o]:a}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",fc({},s,{expires:-1}))},withAttributes:function(o){return Kf(this.converter,fc({},this.attributes,o))},withConverter:function(o){return Kf(fc({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var l8=Kf(a8,{path:"/"});const c8=ql(Fn.SNOP),d8=ql(Fn.SELECTED_BU),u8=ql(Fn.USER);ql(Fn.SETTINGS);const g2={BU_IDS:d8?.business_unit_id,TOKEN:JSON.parse(l8.get(Fn.TOKEN)||null),TENANT_IDS:u8?.tenant_id,SNOP_IDS:c8?.snop_id},{TENANT_ID:f8,BU_ID:p8}=h2,{TENANT_IDS:h8,BU_IDS:m8}=g2,ia=async({baseUrl:e,payload:t})=>{try{const n=`${e}${uc.SETTING}/v1?${f8}=${h8}&${p8}=${m8}`;return await Ct.post(n,t,sa)}catch(n){return n}},aa=JSON.parse(localStorage.getItem("configuration")),Xf=localStorage.getItem("i18nextLng"),g8=aa?.entities?.locationHierarchy?.[Xf]??aa?.entities?.locationHierarchy??{},y8=aa?.entities?.productHierarchy?.[Xf]??aa?.entities?.productHierarchy??{},b8=g8?.base??"Node",v8=y8?.base??"SKU",x8=aa?.entities?.labelChannel?.[Xf]||"Channel";JSON.parse(localStorage.getItem("snop"));const w8=({columns:e,gridPath:t,baseUrl:n,isDefaultConfig:r,pageSize:o=10,childUniqueKey:s,data:a})=>{const l=a?.length;let{definitions:c,defaultUserSettings:d,labels:u}=e;const f=Rr(u),h=t.split("/").filter(Boolean),m=JSON.parse(localStorage.getItem(Fn.SETTINGS));let g=h.reduce((S,C)=>S?.[C],m)||null;const y=Rr(g?.columns||[]);if(!r&&t&&l){let S=(d&&Zf({col:d,childUniqueKey:s,definitions:c}))??Zf({col:c,childUniqueKey:s});const C=S.filter(T=>!y[T.key]),w=g&&g?.columns?.some(T=>T?.children&&T.children[s]);if(l&&(C.length||s&&w===!1)){if(w==!1&&s.length>0){const T=Rr(S);S=g?.columns?.map(O=>O?.children&&!O.children[s]?{...O,children:{...O.children,[s]:T?.[O?.key]?.children[s]}}:O)}(async()=>{try{const O={...m||{platform:{theme:"light"}}},M=g?.pageSize??o;let j=O;for(let A=0;A<h.length;A++){const L=h[A];A===h.length-1?j[L]={columns:S,pageSize:M}:(j[L]={...j[L]||{}},j=j[L])}localStorage.setItem(Fn.SETTINGS,JSON.stringify(O)),await ia({baseUrl:n,payload:O})}catch(T){console.error(T)}})()}}d=(g?.columns&&S8(y,d,s))??d??Zf({col:c});const b=[],v=Rr(d);for(const S of c){const C=v[S.key]||{},w=f[S.key]||{},T=y[S.key],O=Rr(C.children||[]),M=Rr(w.children||[]);let j={...S,style:T?.style,...C,...w};S.children?.length&&(j.children=S.children.map(A=>({...A,...O[A.key],...M[A.key]}))),b.push(j)}return b.sort((S,C)=>S.sequenceId-C.sequenceId)},y2=e=>e.sort((t,n)=>t.sequenceId-n.sequenceId),la=({columns:e,childUniqueKey:t,definitions:n})=>{let r=n||e;return e?.map(o=>{let s=r?.find(a=>a?.key===o?.key);return{id:o.id,key:o.key,sequenceId:o.sequenceId||o.id,isHidden:o.isHidden||!1,style:o.style||s?.style||{},...o?.children&&{children:t?{[t]:la({columns:o.children,definitions:s?.children})}:la({columns:o.children,definitions:s?.children})}}})},Rr=e=>Array.isArray(e)&&e?.reduce((t,n)=>(t[n.key]=n,t),{}),Zf=({col:e,childUniqueKey:t,definitions:n})=>la({columns:e,childUniqueKey:t,definitions:n}),S8=(e,t,n)=>t.map(o=>{const s=e[o.key],a=o.children?o.children.map(l=>{const d=Rr(Array.isArray(s?.children)?s?.children:s?.children?.[n])?.[l.key];return{...l,sequenceId:d?.sequenceId||l.sequenceId,isHidden:d?.isHidden??l.isHidden}}):void 0;return{...o,sequenceId:s?.sequenceId||o.sequenceId,isHidden:s?.isHidden??o.isHidden,...a?{children:a}:{}}}),C8=({t:e})=>{const t=[{id:1,key:"sku_name",isSortable:!0,isMandatory:!0},{id:2,key:"node",isSortable:!0,isMandatory:!0},{id:3,key:"channel_name",isSortable:!0,isMandatory:!0}],n=[{id:1,key:"sku_name",sequenceId:1,isHidden:!1,style:{width:"20rem",minWidth:"20rem",maxWidth:"20rem"}},{id:2,key:"node",sequenceId:2,isHidden:!1,style:{width:"20rem",minWidth:"20rem",maxWidth:"20rem"}},{id:3,key:"channel_name",sequenceId:3,isHidden:!1,style:{width:"20rem",minWidth:"20rem",maxWidth:"20rem"}}],r=[{id:1,key:"sku_name",label:e(v8),isLocalizable:!1},{id:2,key:"node",label:e(b8),isLocalizable:!1},{id:3,key:"channel_name",label:e(x8),isLocalizable:!1}];return{definitions:t,defaultUserSettings:n,labels:r}},T8=e=>{if(!e)return null;try{const t=JSON.parse(localStorage.getItem(Fn.SETTINGS));return e.split("/").filter(Boolean).reduce((n,r)=>n?.[r],t)??null}catch{return null}},b2=(e=[],t)=>{const n=new Map,r=o=>o.forEach(s=>{n.set(s.key,s);const a=Array.isArray(s.children)?s.children:t?s.children?.[t]??[]:[];a.length&&r(a)});return r(e),n},v2=(e,t,n,r)=>e.map(o=>{const s=t.get(o.key),a=n?.get(o.key),l={key:o.key,sequenceId:s?.sequenceId??a?.sequenceId??o.sequenceId,isHidden:s?.isHidden??!1,style:s?.style??o.style??{}};if(o.children?.length){const c=v2(o.children,t,n,r);if(r){const d=s?.children&&!Array.isArray(s.children)?s.children:{};l.children={...d,[r]:c}}else l.children=c}return l}),k8=({definitions:e=[],defaultSetting:t=[],gridPath:n,childUniqueKey:r})=>{const s=T8(n)?.columns??[],a=b2(s,r),l=b2(t,r),c=(()=>{if(!s.length)return!0;const d=u=>u.some(f=>!a.has(f.key)||d(f.children??[]));return d(e)})();return{settings:v2(e,a,l,r),hasNewColumns:c}},pc=async({settings:e,gridPath:t,baseUrl:n})=>{if(t)try{const r=JSON.parse(localStorage.getItem(Fn.SETTINGS))??{platform:{theme:"light"}},o=t.split("/").filter(Boolean);let s=r;for(let a=0;a<o.length;a++){const l=o[a];a===o.length-1?s[l]={...s[l]??{},columns:e}:(s[l]={...s[l]??{}},s=s[l])}localStorage.setItem(Fn.SETTINGS,JSON.stringify(r)),n&&await ia({baseUrl:n,payload:r})}catch(r){console.error("saveColumnSettings failed:",r)}},E8=e=>{if(!e)return null;const{options:t,...n}=e,r=t?"select":"button",o={button:s=>p.jsx(jr,{...s,styles:{...s.styles,iconPrimary:s?.styles?.variant=="filled"}}),select:s=>p.jsx(se,{sx:{"& .MuiInputBase-input":{padding:"0rem!important"},width:s.styles?.width},children:p.jsx(hv,{...s,options:t})})};return o[r]?o[r](n):null},O8=({presentSetting:e,gridSetting:t,gridPath:n,childUniqueKey:r})=>{if(!n)return e;const o=n.split("/").filter(Boolean);let s=o.reduce((d,u)=>d?.[u],e)||null,a=la({columns:t?.grid,childUniqueKey:r});const l=Rr(s?.columns);a=a?.map(d=>{const u=d?.children||{},f=l?.[d?.key]?.children||{};return{...d,...(Object.keys(f)?.length>0||u?.[r])&&{children:{...f,[r]:u?.[r]}}}});let c=e;for(let d=0;d<o.length;d++){const u=o[d];d===o.length-1?c[u]={columns:a,pageSize:t?.pageSize??null}:(c[u]=c[u]||{},c=c[u])}return{settingObject:e,defaultUserSettings:a}},M8=async({baseUrl:e,gridSetting:t,childUniqueKey:n,gridPath:r})=>{try{const o=JSON.parse(localStorage.getItem("settings")),{settingObject:s,defaultUserSettings:a}=O8({presentSetting:o,gridSetting:t,gridPath:r,childUniqueKey:n});return localStorage.setItem("settings",JSON.stringify(s)),await ia({baseUrl:e,payload:s}),a}catch(o){console.error(o)}},x2=({index:e,visibleGridColumns:t,width:n,columnUpdaterFunction:r})=>{if(!t||!t[e])return null;t[e];let o=`${n/10}rem`;const s=t.map((a,l)=>l===e?{...a,style:{...a.style,width:o,minWidth:o,maxWidth:o}}:a);return r({updatedColumns:s}),s[e]},P8=({definitions:e=[],labels:t=[],settings:n=[],childUniqueKey:r})=>{const o=(f=[],h=!1)=>{const m=[],g=y=>{y?.forEach(b=>{m.push(b);let v=b.children;h&&r&&v&&!Array.isArray(v)&&(v=v[r]??[]),Array.isArray(v)&&v.length&&g(v)})};return g(f),m},s=o(t),a=o(n,!0),l=new Map(s.map(f=>[f.key,f])),c=new Map(a.map(f=>[f.key,f])),d=f=>{if(f){if(typeof f=="number")return f;if(f.includes("rem"))return parseFloat(f)*16;if(f.includes("px"))return parseFloat(f)}},u=f=>{const h=l.get(f.key),m=c.get(f.key),g=f.isMandatory===!0;return{id:f.key,label:h?.label,field:f.key,renderHeader:y=>p.jsx(Ti,{title:y.helpText??y.label,placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.6rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:y.label??""}),width:d(m?.style?.width??f.style?.width),minWidth:d(f.style?.minWidth),maxWidth:d(f.style?.maxWidth),sortable:f.isSortable??!1,pinned:f.isSticky?"left":void 0,hidden:m?.isHidden??!1,resizable:!g,draggable:f?.isDraggable??!g,hideable:!g,align:"center",deferRender:f.deferRender,renderCell:f.cellRenderer?(y,b,v)=>f.cellRenderer(b,v):void 0,meta:{isMandatory:g,...f},children:f.children?.map(u)}};return e.map(u)},hc=({pagination:e,gridPath:t,baseUrl:n,t:r})=>{const{selectedPage:o,rowPerPage:s,totalRecords:a,onPageChange:l,onPageSizeChange:c}=e,d=gt(),u=async(m,g)=>{if(!g)return;const y=g.split("/").filter(Boolean),b="settings",k={...JSON.parse(localStorage.getItem(b))||{}};let S=k;for(let C=0;C<y.length;C++){const w=y[C];C===y.length-1?S[w]={...S[w]||{},pageSize:m}:(S[w]={...S[w]||{}},S=S[w])}localStorage.setItem(b,JSON.stringify(k)),await ia({baseUrl:n,payload:k})},f=a===0?0:(o-1)*s+1,h=Math.min(o*s,a);return p.jsxs(se,{sx:{display:"flex",p:"1rem 1.5rem"},children:[p.jsxs(se,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"0.5rem",width:"100%"},children:[p.jsx(pt,{sx:{fontSize:"1.1rem",color:d.palette.primary.notifyTextColor},children:r("SHOWING_ROWS",{start:f,end:h,current:Math.min(o*s,a),total:a})}),p.jsx(se,{sx:{"& .MuiInputBase-input":{padding:"0rem 0.8rem!important"},width:"6rem"},children:p.jsx(ms,{options:i8,value:s,onChange:async m=>{c(m),u(m?.value,t)}})})]}),p.jsx(Bg,{count:Math.ceil(a/s),page:o,onChange:async(m,g)=>{l(g)},siblingCount:0,shape:"rounded",sx:{width:"100%","& .MuiPagination-ul":{width:"100%",display:"flex",justifyContent:"flex-end","& li:first-of-type":{border:`0.1rem solid ${d.palette.primary.notifyBorderColor}`,color:d.palette.primary.notifyActiveText,marginRight:"1.5rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex"},"& li:last-child":{border:`0.1rem solid ${d.palette.primary.notifyBorderColor}`,color:d.palette.primary.notifyActiveText,marginLeft:"1.5rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex"}},"& .MuiPaginationItem-root":{color:"#595959",fontSize:"1.1rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex","& .MuiSvgIcon-root":{fontSize:"2.2rem"}},"& .Mui-selected":{color:d.palette.primary.notifyActiveText,backgroundColor:`${d.palette.brandColor.paginationBc} !important`}}})]})};hc.propTypes={pagination:i.object.isRequired};const j8=({customTools:e})=>{const t=e?.filter(r=>r?.type===m2.PRIMARY)?.sort((r,o)=>r.sequenceId-o.sequenceId),n=e?.filter(r=>r?.type===m2.SECONDARY)?.sort((r,o)=>r.sequenceId-o.sequenceId);return{primaryButtons:t,secondaryButtons:n}},w2=({customTools:e,isExpanded:t,setIsExpanded:n})=>{const{primaryButtons:r,secondaryButtons:o}=j8({customTools:e}),[s,a]=x.useState(r),l=o?.length>0,{t:c}=x.useContext(an),d=f=>{f?a([...r,...o]):setTimeout(()=>{a(r)},100)},u=()=>{const f=!t;n(f),d(f)};return x.useEffect(()=>{d(t)},[e]),p.jsxs(p.Fragment,{children:[t&&p.jsx("div",{style:{position:"fixed",left:0,width:"100vw",height:"4rem",zIndex:998}}),p.jsxs(se,{sx:{display:"flex",alignItems:"center",gap:"0.8rem",flexWrap:"nowrap",maxWidth:"100%",whiteSpace:"nowrap",zIndex:999},children:[p.jsx(Mj,{mode:"popLayout",children:s.map((f,h)=>p.jsx(Zr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},layout:!0,children:p.jsx(se,{sx:{flexShrink:0,minWidth:"fit-content"},children:E8(f)})},`${f.id}_${h}`))}),l&&p.jsx(se,{sx:{paddingLeft:t?"0.5rem":0},children:p.jsx(jr,{label:t?"":c("LABEL_MORE_ACTIONS"),styles:{iconPrimary:!0,icon:t?Xe.CrossWhite:Xe.More,colorType:t?"danger":""},onClick:u})})]})]})};w2.propTypes={customTools:i.array.isRequired};const Jf=({defaultTools:e,isManageable:t,customTools:n,baseUrl:r,gridPath:o,pageSize:s,gridData:a,childUniqueKey:l})=>{const{t:c}=x.useContext(an),d=x.useContext(hs),u=x.useContext(Yi)||{},{visibleGridColumns:f=[],triggerApi:h=!1}=u,[m,g]=x.useState([]),[y,b]=x.useState(!1),v=n?.filter(T=>T.position==="left").sort((T,O)=>T.sequenceId-O.sequenceId)||[],k=n?.filter(T=>T.position==="right").sort((T,O)=>T.sequenceId-O.sequenceId)||[];x.useEffect(()=>{if(f.length&&t){const T={id:99999,sequenceId:99999,isLocalizable:!1,key:"horizons",label:c("Horizons"),isSortable:!1,isHidden:!0,showChildCheckbox:!0,showCheckbox:!1,isMandatory:!0,showInHierarchy:!0,showHide:!0,children:[]};let O=f.map(j=>(j?.children&&j.children.forEach(A=>{T.children.some(E=>E.key===A.key)||T.children.push({...A,showInHierarchy:!0})}),j)).filter(j=>j?.id!==T?.id);const M=T.children.length>0?[...O,T]:O;g(M)}},[f]);const S=async T=>{try{await M8({baseUrl:r,gridPath:o,childUniqueKey:l,gridSetting:{grid:T,pageSize:s}})}catch(O){console.error(O)}finally{d({type:Ve.HAS_SETTING_CHANGE,payload:{hasChange:!1}}),d({type:Ve.TRIGGER_API,payload:{triggerApi:!1}})}};x.useEffect(()=>{h&&t&&S(f)},[h]);const C=T=>{const O=T?.map(A=>A.id),M=T?.flatMap(A=>A.children||[])?.map(A=>A.id),j=m?.map(A=>{const L=O?.includes(A.id);if(Array.isArray(A.children)&&A.children.length>0){const N=A?.children?.map($=>{const R=M?.includes?.($.id);return{...$,isHidden:!R}}),P=N?.filter($=>m?.some(R=>R.children?.some(W=>W.id===$.id)))?.every($=>$.isHidden);return{...A,...!A.children[0]?.showInHierarchy&&{isHidden:P||!L},children:N}}return{...A,isHidden:!L}});d({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:j}}),d({type:Ve.HAS_SETTING_CHANGE,payload:{hasChange:!0}})},w=()=>m.map(O=>{const M=Array.isArray(O.children)?O.children.filter(j=>!j.isHidden):void 0;return!O.isHidden||O.isHidden&&O.showInHierarchy?{...O,children:M}:null}).filter(Boolean);return p.jsxs(se,{sx:{margin:"1rem 0",position:"relative",zIndex:10,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:"0.6rem",width:"100%"},children:[p.jsxs(se,{sx:{display:"flex",flexDirection:"row",gap:"0.6rem",alignItems:"center"},children:[e?.search?.isRequired&&p.jsx(dv,{...e?.search,iconUrl:Xe.Search}),e?.refresh?.isRequired&&p.jsx(jr,{...e?.refresh,styles:{variant:"filled",icon:Xe.Refresh,colorType:"empty",width:"3.2rem",height:"3.2rem"}}),e?.groupBy?.isRequired&&p.jsx(se,{sx:{"& .MuiInputBase-input":{padding:"0rem!important"}},children:p.jsx(ms,{styles:{icon:Xe.Group},...e.groupBy})}),t&&p.jsx(se,{sx:{"& .MuiInputBase-input":{padding:"0rem!important"}},children:p.jsx(ms,{placeholder:c("LABEL_MANAGE_COLUMN"),options:m,value:w(),isMulti:!0,isDraggable:!0,showSearch:!0,isManageColumn:!0,onChange:C,disabled:!a.length,styles:{icon:Xe.Manage}})}),v?.length>0&&v.map((T,O)=>p.jsx(x.Fragment,{children:T.render()},T.id))]}),p.jsxs(se,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"0.6rem"},children:[k?.length>0&&k.map((T,O)=>p.jsx(x.Fragment,{children:T.render()},T.id)),n&&p.jsx(w2,{customTools:n,setIsExpanded:b,isExpanded:y}),e?.save?.isRequired&&p.jsx(se,{sx:{px:"0.5rem"},children:p.jsx(jr,{label:y?"":"Save",styles:{icon:Xe.Save,colorType:"empty"},...e?.save})}),e?.upload?.isRequired&&p.jsx(jr,{...e?.upload,styles:{variant:y?"outlined":"filled",icon:y?Xe.UploadDark:Xe.Upload,iconPrimary:!y,colorType:"secondary",isAnimate:!0}}),e?.download?.isRequired&&p.jsx(jr,{...e?.download,styles:{variant:"outlined",icon:Xe.Download,isAnimate:!0}})]})]})};Jf.propTypes={defaultTools:i.object.isRequired,customTools:i.array,isManageable:i.bool,baseUrl:i.string,gridPath:i.gridPath},te(Rd)(({theme:e})=>({"& .MuiPaper-root":{borderRadius:8,border:`1px solid ${e.palette.primary.notifyBorderColor}`,boxShadow:e.shadows[4],padding:"1rem 1rem 0rem 1rem",backgroundColor:e.palette.primary.notifyBackground}}));const Nr=te(pt)(({theme:e})=>({color:e.palette.primary.notifyTextColor,fontSize:"1.1rem"})),I8=te(Hg)(({theme:e})=>({width:28,height:16,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:"#1890ff",...e.applyStyles("dark",{backgroundColor:"#177ddc"})}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:12,height:12,borderRadius:6,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:16/2,opacity:1,backgroundColor:"rgba(0,0,0,.25)",boxSizing:"border-box",...e.applyStyles("dark",{backgroundColor:"rgba(255,255,255,.35)"})}})),D8=te(ts)(({theme:e})=>({color:e.palette.primary.notifyTextColor,padding:"0.6rem 0",fontSize:"0.9rem",fontWeight:500,"&::before, &::after":{borderColor:`${e.palette.primary.notifyBorderColor}!important`}})),A8=te(Md)(({theme:e})=>({"& .MuiBadge-badge":{right:3.5,top:1.8,border:`0.1rem solid ${e.palette.primary.notifyBackground}`,padding:"0 1.3px",borderRadius:"50%",backgroundColor:"#D44E40",fontSize:"0.725rem",minWidth:"0.7rem",height:"0.7rem"}}));te(Jd)(({theme:e})=>({"& .MuiInputBase-root":{height:"3.52rem"},"& .MuiFormLabel-root":{color:`${e.palette.primary.notifyBorderColor} !important`,fontSize:"1rem",marginTop:"0.4rem"},"& label.Mui-focused":{color:e.palette.primary.notifyTextColor},"& .MuiInput-underline:after":{borderBottomColor:e.palette.primary.notifyBorderColor,borderBottomWidth:"0.1rem"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"},"&:hover fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"},"&.Mui-focused fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"}}}));const R8=te(o0)(({theme:e})=>({minHeight:"2rem","& .MuiTabs-indicator":{height:"0.1rem",backgroundColor:e.palette.primary.notifyActiveText}})),Qf=te(Ug)(({theme:e})=>({color:e.palette.primary.notifyActiveText,textTransform:"none",fontWeight:"normal",padding:0,fontSize:"1rem",minHeight:"2rem",paddingBottom:"1rem","&.Mui-selected":{fontWeight:"bold",color:e.palette.primary.notifyActiveText}})),mc=te(Gm)(({theme:e})=>({"&.MuiChip-outlined":{borderColor:e.palette.primary.notifyBorderColor,color:e.palette.primary.notifyActiveText},height:"2rem",fontSize:"0.9rem",fontWeight:"300",borderColor:e.palette.primary.notifyBorderColor,color:e.palette.primary.notifyActiveText,borderRadius:"0.6rem",padding:"0.2rem","&:hover":{backgroundColor:`${e.palette.brandColor.orange} !important`,color:`${e.palette.brandColor.white} !important`}}));function N8(e,t){const n=new Map((t??[]).map(s=>[s.id,s.label])),r=[],o=new Set;for(const s of e)s.label?.trim()&&(s.groupId?(o.has(s.groupId)||(o.add(s.groupId),r.push({isGroup:!0,id:s.groupId,label:n.get(s.groupId)??s.groupId,children:[]})),r.find(a=>a.isGroup&&a.id===s.groupId)?.children.push(s)):r.push({isGroup:!1,...s}));return r}const ks=({children:e,indent:t=!1,onClick:n,...r})=>p.jsx(Ge,{direction:"row",alignItems:"center",gap:"0.5rem",onClick:n,sx:{pl:t?"2.2rem":"0.8rem",pr:"0.8rem",py:"0.4rem",cursor:"pointer",minHeight:"2rem",userSelect:"none","&:hover":{background:o=>o.palette.action?.hover??"rgba(0,0,0,0.04)"}},...r,children:e}),Es=({hidden:e,children:t})=>p.jsx(pt,{sx:{fontSize:"1.1rem",fontWeight:300,color:n=>e?n.palette.primary.notifyTextColor:n.palette.primary.notifyActiveText,overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t});function $8({item:e,onDragEnd:t,hiddenIds:n,expandedIds:r,toggleExpand:o,handleGroupToggle:s,handleChildToggle:a,groupAllVisible:l,groupSomeVisible:c}){const d=ov(),u=r.has(e.id);return p.jsxs(lv,{value:e,dragListener:!1,dragControls:d,onDragEnd:t,as:"div",whileDrag:{opacity:.75,scale:1.01,zIndex:50},layout:!1,style:{listStyle:"none"},children:[p.jsx(ks,{onClick:()=>e.children.length===1&&s(e),children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(se,{onPointerDown:f=>f.stopPropagation(),onClick:f=>{f.stopPropagation(),o(e.id)},sx:{cursor:"pointer",flexShrink:0,width:"2rem",height:"0.9rem",opacity:.6,display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(Vt,{url:u?Xe.ArrowSelectUp:Xe.ArrowRight})}),p.jsxs(Ge,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(se,{onPointerDown:f=>f.stopPropagation(),children:p.jsx(gr,{sx:{p:0},checked:l(e),indeterminate:c(e),onClick:f=>{f.stopPropagation(),s(e)}})}),p.jsx(Es,{hidden:!l(e)&&!c(e),children:e.label})]})]})}),u&&e.children.map(f=>p.jsx(ks,{indent:!0,onClick:()=>a(f),children:p.jsxs(Ge,{direction:"row",gap:"1rem",width:"100%",children:[p.jsx(se,{sx:{flexShrink:0,width:"1rem",height:"0.9rem"}}),p.jsx(se,{onPointerDown:h=>h.stopPropagation(),children:p.jsx(gr,{sx:{p:0},checked:!n.has(f.id),onClick:h=>{h.stopPropagation(),a(f)}})}),p.jsx(Es,{hidden:n.has(f.id),children:f.label})]})},f.id))]})}function L8({item:e,onDragEnd:t,hiddenIds:n,handleLeafToggle:r}){const o=ov();return p.jsx(lv,{value:e,dragListener:!1,dragControls:o,onDragEnd:t,as:"div",whileDrag:{opacity:.75,scale:1.01,zIndex:50},layout:!1,style:{listStyle:"none"},children:p.jsx(ks,{onClick:()=>r(e),children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(se,{sx:{flexShrink:0,width:"2rem",height:"0.9rem"}}),p.jsxs(Ge,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(se,{onPointerDown:s=>s.stopPropagation(),children:p.jsx(gr,{sx:{p:0},checked:!n.has(e.id),onClick:s=>{s.stopPropagation(),r(e)}})}),p.jsx(Es,{hidden:n.has(e.id),children:e.label})]})]})})})}const B8=({engine:e,onClose:t})=>{const{t:n}=x.useContext(an),{orderedColumns:r,toggleColumnVisibility:o,showAllColumns:s,resetColumns:a,moveColumnBefore:l,groups:c=[]}=e,d=x.useMemo(()=>r.filter(P=>P.draggable||P.hideable),[r]),[u,f]=x.useState(""),[h,m]=x.useState(new Set),[g,y]=x.useState(()=>N8(d,c)),b=x.useRef(g),[v,k]=x.useState(()=>{const P=new Set;return d.forEach($=>{$.hidden&&P.add($.id)}),P}),S=P=>m($=>{const R=new Set($);return R.has(P)?R.delete(P):R.add(P),R}),C=x.useMemo(()=>d.filter(P=>P.label?.trim()).map(P=>P.id),[d]);C.length>0&&C.every(P=>!v.has(P));const w=P=>P.children.every($=>!v.has($.id)),T=P=>P.children.some($=>!v.has($.id))&&!P.children.every($=>!v.has($.id)),O=P=>{const $=new Set(v),R=P.children.every(W=>!$.has(W.id));k(W=>{const V=new Set(W);return P.children.forEach(H=>R?V.add(H.id):V.delete(H.id)),V}),setTimeout(()=>{P.children.forEach(W=>{const V=$.has(W.id);R&&!V&&o(W.id),!R&&V&&o(W.id)})},0)},M=P=>{o(P.id),k($=>{const R=new Set($);return R.has(P.id)?R.delete(P.id):R.add(P.id),R})},j=P=>{o(P.id),k($=>{const R=new Set($);return R.has(P.id)?R.delete(P.id):R.add(P.id),R})},A=P=>{y(P),b.current=P},L=()=>{const $=b.current.flatMap(R=>R.isGroup?R.children.map(W=>W.id):[R.id]);setTimeout(()=>{for(let R=$.length-2;R>=0;R--)l($[R],$[R+1])},0)},E=x.useMemo(()=>{if(!u)return g;const P=u.toLowerCase();return g.reduce(($,R)=>{if(R.isGroup){const W=R.label.toLowerCase().includes(P),V=R.children.filter(H=>H.label.toLowerCase().includes(P));W?$.push(R):V.length&&$.push({...R,children:V})}else R.label.toLowerCase().includes(P)&&$.push(R);return $},[])},[g,u]),N={hiddenIds:v,expandedIds:h,toggleExpand:S,handleGroupToggle:O,handleChildToggle:M,handleLeafToggle:j,groupAllVisible:w,groupSomeVisible:T,onDragEnd:L};return p.jsxs(se,{sx:{display:"flex",flexDirection:"column",height:"100%",background:P=>P.palette.primary.notifyBackground,border:P=>`0.1rem solid ${P.palette.primary.notifyBorderColor}`,overflow:"hidden",py:"1rem"},children:[p.jsx(se,{sx:{flexShrink:0,padding:"0rem 1rem",pb:"0.5rem"},children:p.jsx(Ui,{type:"text",placeholder:n("SEARCH"),value:u,variant:"standard",size:"small",InputProps:{disableUnderline:!0},onChange:P=>f(P.target.value),sx:{background:P=>P.palette.primary.appBackground,borderRadius:"0.8rem",border:P=>`0.1rem solid ${P.palette.primary.notifyBorderColor}`,width:"100%","& .MuiInputBase-input":{padding:"0.5rem 0.8rem!important",height:"1.8rem"}}})}),p.jsx(se,{sx:{flex:1,overflowY:"auto",scrollbarWidth:"thin"},children:(u?E:g).length===0?p.jsx(Ge,{justifyContent:"center",alignItems:"center",sx:{height:"3rem"},children:p.jsx(pt,{sx:{color:P=>P.palette.primary.notifyTextColor,fontSize:"1.1rem"},children:n("NO_OPTIONS")})}):u?p.jsx(se,{children:E.map(P=>P.isGroup?p.jsxs(se,{children:[p.jsx(ks,{onClick:()=>P.children.length===1&&O(P),children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(se,{onClick:$=>{$.stopPropagation(),S(P.id)},sx:{cursor:"pointer",flexShrink:0,width:"2rem",height:"0.9rem",opacity:.6,display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(Vt,{url:h.has(P.id)?Xe.ArrowSelectUp:Xe.ArrowRight})}),p.jsxs(Ge,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(gr,{sx:{p:0},checked:w(P),indeterminate:T(P),onClick:$=>{$.stopPropagation(),O(P)}}),p.jsx(se,{sx:{flexShrink:0,width:"2rem",height:"0.9rem",opacity:.25,display:"flex",alignItems:"center",justifyContent:"center"}}),p.jsx(Es,{hidden:!w(P)&&!T(P),children:P.label})]})]})}),P.children.map($=>p.jsx(ks,{indent:!0,onClick:()=>M($),children:p.jsxs(Ge,{direction:"row",gap:"1rem",width:"100%",children:[p.jsx(se,{sx:{flexShrink:0,width:"1rem",height:"0.9rem"}}),p.jsx(gr,{sx:{p:0},checked:!v.has($.id),onClick:R=>{R.stopPropagation(),M($)}}),p.jsx(Es,{hidden:v.has($.id),children:$.label})]})},$.id))]},P.id):p.jsx(ks,{onClick:()=>j(P),children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(se,{sx:{flexShrink:0,width:"2rem",height:"0.9rem"}}),p.jsxs(Ge,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(gr,{sx:{p:0},checked:!v.has(P.id),onClick:$=>{$.stopPropagation(),j(P)}}),p.jsx(se,{sx:{flexShrink:0,width:"2rem",height:"0.5rem",opacity:.25,display:"flex",alignItems:"center",justifyContent:"center"}}),p.jsx(Es,{hidden:v.has(P.id),children:P.label})]})]})},P.id))}):p.jsx(cA,{as:"div",axis:"y",values:g,onReorder:A,style:{padding:0,margin:0},children:g.map(P=>P.isGroup?p.jsx($8,{item:P,...N},P.id):p.jsx(L8,{item:P,...N},P.id))})})]})};function _8({columns:e,data:t,maxHeight:n=400,freezeColId:r,features:o,rowHeight:s,colMgr:a,sidebarOpen:l,onColumnSave:c,onColumnReorder:d,onColumnResize:u,...f}){const h=gt(),m=h.mode==="dark"?"dark":"light",g=h.palette.primary.notifyBackground,y=h.palette.primary.appBackground,b=h.palette.primary.notifyTextColor,v=h.palette.primary.notifyActiveText,k=h.palette.primary.notifyBorderColor,S=h.typography?.fontFamily??"Euclid Circular Regular, sans-serif",C={root:{borderRadius:"1.4rem 0 0 1.4rem",border:`0.1rem solid ${k}`,borderRight:l?"none":`0.1rem solid ${k}`,background:g,fontFamily:S,fontSize:"1.1rem",overflow:"hidden"},headerRow:{background:g,color:v,fontWeight:600},groupRow:{background:g,color:v,borderColor:k,borderLeft:`0.1rem solid ${k}`,fontWeight:600,borderBottom:`0.1rem solid ${k}`},groupHeaderCell:{borderColor:k,borderLeft:`0.1rem solid ${k}`,borderRight:`0.1rem solid ${k}`},headerCell:{background:g,color:b,borderColor:k,borderRight:"none",padding:"0 12px",textAlign:"center",fontWeight:"bold",fontSize:"1.1rem",lineHeight:"1.5rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},row:{background:g,color:b,borderColor:k,fontSize:"1.1rem"},cell:{background:g,borderBottom:`0.1rem solid ${k}`,borderRight:"none",color:b,borderColor:k,padding:"0",textAlign:"center",fontSize:"1.1rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontVariantNumeric:"tabular-nums"},pinnedCell:{background:g,color:b,borderBottom:`0.1rem solid ${k}`,borderRight:"none",padding:"0"},pinnedHeaderCell:{background:g,color:b,borderColor:k,borderRight:"none",padding:"0"},rowSelected:{background:y}},w={sortAsc:p.jsx(Vt,{url:Xe.AscSort}),sortDesc:p.jsx(Vt,{url:Xe.DescSort}),sortNone:p.jsx(Vt,{url:Xe.Unsort})},T={columns:e,data:t,rowHeight:s,maxHeight:n,theme:m,features:o,styles:C,icons:w,slots:{loadingCell:p.jsx(Zl,{type:"cell"}),toolbar:O=>{a.captureEngine(O)},rowSelectionIndicator:(O,M)=>p.jsx("div",{style:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(to right, #F9B16E, #F68080)",pointerEvents:"none",zIndex:5}})},onColumnStateChange:O=>c?.(O),onColumnReorder:d,onColumnResize:u,...f};return p.jsx(jN,{...T})}function F8(e){const{t}=x.useContext(an),n=AN(),{tableProps:r,toolbarProps:o}=e,{pagination:s={},data:a=[],childUniqueKey:l=""}=r??{},{gridPath:c="",baseUrl:d=""}=o??{},{columns:u}=r??{},[f,h]=x.useState(0),m=u?.definitions??[],g=u?.defaultUserSettings??[],y=x.useMemo(()=>JSON.stringify(m.map(R=>({k:R.key,v:R.isVisible,m:R.isMandatory,s:R.isSortable,st:R.isSticky,dr:R.isDraggable,cr:!!R.cellRenderer,ch:R.children?.map(W=>W.key)}))),[m]),b=x.useMemo(()=>m.filter(R=>R.isVisible!==!1),[y]),{settings:v,hasNewColumns:k}=x.useMemo(()=>!c||!m.length?{settings:u?.settings??[],hasNewColumns:!1}:k8({definitions:m,defaultSetting:g,gridPath:c,childUniqueKey:l}),[c,l,y,f]),S=x.useRef(null),C=x.useRef(null),w=x.useRef(v),T=x.useRef(l);T.current!==l&&(T.current=l,w.current=v,C.current=null);const O=R=>{const W=[];return R.forEach(V=>{W.push(V),(Array.isArray(V.children)?V.children:l?V.children?.[l]??[]:[]).forEach(B=>W.push(B))}),W},M=x.useCallback(R=>{c&&(clearTimeout(S.current),S.current=setTimeout(()=>{const W=new Map(R.map(F=>[F.id,F])),V=new Map(O(w.current).map(F=>[F.key,F])),H=new Map(O(v).map(F=>[F.key,F])),B=m.map(F=>{const U=W.get(F.key),q=V.get(F.key)??H.get(F.key),X={key:F.key,sequenceId:q?.sequenceId??0,isHidden:U?U.hidden:q?.isHidden??!0,style:q?.style??F.style??{}};if(F.children?.length&&l){const G=q?.children&&!Array.isArray(q.children)?q.children:{},K=F.children.map(ae=>{const le=W.get(ae.key),z=V.get(ae.key)??H.get(ae.key);return{key:ae.key,sequenceId:z?.sequenceId??0,isHidden:le?le.hidden:z?.isHidden??!1,style:z?.style??ae.style??{}}});X.children={...G,[l]:K}}return X}),D=JSON.stringify(B);if(C.current===null){C.current=D,w.current=B,k&&(pc({settings:B,gridPath:c,baseUrl:d}),h(F=>F+1));return}D!==C.current&&(C.current=D,w.current=B,pc({settings:B,gridPath:c,baseUrl:d}),h(F=>F+1))},1500))},[c,d,k,y,v,l]),j=x.useCallback(R=>{if(!c)return;const W=new Map(R.map((D,F)=>[D,F])),V=new Map(O(w.current).map(D=>[D.key,D])),H=m.map(D=>{const F=V.get(D.key),U={key:D.key,sequenceId:W.get(D.key)??F?.sequenceId??0,isHidden:F?.isHidden??!1,style:F?.style??D.style??{}};return D.children?.length&&l&&F?.children&&(U.children=F.children),U}),B=JSON.stringify(H);B!==C.current&&(C.current=B,w.current=H,pc({settings:H,gridPath:c,baseUrl:d}),h(D=>D+1))},[c,d,y,l]),A=x.useCallback((R,W)=>{c&&(clearTimeout(S.current),S.current=setTimeout(()=>{const V=`${W}px`,H=new Map(O(w.current).map(F=>[F.key,F])),B=m.map(F=>{const U=H.get(F.key),X=F.key===R?{width:V}:U?.style??F.style??{},G={key:F.key,sequenceId:U?.sequenceId??0,isHidden:U?.isHidden??!1,style:X};if(F.children?.length&&l){const K=U?.children??{},le=(Array.isArray(K[l])?K[l]:[]).map(z=>z.key===R?{...z,style:{width:V}}:z);G.children={...K,[l]:le}}return G}),D=JSON.stringify(B);D!==C.current&&(C.current=D,w.current=B,pc({settings:B,gridPath:c,baseUrl:d}),h(F=>F+1))},1500))},[c,d,y,l]),L=x.useMemo(()=>{if(!v.length)return b;const R=new Map(v.map(W=>[W.key,W.sequenceId??0]));return[...b].sort((W,V)=>(R.get(W.key)??0)-(R.get(V.key)??0))},[b,v]),E=x.useMemo(()=>u&&{...u,definitions:L,settings:v,childUniqueKey:l},[L,v,l]),N=x.useMemo(()=>P8(E),[E]),P=x.useRef(null),$={pageSize:s?.rowPerPage,gridData:a};return a.length?p.jsxs(Gt,{children:[o&&p.jsx(Jf,{...o,...$}),p.jsxs(se,{sx:{display:"flex",alignItems:"stretch"},children:[p.jsxs(se,{ref:P,sx:{flex:1,minWidth:0,alignSelf:"flex-start",position:"relative"},children:[p.jsx(_8,{...r,columns:N,colMgr:n,sidebarOpen:!1,onColumnSave:M,onColumnReorder:j,onColumnResize:A}),n.isOpen&&p.jsx(se,{sx:{position:"absolute",top:0,right:0,width:260,height:"100%",zIndex:10,display:"flex",flexDirection:"column",overflow:"hidden"},children:p.jsx(n.ColumnManagerPanel,{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},render:({engine:R,close:W})=>p.jsx(B8,{engine:R,onClose:W})})})]}),p.jsxs(se,{onClick:n.toggle,sx:{width:"2rem",flexShrink:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",gap:"0.5rem",p:"0 1.3rem",borderRadius:(n.isOpen,"0 1.4rem 1.4rem 0"),border:R=>`0.1rem solid ${R.palette.primary.notifyBorderColor}`,borderLeft:"none",background:R=>R.palette.primary.notifyButtonBackground,transition:"background 0.15s","&:hover":{background:R=>R.palette.primary.appBackground}},children:[p.jsx(se,{component:"img",src:Xe.Manage,sx:{width:"1.6rem",height:"2rem",transform:"rotate(90deg)"}}),p.jsx(pt,{sx:{fontSize:"1rem",letterSpacing:"0.08em",writingMode:"vertical-rl",textOrientation:"mixed",transform:"rotate(360deg)",userSelect:"none",color:R=>R.palette.primary.notifyTextColor},children:t("LABEL_MANAGE_COLUMN")})]})]}),s&&p.jsx(hc,{pagination:s,gridPath:c,baseUrl:d,t})]}):p.jsx(Nr,{sx:{textAlign:"center"},children:t(yr.NRF)})}const S2=e=>{let{disabled:t=!1,minWidth:n=0,maxWidth:r,className:o="",id:s,resizeStart:a,resizeEnd:l,defaultWidth:c,rowSpan:d=1,colSpan:u=1}=e;const[f,h]=x.useState(!1),[m,g]=x.useState(0),[y,b]=x.useState(0),[v,k]=x.useState(0),[S,C]=x.useState(null),w=x.useRef(null),T=x.useCallback(E=>{if(!t&&(C(s),a&&a(),h(!0),g(E),b(0),w.current)){const N=w.current.previousSibling;N&&b(N.clientWidth)}},[t,s,a]),O=x.useCallback(()=>{t||(f&&l&&S===s&&l(v),h(!1),C(null))},[t,l,S,s,v,f]),M=x.useCallback(E=>{if(t)return;const N=E instanceof TouchEvent?E.touches[0].screenX:E.screenX;if(!f)return;const P=w.current;if(!P||!P.previousSibling)return;const $=P.previousSibling,R=m-N;let W=y-R;n!==void 0&&W<n&&(W=n),r!==void 0&&W>r&&(W=r),$.style.width=W+"px",$.style.minWidth=W+"px",$.style.maxWidth=W+"px",$.style.setProperty("--column_resize_before_width",W+"px"),k(W)},[t,f,m,y,n,r]);x.useEffect(()=>{const E=w.current;if(E&&E.previousSibling){const N=E.previousSibling;c?(N.style.minWidth=c+"px",N.style.width=c+"px",N.style.maxWidth=c+"px",N.style.setProperty("--column_resize_before_width",c+"px")):n&&(N.style.minWidth=n+"px",N.style.width=n+"px",N.style.maxWidth=n+"px",N.style.setProperty("--column_resize_before_width",n+"px"))}},[c,n]),x.useEffect(()=>{const E=w.current;if(t&&E&&E.previousSibling){const N=E.previousSibling;c&&(N.style.minWidth=c+"px",N.style.width=c+"px",N.style.maxWidth=c+"px",N.style.setProperty("--column_resize_before_width",c+"px")),r&&(N.style.maxWidth=r+"px")}},[t,c,r]);const j=x.useCallback(()=>{document.addEventListener("mousemove",M),document.addEventListener("mouseup",O),document.addEventListener("touchmove",M),document.addEventListener("touchend",O)},[M,O]),A=x.useCallback(()=>{document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",O),document.removeEventListener("touchmove",M),document.removeEventListener("touchend",O)},[M,O]);x.useEffect(()=>(t||j(),()=>{A()}),[t,j,A]);const L={userSelect:"none"};return t||(L.cursor="ew-resize"),o===""&&(L.width="6px",L.backgroundColor="rgba(0, 0, 0, 0.1)"),x.createElement("th",{ref:w,style:L,rowSpan:d,colSpan:u,className:"column_resizer_own_class ".concat(t?"disabled_column_resize":""," ").concat(o),onMouseDown:t?void 0:E=>T(E.screenX),onTouchStart:t?void 0:E=>T(E.touches[0].screenX)})};function gc({isRenderCellContent:e,column:t,row:n,parent:r}){const o=n[t.key],s=o?.length>20;return p.jsx(p.Fragment,{children:e?p.jsx(se,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textTransform:"none",fontSize:"1.1rem"},children:t?.cellRenderer(n,{column:t,parent:r})}):p.jsx(p.Fragment,{children:s?p.jsx(Ti,{title:o,placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.5rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:p.jsx(se,{sx:{maxWidth:"auto",whiteSpace:"normal"},children:p.jsx(pt,{sx:{fontSize:"1.1rem",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textTransform:"none"},children:o})})}):p.jsx(se,{sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textTransform:"none",fontSize:"1.1rem",m:0},id:t.key,component:"p",children:o??""})})})}gc.propTypes={isRenderCellContent:i.bool,column:i.object,row:i.object};const W8=te(ns)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"table-cell",[`&.${Gd.head}`]:{color:e.palette.primary.notifyTextColor,backgroundColor:e.palette.primary.notifyBackground,borderColor:e.palette.primary.notifyBorderColor,padding:"0rem",textAlign:"center",lineHeight:"1.5rem"},[`&.${Gd.body}`]:{color:e.palette.primary.notifyTextColor,borderColor:e.palette.primary.notifyBorderColor,padding:"0rem",textAlign:"center"}}));function Mo({children:e,...t}){return p.jsx(W8,{...t,children:e})}Mo.propTypes={children:i.node};const z8=te(Zg)(()=>({"&:last-child td":{borderBottom:"none"}}));function eo({children:e,...t}){return p.jsx(z8,{...t,children:e})}eo.propTypes={children:i.node};const C2=x.memo(({row:e,isSelected:t,isHigh:n,onRowClick:r,children:o,sxProps:s})=>p.jsx(eo,{sx:a=>({backgroundColor:t||n?a.palette.primary.appBackground:a.palette.primary.notifyBackground,...s}),onClick:()=>r?.(e),children:o},e?.fhi)),T2=x.memo(({nestedData:e,nestedColumn:t,t:n})=>e?.length?p.jsx(p.Fragment,{children:e.map((r,o)=>p.jsx(eo,{children:t.map((s,a)=>p.jsx(Mo,{style:s?.style,children:p.jsx(gc,{isRenderCellContent:!!s?.cellRenderer,column:s,row:r})},a))},`nested-${o}`))}):p.jsx(eo,{children:p.jsx(Mo,{colSpan:t.length,children:p.jsx(Nr,{sx:{textAlign:"center"},children:n(yr.NRF)})})})),k2=(e,t,n,r,o,s)=>{const[a,l]=x.useState({isOpen:!1,column:null}),c=(h,m,g)=>{l({isOpen:h.currentTarget,column:m,isChild:!!g})},d=()=>{l({isOpen:!1,column:null,isChild:!1})},u=async()=>{d();const h=e.map(m=>{if(a?.isChild&&Array.isArray(m.children)){const g=m.children.map(b=>b.key===a.column?.key?{...b,isHidden:!0}:b),y=g.every(b=>b.isHidden);return{...m,isHidden:y?!0:m.isHidden,children:g}}return m.key===a.column?.key?{...m,isHidden:!0}:m});f({updatedColumns:h})},f=async({updatedColumns:h})=>{t({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:h}});const m=r.split("/").filter(Boolean),g=JSON.parse(localStorage.getItem(Fn.SETTINGS));let y=m.reduce((T,O)=>T?.[O],g)||null,b=la({columns:h,childUniqueKey:s});const v=Rr(y?.columns);b=b?.map(T=>{const O=T?.children||{},M=v?.[T?.key]?.children||{};return{...T,...(Object.keys(M)?.length>0||O?.[s])&&{children:{...M,[s]:O?.[s]}}}});const S={...g||{platform:{theme:"light"}}},C=y?.pageSize??o;let w=S;for(let T=0;T<m.length;T++){const O=m[T];T===m.length-1?w[O]={columns:b,pageSize:C}:(w[O]={...w[O]||{}},w=w[O])}localStorage.setItem(Fn.SETTINGS,JSON.stringify(S)),await ia({baseUrl:n,payload:S})};return{selectedColumn:a,handleMenuClick:c,handleClose:d,handleHideClick:u,columnUpdaterFunction:f}},ep=({menuOpen:e,handleClose:t,onHideClick:n})=>{const r=gt(),{t:o}=x.useContext(an);return p.jsx(wi,{open:!!e,anchorEl:e,onClose:t,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:p.jsx(se,{sx:{backgroundColor:r.palette.primary.notifyBackground,border:`0.1rem solid ${r.palette.primary.notifyBorderColor}`,minHeight:"2.3rem",display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx(gl,{onClick:n,disableRipple:!0,sx:{textTransform:"none",fontSize:"1.1rem",p:"0.4rem 1rem",minHeight:"unset",fontWeight:500,color:r.palette.primary.notifyTextColor,backgroundColor:"transparent","&:hover":{backgroundColor:"transparent"},"&:active":{backgroundColor:"transparent"},"&:focus":{backgroundColor:"transparent"}},children:o("LABEL_HIDE_COLUMN")})})})};ep.propTypes={menuOpen:i.object,handleClose:i.func,onHideClick:i.func};const E2=({sortKey:e,sortField:t,sortDir:n,handleSortClick:r})=>{const o=s=>p.jsx(tl,{onClick:r,sx:{padding:"0.2rem"},draggable:!1,children:p.jsx(Vt,{url:s})});return p.jsx(p.Fragment,{children:o(t===e?n==="asc"?Xe.AscSort:Xe.DescSort:Xe.Unsort)})};E2.propTypes={sortKey:i.string.isRequired,sortField:i.string,sortDir:i.string,handleSortClick:i.func};function tp({parent:e,column:t,sort:n,handleMenuClick:r,isManageable:o}){const s=o&&(!t?.isMandatory||t?.isMandatory&&t?.showHide===!0),a=t?.label,l=t?.helpText,c=t?.isSortable,d=n?.sortField,u=n?.sortDir,f=n?.onSort;return p.jsxs(se,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},draggable:!1,children:[p.jsx(se,{sx:{fontWeight:"bold",fontSize:"1.1rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",padding:"0.5rem",textAlign:"center"},children:p.jsx(Ti,{title:l??a,placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.6rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:a??""})}),p.jsxs(se,{sx:{display:"flex",alignItems:"center"},draggable:!1,children:[c&&p.jsx(E2,{sortKey:e?`${e?.key}|${t?.key}`:t?.key,sortField:d,sortDir:u,handleSortClick:()=>f({column:t,sortDir:u,sortField:d,parent:e})}),s&&p.jsx(tl,{draggable:!1,onClick:h=>r(h,t,e),sx:{padding:"0.2rem"},children:p.jsx(Vt,{url:Xe.Menu})})]})]})}tp.propTypes={column:i.object.isRequired,sort:i.object.isRequired,handleMenuClick:i.func,isManageable:i.bool};function O2({rows:e,sort:t,data:n,pagination:r,columns:o,nested:s,baseUrl:a,gridPath:l,childUniqueKey:c,isVirtualizedTable:d=!1,t:u}){const f=gt(),{visibleGridColumns:h}=x.useContext(Yi),m=x.useContext(hs),{selectedColumn:g,handleMenuClick:y,handleClose:b,handleHideClick:v,columnUpdaterFunction:k}=k2(h,m,a,l,r?.rowPerPage,c),S=o?.isManageable,C=o?.isResizable,w=n?.length>0,T=x.useRef(null),O=x.useRef(null),M=45,j=10,A=n?.length,[L,E]=x.useState({start:0,end:10}),[N,P]=x.useState(null),[$,R]=x.useState(null),[W,V]=x.useState(null);let H=null;const B=x.useRef(0),D=x.useRef(!1),F=x.useRef(null),U=y2(s?.column?.definitions||[]),q=s?.isNested,X=s?.data||[],G=s?.hashKey,[K,ae]=x.useState(0);x.useEffect(()=>{if(T.current){const re=()=>{ae(T.current.offsetHeight)};return re(),window.addEventListener("resize",re),()=>window.removeEventListener("resize",re)}},[n]),x.useEffect(()=>{const ie=T.current?.querySelector("thead");if(!ie)return;const Te=()=>{V(null)};return ie?.addEventListener("mousedown",Te),()=>{ie?.removeEventListener("mousedown",Te)}},[]);const le=(re,ie)=>{if(D.current){re.preventDefault();return}P(ie),V(null),re.dataTransfer.setData("colIndex",ie);const Te=h[ie],he=Te?.label,pe=document.createElement("div");pe.textContent=he,Object.assign(pe.style,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1.5rem 2.5rem",minWidth:Te?.style?.minWidth,maxWidth:Te?.style?.maxWidth,fontSize:"1.2rem",fontWeight:"500",color:f.palette.primary.notifyTextColor,background:f.palette.primary.notifyBackground,border:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,borderRadius:"0rem",pointerEvents:"none",position:"absolute",top:"0",left:"0",zIndex:"-1",textAlign:"center",boxSizing:"border-box",boxShadow:"0 1px 4px rgba(0, 0, 0, 0.2)"}),document.body.appendChild(pe);const{offsetWidth:Ie,offsetHeight:Fe}=pe;re.dataTransfer.setDragImage(pe,Ie/2,Fe/2),requestAnimationFrame(()=>{document.body.removeChild(pe)})},z=(re,ie)=>{re.preventDefault(),R(ie),ke(re)},ee=async(re,ie)=>{if(re.preventDefault(),clearInterval(H),N===null||N===ie)return;const Te=[...h],[he]=Te.splice(N,1);Te.splice(ie,0,he);const pe=h.slice().sort((Fe,He)=>Fe.sequenceId-He.sequenceId).map(Fe=>Fe.sequenceId),Ie=Te.map((Fe,He)=>({...Fe,sequenceId:pe[He]??Fe.sequenceId}));k({updatedColumns:Ie}),P(null),R(null)},_=()=>{P(null),R(null)},ue=(re,ie,Te,he)=>{if(!re)return null;const pe=re?.isMandatory&&re?.isSticky,Ie=parseFloat(re?.style?.minWidth?.toString().replace("rem",""))||7.5;ie===0&&(B.current=0);const Fe=pe?ie===0?0:`${B.current}rem`:void 0;pe&&(B.current+=Ie);const He=N===ie,Oe=$==ie||h?.[$]?.isMandatory,Tt=nt=>{re.isMandatory?(nt.preventDefault(),nt.dataTransfer.dropEffect="none"):(nt.preventDefault(),nt.dataTransfer.dropEffect="move"),z?.(nt,ie)},st=nt=>{re.isMandatory||ee?.(nt,ie)};return he&&`${he?.key}${re?.key}${ie}`,p.jsx(Mo,{rowSpan:re?.children?1:2,colSpan:re?.children?.filter(nt=>!nt?.isHidden)?.length,style:re?.style,draggable:Te&&!re?.isMandatory,onDragStart:Te&&!re?.isMandatory?nt=>le(nt,ie):nt=>{nt.preventDefault()},onDragOver:Te&&!re?.isMandatory?Tt:void 0,onDrop:Te&&!re?.isMandatory?st:void 0,onDragEnd:Te&&!re?.isMandatory?_:void 0,sx:{...re?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...re.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...re?.key==="volume_value"&&{borderLeft:"1px solid"}},...He&&{border:`0.1rem solid ${f.palette.brandColor.lightBlue}!important`},...pe&&{position:"sticky",left:Fe,zIndex:3},cursor:Oe?"not-allowed":Te&&!re?.isMandatory?"grab":"default"},children:p.jsx(tp,{parent:he,column:re,sort:t,handleMenuClick:y,isManageable:Te})},ie)},Q=x.useCallback((re,ie,Te,he)=>{if(!re)return null;const pe=re?.isMandatory&&re?.isSticky,Ie=parseFloat(re?.style?.minWidth?.toString().replace("rem",""))||7.5;Te===0&&(B.current=0);const Fe=pe?Te===0?0:`${B.current}rem`:void 0;return pe&&(B.current+=Ie),p.jsxs(Mo,{colSpan:1,style:re?.style,className:`${re?.label}`,sx:{position:"relative",...re.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...re?.key==="volume_value"&&{borderLeft:"1px solid"}},...re?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...pe&&{position:"sticky",left:Fe,zIndex:2,backgroundColor:He=>e?.selectedRow&&e?.selectedRow?.fhi===ie?.fhi||ie?.isHigh?He.palette.primary.appBackground:He.palette.primary.notifyBackground}},children:[(e?.selectedRow&&e?.selectedRow?.fhi===ie?.fhi||ie?.isHigh)&&p.jsx(se,{sx:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none",zIndex:1}}),p.jsx(gc,{isRenderCellContent:!!re?.cellRenderer,column:re,row:ie,parent:he})]},Te)},[e?.selectedRow,f]),ne=(re,ie,Te,he)=>p.jsx(p.Fragment,{children:re&&Te&&!re?.isMandatory?p.jsx(se,{resizeStart:()=>{re?.isMandatory&&!re?.isResizable||(D.current=!0)},resizeEnd:pe=>{re?.isMandatory&&!re?.isResizable||pe<=20||(D.current=!1,x2({index:ie,visibleGridColumns:h,width:pe,columnUpdaterFunction:k}))},component:re?.children||re?.isMandatory?ns:S2,rowSpan:re?.children?1:2,colSpan:1,id:ie,sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,cursor:"col-resize","&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"0.15rem",height:"1.5rem",backgroundColor:f.palette.primary.notifyBorderColor,zIndex:1},...!re?.isMandatory&&{"&:hover::after":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"0.2rem",height:`${K}px`,backgroundColor:f.palette.primary.notifyBorderColor,zIndex:1}}}}):null}),we=x.useCallback((re,ie,Te,he,pe,Ie,Fe)=>p.jsx(p.Fragment,{children:ie&&he&&!ie?.isMandatory?p.jsx(ns,{className:"column_resizer_body",sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${f.palette.primary.notifyBorderColor}`},children:(e?.selectedRow&&e?.selectedRow?.fhi===re?.fhi||re?.isHigh)&&p.jsx(se,{sx:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none"}})},`resize-${Te}_${Fe}`):null}),[e?.selectedRow,f]),ke=re=>{const ie=T.current,{left:Te,right:he}=ie.getBoundingClientRect(),pe=50,Ie=re.clientX>he-pe?1:re.clientX<Te+pe?-1:0;Ie!==0?(F.current&&clearInterval(F.current),F.current=setInterval(()=>{ie.scrollLeft+=Ie*10},50)):F.current&&(clearInterval(F.current),F.current=null)},Ce=re=>re?.map((ie,Te)=>{const he=L.start+Te,pe=ie[G],Ie=X?.[pe],Fe=e?.selectedRow&&e?.selectedRow?.fhi===ie?.fhi,He=ie?.isHigh;return p.jsxs(x.Fragment,{children:[p.jsx(C2,{row:ie,isSelected:Fe,isHigh:He,onRowClick:e?.onRowClick,children:h.map((Oe,Tt)=>Oe?.isHidden||Oe?.isVisible===!1?null:Oe?.children?Oe.children.map((st,nt)=>st?.isHidden?null:p.jsxs(x.Fragment,{children:[Q(st,ie,nt,Oe),C&&we(ie,st,nt,S,Oe,"",he)]},`col-${Tt}-${nt}`)):p.jsxs(x.Fragment,{children:[Q(Oe,ie,Tt),C&&we(ie,Oe,Tt,S,"","",he)]},`col-${Tt}`))}),q&&Ie&&p.jsx(T2,{nestedData:Ie,nestedColumn:U,t:u})]},`row-${he}`)}),ve=()=>{const re=O.current;if(!re)return;const ie=re.scrollTop,Te=re.clientHeight,he=Math.floor(ie/M)-j,pe=Math.ceil(Te/M)+2*j,Ie=Math.max(0,Math.min(A-1,he)),Fe=Math.max(Ie,Math.min(A,Ie+pe));E(He=>He.start===Ie&&He.end===Fe?He:{start:Ie,end:Fe})};x.useEffect(()=>{let re;const ie=()=>{re&&cancelAnimationFrame(re),re=requestAnimationFrame(()=>{ve()})},Te=O.current;if(!(!Te||!d))return ve(),Te.addEventListener("scroll",ie),()=>{cancelAnimationFrame(re),Te.removeEventListener("scroll",ie)}},[A]);const _e=L.start*M,Ee=(A-L.end)*M,xe=d?n?.slice(L.start,L.end):n;return w?p.jsxs(p.Fragment,{children:[p.jsx(Kd,{ref:O,sx:{willChange:"transform",WebkitTransform:"translateZ(0)",maxHeight:"40rem",whiteSpace:"nowrap",overflow:"auto",width:"100%",border:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,borderRadius:"1.4rem",position:"relative"},children:p.jsxs(Yd,{ref:T,stickyHeader:!0,"aria-label":"sticky table",sx:{backgroundColor:re=>re.palette.primary.notifyBackground},children:[p.jsxs(Xd,{children:[p.jsx(eo,{sx:{position:"sticky",top:0,zIndex:3,backgroundColor:re=>re.palette.primary.notifyBackground},children:h.map((re,ie)=>re?.isHidden||re?.isVisible===!1?null:p.jsxs(x.Fragment,{children:[ue(re,ie,S),ne(re,ie,S)]},ie))}),p.jsx(eo,{draggable:!1,sx:{position:"sticky",top:"2.5rem",backgroundColor:f.palette.primary.notifyBackground,zIndex:2},children:h.flatMap((re,ie)=>re?.isHidden||!re?.children||re?.isVisible===!1?[]:re.children.map((Te,he)=>Te?.isHidden?null:p.jsxs(x.Fragment,{children:[ue(Te,he,S,re),C&&ne(Te,he,S)]},`${ie}-${he}`)))})]}),p.jsxs(qd,{children:[d&&p.jsx("tr",{style:{height:_e}}),Ce(xe),d&&p.jsx("tr",{style:{height:Ee}})]})]})}),r&&p.jsx(hc,{pagination:r,gridPath:l,baseUrl:a,t:u}),p.jsx(ep,{menuOpen:g?.isOpen,handleClose:b,onHideClick:v})]}):p.jsx(Nr,{sx:{textAlign:"center"},children:u(yr.NRF)})}O2.propTypes={sort:i.object,data:i.array,pagination:i.object,columns:i.object,nested:i.object};function M2(e){return fv(e?.style?.width??e?.style?.minWidth??e?.style?.maxWidth)||0}const P2=e=>e?.isHidden||e?.isVisible===!1;function V8(e){const t=x.useMemo(()=>{let o=0;return e.flatMap((s,a)=>{if(P2(s))return[];if(Array.isArray(s.children)&&s.children.length){const d=s.children.filter(u=>!P2(u));return d.length?d.map(u=>{const f=M2(u),h={...u,_parent:s,_originalIndex:a,width:f,start:o,end:o+f,isSticky:!!(u?.isSticky??s?.isSticky)};return o+=f,h}):[]}const l=M2(s);if(l===0)return[];const c={...s,_parent:null,_originalIndex:a,width:l,start:o,end:o+l,isSticky:!!s?.isSticky};return o+=l,c})},[e]),n=x.useMemo(()=>{let o=0;const s={};return t.forEach(a=>{a.isSticky&&(s[a.sequenceId]=o,o+=a.width)}),s},[t]);return{columnsMeta:t,stickyOffsets:n,getStickyLeft:o=>{if(!o?.isMandatory||!o?.isSticky)return;const s=n[o.sequenceId];return s===0?0:`${s}px`}}}function H8({visibleGridColumns:e,columnUpdaterFunction:t,isResizingRef:n,startAutoScroll:r,stopAutoScroll:o}){const s=gt(),[a,l]=x.useState(null),[c,d]=x.useState(null),u=x.useCallback((b,v)=>{if(n.current){b.preventDefault();return}l(v),b.dataTransfer.setData("colIndex",v);const k=e[v],S=document.createElement("div");S.textContent=k?.label,Object.assign(S.style,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1.5rem 2.5rem",minWidth:k?.style?.minWidth,maxWidth:k?.style?.maxWidth,fontSize:"1.2rem",fontWeight:"500",color:s.palette.primary.notifyTextColor,background:s.palette.primary.notifyBackground,border:`0.1rem solid ${s.palette.primary.notifyBorderColor}`,borderRadius:"0rem",pointerEvents:"none",position:"absolute",top:"0",left:"0",zIndex:"-1",textAlign:"center",boxSizing:"border-box",boxShadow:"0 1px 4px rgba(0, 0, 0, 0.2)"}),document.body.appendChild(S);const{offsetWidth:C,offsetHeight:w}=S;b.dataTransfer.setDragImage(S,C/2,w/2),requestAnimationFrame(()=>document.body.removeChild(S))},[n,e,s]),f=x.useCallback((b,v)=>{if(b.preventDefault(),e?.[v]?.isMandatory){b.dataTransfer.dropEffect="none";return}b.dataTransfer.dropEffect="move",d(v),r(b.clientX)},[r,e]),h=x.useCallback(async(b,v)=>{if(b.preventDefault(),o(),a===null||a===v||e?.[v]?.isMandatory)return;const k=[...e],[S]=k.splice(a,1);k.splice(v,0,S);const C=[...e].sort((T,O)=>T.sequenceId-O.sequenceId).map(T=>T.sequenceId),w=k.map((T,O)=>({...T,sequenceId:C[O]??T.sequenceId}));t({updatedColumns:w}),l(null),d(null)},[a,e,t,o]),m=x.useCallback(()=>{o(),l(null),d(null)},[o]),g=b=>!b?.isMandatory,y=x.useCallback(b=>c===null||a===null?!1:!!(e?.[b]?.isMandatory||e?.[c]?.isMandatory),[c,a,e]);return{draggedColIndex:a,dragOverIndex:c,handleDragStart:u,handleDragOver:f,handleDrop:h,handleDragEnd:m,isDraggable:g,isInvalidDrop:y}}const j2=50,U8=10,Y8=50;function q8(e){const t=x.useRef(null),n=x.useCallback(()=>{t.current&&(clearInterval(t.current),t.current=null)},[]);return{startAutoScroll:x.useCallback(o=>{const s=e.current;if(!s)return;const{left:a,right:l}=s.getBoundingClientRect(),c=o>l-j2?1:o<a+j2?-1:0;if(c===0){n();return}t.current||(t.current=setInterval(()=>{s.scrollLeft+=c*U8},Y8))},[e,n]),stopAutoScroll:n}}const np=x.memo(function({column:t,index:n,isManageable:r,parent:o,stickyLeft:s,colSpanOverride:a,draggedColIndex:l,isInvalidDrop:c,onDragStart:d,onDragOver:u,onDrop:f,onDragEnd:h,sort:m,handleMenuClick:g}){const y=gt(),b=l===n,v=r&&!t?.isMandatory,k=t?.isMandatory&&t?.isSticky,S=o&&o.children?.find(T=>!T?.isHidden&&T?.isVisible!==!1)?.key===t?.key,C=!o&&Array.isArray(t?.children)&&t.children.some(T=>!T?.isHidden&&T?.isVisible!==!1),w=a??t.children?.filter(T=>!T?.isHidden)?.length;return p.jsx(Mo,{rowSpan:t?.children?1:2,colSpan:w,style:t?.style,draggable:v,onDragStart:v?T=>d(T,n):T=>T.preventDefault(),onDragOver:v?T=>u(T,n):void 0,onDrop:v?T=>f(T,n):void 0,onDragEnd:v?h:void 0,sx:{...t?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...t.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...(S||C)&&{borderLeft:"0.1rem solid"}},...b&&{border:`0.1rem solid ${y.palette.brandColor.lightBlue}!important`},...k&&{position:"sticky",left:s,zIndex:3},cursor:c(n)?"not-allowed":v?"grab":"default"},children:p.jsx(tp,{parent:o,column:t,sort:m,handleMenuClick:g,isManageable:r})},n)}),rp=x.memo(function({column:t,index:n,isManageable:r,tableHeight:o,onResizeStart:s,onResizeEnd:a}){const l=gt();return!t||!r||t?.isMandatory?null:p.jsx(se,{component:t?.children||t?.isMandatory?ns:S2,rowSpan:t?.children?1:2,colSpan:1,id:n,resizeStart:s,resizeEnd:a,sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${l.palette.primary.notifyBorderColor}`,cursor:"col-resize","&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"0.15rem",height:"1.5rem",backgroundColor:l.palette.primary.notifyBorderColor,zIndex:1},"&:hover::after":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"0.2rem",height:`${o}px`,backgroundColor:l.palette.primary.notifyBorderColor,zIndex:1}}})}),G8=x.memo(function({stickyGridColumns:t,virtualisedColumns:n,isManageable:r,isResizable:o,tableHeight:s,sort:a,handleMenuClick:l,getStickyLeft:c,offsetX:d,draggedColIndex:u,isInvalidDrop:f,onDragStart:h,onDragOver:m,onDrop:g,onDragEnd:y,isResizingRef:b,columnUpdaterFunction:v,visibleGridColumns:k}){const S=gt(),C={draggedColIndex:u,isInvalidDrop:f,onDragStart:h,onDragOver:m,onDrop:g,onDragEnd:y},w=(O,M)=>({onResizeStart:()=>{O?.isMandatory&&!O?.isResizable||(b.current=!0)},onResizeEnd:j=>{O?.isMandatory&&!O?.isResizable||j<=20||(b.current=!1,x2({index:M,visibleGridColumns:k,width:j,columnUpdaterFunction:v}))}}),T=x.useMemo(()=>{const O=[];return n.forEach(M=>{const j=M._parent?.key??M.key,A=O[O.length-1];A&&A.key===j?A.colSpan+=1:O.push({key:j,column:M._parent??M,colSpan:1,firstChild:M})}),O},[n]);return p.jsxs(Xd,{children:[p.jsxs(eo,{sx:{position:"sticky",top:0,zIndex:3,backgroundColor:S.palette.primary.notifyBackground},children:[t.map((O,M)=>{const j=O._parent??O;return p.jsxs(x.Fragment,{children:[p.jsx(np,{column:j,index:O._originalIndex,isManageable:r,stickyLeft:c(O),sort:a,handleMenuClick:l,...C}),o&&p.jsx(rp,{column:j,index:O._originalIndex,isManageable:r,tableHeight:s,...w(j,O._originalIndex)})]},`sticky-p-${M}`)}),p.jsx("th",{style:{minWidth:d,width:d,padding:0,border:"none"}}),T.map((O,M)=>p.jsxs(x.Fragment,{children:[p.jsx(np,{column:O.column,index:O.firstChild._originalIndex,colSpanOverride:O.colSpan,isManageable:r,stickyLeft:c(O.firstChild),sort:a,handleMenuClick:l,...C}),o&&p.jsx(rp,{column:O.column,index:O.firstChild._originalIndex,isManageable:r,tableHeight:s,...w(O.column,O.firstChild._originalIndex)})]},`parent-${O.key}`))]}),p.jsxs(eo,{draggable:!1,sx:{position:"sticky",top:"2.5rem",backgroundColor:S.palette.primary.notifyBackground,zIndex:2},children:[p.jsx("th",{style:{minWidth:d,width:d,padding:0,border:"none"}}),n?.map((O,M)=>O._parent&&p.jsxs(x.Fragment,{children:[p.jsx(np,{column:O,index:O._originalIndex,isManageable:r,parent:O._parent,stickyLeft:c(O),sort:a,handleMenuClick:l,...C}),o&&p.jsx(rp,{column:O,index:O._originalIndex,isManageable:r,tableHeight:s,...w(O,O._originalIndex)})]},`child-${O?._parent?.key??O.key}-${M}`))]})]})}),K8=()=>p.jsx(se,{sx:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none",zIndex:1}}),I2=x.memo(function({column:t,row:n,cellKey:r,parent:o,stickyLeft:s,isSelected:a,isHigh:l}){const c=gt(),d=t?.isMandatory&&t?.isSticky,u=a||l,f=o&&o.children?.find(h=>!h?.isHidden&&h?.isVisible!==!1)?.key===t?.key;return p.jsxs(Mo,{colSpan:1,style:t?.style,className:`${t?.label}`,sx:{position:"relative",...t.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...f&&{borderLeft:"0.1rem solid"}},...t?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...d&&{position:"sticky",left:s,zIndex:2,backgroundColor:u?c.palette.primary.appBackground:c.palette.primary.notifyBackground}},children:[u&&p.jsx(K8,{}),p.jsx(gc,{isRenderCellContent:!!t?.cellRenderer,column:t,row:n,parent:o})]},r)});function X8({actualIndex:e,extraHeight:t,measureRow:n,resetRow:r}){return useEffect(()=>(n(e,t),()=>r(e)),[e,t]),null}const Z8=x.memo(function({visibleRows:t,stickyGridColumns:n,virtualisedColumns:r,isResizable:o,isManageable:s,topSpacerHeight:a,bottomSpacerHeight:l,selectedRow:c,isNested:d,nestedRow:u,nestedColumn:f,hashKey:h,getStickyLeft:m,offsetX:g,rightSpacerWidth:y,rowStart:b,defaultRowHeight:v,measureRow:k,resetRow:S,t:C}){const w=gt(),T=x.useCallback((O,M,j)=>{if(!O||!s||O?.isMandatory)return null;const A=c&&c?.fhi===M?.fhi||M?.isHigh;return p.jsx(ns,{className:"column_resizer_body",sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${w.palette.primary.notifyBorderColor}`},children:A&&p.jsx("div",{style:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none"}})},`resize-${j}`)},[s,c,w]);return p.jsxs(qd,{children:[p.jsx("tr",{style:{height:a}}),t?.map((O,M)=>{const j=b+M,A=c&&c?.fhi===O?.fhi,L=O?.isHigh,E=u?.[O[h]];return p.jsxs(x.Fragment,{children:[p.jsxs(C2,{row:O,isSelected:A,isHigh:L,sxProps:{height:"3.5rem","& td, & th":{height:"3.5rem"}},children:[n.map((N,P)=>p.jsxs(x.Fragment,{children:[p.jsx(I2,{column:N,row:O,cellKey:P,parent:N._parent,stickyLeft:m(N),isSelected:A,isHigh:L}),o&&T(N,O,`sticky-${P}-${j}`)]},`sticky-${N.sequenceId??P}`)),p.jsx("td",{style:{minWidth:g,width:g,padding:0,border:"none"}}),r.map((N,P)=>p.jsxs(x.Fragment,{children:[p.jsx(I2,{column:N,row:O,cellKey:P,parent:N._parent,stickyLeft:m(N),isSelected:A,isHigh:L}),o&&T(N,O,`${P}-${j}`)]},`col-${N?._parent?.key??N.key}-${P}`))]}),d&&E&&p.jsxs(p.Fragment,{children:[p.jsx(X8,{actualIndex:j,extraHeight:E.length*v,measureRow:k,resetRow:S}),p.jsx(T2,{nestedData:E,nestedColumn:f,t:C})]})]},`row-${j}`)}),p.jsx("tr",{style:{height:l}})]})});function J8({rowCount:e,defaultRowHeight:t,scrollTop:n,containerRef:r,overscan:o=5}){const s=x.useRef(0),[a,l]=x.useState(()=>fv("40rem"));x.useEffect(()=>{const m=r?.current;if(!m)return;const g=m.clientHeight;g&&g!==s.current&&(s.current=g,l(g));const y=new ResizeObserver(b=>{const v=b[0].contentRect;v.height!==s.current&&(s.current=v.height,l(v.height))});return y.observe(m),()=>y.disconnect()},[]);const[c,d]=x.useState({}),u=(m,g)=>{d(y=>y[m]===g?y:{...y,[m]:g})},f=m=>{d(g=>{if(!(m in g))return g;const y={...g};return delete y[m],y})},h=x.useMemo(()=>{const m=new Array(e+1);m[0]=0;for(let g=0;g<e;g++)m[g+1]=m[g]+(c[g]??t);return m},[c,e,t]);return x.useMemo(()=>{const m=h[e],g=n+a;let y=0,b=e-1,v=0;for(;y<=b;){const S=y+b>>1;h[S+1]>n?(v=S,b=S-1):y=S+1}v=Math.max(0,v-o),y=v,b=e-1;let k=e;for(;y<=b;){const S=y+b>>1;h[S]>=g?(k=S,b=S-1):y=S+1}return k=Math.min(e,k+o),{startIndex:v,endIndex:k,topSpacerHeight:h[v],bottomSpacerHeight:m-h[k],totalHeight:m,measureRow:u,resetRow:f}},[h,e,a,n,o])}function Q8({columnWidths:e,scrollLeft:t,overscan:n=2}){const r=x.useRef(0),[o,s]=x.useState(0),a=x.useRef(null),l=x.useCallback(f=>{if(a.current?.disconnect(),!f)return;const h=f.clientWidth;h&&(r.current=h,s(h)),a.current=new ResizeObserver(m=>{const g=m[0].contentRect;g.width!==r.current&&(r.current=g.width,s(g.width))}),a.current.observe(f)},[]),c=x.useMemo(()=>e.map(f=>{const h=Number(f);return Number.isFinite(h)&&h>0?h:0}),[e]),d=x.useMemo(()=>{const f=new Array(c.length+1);f[0]=0;for(let h=0;h<c.length;h++)f[h+1]=f[h]+c[h];return f},[c]);return{...x.useMemo(()=>{const f=t+o,h=d[c.length];let m=0,g=c.length-1,y=c.length;for(;m<=g;){const v=m+g>>1;d[v+1]>t?(y=v,g=v-1):m=v+1}y=Math.max(0,y-n),m=y,g=c.length-1;let b=c.length;for(;m<=g;){const v=m+g>>1;d[v]>=f?(b=v,g=v-1):m=v+1}return b=Math.min(c.length,b+n),{startIndex:y,endIndex:b,offsetX:d[y]||0,rightSpacerWidth:h-d[b],viewportWidth:o}},[c,d,o,t,n]),measuredRef:l}}const D2=45;function eL({rows:e,sort:t,data:n,pagination:r,columns:o,nested:s,baseUrl:a,gridPath:l,childUniqueKey:c,isVirtualizedTable:d=!1,t:u}){const f=gt(),{visibleGridColumns:h}=x.useContext(Yi),m=x.useContext(hs),{selectedColumn:g,handleMenuClick:y,handleClose:b,handleHideClick:v,columnUpdaterFunction:k}=k2(h,m,a,l,r?.rowPerPage,c),S=o?.isManageable,C=o?.isResizable,w=x.useRef(null),T=x.useRef(null),O=x.useRef(!1),M=x.useRef(0),j=x.useRef(0),A=x.useRef(!1),L=x.useRef(n),[,E]=x.useState({}),{getStickyLeft:N,columnsMeta:P}=V8(h),{startAutoScroll:$,stopAutoScroll:R}=q8(w),{draggedColIndex:W,isInvalidDrop:V,handleDragStart:H,handleDragOver:B,handleDrop:D,handleDragEnd:F}=H8({visibleGridColumns:h,columnUpdaterFunction:k,isResizingRef:O,startAutoScroll:$,stopAutoScroll:R});L.current!==n&&(L.current=n,M.current=0,j.current=0,T.current&&(T.current.scrollTop=0,T.current.scrollLeft=0));const U=he=>{const pe=he.currentTarget.scrollTop,Ie=he.currentTarget.scrollLeft;A.current||(A.current=!0,requestAnimationFrame(()=>{M.current=pe,j.current=Ie,E({}),A.current=!1}))},q=x.useMemo(()=>P.filter(he=>he.isSticky&&!he.isCenterTable),[P]),X=x.useMemo(()=>P.filter(he=>he.isSticky&&he.isCenterTable||!he.isSticky),[P]),G=x.useMemo(()=>X.map(he=>he.width),[X]),{startIndex:K,endIndex:ae,topSpacerHeight:le,bottomSpacerHeight:z,measureRow:ee,resetRow:_}=J8({rowCount:n.length,defaultRowHeight:D2,scrollTop:M.current,containerRef:T,overscan:15}),{startIndex:ue,endIndex:Q,offsetX:ne,measuredRef:we}=Q8({columnWidths:G,scrollLeft:j.current,overscan:2}),ke=x.useMemo(()=>X.slice(ue,Q),[X,ue,Q]),Ce=n?.slice(K,ae),[ve,_e]=x.useState(0);x.useEffect(()=>{const he=w.current;if(!he)return;const pe=new ResizeObserver(()=>_e(he.offsetHeight));return pe.observe(he),()=>pe.disconnect()},[]);const Ee=y2(s?.column?.definitions||[]),xe=s?.isNested,re=s?.data||[],ie=s?.hashKey,Te=x.useCallback(he=>{T.current=he,we(he)},[we]);return n?.length?p.jsxs(p.Fragment,{children:[p.jsx(Kd,{ref:Te,onScroll:U,sx:{willChange:"transform",WebkitTransform:"translateZ(0)",maxHeight:"40rem",whiteSpace:"nowrap",overflow:"auto",width:"100%",border:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,borderRadius:"1.4rem",position:"relative"},children:p.jsxs(Yd,{ref:w,stickyHeader:!0,"aria-label":"sticky table",sx:{backgroundColor:f.palette.primary.notifyBackground},children:[p.jsx(G8,{offsetX:ne,stickyGridColumns:q,virtualisedColumns:ke,isManageable:S,isResizable:C,tableHeight:ve,sort:t,handleMenuClick:y,getStickyLeft:N,draggedColIndex:W,isInvalidDrop:V,onDragStart:H,onDragOver:B,onDrop:D,onDragEnd:F,isResizingRef:O,visibleGridColumns:h,columnUpdaterFunction:k}),p.jsx(Z8,{offsetX:ne,rowStart:K,defaultRowHeight:D2,measureRow:ee,resetRow:_,visibleRows:Ce,stickyGridColumns:q,virtualisedColumns:ke,isResizable:C,isManageable:S,topSpacerHeight:le,bottomSpacerHeight:z,selectedRow:e?.selectedRow,isNested:xe,nestedRow:re,nestedColumn:Ee,hashKey:ie,getStickyLeft:N,t:u})]})}),r&&p.jsx(hc,{pagination:r,gridPath:l,baseUrl:a,t:u}),p.jsx(ep,{menuOpen:g?.isOpen,handleClose:b,onHideClick:v})]}):p.jsx(Nr,{sx:{textAlign:"center"},children:u(yr.NRF)})}function A2({tableProps:e,isDefaultConfig:t,gridPath:n,baseUrl:r,childUniqueKey:o}){const{columns:s}=e,a=x.useContext(hs),{t:l}=x.useContext(an),c=!!e?.isVirtualizedTable,d=w8({columns:s,gridPath:n,baseUrl:r,isDefaultConfig:t,childUniqueKey:o,pageSize:e?.pagination?.rowPerPage,data:e?.data});return x.useEffect(()=>{d?.length&&e?.data?.length&&a?.({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:d}})},[d,e?.data]),p.jsx(p.Fragment,{children:c?p.jsx(eL,{...e,gridPath:n,baseUrl:r,childUniqueKey:o,t:l}):p.jsx(O2,{...e,gridPath:n,baseUrl:r,childUniqueKey:o,t:l})})}A2.propTypes={tableProps:i.object.isRequired,mergedColumns:i.array.isRequired};function op({tableProps:e,toolbarProps:t,isDefaultConfig:n,isLoading:r}){const o=e.columns?.isManageable;return p.jsx(pv,{children:r?p.jsxs(p.Fragment,{children:[t&&p.jsx(Zl,{type:"toolbar"}),e&&p.jsx(Zl,{type:"grid"})]}):p.jsxs(se,{sx:{position:"sticky"},children:[t&&p.jsx(Jf,{...t,isManageable:o,pageSize:e?.pagination?.rowPerPage,gridData:e?.data}),p.jsx(A2,{tableProps:e,isDefaultConfig:n,gridPath:t?.gridPath||"",baseUrl:t?.baseUrl||"",childUniqueKey:t?.childUniqueKey||""})]})})}op.propTypes={tableProps:i.object.isRequired,toolbarProps:i.object,isDefaultConfig:i.bool};const{TENANT_ID:sp,BU_ID:ip}=h2,{TENANT_IDS:ap,BU_IDS:lp}=g2,tL=async e=>{try{const t=localStorage.getItem("i18nextLng"),n=`${e}${uc.NOTIFICATION}/v1?${sp}=${ap}&${ip}=${lp}&lang=${t}`;return await Ct.get(n,sa)}catch(t){return t}},R2=async(e,t,n)=>{try{const r=localStorage.getItem("i18nextLng"),o=`${e}${uc.NOTIFICATION}${Gf.VERSION}?${sp}=${ap}&${ip}=${lp}&lang=${r}`;return await Ct.put(o,t,sa)}catch(r){return r}},nL=async({baseUrl:e,id:t,snopId:n})=>{try{const r=localStorage.getItem("i18nextLng"),o=`${e}${uc.NOTIFICATION}${Gf.VERSION}?${sp}=${ap}&${ip}=${lp}&id=${t}&lang=${r}`;return await Ct.get(o,sa)}catch(r){return r}},Os={OK:200,CREATED:201,NO_CONTENT:204,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,INTERNAL_SERVER_ERROR:500},N2=({baseUrl:e})=>{const t=x.useContext(u1),[n,r]=x.useState(!1),[o,s]=x.useState(!1),[a,l]=x.useState(!1),[c,d]=x.useState({}),[u,f]=x.useState(null),[h,m]=x.useState(1),g=x.useRef(!1),{loading:y,data:b,isMarkAllAsRead:v,mode:k,activeTab:S}=x.useContext(Rf),[C,w]=x.useState([]);x.useEffect(()=>{w(b)},[b]);const T=x.useCallback(async()=>{if(!(g.current||!e))try{t({type:Ve.LOADING,loading:!0}),t({type:Ve.SUCCESS,data:[]});const N=await tL(e);if(N.status===Os.UNAUTHORIZED){g.current=!0;return}if(N.status===Os.OK){const P=N.data?.responseData?.response||[],$=Gl(P);t({type:Ve.SET_MODE,mode:!1}),t({type:Ve.SUCCESS,data:Gl($)}),t({type:Ve.MARK_ALL_AS_READ,isMarkAllAsRead:{count:uv(P),boo:uv(P)>0}}),t({type:Ve.LOADING,loading:!1})}}catch(N){N?.response?.status===Os.UNAUTHORIZED&&(g.current=!0),t({type:Ve.ERROR,error:yr.SWR}),t({type:Ve.LOADING,loading:!1})}},[e,t]),O=N=>{const P=(b||[]).filter($=>k?!$.isRead:!0);return{0:P,1:P.filter($=>$?.type==="INFO"),2:P.filter($=>$?.type==="ERROR")}};x.useEffect(()=>{T();const N=setInterval(T,3e5);return()=>clearInterval(N)},[T]);const M=async(N,P)=>{if(!(!N||!e)){f(N);try{const $=await nL({baseUrl:e,id:N,snopId:P});if($.status===Os.OK){const R=$.data?.responseData?.response||{};d(R||{}),l(!0)}else throw new Error}catch{t({type:Ve.ERROR,error:yr.SWR})}finally{f(null)}}},j=async(N,P)=>{if(!(!N.length||!e)){t({type:Ve.LOADING,loading:!0});try{if((await R2(e,N,P)).status===Os.OK){const R=b.map(V=>N.includes(V.id)?{...V,isRead:!0}:V),W=R.filter(V=>!V.isRead).length;W===0&&t({type:Ve.SET_MODE,mode:!1}),t({type:Ve.SUCCESS,data:Gl(R)}),t({type:Ve.MARK_ALL_AS_READ,isMarkAllAsRead:{count:W,boo:W>0}}),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},200)}}catch{t({type:Ve.ERROR,error:yr.SWR}),t({type:Ve.LOADING,loading:!1})}}},A=async()=>{if(e){t({type:Ve.LOADING,loading:!0});try{const N=SA(b);if((await R2(e,N,s8.MARK_ALL_READ)).status===Os.OK){const $=b.map(R=>({...R,isRead:!0}));t({type:Ve.SET_MODE,mode:!1}),t({type:Ve.SUCCESS,data:Gl($)}),t({type:Ve.MARK_ALL_AS_READ,isMarkAllAsRead:{count:0,boo:!1}}),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},200)}}catch{t({type:Ve.ERROR,error:yr.SWR}),t({type:Ve.LOADING,loading:!1})}}},L=(N,P)=>{t({type:Ve.LOADING,loading:!0}),t({type:Ve.SET_ACTIVE_TAB,activeTab:P}),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},400)},E=()=>{t({type:Ve.LOADING,loading:!0});const N=k?b||[]:(C||[]).filter(P=>!P.isRead);t({type:Ve.SET_MODE,mode:!k}),w(N),m(1),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},400)};return{fetchNotification:T,showDetailsProps:{open:a,handleClose:()=>l(!1),setOpen:l,data:c,clickId:u},alertDialogProps:{open:n,handleClose:()=>r(!1),onRefresh:T,handleRead:j,handleMarkAllAsRead:A,setOpen:r,handleShowDetails:M,clickId:u,isMainDialog:!0},activeTab:S,loading:y,tabData:O()[S],data:C,mode:k,handleTabChange:L,toggleAlertMode:E,page:h,setPage:m,isMarkAllAsRead:v}};var $2,L2,B2;function cp(){return cp=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},cp.apply(null,arguments)}var rL=function(t){return I.createElement("svg",cp({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none"},t),$2||($2=I.createElement("path",{stroke:"#909090",strokeLinecap:"round",strokeMiterlimit:10,d:"M8.013 2.19c-2.206 0-4 1.793-4 4v1.927c0 .406-.173 1.026-.38 1.373l-.766 1.273c-.474.787-.147 1.66.72 1.954 2.873.96 5.973.96 8.846 0a1.335 1.335 0 0 0 .72-1.954l-.766-1.273c-.2-.347-.374-.967-.374-1.373V6.19c0-2.2-1.8-4-4-4Z"})),L2||(L2=I.createElement("path",{stroke:"#909090",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"M9.247 2.383a4.503 4.503 0 0 0-2.467 0 1.324 1.324 0 0 1 2.467 0"})),B2||(B2=I.createElement("path",{stroke:"#909090",strokeMiterlimit:10,d:"M10.013 12.957c0 1.1-.9 2-2 2a2.007 2.007 0 0 1-2-2"})))};const oL=({count:e})=>(gt(),p.jsxs(p.Fragment,{children:[p.jsx(se,{sx:{gap:"0.5rem",display:"flex",justifyContent:"center",alignItems:"center","& svg":{transform:"scale(1)"}},children:p.jsx(rL,{style:{scale:1.2}})}),p.jsx(A8,{badgeContent:e!=0?"":null,color:"error"})]}));var _2;function dp(){return dp=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},dp.apply(null,arguments)}var sL=function(t){return I.createElement("svg",dp({xmlns:"http://www.w3.org/2000/svg",width:14,height:9,fill:"none",viewBox:"0 0 13 9"},t),_2||(_2=I.createElement("path",{fill:"#A8A8A8",fillRule:"evenodd",d:"M8.954 1.004a.406.406 0 0 1 0 .575L3.537 6.996a.406.406 0 0 1-.574 0L.796 4.829a.406.406 0 1 1 .575-.575l1.879 1.88 5.13-5.13a.406.406 0 0 1 .574 0m3.25 0a.406.406 0 0 1 0 .575L6.787 6.996a.406.406 0 1 1-.574-.575l5.416-5.417a.406.406 0 0 1 .575 0",clipRule:"evenodd"})))},F2,W2;function up(){return up=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},up.apply(null,arguments)}var iL=function(t){return I.createElement("svg",up({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none"},t),F2||(F2=I.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M7.79 6c0 .99-.8 1.79-1.79 1.79S4.21 6.99 4.21 6 5.01 4.21 6 4.21s1.79.8 1.79 1.79"})),W2||(W2=I.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M6 10.135c1.765 0 3.41-1.04 4.555-2.84.45-.705.45-1.89 0-2.595C9.41 2.9 7.765 1.86 6 1.86S2.59 2.9 1.445 4.7c-.45.705-.45 1.89 0 2.595 1.145 1.8 2.79 2.84 4.555 2.84"})))},z2;function fp(){return fp=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},fp.apply(null,arguments)}var aL=function(t){return I.createElement("svg",fp({xmlns:"http://www.w3.org/2000/svg",width:9,height:8,fill:"none"},t),z2||(z2=I.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M8.277 1.004a.406.406 0 0 1 0 .575L2.86 6.996a.406.406 0 0 1-.574 0L.119 4.829a.406.406 0 1 1 .575-.575l1.879 1.88 5.13-5.13a.406.406 0 0 1 .574 0",clipRule:"evenodd"})))};const V2=({type:e,item:t,handleShowDetails:n,handleRead:r,handleCTAClicked:o,clickId:s,t:a})=>{const l=gt(),c=JSON.parse(localStorage.getItem("settings"))?.platform?.theme;return p.jsxs(se,{className:"cards",sx:{pt:" 0.8rem"},children:[p.jsx(Ge,{display:"flex",flexDirection:"row",alignItems:"start",justifyContent:"space-between",gap:1,children:p.jsx(Md,{sx:{width:"calc(100% - 2%)","& .MuiBadge-badge":{backgroundColor:"#6041EA",height:"0.5rem",minWidth:"0.5rem"}},variant:"dot",invisible:t?.isRead,children:p.jsx(Nr,{sx:{color:l.palette.primary.notifyActiveText,whiteSpace:"normal",wordBreak:"break-word"},component:"p",className:["title-card",t?.isRead&&"read"].join(" "),children:a(t?.message)})})}),p.jsx(Ge,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:p.jsxs(Ge,{display:"flex",flexDirection:"row",justifyContent:"start",gap:1,sx:{p:"0.5rem 0"},children:[t?.isNotificationDetails&&p.jsx(mc,{icon:p.jsx(iL,{className:`${c==="light"?"chip-icon-light":"chip-icon-dark"}`}),disabled:s,onClick:n,label:s===t?.id?p.jsx(Uo,{color:"primary",size:13}):a("SHOW_DETAILS"),component:"button",variant:"filled",clickable:!0,size:"small",sx:{backgroundColor:l.palette.brandColor.orange,color:l.palette.brandColor.white}}),!t?.isRead&&p.jsx(mc,{icon:p.jsx(aL,{className:`${c==="light"?"chip-icon-light":"chip-icon-dark"}`}),disabled:s,onClick:r,label:a("ACKNOWLEDGE"),component:"button",variant:"outlined",clickable:!0,size:"small"}),t?.primaryCTAURL&&p.jsx(mc,{disabled:t?.isPrimaryCTAClicked,onClick:()=>o({redirect:t?.isPrimaryCTARedirect,isClicked:t?.isPrimaryCTAClicked,url:t?.primaryCTAURL}),label:a(t?.primaryCTALabel),component:"button",variant:"outlined",clickable:!0,size:"small"}),t?.secondaryCTAURL&&p.jsx(mc,{disabled:t?.isSecondaryCTAClicked,onClick:()=>o({redirect:t?.isSecondaryCTARedirect,isClicked:t?.isSecondaryCTAClicked,url:t?.secondaryCTAURL}),label:a(t?.secondaryCTALabel),component:"button",variant:"outlined",clickable:!0,size:"small"})]})}),p.jsxs(Ge,{display:"flex",flexDirection:"row",alignItems:"center",gap:.35,children:[p.jsx(Nr,{sx:{fontSize:"0.8rem"},children:a(t?.product)}),p.jsx(Nr,{color:l.palette.primary.notifyTextColor,children:"•"}),p.jsx(Nr,{sx:{fontSize:"0.8rem"},children:wA(t?.createdAt,a)})]})]})};V2.propTypes={type:i.string,title:i.string,subTitle:i.string,isRead:i.bool,handleShowDetails:i.func,handleRead:i.func};const yc=60,H2=2,U2=({data:e,handleRead:t,handleShowDetails:n,clickId:r,mode:o,t:s})=>{const{isMarkAllAsRead:a}=x.useContext(Rf),l=x.useRef(null),[c,d]=x.useState({start:0,end:4}),u=e?.length,f=new Date,h=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(f),m=x.useMemo(()=>o?a?.count?e?.filter(C=>!C.isRead):[]:e||[],[e,o,a]),g=m.slice(c.start,c.end),y=c.start*yc,b=(u-c.end)*yc,v=()=>{const C=l.current;if(!C)return;const w=C.scrollTop,T=C.clientHeight,O=Math.floor(w/yc)-H2,M=Math.ceil(T/yc)+2*H2,j=Math.max(0,Math.min(u-1,O)),A=Math.max(j,Math.min(u,j+M));d(L=>L.start===j&&L.end===A?L:{start:j,end:A})},k=({url:C})=>{window.open(C,"_blank")},S=x.useMemo(()=>kA(g),[g]);return x.useEffect(()=>{let C;const w=()=>{C&&cancelAnimationFrame(C),C=requestAnimationFrame(()=>{v()})},T=l.current;if(T)return v(),T.addEventListener("scroll",w),()=>{cancelAnimationFrame(C),T.removeEventListener("scroll",w)}},[u]),m.length||s("CONTAINER_MESSAGE"),p.jsxs(se,{ref:l,sx:{height:"100%",overflowY:"auto"},children:[p.jsx(se,{style:{height:y}}),Object.entries(S).map(([C,w])=>{const T=localStorage.getItem("i18nextLng"),O=new Date(C),M=new Intl.DateTimeFormat(T,{month:"long"}).format(O),j=O.getDate(),A=O.getFullYear(),L=`${M} ${j}, ${A}`;return p.jsxs(x.Fragment,{children:[C!==h&&p.jsx(D8,{children:L}),w.map((E,N)=>p.jsx(V2,{item:E,handleCTAClicked:k,handleShowDetails:()=>n(E.id,E.snopId),handleRead:()=>t([E.id],E.snopId),clickId:r,t:s},`${E.id}_${N}`))]},C)}),p.jsx(se,{style:{height:b}})]})};U2.propTypes={data:i.array,handleRead:i.func,handleShowDetails:i.func};const lL=({onRefresh:e,handleShowDetails:t,clickId:n,handleRead:r,handleMarkAllAsRead:o,t:s})=>{const{loading:a,activeTab:l,data:c,tabData:d,mode:u,page:f,setPage:h,handleTabChange:m,toggleAlertMode:g}=N2({});return p.jsxs(p.Fragment,{children:[p.jsxs(se,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,pt:2},children:[p.jsx(pt,{variant:"h2",sx:{fontSize:"1.2rem",color:y=>y.palette.primary.notifyTextColor},children:s("NOTIFICATION")}),p.jsx(se,{onClick:e,children:p.jsx(Vt,{url:Xe.Refresh,alt:"refresh",sx:{cursor:"pointer"}})})]}),p.jsx(se,{sx:{borderBottom:1,m:"1.2rem 1.2rem 0 1.2rem",borderColor:y=>y.palette.primary.notifyBorderColor},children:p.jsxs(R8,{value:l,onChange:m,children:[p.jsx(Qf,{label:p.jsx(se,{sx:{display:"flex",alignItems:"center",fontSize:"1rem",fontWeight:"500"},children:p.jsx(pt,{component:"span",sx:{fontWeight:500,fontSize:"1rem"},children:s("ALL",{count:c?.filter(y=>!y?.isRead)?.length||0})})})}),p.jsx(Qf,{label:p.jsx(se,{sx:{display:"flex",alignItems:"center",fontSize:"1rem",fontWeight:"500"},children:p.jsx(pt,{component:"span",sx:{fontWeight:500,fontSize:"1rem"},children:s("INFO",{count:c?.filter(y=>y?.type==="INFO"&&!y?.isRead)?.length||0})})}),sx:{color:y=>y.palette.brandColor.blue}}),p.jsx(Qf,{label:p.jsx(se,{sx:{display:"flex",alignItems:"center",fontSize:"1rem",fontWeight:"500"},children:s("ERROR",{count:c?.filter(y=>y?.type==="ERROR"&&!y?.isRead)?.length||0})}),sx:{color:y=>y.palette.brandColor.red}})]})}),p.jsx($d,{dividers:!0,sx:{p:0,...a&&!d.length&&{alignItems:"center",justifyContent:"center"},flexGrow:1,overflowY:"auto",mx:"1.2rem",borderColor:y=>y.palette.primary.notifyBorderColor},tabIndex:-1,children:a&&!d.length?p.jsx(se,{sx:{height:300,display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx(Uo,{size:30,sx:{color:y=>y.palette.primary.notifyIconColor}})}):p.jsx(p.Fragment,{children:p.jsx(U2,{data:d,handleShowDetails:t,handleRead:r,clickId:n,page:f,setPage:h,mode:u,t:s})})}),p.jsxs(Nd,{sx:{justifyContent:"space-between",px:"1.2rem"},children:[p.jsxs(Ge,{direction:"row",gap:1,children:[p.jsx(Nr,{sx:{fontSize:"1rem"},children:s("SHOW_UNREAD")}),p.jsx(I8,{disabled:a,checked:u,onChange:g})]}),p.jsx(gl,{variant:"outlined",className:"view-all",onClick:o,startIcon:p.jsx(sL,{}),disabled:!c?.filter(y=>!y?.isRead)?.length,style:{backgroundColor:"transparent"},sx:{fontSize:"1rem",fontWeight:"300",p:0,border:"none",textTransform:"none",color:y=>y.palette.primary.notifyTextColor,"&:hover":{color:y=>y.palette.primary.notifyActiveText,background:"transparent",boxShadow:"none",border:"none"},"&.Mui-disabled":{opacity:.5,color:y=>`${y.palette.primary.notifyActiveText}!important`,background:"transparent",boxShadow:"none",border:"none"}},children:s("READ_ALL")})]})]})},cL=({data:e,handleClose:t,t:n})=>{const[r,o]=x.useState(1),[s,a]=x.useState(10),[l,c]=x.useState(e?.notificationDetails?.length||0),[d,u]=x.useState("sku_name"),[f,h]=x.useState("asc"),[m,g]=x.useState([]),[y,b]=x.useState("");return x.useEffect(()=>{if((y||d)&&e?.notificationDetails?.length){const v=CA(e?.notificationDetails,r8,y);if(d){const k=TA(v,d,f);g(bf(k,r,s)),c(k?.length||0);return}g(bf(v,r,s)),c(v?.length||0);return}g(bf(e?.notificationDetails,r,s)),c(e?.notificationDetails?.length)},[y,e,r,s,f,d]),p.jsxs(p.Fragment,{children:[p.jsxs(Ge,{direction:"row",justifyContent:"space-between",sx:{padding:"1.5rem 2rem",borderBottom:"0.1rem solid",borderColor:v=>v.palette.primary.notifyBorderColor},children:[p.jsx(pt,{component:"h2",sx:{fontSize:"1.4rem",color:v=>v.palette.primary.notifyActiveText},children:n(e?.message)||e?.message}),p.jsx(se,{onClick:t,sx:{cursor:"pointer"},children:p.jsx(Vt,{url:Xe.CloseCircle})})]}),p.jsx($d,{children:p.jsx(op,{t:n,tableProps:{data:m,columns:{...C8({t:n}),isManageable:!1},sort:{sortField:d,sortDir:f,onSort:v=>{const k=v?.column?.key;h(S=>d===k&&S==="asc"?"desc":"asc"),u(k)}},pagination:{selectedPage:r,rowPerPage:s,totalRecords:l,onPageChange:v=>{o(v)},onPageSizeChange:v=>{a(v?.value),o(1)}}},toolbarProps:{defaultTools:{search:{isRequired:!0,onChange:v=>{const k=v.target.value;k&&o(1),b(k)},placeholder:`${n("SEARCH")}...`}}}})}),p.jsx(Nd,{sx:{padding:"1.5rem 2rem"}})]})},dL=({baseUrl:e,t})=>{const{alertDialogProps:n,showDetailsProps:r,fetchNotification:o,isMarkAllAsRead:s}=N2({baseUrl:e});return p.jsxs(p.Fragment,{children:[p.jsx(se,{sx:{display:"flex",justifyContent:"center",cursor:"pointer",marginTop:"0.6rem"},onClick:()=>{o(),n?.setOpen?.(!0)},children:p.jsx(oL,{count:s.count})}),p.jsx(Nf,{...n,children:p.jsx(lL,{...n,t})}),p.jsx(Nf,{...r,children:p.jsx(cL,{...r,t})})]})},uL=({baseUrl:e,t})=>p.jsx(Gt,{children:p.jsx(f1,{children:p.jsx(dL,{baseUrl:e,t})})}),Y2=x.createContext(null),fL=Y2.Provider,pL=()=>{const e=x.useContext(Y2);return e||console.warn("useAnalytics used outside AnalyticsProvider"),e};lt.Accordion=h1,lt.AnalyticsProvider=fL,lt.Breadcrumb=X9,lt.Button=jr,lt.Checkbox=gr,lt.DatePicker=R9,lt.Dialog=G9,lt.Grid=op,lt.GridTable=F8,lt.Header=y1,lt.InputField=dv,lt.Loader=H9,lt.Notification=uL,lt.Select=hv,lt.SkeletonLoader=U9,lt.SliderLayout=m1,lt.Switch=gv,lt.TextField=Ui,lt.TimePicker=N9,lt.ToastProvider=z9,lt.TranslationContext=an,lt.toast=B9,lt.useAnalytics=pL,Object.defineProperty(lt,Symbol.toStringTag,{value:"Module"})}));
257
257
  //# sourceMappingURL=index.umd.js.map