@oc-digital/react-component-library 2.1.7-beta.0 → 2.1.8
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/README.md +94 -94
- package/build/Button/Button.d.ts +0 -5
- package/build/Button/Button.types.d.ts +1 -1
- package/build/ButtonWithConfirm/ButtonWithConfirm.types.d.ts +1 -0
- package/build/NavbarLayout/Navbar.d.ts +12 -0
- package/build/NavbarLayout/NavbarLayout.d.ts +16 -0
- package/build/NavbarLayout/index.d.ts +2 -0
- package/build/index.d.ts +3 -2
- package/build/index.js +1 -137
- package/build/index.js.map +1 -1
- package/build/styles/layout.d.ts +1 -1
- package/build/styles/spacing.d.ts +1 -1
- package/package.json +130 -135
- package/build/styles/new_spacing.d.ts +0 -47
package/build/index.js
CHANGED
|
@@ -1,138 +1,2 @@
|
|
|
1
|
-
import*as e from"react";import t,{createContext as r,forwardRef as n,createElement as o,Component as i,Fragment as a,useLayoutEffect as s,useContext as l,useRef as c,Children as u,isValidElement as d,cloneElement as p,memo as f,useState as m,useMemo as h,useCallback as g,useEffect as y}from"react";import{string as v}from"yup";import{jsx as b,jsxs as x}from"react/jsx-runtime";import{makeStyles as w,Typography as E,Box as k,CircularProgress as S,withStyles as N,createStyles as C,TableRow as O,TableHead as R,Table as T,TableBody as _,TableCell as P,Link as A,ButtonBase as I,Grid as $,Button as j,ListItem as M,ListItemIcon as D,ListItemText as B,Collapse as V,List as L,IconButton as z,Container as F,Divider as W,InputBase as U,InputAdornment as G,TextField as H,MenuItem as Y,Checkbox as q,FormControl as K,Select as J,FormHelperText as X,Tooltip as Z,Avatar as Q}from"@material-ui/core";import{Pagination as ee,Alert as te}from"@material-ui/lab";import{Link as re,useLocation as ne,useHistory as oe}from"react-router-dom";import ie from"@material-ui/icons/Error";import{ExpandLess as ae,ExpandMore as se,CloudUpload as le,Forward as ce}from"@material-ui/icons";import{isValid as ue}from"date-fns";import de from"@material-ui/icons/Close";import pe from"@material-ui/icons/AddBoxOutlined";import fe from"@material-ui/icons/Search";import{isEqual as me}from"lodash";import he from"react-number-format";import{MuiPickersUtilsProvider as ge,DatePicker as ye,KeyboardDatePicker as ve}from"@material-ui/pickers";import be from"@date-io/date-fns";import{useTable as xe,useFilters as we,useGlobalFilter as Ee,usePagination as ke,useRowSelect as Se,useAsyncDebounce as Ne}from"react-table";import{useVirtual as Ce}from"react-virtual";var Oe=function(){return Oe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Oe.apply(this,arguments)};function Re(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function Te(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function _e(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function Pe(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function Ae(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...r){return e(...r)||t(...r)}}function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ie.apply(this,arguments)}function $e(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function je(e){if(!$e(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=je(e[r])})),t}function Me(e,t,r={clone:!0}){const n=r.clone?Ie({},e):e;return $e(e)&&$e(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&($e(t[o])&&o in e&&$e(e[o])?n[o]=Me(e[o],t[o],r):r.clone?n[o]=$e(t[o])?je(t[o]):t[o]:n[o]=t[o])})),n}var De={exports:{}},Be={exports:{}},Ve={},Le="function"==typeof Symbol&&Symbol.for,ze=Le?Symbol.for("react.element"):60103,Fe=Le?Symbol.for("react.portal"):60106,We=Le?Symbol.for("react.fragment"):60107,Ue=Le?Symbol.for("react.strict_mode"):60108,Ge=Le?Symbol.for("react.profiler"):60114,He=Le?Symbol.for("react.provider"):60109,Ye=Le?Symbol.for("react.context"):60110,qe=Le?Symbol.for("react.async_mode"):60111,Ke=Le?Symbol.for("react.concurrent_mode"):60111,Je=Le?Symbol.for("react.forward_ref"):60112,Xe=Le?Symbol.for("react.suspense"):60113,Ze=Le?Symbol.for("react.suspense_list"):60120,Qe=Le?Symbol.for("react.memo"):60115,et=Le?Symbol.for("react.lazy"):60116,tt=Le?Symbol.for("react.block"):60121,rt=Le?Symbol.for("react.fundamental"):60117,nt=Le?Symbol.for("react.responder"):60118,ot=Le?Symbol.for("react.scope"):60119;function it(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ze:switch(e=e.type){case qe:case Ke:case We:case Ge:case Ue:case Xe:return e;default:switch(e=e&&e.$$typeof){case Ye:case Je:case et:case Qe:case He:return e;default:return t}}case Fe:return t}}}function at(e){return it(e)===Ke}Ve.AsyncMode=qe,Ve.ConcurrentMode=Ke,Ve.ContextConsumer=Ye,Ve.ContextProvider=He,Ve.Element=ze,Ve.ForwardRef=Je,Ve.Fragment=We,Ve.Lazy=et,Ve.Memo=Qe,Ve.Portal=Fe,Ve.Profiler=Ge,Ve.StrictMode=Ue,Ve.Suspense=Xe,Ve.isAsyncMode=function(e){return at(e)||it(e)===qe},Ve.isConcurrentMode=at,Ve.isContextConsumer=function(e){return it(e)===Ye},Ve.isContextProvider=function(e){return it(e)===He},Ve.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ze},Ve.isForwardRef=function(e){return it(e)===Je},Ve.isFragment=function(e){return it(e)===We},Ve.isLazy=function(e){return it(e)===et},Ve.isMemo=function(e){return it(e)===Qe},Ve.isPortal=function(e){return it(e)===Fe},Ve.isProfiler=function(e){return it(e)===Ge},Ve.isStrictMode=function(e){return it(e)===Ue},Ve.isSuspense=function(e){return it(e)===Xe},Ve.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===We||e===Ke||e===Ge||e===Ue||e===Xe||e===Ze||"object"==typeof e&&null!==e&&(e.$$typeof===et||e.$$typeof===Qe||e.$$typeof===He||e.$$typeof===Ye||e.$$typeof===Je||e.$$typeof===rt||e.$$typeof===nt||e.$$typeof===ot||e.$$typeof===tt)},Ve.typeOf=it;var st={};
|
|
2
|
-
/** @license React v16.13.1
|
|
3
|
-
* react-is.development.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var h=e.type;switch(h){case l:case c:case n:case i:case o:case d:return h;default:var g=h&&h.$$typeof;switch(g){case s:case u:case m:case f:case a:return g;default:return p}}case r:return p}}}var x=l,w=c,E=s,k=a,S=t,N=u,C=n,O=m,R=f,T=r,_=i,P=o,A=d,I=!1;function $(e){return b(e)===c}st.AsyncMode=x,st.ConcurrentMode=w,st.ContextConsumer=E,st.ContextProvider=k,st.Element=S,st.ForwardRef=N,st.Fragment=C,st.Lazy=O,st.Memo=R,st.Portal=T,st.Profiler=_,st.StrictMode=P,st.Suspense=A,st.isAsyncMode=function(e){return I||(I=!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.")),$(e)||b(e)===l},st.isConcurrentMode=$,st.isContextConsumer=function(e){return b(e)===s},st.isContextProvider=function(e){return b(e)===a},st.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},st.isForwardRef=function(e){return b(e)===u},st.isFragment=function(e){return b(e)===n},st.isLazy=function(e){return b(e)===m},st.isMemo=function(e){return b(e)===f},st.isPortal=function(e){return b(e)===r},st.isProfiler=function(e){return b(e)===i},st.isStrictMode=function(e){return b(e)===o},st.isSuspense=function(e){return b(e)===d},st.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===h)},st.typeOf=b}(),"production"===process.env.NODE_ENV?Be.exports=Ve:Be.exports=st
|
|
10
|
-
/*
|
|
11
|
-
object-assign
|
|
12
|
-
(c) Sindre Sorhus
|
|
13
|
-
@license MIT
|
|
14
|
-
*/;var lt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable;function dt(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var pt=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,o=dt(e),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))ct.call(r,a)&&(o[a]=r[a]);if(lt){n=lt(r);for(var s=0;s<n.length;s++)ut.call(r,n[s])&&(o[n[s]]=r[n[s]])}}return o},ft="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",mt=Function.call.bind(Object.prototype.hasOwnProperty),ht=function(){};if("production"!==process.env.NODE_ENV){var gt=ft,yt={},vt=mt;ht=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function bt(e,t,r,n,o){if("production"!==process.env.NODE_ENV)for(var i in e)if(vt(e,i)){var a;try{if("function"!=typeof e[i]){var s=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=e[i](t,i,n,r,null,gt)}catch(e){a=e}if(!a||a instanceof Error||ht((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in yt)){yt[a.message]=!0;var l=o?o():"";ht("Failed "+r+" type: "+a.message+(null!=l?l:""))}}}bt.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(yt={})};var xt=bt,wt=Be.exports,Et=pt,kt=ft,St=mt,Nt=xt,Ct=function(){};function Ot(){return null}"production"!==process.env.NODE_ENV&&(Ct=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});function Rt(){}function Tt(){}Tt.resetWarningCache=Rt;if("production"!==process.env.NODE_ENV){var _t=Be.exports;De.exports=function(e,t){var r="function"==typeof Symbol&&Symbol.iterator,n="<<anonymous>>",o={array:l("array"),bigint:l("bigint"),bool:l("boolean"),func:l("function"),number:l("number"),object:l("object"),string:l("string"),symbol:l("symbol"),any:s(Ot),arrayOf:function(e){return s((function(t,r,n,o,i){if("function"!=typeof e)return new a("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new a("Invalid "+o+" `"+i+"` of type `"+d(s)+"` supplied to `"+n+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,n,o,i+"["+l+"]",kt);if(c instanceof Error)return c}return null}))},element:s((function(t,r,n,o,i){var s=t[r];return e(s)?null:new a("Invalid "+o+" `"+i+"` of type `"+d(s)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:s((function(e,t,r,n,o){var i=e[t];return wt.isValidElementType(i)?null:new a("Invalid "+n+" `"+o+"` of type `"+d(i)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return s((function(t,r,o,i,s){if(!(t[r]instanceof e)){var l=e.name||n;return new a("Invalid "+i+" `"+s+"` of type `"+((c=t[r]).constructor&&c.constructor.name?c.constructor.name:n)+"` supplied to `"+o+"`, expected instance of `"+l+"`.")}var c;return null}))},node:s((function(e,t,r,n,o){return u(e[t])?null:new a("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return s((function(t,r,n,o,i){if("function"!=typeof e)return new a("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var s=t[r],l=d(s);if("object"!==l)return new a("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+n+"`, expected an object.");for(var c in s)if(St(s,c)){var u=e(s,c,n,o,i+"."+c,kt);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&Ct(arguments.length>1?"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]).":"Invalid argument supplied to oneOf, expected an array."),Ot;function t(t,r,n,o,s){for(var l=t[r],c=0;c<e.length;c++)if(i(l,e[c]))return null;var u=JSON.stringify(e,(function(e,t){return"symbol"===p(t)?String(t):t}));return new a("Invalid "+o+" `"+s+"` of value `"+String(l)+"` supplied to `"+n+"`, expected one of "+u+".")}return s(t)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&Ct("Invalid argument supplied to oneOfType, expected an instance of array."),Ot;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return Ct("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(r)+" at index "+t+"."),Ot}return s((function(t,r,n,o,i){for(var s=[],l=0;l<e.length;l++){var c=(0,e[l])(t,r,n,o,i,kt);if(null==c)return null;c.data&&St(c.data,"expectedType")&&s.push(c.data.expectedType)}return new a("Invalid "+o+" `"+i+"` supplied to `"+n+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return s((function(t,r,n,o,i){var s=t[r],l=d(s);if("object"!==l)return new a("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+n+"`, expected `object`.");for(var u in e){var f=e[u];if("function"!=typeof f)return c(n,o,i,u,p(f));var m=f(s,u,n,o,i+"."+u,kt);if(m)return m}return null}))},exact:function(e){return s((function(t,r,n,o,i){var s=t[r],l=d(s);if("object"!==l)return new a("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+n+"`, expected `object`.");var u=Et({},t[r],e);for(var f in u){var m=e[f];if(St(e,f)&&"function"!=typeof m)return c(n,o,i,f,p(m));if(!m)return new a("Invalid "+o+" `"+i+"` key `"+f+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(t[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(s,f,n,o,i+"."+f,kt);if(h)return h}return null}))}};function i(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function a(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function s(e){if("production"!==process.env.NODE_ENV)var r={},o=0;function i(i,s,l,c,u,d,p){if(c=c||n,d=d||l,p!==kt){if(t){var f=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 f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=c+":"+l;!r[m]&&o<3&&(Ct("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+c+"`. 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."),r[m]=!0,o++)}}return null==s[l]?i?null===s[l]?new a("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `null`."):new a("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,l,c,u,d)}var s=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}function l(e){return s((function(t,r,n,o,i,s){var l=t[r];return d(l)!==e?new a("Invalid "+o+" `"+i+"` of type `"+p(l)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function c(e,t,r,n,o){return new a((e||"React class")+": "+t+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function u(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(u);if(null===t||e(t))return!0;var n=function(e){var t=e&&(r&&e[r]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!n)return!1;var o,i=n.call(t);if(n!==t.entries){for(;!(o=i.next()).done;)if(!u(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!u(a[1]))return!1}return!0;default:return!1}}function d(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function p(e){if(null==e)return""+e;var t=d(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=p(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return a.prototype=Error.prototype,o.checkPropTypes=Nt,o.resetWarningCache=Nt.resetWarningCache,o.PropTypes=o,o}(_t.isElement,!0)}else De.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Tt,resetWarningCache:Rt};return r.PropTypes=r,r}();var Pt=De.exports;var At=Ae(Pt.elementType,(function(e,t,r,n,o){const i=e[t],a=o||t;if(null==i||"undefined"==typeof window)return null;let s;return"function"!=typeof i||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(i)||(s="Did you accidentally provide a plain function component instead?"),void 0!==s?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}));function It(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var $t,jt={exports:{}},Mt={},Dt=Symbol.for("react.element"),Bt=Symbol.for("react.portal"),Vt=Symbol.for("react.fragment"),Lt=Symbol.for("react.strict_mode"),zt=Symbol.for("react.profiler"),Ft=Symbol.for("react.provider"),Wt=Symbol.for("react.context"),Ut=Symbol.for("react.server_context"),Gt=Symbol.for("react.forward_ref"),Ht=Symbol.for("react.suspense"),Yt=Symbol.for("react.suspense_list"),qt=Symbol.for("react.memo"),Kt=Symbol.for("react.lazy"),Jt=Symbol.for("react.offscreen");function Xt(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Dt:switch(e=e.type){case Vt:case zt:case Lt:case Ht:case Yt:return e;default:switch(e=e&&e.$$typeof){case Ut:case Wt:case Gt:case Kt:case qt:case Ft:return e;default:return t}}case Bt:return t}}}$t=Symbol.for("react.module.reference"),Mt.ContextConsumer=Wt,Mt.ContextProvider=Ft,Mt.Element=Dt,Mt.ForwardRef=Gt,Mt.Fragment=Vt,Mt.Lazy=Kt,Mt.Memo=qt,Mt.Portal=Bt,Mt.Profiler=zt,Mt.StrictMode=Lt,Mt.Suspense=Ht,Mt.SuspenseList=Yt,Mt.isAsyncMode=function(){return!1},Mt.isConcurrentMode=function(){return!1},Mt.isContextConsumer=function(e){return Xt(e)===Wt},Mt.isContextProvider=function(e){return Xt(e)===Ft},Mt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Dt},Mt.isForwardRef=function(e){return Xt(e)===Gt},Mt.isFragment=function(e){return Xt(e)===Vt},Mt.isLazy=function(e){return Xt(e)===Kt},Mt.isMemo=function(e){return Xt(e)===qt},Mt.isPortal=function(e){return Xt(e)===Bt},Mt.isProfiler=function(e){return Xt(e)===zt},Mt.isStrictMode=function(e){return Xt(e)===Lt},Mt.isSuspense=function(e){return Xt(e)===Ht},Mt.isSuspenseList=function(e){return Xt(e)===Yt},Mt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Vt||e===zt||e===Lt||e===Ht||e===Yt||e===Jt||"object"==typeof e&&null!==e&&(e.$$typeof===Kt||e.$$typeof===qt||e.$$typeof===Ft||e.$$typeof===Wt||e.$$typeof===Gt||e.$$typeof===$t||void 0!==e.getModuleId)},Mt.typeOf=Xt;var Zt={};
|
|
15
|
-
/**
|
|
16
|
-
* @license React
|
|
17
|
-
* react-is.development.js
|
|
18
|
-
*
|
|
19
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
20
|
-
*
|
|
21
|
-
* This source code is licensed under the MIT license found in the
|
|
22
|
-
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case n:case i:case o:case u:case d:return h;default:var g=h&&h.$$typeof;switch(g){case l:case s:case c:case f:case p:case a:return g;default:return m}}case r:return m}}}e=Symbol.for("react.module.reference");var g=s,y=a,v=t,b=c,x=n,w=f,E=p,k=r,S=i,N=o,C=u,O=d,R=!1,T=!1;Zt.ContextConsumer=g,Zt.ContextProvider=y,Zt.Element=v,Zt.ForwardRef=b,Zt.Fragment=x,Zt.Lazy=w,Zt.Memo=E,Zt.Portal=k,Zt.Profiler=S,Zt.StrictMode=N,Zt.Suspense=C,Zt.SuspenseList=O,Zt.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Zt.isConcurrentMode=function(e){return T||(T=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Zt.isContextConsumer=function(e){return h(e)===s},Zt.isContextProvider=function(e){return h(e)===a},Zt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Zt.isForwardRef=function(e){return h(e)===c},Zt.isFragment=function(e){return h(e)===n},Zt.isLazy=function(e){return h(e)===f},Zt.isMemo=function(e){return h(e)===p},Zt.isPortal=function(e){return h(e)===r},Zt.isProfiler=function(e){return h(e)===i},Zt.isStrictMode=function(e){return h(e)===o},Zt.isSuspense=function(e){return h(e)===u},Zt.isSuspenseList=function(e){return h(e)===d},Zt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||(t===n||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId))},Zt.typeOf=h}(),"production"===process.env.NODE_ENV?jt.exports=Mt:jt.exports=Zt;const Qt=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function er(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(Qt);return t&&t[1]||""}(e)||t}function tr(e,t,r){const n=er(t);return e.displayName||(""!==n?`${r}(${n})`:r)}function rr(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return er(e,"Component");if("object"==typeof e)switch(e.$$typeof){case jt.exports.ForwardRef:return tr(e,e.render,"ForwardRef");case jt.exports.Memo:return tr(e,e.type,"memo");default:return}}}var nr=Pt.oneOfType([Pt.func,Pt.object]);function or(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":It(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ir="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function ar(t){const r=e.useRef(t);return ir((()=>{r.current=t})),e.useCallback(((...e)=>(0,r.current)(...e)),[])}function sr(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(t,e)}))}),t)}let lr,cr=!0,ur=!1;const dr={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function pr(e){e.metaKey||e.altKey||e.ctrlKey||(cr=!0)}function fr(){cr=!1}function mr(){"hidden"===this.visibilityState&&ur&&(cr=!0)}function hr(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return cr||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!dr[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function gr(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",pr,!0),t.addEventListener("mousedown",fr,!0),t.addEventListener("pointerdown",fr,!0),t.addEventListener("touchstart",fr,!0),t.addEventListener("visibilitychange",mr,!0))}),[]),r=e.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!hr(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(ur=!0,window.clearTimeout(lr),lr=window.setTimeout((()=>{ur=!1}),100),r.current=!1,!0)},ref:t}}function yr(e,t){const r=Ie({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Ie({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=Ie({},i),Object.keys(o).forEach((e=>{r[n][e]=yr(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function vr(e,t,r){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const br=e=>e;var xr=(()=>{let e=br;return{configure(t){e=t},generate:t=>e(t),reset(){e=br}}})();const wr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Er(e,t,r="Mui"){const n=wr[t];return n?`${r}-${n}`:`${xr.generate(e)}-${t}`}function kr(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Er(e,t,r)})),n}const Sr=e.createContext(null);"production"!==process.env.NODE_ENV&&(Sr.displayName="ThemeContext");var Nr=Sr;function Cr(){const t=e.useContext(Nr);return"production"!==process.env.NODE_ENV&&e.useDebugValue(t),t}var Or="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";const Rr=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Tr="production"===process.env.NODE_ENV;function _r(e,t){if(!Tr){if(e)return;var r="Warning: "+t;"undefined"!=typeof console&&console.warn(r);try{throw Error(r)}catch(e){}}}var Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar="object"===("undefined"==typeof window?"undefined":Pr(window))&&"object"===("undefined"==typeof document?"undefined":Pr(document))&&9===document.nodeType;function Ir(e){return Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ir(e)}function $r(e){var t=function(e,t){if("object"!==Ir(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ir(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ir(t)?t:String(t)}function jr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$r(n.key),n)}}function Mr(e,t,r){return t&&jr(e.prototype,t),r&&jr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dr(e,t){return Dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dr(e,t)}function Br(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dr(e,t)}function Vr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lr(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var zr={}.constructor;function Fr(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Fr);if(e.constructor!==zr)return e;var t={};for(var r in e)t[r]=Fr(e[r]);return t}function Wr(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=Fr(t),i=n.plugins.onCreateRule(e,o,r);return i||("@"===e[0]&&"production"!==process.env.NODE_ENV&&_r(!1,"[JSS] Unknown rule "+e),null)}var Ur=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},Gr=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=Ur(e[r]," ");else t=Ur(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Hr(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Yr(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function qr(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=Hr(r),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=Yr(p+":"+c+Gr(f)+";",i))}}else for(var m in a){var h=a[m];null!=h&&(n&&(n+=l),n+=Yr(m+":"+c+Gr(h)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(n&&(n+=l),n+=Yr(g+":"+c+Gr(y)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Yr(""+e+c+"{"+n,--i)+Yr("}",i)):n}var Kr=/([[\].#*$><+~=|^:(),"'`\s])/g,Jr="undefined"!=typeof CSS&&CSS.escape,Xr=function(e){return Jr?Jr(e):e.replace(Kr,"\\$1")},Zr=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached&&"production"!==process.env.NODE_ENV&&_r(!1,'[JSS] Rule is not linked. Missing sheet option "link: true".'),this},e}(),Qr=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Vr(Vr(o)),s),o.selectorText="."+Xr(o.id)),o}Br(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=Gr(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Ie({},e,{allowEmpty:!0}):e;return qr(this.selectorText,this.style,r)},Mr(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(Zr),en={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Qr(e,t,r)}},tn={indent:1,children:!0},rn=/@([\w-]+)/,nn=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(rn);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Rn(Ie({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=tn);var t=Hr(e).linebreak;if(null==e.indent&&(e.indent=tn.indent),null==e.children&&(e.children=tn.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),on=/@container|@media|@supports\s+/,an={onCreateRule:function(e,t,r){return on.test(e)?new nn(e,t,r):null}},sn={indent:1,children:!0},ln=/@keyframes\s+([\w-]+)/,cn=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(ln);n&&n[1]?this.name=n[1]:(this.name="noname","production"!==process.env.NODE_ENV&&_r(!1,"[JSS] Bad keyframes name "+e)),this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:Xr(a(this,i)),this.rules=new Rn(Ie({},r,{parent:this})),t)this.rules.add(s,t[s],Ie({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=sn);var t=Hr(e).linebreak;if(null==e.indent&&(e.indent=sn.indent),null==e.children&&(e.children=sn.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),un=/@keyframes\s+/,dn=/\$([\w-]+)/g,pn=function(e,t){return"string"==typeof e?e.replace(dn,(function(e,r){return r in t?t[r]:("production"!==process.env.NODE_ENV&&_r(!1,'[JSS] Referenced keyframes rule "'+r+'" is not defined.'),e)})):e},fn=function(e,t,r){var n=e[t],o=pn(n,r);o!==n&&(e[t]=o)},mn={onCreateRule:function(e,t,r){return"string"==typeof e&&un.test(e)?new cn(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&fn(e,"animation-name",r.keyframes),"animation"in e&&fn(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return pn(e,n.keyframes);default:return e}}},hn=function(e){function t(){return e.apply(this,arguments)||this}return Br(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Ie({},e,{allowEmpty:!0}):e;return qr(this.key,this.style,r)},t}(Zr),gn={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new hn(e,t,r):null}},yn=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=Hr(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=qr(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return qr(this.at,this.style,e)},e}(),vn=/@font-face/,bn={onCreateRule:function(e,t,r){return vn.test(e)?new yn(e,t,r):null}},xn=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return qr(this.key,this.style,e)},e}(),wn={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new xn(e,t,r):null}},En=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),kn={"@charset":!0,"@import":!0,"@namespace":!0},Sn={onCreateRule:function(e,t,r){return e in kn?new En(e,t,r):null}},Nn=[en,an,mn,gn,bn,wn,Sn],Cn={process:!0},On={force:!0,process:!0},Rn=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,c=n.scoped,u=Ie({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+Xr(this.classes[d]));var p=Wr(d,t,u);if(!p)return null;this.register(p);var f=void 0===u.index?this.index.length:u.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=Ie({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Qr?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof cn&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Qr?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof cn&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=Cn);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,On)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,On)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=Hr(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),Tn=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Ie({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Rn(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),_n=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e?e[r].push(t[r]):"production"!==process.env.NODE_ENV&&_r(!1,'[JSS] Unknown hook "'+r+'".');return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Pn=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Lr(t,["attached"]),o=Hr(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},Mr(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),An=new Pn,In="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),$n="2f1acc6c3a606b082e5eef5e54414ffb";null==In[$n]&&(In[$n]=0);var jn=In[$n]++,Mn=function(e){void 0===e&&(e={});var t=0;return function(r,n){(t+=1)>1e10&&"production"!==process.env.NODE_ENV&&_r(!1,"[JSS] You might have a memory leak. Rule counter is at "+t+".");var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+jn+o+t:i+r.key+"-"+jn+(o?"-"+o:"")+"-"+t}},Dn=function(e){var t;return function(){return t||(t=e()),t}},Bn=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Vn=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=Gr(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Ln=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){"production"!==process.env.NODE_ENV&&_r(!1,'[JSS] DOMException "'+e.message+'" was thrown. Tried to remove property "'+t+'".')}},zn=function(e,t){return e.selectorText=t,e.selectorText===t},Fn=Dn((function(){return document.querySelector("head")}));function Wn(e){var t=An.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=Fn(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling};"production"!==process.env.NODE_ENV&&_r(!1,'[JSS] Insertion point "'+n+'" not found.')}return!1}var Un=Dn((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Gn=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return"production"!==process.env.NODE_ENV&&_r(!1,"[JSS] "+e.message),!1}return e.cssRules[r]},Hn=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Yn=function(){function e(e){this.getPropertyValue=Bn,this.setProperty=Vn,this.removeProperty=Ln,this.setSelector=zn,this.hasInsertedRules=!1,this.cssRules=[],e&&An.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=Un();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=Wn(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i?i.insertBefore(e,o.nextSibling):"production"!==process.env.NODE_ENV&&_r(!1,"[JSS] Insertion point is not in the DOM.")}else Fn().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=Hn(r,t);if(!1===(o=Gn(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=Hn(r,t),l=Gn(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof Tn&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),qn=0,Kn=function(){function e(e){this.id=qn++,this.version="10.10.0",this.plugins=new _n,this.options={id:{minify:!1},createGenerateId:Mn,Renderer:Ar?Yn:null,plugins:[]},this.generateId=Mn({minify:!1});for(var t=0;t<Nn.length;t++)this.plugins.use(Nn[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Ie({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===An.index?0:An.index+1);var n=new Tn(e,Ie({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),An.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=Ie({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=Wr(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),Jn=function(e){return new Kn(e)},Xn="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Zn(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=Zn(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
24
|
-
/**
|
|
25
|
-
* A better abstraction over CSS.
|
|
26
|
-
*
|
|
27
|
-
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
28
|
-
* @website https://github.com/cssinjs/jss
|
|
29
|
-
* @license MIT
|
|
30
|
-
*/Jn();var Qn=Date.now(),eo="fnValues"+Qn,to="fnStyle"+ ++Qn,ro=function(){return{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=Wr(e,{},r);return n[to]=t,n},onProcessStyle:function(e,t){if(eo in t||to in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[eo]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[to];if(i&&(o.style=i(e)||{},"development"===process.env.NODE_ENV))for(var a in o.style)if("function"==typeof o.style[a]){"production"!==process.env.NODE_ENV&&_r(!1,"[JSS] Function values inside function rules are not supported.");break}var s=o[eo];if(s)for(var l in s)o.prop(l,s[l](e),n)}}},no="@global",oo=function(){function e(e,t,r){for(var n in this.type="global",this.at=no,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new Rn(Ie({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),io=function(){function e(e,t,r){this.type="global",this.at=no,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr("@global ".length);this.rule=r.jss.createRule(n,t,Ie({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ao=/\s*,\s*/g;function so(e,t){for(var r=e.split(ao),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function lo(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===no)return new oo(e,t,r);if("@"===e[0]&&"@global "===e.substr(0,"@global ".length))return new io(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[no]:null;if(o){for(var i in o)t.addRule(i,o[i],Ie({},r,{selector:so(i,e.selector)}));delete n[no]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,no.length)===no){var i=so(o.substr(no.length),e.selector);t.addRule(i,n[o],Ie({},r,{selector:i})),delete n[o]}}(e,t))}}}var co=/\s*,\s*/g,uo=/&/g,po=/\$([\w-]+)/g;function fo(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:("production"!==process.env.NODE_ENV&&_r(!1,'[JSS] Could not find the referenced rule "'+n+'" in "'+(e.options.meta||e.toString())+'".'),n)}}function t(e,t){for(var r=t.split(co),n=e.split(co),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(uo,a):a+" "+l}return o}function r(e,t,r){if(r)return Ie({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=Ie({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,c=l.options.parent;for(var u in n){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=r(l,c,a),d){var f=t(u,l.selector);s||(s=e(c,i)),f=f.replace(po,s);var m=l.key+"-"+u;"replaceRule"in c?c.replaceRule(m,n[u],Ie({},a,{selector:f})):c.addRule(m,n[u],Ie({},a,{selector:f}))}else p&&c.addRule(u,{},a).addRule(l.key,n[u],{selector:l.selector});delete n[u]}}return n}}}var mo=/[A-Z]/g,ho=/^ms-/,go={};function yo(e){return"-"+e.toLowerCase()}function vo(e){if(go.hasOwnProperty(e))return go[e];var t=e.replace(mo,yo);return go[e]=ho.test(t)?"-"+t:t}function bo(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:vo(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(bo):t.fallbacks=bo(e.fallbacks)),t}var xo=Xn&&CSS?CSS.px:"px",wo=Xn&&CSS?CSS.ms:"ms",Eo=Xn&&CSS?CSS.percent:"%";function ko(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var So=ko({"animation-delay":wo,"animation-duration":wo,"background-position":xo,"background-position-x":xo,"background-position-y":xo,"background-size":xo,border:xo,"border-bottom":xo,"border-bottom-left-radius":xo,"border-bottom-right-radius":xo,"border-bottom-width":xo,"border-left":xo,"border-left-width":xo,"border-radius":xo,"border-right":xo,"border-right-width":xo,"border-top":xo,"border-top-left-radius":xo,"border-top-right-radius":xo,"border-top-width":xo,"border-width":xo,"border-block":xo,"border-block-end":xo,"border-block-end-width":xo,"border-block-start":xo,"border-block-start-width":xo,"border-block-width":xo,"border-inline":xo,"border-inline-end":xo,"border-inline-end-width":xo,"border-inline-start":xo,"border-inline-start-width":xo,"border-inline-width":xo,"border-start-start-radius":xo,"border-start-end-radius":xo,"border-end-start-radius":xo,"border-end-end-radius":xo,margin:xo,"margin-bottom":xo,"margin-left":xo,"margin-right":xo,"margin-top":xo,"margin-block":xo,"margin-block-end":xo,"margin-block-start":xo,"margin-inline":xo,"margin-inline-end":xo,"margin-inline-start":xo,padding:xo,"padding-bottom":xo,"padding-left":xo,"padding-right":xo,"padding-top":xo,"padding-block":xo,"padding-block-end":xo,"padding-block-start":xo,"padding-inline":xo,"padding-inline-end":xo,"padding-inline-start":xo,"mask-position-x":xo,"mask-position-y":xo,"mask-size":xo,height:xo,width:xo,"min-height":xo,"max-height":xo,"min-width":xo,"max-width":xo,bottom:xo,left:xo,top:xo,right:xo,inset:xo,"inset-block":xo,"inset-block-end":xo,"inset-block-start":xo,"inset-inline":xo,"inset-inline-end":xo,"inset-inline-start":xo,"box-shadow":xo,"text-shadow":xo,"column-gap":xo,"column-rule":xo,"column-rule-width":xo,"column-width":xo,"font-size":xo,"font-size-delta":xo,"letter-spacing":xo,"text-decoration-thickness":xo,"text-indent":xo,"text-stroke":xo,"text-stroke-width":xo,"word-spacing":xo,motion:xo,"motion-offset":xo,outline:xo,"outline-offset":xo,"outline-width":xo,perspective:xo,"perspective-origin-x":Eo,"perspective-origin-y":Eo,"transform-origin":Eo,"transform-origin-x":Eo,"transform-origin-y":Eo,"transform-origin-z":Eo,"transition-delay":wo,"transition-duration":wo,"vertical-align":xo,"flex-basis":xo,"shape-margin":xo,size:xo,gap:xo,grid:xo,"grid-gap":xo,"row-gap":xo,"grid-row-gap":xo,"grid-column-gap":xo,"grid-template-rows":xo,"grid-template-columns":xo,"grid-auto-rows":xo,"grid-auto-columns":xo,"box-shadow-x":xo,"box-shadow-y":xo,"box-shadow-blur":xo,"box-shadow-spread":xo,"font-line-height":xo,"text-shadow-x":xo,"text-shadow-y":xo,"text-shadow-blur":xo});function No(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=No(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=No(o,t[o],r);else for(var i in t)t[i]=No(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||So[e];return!a||0===t&&a===xo?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Co(e){void 0===e&&(e={});var t=ko(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=No(n,e[n],t);return e},onChangeValue:function(e,r){return No(r,e,t)}}}function Oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ro(e){return function(e){if(Array.isArray(e))return Oo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Oo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Oo(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var To="",_o="",Po="",Ao="",Io=Ar&&"ontouchstart"in document.documentElement;if(Ar){var $o={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},jo=document.createElement("p").style;for(var Mo in $o)if(Mo+"Transform"in jo){To=Mo,_o=$o[Mo];break}"Webkit"===To&&"msHyphens"in jo&&(To="ms",_o=$o.ms,Ao="edge"),"Webkit"===To&&"-apple-trailing-word"in jo&&(Po="apple")}var Do=To,Bo=_o,Vo=Po,Lo=Ao,zo=Io;var Fo={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Do?"-webkit-"+e:Bo+e)}},Wo={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Do?Bo+"print-"+e:e)}},Uo=/[-\s]+(.)?/g;function Go(e,t){return t?t.toUpperCase():""}function Ho(e){return e.replace(Uo,Go)}function Yo(e){return Ho("-"+e)}var qo,Ko={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Do){var r="mask-image";if(Ho(r)in t)return e;if(Do+Yo(r)in t)return Bo+e}return e}},Jo={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Vo||zo?e:Bo+e)}},Xo={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:Bo+e)}},Zo={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:Bo+e)}},Qo={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Do||"ms"===Do&&"edge"!==Lo?Bo+e:e)}},ei={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Do||"ms"===Do||"apple"===Vo?Bo+e:e)}},ti={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Do?"WebkitColumn"+Yo(e)in t&&Bo+"column-"+e:"Moz"===Do&&("page"+Yo(e)in t&&"page-"+e))}},ri={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Do)return e;var r=e.replace("-inline","");return Do+Yo(r)in t&&Bo+r}},ni={supportedProperty:function(e,t){return Ho(e)in t&&e}},oi={supportedProperty:function(e,t){var r=Yo(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Do+r in t?Bo+e:"Webkit"!==Do&&"Webkit"+r in t&&"-webkit-"+e}},ii={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Do?""+Bo+e:e)}},ai={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Do?Bo+"scroll-chaining":e)}},si={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},li={supportedProperty:function(e,t){var r=si[e];return!!r&&(Do+Yo(r)in t&&Bo+r)}},ci={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ui=Object.keys(ci),di=function(e){return Bo+e},pi={supportedProperty:function(e,t,r){var n=r.multiple;if(ui.indexOf(e)>-1){var o=ci[e];if(!Array.isArray(o))return Do+Yo(o)in t&&Bo+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(Do+Yo(o[0])in t))return!1;return o.map(di)}return!1}},fi=[Fo,Wo,Ko,Jo,Xo,Zo,Qo,ei,ti,ri,ni,oi,ii,ai,li,pi],mi=fi.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),hi=fi.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Ro(t.noPrefill)),e}),[]),gi={};if(Ar){qo=document.createElement("p");var yi=window.getComputedStyle(document.documentElement,"");for(var bi in yi)isNaN(bi)||(gi[yi[bi]]=yi[bi]);hi.forEach((function(e){return delete gi[e]}))}function xi(e,t){if(void 0===t&&(t={}),!qo)return e;if("benchmark"!==process.env.NODE_ENV&&null!=gi[e])return gi[e];"transition"!==e&&"transform"!==e||(t[e]=e in qo.style);for(var r=0;r<mi.length&&(gi[e]=mi[r](e,qo.style,t),!gi[e]);r++);try{qo.style[e]=""}catch(e){return!1}return gi[e]}var wi,Ei={},ki={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Si=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ni(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?xi(t):", "+xi(r);return n||(t||r)}function Ci(e,t){var r=t;if(!wi||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if("benchmark"!==process.env.NODE_ENV&&null!=Ei[n])return Ei[n];try{wi.style[e]=r}catch(e){return Ei[n]=!1,!1}if(ki[e])r=r.replace(Si,Ni);else if(""===wi.style[e]&&("-ms-flex"===(r=Bo+r)&&(wi.style[e]="-ms-flexbox"),wi.style[e]=r,""===wi.style[e]))return Ei[n]=!1,!1;return wi.style[e]="",Ei[n]=r,Ei[n]}function Oi(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=xi(r);i&&i!==r&&(o=!0);var a=!1,s=Ci(i,Gr(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Do?e:"@"+Bo+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return Ci(t,Gr(e))||e}}}function Ri(){return{plugins:[ro(),lo(),fo(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=bo(e[t]);return e}return bo(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=vo(t);return t===n?e:(r.prop(n,e),null)}},Co(),"undefined"==typeof window?null:Oi(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}})]};var e}function Ti(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const o=Ie({},t);return"production"!==process.env.NODE_ENV&&"string"==typeof r?(console.error([`MUI: The value \`${r}\` provided to the classes prop of ${rr(n)} is incorrect.`,"You might want to use the className prop instead."].join("\n")),t):(Object.keys(r).forEach((e=>{"production"!==process.env.NODE_ENV&&(!t[e]&&r[e]&&console.error([`MUI: The key \`${e}\` provided to the classes prop is not implemented in ${rr(n)}.`,`You can only override one of the following: ${Object.keys(t).join(",")}.`].join("\n")),r[e]&&"string"!=typeof r[e]&&console.error([`MUI: The key \`${e}\` provided to the classes prop is not valid for ${rr(n)}.`,`You need to provide a non empty string instead of: ${r[e]}.`].join("\n"))),r[e]&&(o[e]=`${t[e]} ${r[e]}`)})),o)}Ar&&(wi=document.createElement("p"));const _i={set:(e,t,r,n)=>{let o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},get:(e,t,r)=>{const n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}};var Pi=_i;const Ai=["children","injectFirst","disableGeneration"],Ii=Jn(Ri()),$i=function(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,o=""===n?"":`${n}-`;let i=0;const a=()=>(i+=1,"production"!==process.env.NODE_ENV&&i>=1e10&&console.warn(["MUI: You might have a memory leak.","The ruleCounter is not supposed to grow that much."].join("")),i);return(e,i)=>{const s=i.options.name;if(s&&0===s.indexOf("Mui")&&!i.options.link&&!t){if(-1!==Rr.indexOf(e.key))return`Mui-${e.key}`;const t=`${o}${s}-${e.key}`;return i.options.theme[Or]&&""===n?`${t}-${a()}`:t}if("production"===process.env.NODE_ENV)return`${o}${r}${a()}`;const l=`${e.key}-${a()}`;return i.options.classNamePrefix?`${o}${i.options.classNamePrefix}-${l}`:`${o}${l}`}}(),ji={disableGeneration:!1,generateClassName:$i,jss:Ii,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Mi=e.createContext(ji);let Di;function Bi(t){const{children:r,injectFirst:n=!1,disableGeneration:o=!1}=t,i=Lr(t,Ai),a=e.useContext(Mi),{generateClassName:s,jss:l,serverGenerateClassName:c,sheetsCache:u,sheetsManager:d,sheetsRegistry:p}=Ie({},a,i);"production"!==process.env.NODE_ENV&&n&&i.jss&&console.error("MUI: You cannot use the jss and injectFirst props at the same time.");const f=e.useMemo((()=>{const e={disableGeneration:o,generateClassName:s,jss:l,serverGenerateClassName:c,sheetsCache:u,sheetsManager:d,sheetsRegistry:p};if("production"!==process.env.NODE_ENV&&("undefined"!=typeof window||e.sheetsManager||console.error("MUI: You need to use the ServerStyleSheets API when rendering on the server.")),"production"!==process.env.NODE_ENV&&e.jss.options.insertionPoint&&n&&console.error("MUI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time."),!e.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!Di){const e=document.head;Di=document.createComment("mui-inject-first"),e.insertBefore(Di,e.firstChild)}e.jss=Jn({plugins:Ri().plugins,insertionPoint:Di})}return e}),[n,o,s,l,c,u,d,p]);return b(Mi.Provider,{value:f,children:r})}"production"!==process.env.NODE_ENV&&(Mi.displayName="StylesContext"),"production"!==process.env.NODE_ENV&&(Bi.propTypes={children:Pt.node,disableGeneration:Pt.bool,generateClassName:Pt.func,injectFirst:Pt.bool,jss:Pt.object,serverGenerateClassName:Pt.func,sheetsCache:Pt.object,sheetsManager:Pt.object,sheetsRegistry:Pt.object}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(Bi.propTypes=function(e){return"production"===process.env.NODE_ENV?e:Ie({},e,{"exact-prop: ":t=>{const r=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return r.length>0?new Error(`The following props are not supported: ${r.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}(Bi.propTypes));let Vi=-1e9;const Li=["variant"];function zi(e){return 0===e.length}var Fi={};function Wi(e){const t="function"==typeof e;return"production"!==process.env.NODE_ENV&&("object"==typeof e||t||console.error(["MUI: The `styles` argument provided is invalid.","You need to provide a function generating the styles or a styles object."].join("\n"))),{create:(r,n)=>{let o;try{o=t?e(r):e}catch(e){throw"production"!==process.env.NODE_ENV&&!0===t&&r===Fi&&console.error(["MUI: The `styles` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join("\n")),e}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return o;const i=r.components[n].styleOverrides||{},a=r.components[n].variants||[],s=Ie({},o);return Object.keys(i).forEach((e=>{"production"!==process.env.NODE_ENV&&(s[e]||console.warn(["MUI: You are trying to override a style that does not exist.",`Fix the \`${e}\` key of \`theme.components.${n}.styleOverrides\`.`,"",`If you intentionally wanted to add a new key, please use the theme.components[${n}].variants option.`].join("\n"))),s[e]=Me(s[e]||{},i[e])})),a.forEach((e=>{const t=function(e){const{variant:t}=e,r=Lr(e,Li);let n=t||"";return Object.keys(r).sort().forEach((t=>{n+="color"===t?zi(n)?e[t]:or(e[t]):`${zi(n)?t:or(t)}${or(e[t].toString())}`})),n}(e.props);s[t]=Me(s[t]||{},e.style)})),s},options:{}}}const Ui=["name","classNamePrefix","Component","defaultTheme"];function Gi({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:o},i){if(r.disableGeneration)return;let a=Pi.get(r.sheetsManager,n,t);a||(a={refs:0,staticSheet:null,dynamicStyles:null},Pi.set(r.sheetsManager,n,t,a));const s=Ie({},n.options,r,{theme:t,flip:"boolean"==typeof r.flip?r.flip:"rtl"===t.direction});s.generateId=s.serverGenerateClassName||s.generateClassName;const l=r.sheetsRegistry;if(0===a.refs){let e;r.sheetsCache&&(e=Pi.get(r.sheetsCache,n,t));const i=n.create(t,o);e||(e=r.jss.createStyleSheet(i,Ie({link:!1},s)),e.attach(),r.sheetsCache&&Pi.set(r.sheetsCache,n,t,e)),l&&l.add(e),a.staticSheet=e,a.dynamicStyles=Zn(i)}if(a.dynamicStyles){const t=r.jss.createStyleSheet(a.dynamicStyles,Ie({link:!0},s));t.update(i),t.attach(),e.dynamicSheet=t,e.classes=Ti({baseClasses:a.staticSheet.classes,newClasses:t.classes}),l&&l.add(t)}else e.classes=a.staticSheet.classes;a.refs+=1}function Hi(t,r={}){const{name:n,classNamePrefix:o,Component:i,defaultTheme:a=Fi}=r,s=Lr(r,Ui),l=Wi(t),c=n||o||"makeStyles";l.options={index:(Vi+=1,"production"!==process.env.NODE_ENV&&Vi>=0&&console.warn(["MUI: You might have a memory leak.","The indexCounter is not supposed to grow that much."].join("\n")),Vi),name:n,meta:c,classNamePrefix:c};return(t={})=>{const r=function(){var e;const t=Cr();return null!=(e=null==t?void 0:t.$$material)?e:t}()||a,o=Ie({},e.useContext(Mi),s),c=e.useRef(),u=e.useRef();!function(t,r){const n=e.useRef([]);let o;const i=e.useMemo((()=>({})),r);n.current!==i&&(n.current=i,o=t()),e.useEffect((()=>()=>{o&&o()}),[i])}((()=>{const e={name:n,state:{},stylesCreator:l,stylesOptions:o,theme:r};return Gi(e,t),u.current=!1,c.current=e,()=>{!function({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const o=Pi.get(r.sheetsManager,n,t);o.refs-=1;const i=r.sheetsRegistry;0===o.refs&&(Pi.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(o.staticSheet),i&&i.remove(o.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),i&&i.remove(e.dynamicSheet))}(e)}}),[r,l]),e.useEffect((()=>{u.current&&function({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}(c.current,t),u.current=!0}));const d=function({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,o=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,o=!0),o&&(e.cacheClasses.value=Ti({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}(c.current,t.classes,i);if("production"!==process.env.NODE_ENV&&e.useDebugValue(d),"production"!==process.env.NODE_ENV){const e=["MuiAvatar","MuiBadge","MuiButton","MuiButtonGroup","MuiChip","MuiDivider","MuiFab","MuiPaper","MuiToolbar","MuiTypography","MuiAlert","MuiPagination","MuiPaginationItem","MuiSkeleton","MuiTimelineDot"];n&&e.indexOf(n)>=0&&t.variant&&!d[t.variant]&&console.error([`MUI: You are using a variant value \`${t.variant}\` for which you didn't define styles.`,"Please create a new variant matcher in your theme for this variant. To learn more about matchers visit https://mui.com/r/custom-component-variants."].join("\n"))}return d}}function Yi(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Yi(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function qi(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Yi(e))&&(n&&(n+=" "),n+=t);return n}var Ki=Be.exports,Ji={};Ji[Ki.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ji[Ki.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Xi={black:"#000",white:"#fff"};var Zi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var Qi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var ea={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var ta={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var ra={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var na={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var oa={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 ia(e,t,r){return(t=$r(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aa(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var sa=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,la=aa((function(e){return sa.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var ca=function(){function e(e){this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,r=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(r,t),this.tags.push(r)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(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]}(n);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(t){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'+e+'"',t)}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();function ua(e){function t(e,n,l,c,p){for(var f,m,h,g,x,E=0,k=0,S=0,N=0,C=0,A=0,$=h=f=0,M=0,D=0,B=0,V=0,L=l.length,z=L-1,F="",W="",U="",G="";M<L;){if(m=l.charCodeAt(M),M===z&&0!==k+N+S+E&&(0!==k&&(m=47===k?10:47),N=S=E=0,L++,z++),0===k+N+S+E){if(M===z&&(0<D&&(F=F.replace(d,"")),0<F.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:F+=l.charAt(M)}m=59}switch(m){case 123:for(f=(F=F.trim()).charCodeAt(0),h=1,V=++M;M<L;){switch(m=l.charCodeAt(M)){case 123:h++;break;case 125:h--;break;case 47:switch(m=l.charCodeAt(M+1)){case 42:case 47:e:{for($=M+1;$<z;++$)switch(l.charCodeAt($)){case 47:if(42===m&&42===l.charCodeAt($-1)&&M+2!==$){M=$+1;break e}break;case 10:if(47===m){M=$+1;break e}}M=$}}break;case 91:m++;case 40:m++;case 34:case 39:for(;M++<z&&l.charCodeAt(M)!==m;);}if(0===h)break;M++}if(h=l.substring(V,M),0===f&&(f=(F=F.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<D&&(F=F.replace(d,"")),m=F.charCodeAt(1)){case 100:case 109:case 115:case 45:D=n;break;default:D=P}if(V=(h=t(n,D,h,m,p+1)).length,0<I&&(x=s(3,h,D=r(P,F,B),n,R,O,V,m,p,c),F=D.join(""),void 0!==x&&0===(V=(h=x.trim()).length)&&(m=0,h="")),0<V)switch(m){case 115:F=F.replace(w,a);case 100:case 109:case 45:h=F+"{"+h+"}";break;case 107:h=(F=F.replace(y,"$1 $2"))+"{"+h+"}",h=1===_||2===_&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=F+h,112===c&&(W+=h,h="")}else h=""}else h=t(n,r(n,F,B),h,c,p+1);U+=h,h=B=D=$=f=0,F="",m=l.charCodeAt(++M);break;case 125:case 59:if(1<(V=(F=(0<D?F.replace(d,""):F).trim()).length))switch(0===$&&(f=F.charCodeAt(0),45===f||96<f&&123>f)&&(V=(F=F.replace(" ",":")).length),0<I&&void 0!==(x=s(1,F,n,e,R,O,W.length,c,p,c))&&0===(V=(F=x.trim()).length)&&(F="\0\0"),f=F.charCodeAt(0),m=F.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){G+=F+l.charAt(M);break}default:58!==F.charCodeAt(V-1)&&(W+=o(F,f,m,F.charCodeAt(2)))}B=D=$=f=0,F="",m=l.charCodeAt(++M)}}switch(m){case 13:case 10:47===k?k=0:0===1+f&&107!==c&&0<F.length&&(D=1,F+="\0"),0<I*j&&s(0,F,n,e,R,O,W.length,c,p,c),O=1,R++;break;case 59:case 125:if(0===k+N+S+E){O++;break}default:switch(O++,g=l.charAt(M),m){case 9:case 32:if(0===N+E+k)switch(C){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===N+k+E&&(D=B=1,g="\f"+g);break;case 108:if(0===N+k+E+T&&0<$)switch(M-$){case 2:112===C&&58===l.charCodeAt(M-3)&&(T=C);case 8:111===A&&(T=A)}break;case 58:0===N+k+E&&($=M);break;case 44:0===k+S+N+E&&(D=1,g+="\r");break;case 34:case 39:0===k&&(N=N===m?0:0===N?m:N);break;case 91:0===N+k+S&&E++;break;case 93:0===N+k+S&&E--;break;case 41:0===N+k+E&&S--;break;case 40:if(0===N+k+E){if(0===f)if(2*C+3*A==533);else f=1;S++}break;case 64:0===k+S+N+E+$+h&&(h=1);break;case 42:case 47:if(!(0<N+E+S))switch(k){case 0:switch(2*m+3*l.charCodeAt(M+1)){case 235:k=47;break;case 220:V=M,k=42}break;case 42:47===m&&42===C&&V+2!==M&&(33===l.charCodeAt(V+2)&&(W+=l.substring(V,M+1)),g="",k=0)}}0===k&&(F+=g)}A=C,C=m,M++}if(0<(V=W.length)){if(D=n,0<I&&(void 0!==(x=s(2,W,D,e,R,O,V,c,p,c))&&0===(W=x).length))return G+W+U;if(W=D.join(",")+"{"+W+"}",0!=_*T){switch(2!==_||i(W,2)||(T=0),T){case 111:W=W.replace(b,":-moz-$1")+W;break;case 112:W=W.replace(v,"::-webkit-input-$1")+W.replace(v,"::-moz-$1")+W.replace(v,":-ms-input-$1")+W}T=0}}return G+W+U}function r(e,t,r){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[l++]=n(e[c]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===_||2===_&&i(l,1)?"-webkit-"+l+l:l}if(0===_||2===_&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(x,"tb");break;case 232:l=a.replace(x,"tb-rl");break;case 220:l=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===N.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),$(2!==t?n:n.replace(S,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(E," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,l,u){for(var d,p=0,f=t;p<I;++p)switch(d=A[p].call(c,e,f,r,n,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&($=null,e?"function"!=typeof e?_=1:(_=2,$=e):_=0),l}function c(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<I){var o=s(-1,r,n,n,R,O,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(P,n,r,0,0);return 0<I&&(void 0!==(o=s(-2,i,n,n,R,O,i.length,0,0,0))&&(i=o)),"",T=0,O=R=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,k=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,N=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,O=1,R=1,T=0,_=1,P=[],A=[],I=0,$=null,j=0;return c.use=function e(t){switch(t){case void 0:case null:I=A.length=0;break;default:if("function"==typeof t)A[I++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else j=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}var da=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};function pa(e){e&&fa.current.insert(e+"}")}var fa={current:null},ma=function(e,t,r,n,o,i,a,s,l,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return fa.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return fa.current.insert(r[0]+t),"";default:return t+(0===c?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(pa)}},ha=function(e,t){if(1===e&&108===t.charCodeAt(0)&&98===t.charCodeAt(2))return""},ga="undefined"!=typeof document,ya={},va=ga?void 0:da((function(){var e=da((function(){return{}})),t={},r={};return function(n){return void 0===n||!0===n?t:!1===n?r:e(n)}})),ba=function(e){void 0===e&&(e={});var t,r=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var n=new ua(t);if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var o,i,a={};if(ga){o=e.container||document.head;var s=document.querySelectorAll("style[data-emotion-"+r+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+r).split(" ").forEach((function(e){a[e]=!0})),e.parentNode!==o&&o.appendChild(e)}))}if(ga)n.use(e.stylisPlugins)(ma),i=function(e,t,r,o){var i=t.name;if(fa.current=r,"production"!==process.env.NODE_ENV&&void 0!==t.map){var a=t.map;fa.current={insert:function(e){r.insert(e+a)}}}n(e,t.styles),o&&(d.inserted[i]=!0)};else{n.use(ha);var l=ya;(e.stylisPlugins||void 0!==e.prefix)&&(n.use(e.stylisPlugins),l=va(e.stylisPlugins||ya)(e.prefix));i=function(e,t,r,o){var i=t.name,a=function(e,t){var r=t.name;return void 0===l[r]&&(l[r]=n(e,t.styles)),l[r]}(e,t);return void 0===d.compat?(o&&(d.inserted[i]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?a+t.map:a):o?void(d.inserted[i]=a):a}}if("production"!==process.env.NODE_ENV){var c=/\/\*/g,u=/\*\//g;n.use((function(e,t){if(-1===e){for(;c.test(t);){if(u.lastIndex=c.lastIndex,!u.test(t))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');c.lastIndex=u.lastIndex}c.lastIndex=0}})),n.use((function(e,t,r){if(-1===e){var n=t.match(/(:first|:nth|:nth-last)-child/g);n&&!0!==d.compat&&n.forEach((function(e){var r=new RegExp(e+".*\\/\\* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason \\*\\/").test(t);e&&!r&&console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}))}var d={key:r,sheet:new ca({key:r,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:i};return d},xa="undefined"!=typeof document;function wa(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]):n+=r+" "})),n}var Ea=function(e,t,r){var n=e.key+"-"+t.name;if((!1===r||!1===xa&&void 0!==e.compat)&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert("."+n,i,e.sheet,!0);xa||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!xa&&0!==o.length)return o}};var ka={animationIterationCount: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,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},Sa="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Na="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Ca=/[A-Z]|^ms/g,Oa=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ra=function(e){return 45===e.charCodeAt(1)},Ta=function(e){return null!=e&&"boolean"!=typeof e},_a=aa((function(e){return Ra(e)?e:e.replace(Ca,"-$&").toLowerCase()})),Pa=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Oa,(function(e,t,r){return za={name:t,styles:r,next:za},t}))}return 1===ka[e]||Ra(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var Aa=/(attr|calc|counters?|url)\(/,Ia=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],$a=Pa,ja=/^-ms-/,Ma=/-(.)/g,Da={};Pa=function(e,t){"content"===e&&("string"!=typeof t||-1===Ia.indexOf(t)&&!Aa.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=$a(e,t);return""===r||Ra(e)||-1===e.indexOf("-")||void 0!==Da[e]||(Da[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(ja,"ms-").replace(Ma,(function(e,t){return t.toUpperCase()}))+"?")),r}}var Ba=!0;function Va(e,t,r,n){if(null==r)return"";if(void 0!==r.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===r.toString())throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return r}switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return za={name:r.name,styles:r.styles,next:za},r.name;if(void 0!==r.styles){var o=r.next;if(void 0!==o)for(;void 0!==o;)za={name:o.name,styles:o.styles,next:za},o=o.next;var i=r.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==r.map&&(i+=r.map),i}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Va(e,t,r[o],!1);else for(var i in r){var a=r[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=i+"{"+t[a]+"}":Ta(a)&&(n+=_a(i)+":"+Pa(i,a)+";");else{if("NO_COMPONENT_SELECTOR"===i&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Va(e,t,a,!1);switch(i){case"animation":case"animationName":n+=_a(i)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===i&&console.error(Na),n+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Ta(a[l])&&(n+=_a(i)+":"+Pa(i,a[l])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var a=za,s=r(e);return za=a,Va(e,t,s,n)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],c=r.replace(Oa,(function(e,t,r){var n="animation"+l.length;return l.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}}if(null==t)return r;var u=t[r];return"production"!==process.env.NODE_ENV&&n&&Ba&&void 0!==u&&(console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"),Ba=!1),void 0===u||n?r:u}var La,za,Fa=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&(La=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var Wa=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";za=void 0;var i,a=e[0];null==a||void 0===a.raw?(n=!1,o+=Va(r,t,a,!1)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(Sa),o+=a[0]);for(var s=1;s<e.length;s++)o+=Va(r,t,e[s],46===o.charCodeAt(o.length-1)),n&&("production"!==process.env.NODE_ENV&&void 0===a[s]&&console.error(Sa),o+=a[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(La,(function(e){return i=e,""}))),Fa.lastIndex=0;for(var l,c="";null!==(l=Fa.exec(o));)c+="-"+l[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:i,next:za,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:za}},Ua="undefined"!=typeof document,Ga=Object.prototype.hasOwnProperty,Ha=r("undefined"!=typeof HTMLElement?ba():null),Ya=r({});Ha.Provider;var qa=function(e){var t=function(t,r){return o(Ha.Consumer,null,(function(n){return e(t,n,r)}))};return n(t)};if(!Ua){var Ka=function(e){function t(t,r,n){var o;return(o=e.call(this,t,r,n)||this).state={value:ba()},o}return Br(t,e),t.prototype.render=function(){return o(Ha.Provider,this.state,this.props.children(this.state.value))},t}(i);qa=function(e){return function(t){return o(Ha.Consumer,null,(function(r){return null===r?o(Ka,null,(function(r){return e(t,r)})):e(t,r)}))}}}var Ja=function(e,t,r,n){var i=null===r?t.css:t.css(r);"string"==typeof i&&void 0!==e.registered[i]&&(i=e.registered[i]);var s=t.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,l=[i],c="";"string"==typeof t.className?c=wa(e.registered,l,t.className):null!=t.className&&(c=t.className+" ");var u=Wa(l);if("production"!==process.env.NODE_ENV&&-1===u.name.indexOf("-")){var d=t.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;d&&(u=Wa([u,"label:"+d+";"]))}var p=Ea(e,u,"string"==typeof s);c+=e.key+"-"+u.name;var f={};for(var m in t)!Ga.call(t,m)||"css"===m||"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"===m||"production"!==process.env.NODE_ENV&&"__EMOTION_LABEL_PLEASE_DO_NOT_USE__"===m||(f[m]=t[m]);f.ref=n,f.className=c;var h=o(s,f);if(!Ua&&void 0!==p){for(var g,y=u.name,v=u.next;void 0!==v;)y+=" "+v.name,v=v.next;return o(a,null,o("style",((g={})["data-emotion-"+e.key]=y,g.dangerouslySetInnerHTML={__html:p},g.nonce=e.sheet.nonce,g)),h)}return h},Xa=qa((function(e,t,r){return"function"==typeof e.css?o(Ya.Consumer,null,(function(n){return Ja(t,e,n,r)})):Ja(t,e,null,r)}));"production"!==process.env.NODE_ENV&&(Xa.displayName="EmotionCssPropInternal");var Za=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var i=t[n];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function Qa(e,t,r){var n=[],o=wa(e,n,r);return n.length<2?r:o+t(n)}qa((function(e,t){return o(Ya.Consumer,null,(function(r){var n,i="",s="",l=!1,c=function(){if(l&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=Wa(r,t.registered);if(Ua)Ea(t,o,!1);else{var a=Ea(t,o,!1);void 0!==a&&(i+=a)}return Ua||(s+=" "+o.name),t.key+"-"+o.name},u={css:c,cx:function(){if(l&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Qa(t.registered,c,Za(r))},theme:r},d=e.children(u);return l=!0,Ua||0===i.length?d:o(a,null,o("style",((n={})["data-emotion-"+t.key]=s.substring(1),n.dangerouslySetInnerHTML={__html:i},n.nonce=t.sheet.nonce,n)),d)}))}));var es=la,ts=function(e){return"theme"!==e&&"innerRef"!==e},rs=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?es:ts};function ns(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function os(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ns(r,!0).forEach((function(t){ia(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ns(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var is="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",as="undefined"!=typeof document,ss=function e(t,r){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var n,i,s;void 0!==r&&(n=r.label,s=r.target,i=t.__emotion_forwardProp&&r.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&r.shouldForwardProp(e)}:r.shouldForwardProp);var l=t.__emotion_real===t,c=l&&t.__emotion_base||t;"function"!=typeof i&&l&&(i=t.__emotion_forwardProp);var u=i||rs(c),d=!u("as");return function(){var p=arguments,f=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&f.push("label:"+n+";"),null==p[0]||void 0===p[0].raw)f.push.apply(f,p);else{"production"!==process.env.NODE_ENV&&void 0===p[0][0]&&console.error(is),f.push(p[0][0]);for(var m=p.length,h=1;h<m;h++)"production"!==process.env.NODE_ENV&&void 0===p[0][h]&&console.error(is),f.push(p[h],p[0][h])}var g=qa((function(e,t,r){return o(Ya.Consumer,null,(function(l){var p=d&&e.as||c,m="",h=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=l}"string"==typeof e.className?m=wa(t.registered,h,e.className):null!=e.className&&(m=e.className+" ");var v=Wa(f.concat(h),t.registered,g),b=Ea(t,v,"string"==typeof p);m+=t.key+"-"+v.name,void 0!==s&&(m+=" "+s);var x=d&&void 0===i?rs(p):u,w={};for(var E in e)d&&"as"===E||x(E)&&(w[E]=e[E]);w.className=m,w.ref=r||e.innerRef,"production"!==process.env.NODE_ENV&&e.innerRef&&console.error("`innerRef` is deprecated and will be removed in a future major version of Emotion, please use the `ref` prop instead"+(void 0===n?"":" in the usage of `"+n+"`"));var k=o(p,w);if(!as&&void 0!==b){for(var S,N=v.name,C=v.next;void 0!==C;)N+=" "+C.name,C=C.next;return o(a,null,o("style",((S={})["data-emotion-"+t.key]=N,S.dangerouslySetInnerHTML={__html:b},S.nonce=t.sheet.nonce,S)),k)}return k}))}));return g.displayName=void 0!==n?n:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=c,g.__emotion_styles=f,g.__emotion_forwardProp=i,Object.defineProperty(g,"toString",{value:function(){return void 0===s&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+s}}),g.withComponent=function(t,n){return e(t,void 0!==n?os({},r||{},{},n):r).apply(void 0,f)},g}}.bind();["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"].forEach((function(e){ss[e]=ss(e)}));var ls=ss;var cs=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var r=64===e.charCodeAt(0)&&105===e.charCodeAt(1);r&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!r}if(this.isSpeedy){var n=function(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]}(t);try{n.insertRule(e,n.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),us="-ms-",ds="-moz-",ps="-webkit-",fs=Math.abs,ms=String.fromCharCode,hs=Object.assign;function gs(e){return e.trim()}function ys(e,t,r){return e.replace(t,r)}function vs(e,t){return e.indexOf(t)}function bs(e,t){return 0|e.charCodeAt(t)}function xs(e,t,r){return e.slice(t,r)}function ws(e){return e.length}function Es(e){return e.length}function ks(e,t){return t.push(e),e}var Ss=1,Ns=1,Cs=0,Os=0,Rs=0,Ts="";function _s(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ss,column:Ns,length:a,return:""}}function Ps(e,t){return hs(_s("",null,null,"",null,null,0),e,{length:-e.length},t)}function As(){return Rs=Os>0?bs(Ts,--Os):0,Ns--,10===Rs&&(Ns=1,Ss--),Rs}function Is(){return Rs=Os<Cs?bs(Ts,Os++):0,Ns++,10===Rs&&(Ns=1,Ss++),Rs}function $s(){return bs(Ts,Os)}function js(){return Os}function Ms(e,t){return xs(Ts,e,t)}function Ds(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 Bs(e){return Ss=Ns=1,Cs=ws(Ts=e),Os=0,[]}function Vs(e){return Ts="",e}function Ls(e){return gs(Ms(Os-1,Ws(91===e?e+2:40===e?e+1:e)))}function zs(e){for(;(Rs=$s())&&Rs<33;)Is();return Ds(e)>2||Ds(Rs)>3?"":" "}function Fs(e,t){for(;--t&&Is()&&!(Rs<48||Rs>102||Rs>57&&Rs<65||Rs>70&&Rs<97););return Ms(e,js()+(t<6&&32==$s()&&32==Is()))}function Ws(e){for(;Is();)switch(Rs){case e:return Os;case 34:case 39:34!==e&&39!==e&&Ws(Rs);break;case 40:41===e&&Ws(e);break;case 92:Is()}return Os}function Us(e,t){for(;Is()&&e+Rs!==57&&(e+Rs!==84||47!==$s()););return"/*"+Ms(t,Os-1)+"*"+ms(47===e?e:Is())}function Gs(e){for(;!Ds($s());)Is();return Ms(e,Os)}function Hs(e){return Vs(Ys("",null,null,null,[""],e=Bs(e),0,[0],e))}function Ys(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,m=0,h=1,g=1,y=1,v=0,b="",x=o,w=i,E=n,k=b;g;)switch(m=v,v=Is()){case 40:if(108!=m&&58==bs(k,d-1)){-1!=vs(k+=ys(Ls(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Ls(v);break;case 9:case 10:case 13:case 32:k+=zs(m);break;case 92:k+=Fs(js()-1,7);continue;case 47:switch($s()){case 42:case 47:ks(Ks(Us(Is(),js()),t,r),l);break;default:k+="/"}break;case 123*h:s[c++]=ws(k)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:f>0&&ws(k)-d&&ks(f>32?Js(k+";",n,r,d-1):Js(ys(k," ","")+";",n,r,d-2),l);break;case 59:k+=";";default:if(ks(E=qs(k,t,r,c,u,o,s,b,x=[],w=[],d),i),123===v)if(0===u)Ys(k,t,E,E,x,i,d,s,w);else switch(99===p&&110===bs(k,3)?100:p){case 100:case 109:case 115:Ys(e,E,E,n&&ks(qs(e,E,E,0,0,o,s,b,o,x=[],d),w),o,w,d,s,n?x:w);break;default:Ys(k,E,E,E,[""],w,0,s,w)}}c=u=f=0,h=y=1,b=k="",d=a;break;case 58:d=1+ws(k),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==As())continue;switch(k+=ms(v),v*h){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(ws(k)-1)*y,y=1;break;case 64:45===$s()&&(k+=Ls(Is())),p=$s(),u=d=ws(b=k+=Gs(js())),v++;break;case 45:45===m&&2==ws(k)&&(h=0)}}return i}function qs(e,t,r,n,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Es(p),m=0,h=0,g=0;m<n;++m)for(var y=0,v=xs(e,d+1,d=fs(h=a[m])),b=e;y<f;++y)(b=gs(h>0?p[y]+" "+v:ys(v,/&\f/g,p[y])))&&(l[g++]=b);return _s(e,t,r,0===o?"rule":s,l,c,u)}function Ks(e,t,r){return _s(e,t,r,"comm",ms(Rs),xs(e,2,-2),0)}function Js(e,t,r,n){return _s(e,t,r,"decl",xs(e,0,n),xs(e,n+1,-1),n)}function Xs(e,t){for(var r="",n=Es(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Zs(e,t,r,n){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+Xs(e.children,n)+"}";case"rule":e.value=e.props.join(",")}return ws(r=Xs(e.children,n))?e.return=e.value+"{"+r+"}":""}function Qs(e){var t=Es(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function el(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var tl=function(e,t,r){for(var n=0,o=0;n=o,o=$s(),38===n&&12===o&&(t[r]=1),!Ds(o);)Is();return Ms(e,Os)},rl=function(e,t){return Vs(function(e,t){var r=-1,n=44;do{switch(Ds(n)){case 0:38===n&&12===$s()&&(t[r]=1),e[r]+=tl(Os-1,t,r);break;case 2:e[r]+=Ls(n);break;case 4:if(44===n){e[++r]=58===$s()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ms(n)}}while(n=Is());return e}(Bs(e),t))},nl=new WeakMap,ol=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||nl.get(r))&&!n){nl.set(e,!0);for(var o=[],i=rl(t,o),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},il=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},al=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},sl=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},ll=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},cl=function(e,t,r){sl(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),ll(e)):function(e,t){for(var r=e-1;r>=0;r--)if(!sl(t[r]))return!0;return!1}(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ll(e)))};function ul(e,t){switch(function(e,t){return 45^bs(e,0)?(((t<<2^bs(e,0))<<2^bs(e,1))<<2^bs(e,2))<<2^bs(e,3):0}(e,t)){case 5103:return ps+"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 ps+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ps+e+ds+e+us+e+e;case 6828:case 4268:return ps+e+us+e+e;case 6165:return ps+e+us+"flex-"+e+e;case 5187:return ps+e+ys(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return ps+e+us+"flex-item-"+ys(e,/flex-|-self/,"")+e;case 4675:return ps+e+us+"flex-line-pack"+ys(e,/align-content|flex-|-self/,"")+e;case 5548:return ps+e+us+ys(e,"shrink","negative")+e;case 5292:return ps+e+us+ys(e,"basis","preferred-size")+e;case 6060:return ps+"box-"+ys(e,"-grow","")+ps+e+us+ys(e,"grow","positive")+e;case 4554:return ps+ys(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return ys(ys(ys(e,/(zoom-|grab)/,ps+"$1"),/(image-set)/,ps+"$1"),e,"")+e;case 5495:case 3959:return ys(e,/(image-set\([^]*)/,ps+"$1$`$1");case 4968:return ys(ys(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+ps+e+e;case 4095:case 3583:case 4068:case 2532:return ys(e,/(.+)-inline(.+)/,ps+"$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(ws(e)-1-t>6)switch(bs(e,t+1)){case 109:if(45!==bs(e,t+4))break;case 102:return ys(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+ds+(108==bs(e,t+3)?"$3":"$2-$3"))+e;case 115:return~vs(e,"stretch")?ul(ys(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==bs(e,t+1))break;case 6444:switch(bs(e,ws(e)-3-(~vs(e,"!important")&&10))){case 107:return ys(e,":",":"+ps)+e;case 101:return ys(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ps+(45===bs(e,14)?"inline-":"")+"box$3$1"+ps+"$2$3$1"+us+"$2box$3")+e}break;case 5936:switch(bs(e,t+11)){case 114:return ps+e+us+ys(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ps+e+us+ys(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ps+e+us+ys(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ps+e+us+e+e}return e}var dl="undefined"!=typeof document,pl=dl?void 0:function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}}((function(){return el((function(){var e={};return function(t){return e[t]}}))})),fl=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=ul(e.value,e.length);break;case"@keyframes":return Xs([Ps(e,{value:ys(e.value,"@","@"+ps)})],n);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xs([Ps(e,{props:[ys(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Xs([Ps(e,{props:[ys(t,/:(plac\w+)/,":-webkit-input-$1")]}),Ps(e,{props:[ys(t,/:(plac\w+)/,":-moz-$1")]}),Ps(e,{props:[ys(t,/:(plac\w+)/,us+"input-$1")]})],n)}return""}))}}],ml=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(dl&&"css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||fl;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},s=[];dl&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;s.push(e)})));var l,c=[ol,il];if("production"!==process.env.NODE_ENV&&c.push(function(e){return function(t,r,n){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent===n[0]?n[0].children:n,a=i.length-1;a>=0;a--){var s=i[a];if(s.line<t.line)break;if(s.column<t.column){if(al(s))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return y.compat}}),cl),dl){var u,d=[Zs,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&"comm"!==e.type&&u.insert(e.value+"{}"))}:(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],p=Qs(c.concat(n,d));i=function(e,t,r,n){u=r,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){r.insert(e+t.map)}}),Xs(Hs(e?e+"{"+t.styles+"}":t.styles),p),n&&(y.inserted[t.name]=!0)}}else{var f=[Zs],m=Qs(c.concat(n,f)),h=pl(n)(t),g=function(e,t){var r=t.name;return void 0===h[r]&&(h[r]=Xs(Hs(e?e+"{"+t.styles+"}":t.styles),m)),h[r]};i=function(e,t,r,n){var o=t.name,i=g(e,t);return void 0===y.compat?(n&&(y.inserted[o]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?i+t.map:i):n?void(y.inserted[o]=i):i}}var y={key:t,sheet:new cs({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return y.sheet.hydrate(s),y},hl="undefined"!=typeof document;function gl(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var yl=function(e,t,r){var n=e.key+"-"+t.name;(!1===r||!1===hl&&void 0!==e.compat)&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},vl=function(e,t,r){yl(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+n:"",i,e.sheet,!0);hl||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!hl&&0!==o.length)return o}};var bl={animationIterationCount: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,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},xl="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",wl="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",El=/[A-Z]|^ms/g,kl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sl=function(e){return 45===e.charCodeAt(1)},Nl=function(e){return null!=e&&"boolean"!=typeof e},Cl=el((function(e){return Sl(e)?e:e.replace(El,"-$&").toLowerCase()})),Ol=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(kl,(function(e,t,r){return Dl={name:t,styles:r,next:Dl},t}))}return 1===bl[e]||Sl(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var Rl=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Tl=["normal","none","initial","inherit","unset"],_l=Ol,Pl=/^-ms-/,Al=/-(.)/g,Il={};Ol=function(e,t){if("content"===e&&("string"!=typeof t||-1===Tl.indexOf(t)&&!Rl.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=_l(e,t);return""===r||Sl(e)||-1===e.indexOf("-")||void 0!==Il[e]||(Il[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Pl,"ms-").replace(Al,(function(e,t){return t.toUpperCase()}))+"?")),r}}var $l="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function jl(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===r.toString())throw new Error($l);return r}switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return Dl={name:r.name,styles:r.styles,next:Dl},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Dl={name:n.name,styles:n.styles,next:Dl},n=n.next;var o=r.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==r.map&&(o+=r.map),o}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=jl(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=i+"{"+t[a]+"}":Nl(a)&&(n+=Cl(i)+":"+Ol(i,a)+";");else{if("NO_COMPONENT_SELECTOR"===i&&"production"!==process.env.NODE_ENV)throw new Error($l);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=jl(e,t,a);switch(i){case"animation":case"animationName":n+=Cl(i)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===i&&console.error(wl),n+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Nl(a[l])&&(n+=Cl(i)+":"+Ol(i,a[l])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var i=Dl,a=r(e);return Dl=i,jl(e,t,a)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var s=[],l=r.replace(kl,(function(e,t,r){var n="animation"+s.length;return s.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"}));s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+l+"`")}}if(null==t)return r;var c=t[r];return void 0!==c?c:r}var Ml,Dl,Bl=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Ml=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Vl=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";Dl=void 0;var i,a=e[0];null==a||void 0===a.raw?(n=!1,o+=jl(r,t,a)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(xl),o+=a[0]);for(var s=1;s<e.length;s++)o+=jl(r,t,e[s]),n&&("production"!==process.env.NODE_ENV&&void 0===a[s]&&console.error(xl),o+=a[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(Ml,(function(e){return i=e,""}))),Bl.lastIndex=0;for(var l,c="";null!==(l=Bl.exec(o));)c+="-"+l[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:i,next:Dl,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:Dl}},Ll="undefined"!=typeof document,zl=function(e){return e()},Fl=!!e.useInsertionEffect&&e.useInsertionEffect,Wl=Ll&&Fl||zl,Ul=Fl||s,Gl="undefined"!=typeof document,Hl={}.hasOwnProperty,Yl=r("undefined"!=typeof HTMLElement?ml({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Yl.displayName="EmotionCacheContext"),Yl.Provider;var ql=function(e){return n((function(t,r){var n=l(Yl);return e(t,n,r)}))};Gl||(ql=function(e){return function(t){var r=l(Yl);return null===r?(r=ml({key:"css"}),o(Yl.Provider,{value:r},e(t,r))):e(t,r)}});var Kl=r({});"production"!==process.env.NODE_ENV&&(Kl.displayName="EmotionThemeContext");var Jl=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;yl(t,r,n);var i=Wl((function(){return vl(t,r,n)}));if(!Gl&&void 0!==i){for(var a,s=r.name,l=r.next;void 0!==l;)s+=" "+l.name,l=l.next;return o("style",((a={})["data-emotion"]=t.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=t.sheet.nonce,a))}return null},Xl=ql((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,s=[n],c="";"string"==typeof e.className?c=gl(t.registered,s,e.className):null!=e.className&&(c=e.className+" ");var u=Vl(s,void 0,l(Kl));if("production"!==process.env.NODE_ENV&&-1===u.name.indexOf("-")){var d=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;d&&(u=Vl([u,"label:"+d+";"]))}c+=t.key+"-"+u.name;var p={};for(var f in e)!Hl.call(e,f)||"css"===f||"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"===f||"production"!==process.env.NODE_ENV&&"__EMOTION_LABEL_PLEASE_DO_NOT_USE__"===f||(p[f]=e[f]);return p.ref=r,p.className=c,o(a,null,o(Jl,{cache:t,serialized:u,isStringTag:"string"==typeof i}),o(i,p))}));"production"!==process.env.NODE_ENV&&(Xl.displayName="EmotionCssPropInternal");var Zl=!1,Ql=ql((function(e,t){"production"===process.env.NODE_ENV||Zl||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Zl=!0);var r=e.styles,n=Vl([r],void 0,l(Kl));if(!Gl){for(var i,a=n.name,s=n.styles,u=n.next;void 0!==u;)a+=" "+u.name,s+=u.styles,u=u.next;var d=!0===t.compat,p=t.insert("",{name:a,styles:s},t.sheet,d);return d?null:o("style",((i={})["data-emotion"]=t.key+"-global "+a,i.dangerouslySetInnerHTML={__html:p},i.nonce=t.sheet.nonce,i))}var f=c();return Ul((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),f.current=[r,o],function(){r.flush()}}),[t]),Ul((function(){var e=f.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&vl(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function ec(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Vl(t)}"production"!==process.env.NODE_ENV&&(Ql.displayName="EmotionGlobal");var tc=function(){var e=ec.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_"}}},rc=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var i=t[n];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in"production"!==process.env.NODE_ENV&&void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function nc(e,t,r){var n=[],o=gl(e,n,r);return n.length<2?r:o+t(n)}var oc=function(e){var t,r=e.cache,n=e.serializedArr,i=Wl((function(){for(var e="",t=0;t<n.length;t++){var o=vl(r,n[t],!1);Gl||void 0===o||(e+=o)}if(!Gl)return e}));return Gl||0===i.length?null:o("style",((t={})["data-emotion"]=r.key+" "+n.map((function(e){return e.name})).join(" "),t.dangerouslySetInnerHTML={__html:i},t.nonce=r.sheet.nonce,t))},ic=ql((function(e,t){var r=!1,n=[],i=function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=Vl(o,t.registered);return n.push(a),yl(t,a,!1),t.key+"-"+a.name},s={css:i,cx:function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return nc(t.registered,i,rc(n))},theme:l(Kl)},c=e.children(s);return r=!0,o(a,null,o(oc,{cache:t,serializedArr:n}),c)}));if("production"!==process.env.NODE_ENV&&(ic.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var ac="undefined"!=typeof document,sc="undefined"!=typeof jest||"undefined"!=typeof vi;if(ac&&!sc){var lc="undefined"!=typeof globalThis?globalThis:ac?window:global,cc="__EMOTION_REACT_"+"11.10.6".split(".")[0]+"__";lc[cc]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),lc[cc]=!0}}
|
|
31
|
-
/**
|
|
32
|
-
* @mui/styled-engine v5.11.11
|
|
33
|
-
*
|
|
34
|
-
* @license MIT
|
|
35
|
-
* This source code is licensed under the MIT license found in the
|
|
36
|
-
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/var uc="production"!==process.env.NODE_ENV?Pt.oneOfType([Pt.number,Pt.string,Pt.object,Pt.array]):{};function dc(e,t){return t?Me(e,t,{clone:!1}):e}const pc={xs:0,sm:600,md:900,lg:1200,xl:1536},fc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${pc[e]}px)`};function mc(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||fc;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||fc;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||pc).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function hc(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function gc(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:hc(e,r)||n,t&&(o=t(o,n,e)),o}function yc(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=hc(e.theme,n)||{};return mc(e,i,(e=>{let n=gc(a,o,e);return e===n&&"string"==typeof e&&(n=gc(a,o,`${t}${"default"===e?"":or(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:uc}:{},i.filterProps=[t],i}function vc(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?dc(r,t[n](e)):r),{});return r.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}const bc={m:"margin",p:"padding"},xc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ec=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!wc[e])return[e];e=wc[e]}const[t,r]=e.split(""),n=bc[t],o=xc[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),kc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Sc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Nc=[...kc,...Sc];function Cc(e,t,r,n){var o;const i=null!=(o=hc(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):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("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Oc(e){return Cc(e,"spacing",8,"spacing")}function Rc(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Tc(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Rc(t,r),e)),{})}(Ec(r),n);return mc(e,e[r],o)}function _c(e,t){const r=Oc(e.theme);return Object.keys(e).map((n=>Tc(e,t,n,r))).reduce(dc,{})}function Pc(e){return _c(e,kc)}function Ac(e){return _c(e,Sc)}function Ic(e){return"number"!=typeof e?e:`${e}px solid`}Pc.propTypes="production"!==process.env.NODE_ENV?kc.reduce(((e,t)=>(e[t]=uc,e)),{}):{},Pc.filterProps=kc,Ac.propTypes="production"!==process.env.NODE_ENV?Sc.reduce(((e,t)=>(e[t]=uc,e)),{}):{},Ac.filterProps=Sc,"production"===process.env.NODE_ENV||Nc.reduce(((e,t)=>(e[t]=uc,e)),{});const $c=yc({prop:"border",themeKey:"borders",transform:Ic}),jc=yc({prop:"borderTop",themeKey:"borders",transform:Ic}),Mc=yc({prop:"borderRight",themeKey:"borders",transform:Ic}),Dc=yc({prop:"borderBottom",themeKey:"borders",transform:Ic}),Bc=yc({prop:"borderLeft",themeKey:"borders",transform:Ic}),Vc=yc({prop:"borderColor",themeKey:"palette"}),Lc=yc({prop:"borderTopColor",themeKey:"palette"}),zc=yc({prop:"borderRightColor",themeKey:"palette"}),Fc=yc({prop:"borderBottomColor",themeKey:"palette"}),Wc=yc({prop:"borderLeftColor",themeKey:"palette"}),Uc=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Cc(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:Rc(t,e)});return mc(e,e.borderRadius,r)}return null};Uc.propTypes="production"!==process.env.NODE_ENV?{borderRadius:uc}:{},Uc.filterProps=["borderRadius"],vc($c,jc,Mc,Dc,Bc,Vc,Lc,zc,Fc,Wc,Uc);const Gc=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Cc(e.theme,"spacing",8,"gap"),r=e=>({gap:Rc(t,e)});return mc(e,e.gap,r)}return null};Gc.propTypes="production"!==process.env.NODE_ENV?{gap:uc}:{},Gc.filterProps=["gap"];const Hc=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Cc(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:Rc(t,e)});return mc(e,e.columnGap,r)}return null};Hc.propTypes="production"!==process.env.NODE_ENV?{columnGap:uc}:{},Hc.filterProps=["columnGap"];const Yc=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Cc(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:Rc(t,e)});return mc(e,e.rowGap,r)}return null};Yc.propTypes="production"!==process.env.NODE_ENV?{rowGap:uc}:{},Yc.filterProps=["rowGap"];function qc(e,t){return"grey"===t?t:e}vc(Gc,Hc,Yc,yc({prop:"gridColumn"}),yc({prop:"gridRow"}),yc({prop:"gridAutoFlow"}),yc({prop:"gridAutoColumns"}),yc({prop:"gridAutoRows"}),yc({prop:"gridTemplateColumns"}),yc({prop:"gridTemplateRows"}),yc({prop:"gridTemplateAreas"}),yc({prop:"gridArea"}));function Kc(e){return e<=1&&0!==e?100*e+"%":e}vc(yc({prop:"color",themeKey:"palette",transform:qc}),yc({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qc}),yc({prop:"backgroundColor",themeKey:"palette",transform:qc}));const Jc=yc({prop:"width",transform:Kc}),Xc=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n,o;return{maxWidth:(null==(r=e.theme)||null==(n=r.breakpoints)||null==(o=n.values)?void 0:o[t])||pc[t]||Kc(t)}};return mc(e,e.maxWidth,t)}return null};Xc.filterProps=["maxWidth"];const Zc=yc({prop:"minWidth",transform:Kc}),Qc=yc({prop:"height",transform:Kc}),eu=yc({prop:"maxHeight",transform:Kc}),tu=yc({prop:"minHeight",transform:Kc});yc({prop:"size",cssProperty:"width",transform:Kc}),yc({prop:"size",cssProperty:"height",transform:Kc});vc(Jc,Xc,Zc,Qc,eu,tu,yc({prop:"boxSizing"}));var ru={border:{themeKey:"borders",transform:Ic},borderTop:{themeKey:"borders",transform:Ic},borderRight:{themeKey:"borders",transform:Ic},borderBottom:{themeKey:"borders",transform:Ic},borderLeft:{themeKey:"borders",transform:Ic},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Uc},color:{themeKey:"palette",transform:qc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qc},backgroundColor:{themeKey:"palette",transform:qc},p:{style:Ac},pt:{style:Ac},pr:{style:Ac},pb:{style:Ac},pl:{style:Ac},px:{style:Ac},py:{style:Ac},padding:{style:Ac},paddingTop:{style:Ac},paddingRight:{style:Ac},paddingBottom:{style:Ac},paddingLeft:{style:Ac},paddingX:{style:Ac},paddingY:{style:Ac},paddingInline:{style:Ac},paddingInlineStart:{style:Ac},paddingInlineEnd:{style:Ac},paddingBlock:{style:Ac},paddingBlockStart:{style:Ac},paddingBlockEnd:{style:Ac},m:{style:Pc},mt:{style:Pc},mr:{style:Pc},mb:{style:Pc},ml:{style:Pc},mx:{style:Pc},my:{style:Pc},margin:{style:Pc},marginTop:{style:Pc},marginRight:{style:Pc},marginBottom:{style:Pc},marginLeft:{style:Pc},marginX:{style:Pc},marginY:{style:Pc},marginInline:{style:Pc},marginInlineStart:{style:Pc},marginInlineEnd:{style:Pc},marginBlock:{style:Pc},marginBlockStart:{style:Pc},marginBlockEnd:{style:Pc},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:Gc},rowGap:{style:Yc},columnGap:{style:Hc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Kc},maxWidth:{style:Xc},minWidth:{transform:Kc},height:{transform:Kc},maxHeight:{transform:Kc},minHeight:{transform:Kc},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const nu=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;const u=hc(r,s)||{};if(c)return c(o);return mc(o,t,(t=>{let r=gc(u,l,t);return t===r&&"string"==typeof t&&(r=gc(u,l,`${e}${"default"===t?"":or(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:ru;function s(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{});return r||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[r])l=dc(l,e(r,o,i,a));else{const e=mc({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=dc(l,e):l[r]=t({sx:o,theme:i})}else l=dc(l,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();nu.filterProps=["sx"];var ou=nu;const iu=["values","unit","step"];function au(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Lr(e,iu),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Ie({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Ie({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var su={borderRadius:4};const lu=["breakpoints","palette","spacing","shape"];function cu(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Lr(e,lu),s=au(r),l=function(e=8){if(e.mui)return e;const t=Oc({spacing:e}),r=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" "));return r.mui=!0,r}(o);let c=Me({breakpoints:s,direction:"ltr",components:{},palette:Ie({mode:"light"},n),spacing:l,shape:Ie({},su,i)},a);return c=t.reduce(((e,t)=>Me(e,t)),c),c.unstable_sxConfig=Ie({},ru,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ou({sx:e,theme:this})},c}function uu(e=null){const t=Cr();return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const du=cu();const pu=["variant"];function fu(e){return 0===e.length}function mu(e){const{variant:t}=e,r=Lr(e,pu);let n=t||"";return Object.keys(r).sort().forEach((t=>{n+="color"===t?fu(n)?e[t]:or(e[t]):`${fu(n)?t:or(t)}${or(e[t].toString())}`})),n}const hu=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],gu=["theme"],yu=["theme"];function vu(e){return 0===Object.keys(e).length}function bu(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const xu=cu();function wu({props:e,name:t,defaultTheme:r}){const n=function(e=du){return uu(e)}(r),o=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?yr(t.components[r].defaultProps,n):n}({theme:n,name:t,props:e});return o}function Eu(e,t=0,r=1){return"production"!==process.env.NODE_ENV&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Math.min(Math.max(t,e),r)}function ku(e){if(e.type)return e;if("#"===e.charAt(0))return ku(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:It(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${n}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:It(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Su(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Nu(e){let t="hsl"===(e=ku(e)).type||"hsla"===e.type?ku(function(e){e=ku(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Su({type:s,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Cu(e,t){const r=Nu(e),n=Nu(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ou(e,t){return e=ku(e),t=Eu(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Su(e)}const Ru=["mode","contrastThreshold","tonalOffset"],Tu={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:Xi.white,default:Xi.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}},_u={text:{primary:Xi.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:Xi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Pu(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=function(e,t){if(e=ku(e),t=Eu(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Su(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=ku(e),t=Eu(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Su(e)}(e.main,i)))}function Au(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Lr(e,Ru),i=e.primary||function(e="light"){return"dark"===e?{main:ea[200],light:ea[50],dark:ea[400]}:{main:ea[700],light:ea[400],dark:ea[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Qi[200],light:Qi[50],dark:Qi[400]}:{main:Qi[500],light:Qi[300],dark:Qi[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Zi[500],light:Zi[300],dark:Zi[700]}:{main:Zi[700],light:Zi[400],dark:Zi[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:ta[400],light:ta[300],dark:ta[700]}:{main:ta[700],light:ta[500],dark:ta[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:ra[400],light:ra[300],dark:ra[700]}:{main:ra[800],light:ra[500],dark:ra[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:na[400],light:na[300],dark:na[700]}:{main:"#ed6c02",light:na[500],dark:na[900]}}(t);function d(e){const t=Cu(e,_u.text.primary)>=r?_u.text.primary:Tu.text.primary;if("production"!==process.env.NODE_ENV){const r=Cu(e,t);r<3&&console.error([`MUI: The contrast ratio of ${r}:1 for ${t} on ${e}`,"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("\n"))}return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ie({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${r}\` property.`:It(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:It(12,t?` (${t})`:"",JSON.stringify(e.main)));return Pu(e,"light",o,n),Pu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:_u,light:Tu};"production"!==process.env.NODE_ENV&&(f[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return Me(Ie({common:Ie({},Xi),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:oa,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Iu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const $u={textTransform:"uppercase"},ju='"Roboto", "Helvetica", "Arial", sans-serif';function Mu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=ju,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=r,p=Lr(r,Iu);"production"!==process.env.NODE_ENV&&("number"!=typeof o&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof c&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=o/14,m=d||(e=>e/c*f+"rem"),h=(e,t,r,o,i)=>{return Ie({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===ju?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,$u),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,$u)};return Me(Ie({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Du(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Bu=["none",Du(0,2,1,-1,0,1,1,0,0,1,3,0),Du(0,3,1,-2,0,2,2,0,0,1,5,0),Du(0,3,3,-2,0,3,4,0,0,1,8,0),Du(0,2,4,-1,0,4,5,0,0,1,10,0),Du(0,3,5,-1,0,5,8,0,0,1,14,0),Du(0,3,5,-1,0,6,10,0,0,1,18,0),Du(0,4,5,-2,0,7,10,1,0,2,16,1),Du(0,5,5,-3,0,8,10,1,0,3,14,2),Du(0,5,6,-3,0,9,12,1,0,3,16,2),Du(0,6,6,-3,0,10,14,1,0,4,18,3),Du(0,6,7,-4,0,11,15,1,0,4,20,3),Du(0,7,8,-4,0,12,17,2,0,5,22,4),Du(0,7,8,-4,0,13,19,2,0,5,24,4),Du(0,7,9,-4,0,14,21,2,0,5,26,4),Du(0,8,9,-5,0,15,22,2,0,6,28,5),Du(0,8,10,-5,0,16,24,2,0,6,30,5),Du(0,8,11,-5,0,17,26,2,0,6,32,5),Du(0,9,11,-5,0,18,28,2,0,7,34,6),Du(0,9,12,-6,0,19,29,2,0,7,36,6),Du(0,10,13,-6,0,20,31,3,0,8,38,7),Du(0,10,13,-6,0,21,33,3,0,8,40,7),Du(0,10,14,-6,0,22,35,3,0,8,42,7),Du(0,11,14,-7,0,23,36,3,0,9,44,8),Du(0,11,15,-7,0,24,38,3,0,9,46,8)];const Vu=["duration","easing","delay"],Lu={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)"},zu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Fu(e){return`${Math.round(e)}ms`}function Wu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Uu(e){const t=Ie({},Lu,e.easing),r=Ie({},zu,e.duration);return Ie({getAutoHeightDuration:Wu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n,s=Lr(n,Vu);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,r=e=>!isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),r(o)||t(o)||console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),r(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Fu(o)} ${i} ${"string"==typeof a?a:Fu(a)}`)).join(",")}},e,{easing:t,duration:r})}var Gu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Hu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Yu=function(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Lr(e,Hu);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":It(18));const s=Au(n),l=cu(e);let c=Me(l,{mixins:(u=l.breakpoints,d=r,Ie({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Bu.slice(),typography:Mu(s,i),transitions:Uu(o),zIndex:Ie({},Gu)});var u,d;if(c=Me(c,a),c=t.reduce(((e,t)=>Me(e,t)),c),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,r)=>{let n;for(n in t){const o=t[n];if(-1!==e.indexOf(n)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=Er("",n);console.error([`MUI: The \`${r}\` component increases the CSS specificity of the \`${n}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[n]={}}}};Object.keys(c.components).forEach((e=>{const r=c.components[e].styleOverrides;r&&0===e.indexOf("Mui")&&t(r,e)}))}return c.unstable_sxConfig=Ie({},ru,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ou({sx:e,theme:this})},c}();var qu=Yu;function Ku({props:e,name:t}){return wu({props:e,name:t,defaultTheme:qu})}const Ju=e=>bu(e)&&"classes"!==e,Xu=function(e={}){const{defaultTheme:t=xu,rootShouldForwardProp:r=bu,slotShouldForwardProp:n=bu}=e,o=e=>{const r=vu(e.theme)?t:e.theme;return ou(Ie({},e,{theme:r}))};return o.__mui_systemSx=!0,(e,i={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:s,skipVariantsResolver:l,skipSx:c,overridesResolver:u}=i,d=Lr(i,hu),p=void 0!==l?l:s&&"Root"!==s||!1,f=c||!1;let m;"production"!==process.env.NODE_ENV&&a&&(m=`${a}-${(e=>e.charAt(0).toLowerCase()+e.slice(1))(s||"Root")}`);let h=bu;"Root"===s?h=r:s?h=n:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=function(e,t){const r=ls(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const n="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...t)}:r}(e,Ie({shouldForwardProp:h,label:m},d)),y=(r,...n)=>{const i=n?n.map((e=>"function"==typeof e&&e.__emotion_real!==e?r=>{let{theme:n}=r,o=Lr(r,gu);return e(Ie({theme:vu(n)?t:n},o))}:e)):[];let l=r;a&&u&&i.push((e=>{const r=vu(e.theme)?t:e.theme,n=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(a,r);if(n){const t={};return Object.entries(n).forEach((([n,o])=>{t[n]="function"==typeof o?o(Ie({},e,{theme:r})):o})),u(e,t)}return null})),a&&!p&&i.push((e=>{const r=vu(e.theme)?t:e.theme;return((e,t,r,n)=>{var o,i;const{ownerState:a={}}=e,s=[],l=null==r||null==(o=r.components)||null==(i=o[n])?void 0:i.variants;return l&&l.forEach((r=>{let n=!0;Object.keys(r.props).forEach((t=>{a[t]!==r.props[t]&&e[t]!==r.props[t]&&(n=!1)})),n&&s.push(t[mu(r.props)])})),s})(e,((e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach((e=>{const t=mu(e.props);n[t]=e.style})),n})(a,r),r,a)})),f||i.push(o);const c=i.length-n.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");l=[...r,...e],l.raw=[...r.raw,...e]}else"function"==typeof r&&r.__emotion_real!==r&&(l=e=>{let{theme:n}=e,o=Lr(e,yu);return r(Ie({theme:vu(n)?t:n},o))});const d=g(l,...i);if("production"!==process.env.NODE_ENV){let t;a&&(t=`${a}${s||""}`),void 0===t&&(t=`Styled(${rr(e)})`),d.displayName=t}return d};return g.withConfig&&(y.withConfig=g.withConfig),y}}({defaultTheme:qu,rootShouldForwardProp:Ju});var Zu=Xu,Qu=t.createContext(null);function ed(e,t){var r=Object.create(null);return e&&u.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&d(e)?t(e):e}(e)})),r}function td(e,t,r){return null!=r[t]?r[t]:e.props[t]}function rd(e,t,r){var n=ed(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var c=o[l][n];s[o[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(d(a)){var s=i in t,l=i in n,c=t[i],u=d(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&d(c)&&(o[i]=p(a,{onExited:r.bind(null,a),in:c.props.in,exit:td(a,"exit",e),enter:td(a,"enter",e)})):o[i]=p(a,{in:!1}):o[i]=p(a,{onExited:r.bind(null,a),in:!0,exit:td(a,"exit",e),enter:td(a,"enter",e)})}})),o}var nd=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},od=function(e){function r(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Vr(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Br(r,e);var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,ed(r.children,(function(e){return p(e,{onExited:n.bind(null,e),in:!0,appear:td(e,"appear",r),enter:td(e,"enter",r),exit:td(e,"exit",r)})}))):rd(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var r=ed(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=Ie({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,r=e.component,n=e.childFactory,o=Lr(e,["component","childFactory"]),i=this.state.contextValue,a=nd(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===r?t.createElement(Qu.Provider,{value:i},a):t.createElement(Qu.Provider,{value:i},t.createElement(r,o,a))},r}(t.Component);od.propTypes="production"!==process.env.NODE_ENV?{component:Pt.any,children:Pt.node,appear:Pt.bool,enter:Pt.bool,exit:Pt.bool,childFactory:Pt.func}:{},od.defaultProps={component:"div",childFactory:function(e){return e}};var id=od;function ad(t){const{className:r,classes:n,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=t,[d,p]=e.useState(!1),f=qi(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:s,height:s,top:-s/2+a,left:-s/2+i},h=qi(n.child,d&&n.childLeaving,o&&n.childPulsate);return l||d||p(!0),e.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),b("span",{className:f,style:m,children:b("span",{className:h})})}"production"!==process.env.NODE_ENV&&(ad.propTypes={classes:Pt.object.isRequired,className:Pt.string,in:Pt.bool,onExited:Pt.func,pulsate:Pt.bool,rippleSize:Pt.number,rippleX:Pt.number,rippleY:Pt.number,timeout:Pt.number.isRequired});var sd=kr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const ld=["center","classes","className"];let cd,ud,dd,pd,fd=e=>e;const md=tc(cd||(cd=fd`
|
|
38
|
-
0% {
|
|
39
|
-
transform: scale(0);
|
|
40
|
-
opacity: 0.1;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
100% {
|
|
44
|
-
transform: scale(1);
|
|
45
|
-
opacity: 0.3;
|
|
46
|
-
}
|
|
47
|
-
`)),hd=tc(ud||(ud=fd`
|
|
48
|
-
0% {
|
|
49
|
-
opacity: 1;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
100% {
|
|
53
|
-
opacity: 0;
|
|
54
|
-
}
|
|
55
|
-
`)),gd=tc(dd||(dd=fd`
|
|
56
|
-
0% {
|
|
57
|
-
transform: scale(1);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
50% {
|
|
61
|
-
transform: scale(0.92);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
100% {
|
|
65
|
-
transform: scale(1);
|
|
66
|
-
}
|
|
67
|
-
`)),yd=Zu("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),vd=Zu(ad,{name:"MuiTouchRipple",slot:"Ripple"})(pd||(pd=fd`
|
|
68
|
-
opacity: 0;
|
|
69
|
-
position: absolute;
|
|
70
|
-
|
|
71
|
-
&.${0} {
|
|
72
|
-
opacity: 0.3;
|
|
73
|
-
transform: scale(1);
|
|
74
|
-
animation-name: ${0};
|
|
75
|
-
animation-duration: ${0}ms;
|
|
76
|
-
animation-timing-function: ${0};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&.${0} {
|
|
80
|
-
animation-duration: ${0}ms;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
& .${0} {
|
|
84
|
-
opacity: 1;
|
|
85
|
-
display: block;
|
|
86
|
-
width: 100%;
|
|
87
|
-
height: 100%;
|
|
88
|
-
border-radius: 50%;
|
|
89
|
-
background-color: currentColor;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
& .${0} {
|
|
93
|
-
opacity: 0;
|
|
94
|
-
animation-name: ${0};
|
|
95
|
-
animation-duration: ${0}ms;
|
|
96
|
-
animation-timing-function: ${0};
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
& .${0} {
|
|
100
|
-
position: absolute;
|
|
101
|
-
/* @noflip */
|
|
102
|
-
left: 0px;
|
|
103
|
-
top: 0;
|
|
104
|
-
animation-name: ${0};
|
|
105
|
-
animation-duration: 2500ms;
|
|
106
|
-
animation-timing-function: ${0};
|
|
107
|
-
animation-iteration-count: infinite;
|
|
108
|
-
animation-delay: 200ms;
|
|
109
|
-
}
|
|
110
|
-
`),sd.rippleVisible,md,550,(({theme:e})=>e.transitions.easing.easeInOut),sd.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),sd.child,sd.childLeaving,hd,550,(({theme:e})=>e.transitions.easing.easeInOut),sd.childPulsate,gd,(({theme:e})=>e.transitions.easing.easeInOut)),bd=e.forwardRef((function(t,r){const n=Ku({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,s=Lr(n,ld),[l,c]=e.useState([]),u=e.useRef(0),d=e.useRef(null);e.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=e.useRef(!1),f=e.useRef(null),m=e.useRef(null),h=e.useRef(null);e.useEffect((()=>()=>{clearTimeout(f.current)}),[]);const g=e.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;c((e=>[...e,b(vd,{classes:{ripple:qi(i.ripple,sd.ripple),rippleVisible:qi(i.rippleVisible,sd.rippleVisible),ripplePulsate:qi(i.ripplePulsate,sd.ripplePulsate),child:qi(i.child,sd.child),childLeaving:qi(i.childLeaving,sd.childLeaving),childPulsate:qi(i.childPulsate,sd.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},u.current)])),u.current+=1,d.current=a}),[i]),y=e.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{g({pulsate:n,rippleX:c,rippleY:u,rippleSize:d,cb:r})},f.current=setTimeout((()=>{m.current&&(m.current(),m.current=null)}),80)):g({pulsate:n,rippleX:c,rippleY:u,rippleSize:d,cb:r})}),[o,g]),v=e.useCallback((()=>{y({},{pulsate:!0})}),[y]),x=e.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void(f.current=setTimeout((()=>{x(e,t)})));m.current=null,c((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return e.useImperativeHandle(r,(()=>({pulsate:v,start:y,stop:x})),[v,y,x]),b(yd,Ie({className:qi(sd.root,i.root,a),ref:h},s,{children:b(id,{component:null,exit:!0,children:l})}))}));"production"!==process.env.NODE_ENV&&(bd.propTypes={center:Pt.bool,classes:Pt.object,className:Pt.string});var xd=bd;function wd(e){return Er("MuiButtonBase",e)}var Ed=kr("MuiButtonBase",["root","disabled","focusVisible"]);const kd=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Sd=Zu("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${Ed.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Nd=e.forwardRef((function(t,r){const n=Ku({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:y,onFocus:v,onFocusVisible:w,onKeyDown:E,onKeyUp:k,onMouseDown:S,onMouseLeave:N,onMouseUp:C,onTouchEnd:O,onTouchMove:R,onTouchStart:T,tabIndex:_=0,TouchRippleProps:P,touchRippleRef:A,type:I}=n,$=Lr(n,kd),j=e.useRef(null),M=e.useRef(null),D=sr(M,A),{isFocusVisibleRef:B,onFocus:V,onBlur:L,ref:z}=gr(),[F,W]=e.useState(!1);c&&F&&W(!1),e.useImperativeHandle(o,(()=>({focusVisible:()=>{W(!0),j.current.focus()}})),[]);const[U,G]=e.useState(!1);e.useEffect((()=>{G(!0)}),[]);const H=U&&!u&&!c;function Y(e,t,r=d){return ar((n=>{t&&t(n);return!r&&M.current&&M.current[e](n),!0}))}e.useEffect((()=>{F&&p&&!u&&U&&M.current.pulsate()}),[u,p,F,U]);const q=Y("start",S),K=Y("stop",g),J=Y("stop",y),X=Y("stop",C),Z=Y("stop",(e=>{F&&e.preventDefault(),N&&N(e)})),Q=Y("start",T),ee=Y("stop",O),te=Y("stop",R),re=Y("stop",(e=>{L(e),!1===B.current&&W(!1),m&&m(e)}),!1),ne=ar((e=>{j.current||(j.current=e.currentTarget),V(e),!0===B.current&&(W(!0),w&&w(e)),v&&v(e)})),oe=()=>{const e=j.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ie=e.useRef(!1),ae=ar((e=>{p&&!ie.current&&F&&M.current&&" "===e.key&&(ie.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),E&&E(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!c&&(e.preventDefault(),h&&h(e))})),se=ar((e=>{p&&" "===e.key&&M.current&&F&&!e.defaultPrevented&&(ie.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),k&&k(e),h&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let le=l;"button"===le&&($.href||$.to)&&(le=f);const ce={};"button"===le?(ce.type=void 0===I?"button":I,ce.disabled=c):($.href||$.to||(ce.role="button"),c&&(ce["aria-disabled"]=c));const ue=sr(r,z,j);"production"!==process.env.NODE_ENV&&e.useEffect((()=>{H&&!M.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join("\n"))}),[H]);const de=Ie({},n,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:_,focusVisible:F}),pe=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=vr({root:["root",t&&"disabled",r&&"focusVisible"]},wd,o);return r&&n&&(i.root+=` ${n}`),i})(de);return x(Sd,Ie({as:le,className:qi(pe.root,s),ownerState:de,onBlur:re,onClick:h,onContextMenu:K,onFocus:ne,onKeyDown:ae,onKeyUp:se,onMouseDown:q,onMouseLeave:Z,onMouseUp:X,onDragLeave:J,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:ue,tabIndex:c?-1:_,type:I},ce,$,{children:[a,H?b(xd,Ie({ref:D,center:i},P)):null]}))}));"production"!==process.env.NODE_ENV&&(Nd.propTypes={action:nr,centerRipple:Pt.bool,children:Pt.node,classes:Pt.object,className:Pt.string,component:At,disabled:Pt.bool,disableRipple:Pt.bool,disableTouchRipple:Pt.bool,focusRipple:Pt.bool,focusVisibleClassName:Pt.string,href:Pt.any,LinkComponent:Pt.elementType,onBlur:Pt.func,onClick:Pt.func,onContextMenu:Pt.func,onDragLeave:Pt.func,onFocus:Pt.func,onFocusVisible:Pt.func,onKeyDown:Pt.func,onKeyUp:Pt.func,onMouseDown:Pt.func,onMouseLeave:Pt.func,onMouseUp:Pt.func,onTouchEnd:Pt.func,onTouchMove:Pt.func,onTouchStart:Pt.func,sx:Pt.oneOfType([Pt.arrayOf(Pt.oneOfType([Pt.func,Pt.object,Pt.bool])),Pt.func,Pt.object]),tabIndex:Pt.number,TouchRippleProps:Pt.object,touchRippleRef:Pt.oneOfType([Pt.func,Pt.shape({current:Pt.shape({pulsate:Pt.func.isRequired,start:Pt.func.isRequired,stop:Pt.func.isRequired})})]),type:Pt.oneOfType([Pt.oneOf(["button","reset","submit"]),Pt.string])});var Cd=Nd;function Od(e){return Er("MuiButton",e)}var Rd=kr("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const Td=e.createContext({});"production"!==process.env.NODE_ENV&&(Td.displayName="ButtonGroupContext");var _d=Td;const Pd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ad=e=>Ie({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Id=Zu(Cd,{shouldForwardProp:e=>Ju(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${or(r.color)}`],t[`size${or(r.size)}`],t[`${r.variant}Size${or(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;return Ie({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ie({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ou(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ou(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ou(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Ie({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Rd.focusVisible}`]:Ie({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Rd.disabled}`]:Ie({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ou(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Rd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Rd.disabled}`]:{boxShadow:"none"}})),$d=Zu("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${or(r.size)}`]]}})((({ownerState:e})=>Ie({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ad(e)))),jd=Zu("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${or(r.size)}`]]}})((({ownerState:e})=>Ie({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ad(e)))),Md=e.forwardRef((function(t,r){const n=e.useContext(_d),o=Ku({props:yr(n,t),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:y,variant:v="text"}=o,w=Lr(o,Pd),E=Ie({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:m,size:h,type:y,variant:v}),k=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Ie({},a,vr({root:["root",i,`${i}${or(t)}`,`size${or(o)}`,`${i}Size${or(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${or(o)}`],endIcon:["endIcon",`iconSize${or(o)}`]},Od,a))})(E),S=g&&b($d,{className:k.startIcon,ownerState:E,children:g}),N=p&&b(jd,{className:k.endIcon,ownerState:E,children:p});return x(Id,Ie({ownerState:E,className:qi(n.className,k.root,l),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:qi(k.focusVisible,f),ref:r,type:y},w,{classes:k,children:[S,i,N]}))}));"production"!==process.env.NODE_ENV&&(Md.propTypes={children:Pt.node,classes:Pt.object,className:Pt.string,color:Pt.oneOfType([Pt.oneOf(["inherit","primary","secondary","success","error","info","warning"]),Pt.string]),component:Pt.elementType,disabled:Pt.bool,disableElevation:Pt.bool,disableFocusRipple:Pt.bool,disableRipple:Pt.bool,endIcon:Pt.node,focusVisibleClassName:Pt.string,fullWidth:Pt.bool,href:Pt.string,size:Pt.oneOfType([Pt.oneOf(["small","medium","large"]),Pt.string]),startIcon:Pt.node,sx:Pt.oneOfType([Pt.arrayOf(Pt.oneOfType([Pt.func,Pt.object,Pt.bool])),Pt.func,Pt.object]),type:Pt.oneOfType([Pt.oneOf(["button","reset","submit"]),Pt.string]),variant:Pt.oneOfType([Pt.oneOf(["contained","outlined","text"]),Pt.string])});var Dd=Md;function Bd(e){return Er("MuiCircularProgress",e)}kr("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Vd=["className","color","disableShrink","size","style","thickness","value","variant"];let Ld,zd,Fd,Wd,Ud=e=>e;const Gd=tc(Ld||(Ld=Ud`
|
|
111
|
-
0% {
|
|
112
|
-
transform: rotate(0deg);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
100% {
|
|
116
|
-
transform: rotate(360deg);
|
|
117
|
-
}
|
|
118
|
-
`)),Hd=tc(zd||(zd=Ud`
|
|
119
|
-
0% {
|
|
120
|
-
stroke-dasharray: 1px, 200px;
|
|
121
|
-
stroke-dashoffset: 0;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
50% {
|
|
125
|
-
stroke-dasharray: 100px, 200px;
|
|
126
|
-
stroke-dashoffset: -15px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
100% {
|
|
130
|
-
stroke-dasharray: 100px, 200px;
|
|
131
|
-
stroke-dashoffset: -125px;
|
|
132
|
-
}
|
|
133
|
-
`)),Yd=Zu("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${or(r.color)}`]]}})((({ownerState:e,theme:t})=>Ie({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&ec(Fd||(Fd=Ud`
|
|
134
|
-
animation: ${0} 1.4s linear infinite;
|
|
135
|
-
`),Gd))),qd=Zu("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Kd=Zu("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${or(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>Ie({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&ec(Wd||(Wd=Ud`
|
|
136
|
-
animation: ${0} 1.4s ease-in-out infinite;
|
|
137
|
-
`),Hd))),Jd=e.forwardRef((function(e,t){const r=Ku({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:i=!1,size:a=40,style:s,thickness:l=3.6,value:c=0,variant:u="indeterminate"}=r,d=Lr(r,Vd),p=Ie({},r,{color:o,disableShrink:i,size:a,thickness:l,value:c,variant:u}),f=(e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e;return vr({root:["root",r,`color${or(n)}`],svg:["svg"],circle:["circle",`circle${or(r)}`,o&&"circleDisableShrink"]},Bd,t)})(p),m={},h={},g={};if("determinate"===u){const e=2*Math.PI*((44-l)/2);m.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,h.transform="rotate(-90deg)"}return b(Yd,Ie({className:qi(f.root,n),style:Ie({width:a,height:a},h,s),ownerState:p,ref:t,role:"progressbar"},g,d,{children:b(qd,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:b(Kd,{className:f.circle,style:m,ownerState:p,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))}));"production"!==process.env.NODE_ENV&&(Jd.propTypes={classes:Pt.object,className:Pt.string,color:Pt.oneOfType([Pt.oneOf(["inherit","primary","secondary","error","info","success","warning"]),Pt.string]),disableShrink:Ae(Pt.bool,(e=>e.disableShrink&&e.variant&&"indeterminate"!==e.variant?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null)),size:Pt.oneOfType([Pt.number,Pt.string]),style:Pt.object,sx:Pt.oneOfType([Pt.arrayOf(Pt.oneOfType([Pt.func,Pt.object,Pt.bool])),Pt.func,Pt.object]),thickness:Pt.number,value:Pt.number,variant:Pt.oneOf(["determinate","indeterminate"])});var Xd=Jd;v().trim().required("Required"),v().trim().required("Required").matches(/^\d*\.?\d*$/,"Must be a Number");var Zd="success",Qd="error",ep="warning",tp="read",rp="noAccess",np=Hi({labelBreak:{marginBottom:"0.5rem"},contentBreak:{marginBottom:"1rem"},sectionBreak:{marginBottom:"1.5rem"},doubleSectionBreak:{marginBottom:"3rem"},rightSpacer1:{marginRight:"0.5rem"},rightSpacer2:{marginRight:"1rem"},leftSpacer1:{marginLeft:"0.5rem"},leftSpacer2:{marginLeft:"1rem"},buttonSpacing:{marginLeft:"0.5rem",marginRight:"0.5rem",marginBottom:"1rem"},leftRightPadding1:{paddingLeft:"0.5rem",paddingRight:"0.5rem"},leftRightPadding2:{paddingLeft:"1rem",paddingRight:"1rem"},topBottomPadding1:{paddingTop:"0.5rem",paddingBottom:"0.5rem"},topBottomPadding2:{paddingTop:"1rem",paddingBottom:"1rem"}},{classNamePrefix:"spacing",index:2}),op=w((function(e){return{boldText:{fontWeight:700},bolderText:{fontWeight:500},smallText:{fontSize:"0.7rem"},warningColor:{color:e.palette.warning.main},centerText:{textAlign:"center"}}}),{classNamePrefix:"font"}),ip=Hi({contentBox:{background:"white",borderRadius:"14px",marginBottom:"1rem",padding:"3rem"},limitWidth60rem:{maxWidth:"60rem",marginLeft:"auto",marginRight:"auto"},limitWidth50rem:{maxWidth:"50rem",marginLeft:"auto",marginRight:"auto"},limitWidth45rem:{maxWidth:"45rem",marginLeft:"auto",marginRight:"auto"},limitWidth40rem:{maxWidth:"40rem",marginLeft:"auto",marginRight:"auto"},limitWidth35rem:{maxWidth:"35rem",marginLeft:"auto",marginRight:"auto"},limitWidth30rem:{maxWidth:"30rem",marginLeft:"auto",marginRight:"auto"},limitWidth25rem:{maxWidth:"25rem",marginLeft:"auto",marginRight:"auto"},centeredText:{textAlign:"center"},startAlignedText:{textAlign:"start"},width20:{width:"20%"},width49:{width:"49%"},width50:{width:"50%"},width60:{width:"60%"},width100:{width:"100%"},flexCenter:{display:"flex",alignItems:"center",justifyContent:"center"},centerJustify:{justifyContent:"center"},leftJustify:{justifyContent:"left"},rightJustify:{justifyContent:"right"}},{classNamePrefix:"layout",index:2}),ap=Hi((function(e){return{submitButton:{borderRadius:"1.5rem",padding:"0.4rem 1rem",textTransform:"none"},containedText:{color:"white"},spinnerColour:{color:oa[500]}}})),sp=function(e){var r=e.loading,n=void 0!==r&&r,o=e.children,i=e.errors,a=void 0!==i&&i,s=e.type,l=void 0===s?"submit":s,c=e.onClick,u=e.disabled,d=void 0!==u&&u,p=e.variant,f=void 0===p?"outlined":p,m=e.styling,h=void 0===m?"":m,g=e.color,y=void 0===g?"primary":g,v=e.accessLevel,b=void 0===v?"":v,x=Re(e,["loading","children","errors","type","onClick","disabled","variant","styling","color","accessLevel"]),w=Oe(Oe({},np()),ap());if([rp,tp].includes(b))return null;var E=d;return d||!n&&!a||(E=!0),t.createElement(Dd,Oe({},x,{variant:f,color:y,type:l,className:w.submitButton+" "+("contained"===f&&w.containedText)+" "+h,disabled:E,onClick:c}),o,n?t.createElement(Xd,{className:w.leftSpacer1+" "+w.spinnerColour,size:"1.1rem",thickness:6}):"")},lp=function(e){var r=e.children,n=e.styling,o=void 0===n?null:n,i=op();return t.createElement(E,{variant:"h6",className:i.bolderText+" "+(o||"")},r)},cp=function(e){var r=e.limitWidth,n=void 0!==r&&r,o=e.children,i=e.styling,a=Oe(Oe({},np()),ip());return t.createElement(k,{boxShadow:3,className:a.contentBox+" "+(i||"")},t.createElement(k,{className:a.centeredText+" "+(n?a.limitWidth50rem:"")},o))},up=function(e){var r=e.text,n=void 0===r?"Loading data...":r,o=e.styling,i=Oe(Oe({},np()),ip());return t.createElement(k,{className:i.flexCenter+" "+(o||"")},t.createElement(E,{variant:"body2",color:"textSecondary",className:i.rightSpacer1},n),t.createElement(S,{size:"1.5rem"}))},dp=N(C({root:{"&:hover td":{backgroundColor:"rgba(0, 0, 0, 0.06)"}}}))(O),pp=N(C({root:{"&:nth-of-type(even) td":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&:hover td":{backgroundColor:"rgba(0, 0, 0, 0.06)"}}}))(O),fp=w((function(e){return{root:{borderBottom:"none",paddingTop:"8px",paddingBottom:"8px","&:first-child":{borderTopLeftRadius:"14px",borderBottomLeftRadius:"14px"},"&:last-child":{borderTopRightRadius:"14px",borderBottomRightRadius:"14px"}},head:function(t){var r=t.background,n=t.border;return{backgroundColor:r||"HSLA(204, 58.3%, 81.2%, 0.1)",borderTop:"1px solid "+(n||"HSLA(204, 58.3%, 81.2%, 0.3)"),borderBottom:"1px solid "+(n||"HSLA(204, 58.3%, 81.2%, 0.3)"),color:t.text||e.palette.text.primary,fontWeight:500,"&:first-child":{borderLeft:"1px solid "+(n||"HSLA(204, 58.3%, 81.2%, 0.3)")},"&:last-child":{borderRight:"1px solid "+(n||"HSLA(204, 58.3%, 81.2%, 0.3)")}}}}})),mp=function(e){var r=e.children,n=e.align,o=void 0===n?"centerJustify":n,i=e.headerColours,a=Re(e,["children","align","headerColours"]),s=Oe(Oe({},ip()),fp(Oe({},i||{})));return t.createElement(P,Oe({},a,{classes:{root:s.root,head:s.head}}),t.createElement("div",{className:s.flexCenter+" "+s[o]},r))},hp=function(e){var r=e.rowBorderSeparation,n=void 0!==r&&r,o=e.children,i=Re(e,["rowBorderSeparation","children"]);return n?t.createElement(dp,Oe({},i),o):t.createElement(pp,Oe({},i),o)},gp=function(e){var r=e.colSpan,n=e.children,o=yp();return t.createElement(hp,null,t.createElement(mp,{className:o.adjustedCellPadding,colSpan:r},n))},yp=w({tableStyles:{borderCollapse:"separate",borderBottom:"1px solid rgb(224, 224, 224)"},pointer:{cursor:"pointer"},bottomBorder:{borderBottom:"1px solid rgba(224, 224, 224, 1)"},noShading:{backgroundColor:"transparent !important"},adjustedCellPadding:{paddingTop:"11px",paddingBottom:"11px"}}),vp=f((function(e){var r=e.headers,n=e.headerCellAlignment,o=void 0===n?[]:n,i=e.headerColours;return r?t.createElement(R,null,t.createElement(O,null,r.map((function(e,r){return t.createElement(mp,{align:o[r]||"centerJustify",key:"header-cell-"+r,headerColours:i},e)})))):null})),bp=f((function(e){var r=e.rowBorderSeparation,n=void 0!==r&&r,o=e.headers,i=e.rows,a=e.headerCellAlignment,s=void 0===a?[]:a,l=e.rowCellAlignment,c=void 0===l?[]:l,u=e.styling,d=e.headerColours,p=e.paginate,f=void 0!==p&&p,v=e.itemsPerPage,b=void 0===v?30:v,x=Oe(Oe(Oe({},ip()),np()),yp()),w=m(1),E=w[0],k=w[1],S=h((function(){return!!(f&&((null==i?void 0:i.length)||0)>b)}),[b,f,i]),N=m(S?i.slice(0,b):i),C=N[0],O=N[1],R=g((function(e,t){k(t)}),[]);return y((function(){O(S?i.slice(b*(E-1),b*E):i)}),[S,b,E,i]),t.createElement(t.Fragment,null,t.createElement(T,{className:x.tableStyles+" "+(S?x.contentBreak:"")+" "+(u||"")},t.createElement(vp,{headers:o,headerCellAlignment:s,headerColours:d}),t.createElement(_,null,C?C.length?C.map((function(e,r){var o=!!e.onClick;return t.createElement(hp,{rowBorderSeparation:n,className:o?x.pointer:void 0,key:"row-"+r,onClick:o?e.onClick:void 0},e.row.map((function(e,o){return t.createElement(mp,{align:c[o]||"centerJustify",className:n&&C.length!==r+1?x.bottomBorder:void 0,key:"row-"+r+"-cell-"+o},e)})))})):t.createElement(gp,{colSpan:(null==o?void 0:o.length)||0},"Table is empty"):t.createElement(gp,{colSpan:(null==o?void 0:o.length)||0},t.createElement(up,null)))),S?t.createElement(ee,{className:x.flexCenter,count:Math.ceil(i.length/b),page:E,onChange:R,shape:"rounded",showFirstButton:!0,showLastButton:!0}):null)})),xp=w((function(e){return{logoContainer:{width:"3rem",height:"3rem",display:"flex",justifyContent:"center",alignItems:"center"},logo:{width:"100%",height:"100%","& > div":{width:"100%",height:"100%"},"& > svg":{width:"100%",height:"100%"}},logoInBreadcrumb:{width:"2rem",height:"2rem",margin:"0.125rem 0 0.125rem 0.313rem"},logoSpacing:{marginRight:e.spacing(1)},flexItemsCenter:{display:"flex",alignItems:"center"},nonPrimaryBreadcrumbOffset:{marginLeft:"2.5rem"},BreadcrumbsContainer:{height:"2.25rem",marginLeft:"0.875rem",marginRight:"1.5rem"},primaryBreadcrumbItem:function(t){var r=t.primary;return{backgroundColor:(null==r?void 0:r.background)||e.palette.common.white,color:(null==r?void 0:r.color)||e.palette.text.primary,borderRadius:"2rem",zIndex:3,height:"100%",display:"flex",alignItems:"center"}},secondaryBreadcrumbItem:function(t){var r=t.secondary;return{height:"2.25rem",backgroundColor:(null==r?void 0:r.background)||"#D7D4E4",borderRadius:"2rem",zIndex:2,marginLeft:"-2rem",color:(null==r?void 0:r.color)||e.palette.text.primary}},tertiaryBreadcrumbItem:function(t){var r=t.tertiary;return{height:"2.25rem",backgroundColor:(null==r?void 0:r.background)||"#D7D4E4",borderRadius:"2rem",zIndex:1,marginLeft:"-2rem",color:(null==r?void 0:r.color)||e.palette.common.white}},breadCrumbShadow:{boxShadow:e.shadows[2]},breadcrumbRightMargin:{marginRight:"1rem"},breadcrumbTextOverflow:{display:"block",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"12rem"},boldText:{fontWeight:500},activeBreadcrumb:function(t){var r=t.tertiary;return{backgroundColor:(null==r?void 0:r.background)||"#D7D4E4",color:(null==r?void 0:r.color)||e.palette.common.white}},noWrap:{whiteSpace:"nowrap"},fullBorderRadius:{borderRadius:"100%"}}})),wp=function(e){var r=e.logo,n=e.content,o=e.colors,i=xp(Oe({},o||{})),a=n.first,s=void 0===a?null:a,l=n.second,c=void 0===l?null:l,u=n.third,d=void 0===u?null:u;return t.createElement(k,{className:i.BreadcrumbsContainer+" "+i.flexItemsCenter},t.createElement(k,{className:(s?i.primaryBreadcrumbItem+" "+i.breadCrumbShadow:"")+" "+i.flexItemsCenter},t.createElement(A,{component:re,to:"/",className:i.logoSpacing},t.createElement(k,{className:i.logoContainer+" \n "+(s?i.logoInBreadcrumb:"")},t.createElement(I,{className:i.logo+" "+i.fullBorderRadius},r))),s&&t.createElement(E,{color:"textPrimary",className:i.boldText+" "+i.noWrap+" "+i.primaryBreadcrumbItem},t.createElement(A,{underline:"none",component:re,to:s.link,color:"inherit",className:i.breadcrumbRightMargin+" "+i.breadcrumbTextOverflow},s.name))),c&&t.createElement(k,{className:i.flexItemsCenter+" "+i.secondaryBreadcrumbItem+" "+i.breadCrumbShadow+" "+(d?"":i.activeBreadcrumb)},t.createElement(E,{color:"inherit",className:i.boldText+" "+i.noWrap},t.createElement(A,{component:re,underline:"none",to:c.link,color:"inherit",className:i.nonPrimaryBreadcrumbOffset+" "+i.breadcrumbRightMargin+" "+i.breadcrumbTextOverflow},c.name))),d&&t.createElement(k,{className:i.flexItemsCenter+" "+i.tertiaryBreadcrumbItem+" "+i.breadCrumbShadow},t.createElement(E,{color:"inherit",className:i.boldText+" "+i.noWrap},t.createElement(A,{component:re,underline:"none",to:d.link,color:"inherit",className:i.nonPrimaryBreadcrumbOffset+" "+i.breadcrumbRightMargin+" "+i.breadcrumbTextOverflow},d.name))))},Ep=w((function(e){return{container:{marginRight:e.spacing(-1.5),marginLeft:e.spacing(-1.5)},svgContainer:{marginLeft:"auto",marginRight:"auto"},button:{display:"block",textDecoration:"none",borderRadius:"14px",height:"100%",width:"100%",textAlign:"center"},orgLabel:{padding:e.spacing(1),paddingTop:0}}})),kp=function(e){var r=e.entities,n=e.icon,o=e.loadingMessage,i=void 0===o?"Loading list...":o,a=e.emptyMessage,s=void 0===a?"List is empty":a,l=e.onClick,c=Oe(Oe(Oe({},Ep()),np()),op());return t.createElement(k,{className:c.container},r?r.length?t.createElement($,{container:!0,spacing:3},r.map((function(e,r){return t.createElement($,{key:e.name+"-"+r,item:!0,xs:4,md:3},t.createElement(j,Oe({className:c.button,key:e.name},l?{onClick:function(){return l(e)}}:{component:re,to:e.link}),t.createElement(k,{className:c.svgContainer+" "+c.labelBreak},n(e)),t.createElement(E,{className:c.orgLabel,variant:"body1"},e.name)))}))):t.createElement(E,{className:c.centerText,variant:"body2",color:"textSecondary"},s):t.createElement(up,{text:i}))},Sp=function(e){var r=e.text,n=void 0===r?"Something went wrong":r,o=Oe(Oe({},np()),ip());return t.createElement(k,{className:o.flexCenter},t.createElement(ie,{fontSize:"medium",className:o.rightSpacer1,color:"error"}),t.createElement(E,{variant:"body2",color:"textSecondary"},n))},Np=w((function(e){return{listIcon:{minWidth:"auto",paddingRight:"0.25rem"},mainIconSize:{fontSize:"1rem"},mainIconMarginAdjustment:{marginTop:"3px"},textOverflowElipsis:{overflow:"hidden",textOverflow:"ellipsis"},mainListItem:function(t){return{padding:"8px 24px 8px 16px",alignItems:"flex-start",backgroundColor:t.mainBackground||e.palette.common.white,color:t.mainText||e.palette.text.primary,borderRadius:e.spacing(.6),"&:hover":{backgroundColor:t.mainHover||e.palette.action.hover}}},mainIconColor:function(t){return{color:t.mainIcon||e.palette.grey[500]}},activeMainIconColor:function(e){return{color:e.mainActiveText||"#8FC1FF"}},subListItem:function(t){return{backgroundColor:t.subItemBackground||"#FFFFFF",color:t.subItemText||e.palette.text.secondary,borderRadius:"8px","&:hover":{backgroundColor:t.subItemHover||"rgba(143,193,255,0.3)"}}},activeSubListItem:function(e){return{backgroundColor:e.subItemActiveBackground||"#FFFFFF",color:e.subItemActiveText||"#8FC1FF","&:hover":{backgroundColor:e.subItemActiveHover||"rgba(143,193,255,0.3)"}}},subItemBorder:{borderLeft:"1px solid "+e.palette.grey[600],marginLeft:"1px",marginRight:"1px",width:"100%",height:"100%"},relativeWrapper:{position:"relative"},subItemBorderMask:function(e){return{borderLeft:"3px solid "+(e.subItemActiveText||"#8FC1FF"),borderRadius:"1px",position:"absolute",top:"50%",bottom:"50%",transition:"all 0.2s ease-in-out"}},activeSubItemBorder:{top:"0 !important",bottom:"0 !important"},subItemWrapper:{display:"flex",marginLeft:"13px",marginRight:"16px"},noYMargin:{marginTop:"unset",marginBottom:"unset"}}})),Cp=function(e,t){return!!e.split("/").includes(t)},Op=function(e){var r,n,o=e.mainItem,i=e.subItems,a=e.config,s=e.Icon,l=Oe(Oe(Oe({},op()),np()),Np(Oe(Oe({},(null===(r=a.secondary)||void 0===r?void 0:r.mainItemColors)||{}),(null===(n=a.secondary)||void 0===n?void 0:n.subItemColors)||{}))),c=ne(),u=Cp(c.pathname,o.id),d=m(!!(null==i?void 0:i.length)&&u),p=d[0],f=d[1];return t.createElement(t.Fragment,null,t.createElement(M,{button:!0,dense:!0,className:l.mainListItem,component:re,to:o.route},t.createElement(D,{className:l.listIcon+" "+l.mainIconMarginAdjustment+" "+l.rightSpacer1},t.createElement(s,{id:"second-nav-item",styling:l.mainIconSize+" "+l.mainIconColor+" "+(u?l.activeMainIconColor:"")})),t.createElement(B,{disableTypography:!0,className:l.noYMargin,primary:t.createElement(E,{variant:"body2",className:l.bolderText+" "+l.textOverflowElipsis,color:"inherit"},o.name,(null==i?void 0:i.length)?t.createElement(E,{component:"span",variant:"body2",className:l.bolderText,color:"inherit"}," ","(",i.length,")"):null)}),(null==i?void 0:i.length)?t.createElement(D,{className:l.listIcon,onClick:function(e){e.preventDefault(),e.stopPropagation(),f((function(e){return!e}))}},p?t.createElement(ae,null):t.createElement(se,null)):null),(null==i?void 0:i.length)?t.createElement(V,{in:p,timeout:"auto",unmountOnExit:!0},t.createElement(L,{component:"div",disablePadding:!0},i.map((function(e){var r=e.name,n=e.route,o=e.id;return t.createElement(k,{key:o,className:l.subItemWrapper},t.createElement(k,{className:l.relativeWrapper+" "+l.rightSpacer1},t.createElement(k,{className:l.subItemBorder+" "}),t.createElement(k,{className:l.subItemBorderMask+" "+(Cp(c.pathname,o)?l.activeSubItemBorder:"")+" "})),t.createElement(M,{key:n,component:re,to:n,button:!0,dense:!0,className:l.subListItem+" "+(Cp(c.pathname,o)?l.activeSubListItem:"")},t.createElement(B,{disableTypography:!0,primary:t.createElement(E,{variant:"body2",className:l.textOverflowElipsis,color:"inherit"},r)})))})))):null)};function Rp(e){return e.sort((function(e,t){return+t.startDate.split("T")[0].replaceAll("-","")-+e.startDate.split("T")[0].replaceAll("-","")}))}var Tp=function(e,t,r){return r?(e&&ue(e)?e:new Date(0)).getTime()===(t&&ue(t)?t:new Date(0)).getTime():e===t},_p=w((function(e){return{secondaryNavWrapper:{height:"100%",width:"300px",background:"white",overflowY:"auto",overflowX:"hidden",borderTopRightRadius:"14px",borderBottomRightRadius:"14px",marginLeft:"-16px",paddingLeft:"16px",border:"1px solid "+e.palette.grey[300],boxShadow:"0 2px 4px 0 rgba(0, 0, 0, 0.3)",boxSizing:"border-box"},titleWrapper:{marginTop:"24px",display:"flex",alignItems:"center",paddingLeft:"16px",paddingRight:"16px"},title:{fontSize:"18px",fontWeight:500,color:function(e){return e.titleColor||"#8FC1FF"}},titleIcons:{color:function(e){return e.titleIconColor||"#8FC1FF"}},closeButton:{marginLeft:"auto"},archivedSeparator:{paddingLeft:"8px",color:e.palette.grey[500]},archivedBorder:{marginTop:"3rem",border:"1px solid "+e.palette.grey[200],width:"33%",marginLeft:"8px"},listWrapper:{marginLeft:e.spacing(1),marginRight:e.spacing(1)}}})),Pp=function(e){var r,n,o,i,a=e.secondaryNavItems,s=e.primaryNavItems,l=e.expandedOptions,c=e.setExpandedOptions,u=e.config,d={titleColor:null===(r=u.secondary)||void 0===r?void 0:r.titleColor,titleIconColor:null===(n=u.secondary)||void 0===n?void 0:n.titleIconColor},p=Oe(Oe(Oe({},np()),op()),_p(d)),f=oe(),m=a[l.view];if(!m)return null;var h=s.find((function(e){return e.field===l.view})).Icon;return t.createElement(k,{className:p.secondaryNavWrapper},t.createElement(k,{className:p.titleWrapper},t.createElement(E,{className:p.rightSpacer1+" "+p.title},l.view),m.button?t.createElement(z,{className:p.titleIcons,size:"small",type:"button",onClick:function(){return f.push(m.button.url)}},t.createElement(pe,null)):null,t.createElement(z,{className:p.titleIcons+" "+p.closeButton,size:"small",type:"button",onClick:function(){return c({view:"",expanded:!1})}},(null===(o=u.secondary)||void 0===o?void 0:o.closeButtonSvg)||t.createElement(de,null))),t.createElement(L,{className:p.listWrapper,component:"div"},Rp(m.items).map((function(e){return t.createElement(Op,Oe({key:e.mainItem.route},e,{config:u,Icon:h}))})),(null===(i=m.archivedItems)||void 0===i?void 0:i.length)?t.createElement(t.Fragment,null,t.createElement(k,{className:p.archivedBorder+" "+p.contentBreak}),t.createElement(E,{variant:"body2",className:p.archivedSeparator+" "+p.bolderText},"Archived ",l.view),Rp(m.archivedItems).map((function(e){return t.createElement(Op,Oe({key:e.mainItem.route},e,{config:u,Icon:h}))}))):null))},Ap=w((function(e){return{primaryNavContainer:function(e){return{background:e.background||"linear-gradient(to bottom, #253a68 40%, #73c4ca)",border:"2px solid "+(e.activeBorderColor||"#8FC1FF"),borderLeft:"none",borderTopRightRadius:"14px",borderBottomRightRadius:"14px",minWidth:"4.5rem",overflowY:"auto",overflowX:"hidden"}},listWrapper:{display:"flex",flexDirection:"column",paddingTop:0},itemWrapper:{display:"flex",flexDirection:"column",padding:"0.75rem 0.5rem 0.5rem 0.5rem"},itemBorder:{borderRight:function(e){return"6px solid "+(e.activeBorderColor||"#8FC1FF")},position:"absolute",bottom:"50%",top:"50%",transition:"all 0.2s ease-in-out",right:"-3px"},activeBorder:{top:"15%",bottom:"15%"},iconWrapper:{minWidth:0,marginBottom:"4px",position:"relative"},itemName:{fontSize:"0.7rem",maxWidth:"3.5rem",textAlign:"center",textOverflow:"ellipsis",overflow:"hidden"},textColour:{color:function(e){return e.text||"#FFFFFF"}},activeTextColour:{color:function(e){return e.activeText||"#8FC1FF"}},lastItem:{marginTop:"auto"}}})),Ip=function(e){var r=e.expandedOptions,n=e.setExpandedOptions,o=e.navigationLinks,i=e.config,a=ne(),s=Ap(Oe({},i.primary||{})),l=function(e,t){return""===r.view?a.pathname===t||!(e===i.rootRouteName||!a.pathname.startsWith(t)):r.view===e};return t.createElement(L,{className:s.primaryNavContainer+" "+s.listWrapper},o.map((function(e,r,o){var a;return t.createElement(M,Oe({key:e.field,button:!0,className:s.itemWrapper+" "+s.textColour+" "+((null===(a=i.primary)||void 0===a?void 0:a.moveLastItemToBottom)&&r===o.length-1?s.lastItem:"")},e.hasSecondary?{}:{component:re,to:e.path},{onClick:function(){n({view:e.field,expanded:!!e.hasSecondary})}}),t.createElement(D,{className:s.iconWrapper},t.createElement(e.Icon,{styling:s.textColour+" "+(l(e.field,e.path)?s.activeTextColour:"")})),t.createElement(E,{variant:"caption",className:s.itemName+" "+s.textColour+" "+(l(e.field,e.path)?s.activeTextColour:"")},e.field),t.createElement(k,{className:s.itemBorder+" "+(l(e.field,e.path)?s.activeBorder:"")}))})))},$p=w({leftNavContainer:{height:"100%",display:"flex",position:"relative",width:"max-content"}}),jp=function(e){var r=e.primaryNavItems,n=e.secondaryNavItems,o=e.config,i=m({view:"",expanded:!1}),a=i[0],s=i[1],l=$p(),c=ne(),u=r.reduce((function(e,t){return t.hasSecondary?Pe(Pe([],e,!0),[t.field],!1):e}),[]);return y((function(){s((function(e){return u.includes(e.view)&&!0===e.expanded?e:{view:"",expanded:!1}}))}),[c.pathname]),t.createElement(k,{component:"nav",className:l.leftNavContainer},t.createElement(Ip,{expandedOptions:a,setExpandedOptions:s,navigationLinks:r,config:o}),a.expanded&&t.createElement(Pp,{secondaryNavItems:n,primaryNavItems:r,expandedOptions:a,setExpandedOptions:s,config:o}))},Mp=w((function(e){return{remainingHeightBox:{position:"absolute",top:function(e){var t;return null!==(t=e.topOffset)&&void 0!==t?t:"4rem"},bottom:0,left:0,right:0,display:"flex"},fullHeightFlexbox:{display:"flex",height:"100%"},relativeContainer:{position:"relative"},scrollWrapper:{overflow:"auto"},componentWrapper:{padding:e.spacing(2),paddingBottom:e.spacing(2),position:"relative"}}})),Dp=function(e){var r=e.sideNavigation,n=e.children,o=e.desktopWidth,i=e.topOffset,a=Mp({topOffset:i});return t.createElement(k,{className:a.remainingHeightBox},r?t.createElement(k,{className:a.fullHeightFlexbox+" "+a.relativeContainer},r):null,t.createElement(F,{disableGutters:!0,maxWidth:!1,className:a.scrollWrapper},t.createElement(F,{disableGutters:!0,maxWidth:o?"xl":"lg",className:a.componentWrapper},n)))},Bp=function(e,t,r){void 0===r&&(r=250);var n=g(e,t);y((function(){var e=setTimeout(n,r);return function(){return clearTimeout(e)}}),[n,r])},Vp=function(e,t){var r=c();y((function(){r.current=e})),y((function(){if(null!==t){var e=setInterval((function(){r.current&&r.current()}),t);return function(){return clearInterval(e)}}}),[t])};function Lp(e,t){var r=c(t);y((function(){var n=Object.keys(Oe(Oe({},r.current),t)),o={};n.forEach((function(e){r.current[e]!==t[e]&&(o[e]={from:r.current[e],to:t[e],changedKeys:t[e]&&"object"==typeof t[e]?Object.keys(r.current[e]).map((function(n){return r.current[e][n]===t[e][n]?"":n})).filter(Boolean):void 0,isDeepEqual:me(r.current[e],t[e])})})),Object.keys(o).length&&console.log("[why-did-you-update]",e,{changes:o,props:{from:r.current,to:t}}),r.current=t}),Object.values(t))}var zp=w((function(e){return{divider:{background:e.palette.primary.main,height:"0.2rem"},letterHeader:{cursor:"default",color:e.palette.primary.main,marginTop:"1rem"},listItem:{borderRadius:"14px",border:"1px solid "+e.palette.grey[300],marginBottom:"0.5rem",paddingLeft:"24px",boxShadow:e.shadows[1]},topMargin:{marginTop:e.spacing(2),display:"block"}}})),Fp=function(e){var r=e.array,n=e.sortFn,o=e.sortKey,i=void 0===o?"name":o,a=e.buttonClick,s=e.linkTo,l=e.ItemTemplate,c=e.arrayKey,u=void 0===c?"id":c,d=e.loadingMessage,p=void 0===d?"Loading list...":d,f=e.emptyMessage,m=void 0===f?"List is empty":f,h=e.alphabetisedHeader,g=void 0===h||h,y=Oe(Oe(Oe({},zp()),np()),ip());if(void 0===r)return t.createElement(up,{styling:y.topMargin,text:p});if(!(null==r?void 0:r.length))return t.createElement(E,{className:y.topMargin,align:"center",variant:"body2",color:"textSecondary"},m);var v=n?Pe([],r,!0).sort(n):r,b="";return t.createElement(L,{className:y.limitWidth50rem},v.map((function(e,r){var n,o=!1;if(g){var c=((null===(n=e[i])||void 0===n?void 0:n[0])||"???").toLowerCase();c!==b&&(b=c,o=!0)}return t.createElement(t.Fragment,{key:e[u]||"alphabetical-list-"+r},g&&o?t.createElement(t.Fragment,null,t.createElement(E,{className:""+y.letterHeader,align:"left"},b.toUpperCase()),t.createElement(W,{className:y.contentBreak+" "+y.divider})):null,t.createElement(M,Oe({className:y.listItem,alignItems:"flex-start",button:!(!a&&!s)||void 0,onClick:a?function(){return a(e)}:void 0},s&&!a?{component:re,to:s(e)}:{}),t.createElement(l,{item:e})))})))},Wp=w((function(e){return{searchBox:{display:"flex",alignContent:"center",alignItems:"center",padding:"8px",border:"2px solid "+e.palette.grey[300],borderRadius:"14px"},searchField:{borderRadius:"14px",width:"100%",background:function(e){return e.background||"RGBA(179, 213, 235, 0.1)"},height:"46px",paddingLeft:"24px",color:e.palette.grey[600]},searchIcon:{color:e.palette.grey[600]}}})),Up=function(e){var r=e.array,n=e.sortFn,o=e.sortKey,i=void 0===o?"name":o,a=e.buttonClick,s=e.linkTo,l=e.ItemTemplate,c=e.arrayKey,u=void 0===c?"id":c,d=e.loadingMessage,p=void 0===d?"Loading list...":d,f=e.emptyMessage,h=void 0===f?"List is empty":f,g=e.inputBackgroundColor,v=e.placeholder,b=e.disabledSearch,x=e.delay,w=void 0===x?500:x,E=e.minQueryLength,S=void 0===E?3:E,N=e.handleOnChange,C=e.searchKeys,O=void 0===C?["name"]:C,R=e.alphabetisedHeader,T=void 0===R||R,_=e.initialSearchQuery,P=void 0===_?"":_,A=Oe(Oe(Oe({},np()),ip()),Wp({background:g})),I=m(P),$=I[0],j=I[1],M=m(!1),D=M[0],B=M[1],V=m(r),L=V[0],z=V[1];return Bp((function(){!D&&$.length>=S&&(N?N($):z(null==r?void 0:r.filter((function(e){var t=O.some((function(t){var r;return null===(r=e[t])||void 0===r?void 0:r.toLowerCase().includes($.toLowerCase())}));return t}))))}),[$],w),y((function(){z(r)}),[r]),t.createElement(t.Fragment,null,t.createElement(k,{className:A.searchBox+" "+A.limitWidth50rem},t.createElement(U,{disabled:b,type:"text",value:$,placeholder:v||"Enter to search",onChange:function(e){D&&B(!1),j(e.target.value)},className:A.searchField,endAdornment:t.createElement(G,{position:"end",className:A.rightSpacer2},t.createElement(fe,{className:A.searchIcon}))})),null!==r&&t.createElement(Fp,{array:L,sortFn:n,sortKey:i,buttonClick:a,linkTo:s,ItemTemplate:l,arrayKey:u,loadingMessage:p,emptyMessage:h,alphabetisedHeader:T}))},Gp=w((function(e){return{inputField:function(t){var r=t.size;return Oe({borderRadius:"14px"},"small"===r?e.typography.body2:{})},labelStyles:function(t){var r=t.size;return Oe({},"small"===r?Oe(Oe({transform:"translate(14px, 9px) scale(1) !important"},e.typography.body2),{"&.MuiInputLabel-outlined.MuiInputLabel-shrink":{transform:"translate(15px, -9px) scale(0.75) !important"}}):{})}}})),Hp=function(e){var r=e.size,n=void 0===r?"small":r,o=e.styling,i=e.numberField,a=e.inputProps,s=void 0===a?{}:a,l=e.InputProps,c=void 0===l?{}:l,u=e.accessLevel,d=e.disabled,p=e.fixedDecimalScale,f=Re(e,["size","styling","numberField","inputProps","InputProps","accessLevel","disabled","fixedDecimalScale"]),m=Gp({size:n});if(u===rp)return null;var h=d;u===tp&&(h=!0);var g=Oe({},i&&{fixedDecimalScale:!!p});return t.createElement(H,Oe({className:o||"",disabled:h},f,{inputProps:Oe(Oe({},s),g),InputProps:Oe(Oe({},c),{className:m.inputField,inputComponent:i?Yp:void 0}),InputLabelProps:{className:m.labelStyles},variant:"outlined",size:n}))},Yp=function(e){var r=e.inputRef,n=e.onChange,o=Re(e,["inputRef","onChange"]);return t.createElement(he,Oe({},o,{getInputRef:r,onValueChange:function(t){n({target:{name:e.name||"",value:t.value}})},thousandSeparator:!0,decimalScale:2,isNumericString:!0}))},qp=w((function(e){return{listItem:function(t){var r=t.background,n=t.size;return Oe(Oe({overflow:"auto",scrollbarWidth:"thin"},"small"===n?e.typography.body2:{}),{"&:hover":{backgroundColor:r+" !important"}})},inputStyles:function(t){var r=t.background,n=t.size;return Oe(Oe({borderRadius:"14px !important"},"small"===n?Oe({paddingTop:"9.5px",paddingBottom:"8.5px"},e.typography.body2):{}),{"&:focus":{backgroundColor:r}})},selectedListItem:function(e){return{"&:focus":{background:e.background+" !important"}}}}})),Kp=function(e){var r=e.selectOptions,n=e.background,o=void 0===n?"#EFEDFF":n,i=e.size,a=void 0===i?"small":i,s=e.styling,l=e.disabled,c=e.accessLevel,u=Re(e,["selectOptions","background","size","styling","disabled","accessLevel"]),d=qp({background:o,size:a});if(c===rp)return null;var p=l;return c===tp&&(p=!0),t.createElement(Hp,Oe({className:s||""},u,{disabled:p,size:a,SelectProps:{inputProps:{className:d.inputStyles}},select:!0}),r.map((function(e){var r;return t.createElement(Y,{key:e.value,value:e.value,disabled:null!==(r=null==e?void 0:e.disabled)&&void 0!==r&&r,className:d.listItem,classes:{selected:d.selectedListItem}},e.description)})))},Jp=function(e){var r=e.styling,n=e.format,o=void 0===n?"dd MMM yyyy":n,i=e.minDate,a=void 0===i?new Date("1856-09-25"):i,s=e.accessLevel,l=e.disabled,c=Re(e,["styling","format","minDate","accessLevel","disabled"]);if(s===rp)return null;var u=l;return s===tp&&(u=!0),t.createElement(ge,{utils:be},t.createElement(ye,Oe({className:r||""},c,{disabled:u,inputVariant:"outlined",autoOk:!0,format:o,minDate:a,TextFieldComponent:Hp})))},Xp=function(e){var r=e.styling,n=e.format,o=void 0===n?"dd/MM/yyyy":n,i=e.minDate,a=void 0===i?new Date("1856-09-25"):i,s=e.accessLevel,l=e.disabled,c=Re(e,["styling","format","minDate","accessLevel","disabled"]);if(s===rp)return null;var u=l;return s===tp&&(u=!0),t.createElement(ge,{utils:be},t.createElement(ve,Oe({className:r||""},c,{disabled:u,inputVariant:"outlined",autoOk:!0,allowKeyboardControl:!0,format:o,minDate:a,TextFieldComponent:Hp})))},Zp=w((function(e){return{confirmWrapper:{display:"inline-block"},confirmContainer:{display:"flex",alignItems:"center"},whiteText:{color:e.palette.common.white}}})),Qp=function(e){var r=e.children,n=e.onClick,o=e.styling,i=e.disabled,a=void 0!==i&&i,s=e.variant,l=void 0===s?"outlined":s;e.color;var c=e.accessLevel,u=void 0===c?"":c,d=Re(e,["children","onClick","styling","disabled","variant","color","accessLevel"]),p=Oe(Oe({},np()),Zp()),f=m(!1),h=f[0],g=f[1],v=m(!1),b=v[0],x=v[1];return Vp((function(){return g(!1)}),!h||b?null:4500),y((function(){x(d.loading),g(d.loading)}),[d.loading]),[rp,tp].includes(u)?null:h?t.createElement(k,{className:p.confirmWrapper},t.createElement(k,{className:p.confirmContainer},t.createElement(E,{className:p.rightSpacer1,variant:"body1"},"Are you sure?"),t.createElement(sp,Oe({},d,{type:"button",onClick:function(e){x(!0),n(e)},variant:"contained",styling:p.whiteText,disabled:a}),"Confirm",d.loading?"ing":""))):t.createElement(sp,{type:"button",variant:l,disabled:a,styling:o,onClick:function(){return g(!0)}},r)},ef=function(e,t){var r=e.toString().length;return r?r+(t?3:1)+Math.floor(r/3)/3+"ch":"6ch"},tf=w((function(e){return{inputBase:function(e){return{height:"unset",padding:0,textAlign:e.textAlign||"center"}},input:function(e){return{textAlign:e.textAlign||"center",marginRight:"0.4rem",marginLeft:"0.4rem"}},startAdornment:{color:e.palette.text.secondary},modifiedUnderline:{"&:not(.Mui-disabled):before":{borderBottom:"none",transition:"none"},"&:hover:not(.Mui-disabled):before":{borderBottom:"1px solid "+e.palette.grey[500]+" !important"}},body2Text:Oe({},e.typography.body2),dateFieldWidth:{width:"8ch"},fullDateWidth:{width:"11ch"},justifyStart:{justifyContent:"flex-start"},justifyCenter:{justifyContent:"center"},justifyEnd:{justifyContent:"flex-end"},totalContainer:{display:"flex",alignItems:"center",cursor:"default"},selectFocusBackground:{"&:focus":{backgroundColor:"unset"}}}})),rf=function(e){var r=e.error,n=e.disabled,o=e.value,i=e.onBlur,a=e.onChange,s=e.prefix,l=e.suffix,c=e.numberField,u=void 0!==c&&c,d=e.textAlign,p=e.fixedDecimalScale,f=tf({textAlign:d}),m=Oe({},u&&{fixedDecimalScale:!!p});return"string"==typeof o||"number"==typeof o?t.createElement(H,{error:!!r,inputProps:Oe({className:f.inputBase,style:{width:ef(o,!!p)}},m),value:o,onChange:a,onBlur:i,InputProps:{startAdornment:s?t.createElement(G,{position:"end",className:f.startAdornment},s):null,endAdornment:l?t.createElement(G,{position:"start",className:f.startAdornment},l):null,inputComponent:u?Yp:void 0,className:f.body2Text+" "+f.modifiedUnderline,classes:{input:f.input}},helperText:r||void 0,disabled:n}):t.createElement(E,{variant:"body2"},"Incorrect value type")},nf=function(e){return t.createElement(rf,Oe({},Oe(Oe({},e),{numberField:!0})))},of=function(e){return t.createElement(rf,Oe({},Oe(Oe({},e),{numberField:!0,fixedDecimalScale:!0})))},af=N(C({root:{padding:"3px"}}))(q),sf=function(e){var r=e.disabled,n=e.fullDate,o=void 0!==n&&n,i=e.value,a=e.error,s=e.onChange,l=e.onBlur,c=e.textAlign,u=tf({textAlign:c});return t.createElement(ge,{utils:be},t.createElement(ye,{disabled:r,views:o?void 0:["year","month"],value:i,autoOk:!0,format:o?"dd MMM yyyy":"MMM yyyy",InputProps:{className:u.body2Text+" "+u.modifiedUnderline},inputProps:{className:u.inputBase+" "+(o?u.fullDateWidth:u.dateFieldWidth),classes:{input:u.input}},error:!!a,helperText:a||void 0,onChange:s,onBlur:l}))},lf=function(e){return t.createElement(sf,Oe({},e))},cf=function(e){return t.createElement(sf,Oe({},e,{fullDate:!0}))},uf=function(e){var r=e.value,n=e.disabled,o=e.onChange;return t.createElement(q,{disabled:n,checked:r,onChange:o,color:"primary",size:"small"})},df=function(e){return t.createElement(uf,Oe({},e))},pf=function(e){var r=e.text,n=e.numberField,o=void 0!==n&&n,i=e.prefix,a=void 0===i?null:i,s=e.suffix,l=void 0===s?null:s,c=e.textAlign,u=e.fixedDecimalScale,d=tf({});return t.createElement(k,{className:d.totalContainer+" "+d.body2Text+" "+("left"===c?d.justifyStart:"right"===c?d.justifyEnd:d.justifyCenter)},a&&a,t.createElement(k,{className:d.body2Text},o?t.createElement(he,{value:r,displayType:"text",thousandSeparator:!0,isNumericString:!0,decimalScale:2,fixedDecimalScale:u}):r),l&&l)},ff=function(e){var r=e.error,n=e.value,o=e.onBlur,i=e.onChange,a=e.selectOptions,s=e.disabled,l=tf({});return t.createElement(K,{margin:"none",error:!!r},t.createElement(J,{className:l.body2Text+" "+l.modifiedUnderline,inputProps:{className:l.selectFocusBackground},value:n,onChange:i,onBlur:o,disabled:s},Object.entries(a).map((function(e){var r=e[0],n=e[1];return t.createElement(Y,{className:l.body2Text,key:r,value:r},n)}))),r&&t.createElement(X,null,r))},mf=function(e){var r=e.error,n=e.value,o=e.onBlur,i=e.onChange,a=e.selectOptions,s=e.disabled,l=e.renderValue,c=tf({});return t.createElement(K,{margin:"none",error:!!r},t.createElement(J,{className:c.body2Text+" "+c.modifiedUnderline,inputProps:{className:c.selectFocusBackground},value:n,onChange:i,onBlur:o,disabled:s,renderValue:l,multiple:!0},Object.entries(a).map((function(e){var r=e[0],n=e[1];return t.createElement(Y,{className:c.body2Text,key:r,value:r},n)}))),r&&t.createElement(X,null,r))},hf=w((function(e){return{newRowHighlight:{backgroundColor:"#73c4ca30"},editedCellHighlight:{backgroundColor:"#5840f52e",backgroundClip:"padding-box"},editedBorder:{border:"3px solid #5840f52e",borderWidth:"2px 4px"},errorBorder:{border:"3px solid "+e.palette.error.light,borderWidth:"2px 4px"},emptyLoadingPadding:{paddingTop:"0.75rem",paddingBottom:"0.75rem"},centeredText:{textAlign:"center"},disabled:{backgroundColor:e.palette.action.hover},pagination:{marginTop:"1rem",marginBottom:"1rem"},virtualisationContainer:{maxHeight:"500px",overflow:"auto"},cellPadding:{padding:".5rem .75rem"}}})),gf=function(e){var r=e.value,n=void 0===r?"":r,o=e.row,i=o.index,a=o.values,s=o.original,l=e.column.id,c=e.syncCellWithState,u=e.setRows,d=e.fieldConfig,p=e.disabled,f=d[l],h=f.validationRule,g=f.dependentValidationRule,v=f.isCheckbox,b=f.isDateField,x=f.customRenderFn,w=f.prefix,E=f.suffix,k=f.textAlign,S=f.onBlur,N=f.onChangeValueModifier,C=m(!1),O=C[0],R=C[1],T=m(n),_=T[0],P=T[1],A=v,I=function(e){var t=!1;if(h)try{h.validateSync(e),O&&R(!1)}catch(e){t=!0,!O&&R(e.message)}if(g)try{g(a).validateSync(e),O&&R(!1)}catch(e){t=!0,!O&&R(e.message)}return t},$=function(e){return Te(void 0,void 0,void 0,(function(){return _e(this,(function(t){switch(t.label){case 0:return A?c(i,l,e,!1):c(i,l,_,!!O),!S||!u||O||Tp(a[l],_,b)?[3,2]:[4,S({rowIndex:i,value:_,setRows:u,values:s})];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))};y((function(){P(n);var e=I(n);O!==e&&c(i,l,n,e,!0)}),[n]),y((function(){s.errors&&!!s.errors[l]!=!!O&&I(n)}),[s.errors]);var j,M={value:_,values:a,disabled:p||s.disabledRow,error:O,onChange:function(e){var t;if(b){t=e;var r=N?N(t):t;return P(r),void I(r)}t=e;var n=A?t.target.checked:t.target.value;A?(P(n),$(n)):(P(n),I(n))},onBlur:$,prefix:w,suffix:E,textAlign:k,originalValues:s};return x?x(M):(j=M,t.createElement(rf,Oe({},Oe({},j))))},yf=n((function(e,r){var n=e.row,o=e.classes,i=e.disabled,a=e.includeRowSelect,s=Re(e,["row","classes","disabled","includeRowSelect"]);return t.createElement(O,Oe({},s,{ref:r,hover:!0,className:("NEW"===n.original.rowStatus?o.newRowHighlight:"")+" "+("EDITED"===n.original.rowStatus?o.editedBorder:"")+"\n"+(Object.values(n.original.errors||{}).includes(!0)?o.errorBorder:"")+" "+(n.original.disabledRow||i?o.disabled:"")}),n.cells.map((function(e,r){return t.createElement(P,Oe({},e.getCellProps(),{align:e.column.textAlign||"center",className:("EDITED"===e.row.original.rowStatus&&e.row.original.edited[e.column.id]?o.editedCellHighlight:"")+" "+o.cellPadding,padding:a&&0===r?"checkbox":"normal"}),e.render("Cell"))})))})),vf=[],bf=f((function(e){var r=e.tableRows,n=e.tableHeaders,o=e.syncCellWithState,i=e.setRows,a=void 0===i?void 0:i,s=e.skipPageReset,l=void 0!==s&&s,c=e.fieldConfig,u=e.disabled,d=void 0!==u&&u,p=e.setSelectedRows,f=e.includeRowSelect,m=void 0===f||f,h=e.filterData,v=e.filterTypes,b=e.emptyTableText,x=void 0===b?"Table is empty":b,w=e.paginate,S=void 0!==w&&w,N=e.defaultPageSize,C=void 0===N?50:N,O=e.virtContainerStyling,R=e.overscan,T=e.rowHeight,_=e.includeGlobalSearch,P=e.disableHeaderSelect,A=Oe(Oe({},hf()),ip()),I=t.useRef(null),$=t.useMemo((function(){return{Cell:gf}}),[]),j=xe({columns:n,data:r||vf,defaultColumn:$,autoResetPage:!!S&&!l,filterTypes:v,initialState:{pageSize:S?C:void 0},syncCellWithState:o,setRows:a,fieldConfig:c,disabled:d,autoResetGlobalFilter:!1},we,Ee,ke,Se,(function(e){m&&e.visibleColumns.push((function(e){return Pe([{id:"selection",Header:function(e){var r=e.getToggleAllRowsSelectedProps,n=e.getToggleAllPageRowsSelectedProps;return P?"Select":t.createElement(af,Oe({},S?n():r(),{disabled:d,size:"small"}))},Cell:function(e){var r=e.row;return t.createElement(af,Oe({},r.getToggleRowSelectedProps(),{disabled:d||r.original.disableSelection,size:"small"}))}}],e,!0)}))})),M=j.getTableProps,D=j.getTableBodyProps,B=j.headerGroups,V=j.rows,L=j.page,z=j.prepareRow,F=j.state,W=F.selectedRowIds,U=F.pageIndex,G=j.state,H=j.setFilter,Y=j.pageCount,q=j.gotoPage,K=j.preGlobalFilteredRows,J=j.setGlobalFilter,X=j.isAllRowsSelected,Z=j.selectedFlatRows,Q=Ce({size:(S?L:V).length,parentRef:I,overscan:R||5,estimateSize:g((function(){return T||54}),[T])}),te=S?L:V,re=Q.virtualItems,ne=re.length>0?re[0].start:0,oe=re.length>0?Q.totalSize-re[re.length-1].end:0,ie=g((function(e,t){q(t-1)}),[]);return y((function(){h&&H(h.filterRow,h.filterValues)}),[h]),y((function(){p&&p(Object.keys(W).map((function(e){return+e})))}),[W]),t.createElement(t.Fragment,null,_?t.createElement(wf,{preGlobalFilteredRows:K,globalFilter:G.globalFilter,setGlobalFilter:J}):null,t.createElement("div",{ref:I,className:O||A.virtualisationContainer},t.createElement(Ef,Oe({},{disabled:d,includeRowSelect:m,getTableProps:M,headerGroups:B,getTableBodyProps:D,rowsToRender:te,prepareRow:z,paddingTop:ne,paddingBottom:oe,virtualRows:re,isAllRowsSelected:X,selectedFlatRows:Z}))),null===r?t.createElement(k,{className:A.emptyLoadingPadding},t.createElement(up,null)):null,r&&!r.length?t.createElement(k,{className:A.emptyLoadingPadding+" "+A.centeredText},t.createElement(E,{variant:"body2"},x)):null,S&&(null==r?void 0:r.length)?t.createElement(ee,{className:A.flexCenter+" "+A.pagination,count:Y,page:U+1,onChange:ie,shape:"rounded",showFirstButton:!0,showLastButton:!0}):null)})),xf=w((function(e){return{container:{display:"flex",justifyContent:"center",alignItems:"center",border:"1px solid "+e.palette.grey[600],borderRadius:"8px",width:"100%",maxWidth:"20rem",marginInline:"auto",color:e.palette.grey[600],"&:hover":{borderColor:e.palette.grey[800],color:e.palette.grey[800]},"&:focus-within":{borderColor:e.palette.grey[800],color:e.palette.grey[800]}},input:Oe({width:"100%",maxWidth:"18rem",color:"inherit"},e.typography.body2)}})),wf=f((function(e){var r=e.preGlobalFilteredRows,n=e.globalFilter,o=e.setGlobalFilter,i=m(n),a=i[0],s=i[1],l=Oe(Oe({},np()),xf()),c=Ne((function(e){o(e||void 0)}),200),u=r.length;return t.createElement("div",{className:l.container+" "+l.contentBreak},t.createElement(fe,{className:l.rightSpacer1+" "+l.leftSpacer1}),t.createElement(U,{className:""+l.input,value:a||"",onChange:function(e){s(e.target.value),c(e.target.value)},placeholder:"Search "+u+" records...",inputProps:{"aria-label":"search"}}))})),Ef=f((function(e){var r=e.disabled,n=e.includeRowSelect,o=e.getTableProps,i=e.headerGroups,a=e.getTableBodyProps,s=e.rowsToRender,l=e.prepareRow,c=e.paddingTop,u=e.paddingBottom,d=e.virtualRows,p=e.isAllRowsSelected,f=e.selectedFlatRows;return t.createElement(T,Oe({},o(),{stickyHeader:!0,style:{borderCollapse:"collapse"}}),t.createElement(kf,{headerGroups:i,includeRowSelect:n,isAllRowsSelected:p}),t.createElement(_,Oe({},a()),c>0&&t.createElement("tr",null,t.createElement("td",{style:{height:c+"px"}})),t.createElement(Sf,Oe({},{disabled:r,includeRowSelect:n,rowsToRender:s,prepareRow:l,virtualRows:d,selectedFlatRows:f})),u>0&&t.createElement("tr",null,t.createElement("td",{style:{height:u+"px"}}))))})),kf=f((function(e){var r=e.headerGroups,n=e.includeRowSelect;return e.isAllRowsSelected,t.createElement(R,null,r.map((function(e){return t.createElement(O,Oe({},e.getHeaderGroupProps()),e.headers.map((function(e,r){return t.createElement(P,Oe({},e.getHeaderProps(),{align:e.textAlign||"center",padding:n&&0===r?"checkbox":"normal"}),e.render("Header"))})))})))})),Sf=f((function(e){var r=e.rowsToRender,n=e.virtualRows,o=e.prepareRow,i=Re(e,["rowsToRender","virtualRows","prepareRow"]),s=Oe(Oe({},hf()),ip());return t.createElement(t.Fragment,null,n.map((function(e){var n=r[e.index];return o(n),t.createElement(a,{key:n.original.rowKey||n.getRowProps().key},n.original.disabledRow?t.createElement(Z,{title:n.original.tooltipText||"This row is disabled",arrow:!0},t.createElement(yf,Oe({},Oe(Oe({},i),{row:n,classes:s})))):t.createElement(yf,Oe({},Oe(Oe({},i),{row:n,classes:s}))))})))})),Nf=w((function(e){return{alertStyling:{borderRadius:"14px"},closeButton:{color:e.palette.text.secondary,marginRight:e.spacing(2)},showCursor:{cursor:"pointer"}}})),Cf=function(e){var r=e.alertActionHandler,n=e.formStatus,o=e.actionButton,i=e.alertMessage,a=e.addBreak,s=void 0===a||a,l=e.styling,c=Oe(Oe({},np()),Nf());return t.createElement(V,{in:[Zd,Qd,ep].includes(n)},t.createElement(te,{onClick:r,className:c.alertStyling+" "+(s?c.sectionBreak:"")+" "+(l||"")+" "+(r?c.showCursor:""),severity:n===Qd?Qd:n===Zd?Zd:ep,action:o?t.createElement(j,{className:c.closeButton,"aria-label":"close",color:"inherit",size:"small",onClick:function(e){e.stopPropagation(),o.handler()}},o.text):null},i))},Of=w((function(e){return{greyBox:{backgroundColor:e.palette.grey[200],display:"flex",justifyContent:"center",alignItems:"center",padding:"1.5rem",borderRadius:"14px",position:"relative",height:"13.25rem"},widthLimiter:{width:"100%",maxWidth:"28rem",marginLeft:"auto",marginRight:"auto"},hiddenInput:{display:"none"},buttonColor:{backgroundColor:e.palette.primary.main},iconStyling:{color:e.palette.common.white,fontSize:"3rem"},sectionBreak:{marginBottom:e.spacing(3)},dropBox:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},dropArrowStyling:{color:e.palette.text.secondary,fontSize:"3rem"},topLeftArrow:{position:"absolute",top:0,left:0,transform:"rotate(45deg)"},topRightArrow:{position:"absolute",top:0,right:0,transform:"rotate(135deg)"},bottomLeftArrow:{position:"absolute",bottom:0,left:0,transform:"rotate(-45deg)"},bottomRightArrow:{position:"absolute",bottom:0,right:0,transform:"rotate(225deg)"},hiddenDisplay:{display:"none"},loadingCircle:{marginLeft:e.spacing(1)},roundedAvatarButton:{borderRadius:"100%"},roundedAvatar:{width:"16vmax",height:"16vmax",maxWidth:"13rem",maxHeight:"13rem"},organisationImage:{maxWidth:"8rem",minWidth:"5rem",maxHeight:"8rem"}}})),Rf=function(e){var r=e.id,n=void 0===r?"image-upload":r,o=e.url,i=e.roundedAvatar,a=void 0!==i&&i,s=e.handleSaveImage,l=e.alt,c=e.accessLevel,u=Oe(Oe({},Of()),np()),d=m(!!o),p=d[0],f=d[1],h=m("enabled"),g=h[0],v=h[1],b=m(null),x=b[0],w=b[1];if(y((function(){o&&f(!0)}),[o]),c===rp)return null;var N=!1;c===tp&&(N=!0);var C,O=function(e,t){return Te(void 0,void 0,void 0,(function(){var r,n;return _e(this,(function(i){switch(i.label){case 0:return N?[2]:(w(null),"input"!==e?[3,4]:(r=t.target).files&&r.files[0]?[4,R(r.files[0])]:[3,2]);case 1:return i.sent(),[3,3];case 2:v(Qd),f(!!o),i.label=3;case 3:return[3,7];case 4:return"dragDrop"!==e?[3,7]:(n=t.dataTransfer).files&&n.files[0]?[4,R(n.files[0])]:[3,6];case 5:return i.sent(),[3,7];case 6:v(Qd),f(!!o),i.label=7;case 7:return[2]}}))}))},R=function(e){return Te(void 0,void 0,void 0,(function(){var t,r,n;return _e(this,(function(i){switch(i.label){case 0:return v("loading"),e.size>=524288?(w("Image size should be less than 0.5MB"),v(Qd),f(!!o),[2]):(t=e.name.split(".")[1].toLowerCase(),["png","jpg","jpeg"].includes(t)?[4,e.arrayBuffer()]:(w("Please provide an image in png, jpg or jpeg format"),v(Qd),f(!!o),[2]));case 1:r=i.sent(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,s(t,r,e)];case 3:return i.sent(),v(Zd),f(!0),[3,5];case 4:return n=i.sent(),console.log(n),v(Qd),f(!!o),[3,5];case 5:return[2]}}))}))};switch(g){case"dragEnter":C=t.createElement(k,{className:u.dropBox,style:{pointerEvents:"none"}},t.createElement(ce,{className:u.dropArrowStyling+" "+u.topLeftArrow}),t.createElement(ce,{className:u.dropArrowStyling+" "+u.topRightArrow}),t.createElement(E,{variant:"h5",color:"textSecondary"},"Drop Here"),t.createElement(ce,{className:u.dropArrowStyling+" "+u.bottomLeftArrow}),t.createElement(ce,{className:u.dropArrowStyling+" "+u.bottomRightArrow}));break;case"loading":C=t.createElement(k,{className:u.dropBox},t.createElement(E,{color:"textSecondary"},"Loading..."),t.createElement(S,{className:u.loadingCircle,size:25}));break;default:C=t.createElement("label",{htmlFor:n},t.createElement(z,{className:u.buttonColor+" "+u.sectionBreak,"aria-label":"upload picture",component:"span"},t.createElement(le,{className:u.iconStyling})),t.createElement(E,{variant:"body2",color:"textSecondary"},"Drag and drop or browse to upload your image or logo."))}return t.createElement(k,{className:u.labelBreak,onDragEnter:function(e){N||(e.preventDefault(),e.stopPropagation(),f(!1))},onDragOver:function(e){N||(e.preventDefault(),e.stopPropagation(),f(!1))}},p&&t.createElement(k,{className:u.labelBreak},t.createElement("label",{htmlFor:n},t.createElement(j,{className:""+(a?u.roundedAvatarButton:""),"aria-label":"upload picture",component:"span"},a?t.createElement(Q,{className:u.roundedAvatar,src:o,alt:l||"Profile Avatar"}):t.createElement("img",{className:u.organisationImage,src:o,alt:l||"Company Logo"})))),t.createElement(k,{className:u.greyBox+" "+u.widthLimiter+" "+u.sectionBreak+" "+(p?u.hiddenDisplay:""),onDragEnter:function(e){N||(e.preventDefault(),e.stopPropagation(),v("dragEnter"))},onDragLeave:function(e){N||(e.preventDefault(),e.stopPropagation(),v("enabled"),f(!!o))},onDragOver:function(e){N||(e.preventDefault(),e.stopPropagation(),v("dragEnter"))},onDrop:function(e){N||(e.preventDefault(),e.stopPropagation(),O("dragDrop",e))}},t.createElement("input",{id:n,className:u.hiddenInput,type:"file",accept:".png, .jpg, .jpeg",disabled:N,onChange:function(e){return O("input",e)}}),C),t.createElement(k,{className:u.widthLimiter},t.createElement(Cf,{formStatus:g,alertMessage:x||(g===Zd?"Uploaded successfully!":"Something went wrong.")})))};export{Cf as Alert,Fp as AlphabeticalList,wp as Breadcrumbs,sp as Button,Qp as ButtonWithConfirm,cp as ContentBox,lp as ContentLabel,Jp as DatePicker,bf as EditableTable,kp as EntityList,Sp as ErrorIndicator,Rf as ImageDisplayAndUpload,Xp as KeyboardDatePicker,jp as LeftNavigation,up as LoadingSpinner,Dp as MainLayout,pf as NonEditableField,Yp as NumberFormatField,Up as SearchBar,Kp as Select,bp as StaticTable,sf as TableDatePicker,mf as TableMultipleSelect,ff as TableSelect,rf as TableTextField,Hp as TextField,Tp as didCellValueChange,df as tableCheckbox,lf as tableDateField,cf as tableInvoiceDateField,nf as tableNumericStringField,of as tableNumericStringFixedDecimalField,Bp as useDebounceEffect,Vp as useInterval,Lp as useWhyDidYouUpdate};
|
|
1
|
+
import e,{memo as t,useState as r,useMemo as n,useCallback as a,useEffect as o,useRef as i,forwardRef as l,Fragment as c}from"react";import{makeStyles as s,Button as d,CircularProgress as m,Typography as u,Box as p,withStyles as g,createStyles as f,TableRow as h,TableHead as v,Table as b,TableBody as y,TableCell as x,Link as E,ButtonBase as w,Grid as C,ListItem as k,ListItemIcon as B,ListItemText as S,Collapse as N,List as R,IconButton as I,Container as T,Divider as F,InputBase as L,InputAdornment as A,TextField as W,MenuItem as P,Checkbox as D,FormControl as O,Select as M,FormHelperText as z,Tooltip as j,Avatar as H}from"@material-ui/core";import{string as G}from"yup";import{Pagination as K,Alert as V}from"@material-ui/lab";import{Link as U,useLocation as Y,useHistory as J}from"react-router-dom";import q from"@material-ui/icons/Error";import{ExpandLess as X,ExpandMore as Q,CloudUpload as $,Forward as Z}from"@material-ui/icons";import{isValid as _}from"date-fns";import ee from"@material-ui/icons/Close";import te from"@material-ui/icons/AddBoxOutlined";import re from"@material-ui/icons/Search";import{isEqual as ne}from"lodash";import ae from"react-number-format";import{MuiPickersUtilsProvider as oe,DatePicker as ie,KeyboardDatePicker as le}from"@material-ui/pickers";import ce from"@date-io/date-fns";import{useTable as se,useFilters as de,useGlobalFilter as me,usePagination as ue,useRowSelect as pe,useAsyncDebounce as ge}from"react-table";import{useVirtual as fe}from"react-virtual";var he=function(){return he=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},he.apply(this,arguments)};function ve(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}function be(e,t,r,n){return new(r||(r=Promise))((function(a,o){function i(e){try{c(n.next(e))}catch(e){o(e)}}function l(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,l)}c((n=n.apply(e,t||[])).next())}))}function ye(e,t){var r,n,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(c){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(r=1,n&&(a=2&l[0]?n.return:l[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,l[1])).done)return a;switch(n=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,n=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],n=0}finally{r=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}function xe(e,t,r){if(r||2===arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}G().trim().required("Required"),G().trim().required("Required").matches(/^\d*\.?\d*$/,"Must be a Number");var Ee="success",we="error",Ce="warning",ke="read",Be="noAccess",Se=s({labelBreak:{marginBottom:"0.5rem"},contentBreak:{marginBottom:"1rem"},sectionBreak:{marginBottom:"1.5rem"},doubleSectionBreak:{marginBottom:"3rem"},rightSpacer1:{marginRight:"0.5rem"},rightSpacer2:{marginRight:"1rem"},leftSpacer1:{marginLeft:"0.5rem"},leftSpacer2:{marginLeft:"1rem"},buttonSpacing:{marginLeft:"0.5rem",marginRight:"0.5rem",marginBottom:"1rem"},leftRightPadding1:{paddingLeft:"0.5rem",paddingRight:"0.5rem"},leftRightPadding2:{paddingLeft:"1rem",paddingRight:"1rem"},topBottomPadding1:{paddingTop:"0.5rem",paddingBottom:"0.5rem"},topBottomPadding2:{paddingTop:"1rem",paddingBottom:"1rem"}},{classNamePrefix:"spacing",index:2}),Ne=s((function(e){return{boldText:{fontWeight:700},bolderText:{fontWeight:500},smallText:{fontSize:"0.7rem"},warningColor:{color:e.palette.warning.main},centerText:{textAlign:"center"}}}),{classNamePrefix:"font"}),Re=s({contentBox:{background:"white",borderRadius:"14px",marginBottom:"1rem",padding:"3rem"},limitWidth60rem:{maxWidth:"60rem",marginLeft:"auto",marginRight:"auto"},limitWidth50rem:{maxWidth:"50rem",marginLeft:"auto",marginRight:"auto"},limitWidth45rem:{maxWidth:"45rem",marginLeft:"auto",marginRight:"auto"},limitWidth40rem:{maxWidth:"40rem",marginLeft:"auto",marginRight:"auto"},limitWidth35rem:{maxWidth:"35rem",marginLeft:"auto",marginRight:"auto"},limitWidth30rem:{maxWidth:"30rem",marginLeft:"auto",marginRight:"auto"},limitWidth25rem:{maxWidth:"25rem",marginLeft:"auto",marginRight:"auto"},centeredText:{textAlign:"center"},startAlignedText:{textAlign:"start"},width20:{width:"20%"},width49:{width:"49%"},width50:{width:"50%"},width60:{width:"60%"},width100:{width:"100%"},flexCenter:{display:"flex",alignItems:"center",justifyContent:"center"},centerJustify:{justifyContent:"center"},leftJustify:{justifyContent:"left"},rightJustify:{justifyContent:"right"}},{classNamePrefix:"layout",index:2}),Ie=s((function(e){return{submitButton:{borderRadius:"1.5rem",padding:"0.4rem 1rem",textTransform:"none"},containedText:{color:"white"},spinnerColour:{color:e.palette.grey[500]}}})),Te=function(t){var r=t.loading,n=void 0!==r&&r,a=t.children,o=t.errors,i=void 0!==o&&o,l=t.type,c=void 0===l?"submit":l,s=t.onClick,u=t.disabled,p=void 0!==u&&u,g=t.variant,f=void 0===g?"outlined":g,h=t.styling,v=void 0===h?"":h,b=t.color,y=void 0===b?"primary":b,x=t.accessLevel,E=void 0===x?"":x,w=ve(t,["loading","children","errors","type","onClick","disabled","variant","styling","color","accessLevel"]),C=he(he({},Se()),Ie());if([Be,ke].includes(E))return null;var k=p;return p||!n&&!i||(k=!0),e.createElement(d,he({},w,{variant:f,color:y,type:c,className:C.submitButton+" "+("contained"===f&&C.containedText)+" "+v,disabled:k,onClick:s}),a,n?e.createElement(m,{className:C.leftSpacer1+" "+C.spinnerColour,size:"1.1rem",thickness:6}):"")},Fe=function(t){var r=t.children,n=t.styling,a=void 0===n?null:n,o=Ne();return e.createElement(u,{variant:"h6",className:o.bolderText+" "+(a||"")},r)},Le=function(t){var r=t.limitWidth,n=void 0!==r&&r,a=t.children,o=t.styling,i=he(he({},Se()),Re());return e.createElement(p,{boxShadow:3,className:i.contentBox+" "+(o||"")},e.createElement(p,{className:i.centeredText+" "+(n?i.limitWidth50rem:"")},a))},Ae=function(t){var r=t.text,n=void 0===r?"Loading data...":r,a=t.styling,o=he(he({},Se()),Re());return e.createElement(p,{className:o.flexCenter+" "+(a||"")},e.createElement(u,{variant:"body2",color:"textSecondary",className:o.rightSpacer1},n),e.createElement(m,{size:"1.5rem"}))},We=g(f({root:{"&:hover td":{backgroundColor:"rgba(0, 0, 0, 0.06)"}}}))(h),Pe=g(f({root:{"&:nth-of-type(even) td":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&:hover td":{backgroundColor:"rgba(0, 0, 0, 0.06)"}}}))(h),De=s((function(e){return{root:{borderBottom:"none",paddingTop:"8px",paddingBottom:"8px","&:first-child":{borderTopLeftRadius:"14px",borderBottomLeftRadius:"14px"},"&:last-child":{borderTopRightRadius:"14px",borderBottomRightRadius:"14px"}},head:function(t){var r=t.background,n=t.border;return{backgroundColor:r||"HSLA(204, 58.3%, 81.2%, 0.1)",borderTop:"1px solid "+(n||"HSLA(204, 58.3%, 81.2%, 0.3)"),borderBottom:"1px solid "+(n||"HSLA(204, 58.3%, 81.2%, 0.3)"),color:t.text||e.palette.text.primary,fontWeight:500,"&:first-child":{borderLeft:"1px solid "+(n||"HSLA(204, 58.3%, 81.2%, 0.3)")},"&:last-child":{borderRight:"1px solid "+(n||"HSLA(204, 58.3%, 81.2%, 0.3)")}}}}})),Oe=function(t){var r=t.children,n=t.align,a=void 0===n?"centerJustify":n,o=t.headerColours,i=ve(t,["children","align","headerColours"]),l=he(he({},Re()),De(he({},o||{})));return e.createElement(x,he({},i,{classes:{root:l.root,head:l.head}}),e.createElement("div",{className:l.flexCenter+" "+l[a]},r))},Me=function(t){var r=t.rowBorderSeparation,n=void 0!==r&&r,a=t.children,o=ve(t,["rowBorderSeparation","children"]);return n?e.createElement(We,he({},o),a):e.createElement(Pe,he({},o),a)},ze=function(t){var r=t.colSpan,n=t.children,a=je();return e.createElement(Me,null,e.createElement(Oe,{className:a.adjustedCellPadding,colSpan:r},n))},je=s({tableStyles:{borderCollapse:"separate",borderBottom:"1px solid rgb(224, 224, 224)"},pointer:{cursor:"pointer"},bottomBorder:{borderBottom:"1px solid rgba(224, 224, 224, 1)"},noShading:{backgroundColor:"transparent !important"},adjustedCellPadding:{paddingTop:"11px",paddingBottom:"11px"}}),He=t((function(t){var r=t.headers,n=t.headerCellAlignment,a=void 0===n?[]:n,o=t.headerColours;return r?e.createElement(v,null,e.createElement(h,null,r.map((function(t,r){return e.createElement(Oe,{align:a[r]||"centerJustify",key:"header-cell-"+r,headerColours:o},t)})))):null})),Ge=t((function(t){var i=t.rowBorderSeparation,l=void 0!==i&&i,c=t.headers,s=t.rows,d=t.headerCellAlignment,m=void 0===d?[]:d,u=t.rowCellAlignment,p=void 0===u?[]:u,g=t.styling,f=t.headerColours,h=t.paginate,v=void 0!==h&&h,x=t.itemsPerPage,E=void 0===x?30:x,w=he(he(he({},Re()),Se()),je()),C=r(1),k=C[0],B=C[1],S=n((function(){return!!(v&&((null==s?void 0:s.length)||0)>E)}),[E,v,s]),N=r(S?s.slice(0,E):s),R=N[0],I=N[1],T=a((function(e,t){B(t)}),[]);return o((function(){I(S?s.slice(E*(k-1),E*k):s)}),[S,E,k,s]),e.createElement(e.Fragment,null,e.createElement(b,{className:w.tableStyles+" "+(S?w.contentBreak:"")+" "+(g||"")},e.createElement(He,{headers:c,headerCellAlignment:m,headerColours:f}),e.createElement(y,null,R?R.length?R.map((function(t,r){var n=!!t.onClick;return e.createElement(Me,{rowBorderSeparation:l,className:n?w.pointer:void 0,key:"row-"+r,onClick:n?t.onClick:void 0},t.row.map((function(t,n){return e.createElement(Oe,{align:p[n]||"centerJustify",className:l&&R.length!==r+1?w.bottomBorder:void 0,key:"row-"+r+"-cell-"+n},t)})))})):e.createElement(ze,{colSpan:(null==c?void 0:c.length)||0},"Table is empty"):e.createElement(ze,{colSpan:(null==c?void 0:c.length)||0},e.createElement(Ae,null)))),S?e.createElement(K,{className:w.flexCenter,count:Math.ceil(s.length/E),page:k,onChange:T,shape:"rounded",showFirstButton:!0,showLastButton:!0}):null)})),Ke=s((function(e){return{logoContainer:{width:"3rem",height:"3rem",display:"flex",justifyContent:"center",alignItems:"center"},logo:{width:"100%",height:"100%","& > div":{width:"100%",height:"100%"},"& > svg":{width:"100%",height:"100%"}},logoInBreadcrumb:{width:"2rem",height:"2rem",margin:"0.125rem 0 0.125rem 0.313rem"},logoSpacing:{marginRight:e.spacing(1)},flexItemsCenter:{display:"flex",alignItems:"center"},nonPrimaryBreadcrumbOffset:{marginLeft:"2.5rem"},BreadcrumbsContainer:{height:"2.25rem",marginLeft:"0.875rem",marginRight:"1.5rem"},primaryBreadcrumbItem:function(t){var r=t.primary;return{backgroundColor:(null==r?void 0:r.background)||e.palette.common.white,color:(null==r?void 0:r.color)||e.palette.text.primary,borderRadius:"2rem",zIndex:3,height:"100%",display:"flex",alignItems:"center"}},secondaryBreadcrumbItem:function(t){var r=t.secondary;return{height:"2.25rem",backgroundColor:(null==r?void 0:r.background)||"#D7D4E4",borderRadius:"2rem",zIndex:2,marginLeft:"-2rem",color:(null==r?void 0:r.color)||e.palette.text.primary}},tertiaryBreadcrumbItem:function(t){var r=t.tertiary;return{height:"2.25rem",backgroundColor:(null==r?void 0:r.background)||"#D7D4E4",borderRadius:"2rem",zIndex:1,marginLeft:"-2rem",color:(null==r?void 0:r.color)||e.palette.common.white}},breadCrumbShadow:{boxShadow:e.shadows[2]},breadcrumbRightMargin:{marginRight:"1rem"},breadcrumbTextOverflow:{display:"block",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"12rem"},boldText:{fontWeight:500},activeBreadcrumb:function(t){var r=t.tertiary;return{backgroundColor:(null==r?void 0:r.background)||"#D7D4E4",color:(null==r?void 0:r.color)||e.palette.common.white}},noWrap:{whiteSpace:"nowrap"},fullBorderRadius:{borderRadius:"100%"}}})),Ve=function(t){var r=t.logo,n=t.content,a=t.colors,o=Ke(he({},a||{})),i=n.first,l=void 0===i?null:i,c=n.second,s=void 0===c?null:c,d=n.third,m=void 0===d?null:d;return e.createElement(p,{className:o.BreadcrumbsContainer+" "+o.flexItemsCenter},e.createElement(p,{className:(l?o.primaryBreadcrumbItem+" "+o.breadCrumbShadow:"")+" "+o.flexItemsCenter},e.createElement(E,{component:U,to:"/",className:o.logoSpacing},e.createElement(p,{className:o.logoContainer+" \n "+(l?o.logoInBreadcrumb:"")},e.createElement(w,{className:o.logo+" "+o.fullBorderRadius},r))),l&&e.createElement(u,{color:"textPrimary",className:o.boldText+" "+o.noWrap+" "+o.primaryBreadcrumbItem},e.createElement(E,{underline:"none",component:U,to:l.link,color:"inherit",className:o.breadcrumbRightMargin+" "+o.breadcrumbTextOverflow},l.name))),s&&e.createElement(p,{className:o.flexItemsCenter+" "+o.secondaryBreadcrumbItem+" "+o.breadCrumbShadow+" "+(m?"":o.activeBreadcrumb)},e.createElement(u,{color:"inherit",className:o.boldText+" "+o.noWrap},e.createElement(E,{component:U,underline:"none",to:s.link,color:"inherit",className:o.nonPrimaryBreadcrumbOffset+" "+o.breadcrumbRightMargin+" "+o.breadcrumbTextOverflow},s.name))),m&&e.createElement(p,{className:o.flexItemsCenter+" "+o.tertiaryBreadcrumbItem+" "+o.breadCrumbShadow},e.createElement(u,{color:"inherit",className:o.boldText+" "+o.noWrap},e.createElement(E,{component:U,underline:"none",to:m.link,color:"inherit",className:o.nonPrimaryBreadcrumbOffset+" "+o.breadcrumbRightMargin+" "+o.breadcrumbTextOverflow},m.name))))},Ue=s((function(e){return{container:{marginRight:e.spacing(-1.5),marginLeft:e.spacing(-1.5)},svgContainer:{marginLeft:"auto",marginRight:"auto"},button:{display:"block",textDecoration:"none",borderRadius:"14px",height:"100%",width:"100%",textAlign:"center"},orgLabel:{padding:e.spacing(1),paddingTop:0}}})),Ye=function(t){var r=t.entities,n=t.icon,a=t.loadingMessage,o=void 0===a?"Loading list...":a,i=t.emptyMessage,l=void 0===i?"List is empty":i,c=t.onClick,s=he(he(he({},Ue()),Se()),Ne());return e.createElement(p,{className:s.container},r?r.length?e.createElement(C,{container:!0,spacing:3},r.map((function(t,r){return e.createElement(C,{key:t.name+"-"+r,item:!0,xs:4,md:3},e.createElement(d,he({className:s.button,key:t.name},c?{onClick:function(){return c(t)}}:{component:U,to:t.link}),e.createElement(p,{className:s.svgContainer+" "+s.labelBreak},n(t)),e.createElement(u,{className:s.orgLabel,variant:"body1"},t.name)))}))):e.createElement(u,{className:s.centerText,variant:"body2",color:"textSecondary"},l):e.createElement(Ae,{text:o}))},Je=function(t){var r=t.text,n=void 0===r?"Something went wrong":r,a=he(he({},Se()),Re());return e.createElement(p,{className:a.flexCenter},e.createElement(q,{fontSize:"medium",className:a.rightSpacer1,color:"error"}),e.createElement(u,{variant:"body2",color:"textSecondary"},n))},qe=s((function(e){return{listIcon:{minWidth:"auto",paddingRight:"0.25rem"},mainIconSize:{fontSize:"1rem"},mainIconMarginAdjustment:{marginTop:"3px"},textOverflowElipsis:{overflow:"hidden",textOverflow:"ellipsis"},mainListItem:function(t){return{padding:"8px 24px 8px 16px",alignItems:"flex-start",backgroundColor:t.mainBackground||e.palette.common.white,color:t.mainText||e.palette.text.primary,borderRadius:e.spacing(.6),"&:hover":{backgroundColor:t.mainHover||e.palette.action.hover}}},mainIconColor:function(t){return{color:t.mainIcon||e.palette.grey[500]}},activeMainIconColor:function(e){return{color:e.mainActiveText||"#8FC1FF"}},subListItem:function(t){return{backgroundColor:t.subItemBackground||"#FFFFFF",color:t.subItemText||e.palette.text.secondary,borderRadius:"8px","&:hover":{backgroundColor:t.subItemHover||"rgba(143,193,255,0.3)"}}},activeSubListItem:function(e){return{backgroundColor:e.subItemActiveBackground||"#FFFFFF",color:e.subItemActiveText||"#8FC1FF","&:hover":{backgroundColor:e.subItemActiveHover||"rgba(143,193,255,0.3)"}}},subItemBorder:{borderLeft:"1px solid "+e.palette.grey[600],marginLeft:"1px",marginRight:"1px",width:"100%",height:"100%"},relativeWrapper:{position:"relative"},subItemBorderMask:function(e){return{borderLeft:"3px solid "+(e.subItemActiveText||"#8FC1FF"),borderRadius:"1px",position:"absolute",top:"50%",bottom:"50%",transition:"all 0.2s ease-in-out"}},activeSubItemBorder:{top:"0 !important",bottom:"0 !important"},subItemWrapper:{display:"flex",marginLeft:"13px",marginRight:"16px"},noYMargin:{marginTop:"unset",marginBottom:"unset"}}})),Xe=function(e,t){return!!e.split("/").includes(t)},Qe=function(t){var n,a,o=t.mainItem,i=t.subItems,l=t.config,c=t.Icon,s=he(he(he({},Ne()),Se()),qe(he(he({},(null===(n=l.secondary)||void 0===n?void 0:n.mainItemColors)||{}),(null===(a=l.secondary)||void 0===a?void 0:a.subItemColors)||{}))),d=Y(),m=Xe(d.pathname,o.id),g=r(!!(null==i?void 0:i.length)&&m),f=g[0],h=g[1];return e.createElement(e.Fragment,null,e.createElement(k,{button:!0,dense:!0,className:s.mainListItem,component:U,to:o.route},e.createElement(B,{className:s.listIcon+" "+s.mainIconMarginAdjustment+" "+s.rightSpacer1},e.createElement(c,{id:"second-nav-item",styling:s.mainIconSize+" "+s.mainIconColor+" "+(m?s.activeMainIconColor:"")})),e.createElement(S,{disableTypography:!0,className:s.noYMargin,primary:e.createElement(u,{variant:"body2",className:s.bolderText+" "+s.textOverflowElipsis,color:"inherit"},o.name,(null==i?void 0:i.length)?e.createElement(u,{component:"span",variant:"body2",className:s.bolderText,color:"inherit"}," ","(",i.length,")"):null)}),(null==i?void 0:i.length)?e.createElement(B,{className:s.listIcon,onClick:function(e){e.preventDefault(),e.stopPropagation(),h((function(e){return!e}))}},f?e.createElement(X,null):e.createElement(Q,null)):null),(null==i?void 0:i.length)?e.createElement(N,{in:f,timeout:"auto",unmountOnExit:!0},e.createElement(R,{component:"div",disablePadding:!0},i.map((function(t){var r=t.name,n=t.route,a=t.id;return e.createElement(p,{key:a,className:s.subItemWrapper},e.createElement(p,{className:s.relativeWrapper+" "+s.rightSpacer1},e.createElement(p,{className:s.subItemBorder+" "}),e.createElement(p,{className:s.subItemBorderMask+" "+(Xe(d.pathname,a)?s.activeSubItemBorder:"")+" "})),e.createElement(k,{key:n,component:U,to:n,button:!0,dense:!0,className:s.subListItem+" "+(Xe(d.pathname,a)?s.activeSubListItem:"")},e.createElement(S,{disableTypography:!0,primary:e.createElement(u,{variant:"body2",className:s.textOverflowElipsis,color:"inherit"},r)})))})))):null)};function $e(e){return e.sort((function(e,t){return+t.startDate.split("T")[0].replaceAll("-","")-+e.startDate.split("T")[0].replaceAll("-","")}))}var Ze=function(e,t,r){return r?(e&&_(e)?e:new Date(0)).getTime()===(t&&_(t)?t:new Date(0)).getTime():e===t},_e=s((function(e){return{secondaryNavWrapper:{height:"100%",width:"300px",background:"white",overflowY:"auto",overflowX:"hidden",borderTopRightRadius:"14px",borderBottomRightRadius:"14px",marginLeft:"-16px",paddingLeft:"16px",border:"1px solid "+e.palette.grey[300],boxShadow:"0 2px 4px 0 rgba(0, 0, 0, 0.3)",boxSizing:"border-box"},titleWrapper:{marginTop:"24px",display:"flex",alignItems:"center",paddingLeft:"16px",paddingRight:"16px"},title:{fontSize:"18px",fontWeight:500,color:function(e){return e.titleColor||"#8FC1FF"}},titleIcons:{color:function(e){return e.titleIconColor||"#8FC1FF"}},closeButton:{marginLeft:"auto"},archivedSeparator:{paddingLeft:"8px",color:e.palette.grey[500]},archivedBorder:{marginTop:"3rem",border:"1px solid "+e.palette.grey[200],width:"33%",marginLeft:"8px"},listWrapper:{marginLeft:e.spacing(1),marginRight:e.spacing(1)}}})),et=function(t){var r,n,a,o,i=t.secondaryNavItems,l=t.primaryNavItems,c=t.expandedOptions,s=t.setExpandedOptions,d=t.config,m={titleColor:null===(r=d.secondary)||void 0===r?void 0:r.titleColor,titleIconColor:null===(n=d.secondary)||void 0===n?void 0:n.titleIconColor},g=he(he(he({},Se()),Ne()),_e(m)),f=J(),h=i[c.view];if(!h)return null;var v=l.find((function(e){return e.field===c.view})).Icon;return e.createElement(p,{className:g.secondaryNavWrapper},e.createElement(p,{className:g.titleWrapper},e.createElement(u,{className:g.rightSpacer1+" "+g.title},c.view),h.button?e.createElement(I,{className:g.titleIcons,size:"small",type:"button",onClick:function(){return f.push(h.button.url)}},e.createElement(te,null)):null,e.createElement(I,{className:g.titleIcons+" "+g.closeButton,size:"small",type:"button",onClick:function(){return s({view:"",expanded:!1})}},(null===(a=d.secondary)||void 0===a?void 0:a.closeButtonSvg)||e.createElement(ee,null))),e.createElement(R,{className:g.listWrapper,component:"div"},$e(h.items).map((function(t){return e.createElement(Qe,he({key:t.mainItem.route},t,{config:d,Icon:v}))})),(null===(o=h.archivedItems)||void 0===o?void 0:o.length)?e.createElement(e.Fragment,null,e.createElement(p,{className:g.archivedBorder+" "+g.contentBreak}),e.createElement(u,{variant:"body2",className:g.archivedSeparator+" "+g.bolderText},"Archived ",c.view),$e(h.archivedItems).map((function(t){return e.createElement(Qe,he({key:t.mainItem.route},t,{config:d,Icon:v}))}))):null))},tt=s((function(e){return{primaryNavContainer:function(e){return{background:e.background||"linear-gradient(to bottom, #253a68 40%, #73c4ca)",border:"2px solid "+(e.activeBorderColor||"#8FC1FF"),borderLeft:"none",borderTopRightRadius:"14px",borderBottomRightRadius:"14px",minWidth:"4.5rem",overflowY:"auto",overflowX:"hidden"}},listWrapper:{display:"flex",flexDirection:"column",paddingTop:0},itemWrapper:{display:"flex",flexDirection:"column",padding:"0.75rem 0.5rem 0.5rem 0.5rem"},itemBorder:{borderRight:function(e){return"6px solid "+(e.activeBorderColor||"#8FC1FF")},position:"absolute",bottom:"50%",top:"50%",transition:"all 0.2s ease-in-out",right:"-3px"},activeBorder:{top:"15%",bottom:"15%"},iconWrapper:{minWidth:0,marginBottom:"4px",position:"relative"},itemName:{fontSize:"0.7rem",maxWidth:"3.5rem",textAlign:"center",textOverflow:"ellipsis",overflow:"hidden"},textColour:{color:function(e){return e.text||"#FFFFFF"}},activeTextColour:{color:function(e){return e.activeText||"#8FC1FF"}},lastItem:{marginTop:"auto"}}})),rt=function(t){var r=t.expandedOptions,n=t.setExpandedOptions,a=t.navigationLinks,o=t.config,i=Y(),l=tt(he({},o.primary||{})),c=function(e,t){return""===r.view?i.pathname===t||!(e===o.rootRouteName||!i.pathname.startsWith(t)):r.view===e};return e.createElement(R,{className:l.primaryNavContainer+" "+l.listWrapper},a.map((function(t,r,a){var i;return e.createElement(k,he({key:t.field,button:!0,className:l.itemWrapper+" "+l.textColour+" "+((null===(i=o.primary)||void 0===i?void 0:i.moveLastItemToBottom)&&r===a.length-1?l.lastItem:"")},t.hasSecondary?{}:{component:U,to:t.path},{onClick:function(){n({view:t.field,expanded:!!t.hasSecondary})}}),e.createElement(B,{className:l.iconWrapper},e.createElement(t.Icon,{styling:l.textColour+" "+(c(t.field,t.path)?l.activeTextColour:"")})),e.createElement(u,{variant:"caption",className:l.itemName+" "+l.textColour+" "+(c(t.field,t.path)?l.activeTextColour:"")},t.field),e.createElement(p,{className:l.itemBorder+" "+(c(t.field,t.path)?l.activeBorder:"")}))})))},nt=s({leftNavContainer:{height:"100%",display:"flex",position:"relative",width:"max-content"}}),at=function(t){var n=t.primaryNavItems,a=t.secondaryNavItems,i=t.config,l=r({view:"",expanded:!1}),c=l[0],s=l[1],d=nt(),m=Y(),u=n.reduce((function(e,t){return t.hasSecondary?xe(xe([],e,!0),[t.field],!1):e}),[]);return o((function(){s((function(e){return u.includes(e.view)&&!0===e.expanded?e:{view:"",expanded:!1}}))}),[m.pathname]),e.createElement(p,{component:"nav",className:d.leftNavContainer},e.createElement(rt,{expandedOptions:c,setExpandedOptions:s,navigationLinks:n,config:i}),c.expanded&&e.createElement(et,{secondaryNavItems:a,primaryNavItems:n,expandedOptions:c,setExpandedOptions:s,config:i}))},ot=s((function(e){return{remainingHeightBox:{position:"absolute",top:function(e){var t;return null!==(t=e.topOffset)&&void 0!==t?t:"4rem"},bottom:0,left:0,right:0,display:"flex"},fullHeightFlexbox:{display:"flex",height:"100%"},relativeContainer:{position:"relative"},scrollWrapper:{overflow:"auto"},componentWrapper:{padding:e.spacing(2),paddingBottom:e.spacing(2),position:"relative"}}})),it=function(t){var r=t.sideNavigation,n=t.children,a=t.desktopWidth,o=t.topOffset,i=ot({topOffset:o});return e.createElement(p,{className:i.remainingHeightBox},r?e.createElement(p,{className:i.fullHeightFlexbox+" "+i.relativeContainer},r):null,e.createElement(T,{disableGutters:!0,maxWidth:!1,className:i.scrollWrapper},e.createElement(T,{disableGutters:!0,maxWidth:a?"xl":"lg",className:i.componentWrapper},n)))},lt=function(e,t,r){void 0===r&&(r=250);var n=a(e,t);o((function(){var e=setTimeout(n,r);return function(){return clearTimeout(e)}}),[n,r])},ct=function(e,t){var r=i();o((function(){r.current=e})),o((function(){if(null!==t){var e=setInterval((function(){r.current&&r.current()}),t);return function(){return clearInterval(e)}}}),[t])};function st(e,t){var r=i(t);o((function(){var n=Object.keys(he(he({},r.current),t)),a={};n.forEach((function(e){r.current[e]!==t[e]&&(a[e]={from:r.current[e],to:t[e],changedKeys:t[e]&&"object"==typeof t[e]?Object.keys(r.current[e]).map((function(n){return r.current[e][n]===t[e][n]?"":n})).filter(Boolean):void 0,isDeepEqual:ne(r.current[e],t[e])})})),Object.keys(a).length&&console.log("[why-did-you-update]",e,{changes:a,props:{from:r.current,to:t}}),r.current=t}),Object.values(t))}var dt=s((function(e){return{divider:{background:e.palette.primary.main,height:"0.2rem"},letterHeader:{cursor:"default",color:e.palette.primary.main,marginTop:"1rem"},listItem:{borderRadius:"14px",border:"1px solid "+e.palette.grey[300],marginBottom:"0.5rem",paddingLeft:"24px",boxShadow:e.shadows[1]},topMargin:{marginTop:e.spacing(2),display:"block"}}})),mt=function(t){var r=t.array,n=t.sortFn,a=t.sortKey,o=void 0===a?"name":a,i=t.buttonClick,l=t.linkTo,c=t.ItemTemplate,s=t.arrayKey,d=void 0===s?"id":s,m=t.loadingMessage,p=void 0===m?"Loading list...":m,g=t.emptyMessage,f=void 0===g?"List is empty":g,h=t.alphabetisedHeader,v=void 0===h||h,b=he(he(he({},dt()),Se()),Re());if(void 0===r)return e.createElement(Ae,{styling:b.topMargin,text:p});if(!(null==r?void 0:r.length))return e.createElement(u,{className:b.topMargin,align:"center",variant:"body2",color:"textSecondary"},f);var y=n?xe([],r,!0).sort(n):r,x="";return e.createElement(R,{className:b.limitWidth50rem},y.map((function(t,r){var n,a=!1;if(v){var s=((null===(n=t[o])||void 0===n?void 0:n[0])||"???").toLowerCase();s!==x&&(x=s,a=!0)}return e.createElement(e.Fragment,{key:t[d]||"alphabetical-list-"+r},v&&a?e.createElement(e.Fragment,null,e.createElement(u,{className:""+b.letterHeader,align:"left"},x.toUpperCase()),e.createElement(F,{className:b.contentBreak+" "+b.divider})):null,e.createElement(k,he({className:b.listItem,alignItems:"flex-start",button:!(!i&&!l)||void 0,onClick:i?function(){return i(t)}:void 0},l&&!i?{component:U,to:l(t)}:{}),e.createElement(c,{item:t})))})))},ut=s((function(e){return{searchBox:{display:"flex",alignContent:"center",alignItems:"center",padding:"8px",border:"2px solid "+e.palette.grey[300],borderRadius:"14px"},searchField:{borderRadius:"14px",width:"100%",background:function(e){return e.background||"RGBA(179, 213, 235, 0.1)"},height:"46px",paddingLeft:"24px",color:e.palette.grey[600]},searchIcon:{color:e.palette.grey[600]}}})),pt=function(t){var n=t.array,a=t.sortFn,i=t.sortKey,l=void 0===i?"name":i,c=t.buttonClick,s=t.linkTo,d=t.ItemTemplate,m=t.arrayKey,u=void 0===m?"id":m,g=t.loadingMessage,f=void 0===g?"Loading list...":g,h=t.emptyMessage,v=void 0===h?"List is empty":h,b=t.inputBackgroundColor,y=t.placeholder,x=t.disabledSearch,E=t.delay,w=void 0===E?500:E,C=t.minQueryLength,k=void 0===C?3:C,B=t.handleOnChange,S=t.searchKeys,N=void 0===S?["name"]:S,R=t.alphabetisedHeader,I=void 0===R||R,T=t.initialSearchQuery,F=void 0===T?"":T,W=he(he(he({},Se()),Re()),ut({background:b})),P=r(F),D=P[0],O=P[1],M=r(!1),z=M[0],j=M[1],H=r(n),G=H[0],K=H[1];return lt((function(){!B&&!z&&D.length>=k&&K(null==n?void 0:n.filter((function(e){var t=N.some((function(t){var r;return null===(r=e[t])||void 0===r?void 0:r.toLowerCase().includes(D.toLowerCase())}));return t})))}),[D,n],w),lt((function(){B&&!z&&D.length>=k&&B(D)}),[D],w),o((function(){K(n)}),[n]),e.createElement(e.Fragment,null,e.createElement(p,{className:W.searchBox+" "+W.limitWidth50rem},e.createElement(L,{disabled:x,type:"text",value:D,placeholder:y||"Enter to search",onChange:function(e){z&&j(!1),O(e.target.value)},className:W.searchField,endAdornment:e.createElement(A,{position:"end",className:W.rightSpacer2},e.createElement(re,{className:W.searchIcon}))})),null!==n&&e.createElement(mt,{array:G,sortFn:a,sortKey:l,buttonClick:c,linkTo:s,ItemTemplate:d,arrayKey:u,loadingMessage:f,emptyMessage:v,alphabetisedHeader:I}))},gt=s((function(e){return{inputField:function(t){var r=t.size;return he({borderRadius:"14px"},"small"===r?e.typography.body2:{})},labelStyles:function(t){var r=t.size;return he({},"small"===r?he(he({transform:"translate(14px, 9px) scale(1) !important"},e.typography.body2),{"&.MuiInputLabel-outlined.MuiInputLabel-shrink":{transform:"translate(15px, -9px) scale(0.75) !important"}}):{})}}})),ft=function(t){var r=t.size,n=void 0===r?"small":r,a=t.styling,o=t.numberField,i=t.inputProps,l=void 0===i?{}:i,c=t.InputProps,s=void 0===c?{}:c,d=t.accessLevel,m=t.disabled,u=t.fixedDecimalScale,p=ve(t,["size","styling","numberField","inputProps","InputProps","accessLevel","disabled","fixedDecimalScale"]),g=gt({size:n});if(d===Be)return null;var f=m;d===ke&&(f=!0);var h=he({},o&&{fixedDecimalScale:!!u});return e.createElement(W,he({className:a||"",disabled:f},p,{inputProps:he(he({},l),h),InputProps:he(he({},s),{className:g.inputField,inputComponent:o?ht:void 0}),InputLabelProps:{className:g.labelStyles},variant:"outlined",size:n}))},ht=function(t){var r=t.inputRef,n=t.onChange,a=ve(t,["inputRef","onChange"]);return e.createElement(ae,he({},a,{getInputRef:r,onValueChange:function(e){n({target:{name:t.name||"",value:e.value}})},thousandSeparator:!0,decimalScale:2,isNumericString:!0}))},vt=s((function(e){return{listItem:function(t){var r=t.background,n=t.size;return he(he({overflow:"auto",scrollbarWidth:"thin"},"small"===n?e.typography.body2:{}),{"&:hover":{backgroundColor:r+" !important"}})},inputStyles:function(t){var r=t.background,n=t.size;return he(he({borderRadius:"14px !important"},"small"===n?he({paddingTop:"9.5px",paddingBottom:"8.5px"},e.typography.body2):{}),{"&:focus":{backgroundColor:r}})},selectedListItem:function(e){return{"&:focus":{background:e.background+" !important"}}}}})),bt=function(t){var r=t.selectOptions,n=t.background,a=void 0===n?"#EFEDFF":n,o=t.size,i=void 0===o?"small":o,l=t.styling,c=t.disabled,s=t.accessLevel,d=ve(t,["selectOptions","background","size","styling","disabled","accessLevel"]),m=vt({background:a,size:i});if(s===Be)return null;var u=c;return s===ke&&(u=!0),e.createElement(ft,he({className:l||""},d,{disabled:u,size:i,SelectProps:{inputProps:{className:m.inputStyles}},select:!0}),r.map((function(t){var r;return e.createElement(P,{key:t.value,value:t.value,disabled:null!==(r=null==t?void 0:t.disabled)&&void 0!==r&&r,className:m.listItem,classes:{selected:m.selectedListItem}},t.description)})))},yt=function(t){var r=t.styling,n=t.format,a=void 0===n?"dd MMM yyyy":n,o=t.minDate,i=void 0===o?new Date("1856-09-25"):o,l=t.accessLevel,c=t.disabled,s=ve(t,["styling","format","minDate","accessLevel","disabled"]);if(l===Be)return null;var d=c;return l===ke&&(d=!0),e.createElement(oe,{utils:ce},e.createElement(ie,he({className:r||""},s,{disabled:d,inputVariant:"outlined",autoOk:!0,format:a,minDate:i,TextFieldComponent:ft})))},xt=function(t){var r=t.styling,n=t.format,a=void 0===n?"dd/MM/yyyy":n,o=t.minDate,i=void 0===o?new Date("1856-09-25"):o,l=t.accessLevel,c=t.disabled,s=ve(t,["styling","format","minDate","accessLevel","disabled"]);if(l===Be)return null;var d=c;return l===ke&&(d=!0),e.createElement(oe,{utils:ce},e.createElement(le,he({className:r||""},s,{disabled:d,inputVariant:"outlined",autoOk:!0,allowKeyboardControl:!0,format:a,minDate:i,TextFieldComponent:ft})))},Et=s((function(e){return{confirmWrapper:{display:"inline-block"},confirmContainer:{display:"flex",alignItems:"center"},whiteText:{color:e.palette.common.white}}})),wt=function(t){var n=t.children,a=t.onClick,i=t.styling,l=t.disabled,c=void 0!==l&&l,s=t.variant,d=void 0===s?"outlined":s,m=t.color,g=void 0===m?"primary":m,f=t.accessLevel,h=void 0===f?"":f,v=t.confirmButtonLabel,b=void 0===v?"Are you sure?":v,y=ve(t,["children","onClick","styling","disabled","variant","color","accessLevel","confirmButtonLabel"]),x=he(he({},Se()),Et()),E=r(!1),w=E[0],C=E[1],k=r(!1),B=k[0],S=k[1];return ct((function(){return C(!1)}),!w||B?null:4500),o((function(){S(y.loading),C(y.loading)}),[y.loading]),[Be,ke].includes(h)?null:w?e.createElement(p,{className:x.confirmWrapper},e.createElement(p,{className:x.confirmContainer},e.createElement(u,{className:x.rightSpacer1,variant:"body1"},b),e.createElement(Te,he({},y,{type:"button",onClick:function(e){S(!0),a(e)},variant:"contained",styling:x.whiteText,disabled:c,color:g}),"Confirm",y.loading?"ing":""))):e.createElement(Te,{type:"button",variant:d,disabled:c,styling:i,color:g,onClick:function(){return C(!0)}},n)},Ct=function(e,t){var r=e.toString().length;return r?r+(t?3:1)+Math.floor(r/3)/3+"ch":"6ch"},kt=s((function(e){return{inputBase:function(e){return{height:"unset",padding:0,textAlign:e.textAlign||"center"}},input:function(e){return{textAlign:e.textAlign||"center",marginRight:"0.4rem",marginLeft:"0.4rem"}},startAdornment:{color:e.palette.text.secondary},modifiedUnderline:{"&:not(.Mui-disabled):before":{borderBottom:"none",transition:"none"},"&:hover:not(.Mui-disabled):before":{borderBottom:"1px solid "+e.palette.grey[500]+" !important"}},body2Text:he({},e.typography.body2),dateFieldWidth:{width:"8ch"},fullDateWidth:{width:"11ch"},justifyStart:{justifyContent:"flex-start"},justifyCenter:{justifyContent:"center"},justifyEnd:{justifyContent:"flex-end"},totalContainer:{display:"flex",alignItems:"center",cursor:"default"},selectFocusBackground:{"&:focus":{backgroundColor:"unset"}}}})),Bt=function(t){var r=t.error,n=t.disabled,a=t.value,o=t.onBlur,i=t.onChange,l=t.prefix,c=t.suffix,s=t.numberField,d=void 0!==s&&s,m=t.textAlign,p=t.fixedDecimalScale,g=kt({textAlign:m}),f=he({},d&&{fixedDecimalScale:!!p});return"string"==typeof a||"number"==typeof a?e.createElement(W,{error:!!r,inputProps:he({className:g.inputBase,style:{width:Ct(a,!!p)}},f),value:a,onChange:i,onBlur:o,InputProps:{startAdornment:l?e.createElement(A,{position:"end",className:g.startAdornment},l):null,endAdornment:c?e.createElement(A,{position:"start",className:g.startAdornment},c):null,inputComponent:d?ht:void 0,className:g.body2Text+" "+g.modifiedUnderline,classes:{input:g.input}},helperText:r||void 0,disabled:n}):e.createElement(u,{variant:"body2"},"Incorrect value type")},St=function(t){return e.createElement(Bt,he({},he(he({},t),{numberField:!0})))},Nt=function(t){return e.createElement(Bt,he({},he(he({},t),{numberField:!0,fixedDecimalScale:!0})))},Rt=g(f({root:{padding:"3px"}}))(D),It=function(t){var r=t.disabled,n=t.fullDate,a=void 0!==n&&n,o=t.value,i=t.error,l=t.onChange,c=t.onBlur,s=t.textAlign,d=kt({textAlign:s});return e.createElement(oe,{utils:ce},e.createElement(ie,{disabled:r,views:a?void 0:["year","month"],value:o,autoOk:!0,format:a?"dd MMM yyyy":"MMM yyyy",InputProps:{className:d.body2Text+" "+d.modifiedUnderline},inputProps:{className:d.inputBase+" "+(a?d.fullDateWidth:d.dateFieldWidth),classes:{input:d.input}},error:!!i,helperText:i||void 0,onChange:l,onBlur:c}))},Tt=function(t){return e.createElement(It,he({},t))},Ft=function(t){return e.createElement(It,he({},t,{fullDate:!0}))},Lt=function(t){var r=t.value,n=t.disabled,a=t.onChange;return e.createElement(D,{disabled:n,checked:r,onChange:a,color:"primary",size:"small"})},At=function(t){return e.createElement(Lt,he({},t))},Wt=function(t){var r=t.text,n=t.numberField,a=void 0!==n&&n,o=t.prefix,i=void 0===o?null:o,l=t.suffix,c=void 0===l?null:l,s=t.textAlign,d=t.fixedDecimalScale,m=kt({});return e.createElement(p,{className:m.totalContainer+" "+m.body2Text+" "+("left"===s?m.justifyStart:"right"===s?m.justifyEnd:m.justifyCenter)},i&&i,e.createElement(p,{className:m.body2Text},a?e.createElement(ae,{value:r,displayType:"text",thousandSeparator:!0,isNumericString:!0,decimalScale:2,fixedDecimalScale:d}):r),c&&c)},Pt=function(t){var r=t.error,n=t.value,a=t.onBlur,o=t.onChange,i=t.selectOptions,l=t.disabled,c=kt({});return e.createElement(O,{margin:"none",error:!!r},e.createElement(M,{className:c.body2Text+" "+c.modifiedUnderline,inputProps:{className:c.selectFocusBackground},value:n,onChange:o,onBlur:a,disabled:l},Object.entries(i).map((function(t){var r=t[0],n=t[1];return e.createElement(P,{className:c.body2Text,key:r,value:r},n)}))),r&&e.createElement(z,null,r))},Dt=function(t){var r=t.error,n=t.value,a=t.onBlur,o=t.onChange,i=t.selectOptions,l=t.disabled,c=t.renderValue,s=kt({});return e.createElement(O,{margin:"none",error:!!r},e.createElement(M,{className:s.body2Text+" "+s.modifiedUnderline,inputProps:{className:s.selectFocusBackground},value:n,onChange:o,onBlur:a,disabled:l,renderValue:c,multiple:!0},Object.entries(i).map((function(t){var r=t[0],n=t[1];return e.createElement(P,{className:s.body2Text,key:r,value:r},n)}))),r&&e.createElement(z,null,r))},Ot=s((function(e){return{newRowHighlight:{backgroundColor:"#73c4ca30"},editedCellHighlight:{backgroundColor:"#5840f52e",backgroundClip:"padding-box"},editedBorder:{border:"3px solid #5840f52e",borderWidth:"2px 4px"},errorBorder:{border:"3px solid "+e.palette.error.light,borderWidth:"2px 4px"},emptyLoadingPadding:{paddingTop:"0.75rem",paddingBottom:"0.75rem"},centeredText:{textAlign:"center"},disabled:{backgroundColor:e.palette.action.hover},pagination:{marginTop:"1rem",marginBottom:"1rem"},virtualisationContainer:{maxHeight:"500px",overflow:"auto"},cellPadding:{padding:".5rem .75rem"}}})),Mt=function(t){var n=t.value,a=void 0===n?"":n,i=t.row,l=i.index,c=i.values,s=i.original,d=t.column.id,m=t.syncCellWithState,u=t.setRows,p=t.fieldConfig,g=t.disabled,f=p[d],h=f.validationRule,v=f.dependentValidationRule,b=f.isCheckbox,y=f.isDateField,x=f.customRenderFn,E=f.prefix,w=f.suffix,C=f.textAlign,k=f.onBlur,B=f.onChangeValueModifier,S=r(!1),N=S[0],R=S[1],I=r(a),T=I[0],F=I[1],L=b,A=function(e){var t=!1;if(h)try{h.validateSync(e),N&&R(!1)}catch(e){t=!0,!N&&R(e.message)}if(v)try{v(c).validateSync(e),N&&R(!1)}catch(e){t=!0,!N&&R(e.message)}return t},W=function(e){return be(void 0,void 0,void 0,(function(){return ye(this,(function(t){switch(t.label){case 0:return L?m(l,d,e,!1):m(l,d,T,!!N),!k||!u||N||Ze(c[d],T,y)?[3,2]:[4,k({rowIndex:l,value:T,setRows:u,values:s})];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))};o((function(){F(a);var e=A(a);N!==e&&m(l,d,a,e,!0)}),[a]),o((function(){s.errors&&!!s.errors[d]!=!!N&&A(a)}),[s.errors]);var P,D={value:T,values:c,disabled:g||s.disabledRow,error:N,onChange:function(e){var t;if(y){t=e;var r=B?B(t):t;return F(r),void A(r)}t=e;var n=L?t.target.checked:t.target.value;L?(F(n),W(n)):(F(n),A(n))},onBlur:W,prefix:E,suffix:w,textAlign:C,originalValues:s};return x?x(D):(P=D,e.createElement(Bt,he({},he({},P))))},zt=l((function(t,r){var n=t.row,a=t.classes,o=t.disabled,i=t.includeRowSelect,l=ve(t,["row","classes","disabled","includeRowSelect"]);return e.createElement(h,he({},l,{ref:r,hover:!0,className:("NEW"===n.original.rowStatus?a.newRowHighlight:"")+" "+("EDITED"===n.original.rowStatus?a.editedBorder:"")+"\n"+(Object.values(n.original.errors||{}).includes(!0)?a.errorBorder:"")+" "+(n.original.disabledRow||o?a.disabled:"")}),n.cells.map((function(t,r){return e.createElement(x,he({},t.getCellProps(),{align:t.column.textAlign||"center",className:("EDITED"===t.row.original.rowStatus&&t.row.original.edited[t.column.id]?a.editedCellHighlight:"")+" "+a.cellPadding,padding:i&&0===r?"checkbox":"normal"}),t.render("Cell"))})))})),jt=[],Ht=t((function(t){var r=t.tableRows,n=t.tableHeaders,i=t.syncCellWithState,l=t.setRows,c=void 0===l?void 0:l,s=t.skipPageReset,d=void 0!==s&&s,m=t.fieldConfig,g=t.disabled,f=void 0!==g&&g,h=t.setSelectedRows,v=t.includeRowSelect,b=void 0===v||v,y=t.filterData,x=t.filterTypes,E=t.emptyTableText,w=void 0===E?"Table is empty":E,C=t.paginate,k=void 0!==C&&C,B=t.defaultPageSize,S=void 0===B?50:B,N=t.virtContainerStyling,R=t.overscan,I=t.rowHeight,T=t.includeGlobalSearch,F=t.disableHeaderSelect,L=he(he({},Ot()),Re()),A=e.useRef(null),W=e.useMemo((function(){return{Cell:Mt}}),[]),P=se({columns:n,data:r||jt,defaultColumn:W,autoResetPage:!!k&&!d,filterTypes:x,initialState:{pageSize:k?S:void 0},syncCellWithState:i,setRows:c,fieldConfig:m,disabled:f,autoResetGlobalFilter:!1},de,me,ue,pe,(function(t){b&&t.visibleColumns.push((function(t){return xe([{id:"selection",Header:function(t){var r=t.getToggleAllRowsSelectedProps,n=t.getToggleAllPageRowsSelectedProps;return F?"Select":e.createElement(Rt,he({},k?n():r(),{disabled:f,size:"small"}))},Cell:function(t){var r=t.row;return e.createElement(Rt,he({},r.getToggleRowSelectedProps(),{disabled:f||r.original.disableSelection,size:"small"}))}}],t,!0)}))})),D=P.getTableProps,O=P.getTableBodyProps,M=P.headerGroups,z=P.rows,j=P.page,H=P.prepareRow,G=P.state,V=G.selectedRowIds,U=G.pageIndex,Y=P.state,J=P.setFilter,q=P.pageCount,X=P.gotoPage,Q=P.preGlobalFilteredRows,$=P.setGlobalFilter,Z=P.isAllRowsSelected,_=P.selectedFlatRows,ee=fe({size:(k?j:z).length,parentRef:A,overscan:R||5,estimateSize:a((function(){return I||54}),[I])}),te=k?j:z,re=ee.virtualItems,ne=re.length>0?re[0].start:0,ae=re.length>0?ee.totalSize-re[re.length-1].end:0,oe=a((function(e,t){X(t-1)}),[]);return o((function(){y&&J(y.filterRow,y.filterValues)}),[y]),o((function(){h&&h(Object.keys(V).map((function(e){return+e})))}),[V]),e.createElement(e.Fragment,null,T?e.createElement(Kt,{preGlobalFilteredRows:Q,globalFilter:Y.globalFilter,setGlobalFilter:$}):null,e.createElement("div",{ref:A,className:N||L.virtualisationContainer},e.createElement(Vt,he({},{disabled:f,includeRowSelect:b,getTableProps:D,headerGroups:M,getTableBodyProps:O,rowsToRender:te,prepareRow:H,paddingTop:ne,paddingBottom:ae,virtualRows:re,isAllRowsSelected:Z,selectedFlatRows:_}))),null===r?e.createElement(p,{className:L.emptyLoadingPadding},e.createElement(Ae,null)):null,r&&!r.length?e.createElement(p,{className:L.emptyLoadingPadding+" "+L.centeredText},e.createElement(u,{variant:"body2"},w)):null,k&&(null==r?void 0:r.length)?e.createElement(K,{className:L.flexCenter+" "+L.pagination,count:q,page:U+1,onChange:oe,shape:"rounded",showFirstButton:!0,showLastButton:!0}):null)})),Gt=s((function(e){return{container:{display:"flex",justifyContent:"center",alignItems:"center",border:"1px solid "+e.palette.grey[600],borderRadius:"8px",width:"100%",maxWidth:"20rem",marginInline:"auto",color:e.palette.grey[600],"&:hover":{borderColor:e.palette.grey[800],color:e.palette.grey[800]},"&:focus-within":{borderColor:e.palette.grey[800],color:e.palette.grey[800]}},input:he({width:"100%",maxWidth:"18rem",color:"inherit"},e.typography.body2)}})),Kt=t((function(t){var n=t.preGlobalFilteredRows,a=t.globalFilter,o=t.setGlobalFilter,i=r(a),l=i[0],c=i[1],s=he(he({},Se()),Gt()),d=ge((function(e){o(e||void 0)}),200),m=n.length;return e.createElement("div",{className:s.container+" "+s.contentBreak},e.createElement(re,{className:s.rightSpacer1+" "+s.leftSpacer1}),e.createElement(L,{className:""+s.input,value:l||"",onChange:function(e){c(e.target.value),d(e.target.value)},placeholder:"Search "+m+" records...",inputProps:{"aria-label":"search"}}))})),Vt=t((function(t){var r=t.disabled,n=t.includeRowSelect,a=t.getTableProps,o=t.headerGroups,i=t.getTableBodyProps,l=t.rowsToRender,c=t.prepareRow,s=t.paddingTop,d=t.paddingBottom,m=t.virtualRows,u=t.isAllRowsSelected,p=t.selectedFlatRows;return e.createElement(b,he({},a(),{stickyHeader:!0,style:{borderCollapse:"collapse"}}),e.createElement(Ut,{headerGroups:o,includeRowSelect:n,isAllRowsSelected:u}),e.createElement(y,he({},i()),s>0&&e.createElement("tr",null,e.createElement("td",{style:{height:s+"px"}})),e.createElement(Yt,he({},{disabled:r,includeRowSelect:n,rowsToRender:l,prepareRow:c,virtualRows:m,selectedFlatRows:p})),d>0&&e.createElement("tr",null,e.createElement("td",{style:{height:d+"px"}}))))})),Ut=t((function(t){var r=t.headerGroups,n=t.includeRowSelect;return t.isAllRowsSelected,e.createElement(v,null,r.map((function(t){return e.createElement(h,he({},t.getHeaderGroupProps()),t.headers.map((function(t,r){return e.createElement(x,he({},t.getHeaderProps(),{align:t.textAlign||"center",padding:n&&0===r?"checkbox":"normal"}),t.render("Header"))})))})))})),Yt=t((function(t){var r=t.rowsToRender,n=t.virtualRows,a=t.prepareRow,o=ve(t,["rowsToRender","virtualRows","prepareRow"]),i=he(he({},Ot()),Re());return e.createElement(e.Fragment,null,n.map((function(t){var n=r[t.index];return a(n),e.createElement(c,{key:n.original.rowKey||n.getRowProps().key},n.original.disabledRow?e.createElement(j,{title:n.original.tooltipText||"This row is disabled",arrow:!0},e.createElement(zt,he({},he(he({},o),{row:n,classes:i})))):e.createElement(zt,he({},he(he({},o),{row:n,classes:i}))))})))})),Jt=s((function(e){return{alertStyling:{borderRadius:"14px"},closeButton:{color:e.palette.text.secondary,marginRight:e.spacing(2)},showCursor:{cursor:"pointer"}}})),qt=function(t){var r=t.alertActionHandler,n=t.formStatus,a=t.actionButton,o=t.alertMessage,i=t.addBreak,l=void 0===i||i,c=t.styling,s=he(he({},Se()),Jt());return e.createElement(N,{in:[Ee,we,Ce].includes(n)},e.createElement(V,{onClick:r,className:s.alertStyling+" "+(l?s.sectionBreak:"")+" "+(c||"")+" "+(r?s.showCursor:""),severity:n===we?we:n===Ee?Ee:Ce,action:a?e.createElement(d,{className:s.closeButton,"aria-label":"close",color:"inherit",size:"small",onClick:function(e){e.stopPropagation(),a.handler()}},a.text):null},o))},Xt=s((function(e){return{greyBox:{backgroundColor:e.palette.grey[200],display:"flex",justifyContent:"center",alignItems:"center",padding:"1.5rem",borderRadius:"14px",position:"relative",height:"13.25rem"},widthLimiter:{width:"100%",maxWidth:"28rem",marginLeft:"auto",marginRight:"auto"},hiddenInput:{display:"none"},buttonColor:{backgroundColor:e.palette.primary.main},iconStyling:{color:e.palette.common.white,fontSize:"3rem"},sectionBreak:{marginBottom:e.spacing(3)},dropBox:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},dropArrowStyling:{color:e.palette.text.secondary,fontSize:"3rem"},topLeftArrow:{position:"absolute",top:0,left:0,transform:"rotate(45deg)"},topRightArrow:{position:"absolute",top:0,right:0,transform:"rotate(135deg)"},bottomLeftArrow:{position:"absolute",bottom:0,left:0,transform:"rotate(-45deg)"},bottomRightArrow:{position:"absolute",bottom:0,right:0,transform:"rotate(225deg)"},hiddenDisplay:{display:"none"},loadingCircle:{marginLeft:e.spacing(1)},roundedAvatarButton:{borderRadius:"100%"},roundedAvatar:{width:"16vmax",height:"16vmax",maxWidth:"13rem",maxHeight:"13rem"},organisationImage:{maxWidth:"8rem",minWidth:"5rem",maxHeight:"8rem"}}})),Qt=function(t){var n=t.id,a=void 0===n?"image-upload":n,i=t.url,l=t.roundedAvatar,c=void 0!==l&&l,s=t.handleSaveImage,g=t.alt,f=t.accessLevel,h=he(he({},Xt()),Se()),v=r(!!i),b=v[0],y=v[1],x=r("enabled"),E=x[0],w=x[1],C=r(null),k=C[0],B=C[1];if(o((function(){i&&y(!0)}),[i]),f===Be)return null;var S=!1;f===ke&&(S=!0);var N,R=function(e,t){return be(void 0,void 0,void 0,(function(){var r,n;return ye(this,(function(a){switch(a.label){case 0:return S?[2]:(B(null),"input"!==e?[3,4]:(r=t.target).files&&r.files[0]?[4,T(r.files[0])]:[3,2]);case 1:return a.sent(),[3,3];case 2:w(we),y(!!i),a.label=3;case 3:return[3,7];case 4:return"dragDrop"!==e?[3,7]:(n=t.dataTransfer).files&&n.files[0]?[4,T(n.files[0])]:[3,6];case 5:return a.sent(),[3,7];case 6:w(we),y(!!i),a.label=7;case 7:return[2]}}))}))},T=function(e){return be(void 0,void 0,void 0,(function(){var t,r,n;return ye(this,(function(a){switch(a.label){case 0:return w("loading"),e.size>=524288?(B("Image size should be less than 0.5MB"),w(we),y(!!i),[2]):(t=e.name.split(".")[1].toLowerCase(),["png","jpg","jpeg"].includes(t)?[4,e.arrayBuffer()]:(B("Please provide an image in png, jpg or jpeg format"),w(we),y(!!i),[2]));case 1:r=a.sent(),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,s(t,r,e)];case 3:return a.sent(),w(Ee),y(!0),[3,5];case 4:return n=a.sent(),console.log(n),w(we),y(!!i),[3,5];case 5:return[2]}}))}))};switch(E){case"dragEnter":N=e.createElement(p,{className:h.dropBox,style:{pointerEvents:"none"}},e.createElement(Z,{className:h.dropArrowStyling+" "+h.topLeftArrow}),e.createElement(Z,{className:h.dropArrowStyling+" "+h.topRightArrow}),e.createElement(u,{variant:"h5",color:"textSecondary"},"Drop Here"),e.createElement(Z,{className:h.dropArrowStyling+" "+h.bottomLeftArrow}),e.createElement(Z,{className:h.dropArrowStyling+" "+h.bottomRightArrow}));break;case"loading":N=e.createElement(p,{className:h.dropBox},e.createElement(u,{color:"textSecondary"},"Loading..."),e.createElement(m,{className:h.loadingCircle,size:25}));break;default:N=e.createElement("label",{htmlFor:a},e.createElement(I,{className:h.buttonColor+" "+h.sectionBreak,"aria-label":"upload picture",component:"span"},e.createElement($,{className:h.iconStyling})),e.createElement(u,{variant:"body2",color:"textSecondary"},"Drag and drop or browse to upload your image or logo."))}return e.createElement(p,{className:h.labelBreak,onDragEnter:function(e){S||(e.preventDefault(),e.stopPropagation(),y(!1))},onDragOver:function(e){S||(e.preventDefault(),e.stopPropagation(),y(!1))}},b&&e.createElement(p,{className:h.labelBreak},e.createElement("label",{htmlFor:a},e.createElement(d,{className:""+(c?h.roundedAvatarButton:""),"aria-label":"upload picture",component:"span"},c?e.createElement(H,{className:h.roundedAvatar,src:i,alt:g||"Profile Avatar"}):e.createElement("img",{className:h.organisationImage,src:i,alt:g||"Company Logo"})))),e.createElement(p,{className:h.greyBox+" "+h.widthLimiter+" "+h.sectionBreak+" "+(b?h.hiddenDisplay:""),onDragEnter:function(e){S||(e.preventDefault(),e.stopPropagation(),w("dragEnter"))},onDragLeave:function(e){S||(e.preventDefault(),e.stopPropagation(),w("enabled"),y(!!i))},onDragOver:function(e){S||(e.preventDefault(),e.stopPropagation(),w("dragEnter"))},onDrop:function(e){S||(e.preventDefault(),e.stopPropagation(),R("dragDrop",e))}},e.createElement("input",{id:a,className:h.hiddenInput,type:"file",accept:".png, .jpg, .jpeg",disabled:S,onChange:function(e){return R("input",e)}}),N),e.createElement(p,{className:h.widthLimiter},e.createElement(qt,{formStatus:E,alertMessage:k||(E===Ee?"Uploaded successfully!":"Something went wrong.")})))},$t=s((function(e){var t,r;return{container:(t={height:"100%",background:"linear-gradient(180deg, #B3D6EC 0%, #B3D6EC 40%, #E97FAB 100%)",display:"flex",flexDirection:"column",overflowY:"scroll",borderTopRightRadius:"1rem",borderBottomRightRadius:"1rem",border:"solid 2px rgb(188, 172, 242)",borderLeft:"none",boxSize:"border-box"},t[e.breakpoints.down("sm")]={flexDirection:"row",justifyContent:"center",background:"linear-gradient(90deg, #B3D6EC 0%, #B3D6EC 40%, #E97FAB 100%)",borderRadius:0,borderTopLeftRadius:"1rem",borderTopRightRadius:"1rem",width:"100dvw",margin:"auto",border:"solid 2px rgb(188, 172, 242)",borderBottom:"none",overflowY:"hidden",overflowX:"scroll"},t),item:(r={position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",color:"black",textDecoration:"none",fontSize:"0.725rem",padding:"0.75rem 0.5rem",gap:"0.25rem",backgroundColor:"transparent",transition:"background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::after":{content:'" "',position:"absolute",top:"15%",bottom:"15%",right:0,width:3,zIndex:1,transition:"background-color 80ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"}},r[e.breakpoints.down("sm")]={padding:"0.5rem 1.0rem","&::after":{top:0,left:"15%",right:"15%",bottom:"auto",height:4,width:"auto"}},r),itemActive:{"&::after":{backgroundColor:"rgb(188, 172, 242)"}},separateItem:{marginTop:"auto"}}})),Zt=function(t){var r=t.tabs,n=$t(),a=Y();return e.createElement("div",{className:n.container},r.map((function(t){var r=t.Icon,o=t.field,i=t.path,l=t.separate,c=void 0!==l&&l;return e.createElement(U,{key:i,to:i,className:[n.item,c?n.separateItem:null,a.pathname===i?n.itemActive:null].filter(Boolean).join(" ")},e.createElement(e.Fragment,null,e.createElement(r,null),o))})))},_t=s((function(e){var t;return{tablessGrid:{},grid:function(t){var r,n=t.hideTabs,a=t.leaveHeightForMenu;return n?{}:((r={display:"grid",gridTemplateRows:"auto 1fr",gridTemplateColumns:"auto 1fr",height:a?"calc(100dvh - 4rem)":"100dvh",boxSize:"border-box"})[e.breakpoints.down("sm")]={gridTemplateColumns:"1fr",gridTemplateRows:"1fr auto"},r)},tabs:(t={height:function(e){return e.leaveHeightForMenu?"calc(100dvh - 4rem)":"100dvh"}},t[e.breakpoints.down("sm")]={order:1,height:"max-content !important"},t),content:{padding:"1rem",boxSizing:"border-box",height:"100%",overflowY:"scroll"}}})),er=function(t){var r=t.tabs,n=t.hideTabs,a=void 0!==n&&n,o=t.leaveHeightForMenu,i=void 0===o||o,l=t.children,c=_t({hideTabs:a,leaveHeightForMenu:i});return e.createElement("div",{className:c.grid},e.createElement("div",{className:c.tabs},e.createElement(Zt,{tabs:r})),e.createElement("div",{className:c.content},e.createElement(T,{disableGutters:!0},e.createElement(e.Fragment,null,l))))};export{qt as Alert,mt as AlphabeticalList,Ve as Breadcrumbs,Te as Button,wt as ButtonWithConfirm,Le as ContentBox,Fe as ContentLabel,yt as DatePicker,Ht as EditableTable,Ye as EntityList,Je as ErrorIndicator,Qt as ImageDisplayAndUpload,xt as KeyboardDatePicker,at as LeftNavigation,Ae as LoadingSpinner,it as MainLayout,er as NavbarLayout,Wt as NonEditableField,ht as NumberFormatField,pt as SearchBar,bt as Select,Ge as StaticTable,It as TableDatePicker,Dt as TableMultipleSelect,Pt as TableSelect,Bt as TableTextField,ft as TextField,Ze as didCellValueChange,At as tableCheckbox,Tt as tableDateField,Ft as tableInvoiceDateField,St as tableNumericStringField,Nt as tableNumericStringFixedDecimalField,lt as useDebounceEffect,ct as useInterval,st as useWhyDidYouUpdate};
|
|
138
2
|
//# sourceMappingURL=index.js.map
|