react-schema-form 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-schema-form.css +1 -0
- package/dist/react-schema-form.js +24405 -0
- package/dist/react-schema-form.js.map +1 -0
- package/dist/react-schema-form.umd.cjs +228 -0
- package/dist/react-schema-form.umd.cjs.map +1 -0
- package/package.json +66 -60
- package/dist/index.js +0 -2134
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js +0 -2128
- package/dist/index.modern.js.map +0 -1
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
(function(bt,we){typeof exports=="object"&&typeof module<"u"?we(exports,require("react"),require("@emotion/styled"),require("@emotion/react"),require("react-dom"),require("@uiw/react-markdown-editor"),require("@mui/material")):typeof define=="function"&&define.amd?define(["exports","react","@emotion/styled","@emotion/react","react-dom","@uiw/react-markdown-editor","@mui/material"],we):(bt=typeof globalThis<"u"?globalThis:bt||self,we(bt["react-schema-form"]={},bt.React,bt.EmotionStyled,bt.EmotionReact,bt["React-dom"],bt.UiwReactMarkdownEditor,bt.MuiMaterial))})(this,function(bt,we,Yr,hn,mn,mc,Lr){"use strict";var gS=Object.defineProperty;var yS=(bt,we,Yr)=>we in bt?gS(bt,we,{enumerable:!0,configurable:!0,writable:!0,value:Yr}):bt[we]=Yr;var Tt=(bt,we,Yr)=>yS(bt,typeof we!="symbol"?we+"":we,Yr);function gc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const j=gc(we),$m=gc(mn);var io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ao={exports:{}},gn={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.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
|
+
*/var yc;function Mm(){if(yc)return gn;yc=1;var e=we,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(s,c,u){var f,h={},y=null,m=null;u!==void 0&&(y=""+u),c.key!==void 0&&(y=""+c.key),c.ref!==void 0&&(m=c.ref);for(f in c)n.call(c,f)&&!a.hasOwnProperty(f)&&(h[f]=c[f]);if(s&&s.defaultProps)for(f in c=s.defaultProps,c)h[f]===void 0&&(h[f]=c[f]);return{$$typeof:t,type:s,key:y,ref:m,props:h,_owner:i.current}}return gn.Fragment=r,gn.jsx=l,gn.jsxs=l,gn}var yn={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var vc;function Dm(){return vc||(vc=1,process.env.NODE_ENV!=="production"&&function(){var e=we,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),x=Symbol.iterator,d="@@iterator";function v(I){if(I===null||typeof I!="object")return null;var J=x&&I[x]||I[d];return typeof J=="function"?J:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(I){{for(var J=arguments.length,fe=new Array(J>1?J-1:0),F=1;F<J;F++)fe[F-1]=arguments[F];S("error",I,fe)}}function S(I,J,fe){{var F=E.ReactDebugCurrentFrame,q=F.getStackAddendum();q!==""&&(J+="%s",fe=fe.concat([q]));var re=fe.map(function(me){return String(me)});re.unshift("Warning: "+J),Function.prototype.apply.call(console[I],console,re)}}var T=!1,w=!1,N=!1,M=!1,O=!1,g;g=Symbol.for("react.module.reference");function p(I){return!!(typeof I=="string"||typeof I=="function"||I===n||I===a||O||I===i||I===u||I===f||M||I===m||T||w||N||typeof I=="object"&&I!==null&&(I.$$typeof===y||I.$$typeof===h||I.$$typeof===l||I.$$typeof===s||I.$$typeof===c||I.$$typeof===g||I.getModuleId!==void 0))}function b(I,J,fe){var F=I.displayName;if(F)return F;var q=J.displayName||J.name||"";return q!==""?fe+"("+q+")":fe}function C(I){return I.displayName||"Context"}function _(I){if(I==null)return null;if(typeof I.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case s:var J=I;return C(J)+".Consumer";case l:var fe=I;return C(fe._context)+".Provider";case c:return b(I,I.render,"ForwardRef");case h:var F=I.displayName||null;return F!==null?F:_(I.type)||"Memo";case y:{var q=I,re=q._payload,me=q._init;try{return _(me(re))}catch{return null}}}return null}var P=Object.assign,k=0,D,W,Z,G,B,Y,ae;function oe(){}oe.__reactDisabledLog=!0;function ne(){{if(k===0){D=console.log,W=console.info,Z=console.warn,G=console.error,B=console.group,Y=console.groupCollapsed,ae=console.groupEnd;var I={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}k++}}function ue(){{if(k--,k===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},I,{value:D}),info:P({},I,{value:W}),warn:P({},I,{value:Z}),error:P({},I,{value:G}),group:P({},I,{value:B}),groupCollapsed:P({},I,{value:Y}),groupEnd:P({},I,{value:ae})})}k<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=E.ReactCurrentDispatcher,ye;function se(I,J,fe){{if(ye===void 0)try{throw Error()}catch(q){var F=q.stack.trim().match(/\n( *(at )?)/);ye=F&&F[1]||""}return`
|
|
18
|
+
`+ye+I}}var le=!1,te;{var ve=typeof WeakMap=="function"?WeakMap:Map;te=new ve}function X(I,J){if(!I||le)return"";{var fe=te.get(I);if(fe!==void 0)return fe}var F;le=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=ce.current,ce.current=null,ne();try{if(J){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(_t){F=_t}Reflect.construct(I,[],me)}else{try{me.call()}catch(_t){F=_t}I.call(me.prototype)}}else{try{throw Error()}catch(_t){F=_t}I()}}catch(_t){if(_t&&F&&typeof _t.stack=="string"){for(var ge=_t.stack.split(`
|
|
19
|
+
`),Ie=F.stack.split(`
|
|
20
|
+
`),Pe=ge.length-1,ze=Ie.length-1;Pe>=1&&ze>=0&&ge[Pe]!==Ie[ze];)ze--;for(;Pe>=1&&ze>=0;Pe--,ze--)if(ge[Pe]!==Ie[ze]){if(Pe!==1||ze!==1)do if(Pe--,ze--,ze<0||ge[Pe]!==Ie[ze]){var Et=`
|
|
21
|
+
`+ge[Pe].replace(" at new "," at ");return I.displayName&&Et.includes("<anonymous>")&&(Et=Et.replace("<anonymous>",I.displayName)),typeof I=="function"&&te.set(I,Et),Et}while(Pe>=1&&ze>=0);break}}}finally{le=!1,ce.current=re,ue(),Error.prepareStackTrace=q}var Rr=I?I.displayName||I.name:"",vt=Rr?se(Rr):"";return typeof I=="function"&&te.set(I,vt),vt}function Re(I,J,fe){return X(I,!1)}function z(I){var J=I.prototype;return!!(J&&J.isReactComponent)}function pe(I,J,fe){if(I==null)return"";if(typeof I=="function")return X(I,z(I));if(typeof I=="string")return se(I);switch(I){case u:return se("Suspense");case f:return se("SuspenseList")}if(typeof I=="object")switch(I.$$typeof){case c:return Re(I.render);case h:return pe(I.type,J,fe);case y:{var F=I,q=F._payload,re=F._init;try{return pe(re(q),J,fe)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,Ce={},Te=E.ReactDebugCurrentFrame;function $e(I){if(I){var J=I._owner,fe=pe(I.type,I._source,J?J.type:null);Te.setExtraStackFrame(fe)}else Te.setExtraStackFrame(null)}function He(I,J,fe,F,q){{var re=Function.call.bind(de);for(var me in I)if(re(I,me)){var ge=void 0;try{if(typeof I[me]!="function"){var Ie=Error((F||"React class")+": "+fe+" type `"+me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof I[me]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}ge=I[me](J,me,F,fe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Pe){ge=Pe}ge&&!(ge instanceof Error)&&($e(q),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",F||"React class",fe,me,typeof ge),$e(null)),ge instanceof Error&&!(ge.message in Ce)&&(Ce[ge.message]=!0,$e(q),R("Failed %s type: %s",fe,ge.message),$e(null))}}}var Ne=Array.isArray;function be(I){return Ne(I)}function Fe(I){{var J=typeof Symbol=="function"&&Symbol.toStringTag,fe=J&&I[Symbol.toStringTag]||I.constructor.name||"Object";return fe}}function Ye(I){try{return ht(I),!1}catch{return!0}}function ht(I){return""+I}function Ct(I){if(Ye(I))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fe(I)),ht(I)}var pt=E.ReactCurrentOwner,Ue={key:!0,ref:!0,__self:!0,__source:!0},Be,st,De;De={};function Ze(I){if(de.call(I,"ref")){var J=Object.getOwnPropertyDescriptor(I,"ref").get;if(J&&J.isReactWarning)return!1}return I.ref!==void 0}function mt(I){if(de.call(I,"key")){var J=Object.getOwnPropertyDescriptor(I,"key").get;if(J&&J.isReactWarning)return!1}return I.key!==void 0}function ft(I,J){if(typeof I.ref=="string"&&pt.current&&J&&pt.current.stateNode!==J){var fe=_(pt.current.type);De[fe]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',_(pt.current.type),I.ref),De[fe]=!0)}}function Ee(I,J){{var fe=function(){Be||(Be=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",J))};fe.isReactWarning=!0,Object.defineProperty(I,"key",{get:fe,configurable:!0})}}function Ae(I,J){{var fe=function(){st||(st=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",J))};fe.isReactWarning=!0,Object.defineProperty(I,"ref",{get:fe,configurable:!0})}}var at=function(I,J,fe,F,q,re,me){var ge={$$typeof:t,type:I,key:J,ref:fe,props:me,_owner:re};return ge._store={},Object.defineProperty(ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(ge.props),Object.freeze(ge)),ge};function wt(I,J,fe,F,q){{var re,me={},ge=null,Ie=null;fe!==void 0&&(Ct(fe),ge=""+fe),mt(J)&&(Ct(J.key),ge=""+J.key),Ze(J)&&(Ie=J.ref,ft(J,q));for(re in J)de.call(J,re)&&!Ue.hasOwnProperty(re)&&(me[re]=J[re]);if(I&&I.defaultProps){var Pe=I.defaultProps;for(re in Pe)me[re]===void 0&&(me[re]=Pe[re])}if(ge||Ie){var ze=typeof I=="function"?I.displayName||I.name||"Unknown":I;ge&&Ee(me,ze),Ie&&Ae(me,ze)}return at(I,ge,Ie,q,F,pt.current,me)}}var St=E.ReactCurrentOwner,Bt=E.ReactDebugCurrentFrame;function Rt(I){if(I){var J=I._owner,fe=pe(I.type,I._source,J?J.type:null);Bt.setExtraStackFrame(fe)}else Bt.setExtraStackFrame(null)}var Yt;Yt=!1;function Xt(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function U(){{if(St.current){var I=_(St.current.type);if(I)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+I+"`."}return""}}function $(I){return""}var K={};function V(I){{var J=U();if(!J){var fe=typeof I=="string"?I:I.displayName||I.name;fe&&(J=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+fe+">.")}return J}}function Se(I,J){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var fe=V(J);if(K[fe])return;K[fe]=!0;var F="";I&&I._owner&&I._owner!==St.current&&(F=" It was passed a child from "+_(I._owner.type)+"."),Rt(I),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',fe,F),Rt(null)}}function ke(I,J){{if(typeof I!="object")return;if(be(I))for(var fe=0;fe<I.length;fe++){var F=I[fe];Xt(F)&&Se(F,J)}else if(Xt(I))I._store&&(I._store.validated=!0);else if(I){var q=v(I);if(typeof q=="function"&&q!==I.entries)for(var re=q.call(I),me;!(me=re.next()).done;)Xt(me.value)&&Se(me.value,J)}}}function je(I){{var J=I.type;if(J==null||typeof J=="string")return;var fe;if(typeof J=="function")fe=J.propTypes;else if(typeof J=="object"&&(J.$$typeof===c||J.$$typeof===h))fe=J.propTypes;else return;if(fe){var F=_(J);He(fe,I.props,"prop",F,I)}else if(J.PropTypes!==void 0&&!Yt){Yt=!0;var q=_(J);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof J.getDefaultProps=="function"&&!J.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ee(I){{for(var J=Object.keys(I.props),fe=0;fe<J.length;fe++){var F=J[fe];if(F!=="children"&&F!=="key"){Rt(I),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),Rt(null);break}}I.ref!==null&&(Rt(I),R("Invalid attribute `ref` supplied to `React.Fragment`."),Rt(null))}}var L={};function H(I,J,fe,F,q,re){{var me=p(I);if(!me){var ge="";(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).length===0)&&(ge+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=$();Ie?ge+=Ie:ge+=U();var Pe;I===null?Pe="null":be(I)?Pe="array":I!==void 0&&I.$$typeof===t?(Pe="<"+(_(I.type)||"Unknown")+" />",ge=" Did you accidentally export a JSX literal instead of a component?"):Pe=typeof I,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Pe,ge)}var ze=wt(I,J,fe,q,re);if(ze==null)return ze;if(me){var Et=J.children;if(Et!==void 0)if(F)if(be(Et)){for(var Rr=0;Rr<Et.length;Rr++)ke(Et[Rr],I);Object.freeze&&Object.freeze(Et)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ke(Et,I)}if(de.call(J,"key")){var vt=_(I),_t=Object.keys(J).filter(function(Kr){return Kr!=="key"}),It=_t.length>0?"{key: someKey, "+_t.join(": ..., ")+": ...}":"{key: someKey}";if(!L[vt+It]){var Mr=_t.length>0?"{"+_t.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s {...props} />
|
|
28
|
+
React keys must be passed directly to JSX without using spread:
|
|
29
|
+
let props = %s;
|
|
30
|
+
<%s key={someKey} {...props} />`,It,vt,Mr,vt),L[vt+It]=!0}}return I===n?ee(ze):je(ze),ze}}function ie(I,J,fe){return H(I,J,fe,!0)}function Oe(I,J,fe){return H(I,J,fe,!1)}var Me=Oe,lt=ie;yn.Fragment=n,yn.jsx=Me,yn.jsxs=lt}()),yn}var bc;function Lm(){return bc||(bc=1,process.env.NODE_ENV==="production"?ao.exports=Mm():ao.exports=Dm()),ao.exports}var A=Lm(),yi,xc;function Fm(){if(xc)return yi;xc=1;function e(){this.__data__=[],this.size=0}return yi=e,yi}var vi,Oc;function so(){if(Oc)return vi;Oc=1;function e(t,r){return t===r||t!==t&&r!==r}return vi=e,vi}var bi,Ec;function lo(){if(Ec)return bi;Ec=1;var e=so();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return bi=t,bi}var xi,Cc;function Bm(){if(Cc)return xi;Cc=1;var e=lo(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,l=e(a,i);if(l<0)return!1;var s=a.length-1;return l==s?a.pop():r.call(a,l,1),--this.size,!0}return xi=n,xi}var Oi,Sc;function qm(){if(Sc)return Oi;Sc=1;var e=lo();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Oi=t,Oi}var Ei,Tc;function zm(){if(Tc)return Ei;Tc=1;var e=lo();function t(r){return e(this.__data__,r)>-1}return Ei=t,Ei}var Ci,wc;function Vm(){if(wc)return Ci;wc=1;var e=lo();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Ci=t,Ci}var Si,Rc;function co(){if(Rc)return Si;Rc=1;var e=Fm(),t=Bm(),r=qm(),n=zm(),i=Vm();function a(l){var s=-1,c=l==null?0:l.length;for(this.clear();++s<c;){var u=l[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Si=a,Si}var Ti,_c;function Um(){if(_c)return Ti;_c=1;var e=co();function t(){this.__data__=new e,this.size=0}return Ti=t,Ti}var wi,Pc;function Wm(){if(Pc)return wi;Pc=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return wi=e,wi}var Ri,Ic;function Hm(){if(Ic)return Ri;Ic=1;function e(t){return this.__data__.get(t)}return Ri=e,Ri}var _i,kc;function Gm(){if(kc)return _i;kc=1;function e(t){return this.__data__.has(t)}return _i=e,_i}var Pi,jc;function Ac(){if(jc)return Pi;jc=1;var e=typeof io=="object"&&io&&io.Object===Object&&io;return Pi=e,Pi}var Ii,Nc;function ar(){if(Nc)return Ii;Nc=1;var e=Ac(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ii=r,Ii}var ki,$c;function ji(){if($c)return ki;$c=1;var e=ar(),t=e.Symbol;return ki=t,ki}var Ai,Mc;function Km(){if(Mc)return Ai;Mc=1;var e=ji(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(l){var s=r.call(l,i),c=l[i];try{l[i]=void 0;var u=!0}catch{}var f=n.call(l);return u&&(s?l[i]=c:delete l[i]),f}return Ai=a,Ai}var Ni,Dc;function Ym(){if(Dc)return Ni;Dc=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ni=r,Ni}var $i,Lc;function vn(){if(Lc)return $i;Lc=1;var e=ji(),t=Km(),r=Ym(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function l(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return $i=l,$i}var Mi,Fc;function xr(){if(Fc)return Mi;Fc=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Mi=e,Mi}var Di,Bc;function Li(){if(Bc)return Di;Bc=1;var e=vn(),t=xr(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function l(s){if(!t(s))return!1;var c=e(s);return c==n||c==i||c==r||c==a}return Di=l,Di}var Fi,qc;function Xm(){if(qc)return Fi;qc=1;var e=ar(),t=e["__core-js_shared__"];return Fi=t,Fi}var Bi,zc;function Jm(){if(zc)return Bi;zc=1;var e=Xm(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return Bi=r,Bi}var qi,Vc;function Uc(){if(Vc)return qi;Vc=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return qi=r,qi}var zi,Wc;function Qm(){if(Wc)return zi;Wc=1;var e=Li(),t=Jm(),r=xr(),n=Uc(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,l=Function.prototype,s=Object.prototype,c=l.toString,u=s.hasOwnProperty,f=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(y){if(!r(y)||t(y))return!1;var m=e(y)?f:a;return m.test(n(y))}return zi=h,zi}var Vi,Hc;function Zm(){if(Hc)return Vi;Hc=1;function e(t,r){return t==null?void 0:t[r]}return Vi=e,Vi}var Ui,Gc;function Fr(){if(Gc)return Ui;Gc=1;var e=Qm(),t=Zm();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Ui=r,Ui}var Wi,Kc;function Hi(){if(Kc)return Wi;Kc=1;var e=Fr(),t=ar(),r=e(t,"Map");return Wi=r,Wi}var Gi,Yc;function uo(){if(Yc)return Gi;Yc=1;var e=Fr(),t=e(Object,"create");return Gi=t,Gi}var Ki,Xc;function eg(){if(Xc)return Ki;Xc=1;var e=uo();function t(){this.__data__=e?e(null):{},this.size=0}return Ki=t,Ki}var Yi,Jc;function tg(){if(Jc)return Yi;Jc=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Yi=e,Yi}var Xi,Qc;function rg(){if(Qc)return Xi;Qc=1;var e=uo(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var l=this.__data__;if(e){var s=l[a];return s===t?void 0:s}return n.call(l,a)?l[a]:void 0}return Xi=i,Xi}var Ji,Zc;function ng(){if(Zc)return Ji;Zc=1;var e=uo(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Ji=n,Ji}var Qi,eu;function og(){if(eu)return Qi;eu=1;var e=uo(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Qi=r,Qi}var Zi,tu;function ig(){if(tu)return Zi;tu=1;var e=eg(),t=tg(),r=rg(),n=ng(),i=og();function a(l){var s=-1,c=l==null?0:l.length;for(this.clear();++s<c;){var u=l[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Zi=a,Zi}var ea,ru;function ag(){if(ru)return ea;ru=1;var e=ig(),t=co(),r=Hi();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return ea=n,ea}var ta,nu;function sg(){if(nu)return ta;nu=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return ta=e,ta}var ra,ou;function po(){if(ou)return ra;ou=1;var e=sg();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return ra=t,ra}var na,iu;function lg(){if(iu)return na;iu=1;var e=po();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return na=t,na}var oa,au;function cg(){if(au)return oa;au=1;var e=po();function t(r){return e(this,r).get(r)}return oa=t,oa}var ia,su;function ug(){if(su)return ia;su=1;var e=po();function t(r){return e(this,r).has(r)}return ia=t,ia}var aa,lu;function pg(){if(lu)return aa;lu=1;var e=po();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return aa=t,aa}var sa,cu;function fg(){if(cu)return sa;cu=1;var e=ag(),t=lg(),r=cg(),n=ug(),i=pg();function a(l){var s=-1,c=l==null?0:l.length;for(this.clear();++s<c;){var u=l[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,sa=a,sa}var la,uu;function dg(){if(uu)return la;uu=1;var e=co(),t=Hi(),r=fg(),n=200;function i(a,l){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<n-1)return c.push([a,l]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(a,l),this.size=s.size,this}return la=i,la}var ca,pu;function fu(){if(pu)return ca;pu=1;var e=co(),t=Um(),r=Wm(),n=Hm(),i=Gm(),a=dg();function l(s){var c=this.__data__=new e(s);this.size=c.size}return l.prototype.clear=t,l.prototype.delete=r,l.prototype.get=n,l.prototype.has=i,l.prototype.set=a,ca=l,ca}var ua,du;function hu(){if(du)return ua;du=1;var e=Fr(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return ua=t,ua}var pa,mu;function fa(){if(mu)return pa;mu=1;var e=hu();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return pa=t,pa}var da,gu;function yu(){if(gu)return da;gu=1;var e=fa(),t=so();function r(n,i,a){(a!==void 0&&!t(n[i],a)||a===void 0&&!(i in n))&&e(n,i,a)}return da=r,da}var ha,vu;function hg(){if(vu)return ha;vu=1;function e(t){return function(r,n,i){for(var a=-1,l=Object(r),s=i(r),c=s.length;c--;){var u=s[t?c:++a];if(n(l[u],u,l)===!1)break}return r}}return ha=e,ha}var ma,bu;function mg(){if(bu)return ma;bu=1;var e=hg(),t=e();return ma=t,ma}var bn={exports:{}};bn.exports;var xu;function Ou(){return xu||(xu=1,function(e,t){var r=ar(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,l=a?r.Buffer:void 0,s=l?l.allocUnsafe:void 0;function c(u,f){if(f)return u.slice();var h=u.length,y=s?s(h):new u.constructor(h);return u.copy(y),y}e.exports=c}(bn,bn.exports)),bn.exports}var ga,Eu;function gg(){if(Eu)return ga;Eu=1;var e=ar(),t=e.Uint8Array;return ga=t,ga}var ya,Cu;function va(){if(Cu)return ya;Cu=1;var e=gg();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return ya=t,ya}var ba,Su;function Tu(){if(Su)return ba;Su=1;var e=va();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return ba=t,ba}var xa,wu;function Ru(){if(wu)return xa;wu=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return xa=e,xa}var Oa,_u;function yg(){if(_u)return Oa;_u=1;var e=xr(),t=Object.create,r=function(){function n(){}return function(i){if(!e(i))return{};if(t)return t(i);n.prototype=i;var a=new n;return n.prototype=void 0,a}}();return Oa=r,Oa}var Ea,Pu;function Iu(){if(Pu)return Ea;Pu=1;function e(t,r){return function(n){return t(r(n))}}return Ea=e,Ea}var Ca,ku;function Sa(){if(ku)return Ca;ku=1;var e=Iu(),t=e(Object.getPrototypeOf,Object);return Ca=t,Ca}var Ta,ju;function wa(){if(ju)return Ta;ju=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Ta=t,Ta}var Ra,Au;function Nu(){if(Au)return Ra;Au=1;var e=yg(),t=Sa(),r=wa();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return Ra=n,Ra}var _a,$u;function Br(){if($u)return _a;$u=1;function e(t){return t!=null&&typeof t=="object"}return _a=e,_a}var Pa,Mu;function vg(){if(Mu)return Pa;Mu=1;var e=vn(),t=Br(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Pa=n,Pa}var Ia,Du;function Lu(){if(Du)return Ia;Du=1;var e=vg(),t=Br(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(l){return t(l)&&n.call(l,"callee")&&!i.call(l,"callee")};return Ia=a,Ia}var ka,Fu;function fo(){if(Fu)return ka;Fu=1;var e=Array.isArray;return ka=e,ka}var ja,Bu;function qu(){if(Bu)return ja;Bu=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return ja=t,ja}var Aa,zu;function ho(){if(zu)return Aa;zu=1;var e=Li(),t=qu();function r(n){return n!=null&&t(n.length)&&!e(n)}return Aa=r,Aa}var Na,Vu;function bg(){if(Vu)return Na;Vu=1;var e=ho(),t=Br();function r(n){return t(n)&&e(n)}return Na=r,Na}var xn={exports:{}},$a,Uu;function xg(){if(Uu)return $a;Uu=1;function e(){return!1}return $a=e,$a}xn.exports;var Wu;function Ma(){return Wu||(Wu=1,function(e,t){var r=ar(),n=xg(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,l=a&&a.exports===i,s=l?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u}(xn,xn.exports)),xn.exports}var Da,Hu;function Og(){if(Hu)return Da;Hu=1;var e=vn(),t=Sa(),r=Br(),n="[object Object]",i=Function.prototype,a=Object.prototype,l=i.toString,s=a.hasOwnProperty,c=l.call(Object);function u(f){if(!r(f)||e(f)!=n)return!1;var h=t(f);if(h===null)return!0;var y=s.call(h,"constructor")&&h.constructor;return typeof y=="function"&&y instanceof y&&l.call(y)==c}return Da=u,Da}var La,Gu;function Eg(){if(Gu)return La;Gu=1;var e=vn(),t=qu(),r=Br(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",l="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",f="[object Number]",h="[object Object]",y="[object RegExp]",m="[object Set]",x="[object String]",d="[object WeakMap]",v="[object ArrayBuffer]",E="[object DataView]",R="[object Float32Array]",S="[object Float64Array]",T="[object Int8Array]",w="[object Int16Array]",N="[object Int32Array]",M="[object Uint8Array]",O="[object Uint8ClampedArray]",g="[object Uint16Array]",p="[object Uint32Array]",b={};b[R]=b[S]=b[T]=b[w]=b[N]=b[M]=b[O]=b[g]=b[p]=!0,b[n]=b[i]=b[v]=b[a]=b[E]=b[l]=b[s]=b[c]=b[u]=b[f]=b[h]=b[y]=b[m]=b[x]=b[d]=!1;function C(_){return r(_)&&t(_.length)&&!!b[e(_)]}return La=C,La}var Fa,Ku;function Ba(){if(Ku)return Fa;Ku=1;function e(t){return function(r){return t(r)}}return Fa=e,Fa}var On={exports:{}};On.exports;var Yu;function qa(){return Yu||(Yu=1,function(e,t){var r=Ac(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,l=a&&r.process,s=function(){try{var c=i&&i.require&&i.require("util").types;return c||l&&l.binding&&l.binding("util")}catch{}}();e.exports=s}(On,On.exports)),On.exports}var za,Xu;function Ju(){if(Xu)return za;Xu=1;var e=Eg(),t=Ba(),r=qa(),n=r&&r.isTypedArray,i=n?t(n):e;return za=i,za}var Va,Qu;function Zu(){if(Qu)return Va;Qu=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return Va=e,Va}var Ua,ep;function tp(){if(ep)return Ua;ep=1;var e=fa(),t=so(),r=Object.prototype,n=r.hasOwnProperty;function i(a,l,s){var c=a[l];(!(n.call(a,l)&&t(c,s))||s===void 0&&!(l in a))&&e(a,l,s)}return Ua=i,Ua}var Wa,rp;function Xr(){if(rp)return Wa;rp=1;var e=tp(),t=fa();function r(n,i,a,l){var s=!a;a||(a={});for(var c=-1,u=i.length;++c<u;){var f=i[c],h=l?l(a[f],n[f],f,a,n):void 0;h===void 0&&(h=n[f]),s?t(a,f,h):e(a,f,h)}return a}return Wa=r,Wa}var Ha,np;function Cg(){if(np)return Ha;np=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Ha=e,Ha}var Ga,op;function ip(){if(op)return Ga;op=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Ga=r,Ga}var Ka,ap;function sp(){if(ap)return Ka;ap=1;var e=Cg(),t=Lu(),r=fo(),n=Ma(),i=ip(),a=Ju(),l=Object.prototype,s=l.hasOwnProperty;function c(u,f){var h=r(u),y=!h&&t(u),m=!h&&!y&&n(u),x=!h&&!y&&!m&&a(u),d=h||y||m||x,v=d?e(u.length,String):[],E=v.length;for(var R in u)(f||s.call(u,R))&&!(d&&(R=="length"||m&&(R=="offset"||R=="parent")||x&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||i(R,E)))&&v.push(R);return v}return Ka=c,Ka}var Ya,lp;function Sg(){if(lp)return Ya;lp=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return Ya=e,Ya}var Xa,cp;function Tg(){if(cp)return Xa;cp=1;var e=xr(),t=wa(),r=Sg(),n=Object.prototype,i=n.hasOwnProperty;function a(l){if(!e(l))return r(l);var s=t(l),c=[];for(var u in l)u=="constructor"&&(s||!i.call(l,u))||c.push(u);return c}return Xa=a,Xa}var Ja,up;function Jr(){if(up)return Ja;up=1;var e=sp(),t=Tg(),r=ho();function n(i){return r(i)?e(i,!0):t(i)}return Ja=n,Ja}var Qa,pp;function wg(){if(pp)return Qa;pp=1;var e=Xr(),t=Jr();function r(n){return e(n,t(n))}return Qa=r,Qa}var Za,fp;function Rg(){if(fp)return Za;fp=1;var e=yu(),t=Ou(),r=Tu(),n=Ru(),i=Nu(),a=Lu(),l=fo(),s=bg(),c=Ma(),u=Li(),f=xr(),h=Og(),y=Ju(),m=Zu(),x=wg();function d(v,E,R,S,T,w,N){var M=m(v,R),O=m(E,R),g=N.get(O);if(g){e(v,R,g);return}var p=w?w(M,O,R+"",v,E,N):void 0,b=p===void 0;if(b){var C=l(O),_=!C&&c(O),P=!C&&!_&&y(O);p=O,C||_||P?l(M)?p=M:s(M)?p=n(M):_?(b=!1,p=t(O,!0)):P?(b=!1,p=r(O,!0)):p=[]:h(O)||a(O)?(p=M,a(M)?p=x(M):(!f(M)||u(M))&&(p=i(O))):b=!1}b&&(N.set(O,p),T(p,O,S,w,N),N.delete(O)),e(v,R,p)}return Za=d,Za}var es,dp;function _g(){if(dp)return es;dp=1;var e=fu(),t=yu(),r=mg(),n=Rg(),i=xr(),a=Jr(),l=Zu();function s(c,u,f,h,y){c!==u&&r(u,function(m,x){if(y||(y=new e),i(m))n(c,u,x,f,s,h,y);else{var d=h?h(l(c,x),m,x+"",c,u,y):void 0;d===void 0&&(d=m),t(c,x,d)}},a)}return es=s,es}var ts,hp;function mp(){if(hp)return ts;hp=1;function e(t){return t}return ts=e,ts}var rs,gp;function Pg(){if(gp)return rs;gp=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return rs=e,rs}var ns,yp;function Ig(){if(yp)return ns;yp=1;var e=Pg(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var l=arguments,s=-1,c=t(l.length-i,0),u=Array(c);++s<c;)u[s]=l[i+s];s=-1;for(var f=Array(i+1);++s<i;)f[s]=l[s];return f[i]=a(u),e(n,this,f)}}return ns=r,ns}var os,vp;function kg(){if(vp)return os;vp=1;function e(t){return function(){return t}}return os=e,os}var is,bp;function jg(){if(bp)return is;bp=1;var e=kg(),t=hu(),r=mp(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return is=n,is}var as,xp;function Ag(){if(xp)return as;xp=1;var e=800,t=16,r=Date.now;function n(i){var a=0,l=0;return function(){var s=r(),c=t-(s-l);if(l=s,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return as=n,as}var ss,Op;function Ng(){if(Op)return ss;Op=1;var e=jg(),t=Ag(),r=t(e);return ss=r,ss}var ls,Ep;function $g(){if(Ep)return ls;Ep=1;var e=mp(),t=Ig(),r=Ng();function n(i,a){return r(t(i,a,e),i+"")}return ls=n,ls}var cs,Cp;function Mg(){if(Cp)return cs;Cp=1;var e=so(),t=ho(),r=ip(),n=xr();function i(a,l,s){if(!n(s))return!1;var c=typeof l;return(c=="number"?t(s)&&r(l,s.length):c=="string"&&l in s)?e(s[l],a):!1}return cs=i,cs}var us,Sp;function Tp(){if(Sp)return us;Sp=1;var e=$g(),t=Mg();function r(n){return e(function(i,a){var l=-1,s=a.length,c=s>1?a[s-1]:void 0,u=s>2?a[2]:void 0;for(c=n.length>3&&typeof c=="function"?(s--,c):void 0,u&&t(a[0],a[1],u)&&(c=s<3?void 0:c,s=1),i=Object(i);++l<s;){var f=a[l];f&&n(i,f,l,c)}return i})}return us=r,us}var ps,wp;function Dg(){if(wp)return ps;wp=1;var e=_g(),t=Tp(),r=t(function(n,i,a){e(n,i,a)});return ps=r,ps}var Lg=Dg();const Fg=ir(Lg);var fs,Rp;function Bg(){if(Rp)return fs;Rp=1;function e(t){return t==null}return fs=e,fs}var qg=Bg();const _p=ir(qg);var zg=xr();const Vg=ir(zg);var ds,Pp;function Ug(){if(Pp)return ds;Pp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i&&r(t[n],n,t)!==!1;);return t}return ds=e,ds}var hs,Ip;function Wg(){if(Ip)return hs;Ip=1;var e=Iu(),t=e(Object.keys,Object);return hs=t,hs}var ms,kp;function Hg(){if(kp)return ms;kp=1;var e=wa(),t=Wg(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var l=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&l.push(s);return l}return ms=i,ms}var gs,jp;function ys(){if(jp)return gs;jp=1;var e=sp(),t=Hg(),r=ho();function n(i){return r(i)?e(i):t(i)}return gs=n,gs}var vs,Ap;function Gg(){if(Ap)return vs;Ap=1;var e=Xr(),t=ys();function r(n,i){return n&&e(i,t(i),n)}return vs=r,vs}var bs,Np;function Kg(){if(Np)return bs;Np=1;var e=Xr(),t=Jr();function r(n,i){return n&&e(i,t(i),n)}return bs=r,bs}var xs,$p;function Yg(){if($p)return xs;$p=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,l=[];++n<i;){var s=t[n];r(s,n,t)&&(l[a++]=s)}return l}return xs=e,xs}var Os,Mp;function Dp(){if(Mp)return Os;Mp=1;function e(){return[]}return Os=e,Os}var Es,Lp;function Cs(){if(Lp)return Es;Lp=1;var e=Yg(),t=Dp(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(l){return l==null?[]:(l=Object(l),e(i(l),function(s){return n.call(l,s)}))}:t;return Es=a,Es}var Ss,Fp;function Xg(){if(Fp)return Ss;Fp=1;var e=Xr(),t=Cs();function r(n,i){return e(n,t(n),i)}return Ss=r,Ss}var Ts,Bp;function qp(){if(Bp)return Ts;Bp=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Ts=e,Ts}var ws,zp;function Vp(){if(zp)return ws;zp=1;var e=qp(),t=Sa(),r=Cs(),n=Dp(),i=Object.getOwnPropertySymbols,a=i?function(l){for(var s=[];l;)e(s,r(l)),l=t(l);return s}:n;return ws=a,ws}var Rs,Up;function Jg(){if(Up)return Rs;Up=1;var e=Xr(),t=Vp();function r(n,i){return e(n,t(n),i)}return Rs=r,Rs}var _s,Wp;function Hp(){if(Wp)return _s;Wp=1;var e=qp(),t=fo();function r(n,i,a){var l=i(n);return t(n)?l:e(l,a(n))}return _s=r,_s}var Ps,Gp;function Qg(){if(Gp)return Ps;Gp=1;var e=Hp(),t=Cs(),r=ys();function n(i){return e(i,r,t)}return Ps=n,Ps}var Is,Kp;function Zg(){if(Kp)return Is;Kp=1;var e=Hp(),t=Vp(),r=Jr();function n(i){return e(i,r,t)}return Is=n,Is}var ks,Yp;function ey(){if(Yp)return ks;Yp=1;var e=Fr(),t=ar(),r=e(t,"DataView");return ks=r,ks}var js,Xp;function ty(){if(Xp)return js;Xp=1;var e=Fr(),t=ar(),r=e(t,"Promise");return js=r,js}var As,Jp;function ry(){if(Jp)return As;Jp=1;var e=Fr(),t=ar(),r=e(t,"Set");return As=r,As}var Ns,Qp;function ny(){if(Qp)return Ns;Qp=1;var e=Fr(),t=ar(),r=e(t,"WeakMap");return Ns=r,Ns}var $s,Zp;function Ms(){if(Zp)return $s;Zp=1;var e=ey(),t=Hi(),r=ty(),n=ry(),i=ny(),a=vn(),l=Uc(),s="[object Map]",c="[object Object]",u="[object Promise]",f="[object Set]",h="[object WeakMap]",y="[object DataView]",m=l(e),x=l(t),d=l(r),v=l(n),E=l(i),R=a;return(e&&R(new e(new ArrayBuffer(1)))!=y||t&&R(new t)!=s||r&&R(r.resolve())!=u||n&&R(new n)!=f||i&&R(new i)!=h)&&(R=function(S){var T=a(S),w=T==c?S.constructor:void 0,N=w?l(w):"";if(N)switch(N){case m:return y;case x:return s;case d:return u;case v:return f;case E:return h}return T}),$s=R,$s}var Ds,ef;function oy(){if(ef)return Ds;ef=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var i=n.length,a=new n.constructor(i);return i&&typeof n[0]=="string"&&t.call(n,"index")&&(a.index=n.index,a.input=n.input),a}return Ds=r,Ds}var Ls,tf;function iy(){if(tf)return Ls;tf=1;var e=va();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return Ls=t,Ls}var Fs,rf;function ay(){if(rf)return Fs;rf=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return Fs=t,Fs}var Bs,nf;function sy(){if(nf)return Bs;nf=1;var e=ji(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return Bs=n,Bs}var qs,of;function ly(){if(of)return qs;of=1;var e=va(),t=iy(),r=ay(),n=sy(),i=Tu(),a="[object Boolean]",l="[object Date]",s="[object Map]",c="[object Number]",u="[object RegExp]",f="[object Set]",h="[object String]",y="[object Symbol]",m="[object ArrayBuffer]",x="[object DataView]",d="[object Float32Array]",v="[object Float64Array]",E="[object Int8Array]",R="[object Int16Array]",S="[object Int32Array]",T="[object Uint8Array]",w="[object Uint8ClampedArray]",N="[object Uint16Array]",M="[object Uint32Array]";function O(g,p,b){var C=g.constructor;switch(p){case m:return e(g);case a:case l:return new C(+g);case x:return t(g,b);case d:case v:case E:case R:case S:case T:case w:case N:case M:return i(g,b);case s:return new C;case c:case h:return new C(g);case u:return r(g);case f:return new C;case y:return n(g)}}return qs=O,qs}var zs,af;function cy(){if(af)return zs;af=1;var e=Ms(),t=Br(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return zs=n,zs}var Vs,sf;function uy(){if(sf)return Vs;sf=1;var e=cy(),t=Ba(),r=qa(),n=r&&r.isMap,i=n?t(n):e;return Vs=i,Vs}var Us,lf;function py(){if(lf)return Us;lf=1;var e=Ms(),t=Br(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return Us=n,Us}var Ws,cf;function fy(){if(cf)return Ws;cf=1;var e=py(),t=Ba(),r=qa(),n=r&&r.isSet,i=n?t(n):e;return Ws=i,Ws}var Hs,uf;function dy(){if(uf)return Hs;uf=1;var e=fu(),t=Ug(),r=tp(),n=Gg(),i=Kg(),a=Ou(),l=Ru(),s=Xg(),c=Jg(),u=Qg(),f=Zg(),h=Ms(),y=oy(),m=ly(),x=Nu(),d=fo(),v=Ma(),E=uy(),R=xr(),S=fy(),T=ys(),w=Jr(),N=1,M=2,O=4,g="[object Arguments]",p="[object Array]",b="[object Boolean]",C="[object Date]",_="[object Error]",P="[object Function]",k="[object GeneratorFunction]",D="[object Map]",W="[object Number]",Z="[object Object]",G="[object RegExp]",B="[object Set]",Y="[object String]",ae="[object Symbol]",oe="[object WeakMap]",ne="[object ArrayBuffer]",ue="[object DataView]",ce="[object Float32Array]",ye="[object Float64Array]",se="[object Int8Array]",le="[object Int16Array]",te="[object Int32Array]",ve="[object Uint8Array]",X="[object Uint8ClampedArray]",Re="[object Uint16Array]",z="[object Uint32Array]",pe={};pe[g]=pe[p]=pe[ne]=pe[ue]=pe[b]=pe[C]=pe[ce]=pe[ye]=pe[se]=pe[le]=pe[te]=pe[D]=pe[W]=pe[Z]=pe[G]=pe[B]=pe[Y]=pe[ae]=pe[ve]=pe[X]=pe[Re]=pe[z]=!0,pe[_]=pe[P]=pe[oe]=!1;function de(Ce,Te,$e,He,Ne,be){var Fe,Ye=Te&N,ht=Te&M,Ct=Te&O;if($e&&(Fe=Ne?$e(Ce,He,Ne,be):$e(Ce)),Fe!==void 0)return Fe;if(!R(Ce))return Ce;var pt=d(Ce);if(pt){if(Fe=y(Ce),!Ye)return l(Ce,Fe)}else{var Ue=h(Ce),Be=Ue==P||Ue==k;if(v(Ce))return a(Ce,Ye);if(Ue==Z||Ue==g||Be&&!Ne){if(Fe=ht||Be?{}:x(Ce),!Ye)return ht?c(Ce,i(Fe,Ce)):s(Ce,n(Fe,Ce))}else{if(!pe[Ue])return Ne?Ce:{};Fe=m(Ce,Ue,Ye)}}be||(be=new e);var st=be.get(Ce);if(st)return st;be.set(Ce,Fe),S(Ce)?Ce.forEach(function(mt){Fe.add(de(mt,Te,$e,mt,Ce,be))}):E(Ce)&&Ce.forEach(function(mt,ft){Fe.set(ft,de(mt,Te,$e,ft,Ce,be))});var De=Ct?ht?f:u:ht?w:T,Ze=pt?void 0:De(Ce);return t(Ze||Ce,function(mt,ft){Ze&&(ft=mt,mt=Ce[ft]),r(Fe,ft,de(mt,Te,$e,ft,Ce,be))}),Fe}return Hs=de,Hs}var Gs,pf;function hy(){if(pf)return Gs;pf=1;var e=dy(),t=1,r=4;function n(i){return e(i,t|r)}return Gs=n,Gs}var my=hy();const Ks=ir(my);var Ys,ff;function gy(){if(ff)return Ys;ff=1;var e=Xr(),t=Tp(),r=Jr(),n=t(function(i,a){e(a,r(a),i)});return Ys=n,Ys}var Xs,df;function yy(){return df||(df=1,Xs=gy()),Xs}var vy=yy();const by=ir(vy);var Js,hf;function xy(){if(hf)return Js;hf=1;function e(t){return t===void 0}return Js=e,Js}var Oy=xy();const Ey=ir(Oy);var Qs={},mf;function Cy(){return mf||(mf=1,function(e){(function(t){var r={"'":/\\\'/g,'"':/\\\"/g},n={parse:function(i){if(typeof i!="string")throw new TypeError("ObjectPath.parse must be passed a string");for(var a=0,l=[],s,c,u,f;a<i.length;)if(s=i.indexOf(".",a),c=i.indexOf("[",a),s===-1&&c===-1)l.push(i.slice(a,i.length)),a=i.length;else if(c===-1||s!==-1&&s<c)l.push(i.slice(a,s)),a=s+1;else if(c>a&&(l.push(i.slice(a,c)),a=c),u=i.slice(c+1,c+2),u!=='"'&&u!=="'")f=i.indexOf("]",c),f===-1&&(f=i.length),l.push(i.slice(a+1,f)),a=i.slice(f+1,f+2)==="."?f+2:f+1;else{for(f=i.indexOf(u+"]",c),f===-1&&(f=i.length);i.slice(f-1,f)==="\\"&&c<i.length;)c++,f=i.indexOf(u+"]",c);l.push(i.slice(a+2,f).replace(r[u],u).replace(/\\+/g,function(h){return new Array(Math.ceil(h.length/2)+1).join("\\")})),a=i.slice(f+2,f+3)==="."?f+3:f+2}return l},stringify:function(i,a,l){Array.isArray(i)||(i=[i]),a=a==='"'?'"':"'";var s=new RegExp("(\\\\|"+a+")","g");return i.map(function(c,u){let f=c.toString();return!l&&/^[A-z_]\w*$/.exec(f)?u!==0?"."+f:f:!l&&/^\d+$/.exec(f)?"["+f+"]":(f=f.replace(s,"\\$1"),"["+a+f+a+"]")}).join("")},normalize:function(i,a,l){return n.stringify(Array.isArray(i)?i:n.parse(i),a,l)},registerModule:function(i){i.module("ObjectPath",[]).provider("ObjectPath",function(){this.parse=n.parse,this.stringify=n.stringify,this.normalize=n.normalize,this.$get=function(){return n}})}};e.ObjectPath=n})()}(Qs)),Qs}var Zs,gf;function Sy(){return gf||(gf=1,Zs=Cy().ObjectPath),Zs}var Ty=Sy();const kt=ir(Ty);var mo={exports:{}},wy=mo.exports,yf;function Ry(){return yf||(yf=1,function(e){(function(t,r){e.exports?e.exports=r():t.tv4=r()})(wy,function(){Object.keys||(Object.keys=function(){var O=Object.prototype.hasOwnProperty,g=!{toString:null}.propertyIsEnumerable("toString"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],b=p.length;return function(C){if(typeof C!="object"&&typeof C!="function"||C===null)throw new TypeError("Object.keys called on non-object");var _=[];for(var P in C)O.call(C,P)&&_.push(P);if(g)for(var k=0;k<b;k++)O.call(C,p[k])&&_.push(p[k]);return _}}()),Object.create||(Object.create=function(){function O(){}return function(g){if(arguments.length!==1)throw new Error("Object.create implementation only accepts one parameter.");return O.prototype=g,new O}}()),Array.isArray||(Array.isArray=function(O){return Object.prototype.toString.call(O)==="[object Array]"}),Array.prototype.indexOf||(Array.prototype.indexOf=function(O){if(this===null)throw new TypeError;var g=Object(this),p=g.length>>>0;if(p===0)return-1;var b=0;if(arguments.length>1&&(b=Number(arguments[1]),b!==b?b=0:b!==0&&b!==1/0&&b!==-1/0&&(b=(b>0||-1)*Math.floor(Math.abs(b)))),b>=p)return-1;for(var C=b>=0?b:Math.max(p-Math.abs(b),0);C<p;C++)if(C in g&&g[C]===O)return C;return-1}),Object.isFrozen||(Object.isFrozen=function(O){for(var g="tv4_test_frozen_key";O.hasOwnProperty(g);)g+=Math.random();try{return O[g]=!0,delete O[g],!1}catch{return!0}});var t={"+":!0,"#":!0,".":!0,"/":!0,";":!0,"?":!0,"&":!0},r={"*":!0};function n(O){return encodeURI(O).replace(/%25[0-9][0-9]/g,function(g){return"%"+g.substring(3)})}function i(O){var g="";t[O.charAt(0)]&&(g=O.charAt(0),O=O.substring(1));var p="",b="",C=!0,_=!1,P=!1;g==="+"?C=!1:g==="."?(b=".",p="."):g==="/"?(b="/",p="/"):g==="#"?(b="#",C=!1):g===";"?(b=";",p=";",_=!0,P=!0):g==="?"?(b="?",p="&",_=!0):g==="&"&&(b="&",p="&",_=!0);for(var k=[],D=O.split(","),W=[],Z=0;Z<D.length;Z++){var G=D[Z],B=null;if(G.indexOf(":")!==-1){var Y=G.split(":");G=Y[0],B=parseInt(Y[1],10)}for(var ae={};r[G.charAt(G.length-1)];)ae[G.charAt(G.length-1)]=!0,G=G.substring(0,G.length-1);var oe={truncate:B,name:G,suffices:ae};W.push(oe),k.push(G)}var ne=function(ue){for(var ce="",ye=0,se=0;se<W.length;se++){var le=W[se],te=ue(le.name);if(te==null||Array.isArray(te)&&te.length===0||typeof te=="object"&&Object.keys(te).length===0){ye++;continue}if(se===ye?ce+=b:ce+=p||",",Array.isArray(te)){_&&(ce+=le.name+"=");for(var ve=0;ve<te.length;ve++)ve>0&&(ce+=le.suffices["*"]&&p||",",le.suffices["*"]&&_&&(ce+=le.name+"=")),ce+=C?encodeURIComponent(te[ve]).replace(/!/g,"%21"):n(te[ve])}else if(typeof te=="object"){_&&!le.suffices["*"]&&(ce+=le.name+"=");var X=!0;for(var Re in te)X||(ce+=le.suffices["*"]&&p||","),X=!1,ce+=C?encodeURIComponent(Re).replace(/!/g,"%21"):n(Re),ce+=le.suffices["*"]?"=":",",ce+=C?encodeURIComponent(te[Re]).replace(/!/g,"%21"):n(te[Re])}else _&&(ce+=le.name,(!P||te!=="")&&(ce+="=")),le.truncate!=null&&(te=te.substring(0,le.truncate)),ce+=C?encodeURIComponent(te).replace(/!/g,"%21"):n(te)}return ce};return ne.varNames=k,{prefix:b,substitution:ne}}function a(O){if(!(this instanceof a))return new a(O);for(var g=O.split("{"),p=[g.shift()],b=[],C=[],_=[];g.length>0;){var P=g.shift(),k=P.split("}")[0],D=P.substring(k.length+1),W=i(k);C.push(W.substitution),b.push(W.prefix),p.push(D),_=_.concat(W.substitution.varNames)}this.fill=function(Z){for(var G=p[0],B=0;B<C.length;B++){var Y=C[B];G+=Y(Z),G+=p[B+1]}return G},this.varNames=_,this.template=O}a.prototype={toString:function(){return this.template},fillFromObject:function(O){return this.fill(function(g){return O[g]})}};var l=function(g,p,b,C,_){if(this.missing=[],this.missingMap={},this.formatValidators=g?Object.create(g.formatValidators):{},this.schemas=g?Object.create(g.schemas):{},this.collectMultiple=p,this.errors=[],this.handleError=p?this.collectError:this.returnError,C&&(this.checkRecursive=!0,this.scanned=[],this.scannedFrozen=[],this.scannedFrozenSchemas=[],this.scannedFrozenValidationErrors=[],this.validatedSchemasKey="tv4_validation_id",this.validationErrorsKey="tv4_validation_errors_id"),_&&(this.trackUnknownProperties=!0,this.knownPropertyPaths={},this.unknownPropertyPaths={}),this.errorReporter=b||x("en"),typeof this.errorReporter=="string")throw new Error("debug");if(this.definedKeywords={},g)for(var P in g.definedKeywords)this.definedKeywords[P]=g.definedKeywords[P].slice(0)};l.prototype.defineKeyword=function(O,g){this.definedKeywords[O]=this.definedKeywords[O]||[],this.definedKeywords[O].push(g)},l.prototype.createError=function(O,g,p,b,C,_,P){var k=new S(O,g,p,b,C);return k.message=this.errorReporter(k,_,P),k},l.prototype.returnError=function(O){return O},l.prototype.collectError=function(O){return O&&this.errors.push(O),null},l.prototype.prefixErrors=function(O,g,p){for(var b=O;b<this.errors.length;b++)this.errors[b]=this.errors[b].prefixWith(g,p);return this},l.prototype.banUnknownProperties=function(O,g){for(var p in this.unknownPropertyPaths){var b=this.createError(d.UNKNOWN_PROPERTY,{path:p},p,"",null,O,g),C=this.handleError(b);if(C)return C}return null},l.prototype.addFormat=function(O,g){if(typeof O=="object"){for(var p in O)this.addFormat(p,O[p]);return this}this.formatValidators[O]=g},l.prototype.resolveRefs=function(O,g){if(O.$ref!==void 0){if(g=g||{},g[O.$ref])return this.createError(d.CIRCULAR_REFERENCE,{urls:Object.keys(g).join(", ")},"","",null,void 0,O);g[O.$ref]=!0,O=this.getSchema(O.$ref,g)}return O},l.prototype.getSchema=function(O,g){var p;if(this.schemas[O]!==void 0)return p=this.schemas[O],this.resolveRefs(p,g);var b=O,C="";if(O.indexOf("#")!==-1&&(C=O.substring(O.indexOf("#")+1),b=O.substring(0,O.indexOf("#"))),typeof this.schemas[b]=="object"){p=this.schemas[b];var _=decodeURIComponent(C);if(_==="")return this.resolveRefs(p,g);if(_.charAt(0)!=="/")return;for(var P=_.split("/").slice(1),k=0;k<P.length;k++){var D=P[k].replace(/~1/g,"/").replace(/~0/g,"~");if(p[D]===void 0){p=void 0;break}p=p[D]}if(p!==void 0)return this.resolveRefs(p,g)}this.missing[b]===void 0&&(this.missing.push(b),this.missing[b]=b,this.missingMap[b]=b)},l.prototype.searchSchemas=function(O,g){if(Array.isArray(O))for(var p=0;p<O.length;p++)this.searchSchemas(O[p],g);else if(O&&typeof O=="object"){typeof O.id=="string"&&T(g,O.id)&&this.schemas[O.id]===void 0&&(this.schemas[O.id]=O);for(var b in O)if(b!=="enum"){if(typeof O[b]=="object")this.searchSchemas(O[b],g);else if(b==="$ref"){var C=y(O[b]);C&&this.schemas[C]===void 0&&this.missingMap[C]===void 0&&(this.missingMap[C]=C)}}}},l.prototype.addSchema=function(O,g){if(typeof O!="string"||typeof g>"u")if(typeof O=="object"&&typeof O.id=="string")g=O,O=g.id;else return;O===y(O)+"#"&&(O=y(O)),this.schemas[O]=g,delete this.missingMap[O],m(g,O),this.searchSchemas(g,O)},l.prototype.getSchemaMap=function(){var O={};for(var g in this.schemas)O[g]=this.schemas[g];return O},l.prototype.getSchemaUris=function(O){var g=[];for(var p in this.schemas)(!O||O.test(p))&&g.push(p);return g},l.prototype.getMissingUris=function(O){var g=[];for(var p in this.missingMap)(!O||O.test(p))&&g.push(p);return g},l.prototype.dropSchemas=function(){this.schemas={},this.reset()},l.prototype.reset=function(){this.missing=[],this.missingMap={},this.errors=[]},l.prototype.validateAll=function(O,g,p,b,C){var _;if(g=this.resolveRefs(g),g){if(g instanceof S)return this.errors.push(g),g}else return null;var P=this.errors.length,k,D=null,W=null;if(this.checkRecursive&&O&&typeof O=="object"){if(_=!this.scanned.length,O[this.validatedSchemasKey]){var Z=O[this.validatedSchemasKey].indexOf(g);if(Z!==-1)return this.errors=this.errors.concat(O[this.validationErrorsKey][Z]),null}if(Object.isFrozen(O)&&(k=this.scannedFrozen.indexOf(O),k!==-1)){var G=this.scannedFrozenSchemas[k].indexOf(g);if(G!==-1)return this.errors=this.errors.concat(this.scannedFrozenValidationErrors[k][G]),null}if(this.scanned.push(O),Object.isFrozen(O))k===-1&&(k=this.scannedFrozen.length,this.scannedFrozen.push(O),this.scannedFrozenSchemas.push([])),D=this.scannedFrozenSchemas[k].length,this.scannedFrozenSchemas[k][D]=g,this.scannedFrozenValidationErrors[k][D]=[];else{if(!O[this.validatedSchemasKey])try{Object.defineProperty(O,this.validatedSchemasKey,{value:[],configurable:!0}),Object.defineProperty(O,this.validationErrorsKey,{value:[],configurable:!0})}catch{O[this.validatedSchemasKey]=[],O[this.validationErrorsKey]=[]}W=O[this.validatedSchemasKey].length,O[this.validatedSchemasKey][W]=g,O[this.validationErrorsKey][W]=[]}}var B=this.errors.length,Y=this.validateBasic(O,g,C)||this.validateNumeric(O,g,C)||this.validateString(O,g,C)||this.validateArray(O,g,C)||this.validateObject(O,g,C)||this.validateCombinations(O,g,C)||this.validateHypermedia(O,g,C)||this.validateFormat(O,g,C)||this.validateDefinedKeywords(O,g,C)||null;if(_){for(;this.scanned.length;){var ae=this.scanned.pop();delete ae[this.validatedSchemasKey]}this.scannedFrozen=[],this.scannedFrozenSchemas=[]}if(Y||B!==this.errors.length)for(;p&&p.length||b&&b.length;){var oe=p&&p.length?""+p.pop():null,ne=b&&b.length?""+b.pop():null;Y&&(Y=Y.prefixWith(oe,ne)),this.prefixErrors(B,oe,ne)}return D!==null?this.scannedFrozenValidationErrors[k][D]=this.errors.slice(P):W!==null&&(O[this.validationErrorsKey][W]=this.errors.slice(P)),this.handleError(Y)},l.prototype.validateFormat=function(O,g){if(typeof g.format!="string"||!this.formatValidators[g.format])return null;var p=this.formatValidators[g.format].call(null,O,g);return typeof p=="string"||typeof p=="number"?this.createError(d.FORMAT_CUSTOM,{message:p},"","/format",null,O,g):p&&typeof p=="object"?this.createError(d.FORMAT_CUSTOM,{message:p.message||"?"},p.dataPath||"",p.schemaPath||"/format",null,O,g):null},l.prototype.validateDefinedKeywords=function(O,g,p){for(var b in this.definedKeywords)if(!(typeof g[b]>"u"))for(var C=this.definedKeywords[b],_=0;_<C.length;_++){var P=C[_],k=P(O,g[b],g,p);if(typeof k=="string"||typeof k=="number")return this.createError(d.KEYWORD_CUSTOM,{key:b,message:k},"","",null,O,g).prefixWith(null,b);if(k&&typeof k=="object"){var D=k.code;if(typeof D=="string"){if(!d[D])throw new Error("Undefined error code (use defineError): "+D);D=d[D]}else typeof D!="number"&&(D=d.KEYWORD_CUSTOM);var W=typeof k.message=="object"?k.message:{key:b,message:k.message||"?"},Z=k.schemaPath||"/"+b.replace(/~/g,"~0").replace(/\//g,"~1");return this.createError(D,W,k.dataPath||null,Z,null,O,g)}}return null};function s(O,g){if(O===g)return!0;if(O&&g&&typeof O=="object"&&typeof g=="object"){if(Array.isArray(O)!==Array.isArray(g))return!1;if(Array.isArray(O)){if(O.length!==g.length)return!1;for(var p=0;p<O.length;p++)if(!s(O[p],g[p]))return!1}else{var b;for(b in O)if(g[b]===void 0&&O[b]!==void 0)return!1;for(b in g)if(O[b]===void 0&&g[b]!==void 0)return!1;for(b in O)if(!s(O[b],g[b]))return!1}return!0}return!1}l.prototype.validateBasic=function(g,p,b){var C;return(C=this.validateType(g,p,b))||(C=this.validateEnum(g,p,b))?C.prefixWith(null,"type"):null},l.prototype.validateType=function(g,p){if(p.type===void 0)return null;var b=typeof g;g===null?b="null":Array.isArray(g)&&(b="array");var C=p.type;Array.isArray(C)||(C=[C]);for(var _=0;_<C.length;_++){var P=C[_];if(P===b||P==="integer"&&b==="number"&&g%1===0)return null}return this.createError(d.INVALID_TYPE,{type:b,expected:C.join("/")},"","",null,g,p)},l.prototype.validateEnum=function(g,p){if(p.enum===void 0)return null;for(var b=0;b<p.enum.length;b++){var C=p.enum[b];if(s(g,C))return null}return this.createError(d.ENUM_MISMATCH,{value:typeof JSON<"u"?JSON.stringify(g):g},"","",null,g,p)},l.prototype.validateNumeric=function(g,p,b){return this.validateMultipleOf(g,p,b)||this.validateMinMax(g,p,b)||this.validateNaN(g,p,b)||null};var c=Math.pow(2,-51),u=1-c;l.prototype.validateMultipleOf=function(g,p){var b=p.multipleOf||p.divisibleBy;if(b===void 0)return null;if(typeof g=="number"){var C=g/b%1;if(C>=c&&C<u)return this.createError(d.NUMBER_MULTIPLE_OF,{value:g,multipleOf:b},"","",null,g,p)}return null},l.prototype.validateMinMax=function(g,p){if(typeof g!="number")return null;if(p.minimum!==void 0){if(g<p.minimum)return this.createError(d.NUMBER_MINIMUM,{value:g,minimum:p.minimum},"","/minimum",null,g,p);if(p.exclusiveMinimum&&g===p.minimum)return this.createError(d.NUMBER_MINIMUM_EXCLUSIVE,{value:g,minimum:p.minimum},"","/exclusiveMinimum",null,g,p)}if(p.maximum!==void 0){if(g>p.maximum)return this.createError(d.NUMBER_MAXIMUM,{value:g,maximum:p.maximum},"","/maximum",null,g,p);if(p.exclusiveMaximum&&g===p.maximum)return this.createError(d.NUMBER_MAXIMUM_EXCLUSIVE,{value:g,maximum:p.maximum},"","/exclusiveMaximum",null,g,p)}return null},l.prototype.validateNaN=function(g,p){return typeof g!="number"?null:isNaN(g)===!0||g===1/0||g===-1/0?this.createError(d.NUMBER_NOT_A_NUMBER,{value:g},"","/type",null,g,p):null},l.prototype.validateString=function(g,p,b){return this.validateStringLength(g,p,b)||this.validateStringPattern(g,p,b)||null},l.prototype.validateStringLength=function(g,p){return typeof g!="string"?null:p.minLength!==void 0&&g.length<p.minLength?this.createError(d.STRING_LENGTH_SHORT,{length:g.length,minimum:p.minLength},"","/minLength",null,g,p):p.maxLength!==void 0&&g.length>p.maxLength?this.createError(d.STRING_LENGTH_LONG,{length:g.length,maximum:p.maxLength},"","/maxLength",null,g,p):null},l.prototype.validateStringPattern=function(g,p){if(typeof g!="string"||typeof p.pattern!="string"&&!(p.pattern instanceof RegExp))return null;var b;if(p.pattern instanceof RegExp)b=p.pattern;else{var C,_="",P=p.pattern.match(/^\/(.+)\/([img]*)$/);P?(C=P[1],_=P[2]):C=p.pattern,b=new RegExp(C,_)}return b.test(g)?null:this.createError(d.STRING_PATTERN,{pattern:p.pattern},"","/pattern",null,g,p)},l.prototype.validateArray=function(g,p,b){return Array.isArray(g)&&(this.validateArrayLength(g,p,b)||this.validateArrayUniqueItems(g,p,b)||this.validateArrayItems(g,p,b))||null},l.prototype.validateArrayLength=function(g,p){var b;return p.minItems!==void 0&&g.length<p.minItems&&(b=this.createError(d.ARRAY_LENGTH_SHORT,{length:g.length,minimum:p.minItems},"","/minItems",null,g,p),this.handleError(b))||p.maxItems!==void 0&&g.length>p.maxItems&&(b=this.createError(d.ARRAY_LENGTH_LONG,{length:g.length,maximum:p.maxItems},"","/maxItems",null,g,p),this.handleError(b))?b:null},l.prototype.validateArrayUniqueItems=function(g,p){if(p.uniqueItems){for(var b=0;b<g.length;b++)for(var C=b+1;C<g.length;C++)if(s(g[b],g[C])){var _=this.createError(d.ARRAY_UNIQUE,{match1:b,match2:C},"","/uniqueItems",null,g,p);if(this.handleError(_))return _}}return null},l.prototype.validateArrayItems=function(g,p,b){if(p.items===void 0)return null;var C,_;if(Array.isArray(p.items)){for(_=0;_<g.length;_++)if(_<p.items.length){if(C=this.validateAll(g[_],p.items[_],[_],["items",_],b+"/"+_))return C}else if(p.additionalItems!==void 0){if(typeof p.additionalItems=="boolean"){if(!p.additionalItems&&(C=this.createError(d.ARRAY_ADDITIONAL_ITEMS,{},"/"+_,"/additionalItems",null,g,p),this.handleError(C)))return C}else if(C=this.validateAll(g[_],p.additionalItems,[_],["additionalItems"],b+"/"+_))return C}}else for(_=0;_<g.length;_++)if(C=this.validateAll(g[_],p.items,[_],["items"],b+"/"+_))return C;return null},l.prototype.validateObject=function(g,p,b){return typeof g!="object"||g===null||Array.isArray(g)?null:this.validateObjectMinMaxProperties(g,p,b)||this.validateObjectRequiredProperties(g,p,b)||this.validateObjectProperties(g,p,b)||this.validateObjectDependencies(g,p,b)||null},l.prototype.validateObjectMinMaxProperties=function(g,p){var b=Object.keys(g),C;return p.minProperties!==void 0&&b.length<p.minProperties&&(C=this.createError(d.OBJECT_PROPERTIES_MINIMUM,{propertyCount:b.length,minimum:p.minProperties},"","/minProperties",null,g,p),this.handleError(C))||p.maxProperties!==void 0&&b.length>p.maxProperties&&(C=this.createError(d.OBJECT_PROPERTIES_MAXIMUM,{propertyCount:b.length,maximum:p.maxProperties},"","/maxProperties",null,g,p),this.handleError(C))?C:null},l.prototype.validateObjectRequiredProperties=function(g,p){if(p.required!==void 0)for(var b=0;b<p.required.length;b++){var C=p.required[b];if(g[C]===void 0){var _=this.createError(d.OBJECT_REQUIRED,{key:C},"","/required/"+b,null,g,p);if(this.handleError(_))return _}}return null},l.prototype.validateObjectProperties=function(g,p,b){var C;for(var _ in g){var P=b+"/"+_.replace(/~/g,"~0").replace(/\//g,"~1"),k=!1;if(p.properties!==void 0&&p.properties[_]!==void 0&&(k=!0,C=this.validateAll(g[_],p.properties[_],[_],["properties",_],P)))return C;if(p.patternProperties!==void 0)for(var D in p.patternProperties){var W=new RegExp(D);if(W.test(_)&&(k=!0,C=this.validateAll(g[_],p.patternProperties[D],[_],["patternProperties",D],P)))return C}if(k)this.trackUnknownProperties&&(this.knownPropertyPaths[P]=!0,delete this.unknownPropertyPaths[P]);else if(p.additionalProperties!==void 0){if(this.trackUnknownProperties&&(this.knownPropertyPaths[P]=!0,delete this.unknownPropertyPaths[P]),typeof p.additionalProperties=="boolean"){if(!p.additionalProperties&&(C=this.createError(d.OBJECT_ADDITIONAL_PROPERTIES,{key:_},"","/additionalProperties",null,g,p).prefixWith(_,null),this.handleError(C)))return C}else if(C=this.validateAll(g[_],p.additionalProperties,[_],["additionalProperties"],P))return C}else this.trackUnknownProperties&&!this.knownPropertyPaths[P]&&(this.unknownPropertyPaths[P]=!0)}return null},l.prototype.validateObjectDependencies=function(g,p,b){var C;if(p.dependencies!==void 0){for(var _ in p.dependencies)if(g[_]!==void 0){var P=p.dependencies[_];if(typeof P=="string"){if(g[P]===void 0&&(C=this.createError(d.OBJECT_DEPENDENCY_KEY,{key:_,missing:P},"","",null,g,p).prefixWith(null,_).prefixWith(null,"dependencies"),this.handleError(C)))return C}else if(Array.isArray(P))for(var k=0;k<P.length;k++){var D=P[k];if(g[D]===void 0&&(C=this.createError(d.OBJECT_DEPENDENCY_KEY,{key:_,missing:D},"","/"+k,null,g,p).prefixWith(null,_).prefixWith(null,"dependencies"),this.handleError(C)))return C}else if(C=this.validateAll(g,P,[],["dependencies",_],b))return C}}return null},l.prototype.validateCombinations=function(g,p,b){return this.validateAllOf(g,p,b)||this.validateAnyOf(g,p,b)||this.validateOneOf(g,p,b)||this.validateNot(g,p,b)||null},l.prototype.validateAllOf=function(g,p,b){if(p.allOf===void 0)return null;for(var C,_=0;_<p.allOf.length;_++){var P=p.allOf[_];if(C=this.validateAll(g,P,[],["allOf",_],b))return C}return null},l.prototype.validateAnyOf=function(g,p,b){if(p.anyOf===void 0)return null;var C=[],_=this.errors.length,P,k;this.trackUnknownProperties&&(P=this.unknownPropertyPaths,k=this.knownPropertyPaths);for(var D=!0,W=0;W<p.anyOf.length;W++){this.trackUnknownProperties&&(this.unknownPropertyPaths={},this.knownPropertyPaths={});var Z=p.anyOf[W],G=this.errors.length,B=this.validateAll(g,Z,[],["anyOf",W],b);if(B===null&&G===this.errors.length){if(this.errors=this.errors.slice(0,_),this.trackUnknownProperties){for(var Y in this.knownPropertyPaths)k[Y]=!0,delete P[Y];for(var ae in this.unknownPropertyPaths)k[ae]||(P[ae]=!0);D=!1;continue}return null}B&&C.push(B.prefixWith(null,""+W).prefixWith(null,"anyOf"))}if(this.trackUnknownProperties&&(this.unknownPropertyPaths=P,this.knownPropertyPaths=k),D)return C=C.concat(this.errors.slice(_)),this.errors=this.errors.slice(0,_),this.createError(d.ANY_OF_MISSING,{},"","/anyOf",C,g,p)},l.prototype.validateOneOf=function(g,p,b){if(p.oneOf===void 0)return null;var C=null,_=[],P=this.errors.length,k,D;this.trackUnknownProperties&&(k=this.unknownPropertyPaths,D=this.knownPropertyPaths);for(var W=0;W<p.oneOf.length;W++){this.trackUnknownProperties&&(this.unknownPropertyPaths={},this.knownPropertyPaths={});var Z=p.oneOf[W],G=this.errors.length,B=this.validateAll(g,Z,[],["oneOf",W],b);if(B===null&&G===this.errors.length){if(C===null)C=W;else return this.errors=this.errors.slice(0,P),this.createError(d.ONE_OF_MULTIPLE,{index1:C,index2:W},"","/oneOf",null,g,p);if(this.trackUnknownProperties){for(var Y in this.knownPropertyPaths)D[Y]=!0,delete k[Y];for(var ae in this.unknownPropertyPaths)D[ae]||(k[ae]=!0)}}else B&&_.push(B)}return this.trackUnknownProperties&&(this.unknownPropertyPaths=k,this.knownPropertyPaths=D),C===null?(_=_.concat(this.errors.slice(P)),this.errors=this.errors.slice(0,P),this.createError(d.ONE_OF_MISSING,{},"","/oneOf",_,g,p)):(this.errors=this.errors.slice(0,P),null)},l.prototype.validateNot=function(g,p,b){if(p.not===void 0)return null;var C=this.errors.length,_,P;this.trackUnknownProperties&&(_=this.unknownPropertyPaths,P=this.knownPropertyPaths,this.unknownPropertyPaths={},this.knownPropertyPaths={});var k=this.validateAll(g,p.not,null,null,b),D=this.errors.slice(C);return this.errors=this.errors.slice(0,C),this.trackUnknownProperties&&(this.unknownPropertyPaths=_,this.knownPropertyPaths=P),k===null&&D.length===0?this.createError(d.NOT_PASSED,{},"","/not",null,g,p):null},l.prototype.validateHypermedia=function(g,p,b){if(!p.links)return null;for(var C,_=0;_<p.links.length;_++){var P=p.links[_];if(P.rel==="describedby"){for(var k=new a(P.href),D=!0,W=0;W<k.varNames.length;W++)if(!(k.varNames[W]in g)){D=!1;break}if(D){var Z=k.fillFromObject(g),G={$ref:Z};if(C=this.validateAll(g,G,[],["links",_],b))return C}}}};function f(O){var g=String(O).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return g?{href:g[0]||"",protocol:g[1]||"",authority:g[2]||"",host:g[3]||"",hostname:g[4]||"",port:g[5]||"",pathname:g[6]||"",search:g[7]||"",hash:g[8]||""}:null}function h(O,g){function p(b){var C=[];return b.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(_){_==="/.."?C.pop():C.push(_)}),C.join("").replace(/^\//,b.charAt(0)==="/"?"/":"")}return g=f(g||""),O=f(O||""),!g||!O?null:(g.protocol||O.protocol)+(g.protocol||g.authority?g.authority:O.authority)+p(g.protocol||g.authority||g.pathname.charAt(0)==="/"?g.pathname:g.pathname?(O.authority&&!O.pathname?"/":"")+O.pathname.slice(0,O.pathname.lastIndexOf("/")+1)+g.pathname:O.pathname)+(g.protocol||g.authority||g.pathname?g.search:g.search||O.search)+g.hash}function y(O){return O.split("#")[0]}function m(O,g){if(O&&typeof O=="object")if(g===void 0?g=O.id:typeof O.id=="string"&&(g=h(g,O.id),O.id=g),Array.isArray(O))for(var p=0;p<O.length;p++)m(O[p],g);else{typeof O.$ref=="string"&&(O.$ref=h(g,O.$ref));for(var b in O)b!=="enum"&&m(O[b],g)}}function x(O){O=O||"en";var g=w[O];return function(p){var b=g[p.code]||R[p.code];if(typeof b!="string")return"Unknown error code "+p.code+": "+JSON.stringify(p.messageParams);var C=p.params;return b.replace(/\{([^{}]*)\}/g,function(_,P){var k=C[P];return typeof k=="string"||typeof k=="number"?k:_})}}var d={INVALID_TYPE:0,ENUM_MISMATCH:1,ANY_OF_MISSING:10,ONE_OF_MISSING:11,ONE_OF_MULTIPLE:12,NOT_PASSED:13,NUMBER_MULTIPLE_OF:100,NUMBER_MINIMUM:101,NUMBER_MINIMUM_EXCLUSIVE:102,NUMBER_MAXIMUM:103,NUMBER_MAXIMUM_EXCLUSIVE:104,NUMBER_NOT_A_NUMBER:105,STRING_LENGTH_SHORT:200,STRING_LENGTH_LONG:201,STRING_PATTERN:202,OBJECT_PROPERTIES_MINIMUM:300,OBJECT_PROPERTIES_MAXIMUM:301,OBJECT_REQUIRED:302,OBJECT_ADDITIONAL_PROPERTIES:303,OBJECT_DEPENDENCY_KEY:304,ARRAY_LENGTH_SHORT:400,ARRAY_LENGTH_LONG:401,ARRAY_UNIQUE:402,ARRAY_ADDITIONAL_ITEMS:403,FORMAT_CUSTOM:500,KEYWORD_CUSTOM:501,CIRCULAR_REFERENCE:600,UNKNOWN_PROPERTY:1e3},v={};for(var E in d)v[d[E]]=E;var R={INVALID_TYPE:"Invalid type: {type} (expected {expected})",ENUM_MISMATCH:"No enum match for: {value}",ANY_OF_MISSING:'Data does not match any schemas from "anyOf"',ONE_OF_MISSING:'Data does not match any schemas from "oneOf"',ONE_OF_MULTIPLE:'Data is valid against more than one schema from "oneOf": indices {index1} and {index2}',NOT_PASSED:'Data matches schema from "not"',NUMBER_MULTIPLE_OF:"Value {value} is not a multiple of {multipleOf}",NUMBER_MINIMUM:"Value {value} is less than minimum {minimum}",NUMBER_MINIMUM_EXCLUSIVE:"Value {value} is equal to exclusive minimum {minimum}",NUMBER_MAXIMUM:"Value {value} is greater than maximum {maximum}",NUMBER_MAXIMUM_EXCLUSIVE:"Value {value} is equal to exclusive maximum {maximum}",NUMBER_NOT_A_NUMBER:"Value {value} is not a valid number",STRING_LENGTH_SHORT:"String is too short ({length} chars), minimum {minimum}",STRING_LENGTH_LONG:"String is too long ({length} chars), maximum {maximum}",STRING_PATTERN:"String does not match pattern: {pattern}",OBJECT_PROPERTIES_MINIMUM:"Too few properties defined ({propertyCount}), minimum {minimum}",OBJECT_PROPERTIES_MAXIMUM:"Too many properties defined ({propertyCount}), maximum {maximum}",OBJECT_REQUIRED:"Missing required property: {key}",OBJECT_ADDITIONAL_PROPERTIES:"Additional properties not allowed",OBJECT_DEPENDENCY_KEY:"Dependency failed - key must exist: {missing} (due to key: {key})",ARRAY_LENGTH_SHORT:"Array is too short ({length}), minimum {minimum}",ARRAY_LENGTH_LONG:"Array is too long ({length}), maximum {maximum}",ARRAY_UNIQUE:"Array items are not unique (indices {match1} and {match2})",ARRAY_ADDITIONAL_ITEMS:"Additional items not allowed",FORMAT_CUSTOM:"Format validation failed ({message})",KEYWORD_CUSTOM:"Keyword failed: {key} ({message})",CIRCULAR_REFERENCE:"Circular $refs: {urls}",UNKNOWN_PROPERTY:"Unknown property (not in schema)"};function S(O,g,p,b,C){if(Error.call(this),O===void 0)throw new Error("No error code supplied: "+b);this.message="",this.params=g,this.code=O,this.dataPath=p||"",this.schemaPath=b||"",this.subErrors=C||null;var _=new Error(this.message);if(this.stack=_.stack||_.stacktrace,!this.stack)try{throw _}catch(P){this.stack=P.stack||P.stacktrace}}S.prototype=Object.create(Error.prototype),S.prototype.constructor=S,S.prototype.name="ValidationError",S.prototype.prefixWith=function(O,g){if(O!==null&&(O=O.replace(/~/g,"~0").replace(/\//g,"~1"),this.dataPath="/"+O+this.dataPath),g!==null&&(g=g.replace(/~/g,"~0").replace(/\//g,"~1"),this.schemaPath="/"+g+this.schemaPath),this.subErrors!==null)for(var p=0;p<this.subErrors.length;p++)this.subErrors[p].prefixWith(O,g);return this};function T(O,g){if(g.substring(0,O.length)===O){var p=g.substring(O.length);if(g.length>0&&g.charAt(O.length-1)==="/"||p.charAt(0)==="#"||p.charAt(0)==="?")return!0}return!1}var w={};function N(O){var g=new l,p,b,C={setErrorReporter:function(_){return typeof _=="string"?this.language(_):(b=_,!0)},addFormat:function(){g.addFormat.apply(g,arguments)},language:function(_){return _?(w[_]||(_=_.split("-")[0]),w[_]?(p=_,_):!1):p},addLanguage:function(_,P){var k;for(k in d)P[k]&&!P[d[k]]&&(P[d[k]]=P[k]);var D=_.split("-")[0];if(!w[D])w[_]=P,w[D]=P;else{w[_]=Object.create(w[D]);for(k in P)typeof w[D][k]>"u"&&(w[D][k]=P[k]),w[_][k]=P[k]}return this},freshApi:function(_){var P=N();return _&&P.language(_),P},validate:function(_,P,k,D){var W=x(p),Z=b?function(Y,ae,oe){return b(Y,ae,oe)||W(Y,ae,oe)}:W,G=new l(g,!1,Z,k,D);typeof P=="string"&&(P={$ref:P}),G.addSchema("",P);var B=G.validateAll(_,P,null,null,"");return!B&&D&&(B=G.banUnknownProperties(_,P)),this.error=B,this.missing=G.missing,this.valid=B===null,this.valid},validateResult:function(){var _={toString:function(){return this.valid?"valid":this.error.message}};return this.validate.apply(_,arguments),_},validateMultiple:function(_,P,k,D){var W=x(p),Z=b?function(Y,ae,oe){return b(Y,ae,oe)||W(Y,ae,oe)}:W,G=new l(g,!0,Z,k,D);typeof P=="string"&&(P={$ref:P}),G.addSchema("",P),G.validateAll(_,P,null,null,""),D&&G.banUnknownProperties(_,P);var B={toString:function(){return this.valid?"valid":this.error.message}};return B.errors=G.errors,B.missing=G.missing,B.valid=B.errors.length===0,B},addSchema:function(){return g.addSchema.apply(g,arguments)},getSchema:function(){return g.getSchema.apply(g,arguments)},getSchemaMap:function(){return g.getSchemaMap.apply(g,arguments)},getSchemaUris:function(){return g.getSchemaUris.apply(g,arguments)},getMissingUris:function(){return g.getMissingUris.apply(g,arguments)},dropSchemas:function(){g.dropSchemas.apply(g,arguments)},defineKeyword:function(){g.defineKeyword.apply(g,arguments)},defineError:function(_,P,k){if(typeof _!="string"||!/^[A-Z]+(_[A-Z]+)*$/.test(_))throw new Error("Code name must be a string in UPPER_CASE_WITH_UNDERSCORES");if(typeof P!="number"||P%1!==0||P<1e4)throw new Error("Code number must be an integer > 10000");if(typeof d[_]<"u")throw new Error("Error already defined: "+_+" as "+d[_]);if(typeof v[P]<"u")throw new Error("Error code already used: "+v[P]+" as "+P);d[_]=P,v[P]=_,R[_]=R[P]=k;for(var D in w){var W=w[D];W[_]&&(W[P]=W[P]||W[_])}},reset:function(){g.reset(),this.error=null,this.missing=[],this.valid=!0},missing:[],error:null,valid:!0,normSchema:m,resolveUrl:h,getDocumentUri:y,errorCodes:d};return C.language("en"),C}var M=N();return M.addLanguage("en-gb",R),M.tv4=M,M})}(mo)),mo.exports}var _y=Ry();const vf=ir(_y),qt=e=>{if(Array.isArray(e)&&e.length===2){if(e[0]==="null")return e[1];if(e[1]==="null")return e[0]}return e},el=e=>{const t=[];return e.forEach(r=>{t.push({name:r,value:r})}),t},bf=(e,t)=>{if(!t)return e;const r=[],n=Object.keys(e).length===0?t:e;return t.forEach((i,a)=>{r.push({name:n[a],value:i})}),r},Jt=(e,t,r)=>{r=r||{};const n=r.global&&r.global.formDefaults?Ks(r.global.formDefaults):{};return r.global&&r.global.supressPropertyTitles===!0?n.title=t.title:n.title=t.title||e,t.description&&(n.description=t.description),(r.required===!0||t.required===!0)&&(n.required=!0),t.maxLength&&(n.maxlength=t.maxLength),t.minLength&&(n.minlength=t.minLength),(t.readOnly||t.readonly)&&(n.readonly=!0),t.minimum&&(n.minimum=t.minimum+(t.exclusiveMinimum?1:0)),t.maximum&&(n.maximum=t.maximum-(t.exclusiveMaximum?1:0)),t.validationMessage&&(n.validationMessage=t.validationMessage),t.enumNames&&(n.titleMap=bf(t.enumNames,t.enum)),n.schema=t,n},Py=(e,t,r)=>{if(qt(t.type)==="tBoolean"&&!t.enum){const n=Jt(e,t,r);return n.key=r.path,n.type="tBoolean",r.lookup[kt.stringify(r.path)]=n,n}},xf=(e,t,r)=>{if(qt(t.type)==="string"&&!t.enum){const n=Jt(e,t,r);return n.key=r.path,n.type="text",r.lookup[kt.stringify(r.path)]=n,n}},Of=(e,t,r)=>{if(qt(t.type)==="number"){const n=Jt(e,t,r);return n.key=r.path,n.type="number",r.lookup[kt.stringify(r.path)]=n,n}},Ef=(e,t,r)=>{if(qt(t.type)==="integer"){const n=Jt(e,t,r);return n.key=r.path,n.type="number",r.lookup[kt.stringify(r.path)]=n,n}},Iy=(e,t,r)=>{if(qt(t.type)==="date"){const n=Jt(e,t,r);return n.key=r.path,n.type="date",r.lookup[kt.stringify(r.path)]=n,n}},Cf=(e,t,r)=>{if(qt(t.type)==="boolean"){const n=Jt(e,t,r);return n.key=r.path,n.type="checkbox",r.lookup[kt.stringify(r.path)]=n,n}},Sf=(e,t,r)=>{if(qt(t.type)==="string"&&t.enum){const n=Jt(e,t,r);return n.key=r.path,n.type="select",!n.titleMap&&!t.isObject&&(n.titleMap=el(t.enum)),r.lookup[kt.stringify(r.path)]=n,n}},Tf=e=>Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"?Tf(r):(r==null||r==="")&&delete e[t]}),wf=(e,t,r)=>{if(qt(t.type)==="array"&&t.items&&t.items.enum){const n=Jt(e,t,r);return n.key=r.path,n.type="checkboxes",n.titleMap||(n.titleMap=el(t.items.enum)),r.lookup[kt.stringify(r.path)]=n,n}},En=(e,t,r)=>{const n=_r[qt(t.type)];if(n){let i;for(let a=0;a<n.length;a+=1)if(i=n[a](e,t,r),i)return i.schema["x-schema-form"]&&Vg(i.schema["x-schema-form"])&&(i=by(i,i.schema["x-schema-form"])),i}},Rf=(e,t,r)=>{if(qt(t.type)==="object"){const n=Jt(e,t,r);return n.type="fieldset",n.items=[],r.lookup[kt.stringify(r.path)]=n,t.properties&&Object.keys(t.properties).forEach(i=>{if(Object.prototype.hasOwnProperty.call(t.properties,i)){const a=r.path.slice();if(a.push(i),r.ignore[kt.stringify(a)]!==!0){const l=t.required&&t.required.indexOf(i)!==-1,s=En(i,t.properties[i],{path:a,required:l||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});s&&n.items.push(s)}}}),n}},ky=(e,t,r)=>{if(qt(t.type)==="array"){const n=Jt(e,t,r);if(n.type="tuple",n.key=r.path,r.lookup[kt.stringify(r.path)]=n,Array.isArray(t.items)){const i=t.required&&t.required.indexOf(r.path[r.path.length-1]);return n.items=t.items.reduce((a,l,s)=>{const c=r.path.slice();c.push(s);const u=En(e,l,{path:c,required:i||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});return u&&a.push(u),a},[]),n}}},_f=(e,t,r)=>{if(qt(t.type)==="array"){const n=Jt(e,t,r);if(n.type="array",n.key=r.path,r.lookup[kt.stringify(r.path)]=n,typeof t.items<"u"){const i=t.required&&t.required.indexOf(r.path[r.path.length-1])!==-1,a=r.path.slice();a.push("");const l=En(e,t.items,{path:a,required:i||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});l?n.items=[l]:n.items=t.items}return n}},_r={string:[Sf,xf],object:[Rf],number:[Of],integer:[Ef],boolean:[Cf],array:[wf,ky,_f],date:[Iy],tBoolean:[Py]},Pf=(e,t,r)=>{const n=[],i={};if(t=t||{},r=r||{},qt(e.type)==="object")e.properties&&Object.keys(e.properties).forEach(a=>{if(Object.prototype.hasOwnProperty.call(e.properties,a)&&t[a]!==!0){const l=e.required&&e.required.indexOf(a)!==-1,s=En(a,e.properties[a],{path:[a],lookup:i,ignore:t,required:l,global:r});s&&n.push(s)}});else throw new Error('Not implemented. Only type "object" allowed at root level of schema.');return{form:n,lookup:i}},If=e=>e,jy=(e,t)=>{_r[e]||(_r[e]=[]),_r[e].push(t)},Ay=(e,t)=>{_r[e]||(_r[e]=[]),_r[e].unshift(t)},Ny=(e,t,r,n)=>{n=typeof n<"u"?n:!0,r=r||[];const i=(a,l,s)=>{if(l(a,s),a.properties&&Object.keys(a.properties).forEach(c=>{if(Object.prototype.hasOwnProperty.call(a.properties,c)){const u=s.slice();u.push(c),i(a.properties[c],l,u)}}),!n&&a.items){const c=s.slice();c.push(""),i(a.items,l,c)}};i(e,t,r||[])},tl=(e,t)=>{t(e),e.items&&e.items.forEach(r=>{tl(r,t)}),e.tabs&&e.tabs.forEach(r=>{r.items.forEach(n=>{tl(n,t)})})},rl=(e,t,r,n,i)=>{t=t||["*"],n=n||{},i=i||e.readonly||e.readOnly;const a=Pf(e,r,n),l=t.indexOf("*");l!==-1&&(t=t.slice(0,l).concat(a.form).concat(t.slice(l+1)));const{lookup:s}=a;return If(t.map(c=>{if(typeof c=="string"&&(c={key:c}),c&&c.key&&typeof c.key=="string"&&(c.key=kt.parse(c.key)),c&&c.itemForm){c.items=[];const u=kt.stringify(c.key);s[u].items.forEach(h=>{const y=Ks(c.itemForm);y.key=h.key,c.items.push(y)})}if(c&&c.key){const u=kt.stringify(c.key);if(s[u]){const f=s[u];Object.keys(f).forEach(h=>{Object.prototype.hasOwnProperty.call(f,h)&&c[h]===void 0&&(c[h]=f[h])})}}return i===!0&&(c.readonly=!0),c&&c.items&&c.items.length>0&&(c.items=rl(e,c.items,r,n,c.readonly)),c&&c.tabs&&c.tabs.forEach(u=>{u.items=rl(e,u.items,r,n,c.readonly)}),c&&c.type==="checkbox"&&Ey(c.schema.default)&&(c.schema.default=!1),c}))};function $y(e,t,r,n){const i=/^\d+$/;t||(t=this);const a=typeof e=="string"?kt.parse(e):e;if(typeof r<"u"&&a.length===1||(typeof r<"u"&&typeof t[a[0]]>"u"&&(t[a[0]]=a.length>=2&&i.test(a[1])?[]:{}),typeof n<"u"&&["number","integer"].indexOf(n)>-1&&typeof r>"u"))return t[a[0]]=r,t;let l=t[a[0]];for(let s=1;s<a.length;s+=1){if(a[s]==="")return;if(typeof r<"u"){if(s===a.length-1)return l[a[s]]=r,r;let c=l[a[s]];(typeof c>"u"||c===null)&&(c=i.test(a[s+1])?[]:{},l[a[s]]=c),l=c}else l&&(l=l[a[s]])}return l}const Mt={traverseForm:tl,traverseSchema:Ny,prependRule:Ay,appendRule:jy,postProcessFn:If,getDefaults:Pf,defaultFormDefinition:En,defaults:_r,array:_f,fieldset:Rf,checkboxes:wf,select:Sf,checkbox:Cf,integer:Ef,number:Of,text:xf,stdFormObj:Jt,canonicalTitleMap:bf,enumToTitleMap:el,stripNullType:qt,merge:rl,validate:(e,t,r)=>{if(!e)return{valid:!0};const{schema:n}=e;if(!n)return{valid:!0};t===""&&(t=void 0),e.type==="number"&&t===null&&(t=void 0),e.type==="number"&&Number.isNaN(parseFloat(t))&&(t=void 0);const i={type:"object",properties:{}},a=e.key[e.key.length-1];i.properties[a]=n,e.required&&(i.required=[a]);const l={};typeof t<"u"&&(l[a]=t);const s=vf.validateResult(l,i);return s!=null&&!s.valid&&e.validationMessage!=null&&typeof t<"u"&&(s.error.message=r?r(e.validationMessage):e.validationMessage),s},validateBySchema:(e,t)=>vf.validateResult(t,e),selectOrSet:$y,getValueFromModel:(e,t)=>{let r;return Array.isArray(t)?(t.reduce((n,i)=>n&&n[i],e),r=t.reduce((n,i)=>n&&n[i],e)):r=e[t],r},getTitleByValue:(e,t)=>{for(let r=0;r<e.length;r+=1){const n=e[r];if(n.value===t)return n.name}},removeEmpty:Tf},My=e=>{let t;return e.form&&e.form.key&&(t=Mt.selectOrSet(e.form.key,e.model)),t==null&&(e.form.default?t=e.form.default:e.form.schema&&e.form.schema.default&&(t=e.form.schema.default)),t},Dy=e=>e.displayName||e.name||"Component",jt=(e,t={})=>class extends we.Component{constructor(n){super(n),this.displayName=`ComposedComponent(${Dy(e)})`,this.onChangeValidate=this.onChangeValidate.bind(this),this.state=this.constructor.getDerivedStateFromProps(this.props)}static getDerivedStateFromProps(n){const{errorText:i,form:a,showErrors:l,localization:s}=n,c=s&&s.getLocalizedString,u=My(n);if(!l)return{value:u,valid:!0,error:""};const f=Mt.validate(a,u||void 0,c),h=f.valid?void 0:f.error;return{value:u,valid:f.valid,error:(f.valid?null:h.message)||i}}onChangeValidate(n,i){const{form:a,onChange:l,localization:s}=this.props,c=s&&s.getLocalizedString;let u=null;switch(a.schema?a.schema.type:a.type){case"integer":case"number":{u=n;break}case"boolean":u=n.target.checked;break;case"array":u=n;break;case"object":if(a.type==="date"){n.target.value.length>0?u=new Date(n.target.value):u="";break}({value:u}=n.target);break;default:({value:u}=n.target)}const h=Mt.validate(a,u,c);this.setState({value:u,valid:h.valid,error:h.valid?null:h.error.message}),l(a.key,u)}render(){return A.jsx(e,{...t,...this.props,...this.state,onChangeValidate:this.onChangeValidate})}};var go={exports:{}},yo={exports:{}},et={};/** @license React v16.13.1
|
|
31
|
+
* react-is.production.min.js
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
+
*
|
|
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 kf;function Ly(){if(kf)return et;kf=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function S(w){if(typeof w=="object"&&w!==null){var N=w.$$typeof;switch(N){case t:switch(w=w.type,w){case c:case u:case n:case a:case i:case h:return w;default:switch(w=w&&w.$$typeof,w){case s:case f:case x:case m:case l:return w;default:return N}}case r:return N}}}function T(w){return S(w)===u}return et.AsyncMode=c,et.ConcurrentMode=u,et.ContextConsumer=s,et.ContextProvider=l,et.Element=t,et.ForwardRef=f,et.Fragment=n,et.Lazy=x,et.Memo=m,et.Portal=r,et.Profiler=a,et.StrictMode=i,et.Suspense=h,et.isAsyncMode=function(w){return T(w)||S(w)===c},et.isConcurrentMode=T,et.isContextConsumer=function(w){return S(w)===s},et.isContextProvider=function(w){return S(w)===l},et.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},et.isForwardRef=function(w){return S(w)===f},et.isFragment=function(w){return S(w)===n},et.isLazy=function(w){return S(w)===x},et.isMemo=function(w){return S(w)===m},et.isPortal=function(w){return S(w)===r},et.isProfiler=function(w){return S(w)===a},et.isStrictMode=function(w){return S(w)===i},et.isSuspense=function(w){return S(w)===h},et.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===u||w===a||w===i||w===h||w===y||typeof w=="object"&&w!==null&&(w.$$typeof===x||w.$$typeof===m||w.$$typeof===l||w.$$typeof===s||w.$$typeof===f||w.$$typeof===v||w.$$typeof===E||w.$$typeof===R||w.$$typeof===d)},et.typeOf=S,et}var tt={};/** @license React v16.13.1
|
|
38
|
+
* react-is.development.js
|
|
39
|
+
*
|
|
40
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the MIT license found in the
|
|
43
|
+
* LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/var jf;function Fy(){return jf||(jf=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function S(X){return typeof X=="string"||typeof X=="function"||X===n||X===u||X===a||X===i||X===h||X===y||typeof X=="object"&&X!==null&&(X.$$typeof===x||X.$$typeof===m||X.$$typeof===l||X.$$typeof===s||X.$$typeof===f||X.$$typeof===v||X.$$typeof===E||X.$$typeof===R||X.$$typeof===d)}function T(X){if(typeof X=="object"&&X!==null){var Re=X.$$typeof;switch(Re){case t:var z=X.type;switch(z){case c:case u:case n:case a:case i:case h:return z;default:var pe=z&&z.$$typeof;switch(pe){case s:case f:case x:case m:case l:return pe;default:return Re}}case r:return Re}}}var w=c,N=u,M=s,O=l,g=t,p=f,b=n,C=x,_=m,P=r,k=a,D=i,W=h,Z=!1;function G(X){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(X)||T(X)===c}function B(X){return T(X)===u}function Y(X){return T(X)===s}function ae(X){return T(X)===l}function oe(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function ne(X){return T(X)===f}function ue(X){return T(X)===n}function ce(X){return T(X)===x}function ye(X){return T(X)===m}function se(X){return T(X)===r}function le(X){return T(X)===a}function te(X){return T(X)===i}function ve(X){return T(X)===h}tt.AsyncMode=w,tt.ConcurrentMode=N,tt.ContextConsumer=M,tt.ContextProvider=O,tt.Element=g,tt.ForwardRef=p,tt.Fragment=b,tt.Lazy=C,tt.Memo=_,tt.Portal=P,tt.Profiler=k,tt.StrictMode=D,tt.Suspense=W,tt.isAsyncMode=G,tt.isConcurrentMode=B,tt.isContextConsumer=Y,tt.isContextProvider=ae,tt.isElement=oe,tt.isForwardRef=ne,tt.isFragment=ue,tt.isLazy=ce,tt.isMemo=ye,tt.isPortal=se,tt.isProfiler=le,tt.isStrictMode=te,tt.isSuspense=ve,tt.isValidElementType=S,tt.typeOf=T}()),tt}var Af;function Nf(){return Af||(Af=1,process.env.NODE_ENV==="production"?yo.exports=Ly():yo.exports=Fy()),yo.exports}/*
|
|
45
|
+
object-assign
|
|
46
|
+
(c) Sindre Sorhus
|
|
47
|
+
@license MIT
|
|
48
|
+
*/var nl,$f;function By(){if($f)return nl;$f=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},s=0;s<10;s++)l["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(l).map(function(f){return l[f]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(f){u[f]=f}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return nl=i()?Object.assign:function(a,l){for(var s,c=n(a),u,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var h in s)t.call(s,h)&&(c[h]=s[h]);if(e){u=e(s);for(var y=0;y<u.length;y++)r.call(s,u[y])&&(c[u[y]]=s[u[y]])}}return c},nl}var ol,Mf;function il(){if(Mf)return ol;Mf=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ol=e,ol}var al,Df;function Lf(){return Df||(Df=1,al=Function.call.bind(Object.prototype.hasOwnProperty)),al}var sl,Ff;function qy(){if(Ff)return sl;Ff=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=il(),r={},n=Lf();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(a,l,s,c,u){if(process.env.NODE_ENV!=="production"){for(var f in a)if(n(a,f)){var h;try{if(typeof a[f]!="function"){var y=Error((c||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}h=a[f](l,f,c,s,null,t)}catch(x){h=x}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var m=u?u():"";e("Failed "+s+" type: "+h.message+(m??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},sl=i,sl}var ll,Bf;function zy(){if(Bf)return ll;Bf=1;var e=Nf(),t=By(),r=il(),n=Lf(),i=qy(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function l(){return null}return ll=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function h(B){var Y=B&&(u&&B[u]||B[f]);if(typeof Y=="function")return Y}var y="<<anonymous>>",m={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:R(),arrayOf:S,element:T(),elementType:w(),instanceOf:N,node:p(),objectOf:O,oneOf:M,oneOfType:g,shape:C,exact:_};function x(B,Y){return B===Y?B!==0||1/B===1/Y:B!==B&&Y!==Y}function d(B,Y){this.message=B,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}d.prototype=Error.prototype;function v(B){if(process.env.NODE_ENV!=="production")var Y={},ae=0;function oe(ue,ce,ye,se,le,te,ve){if(se=se||y,te=te||ye,ve!==r){if(c){var X=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw X.name="Invariant Violation",X}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Re=se+":"+ye;!Y[Re]&&ae<3&&(a("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+se+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Y[Re]=!0,ae++)}}return ce[ye]==null?ue?ce[ye]===null?new d("The "+le+" `"+te+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new d("The "+le+" `"+te+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:B(ce,ye,se,le,te)}var ne=oe.bind(null,!1);return ne.isRequired=oe.bind(null,!0),ne}function E(B){function Y(ae,oe,ne,ue,ce,ye){var se=ae[oe],le=D(se);if(le!==B){var te=W(se);return new d("Invalid "+ue+" `"+ce+"` of type "+("`"+te+"` supplied to `"+ne+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return v(Y)}function R(){return v(l)}function S(B){function Y(ae,oe,ne,ue,ce){if(typeof B!="function")return new d("Property `"+ce+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var ye=ae[oe];if(!Array.isArray(ye)){var se=D(ye);return new d("Invalid "+ue+" `"+ce+"` of type "+("`"+se+"` supplied to `"+ne+"`, expected an array."))}for(var le=0;le<ye.length;le++){var te=B(ye,le,ne,ue,ce+"["+le+"]",r);if(te instanceof Error)return te}return null}return v(Y)}function T(){function B(Y,ae,oe,ne,ue){var ce=Y[ae];if(!s(ce)){var ye=D(ce);return new d("Invalid "+ne+" `"+ue+"` of type "+("`"+ye+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return v(B)}function w(){function B(Y,ae,oe,ne,ue){var ce=Y[ae];if(!e.isValidElementType(ce)){var ye=D(ce);return new d("Invalid "+ne+" `"+ue+"` of type "+("`"+ye+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return v(B)}function N(B){function Y(ae,oe,ne,ue,ce){if(!(ae[oe]instanceof B)){var ye=B.name||y,se=G(ae[oe]);return new d("Invalid "+ue+" `"+ce+"` of type "+("`"+se+"` supplied to `"+ne+"`, expected ")+("instance of `"+ye+"`."))}return null}return v(Y)}function M(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function Y(ae,oe,ne,ue,ce){for(var ye=ae[oe],se=0;se<B.length;se++)if(x(ye,B[se]))return null;var le=JSON.stringify(B,function(ve,X){var Re=W(X);return Re==="symbol"?String(X):X});return new d("Invalid "+ue+" `"+ce+"` of value `"+String(ye)+"` "+("supplied to `"+ne+"`, expected one of "+le+"."))}return v(Y)}function O(B){function Y(ae,oe,ne,ue,ce){if(typeof B!="function")return new d("Property `"+ce+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var ye=ae[oe],se=D(ye);if(se!=="object")return new d("Invalid "+ue+" `"+ce+"` of type "+("`"+se+"` supplied to `"+ne+"`, expected an object."));for(var le in ye)if(n(ye,le)){var te=B(ye,le,ne,ue,ce+"."+le,r);if(te instanceof Error)return te}return null}return v(Y)}function g(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var Y=0;Y<B.length;Y++){var ae=B[Y];if(typeof ae!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(ae)+" at index "+Y+"."),l}function oe(ne,ue,ce,ye,se){for(var le=[],te=0;te<B.length;te++){var ve=B[te],X=ve(ne,ue,ce,ye,se,r);if(X==null)return null;X.data&&n(X.data,"expectedType")&&le.push(X.data.expectedType)}var Re=le.length>0?", expected one of type ["+le.join(", ")+"]":"";return new d("Invalid "+ye+" `"+se+"` supplied to "+("`"+ce+"`"+Re+"."))}return v(oe)}function p(){function B(Y,ae,oe,ne,ue){return P(Y[ae])?null:new d("Invalid "+ne+" `"+ue+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return v(B)}function b(B,Y,ae,oe,ne){return new d((B||"React class")+": "+Y+" type `"+ae+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function C(B){function Y(ae,oe,ne,ue,ce){var ye=ae[oe],se=D(ye);if(se!=="object")return new d("Invalid "+ue+" `"+ce+"` of type `"+se+"` "+("supplied to `"+ne+"`, expected `object`."));for(var le in B){var te=B[le];if(typeof te!="function")return b(ne,ue,ce,le,W(te));var ve=te(ye,le,ne,ue,ce+"."+le,r);if(ve)return ve}return null}return v(Y)}function _(B){function Y(ae,oe,ne,ue,ce){var ye=ae[oe],se=D(ye);if(se!=="object")return new d("Invalid "+ue+" `"+ce+"` of type `"+se+"` "+("supplied to `"+ne+"`, expected `object`."));var le=t({},ae[oe],B);for(var te in le){var ve=B[te];if(n(B,te)&&typeof ve!="function")return b(ne,ue,ce,te,W(ve));if(!ve)return new d("Invalid "+ue+" `"+ce+"` key `"+te+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(ae[oe],null," ")+`
|
|
49
|
+
Valid keys: `+JSON.stringify(Object.keys(B),null," "));var X=ve(ye,te,ne,ue,ce+"."+te,r);if(X)return X}return null}return v(Y)}function P(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(P);if(B===null||s(B))return!0;var Y=h(B);if(Y){var ae=Y.call(B),oe;if(Y!==B.entries){for(;!(oe=ae.next()).done;)if(!P(oe.value))return!1}else for(;!(oe=ae.next()).done;){var ne=oe.value;if(ne&&!P(ne[1]))return!1}}else return!1;return!0;default:return!1}}function k(B,Y){return B==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function D(B){var Y=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":k(Y,B)?"symbol":Y}function W(B){if(typeof B>"u"||B===null)return""+B;var Y=D(B);if(Y==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return Y}function Z(B){var Y=W(B);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function G(B){return!B.constructor||!B.constructor.name?y:B.constructor.name}return m.checkPropTypes=i,m.resetWarningCache=i.resetWarningCache,m.PropTypes=m,m},ll}var cl,qf;function Vy(){if(qf)return cl;qf=1;var e=il();function t(){}function r(){}return r.resetWarningCache=t,cl=function(){function n(l,s,c,u,f,h){if(h!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},cl}var zf;function Uy(){if(zf)return go.exports;if(zf=1,process.env.NODE_ENV!=="production"){var e=Nf(),t=!0;go.exports=zy()(e.isElement,t)}else go.exports=Vy()();return go.exports}var Wy=Uy();const o=ir(Wy);function Vf(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Vf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function _e(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Vf(e))&&(n&&(n+=" "),n+=t);return n}function Ge(e,t,r=void 0){const n={};for(const i in e){const a=e[i];let l="",s=!0;for(let c=0;c<a.length;c+=1){const u=a[c];u&&(l+=(s===!0?"":" ")+t(u),s=!1,r&&r[u]&&(l+=" "+r[u]))}n[i]=l}return n}let Uf=0;function Hy(e){const[t,r]=j.useState(e),n=e||t;return j.useEffect(()=>{t==null&&(Uf+=1,r(`mui-${Uf}`))},[t]),n}const Wf={...j}.useId;function vo(e){if(Wf!==void 0){const t=Wf();return e??t}return Hy(e)}const Dt=o.oneOfType([o.func,o.object]);function sr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function he(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":sr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function lr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Hf(e){if(j.isValidElement(e)||!lr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Hf(e[r])}),t}function At(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return lr(e)&&lr(t)&&Object.keys(t).forEach(i=>{j.isValidElement(t[i])?n[i]=t[i]:lr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&lr(e[i])?n[i]=At(e[i],t[i],r):r.clone?n[i]=lr(t[i])?Hf(t[i]):t[i]:n[i]=t[i]}),n}function Cn(e,t){return t?At(e,t,{clone:!1}):e}const Pr=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function Gy(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{var l,s;const a=/min-width:\s*([0-9.]+)/;return+(((l=n.match(a))==null?void 0:l[1])||0)-+(((s=i.match(a))==null?void 0:s[1])||0)});return r.length?r.reduce((n,i)=>{const a=t[i];return delete n[i],n[i]=a,n},{...t}):t}function Ky(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Yy(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
50
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:sr(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function Xy(e){const t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function r(a,l){a.up=(...s)=>t(e.breakpoints.up(...s),l),a.down=(...s)=>t(e.breakpoints.down(...s),l),a.between=(...s)=>t(e.breakpoints.between(...s),l),a.only=(...s)=>t(e.breakpoints.only(...s),l),a.not=(...s)=>{const c=t(e.breakpoints.not(...s),l);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const n={},i=a=>(r(n,a),n);return r(i),{...e,containerQueries:i}}const bo={xs:0,sm:600,md:900,lg:1200,xl:1536},Gf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bo[e]}px)`},Jy={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:bo[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Or(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Gf;return t.reduce((l,s,c)=>(l[a.up(a.keys[c])]=r(t[c]),l),{})}if(typeof t=="object"){const a=n.breakpoints||Gf;return Object.keys(t).reduce((l,s)=>{if(Ky(a.keys,s)){const c=Yy(n.containerQueries?n:Jy,s);c&&(l[c]=r(t[s],s))}else if(Object.keys(a.values||bo).includes(s)){const c=a.up(s);l[c]=r(t[s],s)}else{const c=s;l[c]=t[c]}return l},{})}return r(t)}function Qy(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function Zy(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function xo(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Oo(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=xo(e,r)||n,t&&(i=t(i,n,e)),i}function xt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=l=>{if(l[t]==null)return null;const s=l[t],c=l.theme,u=xo(c,n)||{};return Or(l,s,h=>{let y=Oo(u,i,h);return h===y&&typeof h=="string"&&(y=Oo(u,i,`${t}${h==="default"?"":he(h)}`,h)),r===!1?y:{[r]:y}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Pr}:{},a.filterProps=[t],a}function ev(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const tv={m:"margin",p:"padding"},rv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Kf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},nv=ev(e=>{if(e.length>2)if(Kf[e])e=Kf[e];else return[e];const[t,r]=e.split(""),n=tv[t],i=rv[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Eo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Co=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],ov=[...Eo,...Co];function Sn(e,t,r,n){const i=xo(e,t,!0)??r;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),typeof i=="string"?`calc(${a} * ${i})`:i*a):Array.isArray(i)?a=>{if(typeof a=="string")return a;const l=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>i.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${l} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
51
|
+
`)):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(`
|
|
52
|
+
`)));const s=i[l];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
53
|
+
`)),()=>{})}function ul(e){return Sn(e,"spacing",8,"spacing")}function Tn(e,t){return typeof t=="string"||t==null?t:e(t)}function iv(e,t){return r=>e.reduce((n,i)=>(n[i]=Tn(t,r),n),{})}function av(e,t,r,n){if(!t.includes(r))return null;const i=nv(r),a=iv(i,n),l=e[r];return Or(e,l,a)}function Yf(e,t){const r=ul(e.theme);return Object.keys(e).map(n=>av(e,t,n,r)).reduce(Cn,{})}function gt(e){return Yf(e,Eo)}gt.propTypes=process.env.NODE_ENV!=="production"?Eo.reduce((e,t)=>(e[t]=Pr,e),{}):{},gt.filterProps=Eo;function yt(e){return Yf(e,Co)}yt.propTypes=process.env.NODE_ENV!=="production"?Co.reduce((e,t)=>(e[t]=Pr,e),{}):{},yt.filterProps=Co,process.env.NODE_ENV!=="production"&&ov.reduce((e,t)=>(e[t]=Pr,e),{});function So(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?Cn(i,t[a](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Qt(e){return typeof e!="number"?e:`${e}px solid`}function Zt(e,t){return xt({prop:e,themeKey:"borders",transform:t})}const sv=Zt("border",Qt),lv=Zt("borderTop",Qt),cv=Zt("borderRight",Qt),uv=Zt("borderBottom",Qt),pv=Zt("borderLeft",Qt),fv=Zt("borderColor"),dv=Zt("borderTopColor"),hv=Zt("borderRightColor"),mv=Zt("borderBottomColor"),gv=Zt("borderLeftColor"),yv=Zt("outline",Qt),vv=Zt("outlineColor"),To=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Sn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Tn(t,n)});return Or(e,e.borderRadius,r)}return null};To.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Pr}:{},To.filterProps=["borderRadius"],So(sv,lv,cv,uv,pv,fv,dv,hv,mv,gv,To,yv,vv);const wo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Sn(e.theme,"spacing",8,"gap"),r=n=>({gap:Tn(t,n)});return Or(e,e.gap,r)}return null};wo.propTypes=process.env.NODE_ENV!=="production"?{gap:Pr}:{},wo.filterProps=["gap"];const Ro=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Sn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Tn(t,n)});return Or(e,e.columnGap,r)}return null};Ro.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Pr}:{},Ro.filterProps=["columnGap"];const _o=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Sn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Tn(t,n)});return Or(e,e.rowGap,r)}return null};_o.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Pr}:{},_o.filterProps=["rowGap"];const bv=xt({prop:"gridColumn"}),xv=xt({prop:"gridRow"}),Ov=xt({prop:"gridAutoFlow"}),Ev=xt({prop:"gridAutoColumns"}),Cv=xt({prop:"gridAutoRows"}),Sv=xt({prop:"gridTemplateColumns"}),Tv=xt({prop:"gridTemplateRows"}),wv=xt({prop:"gridTemplateAreas"}),Rv=xt({prop:"gridArea"});So(wo,Ro,_o,bv,xv,Ov,Ev,Cv,Sv,Tv,wv,Rv);function Qr(e,t){return t==="grey"?t:e}const _v=xt({prop:"color",themeKey:"palette",transform:Qr}),Pv=xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qr}),Iv=xt({prop:"backgroundColor",themeKey:"palette",transform:Qr});So(_v,Pv,Iv);function Ut(e){return e<=1&&e!==0?`${e*100}%`:e}const kv=xt({prop:"width",transform:Ut}),pl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var i,a,l,s,c;const n=((l=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:l[r])||bo[r];return n?((c=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Ut(r)}};return Or(e,e.maxWidth,t)}return null};pl.filterProps=["maxWidth"];const jv=xt({prop:"minWidth",transform:Ut}),Av=xt({prop:"height",transform:Ut}),Nv=xt({prop:"maxHeight",transform:Ut}),$v=xt({prop:"minHeight",transform:Ut});xt({prop:"size",cssProperty:"width",transform:Ut}),xt({prop:"size",cssProperty:"height",transform:Ut});const Mv=xt({prop:"boxSizing"});So(kv,pl,jv,Av,Nv,$v,Mv);const wn={border:{themeKey:"borders",transform:Qt},borderTop:{themeKey:"borders",transform:Qt},borderRight:{themeKey:"borders",transform:Qt},borderBottom:{themeKey:"borders",transform:Qt},borderLeft:{themeKey:"borders",transform:Qt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:To},color:{themeKey:"palette",transform:Qr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qr},backgroundColor:{themeKey:"palette",transform:Qr},p:{style:yt},pt:{style:yt},pr:{style:yt},pb:{style:yt},pl:{style:yt},px:{style:yt},py:{style:yt},padding:{style:yt},paddingTop:{style:yt},paddingRight:{style:yt},paddingBottom:{style:yt},paddingLeft:{style:yt},paddingX:{style:yt},paddingY:{style:yt},paddingInline:{style:yt},paddingInlineStart:{style:yt},paddingInlineEnd:{style:yt},paddingBlock:{style:yt},paddingBlockStart:{style:yt},paddingBlockEnd:{style:yt},m:{style:gt},mt:{style:gt},mr:{style:gt},mb:{style:gt},ml:{style:gt},mx:{style:gt},my:{style:gt},margin:{style:gt},marginTop:{style:gt},marginRight:{style:gt},marginBottom:{style:gt},marginLeft:{style:gt},marginX:{style:gt},marginY:{style:gt},marginInline:{style:gt},marginInlineStart:{style:gt},marginInlineEnd:{style:gt},marginBlock:{style:gt},marginBlockStart:{style:gt},marginBlockEnd:{style:gt},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:wo},rowGap:{style:_o},columnGap:{style:Ro},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ut},maxWidth:{style:pl},minWidth:{transform:Ut},height:{transform:Ut},maxHeight:{transform:Ut},minHeight:{transform:Ut},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Dv(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Lv(e,t){return typeof e=="function"?e(t):e}function Fv(){function e(r,n,i,a){const l={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:f,style:h}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const y=xo(i,u)||{};return h?h(l):Or(l,n,x=>{let d=Oo(y,f,x);return x===d&&typeof x=="string"&&(d=Oo(y,f,`${r}${x==="default"?"":he(x)}`,x)),c===!1?d:{[c]:d}})}function t(r){const{sx:n,theme:i={}}=r||{};if(!n)return null;const a=i.unstable_sxConfig??wn;function l(s){let c=s;if(typeof s=="function")c=s(i);else if(typeof s!="object")return s;if(!c)return null;const u=Qy(i.breakpoints),f=Object.keys(u);let h=u;return Object.keys(c).forEach(y=>{const m=Lv(c[y],i);if(m!=null)if(typeof m=="object")if(a[y])h=Cn(h,e(y,m,i,a));else{const x=Or({theme:i},m,d=>({[y]:d}));Dv(x,m)?h[y]=t({sx:m,theme:i}):h=Cn(h,x)}else h=Cn(h,e(y,m,i,a))}),Gy(i,Zy(f,h))}return Array.isArray(n)?n.map(l):l(n)}return t}const Zr=Fv();Zr.filterProps=["sx"];const Bv=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??wn;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function qv(e){const{sx:t,...r}=e,{systemProps:n,otherProps:i}=Bv(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...l)=>{const s=t(...l);return lr(s)?{...n,...s}:n}:a={...n,...t},{...i,sx:a}}function zv(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Vv={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Uv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Wv=!1,Hv=/[A-Z]|^ms/g,Gv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xf=function(t){return t.charCodeAt(1)===45},Jf=function(t){return t!=null&&typeof t!="boolean"},fl=Uv(function(e){return Xf(e)?e:e.replace(Hv,"-$&").toLowerCase()}),Qf=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Gv,function(n,i,a){return Ir={name:i,styles:a,next:Ir},i})}return Vv[t]!==1&&!Xf(t)&&typeof r=="number"&&r!==0?r+"px":r},Kv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Po(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Ir={name:i.name,styles:i.styles,next:Ir},i.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)Ir={name:l.name,styles:l.styles,next:Ir},l=l.next;var s=a.styles+";";return s}return Yv(e,t,r)}}var c=r;return c}function Yv(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Po(e,t,r[i])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var s=l;Jf(s)&&(n+=fl(a)+":"+Qf(a,s)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&Wv)throw new Error(Kv);if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var c=0;c<l.length;c++)Jf(l[c])&&(n+=fl(a)+":"+Qf(a,l[c])+";");else{var u=Po(e,t,l);switch(a){case"animation":case"animationName":{n+=fl(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}}return n}var Zf=/label:\s*([^\s;{]+)\s*(;|$)/g,Ir;function Xv(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Ir=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=Po(r,t,a);else{var l=a;i+=l[0]}for(var s=1;s<e.length;s++)if(i+=Po(r,t,e[s]),n){var c=a;i+=c[s]}Zf.lastIndex=0;for(var u="",f;(f=Zf.exec(i))!==null;)u+="-"+f[1];var h=zv(i)+u;return{name:h,styles:i,next:Ir}}function Jv(e){return e==null||Object.keys(e).length===0}function ed(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(Jv(i)?r:i):t;return A.jsx(hn.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(ed.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});/**
|
|
54
|
+
* @mui/styled-engine v6.1.10
|
|
55
|
+
*
|
|
56
|
+
* @license MIT
|
|
57
|
+
* This source code is licensed under the MIT license found in the
|
|
58
|
+
* LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/function Qv(e,t){const r=Yr(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const i=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
60
|
+
`)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}function Zv(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const td=[];function rd(e){return td[0]=e,Xv(td)}const eb=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function tb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,a=eb(t),l=Object.keys(a);function s(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r})`}function c(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-n/100}${r})`}function u(y,m){const x=l.indexOf(m);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r}) and (max-width:${(x!==-1&&typeof t[l[x]]=="number"?t[l[x]]:m)-n/100}${r})`}function f(y){return l.indexOf(y)+1<l.length?u(y,l[l.indexOf(y)+1]):s(y)}function h(y){const m=l.indexOf(y);return m===0?s(l[1]):m===l.length-1?c(l[m]):u(y,l[l.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:s,down:c,between:u,only:f,not:h,unit:r,...i}}const rb={borderRadius:4};function nd(e=8,t=ul({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" "));return r.mui=!0,r}function nb(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function dl(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={},...l}=e,s=tb(r),c=nd(i);let u=At({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...rb,...a}},l);return u=Xy(u),u.applyStyles=nb,u=t.reduce((f,h)=>At(f,h),u),u.unstable_sxConfig={...wn,...l==null?void 0:l.unstable_sxConfig},u.unstable_sx=function(h){return Zr({sx:h,theme:this})},u}function ob(e){return Object.keys(e).length===0}function ib(e=null){const t=j.useContext(hn.ThemeContext);return!t||ob(t)?e:t}const ab=dl();function od(e=ab){return ib(e)}function id({styles:e,themeId:t,defaultTheme:r={}}){const n=od(r),i=typeof e=="function"?e(t&&n[t]||n):e;return A.jsx(ed,{styles:i})}process.env.NODE_ENV!=="production"&&(id.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const ad=e=>e,sb=(()=>{let e=ad;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ad}}})(),lb={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function We(e,t,r="Mui"){const n=lb[t];return n?`${r}-${n}`:`${sb.generate(e)}-${t}`}function qe(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=We(e,i,r)}),n}var Io={exports:{}},rt={};/**
|
|
61
|
+
* @license React
|
|
62
|
+
* react-is.production.min.js
|
|
63
|
+
*
|
|
64
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the MIT license found in the
|
|
67
|
+
* LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/var sd;function cb(){if(sd)return rt;sd=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function d(v){if(typeof v=="object"&&v!==null){var E=v.$$typeof;switch(E){case e:switch(v=v.type,v){case r:case i:case n:case u:case f:return v;default:switch(v=v&&v.$$typeof,v){case s:case l:case c:case y:case h:case a:return v;default:return E}}case t:return E}}}return rt.ContextConsumer=l,rt.ContextProvider=a,rt.Element=e,rt.ForwardRef=c,rt.Fragment=r,rt.Lazy=y,rt.Memo=h,rt.Portal=t,rt.Profiler=i,rt.StrictMode=n,rt.Suspense=u,rt.SuspenseList=f,rt.isAsyncMode=function(){return!1},rt.isConcurrentMode=function(){return!1},rt.isContextConsumer=function(v){return d(v)===l},rt.isContextProvider=function(v){return d(v)===a},rt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},rt.isForwardRef=function(v){return d(v)===c},rt.isFragment=function(v){return d(v)===r},rt.isLazy=function(v){return d(v)===y},rt.isMemo=function(v){return d(v)===h},rt.isPortal=function(v){return d(v)===t},rt.isProfiler=function(v){return d(v)===i},rt.isStrictMode=function(v){return d(v)===n},rt.isSuspense=function(v){return d(v)===u},rt.isSuspenseList=function(v){return d(v)===f},rt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===u||v===f||v===m||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===h||v.$$typeof===a||v.$$typeof===l||v.$$typeof===c||v.$$typeof===x||v.getModuleId!==void 0)},rt.typeOf=d,rt}var nt={};/**
|
|
69
|
+
* @license React
|
|
70
|
+
* react-is.development.js
|
|
71
|
+
*
|
|
72
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the MIT license found in the
|
|
75
|
+
* LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/var ld;function ub(){return ld||(ld=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),x=!1,d=!1,v=!1,E=!1,R=!1,S;S=Symbol.for("react.module.reference");function T(z){return!!(typeof z=="string"||typeof z=="function"||z===r||z===i||R||z===n||z===u||z===f||E||z===m||x||d||v||typeof z=="object"&&z!==null&&(z.$$typeof===y||z.$$typeof===h||z.$$typeof===a||z.$$typeof===l||z.$$typeof===c||z.$$typeof===S||z.getModuleId!==void 0))}function w(z){if(typeof z=="object"&&z!==null){var pe=z.$$typeof;switch(pe){case e:var de=z.type;switch(de){case r:case i:case n:case u:case f:return de;default:var Ce=de&&de.$$typeof;switch(Ce){case s:case l:case c:case y:case h:case a:return Ce;default:return pe}}case t:return pe}}}var N=l,M=a,O=e,g=c,p=r,b=y,C=h,_=t,P=i,k=n,D=u,W=f,Z=!1,G=!1;function B(z){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(z){return G||(G=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(z){return w(z)===l}function oe(z){return w(z)===a}function ne(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function ue(z){return w(z)===c}function ce(z){return w(z)===r}function ye(z){return w(z)===y}function se(z){return w(z)===h}function le(z){return w(z)===t}function te(z){return w(z)===i}function ve(z){return w(z)===n}function X(z){return w(z)===u}function Re(z){return w(z)===f}nt.ContextConsumer=N,nt.ContextProvider=M,nt.Element=O,nt.ForwardRef=g,nt.Fragment=p,nt.Lazy=b,nt.Memo=C,nt.Portal=_,nt.Profiler=P,nt.StrictMode=k,nt.Suspense=D,nt.SuspenseList=W,nt.isAsyncMode=B,nt.isConcurrentMode=Y,nt.isContextConsumer=ae,nt.isContextProvider=oe,nt.isElement=ne,nt.isForwardRef=ue,nt.isFragment=ce,nt.isLazy=ye,nt.isMemo=se,nt.isPortal=le,nt.isProfiler=te,nt.isStrictMode=ve,nt.isSuspense=X,nt.isSuspenseList=Re,nt.isValidElementType=T,nt.typeOf=w}()),nt}var cd;function pb(){return cd||(cd=1,process.env.NODE_ENV==="production"?Io.exports=cb():Io.exports=ub()),Io.exports}var ud=pb();function pd(e,t=""){return e.displayName||e.name||t}function fd(e,t,r){const n=pd(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function fb(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return pd(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ud.ForwardRef:return fd(e,e.render,"ForwardRef");case ud.Memo:return fd(e,e.type,"memo");default:return}}}function dd(e){const{variants:t,...r}=e,n={variants:t,style:rd(r),isProcessed:!0};return n.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=rd(i.style))}),n}const db=dl();function hl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function hb(e){return e?(t,r)=>r[e]:null}function mb(e,t,r){e.theme=vb(e.theme)?r:e.theme[t]||e.theme}function ko(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>ko(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:i,...a}=r;n=a}return hd(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function hd(e,t,r=[]){var i;let n;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(n))continue}else for(const s in l.props)if(e[s]!==l.props[s]&&((i=e.ownerState)==null?void 0:i[s])!==l.props[s])continue e;typeof l.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(l.style(n))):r.push(l.style)}return r}function md(e={}){const{themeId:t,defaultTheme:r=db,rootShouldForwardProp:n=hl,slotShouldForwardProp:i=hl}=e;function a(s){mb(s,t,r)}return(s,c={})=>{Zv(s,w=>w.filter(N=>N!==Zr));const{name:u,slot:f,skipVariantsResolver:h,skipSx:y,overridesResolver:m=hb(gd(f)),...x}=c,d=h!==void 0?h:f&&f!=="Root"&&f!=="root"||!1,v=y||!1;let E=hl;f==="Root"||f==="root"?E=n:f?E=i:bb(s)&&(E=void 0);const R=Qv(s,{shouldForwardProp:E,label:yb(u,f),...x}),S=w=>{if(typeof w=="function"&&w.__emotion_real!==w)return function(M){return ko(M,w)};if(lr(w)){const N=dd(w);return N.variants?function(O){return ko(O,N)}:N.style}return w},T=(...w)=>{const N=[],M=w.map(S),O=[];if(N.push(a),u&&m&&O.push(function(C){var D,W;const P=(W=(D=C.theme.components)==null?void 0:D[u])==null?void 0:W.styleOverrides;if(!P)return null;const k={};for(const Z in P)k[Z]=ko(C,P[Z]);return m(C,k)}),u&&!d&&O.push(function(C){var k,D;const _=C.theme,P=(D=(k=_==null?void 0:_.components)==null?void 0:k[u])==null?void 0:D.variants;return P?hd(C,P):null}),v||O.push(Zr),Array.isArray(M[0])){const b=M.shift(),C=new Array(N.length).fill(""),_=new Array(O.length).fill("");let P;P=[...C,...b,..._],P.raw=[...C,...b.raw,..._],N.unshift(P)}const g=[...N,...M,...O],p=R(...g);return s.muiName&&(p.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(p.displayName=gb(u,f,s)),p};return R.withConfig&&(T.withConfig=R.withConfig),T}}function gb(e,t,r){return e?`${e}${he(t||"")}`:`Styled(${fb(r)})`}function yb(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${gd(t||"Root")}`),r}function vb(e){for(const t in e)return!1;return!0}function bb(e){return typeof e=="string"&&e.charCodeAt(0)>96}function gd(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const jo=md();function Ao(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const i=n;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)r[i]=a||{};else if(!a)r[i]=l;else{r[i]={...l};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const c=s;r[i][c]=Ao(a[c],l[c])}}}else r[i]===void 0&&(r[i]=e[i])}return r}const cr=typeof window<"u"?j.useLayoutEffect:j.useEffect;function xb(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function ml(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),xb(e,t,r)}function Ob(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function kr(e){if(e.type)return e;if(e.charAt(0)==="#")return kr(Ob(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
77
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:sr(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
|
|
78
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:sr(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const Eb=e=>{const t=kr(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Rn=(e,t)=>{try{return Eb(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function No(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function yd(e){e=kr(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),l=(u,f=(u+r/30)%12)=>i-a*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(s+="a",c.push(t[3])),No({type:s,values:c})}function gl(e){e=kr(e);let t=e.type==="hsl"||e.type==="hsla"?kr(yd(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vd(e,t){const r=gl(e),n=gl(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Qe(e,t){return e=kr(e),t=ml(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,No(e)}function $o(e,t,r){try{return Qe(e,t)}catch{return e}}function yl(e,t){if(e=kr(e),t=ml(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return No(e)}function ct(e,t,r){try{return yl(e,t)}catch{return e}}function vl(e,t){if(e=kr(e),t=ml(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return No(e)}function ut(e,t,r){try{return vl(e,t)}catch{return e}}function Cb(e,t=.15){return gl(e)>.5?yl(e,t):vl(e,t)}function Mo(e,t,r){try{return Cb(e,t)}catch{return e}}function ur(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function Sb(e){const{prototype:t={}}=e;return!!t.isReactComponent}function bd(e,t,r,n,i){const a=e[t],l=i||t;if(a==null||typeof window>"u")return null;let s;const c=a.type;return typeof c=="function"&&!Sb(c)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const _n=ur(o.element,bd);_n.isRequired=ur(o.element.isRequired,bd);function Tb(e){const{prototype:t={}}=e;return!!t.isReactComponent}function wb(e,t,r,n,i){const a=e[t],l=i||t;if(a==null||typeof window>"u")return null;let s;return typeof a=="function"&&!Tb(a)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${n} \`${l}\` 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}const bl=ur(o.elementType,wb),Rb="exact-prop: ";function xd(e){return process.env.NODE_ENV==="production"?e:{...e,[Rb]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}}}function Er(e,t,r,n,i){if(process.env.NODE_ENV==="production")return null;const a=e[t],l=i||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function xl(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function Od(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Ol(e,t){var r,n,i;return j.isValidElement(e)&&t.indexOf(e.type.muiName??((i=(n=(r=e.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:i.muiName))!==-1}function Wt(e){return e&&e.ownerDocument||document}function Cr(e){return Wt(e).defaultView||window}function Do(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function _b(e,t,r,n,i){if(process.env.NODE_ENV==="production")return null;const a=i||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function qr({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=j.useRef(e!==void 0),[a,l]=j.useState(t),s=i?e:a;if(process.env.NODE_ENV!=="production"){j.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${n} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
79
|
+
`))},[n,r,e]);const{current:u}=j.useRef(t);j.useEffect(()=>{!i&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
80
|
+
`))},[JSON.stringify(t)])}const c=j.useCallback(u=>{i||l(u)},[]);return[s,c]}function pr(e){const t=j.useRef(e);return cr(()=>{t.current=e}),j.useRef((...r)=>(0,t.current)(...r)).current}function Ot(...e){return j.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Do(r,t)})},e)}const Ed={};function Cd(e,t){const r=j.useRef(Ed);return r.current===Ed&&(r.current=e(t)),r}const Pb=[];function Ib(e){j.useEffect(e,Pb)}class El{constructor(){Tt(this,"currentId",null);Tt(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Tt(this,"disposeEffect",()=>this.clear)}static create(){return new El}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Sd(){const e=Cd(El.create).current;return Ib(e.disposeEffect),e}function Td(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
81
|
+
`))}return!1}function wd(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const kb=e=>{const t=j.useRef({});return j.useEffect(()=>{t.current=e}),t.current};function jb(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Rd(e,t,r,n){const i=e[t];if(i==null||!Number.isInteger(i)){const a=jb(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function _d(e,t,...r){return e[t]===void 0?null:Rd(e,t,...r)}function Cl(){return null}_d.isRequired=Rd,Cl.isRequired=Cl;const Sl=process.env.NODE_ENV==="production"?Cl:_d;function Ab(e){return typeof e=="string"}function Pd(e,t,r){return e===void 0||Ab(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Id(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function kd(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function jd(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const m=_e(r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),x={...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},d={...r,...i,...n};return m.length>0&&(d.className=m),Object.keys(x).length>0&&(d.style=x),{props:d,internalRef:void 0}}const l=Id({...i,...n}),s=kd(n),c=kd(i),u=t(l),f=_e(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),h={...u==null?void 0:u.style,...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},y={...u,...r,...c,...s};return f.length>0&&(y.className=f),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:u.ref}}function Ad(e,t,r){return typeof e=="function"?e(t,r):e}function Tl(e){var h;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1,...a}=e,l=i?{}:Ad(r,n),{props:s,internalRef:c}=jd({...a,externalSlotProps:l}),u=Ot(c,l==null?void 0:l.ref,(h=e.additionalProps)==null?void 0:h.ref);return Pd(t,{...s,ref:u},n)}function Pn(e){var t;return parseInt(j.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Nb=j.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const Nd=()=>j.useContext(Nb)??!1,$b=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function Mb(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?Ao(i.defaultProps,n):!i.styleOverrides&&!i.variants?Ao(i,n):n}function Db({props:e,name:t}){const r=j.useContext($b);return Mb({props:e,name:t,theme:{components:r}})}const $d={theme:void 0};function Lb(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&($d.theme=i.theme,a=dd(e($d)),t=a,r=i.theme),a}}function Fb(e=""){function t(...n){if(!n.length)return"";const i=n[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${e?`${e}-`:""}${n}${t(...i)})`}const Md=(e,t,r,n=[])=>{let i=e;t.forEach((a,l)=>{l===t.length-1?Array.isArray(i)?i[Number(a)]=r:i&&typeof i=="object"&&(i[a]=r):i&&typeof i=="object"&&(i[a]||(i[a]=n.includes(a)?[]:{}),i=i[a])})},Bb=(e,t,r)=>{function n(i,a=[],l=[]){Object.entries(i).forEach(([s,c])=>{(!r||r&&!r([...a,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?n(c,[...a,s],Array.isArray(c)?[...l,s]:l):t([...a,s],c,l))})}n(e)},qb=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function wl(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},l={};return Bb(e,(s,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(s,c))){const f=`--${r?`${r}-`:""}${s.join("-")}`,h=qb(s,c);Object.assign(i,{[f]:h}),Md(a,s,`var(${f})`,u),Md(l,s,`var(${f}, ${h})`,u)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:l}}function zb(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:s="light",...c}=e,{vars:u,css:f,varsWithDefaults:h}=wl(c,t);let y=h;const m={},{[s]:x,...d}=a;if(Object.entries(d||{}).forEach(([S,T])=>{const{vars:w,css:N,varsWithDefaults:M}=wl(T,t);y=At(y,M),m[S]={css:N,vars:w}}),x){const{css:S,vars:T,varsWithDefaults:w}=wl(x,t);y=At(y,w),m[s]={css:S,vars:T}}function v(S,T){var N,M;let w=i;if(i==="class"&&(w=".%s"),i==="data"&&(w="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(w=`[${i}="%s"]`),S){if(w==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((M=(N=a[S])==null?void 0:N.palette)==null?void 0:M.mode)||S})`]:{":root":T}};if(w)return e.defaultColorScheme===S?`:root, ${w.replace("%s",String(S))}`:w.replace("%s",String(S))}return":root"}return{vars:y,generateThemeVars:()=>{let S={...u};return Object.entries(m).forEach(([,{vars:T}])=>{S=At(S,T)}),S},generateStyleSheets:()=>{var O,g;const S=[],T=e.defaultColorScheme||"light";function w(p,b){Object.keys(b).length&&S.push(typeof p=="string"?{[p]:{...b}}:p)}w(r(void 0,{...f}),f);const{[T]:N,...M}=m;if(N){const{css:p}=N,b=(g=(O=a[T])==null?void 0:O.palette)==null?void 0:g.mode,C=!n&&b?{colorScheme:b,...p}:{...p};w(r(T,{...C}),C)}return Object.entries(M).forEach(([p,{css:b}])=>{var P,k;const C=(k=(P=a[p])==null?void 0:P.palette)==null?void 0:k.mode,_=!n&&C?{colorScheme:C,...b}:{...b};w(r(p,{..._}),_)}),S}}}function Vb(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const In={black:"#000",white:"#fff"},Ub={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"},en={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"},tn={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"},kn={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"},rn={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"},nn={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"},on={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"};function Dd(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:In.white,default:In.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Wb=Dd();function Ld(){return{text:{primary:In.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:In.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Fd=Ld();function Bd(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=vl(e.main,i):t==="dark"&&(e.dark=yl(e.main,a)))}function Hb(e="light"){return e==="dark"?{main:rn[200],light:rn[50],dark:rn[400]}:{main:rn[700],light:rn[400],dark:rn[800]}}function Gb(e="light"){return e==="dark"?{main:en[200],light:en[50],dark:en[400]}:{main:en[500],light:en[300],dark:en[700]}}function Kb(e="light"){return e==="dark"?{main:tn[500],light:tn[300],dark:tn[700]}:{main:tn[700],light:tn[400],dark:tn[800]}}function Yb(e="light"){return e==="dark"?{main:nn[400],light:nn[300],dark:nn[700]}:{main:nn[700],light:nn[500],dark:nn[900]}}function Xb(e="light"){return e==="dark"?{main:on[400],light:on[300],dark:on[700]}:{main:on[800],light:on[500],dark:on[900]}}function Jb(e="light"){return e==="dark"?{main:kn[400],light:kn[300],dark:kn[700]}:{main:"#ed6c02",light:kn[500],dark:kn[900]}}function Rl(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...i}=e,a=e.primary||Hb(t),l=e.secondary||Gb(t),s=e.error||Kb(t),c=e.info||Yb(t),u=e.success||Xb(t),f=e.warning||Jb(t);function h(d){const v=vd(d,Fd.text.primary)>=r?Fd.text.primary:Wb.text.primary;if(process.env.NODE_ENV!=="production"){const E=vd(d,v);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${v} on ${d}`,"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(`
|
|
82
|
+
`))}return v}const y=({color:d,name:v,mainShade:E=500,lightShade:R=300,darkShade:S=700})=>{if(d={...d},!d.main&&d[E]&&(d.main=d[E]),!d.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
83
|
+
The color object needs to have a \`main\` property or a \`${E}\` property.`:sr(11,v?` (${v})`:"",E));if(typeof d.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
84
|
+
\`color.main\` should be a string, but \`${JSON.stringify(d.main)}\` was provided instead.
|
|
85
|
+
|
|
86
|
+
Did you intend to use one of the following approaches?
|
|
87
|
+
|
|
88
|
+
import { green } from "@mui/material/colors";
|
|
89
|
+
|
|
90
|
+
const theme1 = createTheme({ palette: {
|
|
91
|
+
primary: green,
|
|
92
|
+
} });
|
|
93
|
+
|
|
94
|
+
const theme2 = createTheme({ palette: {
|
|
95
|
+
primary: { main: green[500] },
|
|
96
|
+
} });`:sr(12,v?` (${v})`:"",JSON.stringify(d.main)));return Bd(d,"light",R,n),Bd(d,"dark",S,n),d.contrastText||(d.contrastText=h(d.main)),d};let m;return t==="light"?m=Dd():t==="dark"&&(m=Ld()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),At({common:{...In},mode:t,primary:y({color:a,name:"primary"}),secondary:y({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:s,name:"error"}),warning:y({color:f,name:"warning"}),info:y({color:c,name:"info"}),success:y({color:u,name:"success"}),grey:Ub,contrastThreshold:r,getContrastText:h,augmentColor:y,tonalOffset:n,...m},i)}function Qb(e){const t={};return Object.entries(e).forEach(n=>{const[i,a]=n;typeof a=="object"&&(t[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function Zb(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function e0(e){return Math.round(e*1e5)/1e5}const qd={textTransform:"uppercase"},zd='"Roboto", "Helvetica", "Arial", sans-serif';function t0(e,t){const{fontFamily:r=zd,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:f,...h}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=n/14,m=f||(v=>`${v/c*y}rem`),x=(v,E,R,S,T)=>({fontFamily:r,fontWeight:v,fontSize:m(E),lineHeight:R,...r===zd?{letterSpacing:`${e0(S/E)}em`}:{},...T,...u}),d={h1:x(i,96,1.167,-1.5),h2:x(i,60,1.2,-.5),h3:x(a,48,1.167,0),h4:x(a,34,1.235,.25),h5:x(a,24,1.334,0),h6:x(l,20,1.6,.15),subtitle1:x(a,16,1.75,.15),subtitle2:x(l,14,1.57,.1),body1:x(a,16,1.5,.15),body2:x(a,14,1.43,.15),button:x(l,14,1.75,.4,qd),caption:x(a,12,1.66,.4),overline:x(a,12,2.66,1,qd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return At({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s,...d},h,{clone:!1})}const r0=.2,n0=.14,o0=.12;function dt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${r0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${n0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${o0})`].join(",")}const i0=["none",dt(0,2,1,-1,0,1,1,0,0,1,3,0),dt(0,3,1,-2,0,2,2,0,0,1,5,0),dt(0,3,3,-2,0,3,4,0,0,1,8,0),dt(0,2,4,-1,0,4,5,0,0,1,10,0),dt(0,3,5,-1,0,5,8,0,0,1,14,0),dt(0,3,5,-1,0,6,10,0,0,1,18,0),dt(0,4,5,-2,0,7,10,1,0,2,16,1),dt(0,5,5,-3,0,8,10,1,0,3,14,2),dt(0,5,6,-3,0,9,12,1,0,3,16,2),dt(0,6,6,-3,0,10,14,1,0,4,18,3),dt(0,6,7,-4,0,11,15,1,0,4,20,3),dt(0,7,8,-4,0,12,17,2,0,5,22,4),dt(0,7,8,-4,0,13,19,2,0,5,24,4),dt(0,7,9,-4,0,14,21,2,0,5,26,4),dt(0,8,9,-5,0,15,22,2,0,6,28,5),dt(0,8,10,-5,0,16,24,2,0,6,30,5),dt(0,8,11,-5,0,17,26,2,0,6,32,5),dt(0,9,11,-5,0,18,28,2,0,7,34,6),dt(0,9,12,-6,0,19,29,2,0,7,36,6),dt(0,10,13,-6,0,20,31,3,0,8,38,7),dt(0,10,13,-6,0,21,33,3,0,8,40,7),dt(0,10,14,-6,0,22,35,3,0,8,42,7),dt(0,11,14,-7,0,23,36,3,0,9,44,8),dt(0,11,15,-7,0,24,38,3,0,9,46,8)],a0={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)"},s0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Vd(e){return`${Math.round(e)}ms`}function l0(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function c0(e){const t={...a0,...e.easing},r={...s0,...e.duration};return{getAutoHeightDuration:l0,create:(i=["all"],a={})=>{const{duration:l=r.standard,easing:s=t.easeInOut,delay:c=0,...u}=a;if(process.env.NODE_ENV!=="production"){const f=y=>typeof y=="string",h=y=>!Number.isNaN(parseFloat(y));!f(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(l)&&!f(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),f(s)||console.error('MUI: Argument "easing" must be a string.'),!h(c)&&!f(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
97
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(f=>`${f} ${typeof l=="string"?l:Vd(l)} ${s} ${typeof c=="string"?c:Vd(c)}`).join(",")},...e,easing:t,duration:r}}const u0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function p0(e){return lr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ud(e={}){const t={...e};function r(n){const i=Object.entries(n);for(let a=0;a<i.length;a++){const[l,s]=i[a];!p0(s)||l.startsWith("unstable_")?delete n[l]:lr(s)&&(n[l]={...s},r(n[l]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
98
|
+
|
|
99
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
100
|
+
|
|
101
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
102
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
103
|
+
|
|
104
|
+
export default theme;`}function _l(e={},...t){const{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:l={},typography:s={},shape:c,...u}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":sr(20));const f=Rl(a),h=dl(e);let y=At(h,{mixins:Zb(h.breakpoints,n),palette:f,shadows:i0.slice(),typography:t0(f,s),transitions:c0(l),zIndex:{...u0}});if(y=At(y,u),y=t.reduce((m,x)=>At(m,x),y),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],x=(d,v)=>{let E;for(E in d){const R=d[E];if(m.includes(E)&&Object.keys(R).length>0){if(process.env.NODE_ENV!=="production"){const S=We("",E);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${E}\` internal state.`,"You can not override it like this: ",JSON.stringify(d,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:R}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
105
|
+
`))}d[E]={}}}};Object.keys(y.components).forEach(d=>{const v=y.components[d].styleOverrides;v&&d.startsWith("Mui")&&x(v,d)})}return y.unstable_sxConfig={...wn,...u==null?void 0:u.unstable_sxConfig},y.unstable_sx=function(x){return Zr({sx:x,theme:this})},y.toRuntimeSource=Ud,y}function Pl(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const f0=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Pl(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Wd(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Hd(e){return e==="dark"?f0:[]}function d0(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...i}=e,a=Rl(t);return{palette:a,opacity:{...Wd(a.mode),...r},overlays:n||Hd(a.mode),...i}}function h0(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const m0=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],g0=e=>(t,r)=>{const n=e.rootSelector||":root",i=e.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return m0(e.cssVarPrefix).forEach(s=>{l[s]=r[s],delete r[s]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:l}}:a?{[a.replace("%s",t)]:l,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...l}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function y0(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function Q(e,t,r){!e[t]&&r&&(e[t]=r)}function jn(e){return typeof e!="string"||!e.startsWith("hsl")?e:yd(e)}function Sr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Rn(jn(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
106
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function v0(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const fr=e=>{try{return e()}catch{}},b0=(e="mui")=>Fb(e);function Il(e,t,r,n){if(!t)return;t=t===!0?{}:t;const i=n==="dark"?"dark":"light";if(!r){e[n]=d0({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:a,...l}=_l({...r,palette:{mode:i,...t==null?void 0:t.palette}});return e[n]={...t,palette:a,opacity:{...Wd(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Hd(i)},l}function x0(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=h0,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:c=":root",...u}=e,f=Object.keys(r)[0],h=n||(r.light&&f!=="light"?"light":f),y=b0(a),{[h]:m,light:x,dark:d,...v}=r,E={...v};let R=m;if((h==="dark"&&!("dark"in r)||h==="light"&&!("light"in r))&&(R=!0),!R)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:sr(21,h));const S=Il(E,R,u,h);x&&!E.light&&Il(E,x,void 0,"light"),d&&!E.dark&&Il(E,d,void 0,"dark");let T={defaultColorScheme:h,...S,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:c,getCssVar:y,colorSchemes:E,font:{...Qb(S.typography),...S.font},spacing:v0(u.spacing)};Object.keys(T.colorSchemes).forEach(g=>{const p=T.colorSchemes[g].palette,b=C=>{const _=C.split("-"),P=_[1],k=_[2];return y(C,p[P][k])};if(p.mode==="light"&&(Q(p.common,"background","#fff"),Q(p.common,"onBackground","#000")),p.mode==="dark"&&(Q(p.common,"background","#000"),Q(p.common,"onBackground","#fff")),y0(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){Q(p.Alert,"errorColor",ct(p.error.light,.6)),Q(p.Alert,"infoColor",ct(p.info.light,.6)),Q(p.Alert,"successColor",ct(p.success.light,.6)),Q(p.Alert,"warningColor",ct(p.warning.light,.6)),Q(p.Alert,"errorFilledBg",b("palette-error-main")),Q(p.Alert,"infoFilledBg",b("palette-info-main")),Q(p.Alert,"successFilledBg",b("palette-success-main")),Q(p.Alert,"warningFilledBg",b("palette-warning-main")),Q(p.Alert,"errorFilledColor",fr(()=>p.getContrastText(p.error.main))),Q(p.Alert,"infoFilledColor",fr(()=>p.getContrastText(p.info.main))),Q(p.Alert,"successFilledColor",fr(()=>p.getContrastText(p.success.main))),Q(p.Alert,"warningFilledColor",fr(()=>p.getContrastText(p.warning.main))),Q(p.Alert,"errorStandardBg",ut(p.error.light,.9)),Q(p.Alert,"infoStandardBg",ut(p.info.light,.9)),Q(p.Alert,"successStandardBg",ut(p.success.light,.9)),Q(p.Alert,"warningStandardBg",ut(p.warning.light,.9)),Q(p.Alert,"errorIconColor",b("palette-error-main")),Q(p.Alert,"infoIconColor",b("palette-info-main")),Q(p.Alert,"successIconColor",b("palette-success-main")),Q(p.Alert,"warningIconColor",b("palette-warning-main")),Q(p.AppBar,"defaultBg",b("palette-grey-100")),Q(p.Avatar,"defaultBg",b("palette-grey-400")),Q(p.Button,"inheritContainedBg",b("palette-grey-300")),Q(p.Button,"inheritContainedHoverBg",b("palette-grey-A100")),Q(p.Chip,"defaultBorder",b("palette-grey-400")),Q(p.Chip,"defaultAvatarColor",b("palette-grey-700")),Q(p.Chip,"defaultIconColor",b("palette-grey-700")),Q(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Q(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Q(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Q(p.LinearProgress,"primaryBg",ut(p.primary.main,.62)),Q(p.LinearProgress,"secondaryBg",ut(p.secondary.main,.62)),Q(p.LinearProgress,"errorBg",ut(p.error.main,.62)),Q(p.LinearProgress,"infoBg",ut(p.info.main,.62)),Q(p.LinearProgress,"successBg",ut(p.success.main,.62)),Q(p.LinearProgress,"warningBg",ut(p.warning.main,.62)),Q(p.Skeleton,"bg",`rgba(${b("palette-text-primaryChannel")} / 0.11)`),Q(p.Slider,"primaryTrack",ut(p.primary.main,.62)),Q(p.Slider,"secondaryTrack",ut(p.secondary.main,.62)),Q(p.Slider,"errorTrack",ut(p.error.main,.62)),Q(p.Slider,"infoTrack",ut(p.info.main,.62)),Q(p.Slider,"successTrack",ut(p.success.main,.62)),Q(p.Slider,"warningTrack",ut(p.warning.main,.62));const C=Mo(p.background.default,.8);Q(p.SnackbarContent,"bg",C),Q(p.SnackbarContent,"color",fr(()=>p.getContrastText(C))),Q(p.SpeedDialAction,"fabHoverBg",Mo(p.background.paper,.15)),Q(p.StepConnector,"border",b("palette-grey-400")),Q(p.StepContent,"border",b("palette-grey-400")),Q(p.Switch,"defaultColor",b("palette-common-white")),Q(p.Switch,"defaultDisabledColor",b("palette-grey-100")),Q(p.Switch,"primaryDisabledColor",ut(p.primary.main,.62)),Q(p.Switch,"secondaryDisabledColor",ut(p.secondary.main,.62)),Q(p.Switch,"errorDisabledColor",ut(p.error.main,.62)),Q(p.Switch,"infoDisabledColor",ut(p.info.main,.62)),Q(p.Switch,"successDisabledColor",ut(p.success.main,.62)),Q(p.Switch,"warningDisabledColor",ut(p.warning.main,.62)),Q(p.TableCell,"border",ut($o(p.divider,1),.88)),Q(p.Tooltip,"bg",$o(p.grey[700],.92))}if(p.mode==="dark"){Q(p.Alert,"errorColor",ut(p.error.light,.6)),Q(p.Alert,"infoColor",ut(p.info.light,.6)),Q(p.Alert,"successColor",ut(p.success.light,.6)),Q(p.Alert,"warningColor",ut(p.warning.light,.6)),Q(p.Alert,"errorFilledBg",b("palette-error-dark")),Q(p.Alert,"infoFilledBg",b("palette-info-dark")),Q(p.Alert,"successFilledBg",b("palette-success-dark")),Q(p.Alert,"warningFilledBg",b("palette-warning-dark")),Q(p.Alert,"errorFilledColor",fr(()=>p.getContrastText(p.error.dark))),Q(p.Alert,"infoFilledColor",fr(()=>p.getContrastText(p.info.dark))),Q(p.Alert,"successFilledColor",fr(()=>p.getContrastText(p.success.dark))),Q(p.Alert,"warningFilledColor",fr(()=>p.getContrastText(p.warning.dark))),Q(p.Alert,"errorStandardBg",ct(p.error.light,.9)),Q(p.Alert,"infoStandardBg",ct(p.info.light,.9)),Q(p.Alert,"successStandardBg",ct(p.success.light,.9)),Q(p.Alert,"warningStandardBg",ct(p.warning.light,.9)),Q(p.Alert,"errorIconColor",b("palette-error-main")),Q(p.Alert,"infoIconColor",b("palette-info-main")),Q(p.Alert,"successIconColor",b("palette-success-main")),Q(p.Alert,"warningIconColor",b("palette-warning-main")),Q(p.AppBar,"defaultBg",b("palette-grey-900")),Q(p.AppBar,"darkBg",b("palette-background-paper")),Q(p.AppBar,"darkColor",b("palette-text-primary")),Q(p.Avatar,"defaultBg",b("palette-grey-600")),Q(p.Button,"inheritContainedBg",b("palette-grey-800")),Q(p.Button,"inheritContainedHoverBg",b("palette-grey-700")),Q(p.Chip,"defaultBorder",b("palette-grey-700")),Q(p.Chip,"defaultAvatarColor",b("palette-grey-300")),Q(p.Chip,"defaultIconColor",b("palette-grey-300")),Q(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Q(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Q(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Q(p.LinearProgress,"primaryBg",ct(p.primary.main,.5)),Q(p.LinearProgress,"secondaryBg",ct(p.secondary.main,.5)),Q(p.LinearProgress,"errorBg",ct(p.error.main,.5)),Q(p.LinearProgress,"infoBg",ct(p.info.main,.5)),Q(p.LinearProgress,"successBg",ct(p.success.main,.5)),Q(p.LinearProgress,"warningBg",ct(p.warning.main,.5)),Q(p.Skeleton,"bg",`rgba(${b("palette-text-primaryChannel")} / 0.13)`),Q(p.Slider,"primaryTrack",ct(p.primary.main,.5)),Q(p.Slider,"secondaryTrack",ct(p.secondary.main,.5)),Q(p.Slider,"errorTrack",ct(p.error.main,.5)),Q(p.Slider,"infoTrack",ct(p.info.main,.5)),Q(p.Slider,"successTrack",ct(p.success.main,.5)),Q(p.Slider,"warningTrack",ct(p.warning.main,.5));const C=Mo(p.background.default,.98);Q(p.SnackbarContent,"bg",C),Q(p.SnackbarContent,"color",fr(()=>p.getContrastText(C))),Q(p.SpeedDialAction,"fabHoverBg",Mo(p.background.paper,.15)),Q(p.StepConnector,"border",b("palette-grey-600")),Q(p.StepContent,"border",b("palette-grey-600")),Q(p.Switch,"defaultColor",b("palette-grey-300")),Q(p.Switch,"defaultDisabledColor",b("palette-grey-600")),Q(p.Switch,"primaryDisabledColor",ct(p.primary.main,.55)),Q(p.Switch,"secondaryDisabledColor",ct(p.secondary.main,.55)),Q(p.Switch,"errorDisabledColor",ct(p.error.main,.55)),Q(p.Switch,"infoDisabledColor",ct(p.info.main,.55)),Q(p.Switch,"successDisabledColor",ct(p.success.main,.55)),Q(p.Switch,"warningDisabledColor",ct(p.warning.main,.55)),Q(p.TableCell,"border",ct($o(p.divider,1),.68)),Q(p.Tooltip,"bg",$o(p.grey[700],.92))}Sr(p.background,"default"),Sr(p.background,"paper"),Sr(p.common,"background"),Sr(p.common,"onBackground"),Sr(p,"divider"),Object.keys(p).forEach(C=>{const _=p[C];C!=="tonalOffset"&&_&&typeof _=="object"&&(_.main&&Q(p[C],"mainChannel",Rn(jn(_.main))),_.light&&Q(p[C],"lightChannel",Rn(jn(_.light))),_.dark&&Q(p[C],"darkChannel",Rn(jn(_.dark))),_.contrastText&&Q(p[C],"contrastTextChannel",Rn(jn(_.contrastText))),C==="text"&&(Sr(p[C],"primary"),Sr(p[C],"secondary")),C==="action"&&(_.active&&Sr(p[C],"active"),_.selected&&Sr(p[C],"selected")))})}),T=t.reduce((g,p)=>At(g,p),T);const w={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:g0(T)},{vars:N,generateThemeVars:M,generateStyleSheets:O}=zb(T,w);return T.vars=N,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([g,p])=>{T[g]=p}),T.generateThemeVars=M,T.generateStyleSheets=O,T.generateSpacing=function(){return nd(u.spacing,ul(this))},T.getColorSchemeSelector=Vb(s),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=l,T.unstable_sxConfig={...wn,...u==null?void 0:u.unstable_sxConfig},T.unstable_sx=function(p){return Zr({sx:p,theme:this})},T.toRuntimeSource=Ud,T}function Gd(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Rl({...r===!0?{}:r.palette,mode:t})})}function O0(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...l}=e,s=a||"light",c=i==null?void 0:i[s],u={...i,...r?{[s]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return _l(e,...t);let f=r;"palette"in e||u[s]&&(u[s]!==!0?f=u[s].palette:s==="dark"&&(f={mode:"dark"}));const h=_l({...e,palette:f},...t);return h.defaultColorScheme=s,h.colorSchemes=u,h.palette.mode==="light"&&(h.colorSchemes.light={...u.light!==!0&&u.light,palette:h.palette},Gd(h,"dark",u.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:h.palette},Gd(h,"light",u.light)),h}return!r&&!("light"in u)&&s==="light"&&(u.light=!0),x0({...l,colorSchemes:u,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const kl=O0(),jl="$$material";function Al(){const e=od(kl);return process.env.NODE_ENV!=="production"&&j.useDebugValue(e),e[jl]||e}function Kd(e){return A.jsx(id,{...e,defaultTheme:kl,themeId:jl})}process.env.NODE_ENV!=="production"&&(Kd.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function Yd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Nt=e=>Yd(e)&&e!=="classes",xe=md({themeId:jl,defaultTheme:kl,rootShouldForwardProp:Nt});function E0(e){return function(r){return A.jsx(Kd,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function C0(){return qv}process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Je(e){return Db(e)}function Lo(e){return parseInt(e,10)||0}const S0={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function T0(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Xd=j.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:l,value:s,...c}=t,{current:u}=j.useRef(s!=null),f=j.useRef(null),h=Ot(r,f),y=j.useRef(null),m=j.useRef(null),x=j.useCallback(()=>{const E=f.current,S=Cr(E).getComputedStyle(E);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const T=m.current;T.style.width=S.width,T.value=E.value||t.placeholder||"x",T.value.slice(-1)===`
|
|
107
|
+
`&&(T.value+=" ");const w=S.boxSizing,N=Lo(S.paddingBottom)+Lo(S.paddingTop),M=Lo(S.borderBottomWidth)+Lo(S.borderTopWidth),O=T.scrollHeight;T.value="x";const g=T.scrollHeight;let p=O;a&&(p=Math.max(Number(a)*g,p)),i&&(p=Math.min(Number(i)*g,p)),p=Math.max(p,g);const b=p+(w==="border-box"?N+M:0),C=Math.abs(p-O)<=1;return{outerHeightStyle:b,overflowing:C}},[i,a,t.placeholder]),d=j.useCallback(()=>{const E=x();if(T0(E))return;const R=E.outerHeightStyle,S=f.current;y.current!==R&&(y.current=R,S.style.height=`${R}px`),S.style.overflow=E.overflowing?"hidden":""},[x]);cr(()=>{const E=()=>{d()};let R;const S=()=>{cancelAnimationFrame(R),R=requestAnimationFrame(()=>{E()})},T=Od(E),w=f.current,N=Cr(w);N.addEventListener("resize",T);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(process.env.NODE_ENV==="test"?S:E),M.observe(w)),()=>{T.clear(),cancelAnimationFrame(R),N.removeEventListener("resize",T),M&&M.disconnect()}},[x,d]),cr(()=>{d()});const v=E=>{u||d(),n&&n(E)};return A.jsxs(j.Fragment,{children:[A.jsx("textarea",{value:s,onChange:v,ref:h,rows:a,style:l,...c}),A.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:{...S0.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Xd.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function Nl(e){return typeof e=="string"}function jr({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const Fo=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Fo.displayName="FormControlContext");function dr(){return j.useContext(Fo)}const Ke=Lb;function Jd(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Bo(e,t=!1){return e&&(Jd(e.value)&&e.value!==""||t&&Jd(e.defaultValue)&&e.defaultValue!=="")}function w0(e){return e.startAdornment}function R0(e){return We("MuiInputBase",e)}const Ht=qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Qd;const qo=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${he(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},zo=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},_0=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:l,formControl:s,fullWidth:c,hiddenLabel:u,multiline:f,readOnly:h,size:y,startAdornment:m,type:x}=e,d={root:["root",`color${he(r)}`,n&&"disabled",i&&"error",c&&"fullWidth",l&&"focused",s&&"formControl",y&&y!=="medium"&&`size${he(y)}`,f&&"multiline",m&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",n&&"disabled",x==="search"&&"inputTypeSearch",f&&"inputMultiline",y==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return Ge(d,R0,t)},Vo=xe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:qo})(Ke(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ht.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Uo=xe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zo})(Ke(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ht.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ht.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Zd=E0({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Wo=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,color:c,components:u={},componentsProps:f={},defaultValue:h,disabled:y,disableInjectingGlobalStyles:m,endAdornment:x,error:d,fullWidth:v=!1,id:E,inputComponent:R="input",inputProps:S={},inputRef:T,margin:w,maxRows:N,minRows:M,multiline:O=!1,name:g,onBlur:p,onChange:b,onClick:C,onFocus:_,onKeyDown:P,onKeyUp:k,placeholder:D,readOnly:W,renderSuffix:Z,rows:G,size:B,slotProps:Y={},slots:ae={},startAdornment:oe,type:ne="text",value:ue,...ce}=n,ye=S.value!=null?S.value:ue,{current:se}=j.useRef(ye!=null),le=j.useRef(),te=j.useCallback(De=>{process.env.NODE_ENV!=="production"&&De&&De.nodeName!=="INPUT"&&!De.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
108
|
+
`))},[]),ve=Ot(le,T,S.ref,te),[X,Re]=j.useState(!1),z=dr();process.env.NODE_ENV!=="production"&&j.useEffect(()=>{if(z)return z.registerEffect()},[z]);const pe=jr({props:n,muiFormControl:z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=z?z.focused:X,j.useEffect(()=>{!z&&y&&X&&(Re(!1),p&&p())},[z,y,X,p]);const de=z&&z.onFilled,Ce=z&&z.onEmpty,Te=j.useCallback(De=>{Bo(De)?de&&de():Ce&&Ce()},[de,Ce]);cr(()=>{se&&Te({value:ye})},[ye,Te,se]);const $e=De=>{_&&_(De),S.onFocus&&S.onFocus(De),z&&z.onFocus?z.onFocus(De):Re(!0)},He=De=>{p&&p(De),S.onBlur&&S.onBlur(De),z&&z.onBlur?z.onBlur(De):Re(!1)},Ne=(De,...Ze)=>{if(!se){const mt=De.target||le.current;if(mt==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":sr(1));Te({value:mt.value})}S.onChange&&S.onChange(De,...Ze),b&&b(De,...Ze)};j.useEffect(()=>{Te(le.current)},[]);const be=De=>{le.current&&De.currentTarget===De.target&&le.current.focus(),C&&C(De)};let Fe=R,Ye=S;O&&Fe==="input"&&(G?(process.env.NODE_ENV!=="production"&&(M||N)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ye={type:void 0,minRows:G,maxRows:G,...Ye}):Ye={type:void 0,maxRows:N,minRows:M,...Ye},Fe=Xd);const ht=De=>{Te(De.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})};j.useEffect(()=>{z&&z.setAdornedStart(!!oe)},[z,oe]);const Ct={...n,color:pe.color||"primary",disabled:pe.disabled,endAdornment:x,error:pe.error,focused:pe.focused,formControl:z,fullWidth:v,hiddenLabel:pe.hiddenLabel,multiline:O,size:pe.size,startAdornment:oe,type:ne},pt=_0(Ct),Ue=ae.root||u.Root||Vo,Be=Y.root||f.root||{},st=ae.input||u.Input||Uo;return Ye={...Ye,...Y.input??f.input},A.jsxs(j.Fragment,{children:[!m&&typeof Zd=="function"&&(Qd||(Qd=A.jsx(Zd,{}))),A.jsxs(Ue,{...Be,ref:r,onClick:be,...ce,...!Nl(Ue)&&{ownerState:{...Ct,...Be.ownerState}},className:_e(pt.root,Be.className,s,W&&"MuiInputBase-readOnly"),children:[oe,A.jsx(Fo.Provider,{value:null,children:A.jsx(st,{"aria-invalid":pe.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:h,disabled:pe.disabled,id:E,onAnimationStart:ht,name:g,placeholder:D,readOnly:W,required:pe.required,rows:G,value:ye,onKeyDown:P,onKeyUp:k,type:ne,...Ye,...!Nl(st)&&{as:Fe,ownerState:{...Ct,...Ye.ownerState}},ref:ve,className:_e(pt.input,Ye.className,W&&"MuiInputBase-readOnly"),onBlur:He,onChange:Ne,onFocus:$e})}),x,Z?Z({...pe,startAdornment:oe}):null]})]})});process.env.NODE_ENV!=="production"&&(Wo.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:bl,inputProps:o.object,inputRef:Dt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function P0(e){return typeof e.main=="string"}function I0(e,t=[]){if(!P0(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function $t(e=[]){return([,t])=>t&&I0(t,e)}function k0(e){return We("MuiInput",e)}const Ar={...Ht,...qe("MuiInput",["root","underline","input"])},j0=e=>{const{classes:t,disableUnderline:r}=e,i=Ge({root:["root",!r&&"underline"],input:["input"]},k0,t);return{...t,...i}},A0=xe(Vo,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...qo(e,t),!r.disableUnderline&&t.underline]}})(Ke(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ar.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ar.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ar.disabled}, .${Ar.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ar.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($t()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),N0=xe(Uo,{name:"MuiInput",slot:"Input",overridesResolver:zo})({}),An=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,inputComponent:c="input",multiline:u=!1,slotProps:f,slots:h={},type:y="text",...m}=n,x=j0(n),v={root:{ownerState:{disableUnderline:i}}},E=f??l?At(f??l,v):v,R=h.root??a.Root??A0,S=h.input??a.Input??N0;return A.jsx(Wo,{slots:{root:R,input:S},slotProps:E,fullWidth:s,inputComponent:c,multiline:u,ref:r,type:y,...m,classes:x})});process.env.NODE_ENV!=="production"&&(An.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Dt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),An&&(An.muiName="Input");function $0(e){return We("MuiFilledInput",e)}const Gt={...Ht,...qe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function M0(e){return We("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const D0=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${he(t)}`,`fontSize${he(r)}`]};return Ge(i,M0,n)},L0=xe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${he(r.color)}`],t[`fontSize${he(r.fontSize)}`]]}})(Ke(({theme:e})=>{var t,r,n,i,a,l,s,c,u,f,h,y,m,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:d=>!d.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:c.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,d])=>d&&d.main).map(([d])=>{var v,E;return{props:{color:d},style:{color:(E=(v=(e.vars??e).palette)==null?void 0:v[d])==null?void 0:E.main}}}),{props:{color:"action"},style:{color:(y=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:y.active}},{props:{color:"disabled"},style:{color:(x=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:x.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Nn=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:l="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:h,viewBox:y="0 0 24 24",...m}=n,x=j.isValidElement(i)&&i.type==="svg",d={...n,color:l,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:y,hasSvgAsChild:x},v={};f||(v.viewBox=y);const E=D0(d);return A.jsxs(L0,{as:s,className:_e(E.root,a),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r,...v,...m,...x&&i.props,ownerState:d,children:[x?i.props.children:i,h?A.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(Nn.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string}),Nn&&(Nn.muiName="SvgIcon");function Pt(e,t){function r(n,i){return A.jsx(Nn,{"data-testid":`${t}Icon`,ref:i,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Nn.muiName,j.memo(j.forwardRef(r))}const F0=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:i,size:a,hiddenLabel:l,multiline:s}=e,c={root:["root",!r&&"underline",n&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${he(a)}`,l&&"hiddenLabel",s&&"multiline"],input:["input"]},u=Ge(c,$0,t);return{...t,...u}},B0=xe(Vo,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...qo(e,t),!r.disableUnderline&&t.underline]}})(Ke(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${Gt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${Gt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gt.disabled}, .${Gt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Gt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($t()).map(([l])=>{var s;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[l])==null?void 0:s.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:s})=>l.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),q0=xe(Uo,{name:"MuiFilledInput",slot:"Input",overridesResolver:zo})(Ke(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),$n=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,hiddenLabel:c,inputComponent:u="input",multiline:f=!1,slotProps:h,slots:y={},type:m="text",...x}=n,d={...n,disableUnderline:i,fullWidth:s,inputComponent:u,multiline:f,type:m},v=F0(n),E={root:{ownerState:d},input:{ownerState:d}},R=h??l?At(E,h??l):E,S=y.root??a.Root??B0,T=y.input??a.Input??q0;return A.jsx(Wo,{slots:{root:S,input:T},slotProps:R,fullWidth:s,inputComponent:u,multiline:f,ref:r,type:m,...x,classes:v})});process.env.NODE_ENV!=="production"&&($n.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Dt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),$n&&($n.muiName="Input");var eh;const z0=xe("fieldset",{shouldForwardProp:Nt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),V0=xe("legend",{shouldForwardProp:Nt})(Ke(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function th(e){const{children:t,classes:r,className:n,label:i,notched:a,...l}=e,s=i!=null&&i!=="",c={...e,notched:a,withLabel:s};return A.jsx(z0,{"aria-hidden":!0,className:n,ownerState:c,...l,children:A.jsx(V0,{ownerState:c,children:s?A.jsx("span",{children:i}):eh||(eh=A.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(th.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});function U0(e){return We("MuiOutlinedInput",e)}const er={...Ht,...qe("MuiOutlinedInput",["root","notchedOutline","input"])},W0=e=>{const{classes:t}=e,n=Ge({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},U0,t);return{...t,...n}},H0=xe(Vo,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:qo})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${er.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${er.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${er.focused} .${er.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter($t()).map(([r])=>({props:{color:r},style:{[`&.${er.focused} .${er.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${er.error} .${er.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${er.disabled} .${er.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),G0=xe(th,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),K0=xe(Uo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zo})(Ke(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Mn=j.forwardRef(function(t,r){var n;const i=Je({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:l=!1,inputComponent:s="input",label:c,multiline:u=!1,notched:f,slots:h={},type:y="text",...m}=i,x=W0(i),d=dr(),v=jr({props:i,muiFormControl:d,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E={...i,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:d,fullWidth:l,hiddenLabel:v.hiddenLabel,multiline:u,size:v.size,type:y},R=h.root??a.Root??H0,S=h.input??a.Input??K0;return A.jsx(Wo,{slots:{root:R,input:S},renderSuffix:T=>A.jsx(G0,{ownerState:E,className:x.notchedOutline,label:c!=null&&c!==""&&v.required?n||(n=A.jsxs(j.Fragment,{children:[c," ","*"]})):c,notched:typeof f<"u"?f:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:l,inputComponent:s,multiline:u,ref:r,type:y,...m,classes:{...x,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Mn.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Dt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),Mn&&(Mn.muiName="Input");function Y0(e){return We("MuiFormLabel",e)}const Dn=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),X0=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:l,required:s}=e,c={root:["root",`color${he(r)}`,i&&"disabled",a&&"error",l&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ge(c,Y0,t)},J0=xe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{[`&.${Dn.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Dn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Dn.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Q0=xe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ke(({theme:e})=>({[`&.${Dn.error}`]:{color:(e.vars||e).palette.error.main}}))),Nr=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormLabel"}),{children:i,className:a,color:l,component:s="label",disabled:c,error:u,filled:f,focused:h,required:y,...m}=n,x=dr(),d=jr({props:n,muiFormControl:x,states:["color","required","focused","disabled","error","filled"]}),v={...n,color:d.color||"primary",component:s,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required},E=X0(v);return A.jsxs(J0,{as:s,ownerState:v,className:_e(E.root,a),ref:r,...m,children:[i,d.required&&A.jsxs(Q0,{ownerState:v,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Nr.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Z0(e){return We("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ex=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:l,required:s}=e,c={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="normal"&&`size${he(n)}`,l],asterisk:[s&&"asterisk"]},u=Ge(c,Z0,t);return{...t,...u}},tx=xe(Nr,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Dn.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Ke(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Ho=j.forwardRef(function(t,r){const n=Je({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:a,shrink:l,variant:s,className:c,...u}=n,f=dr();let h=l;typeof h>"u"&&f&&(h=f.filled||f.focused||f.adornedStart);const y=jr({props:n,muiFormControl:f,states:["size","variant","required","focused"]}),m={...n,disableAnimation:i,formControl:f,shrink:h,size:y.size,variant:y.variant,required:y.required,focused:y.focused},x=ex(m);return A.jsx(tx,{"data-shrink":h,ref:r,className:_e(x.root,c),...u,ownerState:m,classes:x})});process.env.NODE_ENV!=="production"&&(Ho.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["normal","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function rx(e){return We("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const nx=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${he(r)}`,n&&"fullWidth"]};return Ge(i,rx,t)},ox=xe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${he(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),an=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormControl"}),{children:i,className:a,color:l="primary",component:s="div",disabled:c=!1,error:u=!1,focused:f,fullWidth:h=!1,hiddenLabel:y=!1,margin:m="none",required:x=!1,size:d="medium",variant:v="outlined",...E}=n,R={...n,color:l,component:s,disabled:c,error:u,fullWidth:h,hiddenLabel:y,margin:m,required:x,size:d,variant:v},S=nx(R),[T,w]=j.useState(()=>{let P=!1;return i&&j.Children.forEach(i,k=>{if(!Ol(k,["Input","Select"]))return;const D=Ol(k,["Select"])?k.props.input:k;D&&w0(D.props)&&(P=!0)}),P}),[N,M]=j.useState(()=>{let P=!1;return i&&j.Children.forEach(i,k=>{Ol(k,["Input","Select"])&&(Bo(k.props,!0)||Bo(k.props.inputProps,!0))&&(P=!0)}),P}),[O,g]=j.useState(!1);c&&O&&g(!1);const p=f!==void 0&&!c?f:O;let b;const C=j.useRef(!1);process.env.NODE_ENV!=="production"&&(b=()=>(C.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
109
|
+
`)),C.current=!0,()=>{C.current=!1}));const _=j.useMemo(()=>({adornedStart:T,setAdornedStart:w,color:l,disabled:c,error:u,filled:N,focused:p,fullWidth:h,hiddenLabel:y,size:d,onBlur:()=>{g(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{g(!0)},registerEffect:b,required:x,variant:v}),[T,l,c,u,N,p,h,y,b,x,d,v]);return A.jsx(Fo.Provider,{value:_,children:A.jsx(ox,{as:s,ownerState:R,className:_e(S.root,a),ref:r,...E,children:i})})});process.env.NODE_ENV!=="production"&&(an.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function ix(e){return We("MuiFormHelperText",e)}const rh=qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var nh;const ax=e=>{const{classes:t,contained:r,size:n,disabled:i,error:a,filled:l,focused:s,required:c}=e,u={root:["root",i&&"disabled",a&&"error",n&&`size${he(n)}`,r&&"contained",s&&"focused",l&&"filled",c&&"required"]};return Ge(u,ix,t)},sx=xe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${he(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${rh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rh.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Ln=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:l="p",disabled:s,error:c,filled:u,focused:f,margin:h,required:y,variant:m,...x}=n,d=dr(),v=jr({props:n,muiFormControl:d,states:["variant","size","disabled","error","filled","focused","required"]}),E={...n,component:l,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete E.ownerState;const R=ax(E);return A.jsx(sx,{as:l,className:_e(R.root,a),ref:r,...x,ownerState:E,children:i===" "?nh||(nh=A.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});process.env.NODE_ENV!=="production"&&(Ln.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});var Go={exports:{}},ot={};/**
|
|
110
|
+
* @license React
|
|
111
|
+
* react-is.production.min.js
|
|
112
|
+
*
|
|
113
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the MIT license found in the
|
|
116
|
+
* LICENSE file in the root directory of this source tree.
|
|
117
|
+
*/var oh;function lx(){if(oh)return ot;oh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function d(v){if(typeof v=="object"&&v!==null){var E=v.$$typeof;switch(E){case e:switch(v=v.type,v){case r:case i:case n:case u:case f:return v;default:switch(v=v&&v.$$typeof,v){case s:case l:case c:case y:case h:case a:return v;default:return E}}case t:return E}}}return ot.ContextConsumer=l,ot.ContextProvider=a,ot.Element=e,ot.ForwardRef=c,ot.Fragment=r,ot.Lazy=y,ot.Memo=h,ot.Portal=t,ot.Profiler=i,ot.StrictMode=n,ot.Suspense=u,ot.SuspenseList=f,ot.isAsyncMode=function(){return!1},ot.isConcurrentMode=function(){return!1},ot.isContextConsumer=function(v){return d(v)===l},ot.isContextProvider=function(v){return d(v)===a},ot.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},ot.isForwardRef=function(v){return d(v)===c},ot.isFragment=function(v){return d(v)===r},ot.isLazy=function(v){return d(v)===y},ot.isMemo=function(v){return d(v)===h},ot.isPortal=function(v){return d(v)===t},ot.isProfiler=function(v){return d(v)===i},ot.isStrictMode=function(v){return d(v)===n},ot.isSuspense=function(v){return d(v)===u},ot.isSuspenseList=function(v){return d(v)===f},ot.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===u||v===f||v===m||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===h||v.$$typeof===a||v.$$typeof===l||v.$$typeof===c||v.$$typeof===x||v.getModuleId!==void 0)},ot.typeOf=d,ot}var it={};/**
|
|
118
|
+
* @license React
|
|
119
|
+
* react-is.development.js
|
|
120
|
+
*
|
|
121
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the MIT license found in the
|
|
124
|
+
* LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/var ih;function cx(){return ih||(ih=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),x=!1,d=!1,v=!1,E=!1,R=!1,S;S=Symbol.for("react.module.reference");function T(z){return!!(typeof z=="string"||typeof z=="function"||z===r||z===i||R||z===n||z===u||z===f||E||z===m||x||d||v||typeof z=="object"&&z!==null&&(z.$$typeof===y||z.$$typeof===h||z.$$typeof===a||z.$$typeof===l||z.$$typeof===c||z.$$typeof===S||z.getModuleId!==void 0))}function w(z){if(typeof z=="object"&&z!==null){var pe=z.$$typeof;switch(pe){case e:var de=z.type;switch(de){case r:case i:case n:case u:case f:return de;default:var Ce=de&&de.$$typeof;switch(Ce){case s:case l:case c:case y:case h:case a:return Ce;default:return pe}}case t:return pe}}}var N=l,M=a,O=e,g=c,p=r,b=y,C=h,_=t,P=i,k=n,D=u,W=f,Z=!1,G=!1;function B(z){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(z){return G||(G=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(z){return w(z)===l}function oe(z){return w(z)===a}function ne(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function ue(z){return w(z)===c}function ce(z){return w(z)===r}function ye(z){return w(z)===y}function se(z){return w(z)===h}function le(z){return w(z)===t}function te(z){return w(z)===i}function ve(z){return w(z)===n}function X(z){return w(z)===u}function Re(z){return w(z)===f}it.ContextConsumer=N,it.ContextProvider=M,it.Element=O,it.ForwardRef=g,it.Fragment=p,it.Lazy=b,it.Memo=C,it.Portal=_,it.Profiler=P,it.StrictMode=k,it.Suspense=D,it.SuspenseList=W,it.isAsyncMode=B,it.isConcurrentMode=Y,it.isContextConsumer=ae,it.isContextProvider=oe,it.isElement=ne,it.isForwardRef=ue,it.isFragment=ce,it.isLazy=ye,it.isMemo=se,it.isPortal=le,it.isProfiler=te,it.isStrictMode=ve,it.isSuspense=X,it.isSuspenseList=Re,it.isValidElementType=T,it.typeOf=w}()),it}var ah;function ux(){return ah||(ah=1,process.env.NODE_ENV==="production"?Go.exports=lx():Go.exports=cx()),Go.exports}var $l=ux();const Ko=j.createContext({});process.env.NODE_ENV!=="production"&&(Ko.displayName="ListContext");function px(e){return We("MuiList",e)}qe("MuiList",["root","padding","dense","subheader"]);const fx=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ge({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},px,t)},dx=xe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),sh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiList"}),{children:i,className:a,component:l="ul",dense:s=!1,disablePadding:c=!1,subheader:u,...f}=n,h=j.useMemo(()=>({dense:s}),[s]),y={...n,component:l,dense:s,disablePadding:c},m=fx(y);return A.jsx(Ko.Provider,{value:h,children:A.jsxs(dx,{as:l,className:_e(m.root,a),ref:r,ownerState:y,...f,children:[u,i]})})});process.env.NODE_ENV!=="production"&&(sh.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Ml(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function lh(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function ch(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function Fn(e,t,r,n,i,a){let l=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(l)return!1;l=!0}const c=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!ch(s,a)||c)s=i(e,s,r);else return s.focus(),!0}return!1}const uh=j.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:l,className:s,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:f,variant:h="selectedMenu",...y}=t,m=j.useRef(null),x=j.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});cr(()=>{i&&m.current.focus()},[i]),j.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(S,{direction:T})=>{const w=!m.current.style.width;if(S.clientHeight<m.current.clientHeight&&w){const N=`${wd(Cr(S))}px`;m.current.style[T==="rtl"?"paddingLeft":"paddingRight"]=N,m.current.style.width=`calc(100% + ${N})`}return m.current}}),[]);const d=S=>{const T=m.current,w=S.key;if(S.ctrlKey||S.metaKey||S.altKey){f&&f(S);return}const M=Wt(T).activeElement;if(w==="ArrowDown")S.preventDefault(),Fn(T,M,u,c,Ml);else if(w==="ArrowUp")S.preventDefault(),Fn(T,M,u,c,lh);else if(w==="Home")S.preventDefault(),Fn(T,null,u,c,Ml);else if(w==="End")S.preventDefault(),Fn(T,null,u,c,lh);else if(w.length===1){const O=x.current,g=w.toLowerCase(),p=performance.now();O.keys.length>0&&(p-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&g!==O.keys[0]&&(O.repeating=!1)),O.lastTime=p,O.keys.push(g);const b=M&&!O.repeating&&ch(M,O);O.previousKeyMatched&&(b||Fn(T,M,!1,c,Ml,O))?S.preventDefault():O.previousKeyMatched=!1}f&&f(S)},v=Ot(m,r);let E=-1;j.Children.forEach(l,(S,T)=>{if(!j.isValidElement(S)){E===T&&(E+=1,E>=l.length&&(E=-1));return}process.env.NODE_ENV!=="production"&&$l.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
126
|
+
`)),S.props.disabled||(h==="selectedMenu"&&S.props.selected||E===-1)&&(E=T),E===T&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(E+=1,E>=l.length&&(E=-1))});const R=j.Children.map(l,(S,T)=>{if(T===E){const w={};return a&&(w.autoFocus=!0),S.props.tabIndex===void 0&&h==="selectedMenu"&&(w.tabIndex=0),j.cloneElement(S,w)}return S});return A.jsx(sh,{role:"menu",ref:v,className:s,onKeyDown:d,tabIndex:i?0:-1,...y,children:R})});process.env.NODE_ENV!=="production"&&(uh.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dl.apply(null,arguments)}function ph(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Ll(e,t){return Ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ll(e,t)}function fh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ll(e,t)}const dh={disabled:!1};var hx=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const Yo=we.createContext(null);var mx=function(t){return t.scrollTop},Bn="unmounted",zr="exited",Vr="entering",sn="entered",Fl="exiting",hr=function(e){fh(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var l=i,s=l&&!l.isMounting?n.enter:n.appear,c;return a.appearStatus=null,n.in?s?(c=zr,a.appearStatus=Vr):c=sn:n.unmountOnExit||n.mountOnEnter?c=Bn:c=zr,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var l=i.in;return l&&a.status===Bn?{status:zr}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==Vr&&l!==sn&&(a=Vr):(l===Vr||l===sn)&&(a=Fl)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,l,s;return a=l=s=i,i!=null&&typeof i!="number"&&(a=i.exit,l=i.enter,s=i.appear!==void 0?i.appear:l),{exit:a,enter:l,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Vr){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this);l&&mx(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zr&&this.setState({status:Bn})},r.performEnter=function(i){var a=this,l=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[mn.findDOMNode(this),s],u=c[0],f=c[1],h=this.getTimeouts(),y=s?h.appear:h.enter;if(!i&&!l||dh.disabled){this.safeSetState({status:sn},function(){a.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Vr},function(){a.props.onEntering(u,f),a.onTransitionEnd(y,function(){a.safeSetState({status:sn},function(){a.props.onEntered(u,f)})})})},r.performExit=function(){var i=this,a=this.props.exit,l=this.getTimeouts(),s=this.props.nodeRef?void 0:mn.findDOMNode(this);if(!a||dh.disabled){this.safeSetState({status:zr},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Fl},function(){i.props.onExiting(s),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:zr},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,l=!0;return this.nextCallback=function(s){l&&(l=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!l||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=c[0],f=c[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Bn)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=ph(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return we.createElement(Yo.Provider,{value:null},typeof l=="function"?l(i,s):we.cloneElement(we.Children.only(l),s))},t}(we.Component);hr.contextType=Yo,hr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,r,n,i,a){var l=e[t];return o.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,r,n,i,a)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var r=hx;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return r.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function ln(){}hr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ln,onEntering:ln,onEntered:ln,onExit:ln,onExiting:ln,onExited:ln},hr.UNMOUNTED=Bn,hr.EXITED=zr,hr.ENTERING=Vr,hr.ENTERED=sn,hr.EXITING=Fl;function gx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bl(e,t){var r=function(a){return t&&we.isValidElement(a)?t(a):a},n=Object.create(null);return e&&we.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function yx(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var l,s={};for(var c in t){if(n[c])for(l=0;l<n[c].length;l++){var u=n[c][l];s[n[c][l]]=r(u)}s[c]=r(c)}for(l=0;l<i.length;l++)s[i[l]]=r(i[l]);return s}function Ur(e,t,r){return r[t]!=null?r[t]:e.props[t]}function vx(e,t){return Bl(e.children,function(r){return we.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Ur(r,"appear",e),enter:Ur(r,"enter",e),exit:Ur(r,"exit",e)})})}function bx(e,t,r){var n=Bl(e.children),i=yx(t,n);return Object.keys(i).forEach(function(a){var l=i[a];if(we.isValidElement(l)){var s=a in t,c=a in n,u=t[a],f=we.isValidElement(u)&&!u.props.in;c&&(!s||f)?i[a]=we.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:Ur(l,"exit",e),enter:Ur(l,"enter",e)}):!c&&s&&!f?i[a]=we.cloneElement(l,{in:!1}):c&&s&&we.isValidElement(u)&&(i[a]=we.cloneElement(l,{onExited:r.bind(null,l),in:u.props.in,exit:Ur(l,"exit",e),enter:Ur(l,"enter",e)}))}}),i}var xx=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ox={component:"div",childFactory:function(t){return t}},ql=function(e){fh(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var l=a.handleExited.bind(gx(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var l=a.children,s=a.handleExited,c=a.firstRender;return{children:c?vx(i,s):bx(i,l,s),firstRender:!1}},r.handleExited=function(i,a){var l=Bl(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var c=Dl({},s.children);return delete c[i.key],{children:c}}))},r.render=function(){var i=this.props,a=i.component,l=i.childFactory,s=ph(i,["component","childFactory"]),c=this.state.contextValue,u=xx(this.state.children).map(l);return delete s.appear,delete s.enter,delete s.exit,a===null?we.createElement(Yo.Provider,{value:c},u):we.createElement(Yo.Provider,{value:c},we.createElement(a,s,u))},t}(we.Component);ql.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},ql.defaultProps=Ox;const hh=e=>e.scrollTop;function Xo(e,t){const{timeout:r,easing:n,style:i={}}=e;return{duration:i.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:i.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:i.transitionDelay}}function zl(e){return`scale(${e}, ${e**2})`}const Ex={entering:{opacity:1,transform:zl(1)},entered:{opacity:1,transform:"none"}},Vl=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Jo=j.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:f,onExit:h,onExited:y,onExiting:m,style:x,timeout:d="auto",TransitionComponent:v=hr,...E}=t,R=Sd(),S=j.useRef(),T=Al(),w=j.useRef(null),N=Ot(w,Pn(a),r),M=k=>D=>{if(k){const W=w.current;D===void 0?k(W):k(W,D)}},O=M(f),g=M((k,D)=>{hh(k);const{duration:W,delay:Z,easing:G}=Xo({style:x,timeout:d,easing:l},{mode:"enter"});let B;d==="auto"?(B=T.transitions.getAutoHeightDuration(k.clientHeight),S.current=B):B=W,k.style.transition=[T.transitions.create("opacity",{duration:B,delay:Z}),T.transitions.create("transform",{duration:Vl?B:B*.666,delay:Z,easing:G})].join(","),c&&c(k,D)}),p=M(u),b=M(m),C=M(k=>{const{duration:D,delay:W,easing:Z}=Xo({style:x,timeout:d,easing:l},{mode:"exit"});let G;d==="auto"?(G=T.transitions.getAutoHeightDuration(k.clientHeight),S.current=G):G=D,k.style.transition=[T.transitions.create("opacity",{duration:G,delay:W}),T.transitions.create("transform",{duration:Vl?G:G*.666,delay:Vl?W:W||G*.333,easing:Z})].join(","),k.style.opacity=0,k.style.transform=zl(.75),h&&h(k)}),_=M(y),P=k=>{d==="auto"&&R.start(S.current||0,k),n&&n(w.current,k)};return A.jsx(v,{appear:i,in:s,nodeRef:w,onEnter:g,onEntered:p,onEntering:O,onExit:C,onExited:_,onExiting:b,addEndListener:P,timeout:d==="auto"?null:d,...E,children:(k,D)=>j.cloneElement(a,{style:{opacity:0,transform:zl(.75),visibility:k==="exited"&&!s?"hidden":void 0,...Ex[k],...x,...a.props.style},ref:N,...D})})});process.env.NODE_ENV!=="production"&&(Jo.propTypes={addEndListener:o.func,appear:o.bool,children:_n.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])}),Jo&&(Jo.muiSupportAuto=!0);function Cx(e){const t=Wt(e);return t.body===e?Cr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function qn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function mh(e){return parseInt(Cr(e).getComputedStyle(e).paddingRight,10)||0}function Sx(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function gh(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,l=>{const s=!a.includes(l),c=!Sx(l);s&&c&&qn(l,i)})}function Ul(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function Tx(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Cx(n)){const l=wd(Cr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${mh(n)+l}px`;const s=Wt(n).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${mh(c)+l}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Wt(n).body;else{const l=n.parentElement,s=Cr(n);a=(l==null?void 0:l.nodeName)==="HTML"&&s.getComputedStyle(l).overflowY==="scroll"?l:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:l,property:s})=>{a?l.style.setProperty(s,a):l.style.removeProperty(s)})}}function wx(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Rx{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&qn(t.modalRef,!1);const i=wx(r);gh(r,t.mount,t.modalRef,i,!0);const a=Ul(this.containers,l=>l.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=Ul(this.containers,a=>a.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=Tx(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Ul(this.containers,l=>l.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&qn(t.modalRef,r),gh(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&qn(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const _x=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Px(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Ix(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function kx(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Ix(e))}function jx(e){const t=[],r=[];return Array.from(e.querySelectorAll(_x)).forEach((n,i)=>{const a=Px(n);a===-1||!kx(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function Ax(){return!0}function Qo(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=jx,isEnabled:l=Ax,open:s}=e,c=j.useRef(!1),u=j.useRef(null),f=j.useRef(null),h=j.useRef(null),y=j.useRef(null),m=j.useRef(!1),x=j.useRef(null),d=Ot(Pn(t),x),v=j.useRef(null);j.useEffect(()=>{!s||!x.current||(m.current=!r)},[r,s]),j.useEffect(()=>{if(!s||!x.current)return;const S=Wt(x.current);return x.current.contains(S.activeElement)||(x.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
127
|
+
`)),x.current.setAttribute("tabIndex","-1")),m.current&&x.current.focus()),()=>{i||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[s]),j.useEffect(()=>{if(!s||!x.current)return;const S=Wt(x.current),T=M=>{v.current=M,!(n||!l()||M.key!=="Tab")&&S.activeElement===x.current&&M.shiftKey&&(c.current=!0,f.current&&f.current.focus())},w=()=>{var g,p;const M=x.current;if(M===null)return;if(!S.hasFocus()||!l()||c.current){c.current=!1;return}if(M.contains(S.activeElement)||n&&S.activeElement!==u.current&&S.activeElement!==f.current)return;if(S.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!m.current)return;let O=[];if((S.activeElement===u.current||S.activeElement===f.current)&&(O=a(x.current)),O.length>0){const b=!!((g=v.current)!=null&&g.shiftKey&&((p=v.current)==null?void 0:p.key)==="Tab"),C=O[0],_=O[O.length-1];typeof C!="string"&&typeof _!="string"&&(b?_.focus():C.focus())}else M.focus()};S.addEventListener("focusin",w),S.addEventListener("keydown",T,!0);const N=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(N),S.removeEventListener("focusin",w),S.removeEventListener("keydown",T,!0)}},[r,n,i,l,s,a]);const E=S=>{h.current===null&&(h.current=S.relatedTarget),m.current=!0,y.current=S.target;const T=t.props.onFocus;T&&T(S)},R=S=>{h.current===null&&(h.current=S.relatedTarget),m.current=!0};return A.jsxs(j.Fragment,{children:[A.jsx("div",{tabIndex:s?0:-1,onFocus:R,ref:u,"data-testid":"sentinelStart"}),j.cloneElement(t,{ref:d,onFocus:E}),A.jsx("div",{tabIndex:s?0:-1,onFocus:R,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Qo.propTypes={children:_n,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Qo.propTypes=xd(Qo.propTypes));function Nx(e){return typeof e=="function"?e():e}const zn=j.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[l,s]=j.useState(null),c=Ot(j.isValidElement(n)?Pn(n):null,r);if(cr(()=>{a||s(Nx(i)||document.body)},[i,a]),cr(()=>{if(l&&!a)return Do(r,l),()=>{Do(r,null)}},[r,l,a]),a){if(j.isValidElement(n)){const u={ref:c};return j.cloneElement(n,u)}return n}return l&&$m.createPortal(n,l)});process.env.NODE_ENV!=="production"&&(zn.propTypes={children:o.node,container:o.oneOfType([Er,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(zn.propTypes=xd(zn.propTypes));function Lt(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:a,internalForwardedProps:l,...s}=t,{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...h}=a,y=u[e]||n,m=Ad(f[e],i),{props:{component:x,...d},internalRef:v}=jd({className:r,...s,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:m}),E=Ot(v,m==null?void 0:m.ref,t.ref),R=e==="root"?x||c:x,S=Pd(y,{...e==="root"&&!c&&!u[e]&&l,...e!=="root"&&!u[e]&&l,...d,...R&&{as:R},ref:E},i);return[y,S]}const $x={entering:{opacity:1},entered:{opacity:1}},yh=j.forwardRef(function(t,r){const n=Al(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:s,easing:c,in:u,onEnter:f,onEntered:h,onEntering:y,onExit:m,onExited:x,onExiting:d,style:v,timeout:E=i,TransitionComponent:R=hr,...S}=t,T=j.useRef(null),w=Ot(T,Pn(s),r),N=P=>k=>{if(P){const D=T.current;k===void 0?P(D):P(D,k)}},M=N(y),O=N((P,k)=>{hh(P);const D=Xo({style:v,timeout:E,easing:c},{mode:"enter"});P.style.webkitTransition=n.transitions.create("opacity",D),P.style.transition=n.transitions.create("opacity",D),f&&f(P,k)}),g=N(h),p=N(d),b=N(P=>{const k=Xo({style:v,timeout:E,easing:c},{mode:"exit"});P.style.webkitTransition=n.transitions.create("opacity",k),P.style.transition=n.transitions.create("opacity",k),m&&m(P)}),C=N(x),_=P=>{a&&a(T.current,P)};return A.jsx(R,{appear:l,in:u,nodeRef:T,onEnter:O,onEntered:g,onEntering:M,onExit:b,onExited:C,onExiting:p,addEndListener:_,timeout:E,...S,children:(P,k)=>j.cloneElement(s,{style:{opacity:0,visibility:P==="exited"&&!u?"hidden":void 0,...$x[P],...v,...s.props.style},ref:w,...k})})});process.env.NODE_ENV!=="production"&&(yh.propTypes={addEndListener:o.func,appear:o.bool,children:_n.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function Mx(e){return We("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const Dx=e=>{const{ownerState:t,...r}=e;return r},Lx=e=>{const{classes:t,invisible:r}=e;return Ge({root:["root",r&&"invisible"]},Mx,t)},Fx=xe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),vh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:l="div",invisible:s=!1,open:c,components:u={},componentsProps:f={},slotProps:h={},slots:y={},TransitionComponent:m,transitionDuration:x,...d}=n,v={...n,component:l,invisible:s},E=Lx(v),R={transition:m,root:u.Root,...y},S={...f,...h},T={slots:R,slotProps:S},[w,N]=Lt("root",{elementType:Fx,externalForwardedProps:T,className:_e(E.root,a),ownerState:v}),[M,O]=Lt("transition",{elementType:yh,externalForwardedProps:T,ownerState:v}),g=Dx(O);return A.jsx(M,{in:c,timeout:x,...d,...g,children:A.jsx(w,{"aria-hidden":!0,...N,classes:E,ref:r,children:i})})});process.env.NODE_ENV!=="production"&&(vh.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function Bx(e){return typeof e=="function"?e():e}function qx(e){return e?e.props.hasOwnProperty("in"):!1}const bh=()=>{},Zo=new Rx;function zx(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:f}=e,h=j.useRef({}),y=j.useRef(null),m=j.useRef(null),x=Ot(m,f),[d,v]=j.useState(!u),E=qx(s);let R=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(R=!1);const S=()=>Wt(y.current),T=()=>(h.current.modalRef=m.current,h.current.mount=y.current,h.current),w=()=>{Zo.mount(T(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},N=pr(()=>{const k=Bx(t)||S().body;Zo.add(T(),k),m.current&&w()}),M=()=>Zo.isTopModal(T()),O=pr(k=>{y.current=k,k&&(u&&M()?w():m.current&&qn(m.current,R))}),g=j.useCallback(()=>{Zo.remove(T(),R)},[R]);j.useEffect(()=>()=>{g()},[g]),j.useEffect(()=>{u?N():(!E||!i)&&g()},[u,g,E,i,N]);const p=k=>D=>{var W;(W=k.onKeyDown)==null||W.call(k,D),!(D.key!=="Escape"||D.which===229||!M())&&(r||(D.stopPropagation(),c&&c(D,"escapeKeyDown")))},b=k=>D=>{var W;(W=k.onClick)==null||W.call(k,D),D.target===D.currentTarget&&c&&c(D,"backdropClick")};return{getRootProps:(k={})=>{const D=Id(e);delete D.onTransitionEnter,delete D.onTransitionExited;const W={...D,...k};return{role:"presentation",...W,onKeyDown:p(W),ref:x}},getBackdropProps:(k={})=>{const D=k;return{"aria-hidden":!0,...D,onClick:b(D),open:u}},getTransitionProps:()=>{const k=()=>{v(!1),a&&a()},D=()=>{v(!0),l&&l(),i&&g()};return{onEnter:xl(k,(s==null?void 0:s.props.onEnter)??bh),onExited:xl(D,(s==null?void 0:s.props.onExited)??bh)}},rootRef:x,portalRef:O,isTopModal:M,exited:d,hasTransition:E}}function Vx(e){return We("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const Ux=e=>{const{open:t,exited:r,classes:n}=e;return Ge({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Vx,n)},Wx=xe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Ke(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Hx=xe(vh,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),xh=j.forwardRef(function(t,r){const n=Je({name:"MuiModal",props:t}),{BackdropComponent:i=Hx,BackdropProps:a,classes:l,className:s,closeAfterTransition:c=!1,children:u,container:f,component:h,components:y={},componentsProps:m={},disableAutoFocus:x=!1,disableEnforceFocus:d=!1,disableEscapeKeyDown:v=!1,disablePortal:E=!1,disableRestoreFocus:R=!1,disableScrollLock:S=!1,hideBackdrop:T=!1,keepMounted:w=!1,onBackdropClick:N,onClose:M,onTransitionEnter:O,onTransitionExited:g,open:p,slotProps:b={},slots:C={},theme:_,...P}=n,k={...n,closeAfterTransition:c,disableAutoFocus:x,disableEnforceFocus:d,disableEscapeKeyDown:v,disablePortal:E,disableRestoreFocus:R,disableScrollLock:S,hideBackdrop:T,keepMounted:w},{getRootProps:D,getBackdropProps:W,getTransitionProps:Z,portalRef:G,isTopModal:B,exited:Y,hasTransition:ae}=zx({...k,rootRef:r}),oe={...k,exited:Y},ne=Ux(oe),ue={};if(u.props.tabIndex===void 0&&(ue.tabIndex="-1"),ae){const{onEnter:X,onExited:Re}=Z();ue.onEnter=X,ue.onExited=Re}const ce={...P,slots:{root:y.Root,backdrop:y.Backdrop,...C},slotProps:{...m,...b}},[ye,se]=Lt("root",{elementType:Wx,externalForwardedProps:ce,getSlotProps:D,additionalProps:{ref:r,as:h},ownerState:oe,className:_e(s,ne==null?void 0:ne.root,!oe.open&&oe.exited&&(ne==null?void 0:ne.hidden))}),[le,te]=Lt("backdrop",{elementType:i,externalForwardedProps:ce,additionalProps:a,getSlotProps:X=>W({...X,onClick:Re=>{N&&N(Re),X!=null&&X.onClick&&X.onClick(Re)}}),className:_e(a==null?void 0:a.className,ne==null?void 0:ne.backdrop),ownerState:oe}),ve=Ot(a==null?void 0:a.ref,te.ref);return!w&&!p&&(!ae||Y)?null:A.jsx(zn,{ref:G,container:f,disablePortal:E,children:A.jsxs(ye,{...se,children:[!T&&i?A.jsx(le,{...te,ref:ve}):null,A.jsx(Qo,{disableEnforceFocus:d,disableAutoFocus:x,disableRestoreFocus:R,isEnabled:B,open:p,children:j.cloneElement(u,ue)})]})})});process.env.NODE_ENV!=="production"&&(xh.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:_n.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Er,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onBackdropClick:o.func,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Gx(e){return We("MuiPaper",e)}qe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Kx=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ge(a,Gx,i)},Yx=xe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Ke(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Vn=j.forwardRef(function(t,r){var m;const n=Je({props:t,name:"MuiPaper"}),i=Al(),{className:a,component:l="div",elevation:s=1,square:c=!1,variant:u="elevation",...f}=n,h={...n,component:l,elevation:s,square:c,variant:u},y=Kx(h);return process.env.NODE_ENV!=="production"&&i.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
|
|
128
|
+
`)),A.jsx(Yx,{as:l,ownerState:h,className:_e(y.root,a),ref:r,...f,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":(m=i.vars.overlays)==null?void 0:m[s]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Qe("#fff",Pl(s))}, ${Qe("#fff",Pl(s))})`}},...f.style}})});process.env.NODE_ENV!=="production"&&(Vn.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:ur(Sl,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});function Xx(e){return We("MuiPopover",e)}qe("MuiPopover",["root","paper"]);function Oh(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Eh(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Ch(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ei(e){return typeof e=="function"?e():e}const Jx=e=>{const{classes:t}=e;return Ge({root:["root"],paper:["paper"]},Xx,t)},Qx=xe(xh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sh=xe(Vn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Th=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:c="anchorEl",children:u,className:f,container:h,elevation:y=8,marginThreshold:m=16,open:x,PaperProps:d={},slots:v={},slotProps:E={},transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:S=Jo,transitionDuration:T="auto",TransitionProps:{onEntering:w,...N}={},disableScrollLock:M=!1,...O}=n,g=(E==null?void 0:E.paper)??d,p=j.useRef(),b={...n,anchorOrigin:l,anchorReference:c,elevation:y,marginThreshold:m,externalPaperSlotProps:g,transformOrigin:R,TransitionComponent:S,transitionDuration:T,TransitionProps:N},C=Jx(b),_=j.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(s||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),s;const te=ei(a),ve=te&&te.nodeType===1?te:Wt(p.current).body,X=ve.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const Re=ve.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Re.top===0&&Re.left===0&&Re.right===0&&Re.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
129
|
+
`))}return{top:X.top+Oh(X,l.vertical),left:X.left+Eh(X,l.horizontal)}},[a,l.horizontal,l.vertical,s,c]),P=j.useCallback(te=>({vertical:Oh(te,R.vertical),horizontal:Eh(te,R.horizontal)}),[R.horizontal,R.vertical]),k=j.useCallback(te=>{const ve={width:te.offsetWidth,height:te.offsetHeight},X=P(ve);if(c==="none")return{top:null,left:null,transformOrigin:Ch(X)};const Re=_();let z=Re.top-X.vertical,pe=Re.left-X.horizontal;const de=z+ve.height,Ce=pe+ve.width,Te=Cr(ei(a)),$e=Te.innerHeight-m,He=Te.innerWidth-m;if(m!==null&&z<m){const Ne=z-m;z-=Ne,X.vertical+=Ne}else if(m!==null&&de>$e){const Ne=de-$e;z-=Ne,X.vertical+=Ne}if(process.env.NODE_ENV!=="production"&&ve.height>$e&&ve.height&&$e&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ve.height-$e}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
130
|
+
`)),m!==null&&pe<m){const Ne=pe-m;pe-=Ne,X.horizontal+=Ne}else if(Ce>He){const Ne=Ce-He;pe-=Ne,X.horizontal+=Ne}return{top:`${Math.round(z)}px`,left:`${Math.round(pe)}px`,transformOrigin:Ch(X)}},[a,c,_,P,m]),[D,W]=j.useState(x),Z=j.useCallback(()=>{const te=p.current;if(!te)return;const ve=k(te);ve.top!==null&&te.style.setProperty("top",ve.top),ve.left!==null&&(te.style.left=ve.left),te.style.transformOrigin=ve.transformOrigin,W(!0)},[k]);j.useEffect(()=>(M&&window.addEventListener("scroll",Z),()=>window.removeEventListener("scroll",Z)),[a,M,Z]);const G=(te,ve)=>{w&&w(te,ve),Z()},B=()=>{W(!1)};j.useEffect(()=>{x&&Z()}),j.useImperativeHandle(i,()=>x?{updatePosition:()=>{Z()}}:null,[x,Z]),j.useEffect(()=>{if(!x)return;const te=Od(()=>{Z()}),ve=Cr(a);return ve.addEventListener("resize",te),()=>{te.clear(),ve.removeEventListener("resize",te)}},[a,x,Z]);let Y=T;T==="auto"&&!S.muiSupportAuto&&(Y=void 0);const ae=h||(a?Wt(ei(a)).body:void 0),oe={slots:v,slotProps:{...E,paper:g}},[ne,ue]=Lt("paper",{elementType:Sh,externalForwardedProps:oe,additionalProps:{elevation:y,className:_e(C.paper,g==null?void 0:g.className),style:D?g.style:{...g.style,opacity:0}},ownerState:b}),[ce,{slotProps:ye,...se}]=Lt("root",{elementType:Qx,externalForwardedProps:oe,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:ae,open:x},ownerState:b,className:_e(C.root,f)}),le=Ot(p,ue.ref);return A.jsx(ce,{...se,...!Nl(ce)&&{slotProps:ye,disableScrollLock:M},...O,ref:r,children:A.jsx(S,{appear:!0,in:x,onEntering:G,onExited:B,timeout:Y,...N,children:A.jsx(ne,{...ue,ref:le,children:u})})})});process.env.NODE_ENV!=="production"&&(Th.propTypes={action:Dt,anchorEl:ur(o.oneOfType([Er,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=ei(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
131
|
+
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
132
|
+
`))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([Er,o.func]),disableScrollLock:o.bool,elevation:Sl,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:bl}),slotProps:o.shape({paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({paper:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function Zx(e){return We("MuiMenu",e)}qe("MuiMenu",["root","paper","list"]);const eO={vertical:"top",horizontal:"right"},tO={vertical:"top",horizontal:"left"},rO=e=>{const{classes:t}=e;return Ge({root:["root"],paper:["paper"],list:["list"]},Zx,t)},nO=xe(Th,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oO=xe(Sh,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),iO=xe(uh,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),wh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:u,open:f,PaperProps:h={},PopoverClasses:y,transitionDuration:m="auto",TransitionProps:{onEntering:x,...d}={},variant:v="selectedMenu",slots:E={},slotProps:R={},...S}=n,T=Nd(),w={...n,autoFocus:i,disableAutoFocusItem:s,MenuListProps:c,onEntering:x,PaperProps:h,transitionDuration:m,TransitionProps:d,variant:v},N=rO(w),M=i&&!s&&f,O=j.useRef(null),g=(D,W)=>{O.current&&O.current.adjustStyleForScrollbar(D,{direction:T?"rtl":"ltr"}),x&&x(D,W)},p=D=>{D.key==="Tab"&&(D.preventDefault(),u&&u(D,"tabKeyDown"))};let b=-1;j.Children.map(a,(D,W)=>{j.isValidElement(D)&&(process.env.NODE_ENV!=="production"&&$l.isFragment(D)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
133
|
+
`)),D.props.disabled||(v==="selectedMenu"&&D.props.selected||b===-1)&&(b=W))});const C=E.paper??oO,_=R.paper??h,P=Tl({elementType:E.root,externalSlotProps:R.root,ownerState:w,className:[N.root,l]}),k=Tl({elementType:C,externalSlotProps:_,ownerState:w,className:N.paper});return A.jsx(nO,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?eO:tO,slots:{paper:C,root:E.root},slotProps:{root:P,paper:k},open:f,ref:r,transitionDuration:m,TransitionProps:{onEntering:g,...d},ownerState:w,...S,classes:y,children:A.jsx(iO,{onKeyDown:p,actions:O,autoFocus:i&&(b===-1||s),autoFocusItem:M,variant:v,...c,className:_e(N.list,c.className),children:a})})});process.env.NODE_ENV!=="production"&&(wh.propTypes={anchorEl:o.oneOfType([Er,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({paper:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function aO(e){return We("MuiNativeSelect",e)}const Wl=qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),sO=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:l}=e,s={select:["select",r,n&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${he(r)}`,a&&"iconOpen",n&&"disabled"]};return Ge(s,aO,t)},Rh=xe("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Wl.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),lO=xe(Rh,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Nt,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Wl.multiple}`]:t.multiple}]}})({}),_h=xe("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Wl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),cO=xe(_h,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${he(r.variant)}`],r.open&&t.iconOpen]}})({}),Ph=j.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:l,inputRef:s,variant:c="standard",...u}=t,f={...t,disabled:i,variant:c,error:a},h=sO(f);return A.jsxs(j.Fragment,{children:[A.jsx(lO,{ownerState:f,className:_e(h.select,n),disabled:i,ref:s||r,...u}),t.multiple?null:A.jsx(cO,{as:l,ownerState:f,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(Ph.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Dt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});function uO(e){return We("MuiSelect",e)}const Un=qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ih;const pO=xe(Rh,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Un.select}`]:t.select},{[`&.${Un.select}`]:t[r.variant]},{[`&.${Un.error}`]:t.error},{[`&.${Un.multiple}`]:t.multiple}]}})({[`&.${Un.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),fO=xe(_h,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${he(r.variant)}`],r.open&&t.iconOpen]}})({}),dO=xe("input",{shouldForwardProp:e=>Yd(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function kh(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function hO(e){return e==null||typeof e=="string"&&!e.trim()}const mO=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:l}=e,s={select:["select",r,n&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${he(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ge(s,uO,t)},jh=j.forwardRef(function(t,r){var ft;const{"aria-describedby":n,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:c,defaultOpen:u,defaultValue:f,disabled:h,displayEmpty:y,error:m=!1,IconComponent:x,inputRef:d,labelId:v,MenuProps:E={},multiple:R,name:S,onBlur:T,onChange:w,onClose:N,onFocus:M,onOpen:O,open:g,readOnly:p,renderValue:b,SelectDisplayProps:C={},tabIndex:_,type:P,value:k,variant:D="standard",...W}=t,[Z,G]=qr({controlled:k,default:f,name:"Select"}),[B,Y]=qr({controlled:g,default:u,name:"Select"}),ae=j.useRef(null),oe=j.useRef(null),[ne,ue]=j.useState(null),{current:ce}=j.useRef(g!=null),[ye,se]=j.useState(),le=Ot(r,d),te=j.useCallback(Ee=>{oe.current=Ee,Ee&&ue(Ee)},[]),ve=ne==null?void 0:ne.parentNode;j.useImperativeHandle(le,()=>({focus:()=>{oe.current.focus()},node:ae.current,value:Z}),[Z]),j.useEffect(()=>{u&&B&&ne&&!ce&&(se(l?null:ve.clientWidth),oe.current.focus())},[ne,l]),j.useEffect(()=>{a&&oe.current.focus()},[a]),j.useEffect(()=>{if(!v)return;const Ee=Wt(oe.current).getElementById(v);if(Ee){const Ae=()=>{getSelection().isCollapsed&&oe.current.focus()};return Ee.addEventListener("click",Ae),()=>{Ee.removeEventListener("click",Ae)}}},[v]);const X=(Ee,Ae)=>{Ee?O&&O(Ae):N&&N(Ae),ce||(se(l?null:ve.clientWidth),Y(Ee))},Re=Ee=>{Ee.button===0&&(Ee.preventDefault(),oe.current.focus(),X(!0,Ee))},z=Ee=>{X(!1,Ee)},pe=j.Children.toArray(s),de=Ee=>{const Ae=pe.find(at=>at.props.value===Ee.target.value);Ae!==void 0&&(G(Ae.props.value),w&&w(Ee,Ae))},Ce=Ee=>Ae=>{let at;if(Ae.currentTarget.hasAttribute("tabindex")){if(R){at=Array.isArray(Z)?Z.slice():[];const wt=Z.indexOf(Ee.props.value);wt===-1?at.push(Ee.props.value):at.splice(wt,1)}else at=Ee.props.value;if(Ee.props.onClick&&Ee.props.onClick(Ae),Z!==at&&(G(at),w)){const wt=Ae.nativeEvent||Ae,St=new wt.constructor(wt.type,wt);Object.defineProperty(St,"target",{writable:!0,value:{value:at,name:S}}),w(St,Ee)}R||X(!1,Ae)}},Te=Ee=>{p||[" ","ArrowUp","ArrowDown","Enter"].includes(Ee.key)&&(Ee.preventDefault(),X(!0,Ee))},$e=ne!==null&&B,He=Ee=>{!$e&&T&&(Object.defineProperty(Ee,"target",{writable:!0,value:{value:Z,name:S}}),T(Ee))};delete W["aria-invalid"];let Ne,be;const Fe=[];let Ye=!1,ht=!1;(Bo({value:Z})||y)&&(b?Ne=b(Z):Ye=!0);const Ct=pe.map(Ee=>{if(!j.isValidElement(Ee))return null;process.env.NODE_ENV!=="production"&&$l.isFragment(Ee)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
134
|
+
`));let Ae;if(R){if(!Array.isArray(Z))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":sr(2));Ae=Z.some(at=>kh(at,Ee.props.value)),Ae&&Ye&&Fe.push(Ee.props.children)}else Ae=kh(Z,Ee.props.value),Ae&&Ye&&(be=Ee.props.children);return Ae&&(ht=!0),j.cloneElement(Ee,{"aria-selected":Ae?"true":"false",onClick:Ce(Ee),onKeyUp:at=>{at.key===" "&&at.preventDefault(),Ee.props.onKeyUp&&Ee.props.onKeyUp(at)},role:"option",selected:Ae,value:void 0,"data-value":Ee.props.value})});process.env.NODE_ENV!=="production"&&j.useEffect(()=>{if(!ht&&!R&&Z!==""){const Ee=pe.map(Ae=>Ae.props.value);console.warn([`MUI: You have provided an out-of-range value \`${Z}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Ee.filter(Ae=>Ae!=null).map(Ae=>`\`${Ae}\``).join(", ")||'""'}.`].join(`
|
|
135
|
+
`))}},[ht,pe,R,S,Z]),Ye&&(R?Fe.length===0?Ne=null:Ne=Fe.reduce((Ee,Ae,at)=>(Ee.push(Ae),at<Fe.length-1&&Ee.push(", "),Ee),[]):Ne=be);let pt=ye;!l&&ce&&ne&&(pt=ve.clientWidth);let Ue;typeof _<"u"?Ue=_:Ue=h?null:0;const Be=C.id||(S?`mui-component-select-${S}`:void 0),st={...t,variant:D,value:Z,open:$e,error:m},De=mO(st),Ze={...E.PaperProps,...(ft=E.slotProps)==null?void 0:ft.paper},mt=vo();return A.jsxs(j.Fragment,{children:[A.jsx(pO,{as:"div",ref:te,tabIndex:Ue,role:"combobox","aria-controls":mt,"aria-disabled":h?"true":void 0,"aria-expanded":$e?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,Be].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:Te,onMouseDown:h||p?null:Re,onBlur:He,onFocus:M,...C,ownerState:st,className:_e(C.className,De.select,c),id:Be,children:hO(Ne)?Ih||(Ih=A.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Ne}),A.jsx(dO,{"aria-invalid":m,value:Array.isArray(Z)?Z.join(","):Z,name:S,ref:ae,"aria-hidden":!0,onChange:de,tabIndex:-1,disabled:h,className:De.nativeInput,autoFocus:a,...W,ownerState:st}),A.jsx(fO,{as:x,className:De.icon,ownerState:st}),A.jsx(wh,{id:`menu-${S||""}`,anchorEl:ve,open:$e,onClose:z,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...E,MenuListProps:{"aria-labelledby":v,role:"listbox","aria-multiselectable":R?"true":void 0,disableListWrap:!0,id:mt,...E.MenuListProps},slotProps:{...E.slotProps,paper:{...Ze,style:{minWidth:pt,...Ze!=null?Ze.style:null}}},children:Ct})]})});process.env.NODE_ENV!=="production"&&(jh.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Dt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const Ah=Pt(A.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),gO=e=>{const{classes:t}=e;return t},Hl={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Nt(e)&&e!=="variant",slot:"Root"},yO=xe(An,Hl)(""),vO=xe(Mn,Hl)(""),bO=xe($n,Hl)(""),Wn=j.forwardRef(function(t,r){const n=Je({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:l={},className:s,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:f=Ah,id:h,input:y,inputProps:m,label:x,labelId:d,MenuProps:v,multiple:E=!1,native:R=!1,onClose:S,onOpen:T,open:w,renderValue:N,SelectDisplayProps:M,variant:O="outlined",...g}=n,p=R?Ph:jh,b=dr(),C=jr({props:n,muiFormControl:b,states:["variant","error"]}),_=C.variant||O,P={...n,variant:_,classes:l},k=gO(P),{root:D,...W}=k,Z=y||{standard:A.jsx(yO,{ownerState:P}),outlined:A.jsx(vO,{label:x,ownerState:P}),filled:A.jsx(bO,{ownerState:P})}[_],G=Ot(r,Pn(Z));return A.jsx(j.Fragment,{children:j.cloneElement(Z,{inputComponent:p,inputProps:{children:a,error:C.error,IconComponent:f,variant:_,type:void 0,multiple:E,...R?{id:h}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:d,MenuProps:v,onClose:S,onOpen:T,open:w,renderValue:N,SelectDisplayProps:{id:h,...M}},...m,classes:m?At(W,m.classes):W,...y?y.props.inputProps:{}},...(E&&R||u)&&_==="outlined"?{notched:!0}:{},ref:G,className:_e(Z.props.className,s,k.root),...!y&&{variant:_},...g})})});process.env.NODE_ENV!=="production"&&(Wn.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])}),Wn.muiName="Select";function xO(e){return We("MuiTextField",e)}qe("MuiTextField",["root"]);const OO={standard:An,filled:$n,outlined:Mn},EO=e=>{const{classes:t}=e;return Ge({root:["root"]},xO,t)},CO=xe(an,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ti=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:l,className:s,color:c="primary",defaultValue:u,disabled:f=!1,error:h=!1,FormHelperTextProps:y,fullWidth:m=!1,helperText:x,id:d,InputLabelProps:v,inputProps:E,InputProps:R,inputRef:S,label:T,maxRows:w,minRows:N,multiline:M=!1,name:O,onBlur:g,onChange:p,onFocus:b,placeholder:C,required:_=!1,rows:P,select:k=!1,SelectProps:D,slots:W={},slotProps:Z={},type:G,value:B,variant:Y="outlined",...ae}=n,oe={...n,autoFocus:a,color:c,disabled:f,error:h,fullWidth:m,multiline:M,required:_,select:k,variant:Y},ne=EO(oe);process.env.NODE_ENV!=="production"&&k&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const ue=vo(d),ce=x&&ue?`${ue}-helper-text`:void 0,ye=T&&ue?`${ue}-label`:void 0,se=OO[Y],le={slots:W,slotProps:{input:R,inputLabel:v,htmlInput:E,formHelperText:y,select:D,...Z}},te={},ve=le.slotProps.inputLabel;Y==="outlined"&&(ve&&typeof ve.shrink<"u"&&(te.notched=ve.shrink),te.label=T),k&&((!D||!D.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const[X,Re]=Lt("input",{elementType:se,externalForwardedProps:le,additionalProps:te,ownerState:oe}),[z,pe]=Lt("inputLabel",{elementType:Ho,externalForwardedProps:le,ownerState:oe}),[de,Ce]=Lt("htmlInput",{elementType:"input",externalForwardedProps:le,ownerState:oe}),[Te,$e]=Lt("formHelperText",{elementType:Ln,externalForwardedProps:le,ownerState:oe}),[He,Ne]=Lt("select",{elementType:Wn,externalForwardedProps:le,ownerState:oe}),be=A.jsx(X,{"aria-describedby":ce,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:m,multiline:M,name:O,rows:P,maxRows:w,minRows:N,type:G,value:B,id:ue,inputRef:S,onBlur:g,onChange:p,onFocus:b,placeholder:C,inputProps:Ce,slots:{input:W.htmlInput?de:void 0},...Re});return A.jsxs(CO,{className:_e(ne.root,s),disabled:f,error:h,fullWidth:m,ref:r,required:_,color:c,variant:Y,ownerState:oe,...ae,children:[T!=null&&T!==""&&A.jsx(z,{htmlFor:ue,id:ye,...pe,children:T}),k?A.jsx(He,{"aria-describedby":ce,id:ue,labelId:ye,value:B,input:be,...Ne,children:l}):be,x&&A.jsx(Te,{id:ce,...$e,children:x})]})});process.env.NODE_ENV!=="production"&&(ti.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Dt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});class Nh extends we.Component{constructor(t){super(t);const{model:r,form:n,value:i,setDefault:a}=this.props,{key:l}=n;a(l,r,n,i)}render(){const{form:t,error:r,value:n,onChangeValidate:i,localization:{getLocalizedString:a},otherProps:l}=this.props;return A.jsx(ti,{type:t.type,label:t.title&&a(t.title),placeholder:t.placeholder&&a(t.placeholder),helperText:(r||t.description)&&a(r||t.description),error:!!r,onChange:i,value:n||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...l,...t.otherProps})}}Nh.defaultProps={otherProps:void 0};const Hn=jt(Nh),SO=jt(e=>{const{form:t,value:r,localization:{getLocalizedNumber:n},onChangeValidate:i}=e;let a=r||r===0?r:"";t.useLocalizer&&(a=n(a));const l=s=>{const c=t.schema?t.schema.type:t.type;let u=null;if(c==="integer")u=parseInt(s.target.value,10);else if(c==="number"){const f=s.target.value.split(".");f.length<2?u=parseInt(s.target.value,10):f.length>1&&(f[1].length>0?u=parseFloat(s.target.value):u=`${parseInt(f[0],10)}.`)}i(u)};return A.jsx(Hn,{...e,form:{...t,type:"string"},value:a,otherProps:{onChange:l}})}),TO=jt(e=>{const{form:t}=e;return A.jsx(Hn,{...e,otherProps:{multiline:!0,rows:t.rows,maxRows:t.maxRows}})}),wO=jt(e=>{const{model:t,form:r,value:n,error:i,setDefault:a,onChangeValidate:l}=e,{key:s,title:c}=r;a(s,t,r,n),we.useState("write");const[u,f]=we.useState(n);return we.useEffect(()=>{l({target:{value:u}})},[u]),A.jsxs(we.Fragment,{children:[A.jsx(Nr,{required:r.required,children:c}),"form.readonly ? ",A.jsx(mc.Markdown,{source:markdownVal})," : ",A.jsx(mc,{value:n,onChange:h=>f(h)}),i?A.jsx(Ln,{error:!0,children:i}):null]})}),$h={text:"name",value:"value"};class RO extends we.Component{constructor(){super(...arguments);Tt(this,"handleUpdate",(r,n)=>{const{key:i}=this.props.form,{type:a}=this.props.form.schema;return this.props.onChange(i,r[$h.value],a,this.props.form)});Tt(this,"handleInit",r=>{if(!this.props.form.schema||!this.props.form.schema.enum)return r.toString();const n=this.props.form.schema.enumNames||this.props.form.schema.enum,i=this.props.form.schema.enum;return n[i.indexOf(r)]||r.toString()})}render(){const r=(i=>{switch(i){case"fuzzy":return AutoComplete.fuzzyFilter;default:return AutoComplete.caseInsensitiveFilter}})(this.props.form.filter),n=this.props.value&&this.handleInit(this.props.value);return A.jsx("div",{className:this.props.form.htmlClass,children:A.jsx(AutoComplete,{type:this.props.form.type,floatingLabelText:this.props.form.title,hintText:this.props.form.placeholder,errorText:this.props.error,onNewRequest:this.handleUpdate,disabled:this.props.form.readonly,style:this.props.form.style||{width:"100%"},openOnFocus:!0,searchText:n,dataSource:this.props.form.titleMap||["Loading..."],filter:r,maxSearchResults:this.props.form.maxSearchResults||5,dataSourceConfig:$h})})}}const _O=jt(RO);class ri{constructor(){Tt(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new ri}static use(){const t=Cd(ri.create).current,[r,n]=j.useState(!1);return t.shouldMount=r,t.setShouldMount=n,j.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=IO(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function PO(){return ri.use()}function IO(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function Mh(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:c,timeout:u}=e,[f,h]=j.useState(!1),y=_e(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},x=_e(r.child,f&&r.childLeaving,n&&r.childPulsate);return!s&&!f&&h(!0),j.useEffect(()=>{if(!s&&c!=null){const d=setTimeout(c,u);return()=>{clearTimeout(d)}}},[c,s,u]),A.jsx("span",{className:y,style:m,children:A.jsx("span",{className:x})})}process.env.NODE_ENV!=="production"&&(Mh.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const tr=qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Gl=550,kO=80,jO=hn.keyframes`
|
|
136
|
+
0% {
|
|
137
|
+
transform: scale(0);
|
|
138
|
+
opacity: 0.1;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
100% {
|
|
142
|
+
transform: scale(1);
|
|
143
|
+
opacity: 0.3;
|
|
144
|
+
}
|
|
145
|
+
`,AO=hn.keyframes`
|
|
146
|
+
0% {
|
|
147
|
+
opacity: 1;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
100% {
|
|
151
|
+
opacity: 0;
|
|
152
|
+
}
|
|
153
|
+
`,NO=hn.keyframes`
|
|
154
|
+
0% {
|
|
155
|
+
transform: scale(1);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
50% {
|
|
159
|
+
transform: scale(0.92);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
100% {
|
|
163
|
+
transform: scale(1);
|
|
164
|
+
}
|
|
165
|
+
`,$O=xe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),MO=xe(Mh,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
166
|
+
opacity: 0;
|
|
167
|
+
position: absolute;
|
|
168
|
+
|
|
169
|
+
&.${tr.rippleVisible} {
|
|
170
|
+
opacity: 0.3;
|
|
171
|
+
transform: scale(1);
|
|
172
|
+
animation-name: ${jO};
|
|
173
|
+
animation-duration: ${Gl}ms;
|
|
174
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&.${tr.ripplePulsate} {
|
|
178
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
& .${tr.child} {
|
|
182
|
+
opacity: 1;
|
|
183
|
+
display: block;
|
|
184
|
+
width: 100%;
|
|
185
|
+
height: 100%;
|
|
186
|
+
border-radius: 50%;
|
|
187
|
+
background-color: currentColor;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
& .${tr.childLeaving} {
|
|
191
|
+
opacity: 0;
|
|
192
|
+
animation-name: ${AO};
|
|
193
|
+
animation-duration: ${Gl}ms;
|
|
194
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
& .${tr.childPulsate} {
|
|
198
|
+
position: absolute;
|
|
199
|
+
/* @noflip */
|
|
200
|
+
left: 0px;
|
|
201
|
+
top: 0;
|
|
202
|
+
animation-name: ${NO};
|
|
203
|
+
animation-duration: 2500ms;
|
|
204
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
205
|
+
animation-iteration-count: infinite;
|
|
206
|
+
animation-delay: 200ms;
|
|
207
|
+
}
|
|
208
|
+
`,Dh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:l,...s}=n,[c,u]=j.useState([]),f=j.useRef(0),h=j.useRef(null);j.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const y=j.useRef(!1),m=Sd(),x=j.useRef(null),d=j.useRef(null),v=j.useCallback(T=>{const{pulsate:w,rippleX:N,rippleY:M,rippleSize:O,cb:g}=T;u(p=>[...p,A.jsx(MO,{classes:{ripple:_e(a.ripple,tr.ripple),rippleVisible:_e(a.rippleVisible,tr.rippleVisible),ripplePulsate:_e(a.ripplePulsate,tr.ripplePulsate),child:_e(a.child,tr.child),childLeaving:_e(a.childLeaving,tr.childLeaving),childPulsate:_e(a.childPulsate,tr.childPulsate)},timeout:Gl,pulsate:w,rippleX:N,rippleY:M,rippleSize:O},f.current)]),f.current+=1,h.current=g},[a]),E=j.useCallback((T={},w={},N=()=>{})=>{const{pulsate:M=!1,center:O=i||w.pulsate,fakeElement:g=!1}=w;if((T==null?void 0:T.type)==="mousedown"&&y.current){y.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(y.current=!0);const p=g?null:d.current,b=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};let C,_,P;if(O||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)C=Math.round(b.width/2),_=Math.round(b.height/2);else{const{clientX:k,clientY:D}=T.touches&&T.touches.length>0?T.touches[0]:T;C=Math.round(k-b.left),_=Math.round(D-b.top)}if(O)P=Math.sqrt((2*b.width**2+b.height**2)/3),P%2===0&&(P+=1);else{const k=Math.max(Math.abs((p?p.clientWidth:0)-C),C)*2+2,D=Math.max(Math.abs((p?p.clientHeight:0)-_),_)*2+2;P=Math.sqrt(k**2+D**2)}T!=null&&T.touches?x.current===null&&(x.current=()=>{v({pulsate:M,rippleX:C,rippleY:_,rippleSize:P,cb:N})},m.start(kO,()=>{x.current&&(x.current(),x.current=null)})):v({pulsate:M,rippleX:C,rippleY:_,rippleSize:P,cb:N})},[i,v,m]),R=j.useCallback(()=>{E({},{pulsate:!0})},[E]),S=j.useCallback((T,w)=>{if(m.clear(),(T==null?void 0:T.type)==="touchend"&&x.current){x.current(),x.current=null,m.start(0,()=>{S(T,w)});return}x.current=null,u(N=>N.length>0?N.slice(1):N),h.current=w},[m]);return j.useImperativeHandle(r,()=>({pulsate:R,start:E,stop:S}),[R,E,S]),A.jsx($O,{className:_e(tr.root,a.root,l),ref:d,...s,children:A.jsx(ql,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Dh.propTypes={center:o.bool,classes:o.object,className:o.string});function DO(e){return We("MuiButtonBase",e)}const LO=qe("MuiButtonBase",["root","disabled","focusVisible"]),FO=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,l=Ge({root:["root",t&&"disabled",r&&"focusVisible"]},DO,i);return r&&n&&(l.root+=` ${n}`),l},BO=xe("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"},[`&.${LO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Wr=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:l,className:s,component:c="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:h=!1,focusRipple:y=!1,focusVisibleClassName:m,LinkComponent:x="a",onBlur:d,onClick:v,onContextMenu:E,onDragLeave:R,onFocus:S,onFocusVisible:T,onKeyDown:w,onKeyUp:N,onMouseDown:M,onMouseLeave:O,onMouseUp:g,onTouchEnd:p,onTouchMove:b,onTouchStart:C,tabIndex:_=0,TouchRippleProps:P,touchRippleRef:k,type:D,...W}=n,Z=j.useRef(null),G=PO(),B=Ot(G.ref,k),[Y,ae]=j.useState(!1);u&&Y&&ae(!1),j.useImperativeHandle(i,()=>({focusVisible:()=>{ae(!0),Z.current.focus()}}),[]);const oe=G.shouldMount&&!f&&!u;j.useEffect(()=>{Y&&y&&!f&&G.pulsate()},[f,y,Y,G]);const ne=Tr(G,"start",M,h),ue=Tr(G,"stop",E,h),ce=Tr(G,"stop",R,h),ye=Tr(G,"stop",g,h),se=Tr(G,"stop",be=>{Y&&be.preventDefault(),O&&O(be)},h),le=Tr(G,"start",C,h),te=Tr(G,"stop",p,h),ve=Tr(G,"stop",b,h),X=Tr(G,"stop",be=>{Td(be.target)||ae(!1),d&&d(be)},!1),Re=pr(be=>{Z.current||(Z.current=be.currentTarget),Td(be.target)&&(ae(!0),T&&T(be)),S&&S(be)}),z=()=>{const be=Z.current;return c&&c!=="button"&&!(be.tagName==="A"&&be.href)},pe=pr(be=>{y&&!be.repeat&&Y&&be.key===" "&&G.stop(be,()=>{G.start(be)}),be.target===be.currentTarget&&z()&&be.key===" "&&be.preventDefault(),w&&w(be),be.target===be.currentTarget&&z()&&be.key==="Enter"&&!u&&(be.preventDefault(),v&&v(be))}),de=pr(be=>{y&&be.key===" "&&Y&&!be.defaultPrevented&&G.stop(be,()=>{G.pulsate(be)}),N&&N(be),v&&be.target===be.currentTarget&&z()&&be.key===" "&&!be.defaultPrevented&&v(be)});let Ce=c;Ce==="button"&&(W.href||W.to)&&(Ce=x);const Te={};Ce==="button"?(Te.type=D===void 0?"button":D,Te.disabled=u):(!W.href&&!W.to&&(Te.role="button"),u&&(Te["aria-disabled"]=u));const $e=Ot(r,Z),He={...n,centerRipple:a,component:c,disabled:u,disableRipple:f,disableTouchRipple:h,focusRipple:y,tabIndex:_,focusVisible:Y},Ne=FO(He);return A.jsxs(BO,{as:Ce,className:_e(Ne.root,s),ownerState:He,onBlur:X,onClick:v,onContextMenu:ue,onFocus:Re,onKeyDown:pe,onKeyUp:de,onMouseDown:ne,onMouseLeave:se,onMouseUp:ye,onDragLeave:ce,onTouchEnd:te,onTouchMove:ve,onTouchStart:le,ref:$e,tabIndex:u?-1:_,type:D,...Te,...W,children:[l,oe?A.jsx(Dh,{ref:B,center:a,...P}):null]})});function Tr(e,t,r,n=!1){return pr(i=>(r&&r(i),n||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(Wr.propTypes={action:Dt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:bl,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});const Lh=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Fh=qe("MuiListItemIcon",["root","alignItemsFlexStart"]);function qO(e){return We("MuiTypography",e)}qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const zO={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},VO=C0(),UO=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:l}=e,s={root:["root",a,e.align!=="inherit"&&`align${he(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ge(s,qO,l)},WO=xe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${he(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Ke(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter($t()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${he(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Bh={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ni=j.forwardRef(function(t,r){const{color:n,...i}=Je({props:t,name:"MuiTypography"}),a=!zO[n],l=VO({...i,...a&&{color:n}}),{align:s="inherit",className:c,component:u,gutterBottom:f=!1,noWrap:h=!1,paragraph:y=!1,variant:m="body1",variantMapping:x=Bh,...d}=l,v={...l,align:s,color:n,className:c,component:u,gutterBottom:f,noWrap:h,paragraph:y,variant:m,variantMapping:x},E=u||(y?"p":x[m]||Bh[m])||"span",R=UO(v);return A.jsx(WO,{as:E,ref:r,className:_e(R.root,c),...d,ownerState:v,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...d.style}})});process.env.NODE_ENV!=="production"&&(ni.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});const qh=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function HO(e){return We("MuiMenuItem",e)}const Gn=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),GO=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},KO=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:l}=e,c=Ge({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},HO,l);return{...l,...c}},YO=xe(Wr,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:GO})(Ke(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Gn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Gn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Gn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Lh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Lh.inset}`]:{marginLeft:52},[`& .${qh.root}`]:{marginTop:0,marginBottom:0},[`& .${qh.inset}`]:{paddingLeft:36},[`& .${Fh.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Fh.root} svg`]:{fontSize:"1.25rem"}}}]}))),oi=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:l=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:h,className:y,...m}=n,x=j.useContext(Ko),d=j.useMemo(()=>({dense:l||x.dense||!1,disableGutters:c}),[x.dense,l,c]),v=j.useRef(null);cr(()=>{i&&(v.current?v.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const E={...n,dense:d.dense,divider:s,disableGutters:c},R=KO(n),S=Ot(v,r);let T;return n.disabled||(T=h!==void 0?h:-1),A.jsx(Ko.Provider,{value:d,children:A.jsx(YO,{ref:S,role:f,tabIndex:T,component:a,focusVisibleClassName:_e(R.focusVisible,u),className:_e(R.root,y),...m,ownerState:E,classes:R})})});process.env.NODE_ENV!=="production"&&(oi.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});function XO(e){const{model:t,form:r,error:n,setDefault:i,onChange:a,onChangeValidate:l,localization:{getLocalizedString:s},form:{key:c,schema:{isObject:u,enum:f,findFn:h,displayFn:y,noLocalization:m}}}=e;let x=r&&r.selectProps&&r.selectProps.multiple?[]:"";e.form.default?x=e.form.default:e.form.schema&&e.form.schema.default&&(x=e.form.schema.default);const[d,v]=we.useState(Mt.getValueFromModel(t,r.key)||x);we.useEffect(()=>{i(c,t,r,d)},[]);const E=T=>{const w=T.target.value;if(v(w),u){const N=f.find(M=>h?h(M,w):M===w);a(c,N)}else l(T)},R=T=>y?y(T):m?T.name:s(T.name);let S=[];return u?S=r.schema.enum.map((T,w)=>A.jsx(oi,{value:T,children:R(T)},w)):S=r.titleMap.map((T,w)=>A.jsx(oi,{value:T.value,children:R(T)},w)),A.jsxs(an,{fullWidth:!0,error:!!n,...r.otherProps,children:[A.jsx(Ho,{required:r.required,...r.labelProps,children:r.title&&s(r.title)}),A.jsx(Wn,{value:d,placeholder:r.placeholder&&s(r.placeholder),disabled:r.readonly,onChange:E,...r.selectProps,children:S}),A.jsx(Ln,{...r.helperTextProps,children:(n||r.description)&&s(n||r.description)})]})}const JO=jt(XO),QO=Pt(A.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function ZO(e){return We("MuiChip",e)}const Ve=qe("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),eE=e=>{const{classes:t,disabled:r,size:n,color:i,iconColor:a,onDelete:l,clickable:s,variant:c}=e,u={root:["root",c,r&&"disabled",`size${he(n)}`,`color${he(i)}`,s&&"clickable",s&&`clickableColor${he(i)}`,l&&"deletable",l&&`deletableColor${he(i)}`,`${c}${he(i)}`],label:["label",`label${he(n)}`],avatar:["avatar",`avatar${he(n)}`,`avatarColor${he(i)}`],icon:["icon",`icon${he(n)}`,`iconColor${he(a)}`],deleteIcon:["deleteIcon",`deleteIcon${he(n)}`,`deleteIconColor${he(i)}`,`deleteIcon${he(c)}Color${he(i)}`]};return Ge(u,ZO,t)},tE=xe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:i,clickable:a,onDelete:l,size:s,variant:c}=r;return[{[`& .${Ve.avatar}`]:t.avatar},{[`& .${Ve.avatar}`]:t[`avatar${he(s)}`]},{[`& .${Ve.avatar}`]:t[`avatarColor${he(n)}`]},{[`& .${Ve.icon}`]:t.icon},{[`& .${Ve.icon}`]:t[`icon${he(s)}`]},{[`& .${Ve.icon}`]:t[`iconColor${he(i)}`]},{[`& .${Ve.deleteIcon}`]:t.deleteIcon},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${he(s)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIconColor${he(n)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${he(c)}Color${he(n)}`]},t.root,t[`size${he(s)}`],t[`color${he(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${he(n)})`],l&&t.deletable,l&&n!=="default"&&t[`deletableColor${he(n)}`],t[c],t[`${c}${he(n)}`]]}})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ve.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ve.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ve.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ve.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ve.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ve.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ve.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Qe(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Qe(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ve.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ve.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter($t(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${Ve.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].contrastTextChannel} / 0.7)`:Qe(e.palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${Ve.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${Ve.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter($t(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${Ve.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter($t(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${Ve.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ve.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ve.avatar}`]:{marginLeft:4},[`& .${Ve.avatarSmall}`]:{marginLeft:2},[`& .${Ve.icon}`]:{marginLeft:4},[`& .${Ve.iconSmall}`]:{marginLeft:2},[`& .${Ve.deleteIcon}`]:{marginRight:5},[`& .${Ve.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter($t()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:Qe(e.palette[r].main,.7)}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[r].main,e.palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Qe(e.palette[r].main,e.palette.action.focusOpacity)},[`& .${Ve.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:Qe(e.palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),rE=xe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${he(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function zh(e){return e.key==="Backspace"||e.key==="Delete"}const Kl=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:l,color:s="default",component:c,deleteIcon:u,disabled:f=!1,icon:h,label:y,onClick:m,onDelete:x,onKeyDown:d,onKeyUp:v,size:E="medium",variant:R="filled",tabIndex:S,skipFocusWhenDisabled:T=!1,...w}=n,N=j.useRef(null),M=Ot(N,r),O=G=>{G.stopPropagation(),x&&x(G)},g=G=>{G.currentTarget===G.target&&zh(G)&&G.preventDefault(),d&&d(G)},p=G=>{G.currentTarget===G.target&&x&&zh(G)&&x(G),v&&v(G)},b=l!==!1&&m?!0:l,C=b||x?Wr:c||"div",_={...n,component:C,disabled:f,size:E,color:s,iconColor:j.isValidElement(h)&&h.props.color||s,onDelete:!!x,clickable:b,variant:R},P=eE(_),k=C===Wr?{component:c||"div",focusVisibleClassName:P.focusVisible,...x&&{disableRipple:!0}}:{};let D=null;x&&(D=u&&j.isValidElement(u)?j.cloneElement(u,{className:_e(u.props.className,P.deleteIcon),onClick:O}):A.jsx(QO,{className:_e(P.deleteIcon),onClick:O}));let W=null;i&&j.isValidElement(i)&&(W=j.cloneElement(i,{className:_e(P.avatar,i.props.className)}));let Z=null;return h&&j.isValidElement(h)&&(Z=j.cloneElement(h,{className:_e(P.icon,h.props.className)})),process.env.NODE_ENV!=="production"&&W&&Z&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),A.jsxs(tE,{as:C,className:_e(P.root,a),disabled:b&&f?!0:void 0,onClick:m,onKeyDown:g,onKeyUp:p,ref:M,tabIndex:T&&f?-1:S,ownerState:_,...k,...w,children:[W||Z,A.jsx(rE,{className:_e(P.label),ownerState:_,children:y}),D]})});process.env.NODE_ENV!=="production"&&(Kl.propTypes={avatar:o.element,children:_b,classes:o.object,className:o.string,clickable:o.bool,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,deleteIcon:o.element,disabled:o.bool,icon:o.element,label:o.node,onClick:o.func,onDelete:o.func,onKeyDown:o.func,onKeyUp:o.func,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),skipFocusWhenDisabled:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,variant:o.oneOfType([o.oneOf(["filled","outlined"]),o.string])});const Kn="MultiSelect",mr={root:`${Kn}-root`,chips:`${Kn}-chips`,chip:`${Kn}-chip`,menuItem:`${Kn}-menuItem`,selectedMenuItem:`${Kn}-selectedMenuItem`},nE=jo("div")(({theme:e})=>({[`&.${mr.root}`]:{display:"flex",flexWrap:"wrap"},[`& .${mr.chips}`]:{display:"flex",flexWrap:"wrap"},[`& .${mr.chip}`]:{margin:e.spacing(.25)},[`& .${mr.menuItem}`]:{fontWeight:e.typography.fontWeightRegular},[`& .${mr.selectedMenuItem}`]:{fontWeight:e.typography.fontWeightMedium}})),oE={PaperProps:{style:{maxHeight:48*4.5+8,width:250}}};class iE extends we.Component{constructor(r){super(r);Tt(this,"onSelected",r=>{const{onChangeValidate:n}=this.props,i=r.target.value;this.setState({currentValue:i}),n(i)});const{model:n,form:i}=this.props;this.state={currentValue:Mt.getValueFromModel(n,i.key)||[]}}static getDerivedStateFromProps(r){const{model:n,form:i}=r;return n&&i.key?{currentValue:Mt.getValueFromModel(n,i.key)||[]}:null}render(){const{form:r,localization:{getLocalizedString:n}}=this.props,{currentValue:i}=this.state,a=Mt.getTitleByValue.bind(this,r.titleMap),l=r.titleMap.map(s=>A.jsx(oi,{value:s.value,className:i.indexOf(s.value)===-1?mr.menuItem:mr.selectedMenuItem,children:s.name&&n(s.name)},s.value));return A.jsx(nE,{className:mr.root,children:A.jsxs(an,{fullWidth:!0,...r.otherProps,children:[A.jsx(Ho,{required:r.required,children:r.title&&n(r.title)}),A.jsx(Wn,{multiple:!0,value:i||"",placeholder:r.placeholder&&n(r.placeholder),disabled:r.readonly,onChange:this.onSelected,MenuProps:oE,renderValue:s=>A.jsx("div",{className:mr.chips,children:s.map(c=>A.jsx(Kl,{label:a(c)&&n(a(c)),className:mr.chip},c))}),children:l})]})})}}const aE=jt(iE);function sE(e){return We("MuiFormControlLabel",e)}const Yn=qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),lE=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,l={root:["root",r&&"disabled",`labelPlacement${he(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ge(l,sE,t)},cE=xe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Yn.label}`]:t.label},t.root,t[`labelPlacement${he(r.labelPlacement)}`]]}})(Ke(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Yn.disabled}`]:{cursor:"default"},[`& .${Yn.label}`]:{[`&.${Yn.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),uE=xe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ke(({theme:e})=>({[`&.${Yn.error}`]:{color:(e.vars||e).palette.error.main}}))),Yl=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormControlLabel"}),{checked:i,className:a,componentsProps:l={},control:s,disabled:c,disableTypography:u,inputRef:f,label:h,labelPlacement:y="end",name:m,onChange:x,required:d,slots:v={},slotProps:E={},value:R,...S}=n,T=dr(),w=c??s.props.disabled??(T==null?void 0:T.disabled),N=d??s.props.required,M={disabled:w,required:N};["checked","name","onChange","value","inputRef"].forEach(k=>{typeof s.props[k]>"u"&&typeof n[k]<"u"&&(M[k]=n[k])});const O=jr({props:n,muiFormControl:T,states:["error"]}),g={...n,disabled:w,labelPlacement:y,required:N,error:O.error},p=lE(g),b={slots:v,slotProps:{...l,...E}},[C,_]=Lt("typography",{elementType:ni,externalForwardedProps:b,ownerState:g});let P=h;return P!=null&&P.type!==ni&&!u&&(P=A.jsx(C,{component:"span",..._,className:_e(p.label,_==null?void 0:_.className),children:P})),A.jsxs(cE,{className:_e(p.root,a),ownerState:g,ref:r,...S,children:[j.cloneElement(s,M),N?A.jsxs("div",{children:[P,A.jsxs(uE,{ownerState:g,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}):P]})});process.env.NODE_ENV!=="production"&&(Yl.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:Dt,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function pE(e){return We("MuiFormGroup",e)}qe("MuiFormGroup",["root","row","error"]);const fE=e=>{const{classes:t,row:r,error:n}=e;return Ge({root:["root",r&&"row",n&&"error"]},pE,t)},dE=xe("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Xl=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1,...l}=n,s=dr(),c=jr({props:n,muiFormControl:s,states:["error"]}),u={...n,row:a,error:c.error},f=fE(u);return A.jsx(dE,{className:_e(f.root,i),ownerState:u,ref:r,...l})});process.env.NODE_ENV!=="production"&&(Xl.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function hE(e){return We("MuiRadioGroup",e)}qe("MuiRadioGroup",["root","row","error"]);const Jl=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Jl.displayName="RadioGroupContext");const mE=e=>{const{classes:t,row:r,error:n}=e;return Ge({root:["root",r&&"row",n&&"error"]},hE,t)},Vh=j.forwardRef(function(t,r){const{actions:n,children:i,className:a,defaultValue:l,name:s,onChange:c,value:u,...f}=t,h=j.useRef(null),y=mE(t),[m,x]=qr({controlled:u,default:l,name:"RadioGroup"});j.useImperativeHandle(n,()=>({focus:()=>{let R=h.current.querySelector("input:not(:disabled):checked");R||(R=h.current.querySelector("input:not(:disabled)")),R&&R.focus()}}),[]);const d=Ot(r,h),v=vo(s),E=j.useMemo(()=>({name:v,onChange(R){x(R.target.value),c&&c(R,R.target.value)},value:m}),[v,c,x,m]);return A.jsx(Jl.Provider,{value:E,children:A.jsx(Xl,{role:"radiogroup",ref:d,className:_e(y.root,a),...f,children:i})})});process.env.NODE_ENV!=="production"&&(Vh.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});function gE(){return j.useContext(Jl)}function yE(e){return We("PrivateSwitchBase",e)}qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const vE=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${he(i)}`],input:["input"]};return Ge(a,yE,t)},bE=xe(Wr)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),xE=xe("input",{shouldForwardProp:Nt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ql=j.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,className:l,defaultChecked:s,disabled:c,disableFocusRipple:u=!1,edge:f=!1,icon:h,id:y,inputProps:m,inputRef:x,name:d,onBlur:v,onChange:E,onFocus:R,readOnly:S,required:T=!1,tabIndex:w,type:N,value:M,...O}=t,[g,p]=qr({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),b=dr(),C=G=>{R&&R(G),b&&b.onFocus&&b.onFocus(G)},_=G=>{v&&v(G),b&&b.onBlur&&b.onBlur(G)},P=G=>{if(G.nativeEvent.defaultPrevented)return;const B=G.target.checked;p(B),E&&E(G,B)};let k=c;b&&typeof k>"u"&&(k=b.disabled);const D=N==="checkbox"||N==="radio",W={...t,checked:g,disabled:k,disableFocusRipple:u,edge:f},Z=vE(W);return A.jsxs(bE,{component:"span",className:_e(Z.root,l),centerRipple:!0,focusRipple:!u,disabled:k,tabIndex:null,role:void 0,onFocus:C,onBlur:_,ownerState:W,ref:r,...O,children:[A.jsx(xE,{autoFocus:n,checked:i,defaultChecked:s,className:Z.input,disabled:k,id:D?y:void 0,name:d,onChange:P,readOnly:S,ref:x,required:T,ownerState:W,tabIndex:w,type:N,...N==="checkbox"&&M===void 0?{}:{value:M},...m}),g?a:h]})});process.env.NODE_ENV!=="production"&&(Ql.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:Dt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const OE=Pt(A.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),EE=Pt(A.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),CE=xe("span",{shouldForwardProp:Nt})({position:"relative",display:"flex"}),SE=xe(OE)({transform:"scale(1)"}),TE=xe(EE)(Ke(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Zl(e){const{checked:t=!1,classes:r={},fontSize:n}=e,i={...e,checked:t};return A.jsxs(CE,{className:r.root,ownerState:i,children:[A.jsx(SE,{fontSize:n,className:r.background,ownerState:i}),A.jsx(TE,{fontSize:n,className:r.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(Zl.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});function wE(e){return We("MuiRadio",e)}const Uh=qe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),RE=e=>{const{classes:t,color:r,size:n}=e,i={root:["root",`color${he(r)}`,n!=="medium"&&`size${he(n)}`]};return{...t,...Ge(i,wE,t)}},_E=xe(Ql,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${he(r.size)}`],t[`color${he(r.color)}`]]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Uh.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Uh.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function PE(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Wh=A.jsx(Zl,{checked:!0}),Hh=A.jsx(Zl,{}),Gh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:a=Wh,color:l="primary",icon:s=Hh,name:c,onChange:u,size:f="medium",className:h,disabled:y,disableRipple:m=!1,...x}=n,d=dr();let v=y;d&&typeof v>"u"&&(v=d.disabled),v??(v=!1);const E={...n,disabled:v,disableRipple:m,color:l,size:f},R=RE(E),S=gE();let T=i;const w=xl(u,S&&S.onChange);let N=c;return S&&(typeof T>"u"&&(T=PE(S.value,n.value)),typeof N>"u"&&(N=S.name)),A.jsx(_E,{type:"radio",icon:j.cloneElement(s,{fontSize:Hh.props.fontSize??f}),checkedIcon:j.cloneElement(a,{fontSize:Wh.props.fontSize??f}),disabled:v,ownerState:E,classes:R,name:N,checked:T,onChange:w,ref:r,className:_e(R.root,h),...x})});process.env.NODE_ENV!=="production"&&(Gh.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:Dt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const Kh="Radios",ii={formControl:`${Kh}-formControl`,group:`${Kh}-group`},IE=jo(an)(({theme:e})=>({[`&.${ii.formControl}`]:{marginTop:e.spacing(1)},[`& .${ii.group}`]:{margin:e.spacing(1,0)}}));class kE extends we.Component{constructor(){super(...arguments);Tt(this,"renderItems",r=>{const{localization:{getLocalizedString:n}}=this.props;return r.titleMap.map((i,a)=>A.jsx(Yl,{control:A.jsx(Gh,{}),label:i.name&&n(i.name),value:i.value,disabled:r.readonly},a))})}render(){const{form:r,value:n,onChangeValidate:i,localization:{getLocalizedString:a}}=this.props;return A.jsxs(IE,{component:"fieldset",className:ii.formControl,...r.otherProps,children:[A.jsx(Nr,{component:"legend",required:r.required,children:r.title&&a(r.title)}),A.jsx(Vh,{value:n,name:r.title,onChange:i,className:ii.group,children:this.renderItems(r)})]})}}const jE=jt(kE),AE=jt(e=>{const{value:t,localization:{getLocalizedDate:r},form:n,type:i}=e;return A.jsx(Hn,{...e,form:{...n,type:i},value:r(t),otherProps:{InputLabelProps:{shrink:!0}},...n.otherProps})},{type:"date"});class NE extends we.Component{constructor(t){super(t);const{model:r,form:n,value:i,setDefault:a}=this.props,{key:l}=n,c=new Date().toISOString().substring(0,16);a(l,r,n,i||c)}render(){const{form:t,error:r,value:n,onChangeValidate:i,localization:{getLocalizedString:a}}=this.props;return A.jsx(ti,{type:"datetime-local",label:t.title&&a(t.title),placeholder:t.placeholder&&a(t.placeholder),helperText:(r||t.description)&&a(r||t.description),error:!!r,onChange:i,value:n||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...t.otherProps})}}const $E=jt(NE),ME=Pt(A.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),DE=Pt(A.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),LE=Pt(A.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function FE(e){return We("MuiCheckbox",e)}const ec=qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),BE=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${he(n)}`,`size${he(i)}`]},l=Ge(a,FE,t);return{...t,...l}},qE=xe(Ql,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${he(r.size)}`],r.color!=="default"&&t[`color${he(r.color)}`]]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{[`&.${ec.checked}, &.${ec.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${ec.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),zE=A.jsx(DE,{}),VE=A.jsx(ME,{}),UE=A.jsx(LE,{}),Yh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiCheckbox"}),{checkedIcon:i=zE,color:a="primary",icon:l=VE,indeterminate:s=!1,indeterminateIcon:c=UE,inputProps:u,size:f="medium",disableRipple:h=!1,className:y,...m}=n,x=s?c:l,d=s?c:i,v={...n,disableRipple:h,color:a,indeterminate:s,size:f},E=BE(v);return A.jsx(qE,{type:"checkbox",inputProps:{"data-indeterminate":s,...u},icon:j.cloneElement(x,{fontSize:x.props.fontSize??f}),checkedIcon:j.cloneElement(d,{fontSize:d.props.fontSize??f}),ownerState:v,ref:r,className:_e(E.root,y),disableRipple:h,...m,classes:E})});process.env.NODE_ENV!=="production"&&(Yh.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,inputRef:Dt,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function WE(e){const{model:t,form:r,value:n,setDefault:i,localization:{getLocalizedString:a},onChangeValidate:l}=e,{key:s}=r;return i(s,t,r,n),A.jsx(Xl,{row:!0,children:A.jsx(Yl,{className:r.className,label:r.title&&a(r.title),control:A.jsx(Yh,{name:r.key.slice(-1)[0],value:r.key.slice(-1)[0],checked:n||!1,disabled:r.readonly,onChange:l}),...r.otherProps})})}const HE=jt(WE),GE=({form:{description:e,variant:t,align:r,color:n,noWrap:i,paragraph:a,otherProps:l}})=>A.jsx(ni,{variant:t,align:r,color:n,noWrap:i,paragraph:a,...l,children:e});function KE(e){return We("MuiButton",e)}const cn=qe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Xh=j.createContext({});process.env.NODE_ENV!=="production"&&(Xh.displayName="ButtonGroupContext");const Jh=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Jh.displayName="ButtonGroupButtonContext");const YE=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:l}=e,s={root:["root",a,`${a}${he(t)}`,`size${he(i)}`,`${a}Size${he(i)}`,`color${he(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${he(i)}`],endIcon:["icon","endIcon",`iconSize${he(i)}`]},c=Ge(s,KE,l);return{...l,...c}},Qh=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],XE=xe(Wr,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${he(r.color)}`],t[`size${he(r.size)}`],t[`${r.variant}Size${he(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${cn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${cn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${cn.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${cn.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter($t()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.5)`:Qe(e.palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[n].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[n].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${cn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${cn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),JE=xe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Qh]}),QE=xe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Qh]}),Zh=j.forwardRef(function(t,r){const n=j.useContext(Xh),i=j.useContext(Jh),a=Ao(n,t),l=Je({props:a,name:"MuiButton"}),{children:s,color:c="primary",component:u="button",className:f,disabled:h=!1,disableElevation:y=!1,disableFocusRipple:m=!1,endIcon:x,focusVisibleClassName:d,fullWidth:v=!1,size:E="medium",startIcon:R,type:S,variant:T="text",...w}=l,N={...l,color:c,component:u,disabled:h,disableElevation:y,disableFocusRipple:m,fullWidth:v,size:E,type:S,variant:T},M=YE(N),O=R&&A.jsx(JE,{className:M.startIcon,ownerState:N,children:R}),g=x&&A.jsx(QE,{className:M.endIcon,ownerState:N,children:x}),p=i||"";return A.jsxs(XE,{ownerState:N,className:_e(n.className,M.root,f,p),component:u,disabled:h,focusRipple:!m,focusVisibleClassName:_e(M.focusVisible,d),ref:r,type:S,...w,classes:M,children:[O,s,g]})});process.env.NODE_ENV!=="production"&&(Zh.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function ZE(e){return We("MuiCard",e)}qe("MuiCard",["root"]);const eC=e=>{const{classes:t}=e;return Ge({root:["root"]},ZE,t)},tC=xe(Vn,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),em=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiCard"}),{className:i,raised:a=!1,...l}=n,s={...n,raised:a},c=eC(s);return A.jsx(tC,{className:_e(c.root,i),elevation:a?8:void 0,ref:r,ownerState:s,...l})});process.env.NODE_ENV!=="production"&&(em.propTypes={children:o.node,classes:o.object,className:o.string,raised:ur(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function rC(e){return We("MuiIconButton",e)}const nC=qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),oC=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,l={root:["root",r&&"disabled",n!=="default"&&`color${he(n)}`,i&&`edge${he(i)}`,`size${he(a)}`]};return Ge(l,rC,t)},iC=xe(Wr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${he(r.color)}`],r.edge&&t[`edge${he(r.edge)}`],t[`size${he(r.size)}`]]}})(Ke(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ke(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${nC.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),ai=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:l,color:s="default",disabled:c=!1,disableFocusRipple:u=!1,size:f="medium",...h}=n,y={...n,edge:i,color:s,disabled:c,disableFocusRipple:u,size:f},m=oC(y);return A.jsx(iC,{className:_e(m.root,l),centerRipple:!0,focusRipple:!u,disabled:c,ref:r,...h,ownerState:y,children:a})});process.env.NODE_ENV!=="production"&&(ai.propTypes={children:ur(o.node,e=>j.Children.toArray(e.children).some(r=>j.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
209
|
+
`)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const aC=Pt(A.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Xn="ArrayComponent",gr={arrayItem:`${Xn}-arrayItem`,deleteItemButton:`${Xn}-deleteItemButton`,addButton:`${Xn}-addButton`,elementsContainer:`${Xn}-elementsContainer`,title:`${Xn}-title`},sC=jo("div")(({theme:e})=>({[`& .${gr.arrayItem}`]:{position:"relative",padding:e.spacing(),marginTop:e.spacing(),display:"flex"},[`& .${gr.deleteItemButton}`]:{margin:[[e.spacing(-1),e.spacing(-1),"auto","auto"]]},[`& .${gr.addButton}`]:{marginLeft:e.spacing()},[`& .${gr.elementsContainer}`]:{display:"flex",flexWrap:"wrap"},[`& .${gr.title}`]:{margin:"auto 0"}})),Ft=class Ft extends we.Component{constructor(r){super(r);Tt(this,"SEQUENCE",1);Tt(this,"onAppend",()=>{const{form:r,options:n,onChangeValidate:i}=this.props,{model:a}=this.state;let l;if(r&&r.schema&&r.schema.items){const{items:c}=r.schema;c.type&&c.type.indexOf("object")!==-1?(l={},(!n||n.setSchemaDefaults!==!1)&&(l=typeof c.default<"u"?c.default:l,l&&Mt.traverseSchema(c,(u,f)=>{typeof u.default<"u"&&Mt.selectOrSet(f,l,u.default)}))):(c.type&&c.type.indexOf("array")!==-1&&(l=[]),(!n||n.setSchemaDefaults!==!1)&&(l=c.default||l))}const s=a;Ft.assignItemId(l),s.push(l),this.setState({model:s}),i(a)});Tt(this,"onDelete",r=>()=>{const{model:n}=this.state,{onChangeValidate:i}=this.props,a=n;a.splice(r,1),this.setState({model:a}),i(n)});Tt(this,"getAddButton",()=>{const{form:r}=this.props,n=r.AddButton||(i=>A.jsx(Zh,{className:gr.addButton,variant:"contained",color:"primary",...i}));return A.jsx(n,{onClick:this.onAppend,children:r.add||"Add"})});const{form:n,model:i}=this.props;this.state={model:Mt.selectOrSet(n.key,i)||[]}}static assignItemId(r){let n=null;return r&&typeof r=="object"&&Array.isArray(r)?n=[...r]:r&&typeof r=="object"&&!r[Ft.ITEM_ID]&&(n={...r}),n?(Object.defineProperty(n,Ft.ITEM_ID,{enumerable:!1,writable:!0}),Ft.SEQUENCE+=1,n[Ft.ITEM_ID]=Ft.SEQUENCE,n):r}static getDerivedStateFromProps(r,n){const{form:i}=r,a=i.key;if(r.form&&a===n.formKey&&r.model&&r.model[a]===n.model)return null;const l=Mt.selectOrSet(a,r.model)||[];return{formKey:a,model:l.map(Ft.assignItemId)}}componentDidMount(){const{form:r,model:n}=this.props;r.startEmpty!==!0&&n.length===0&&this.onAppend()}render(){const{form:r,builder:n,model:i,mapper:a,onChange:l,localization:{getLocalizedString:s}}=this.props,{model:c}=this.state,u=[];for(let f=0;f<c.length;f+=1){const h=c[f],y=r.items.map((m,x)=>{const d=Ft.copyWithIndex(m,f);return n(d,i,x,a,l,n,{arrayIndex:f})});u.push(A.jsxs(em,{className:gr.arrayItem,children:[A.jsx("div",{className:gr.elementsContainer,children:y}),A.jsx(ai,{onClick:this.onDelete(f),className:gr.deleteItemButton,size:"large",children:A.jsx(aC,{fontSize:"small"})})]},h&&h[Ft.ITEM_ID]||f))}return A.jsxs(sC,{children:[A.jsxs("div",{style:{display:"flex"},children:[A.jsx(Nr,{required:r.required,className:gr.title,children:r.title&&s(r.title)}),this.getAddButton()]}),A.jsx("div",{children:u})]})}};Tt(Ft,"setIndex",r=>n=>{n.key&&(n.key[n.key.indexOf("")]=r)}),Tt(Ft,"copyWithIndex",(r,n)=>{const i=Ks(r);return i.arrayIndex=n,Mt.traverseForm(i,Ft.setIndex(n)),i}),Tt(Ft,"ITEM_ID",Symbol("_SCHEMAFORM_ITEM_ID"));let tc=Ft;const tm=jt(tc);var rc={exports:{}};/*!
|
|
210
|
+
Copyright (c) 2018 Jed Watson.
|
|
211
|
+
Licensed under the MIT License (MIT), see
|
|
212
|
+
http://jedwatson.github.io/classnames
|
|
213
|
+
*/var rm;function lC(){return rm||(rm=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(a=i(a,n(s)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var s in a)t.call(a,s)&&a[s]&&(l=i(l,s));return l}function i(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(rc)),rc.exports}var cC=lC();const uC=ir(cC),nm="FieldSet",om={root:`${nm}-root`,fields:`${nm}-fields`},pC=jo(an)(({theme:e})=>({[`&.${om.root}`]:{marginTop:e.spacing(1)},[`& .${om.fields}`]:{marginLeft:e.spacing(1)}})),im=({form:e,mapper:t,builder:r,model:n,onChange:i,classes:a,localization:{getLocalizedString:l}})=>{const s=e.items.map((u,f)=>r(u,n,f,t,i,r)),c=uC(a.root,e.htmlClass);return A.jsxs(pC,{component:"fieldset",className:c,style:e.style,...e.otherProps,children:[A.jsx(Nr,{component:"legend",required:e.required,children:e.title&&l(e.title)}),A.jsx("div",{className:a.fields,children:s})]})};class fC extends we.Component{constructor(r){super(r);Tt(this,"divStyle",{padding:"20px"});this.state={yesChecked:!1,noChecked:!1};const{model:n,form:i,value:a,setDefault:l}=this.props,{key:s}=i;l(s,n,i,a)}static getDerivedStateFromProps(r){return{yesChecked:r.value==="yes",noChecked:r.value==="no"}}displaySwitch(){const{form:{title:r,yesLabel:n,noLabel:i,clearButtonLabel:a,required:l},onChangeValidate:s,value:c,localization:{getLocalizedString:u}}=this.props,{yesChecked:f,noChecked:h}=this.state;return A.jsxs("div",{style:this.divStyle,children:[A.jsx(Nr,{required:l,children:r&&u(r)}),A.jsx("br",{}),A.jsxs(Lr.FormGroup,{children:[A.jsx(Lr.FormControlLabel,{control:A.jsx(Lr.Checkbox,{onClick:y=>{s(y,"yes")},checked:f}),label:n?u(n):"Yes"}),A.jsx(Lr.FormControlLabel,{control:A.jsx(Lr.Checkbox,{onClick:y=>{s(y,"no")},checked:h}),label:i?u(i):"No"})]}),c==="yes"||c==="no"?A.jsx(Lr.Button,{id:"temp",variant:"text",color:"primary",onClick:y=>s(y,"unanswered"),children:a?u(a):"clear response"}):""]})}render(){return A.jsx(Lr.Card,{children:this.displaySwitch()})}}const dC=jt(fC);var nc={exports:{}};/*! react-checkbox-tree - v1.8.0 | 2022 */var am;function hC(){return am||(am=1,function(e,t){/*! For license information please see index.browser.js.LICENSE.txt */(function(r,n){e.exports=n(we)})(self,r=>(()=>{var n={4184:(s,c)=>{var u;(function(){var f={}.hasOwnProperty;function h(){for(var y=[],m=0;m<arguments.length;m++){var x=arguments[m];if(x){var d=typeof x;if(d==="string"||d==="number")y.push(x);else if(Array.isArray(x)){if(x.length){var v=h.apply(null,x);v&&y.push(v)}}else if(d==="object")if(x.toString===Object.prototype.toString)for(var E in x)f.call(x,E)&&x[E]&&y.push(E);else y.push(x.toString())}}return y.join(" ")}s.exports?(h.default=h,s.exports=h):(u=(function(){return h}).apply(c,[]))===void 0||(s.exports=u)})()},8552:(s,c,u)=>{var f=u(852)(u(5639),"DataView");s.exports=f},1989:(s,c,u)=>{var f=u(1789),h=u(401),y=u(7667),m=u(1327),x=u(1866);function d(v){var E=-1,R=v==null?0:v.length;for(this.clear();++E<R;){var S=v[E];this.set(S[0],S[1])}}d.prototype.clear=f,d.prototype.delete=h,d.prototype.get=y,d.prototype.has=m,d.prototype.set=x,s.exports=d},8407:(s,c,u)=>{var f=u(7040),h=u(4125),y=u(2117),m=u(7518),x=u(4705);function d(v){var E=-1,R=v==null?0:v.length;for(this.clear();++E<R;){var S=v[E];this.set(S[0],S[1])}}d.prototype.clear=f,d.prototype.delete=h,d.prototype.get=y,d.prototype.has=m,d.prototype.set=x,s.exports=d},7071:(s,c,u)=>{var f=u(852)(u(5639),"Map");s.exports=f},3369:(s,c,u)=>{var f=u(4785),h=u(1285),y=u(6e3),m=u(9916),x=u(5265);function d(v){var E=-1,R=v==null?0:v.length;for(this.clear();++E<R;){var S=v[E];this.set(S[0],S[1])}}d.prototype.clear=f,d.prototype.delete=h,d.prototype.get=y,d.prototype.has=m,d.prototype.set=x,s.exports=d},3818:(s,c,u)=>{var f=u(852)(u(5639),"Promise");s.exports=f},8525:(s,c,u)=>{var f=u(852)(u(5639),"Set");s.exports=f},8668:(s,c,u)=>{var f=u(3369),h=u(619),y=u(2385);function m(x){var d=-1,v=x==null?0:x.length;for(this.__data__=new f;++d<v;)this.add(x[d])}m.prototype.add=m.prototype.push=h,m.prototype.has=y,s.exports=m},6384:(s,c,u)=>{var f=u(8407),h=u(7465),y=u(3779),m=u(7599),x=u(4758),d=u(4309);function v(E){var R=this.__data__=new f(E);this.size=R.size}v.prototype.clear=h,v.prototype.delete=y,v.prototype.get=m,v.prototype.has=x,v.prototype.set=d,s.exports=v},2705:(s,c,u)=>{var f=u(5639).Symbol;s.exports=f},1149:(s,c,u)=>{var f=u(5639).Uint8Array;s.exports=f},577:(s,c,u)=>{var f=u(852)(u(5639),"WeakMap");s.exports=f},4963:s=>{s.exports=function(c,u){for(var f=-1,h=c==null?0:c.length,y=0,m=[];++f<h;){var x=c[f];u(x,f,c)&&(m[y++]=x)}return m}},4636:(s,c,u)=>{var f=u(2545),h=u(5694),y=u(1469),m=u(4144),x=u(5776),d=u(6719),v=Object.prototype.hasOwnProperty;s.exports=function(E,R){var S=y(E),T=!S&&h(E),w=!S&&!T&&m(E),N=!S&&!T&&!w&&d(E),M=S||T||w||N,O=M?f(E.length,String):[],g=O.length;for(var p in E)!R&&!v.call(E,p)||M&&(p=="length"||w&&(p=="offset"||p=="parent")||N&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||x(p,g))||O.push(p);return O}},2488:s=>{s.exports=function(c,u){for(var f=-1,h=u.length,y=c.length;++f<h;)c[y+f]=u[f];return c}},2908:s=>{s.exports=function(c,u){for(var f=-1,h=c==null?0:c.length;++f<h;)if(u(c[f],f,c))return!0;return!1}},8470:(s,c,u)=>{var f=u(7813);s.exports=function(h,y){for(var m=h.length;m--;)if(f(h[m][0],y))return m;return-1}},8866:(s,c,u)=>{var f=u(2488),h=u(1469);s.exports=function(y,m,x){var d=m(y);return h(y)?d:f(d,x(y))}},4239:(s,c,u)=>{var f=u(2705),h=u(9607),y=u(2333),m=f?f.toStringTag:void 0;s.exports=function(x){return x==null?x===void 0?"[object Undefined]":"[object Null]":m&&m in Object(x)?h(x):y(x)}},9454:(s,c,u)=>{var f=u(4239),h=u(7005);s.exports=function(y){return h(y)&&f(y)=="[object Arguments]"}},939:(s,c,u)=>{var f=u(2492),h=u(7005);s.exports=function y(m,x,d,v,E){return m===x||(m==null||x==null||!h(m)&&!h(x)?m!=m&&x!=x:f(m,x,d,v,y,E))}},2492:(s,c,u)=>{var f=u(6384),h=u(7114),y=u(8351),m=u(6096),x=u(4160),d=u(1469),v=u(4144),E=u(6719),R="[object Arguments]",S="[object Array]",T="[object Object]",w=Object.prototype.hasOwnProperty;s.exports=function(N,M,O,g,p,b){var C=d(N),_=d(M),P=C?S:x(N),k=_?S:x(M),D=(P=P==R?T:P)==T,W=(k=k==R?T:k)==T,Z=P==k;if(Z&&v(N)){if(!v(M))return!1;C=!0,D=!1}if(Z&&!D)return b||(b=new f),C||E(N)?h(N,M,O,g,p,b):y(N,M,P,O,g,p,b);if(!(1&O)){var G=D&&w.call(N,"__wrapped__"),B=W&&w.call(M,"__wrapped__");if(G||B){var Y=G?N.value():N,ae=B?M.value():M;return b||(b=new f),p(Y,ae,O,g,b)}}return!!Z&&(b||(b=new f),m(N,M,O,g,p,b))}},8458:(s,c,u)=>{var f=u(3560),h=u(5346),y=u(3218),m=u(346),x=/^\[object .+?Constructor\]$/,d=Function.prototype,v=Object.prototype,E=d.toString,R=v.hasOwnProperty,S=RegExp("^"+E.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");s.exports=function(T){return!(!y(T)||h(T))&&(f(T)?S:x).test(m(T))}},8749:(s,c,u)=>{var f=u(4239),h=u(1780),y=u(7005),m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m["[object Arguments]"]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m["[object Map]"]=m["[object Number]"]=m["[object Object]"]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1,s.exports=function(x){return y(x)&&h(x.length)&&!!m[f(x)]}},280:(s,c,u)=>{var f=u(5726),h=u(6916),y=Object.prototype.hasOwnProperty;s.exports=function(m){if(!f(m))return h(m);var x=[];for(var d in Object(m))y.call(m,d)&&d!="constructor"&&x.push(d);return x}},2545:s=>{s.exports=function(c,u){for(var f=-1,h=Array(c);++f<c;)h[f]=u(f);return h}},1717:s=>{s.exports=function(c){return function(u){return c(u)}}},4757:s=>{s.exports=function(c,u){return c.has(u)}},4429:(s,c,u)=>{var f=u(5639)["__core-js_shared__"];s.exports=f},7114:(s,c,u)=>{var f=u(8668),h=u(2908),y=u(4757);s.exports=function(m,x,d,v,E,R){var S=1&d,T=m.length,w=x.length;if(T!=w&&!(S&&w>T))return!1;var N=R.get(m),M=R.get(x);if(N&&M)return N==x&&M==m;var O=-1,g=!0,p=2&d?new f:void 0;for(R.set(m,x),R.set(x,m);++O<T;){var b=m[O],C=x[O];if(v)var _=S?v(C,b,O,x,m,R):v(b,C,O,m,x,R);if(_!==void 0){if(_)continue;g=!1;break}if(p){if(!h(x,function(P,k){if(!y(p,k)&&(b===P||E(b,P,d,v,R)))return p.push(k)})){g=!1;break}}else if(b!==C&&!E(b,C,d,v,R)){g=!1;break}}return R.delete(m),R.delete(x),g}},8351:(s,c,u)=>{var f=u(2705),h=u(1149),y=u(7813),m=u(7114),x=u(8776),d=u(1814),v=f?f.prototype:void 0,E=v?v.valueOf:void 0;s.exports=function(R,S,T,w,N,M,O){switch(T){case"[object DataView]":if(R.byteLength!=S.byteLength||R.byteOffset!=S.byteOffset)return!1;R=R.buffer,S=S.buffer;case"[object ArrayBuffer]":return!(R.byteLength!=S.byteLength||!M(new h(R),new h(S)));case"[object Boolean]":case"[object Date]":case"[object Number]":return y(+R,+S);case"[object Error]":return R.name==S.name&&R.message==S.message;case"[object RegExp]":case"[object String]":return R==S+"";case"[object Map]":var g=x;case"[object Set]":var p=1&w;if(g||(g=d),R.size!=S.size&&!p)return!1;var b=O.get(R);if(b)return b==S;w|=2,O.set(R,S);var C=m(g(R),g(S),w,N,M,O);return O.delete(R),C;case"[object Symbol]":if(E)return E.call(R)==E.call(S)}return!1}},6096:(s,c,u)=>{var f=u(8234),h=Object.prototype.hasOwnProperty;s.exports=function(y,m,x,d,v,E){var R=1&x,S=f(y),T=S.length;if(T!=f(m).length&&!R)return!1;for(var w=T;w--;){var N=S[w];if(!(R?N in m:h.call(m,N)))return!1}var M=E.get(y),O=E.get(m);if(M&&O)return M==m&&O==y;var g=!0;E.set(y,m),E.set(m,y);for(var p=R;++w<T;){var b=y[N=S[w]],C=m[N];if(d)var _=R?d(C,b,N,m,y,E):d(b,C,N,y,m,E);if(!(_===void 0?b===C||v(b,C,x,d,E):_)){g=!1;break}p||(p=N=="constructor")}if(g&&!p){var P=y.constructor,k=m.constructor;P==k||!("constructor"in y)||!("constructor"in m)||typeof P=="function"&&P instanceof P&&typeof k=="function"&&k instanceof k||(g=!1)}return E.delete(y),E.delete(m),g}},1957:(s,c,u)=>{var f=typeof u.g=="object"&&u.g&&u.g.Object===Object&&u.g;s.exports=f},8234:(s,c,u)=>{var f=u(8866),h=u(9551),y=u(3674);s.exports=function(m){return f(m,y,h)}},5050:(s,c,u)=>{var f=u(7019);s.exports=function(h,y){var m=h.__data__;return f(y)?m[typeof y=="string"?"string":"hash"]:m.map}},852:(s,c,u)=>{var f=u(8458),h=u(7801);s.exports=function(y,m){var x=h(y,m);return f(x)?x:void 0}},9607:(s,c,u)=>{var f=u(2705),h=Object.prototype,y=h.hasOwnProperty,m=h.toString,x=f?f.toStringTag:void 0;s.exports=function(d){var v=y.call(d,x),E=d[x];try{d[x]=void 0;var R=!0}catch{}var S=m.call(d);return R&&(v?d[x]=E:delete d[x]),S}},9551:(s,c,u)=>{var f=u(4963),h=u(479),y=Object.prototype.propertyIsEnumerable,m=Object.getOwnPropertySymbols,x=m?function(d){return d==null?[]:(d=Object(d),f(m(d),function(v){return y.call(d,v)}))}:h;s.exports=x},4160:(s,c,u)=>{var f=u(8552),h=u(7071),y=u(3818),m=u(8525),x=u(577),d=u(4239),v=u(346),E="[object Map]",R="[object Promise]",S="[object Set]",T="[object WeakMap]",w="[object DataView]",N=v(f),M=v(h),O=v(y),g=v(m),p=v(x),b=d;(f&&b(new f(new ArrayBuffer(1)))!=w||h&&b(new h)!=E||y&&b(y.resolve())!=R||m&&b(new m)!=S||x&&b(new x)!=T)&&(b=function(C){var _=d(C),P=_=="[object Object]"?C.constructor:void 0,k=P?v(P):"";if(k)switch(k){case N:return w;case M:return E;case O:return R;case g:return S;case p:return T}return _}),s.exports=b},7801:s=>{s.exports=function(c,u){return c==null?void 0:c[u]}},1789:(s,c,u)=>{var f=u(4536);s.exports=function(){this.__data__=f?f(null):{},this.size=0}},401:s=>{s.exports=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u}},7667:(s,c,u)=>{var f=u(4536),h=Object.prototype.hasOwnProperty;s.exports=function(y){var m=this.__data__;if(f){var x=m[y];return x==="__lodash_hash_undefined__"?void 0:x}return h.call(m,y)?m[y]:void 0}},1327:(s,c,u)=>{var f=u(4536),h=Object.prototype.hasOwnProperty;s.exports=function(y){var m=this.__data__;return f?m[y]!==void 0:h.call(m,y)}},1866:(s,c,u)=>{var f=u(4536);s.exports=function(h,y){var m=this.__data__;return this.size+=this.has(h)?0:1,m[h]=f&&y===void 0?"__lodash_hash_undefined__":y,this}},5776:s=>{var c=/^(?:0|[1-9]\d*)$/;s.exports=function(u,f){var h=typeof u;return!!(f=f??9007199254740991)&&(h=="number"||h!="symbol"&&c.test(u))&&u>-1&&u%1==0&&u<f}},7019:s=>{s.exports=function(c){var u=typeof c;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?c!=="__proto__":c===null}},5346:(s,c,u)=>{var f,h=u(4429),y=(f=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"";s.exports=function(m){return!!y&&y in m}},5726:s=>{var c=Object.prototype;s.exports=function(u){var f=u&&u.constructor;return u===(typeof f=="function"&&f.prototype||c)}},7040:s=>{s.exports=function(){this.__data__=[],this.size=0}},4125:(s,c,u)=>{var f=u(8470),h=Array.prototype.splice;s.exports=function(y){var m=this.__data__,x=f(m,y);return!(x<0||(x==m.length-1?m.pop():h.call(m,x,1),--this.size,0))}},2117:(s,c,u)=>{var f=u(8470);s.exports=function(h){var y=this.__data__,m=f(y,h);return m<0?void 0:y[m][1]}},7518:(s,c,u)=>{var f=u(8470);s.exports=function(h){return f(this.__data__,h)>-1}},4705:(s,c,u)=>{var f=u(8470);s.exports=function(h,y){var m=this.__data__,x=f(m,h);return x<0?(++this.size,m.push([h,y])):m[x][1]=y,this}},4785:(s,c,u)=>{var f=u(1989),h=u(8407),y=u(7071);s.exports=function(){this.size=0,this.__data__={hash:new f,map:new(y||h),string:new f}}},1285:(s,c,u)=>{var f=u(5050);s.exports=function(h){var y=f(this,h).delete(h);return this.size-=y?1:0,y}},6e3:(s,c,u)=>{var f=u(5050);s.exports=function(h){return f(this,h).get(h)}},9916:(s,c,u)=>{var f=u(5050);s.exports=function(h){return f(this,h).has(h)}},5265:(s,c,u)=>{var f=u(5050);s.exports=function(h,y){var m=f(this,h),x=m.size;return m.set(h,y),this.size+=m.size==x?0:1,this}},8776:s=>{s.exports=function(c){var u=-1,f=Array(c.size);return c.forEach(function(h,y){f[++u]=[y,h]}),f}},4536:(s,c,u)=>{var f=u(852)(Object,"create");s.exports=f},6916:(s,c,u)=>{var f=u(5569)(Object.keys,Object);s.exports=f},1167:(s,c,u)=>{s=u.nmd(s);var f=u(1957),h=c&&!c.nodeType&&c,y=h&&s&&!s.nodeType&&s,m=y&&y.exports===h&&f.process,x=function(){try{return y&&y.require&&y.require("util").types||m&&m.binding&&m.binding("util")}catch{}}();s.exports=x},2333:s=>{var c=Object.prototype.toString;s.exports=function(u){return c.call(u)}},5569:s=>{s.exports=function(c,u){return function(f){return c(u(f))}}},5639:(s,c,u)=>{var f=u(1957),h=typeof self=="object"&&self&&self.Object===Object&&self,y=f||h||Function("return this")();s.exports=y},619:s=>{s.exports=function(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},2385:s=>{s.exports=function(c){return this.__data__.has(c)}},1814:s=>{s.exports=function(c){var u=-1,f=Array(c.size);return c.forEach(function(h){f[++u]=h}),f}},7465:(s,c,u)=>{var f=u(8407);s.exports=function(){this.__data__=new f,this.size=0}},3779:s=>{s.exports=function(c){var u=this.__data__,f=u.delete(c);return this.size=u.size,f}},7599:s=>{s.exports=function(c){return this.__data__.get(c)}},4758:s=>{s.exports=function(c){return this.__data__.has(c)}},4309:(s,c,u)=>{var f=u(8407),h=u(7071),y=u(3369);s.exports=function(m,x){var d=this.__data__;if(d instanceof f){var v=d.__data__;if(!h||v.length<199)return v.push([m,x]),this.size=++d.size,this;d=this.__data__=new y(v)}return d.set(m,x),this.size=d.size,this}},346:s=>{var c=Function.prototype.toString;s.exports=function(u){if(u!=null){try{return c.call(u)}catch{}try{return u+""}catch{}}return""}},7813:s=>{s.exports=function(c,u){return c===u||c!=c&&u!=u}},5694:(s,c,u)=>{var f=u(9454),h=u(7005),y=Object.prototype,m=y.hasOwnProperty,x=y.propertyIsEnumerable,d=f(function(){return arguments}())?f:function(v){return h(v)&&m.call(v,"callee")&&!x.call(v,"callee")};s.exports=d},1469:s=>{var c=Array.isArray;s.exports=c},8612:(s,c,u)=>{var f=u(3560),h=u(1780);s.exports=function(y){return y!=null&&h(y.length)&&!f(y)}},4144:(s,c,u)=>{s=u.nmd(s);var f=u(5639),h=u(5062),y=c&&!c.nodeType&&c,m=y&&s&&!s.nodeType&&s,x=m&&m.exports===y?f.Buffer:void 0,d=(x?x.isBuffer:void 0)||h;s.exports=d},8446:(s,c,u)=>{var f=u(939);s.exports=function(h,y){return f(h,y)}},3560:(s,c,u)=>{var f=u(4239),h=u(3218);s.exports=function(y){if(!h(y))return!1;var m=f(y);return m=="[object Function]"||m=="[object GeneratorFunction]"||m=="[object AsyncFunction]"||m=="[object Proxy]"}},1780:s=>{s.exports=function(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}},3218:s=>{s.exports=function(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}},7005:s=>{s.exports=function(c){return c!=null&&typeof c=="object"}},6719:(s,c,u)=>{var f=u(8749),h=u(1717),y=u(1167),m=y&&y.isTypedArray,x=m?h(m):f;s.exports=x},3674:(s,c,u)=>{var f=u(4636),h=u(280),y=u(8612);s.exports=function(m){return y(m)?f(m):h(m)}},8306:(s,c,u)=>{var f=u(3369);function h(y,m){if(typeof y!="function"||m!=null&&typeof m!="function")throw new TypeError("Expected a function");var x=function(){var d=arguments,v=m?m.apply(this,d):d[0],E=x.cache;if(E.has(v))return E.get(v);var R=y.apply(this,d);return x.cache=E.set(v,R)||E,R};return x.cache=new(h.Cache||f),x}h.Cache=f,s.exports=h},479:s=>{s.exports=function(){return[]}},5062:s=>{s.exports=function(){return!1}},2703:(s,c,u)=>{var f=u(414);function h(){}function y(){}y.resetWarningCache=h,s.exports=function(){function m(v,E,R,S,T,w){if(w!==f){var N=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 N.name="Invariant Violation",N}}function x(){return m}m.isRequired=m;var d={array:m,bigint:m,bool:m,func:m,number:m,object:m,string:m,symbol:m,any:m,arrayOf:x,element:m,elementType:m,instanceOf:x,node:m,objectOf:x,oneOf:x,oneOfType:x,shape:x,exact:x,checkPropTypes:y,resetWarningCache:h};return d.PropTypes=d,d}},5697:(s,c,u)=>{s.exports=u(2703)()},414:s=>{s.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9787:s=>{s.exports=r}},i={};function a(s){var c=i[s];if(c!==void 0)return c.exports;var u=i[s]={id:s,loaded:!1,exports:{}};return n[s](u,u.exports,a),u.loaded=!0,u.exports}a.n=s=>{var c=s&&s.__esModule?()=>s.default:()=>s;return a.d(c,{a:c}),c},a.d=(s,c)=>{for(var u in c)a.o(c,u)&&!a.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:c[u]})},a.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),a.o=(s,c)=>Object.prototype.hasOwnProperty.call(s,c),a.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.nmd=s=>(s.paths=[],s.children||(s.children=[]),s);var l={};return(()=>{a.r(l),a.d(l,{default:()=>Xt,expandNodesToLevel:()=>Yt});var s=a(4184),c=a.n(s),u=a(8446),f=a.n(u),h=a(8306),y=a.n(h);let m=(U=21)=>crypto.getRandomValues(new Uint8Array(U)).reduce(($,K)=>$+((K&=63)<36?K.toString(36):K<62?(K-26).toString(36).toUpperCase():K>62?"-":"_"),"");var x=a(5697),d=a.n(x),v=a(9787),E=a.n(v);function R(U){return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},R(U)}var S=["children","title"];function T(){return T=Object.assign?Object.assign.bind():function(U){for(var $=1;$<arguments.length;$++){var K=arguments[$];for(var V in K)Object.prototype.hasOwnProperty.call(K,V)&&(U[V]=K[V])}return U},T.apply(this,arguments)}function w(U,$){if(!(U instanceof $))throw new TypeError("Cannot call a class as a function")}function N(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function M(U,$){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,V){return K.__proto__=V,K},M(U,$)}function O(U,$){if($&&(R($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}(U)}function g(U){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},g(U)}function p(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var b=function(U){(function(ee,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(L&&L.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),Object.defineProperty(ee,"prototype",{writable:!1}),L&&M(ee,L)})(je,U);var $,K,V,Se,ke=(V=je,Se=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ee,L=g(V);if(Se){var H=g(this).constructor;ee=Reflect.construct(L,arguments,H)}else ee=L.apply(this,arguments);return O(this,ee)});function je(){return w(this,je),ke.apply(this,arguments)}return $=je,(K=[{key:"render",value:function(){var ee=this.props,L=ee.children,H=ee.title,ie=function(Oe,Me){if(Oe==null)return{};var lt,I,J=function(F,q){if(F==null)return{};var re,me,ge={},Ie=Object.keys(F);for(me=0;me<Ie.length;me++)re=Ie[me],q.indexOf(re)>=0||(ge[re]=F[re]);return ge}(Oe,Me);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(Oe);for(I=0;I<fe.length;I++)lt=fe[I],Me.indexOf(lt)>=0||Object.prototype.propertyIsEnumerable.call(Oe,lt)&&(J[lt]=Oe[lt])}return J}(ee,S);return E().createElement("button",T({"aria-label":H,title:H,type:"button"},ie),L)}}])&&N($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),je}(E().PureComponent);p(b,"propTypes",{children:d().node.isRequired,title:d().string}),p(b,"defaultProps",{title:null});const C=b,_={ALL:"all",PARENT:"parent",LEAF:"leaf"};function P(U){this.message=U,this.stack=Error().stack}P.prototype=Object.create(Error.prototype),P.prototype.name="CheckboxTreeError";const k=P;function D(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(U);$&&(V=V.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,V)}return K}function W(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}function Z(U,$){if(!(U instanceof $))throw new TypeError("Cannot call a class as a function")}function G(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}var B=_;const Y=function(){function U(V){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Z(this,U),this.props=V,this.flatNodes=Se}var $,K;return $=U,K=[{key:"setProps",value:function(V){this.props=V}},{key:"clone",value:function(){var V=this,Se={};return Object.keys(this.flatNodes).forEach(function(ke){var je=V.flatNodes[ke];Se[ke]=function(ee){for(var L=1;L<arguments.length;L++){var H=arguments[L]!=null?arguments[L]:{};L%2?D(Object(H),!0).forEach(function(ie){W(ee,ie,H[ie])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ee,Object.getOwnPropertyDescriptors(H)):D(Object(H)).forEach(function(ie){Object.defineProperty(ee,ie,Object.getOwnPropertyDescriptor(H,ie))})}return ee}({},je)}),new U(this.props,Se)}},{key:"getNode",value:function(V){return this.flatNodes[V]}},{key:"reset",value:function(){this.flatNodes={}}},{key:"flattenNodes",value:function(V){var Se=this,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Array.isArray(V)&&V.length!==0){var ee=this.props,L=ee.disabled,H=ee.noCascade;V.forEach(function(ie,Oe){var Me=Se.nodeHasChildren(ie);if(Se.flatNodes[ie.value]!==void 0)throw new k("Duplicate value '".concat(ie.value,"' detected. All node values must be unique."));Se.flatNodes[ie.value]={label:ie.label,value:ie.value,children:ie.children,parent:ke,isChild:ke.value!==void 0,isParent:Me,isLeaf:!Me,showCheckbox:ie.showCheckbox===void 0||ie.showCheckbox,disabled:Se.getDisabledState(ie,ke,L,H),treeDepth:je,index:Oe},Se.flattenNodes(ie.children,ie,je+1)})}}},{key:"nodeHasChildren",value:function(V){return Array.isArray(V.children)}},{key:"getDisabledState",value:function(V,Se,ke,je){return!!ke||!(je||!Se.disabled)||!!V.disabled}},{key:"deserializeLists",value:function(V){var Se=this,ke=["checked","expanded"];Object.keys(this.flatNodes).forEach(function(je){ke.forEach(function(ee){Se.flatNodes[je][ee]=!1})}),ke.forEach(function(je){V[je].forEach(function(ee){Se.flatNodes[ee]!==void 0&&(Se.flatNodes[ee][je]=!0)})})}},{key:"serializeList",value:function(V){var Se=this,ke=[];return Object.keys(this.flatNodes).forEach(function(je){Se.flatNodes[je][V]&&ke.push(je)}),ke}},{key:"expandAllNodes",value:function(V){var Se=this;return Object.keys(this.flatNodes).forEach(function(ke){Se.flatNodes[ke].isParent&&(Se.flatNodes[ke].expanded=V)}),this}},{key:"toggleChecked",value:function(V,Se,ke,je){var ee=this,L=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],H=this.flatNodes[V.value],ie=[B.PARENT,B.ALL].indexOf(ke)>-1,Oe=[B.LEAF,B.ALL].indexOf(ke)>-1;if(H.isLeaf||je){if(V.disabled)return this;this.toggleNode(V.value,"checked",Se)}else(ie||H.children.length===0)&&this.toggleNode(V.value,"checked",Se),Oe&&H.children.forEach(function(Me){ee.toggleChecked(Me,Se,ke,je,!1)});return L&&!je&&H.isChild&&ie&&this.toggleParentStatus(H.parent,ke),this}},{key:"toggleParentStatus",value:function(V,Se){var ke=this.flatNodes[V.value];ke.isChild?(Se===B.ALL&&this.toggleNode(V.value,"checked",this.isEveryChildChecked(ke)),this.toggleParentStatus(ke.parent,Se)):this.toggleNode(V.value,"checked",this.isEveryChildChecked(ke))}},{key:"isEveryChildChecked",value:function(V){var Se=this;return V.children.every(function(ke){return Se.getNode(ke.value).checked})}},{key:"toggleNode",value:function(V,Se,ke){return this.flatNodes[V][Se]=ke,this}}],K&&G($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),U}();function ae(U){return ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},ae(U)}function oe(){return oe=Object.assign?Object.assign.bind():function(U){for(var $=1;$<arguments.length;$++){var K=arguments[$];for(var V in K)Object.prototype.hasOwnProperty.call(K,V)&&(U[V]=K[V])}return U},oe.apply(this,arguments)}function ne(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(U);$&&(V=V.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,V)}return K}function ue(U,$){if(!(U instanceof $))throw new TypeError("Cannot call a class as a function")}function ce(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function ye(U,$){return ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,V){return K.__proto__=V,K},ye(U,$)}function se(U,$){if($&&(ae($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}(U)}function le(U){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},le(U)}function te(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var ve=function(U){(function(ee,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(L&&L.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),Object.defineProperty(ee,"prototype",{writable:!1}),L&&ye(ee,L)})(je,U);var $,K,V,Se,ke=(V=je,Se=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ee,L=le(V);if(Se){var H=le(this).constructor;ee=Reflect.construct(L,arguments,H)}else ee=L.apply(this,arguments);return se(this,ee)});function je(){return ue(this,je),ke.apply(this,arguments)}return $=je,K=[{key:"componentDidMount",value:function(){this.updateDeterminateProperty()}},{key:"componentDidUpdate",value:function(){this.updateDeterminateProperty()}},{key:"updateDeterminateProperty",value:function(){var ee=this.props.indeterminate;this.checkbox.indeterminate=ee}},{key:"render",value:function(){var ee=this,L=function(H){for(var ie=1;ie<arguments.length;ie++){var Oe=arguments[ie]!=null?arguments[ie]:{};ie%2?ne(Object(Oe),!0).forEach(function(Me){te(H,Me,Oe[Me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(Oe)):ne(Object(Oe)).forEach(function(Me){Object.defineProperty(H,Me,Object.getOwnPropertyDescriptor(Oe,Me))})}return H}({},this.props);return delete L.indeterminate,E().createElement("input",oe({},L,{ref:function(H){ee.checkbox=H},type:"checkbox"}))}}],K&&ce($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),je}(E().PureComponent);te(ve,"propTypes",{indeterminate:d().bool}),te(ve,"defaultProps",{indeterminate:!1});const X=ve,Re=d().shape({check:d().node,uncheck:d().node,halfCheck:d().node,expandClose:d().node,expandOpen:d().node,expandAll:d().node,collapseAll:d().node,parentClose:d().node,parentOpen:d().node,leaf:d().node}),z=d().shape({collapseAll:d().string.isRequired,expandAll:d().string.isRequired,toggle:d().string.isRequired});function pe(U){return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},pe(U)}function de(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function Ce(U,$){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,V){return K.__proto__=V,K},Ce(U,$)}function Te(U,$){if($&&(pe($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $e(U)}function $e(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function He(U){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},He(U)}function Ne(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var be=function(U){(function(ee,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(L&&L.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),Object.defineProperty(ee,"prototype",{writable:!1}),L&&Ce(ee,L)})(je,U);var $,K,V,Se,ke=(V=je,Se=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ee,L=He(V);if(Se){var H=He(this).constructor;ee=Reflect.construct(L,arguments,H)}else ee=L.apply(this,arguments);return Te(this,ee)});function je(ee){var L;return function(H,ie){if(!(H instanceof ie))throw new TypeError("Cannot call a class as a function")}(this,je),(L=ke.call(this,ee)).onCheck=L.onCheck.bind($e(L)),L.onCheckboxKeyPress=L.onCheckboxKeyPress.bind($e(L)),L.onCheckboxKeyUp=L.onCheckboxKeyUp.bind($e(L)),L.onClick=L.onClick.bind($e(L)),L.onExpand=L.onExpand.bind($e(L)),L}return $=je,(K=[{key:"onCheck",value:function(){var ee=this.props,L=ee.value;(0,ee.onCheck)({value:L,checked:this.getCheckState({toggle:!0})})}},{key:"onCheckboxKeyPress",value:function(ee){ee.which===32&&ee.preventDefault()}},{key:"onCheckboxKeyUp",value:function(ee){var L=ee.keyCode;[13,32].includes(L)&&this.onCheck()}},{key:"onClick",value:function(){var ee=this.props,L=ee.expandOnClick,H=ee.isParent,ie=ee.value,Oe=ee.onClick;H&&L&&this.onExpand(),Oe({value:ie,checked:this.getCheckState({toggle:!1})})}},{key:"onExpand",value:function(){var ee=this.props,L=ee.expanded,H=ee.value;(0,ee.onExpand)({value:H,expanded:!L})}},{key:"getCheckState",value:function(ee){var L=ee.toggle,H=this.props,ie=H.checked,Oe=H.optimisticToggle;return!(ie!==0||!L)||ie===1&&!L||ie===2&&Oe}},{key:"renderCollapseButton",value:function(){var ee=this.props,L=ee.expandDisabled,H=ee.isLeaf,ie=ee.lang;return H?E().createElement("span",{className:"rct-collapse"},E().createElement("span",{className:"rct-icon"})):E().createElement(C,{className:"rct-collapse rct-collapse-btn",disabled:L,title:ie.toggle,onClick:this.onExpand},this.renderCollapseIcon())}},{key:"renderCollapseIcon",value:function(){var ee=this.props,L=ee.expanded,H=ee.icons,ie=H.expandClose,Oe=H.expandOpen;return L?Oe:ie}},{key:"renderCheckboxIcon",value:function(){var ee=this.props,L=ee.checked,H=ee.icons,ie=H.uncheck,Oe=H.check,Me=H.halfCheck;return L===0?ie:L===1?Oe:Me}},{key:"renderNodeIcon",value:function(){var ee=this.props,L=ee.expanded,H=ee.icon,ie=ee.icons,Oe=ie.leaf,Me=ie.parentClose,lt=ie.parentOpen,I=ee.isLeaf;return H!==null?H:I?Oe:L?lt:Me}},{key:"renderBareLabel",value:function(ee){var L=this.props,H=L.onClick,ie=L.title,Oe=H!==null;return E().createElement("span",{className:"rct-bare-label",title:ie},Oe?E().createElement("span",{className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"button",tabIndex:0},ee):ee)}},{key:"renderCheckboxLabel",value:function(ee){var L=this.props,H=L.checked,ie=L.disabled,Oe=L.title,Me=L.treeId,lt=L.value,I=L.onClick!==null,J="".concat(Me,"-").concat(String(lt).split(" ").join("_")),fe=[E().createElement("label",{key:0,htmlFor:J,title:Oe},E().createElement(X,{checked:H===1,disabled:ie,id:J,indeterminate:H===2,onClick:this.onCheck,onChange:function(){}}),E().createElement("span",{"aria-checked":H===1,"aria-disabled":ie,className:"rct-checkbox",role:"checkbox",tabIndex:0,onKeyPress:this.onCheckboxKeyPress,onKeyUp:this.onCheckboxKeyUp},this.renderCheckboxIcon()),I?null:ee)];return I&&fe.push(E().createElement("span",{key:1,className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"link",tabIndex:0},ee)),fe}},{key:"renderLabel",value:function(){var ee=this.props,L=ee.label,H=ee.showCheckbox,ie=[ee.showNodeIcon?E().createElement("span",{key:0,className:"rct-node-icon"},this.renderNodeIcon()):null,E().createElement("span",{key:1,className:"rct-title"},L)];return H?this.renderCheckboxLabel(ie):this.renderBareLabel(ie)}},{key:"renderChildren",value:function(){return this.props.expanded?this.props.children:null}},{key:"render",value:function(){var ee=this.props,L=ee.className,H=ee.disabled,ie=ee.expanded,Oe=ee.isLeaf,Me=c()({"rct-node":!0,"rct-node-leaf":Oe,"rct-node-parent":!Oe,"rct-node-expanded":!Oe&&ie,"rct-node-collapsed":!Oe&&!ie,"rct-disabled":H},L);return E().createElement("li",{className:Me},E().createElement("span",{className:"rct-text"},this.renderCollapseButton(),this.renderLabel()),this.renderChildren())}}])&&de($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),je}(E().PureComponent);Ne(be,"propTypes",{checked:d().number.isRequired,disabled:d().bool.isRequired,expandDisabled:d().bool.isRequired,expanded:d().bool.isRequired,icons:Re.isRequired,isLeaf:d().bool.isRequired,isParent:d().bool.isRequired,label:d().node.isRequired,lang:z.isRequired,optimisticToggle:d().bool.isRequired,showNodeIcon:d().bool.isRequired,treeId:d().string.isRequired,value:d().oneOfType([d().string,d().number]).isRequired,onCheck:d().func.isRequired,onExpand:d().func.isRequired,children:d().node,className:d().string,expandOnClick:d().bool,icon:d().node,showCheckbox:d().bool,title:d().string,onClick:d().func}),Ne(be,"defaultProps",{children:null,className:null,expandOnClick:!1,icon:null,showCheckbox:!0,title:null,onClick:function(){}});const Fe=be,Ye=d().oneOfType([d().arrayOf(d().string),d().arrayOf(d().number)]);function ht(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(U);$&&(V=V.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,V)}return K}function Ct(U){for(var $=1;$<arguments.length;$++){var K=arguments[$]!=null?arguments[$]:{};$%2?ht(Object(K),!0).forEach(function(V){pt(U,V,K[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(K)):ht(Object(K)).forEach(function(V){Object.defineProperty(U,V,Object.getOwnPropertyDescriptor(K,V))})}return U}function pt(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var Ue={label:d().node.isRequired,value:d().oneOfType([d().string,d().number]).isRequired,disabled:d().bool,icon:d().node,showCheckbox:d().bool,title:d().string};const Be=d().oneOfType([d().shape(Ue),d().shape(Ct(Ct({},Ue),{},{children:d().arrayOf(Ue).isRequired}))]);function st(U){return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},st(U)}function De(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(U);$&&(V=V.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,V)}return K}function Ze(U){for(var $=1;$<arguments.length;$++){var K=arguments[$]!=null?arguments[$]:{};$%2?De(Object(K),!0).forEach(function(V){wt(U,V,K[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(K)):De(Object(K)).forEach(function(V){Object.defineProperty(U,V,Object.getOwnPropertyDescriptor(K,V))})}return U}function mt(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function ft(U,$){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,V){return K.__proto__=V,K},ft(U,$)}function Ee(U,$){if($&&(st($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ae(U)}function Ae(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function at(U){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},at(U)}function wt(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var St=function(U){(function(L,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(H&&H.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),H&&ft(L,H)})(ee,U);var $,K,V,Se,ke,je=(Se=ee,ke=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var L,H=at(Se);if(ke){var ie=at(this).constructor;L=Reflect.construct(H,arguments,ie)}else L=H.apply(this,arguments);return Ee(this,L)});function ee(L){var H;(function(Oe,Me){if(!(Oe instanceof Me))throw new TypeError("Cannot call a class as a function")})(this,ee),H=je.call(this,L);var ie=new Y(L);return ie.flattenNodes(L.nodes),ie.deserializeLists({checked:L.checked,expanded:L.expanded}),H.state={id:L.id||"rct-".concat(m()),model:ie,prevProps:L},H.onCheck=H.onCheck.bind(Ae(H)),H.onExpand=H.onExpand.bind(Ae(H)),H.onNodeClick=H.onNodeClick.bind(Ae(H)),H.onExpandAll=H.onExpandAll.bind(Ae(H)),H.onCollapseAll=H.onCollapseAll.bind(Ae(H)),H.combineMemorized=y()(function(Oe,Me){return Ze(Ze({},Oe),Me)}).bind(Ae(H)),H}return $=ee,K=[{key:"onCheck",value:function(L){var H=this.props,ie=H.checkModel,Oe=H.noCascade,Me=H.onCheck,lt=this.state.model.clone(),I=lt.getNode(L.value);lt.toggleChecked(L,L.checked,ie,Oe),Me(lt.serializeList("checked"),Ze(Ze({},I),L))}},{key:"onExpand",value:function(L){var H=this.props.onExpand,ie=this.state.model.clone(),Oe=ie.getNode(L.value);ie.toggleNode(L.value,"expanded",L.expanded),H(ie.serializeList("expanded"),Ze(Ze({},Oe),L))}},{key:"onNodeClick",value:function(L){(0,this.props.onClick)(Ze(Ze({},this.state.model.getNode(L.value)),L))}},{key:"onExpandAll",value:function(){this.expandAllNodes()}},{key:"onCollapseAll",value:function(){this.expandAllNodes(!1)}},{key:"expandAllNodes",value:function(){var L=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],H=this.props.onExpand;H(this.state.model.clone().expandAllNodes(L).serializeList("expanded"))}},{key:"determineShallowCheckState",value:function(L,H){var ie=this.state.model.getNode(L.value);return ie.isLeaf||H||L.children.length===0?ie.checked?1:0:this.isEveryChildChecked(L)?1:this.isSomeChildChecked(L)?2:0}},{key:"isEveryChildChecked",value:function(L){var H=this;return L.children.every(function(ie){return H.state.model.getNode(ie.value).checkState===1})}},{key:"isSomeChildChecked",value:function(L){var H=this;return L.children.some(function(ie){return H.state.model.getNode(ie.value).checkState>0})}},{key:"renderTreeNodes",value:function(L){var H=this,ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=this.props,Me=Oe.expandDisabled,lt=Oe.expandOnClick,I=Oe.icons,J=Oe.lang,fe=Oe.noCascade,F=Oe.onClick,q=Oe.onlyLeafCheckboxes,re=Oe.optimisticToggle,me=Oe.showNodeTitle,ge=Oe.showNodeIcon,Ie=this.state,Pe=Ie.id,ze=Ie.model,Et=ee.defaultProps.icons,Rr=L.map(function(vt){var _t=vt.value,It=ze.getNode(vt.value),Mr=It.isParent?H.renderTreeNodes(vt.children,vt):null;It.checkState=H.determineShallowCheckState(vt,fe);var Kr=q?It.isLeaf:It.showCheckbox;return!ie.value||ze.getNode(ie.value).expanded?E().createElement(Fe,{key:_t,checked:It.checkState,className:vt.className,disabled:It.disabled,expandDisabled:Me,expandOnClick:lt,expanded:It.expanded,icon:vt.icon,icons:H.combineMemorized(Et,I),label:vt.label,lang:J,optimisticToggle:re,isLeaf:It.isLeaf,isParent:It.isParent,showCheckbox:Kr,showNodeIcon:ge,title:me?vt.title||vt.label:vt.title,treeId:Pe,value:vt.value,onCheck:H.onCheck,onClick:F&&H.onNodeClick,onExpand:H.onExpand},Mr):null});return E().createElement("ol",null,Rr)}},{key:"renderExpandAll",value:function(){var L=this.props,H=L.icons,ie=H.expandAll,Oe=H.collapseAll,Me=L.lang;return L.showExpandAll?E().createElement("div",{className:"rct-options"},E().createElement(C,{className:"rct-option rct-option-expand-all",title:Me.expandAll,onClick:this.onExpandAll},ie),E().createElement(C,{className:"rct-option rct-option-collapse-all",title:Me.collapseAll,onClick:this.onCollapseAll},Oe)):null}},{key:"renderHiddenInput",value:function(){var L=this.props,H=L.name,ie=L.nameAsArray;return H===void 0?null:ie?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var L=this.props,H=L.checked,ie=L.name;return H.map(function(Oe){var Me="".concat(ie,"[]");return E().createElement("input",{key:Oe,name:Me,type:"hidden",value:Oe})})}},{key:"renderJoinedHiddenInput",value:function(){var L=this.props,H=L.checked,ie=L.name,Oe=H.join(",");return E().createElement("input",{name:ie,type:"hidden",value:Oe})}},{key:"render",value:function(){var L,H=this.props,ie=H.direction,Oe=H.disabled,Me=H.iconsClass,lt=H.nodes,I=H.nativeCheckboxes,J=this.state.id,fe=this.renderTreeNodes(lt),F=c()((wt(L={"react-checkbox-tree":!0,"rct-disabled":Oe},"rct-icons-".concat(Me),!0),wt(L,"rct-native-display",I),wt(L,"rct-direction-rtl",ie==="rtl"),L));return E().createElement("div",{className:F,id:J},this.renderExpandAll(),this.renderHiddenInput(),fe)}}],V=[{key:"getDerivedStateFromProps",value:function(L,H){var ie=H.model,Oe=H.prevProps,Me=L.disabled,lt=L.id,I=L.nodes,J=Ze(Ze({},H),{},{prevProps:L});return ie.setProps(L),f()(Oe.nodes,I)&&Oe.disabled===Me||(ie.reset(),ie.flattenNodes(I)),lt!==null&&(J=Ze(Ze({},J),{},{id:lt})),ie.deserializeLists({checked:L.checked,expanded:L.expanded}),J}}],K&&mt($.prototype,K),V&&mt($,V),Object.defineProperty($,"prototype",{writable:!1}),ee}(E().Component);function Bt(U){return function($){if(Array.isArray($))return Rt($)}(U)||function($){if(typeof Symbol<"u"&&$[Symbol.iterator]!=null||$["@@iterator"]!=null)return Array.from($)}(U)||function($,K){if($){if(typeof $=="string")return Rt($,K);var V=Object.prototype.toString.call($).slice(8,-1);return V==="Object"&&$.constructor&&(V=$.constructor.name),V==="Map"||V==="Set"?Array.from($):V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V)?Rt($,K):void 0}}(U)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
214
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Rt(U,$){($==null||$>U.length)&&($=U.length);for(var K=0,V=new Array($);K<$;K++)V[K]=U[K];return V}function Yt(U,$){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(K>$)return[];var V=[];return U.forEach(function(Se){Se.children&&(V=[].concat(Bt(V),[Se.value],Bt(Yt(Se.children,$,K+1))))}),V}wt(St,"propTypes",{nodes:d().arrayOf(Be).isRequired,checkModel:d().oneOf([_.LEAF,_.ALL]),checked:Ye,direction:d().string,disabled:d().bool,expandDisabled:d().bool,expandOnClick:d().bool,expanded:Ye,icons:Re,iconsClass:d().string,id:d().string,lang:z,name:d().string,nameAsArray:d().bool,nativeCheckboxes:d().bool,noCascade:d().bool,onlyLeafCheckboxes:d().bool,optimisticToggle:d().bool,showExpandAll:d().bool,showNodeIcon:d().bool,showNodeTitle:d().bool,onCheck:d().func,onClick:d().func,onExpand:d().func}),wt(St,"defaultProps",{checkModel:_.LEAF,checked:[],direction:"ltr",disabled:!1,expandDisabled:!1,expandOnClick:!1,expanded:[],icons:{check:E().createElement("span",{className:"rct-icon rct-icon-check"}),uncheck:E().createElement("span",{className:"rct-icon rct-icon-uncheck"}),halfCheck:E().createElement("span",{className:"rct-icon rct-icon-half-check"}),expandClose:E().createElement("span",{className:"rct-icon rct-icon-expand-close"}),expandOpen:E().createElement("span",{className:"rct-icon rct-icon-expand-open"}),expandAll:E().createElement("span",{className:"rct-icon rct-icon-expand-all"}),collapseAll:E().createElement("span",{className:"rct-icon rct-icon-collapse-all"}),parentClose:E().createElement("span",{className:"rct-icon rct-icon-parent-close"}),parentOpen:E().createElement("span",{className:"rct-icon rct-icon-parent-open"}),leaf:E().createElement("span",{className:"rct-icon rct-icon-leaf"})},iconsClass:"fa4",id:null,lang:{collapseAll:"Collapse all",expandAll:"Expand all",toggle:"Toggle"},name:void 0,nameAsArray:!1,nativeCheckboxes:!1,noCascade:!1,onlyLeafCheckboxes:!1,optimisticToggle:!0,showExpandAll:!1,showNodeIcon:!0,showNodeTitle:!1,onCheck:function(){},onClick:null,onExpand:function(){}});const Xt=St})(),l})())}(nc)),nc.exports}var mC=hC();const gC=ir(mC),yC=Pt(A.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),vC=Pt(A.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank"),sm=Pt(A.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10H7v-2h10z"}),"IndeterminateCheckBox"),bC=Pt(A.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),xC=Pt(A.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),OC=Pt(A.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox"),EC=Pt(A.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder"),CC=Pt(A.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),SC=Pt(A.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile");var si={};/*!
|
|
215
|
+
* cookie
|
|
216
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
217
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
218
|
+
* MIT Licensed
|
|
219
|
+
*/var lm;function TC(){if(lm)return si;lm=1,si.parse=l,si.serialize=u;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,n=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function l(m,x){if(typeof m!="string")throw new TypeError("argument str must be a string");var d={},v=m.length;if(v<2)return d;var E=x&&x.decode||f,R=0,S=0,T=0;do{if(S=m.indexOf("=",R),S===-1)break;if(T=m.indexOf(";",R),T===-1)T=v;else if(S>T){R=m.lastIndexOf(";",S-1)+1;continue}var w=s(m,R,S),N=c(m,S,w),M=m.slice(w,N);if(!t.call(d,M)){var O=s(m,S+1,T),g=c(m,T,O);m.charCodeAt(O)===34&&m.charCodeAt(g-1)===34&&(O++,g--);var p=m.slice(O,g);d[M]=y(p,E)}R=T+1}while(R<v);return d}function s(m,x,d){do{var v=m.charCodeAt(x);if(v!==32&&v!==9)return x}while(++x<d);return d}function c(m,x,d){for(;x>d;){var v=m.charCodeAt(--x);if(v!==32&&v!==9)return x+1}return d}function u(m,x,d){var v=d&&d.encode||encodeURIComponent;if(typeof v!="function")throw new TypeError("option encode is invalid");if(!r.test(m))throw new TypeError("argument name is invalid");var E=v(x);if(!n.test(E))throw new TypeError("argument val is invalid");var R=m+"="+E;if(!d)return R;if(d.maxAge!=null){var S=Math.floor(d.maxAge);if(!isFinite(S))throw new TypeError("option maxAge is invalid");R+="; Max-Age="+S}if(d.domain){if(!i.test(d.domain))throw new TypeError("option domain is invalid");R+="; Domain="+d.domain}if(d.path){if(!a.test(d.path))throw new TypeError("option path is invalid");R+="; Path="+d.path}if(d.expires){var T=d.expires;if(!h(T)||isNaN(T.valueOf()))throw new TypeError("option expires is invalid");R+="; Expires="+T.toUTCString()}if(d.httpOnly&&(R+="; HttpOnly"),d.secure&&(R+="; Secure"),d.partitioned&&(R+="; Partitioned"),d.priority){var w=typeof d.priority=="string"?d.priority.toLowerCase():d.priority;switch(w){case"low":R+="; Priority=Low";break;case"medium":R+="; Priority=Medium";break;case"high":R+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(d.sameSite){var N=typeof d.sameSite=="string"?d.sameSite.toLowerCase():d.sameSite;switch(N){case!0:R+="; SameSite=Strict";break;case"lax":R+="; SameSite=Lax";break;case"strict":R+="; SameSite=Strict";break;case"none":R+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return R}function f(m){return m.indexOf("%")!==-1?decodeURIComponent(m):m}function h(m){return e.call(m)==="[object Date]"}function y(m,x){try{return x(m)}catch{return m}}return si}var li=TC();function wC(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function RC(e){return typeof e=="string"?li.parse(e):typeof e=="object"&&e!==null?e:{}}function oc(e,t={}){const r=_C(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function _C(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class cm{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=li.parse(document.cookie),this._checkChanges(i)};const n=typeof document>"u"?"":document.cookie;this.cookies=RC(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=wC()}_emitChange(t){for(let r=0;r<this.changeListeners.length;++r)this.changeListeners[r](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:oc(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),oc(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=oc(this.cookies[n],t);return r}set(t,r,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const i=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=li.serialize(t,i,n)),this._emitChange({name:t,value:r,options:n})}remove(t,r){const n=r=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),r),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=li.serialize(t,"",n)),this._emitChange({name:t,value:void 0,options:r})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const r=this.changeListeners.indexOf(t);r>=0&&this.changeListeners.splice(r,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function PC(e){const{model:t,form:r,value:n,error:i,setDefault:a,onChangeValidate:l}=e,{key:s,title:c,action:u}=r;a(s,t,r,n);const[f,h]=we.useState(n||[]),[y,m]=we.useState([]),[x,d]=we.useState([]);we.useEffect(()=>{l(f)},[f]);const v=R=>{const S=new cm,T={"Content-Type":"application/json"};S.get("csrf")&&Object.assign(T,{"X-CSRF-TOKEN":S.get("csrf")}),fetch(R,{headers:T,credentials:"include"}).then(w=>w.ok?w.json():w.text().then(N=>{throw new Error(N)})).then(w=>{d(w)}).catch(w=>{console.error(w)})};we.useEffect(()=>{const{url:R}=u;v(R)},[]);const E={check:A.jsx(yC,{className:"rct-icon rct-icon-check"}),uncheck:A.jsx(vC,{className:"rct-icon rct-icon-uncheck"}),halfCheck:A.jsx(sm,{className:"rct-icon rct-icon-half-check"}),expandClose:A.jsx(bC,{className:"rct-icon rct-icon-expand-close"}),expandOpen:A.jsx(xC,{className:"rct-icon rct-icon-expand-open"}),expandAll:A.jsx(OC,{className:"rct-icon rct-icon-expand-all"}),collapseAll:A.jsx(sm,{className:"rct-icon rct-icon-collapse-all"}),parentClose:A.jsx(EC,{className:"rct-icon rct-icon-parent-close"}),parentOpen:A.jsx(CC,{className:"rct-icon rct-icon-parent-open"}),leaf:A.jsx(SC,{className:"rct-icon rct-icon-leaf-close"})};return A.jsxs(we.Fragment,{children:[A.jsx(Nr,{required:r.required,children:c}),A.jsx(gC,{nodes:x,checked:f,expanded:y,onCheck:R=>h(R),onExpand:R=>m(R),icons:E,noCascade:!0}),i?A.jsx(Ln,{error:!0,children:i}):null]})}const IC=jt(PC);function um(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function kC(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:i="any",stringify:a,trim:l=!1}=e;return(s,{inputValue:c,getOptionLabel:u})=>{let f=l?c.trim():c;r&&(f=f.toLowerCase()),t&&(f=um(f));const h=f?s.filter(y=>{let m=(a||u)(y);return r&&(m=m.toLowerCase()),t&&(m=um(m)),i==="start"?m.startsWith(f):m.includes(f)}):s;return typeof n=="number"?h.slice(0,n):h}}const jC=kC(),pm=5,AC=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},NC=[];function $C(e){const{unstable_isActiveElementInListbox:t=AC,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:l=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:f=e.multiple?NC:null,disableClearable:h=!1,disableCloseOnSelect:y=!1,disabled:m,disabledItemsFocusable:x=!1,disableListWrap:d=!1,filterOptions:v=jC,filterSelectedOptions:E=!1,freeSolo:R=!1,getOptionDisabled:S,getOptionKey:T,getOptionLabel:w=F=>F.label??F,groupBy:N,handleHomeEndKeys:M=!e.freeSolo,id:O,includeInputInList:g=!1,inputValue:p,isOptionEqualToValue:b=(F,q)=>F===q,multiple:C=!1,onChange:_,onClose:P,onHighlightChange:k,onInputChange:D,onOpen:W,open:Z,openOnFocus:G=!1,options:B,readOnly:Y=!1,selectOnFocus:ae=!e.freeSolo,value:oe}=e,ne=vo(O);let ue=w;ue=F=>{const q=w(F);if(typeof q!="string"){if(process.env.NODE_ENV!=="production"){const re=q===void 0?"undefined":`${typeof q} (${q})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${re} instead of a string for ${JSON.stringify(F)}.`)}return String(q)}return q};const ce=j.useRef(!1),ye=j.useRef(!0),se=j.useRef(null),le=j.useRef(null),[te,ve]=j.useState(null),[X,Re]=j.useState(-1),z=i?0:-1,pe=j.useRef(z),[de,Ce]=qr({controlled:oe,default:f,name:u}),[Te,$e]=qr({controlled:p,default:"",name:u,state:"inputValue"}),[He,Ne]=j.useState(!1),be=j.useCallback((F,q,re)=>{if(!(C?de.length<q.length:q!==null)&&!s)return;let ge;if(C)ge="";else if(q==null)ge="";else{const Ie=ue(q);ge=typeof Ie=="string"?Ie:""}Te!==ge&&($e(ge),D&&D(F,ge,re))},[ue,Te,C,D,$e,s,de]),[Fe,Ye]=qr({controlled:Z,default:!1,name:u,state:"open"}),[ht,Ct]=j.useState(!0),pt=!C&&de!=null&&Te===ue(de),Ue=Fe&&!Y,Be=Ue?v(B.filter(F=>!(E&&(C?de:[de]).some(q=>q!==null&&b(F,q)))),{inputValue:pt&&ht?"":Te,getOptionLabel:ue}):[],st=kb({filteredOptions:Be,value:de,inputValue:Te});j.useEffect(()=>{const F=de!==st.value;He&&!F||R&&!F||be(null,de,"reset")},[de,be,He,st.value,R]);const De=Fe&&Be.length>0&&!Y,Ze=pr(F=>{F===-1?se.current.focus():te.querySelector(`[data-tag-index="${F}"]`).focus()});j.useEffect(()=>{C&&X>de.length-1&&(Re(-1),Ze(-1))},[de,C,X,Ze]);function mt(F,q){if(!le.current||F<0||F>=Be.length)return-1;let re=F;for(;;){const me=le.current.querySelector(`[data-option-index="${re}"]`),ge=x?!1:!me||me.disabled||me.getAttribute("aria-disabled")==="true";if(me&&me.hasAttribute("tabindex")&&!ge)return re;if(q==="next"?re=(re+1)%Be.length:re=(re-1+Be.length)%Be.length,re===F)return-1}}const ft=pr(({event:F,index:q,reason:re="auto"})=>{if(pe.current=q,q===-1?se.current.removeAttribute("aria-activedescendant"):se.current.setAttribute("aria-activedescendant",`${ne}-option-${q}`),k&&k(F,q===-1?null:Be[q],re),!le.current)return;const me=le.current.querySelector(`[role="option"].${r}-focused`);me&&(me.classList.remove(`${r}-focused`),me.classList.remove(`${r}-focusVisible`));let ge=le.current;if(le.current.getAttribute("role")!=="listbox"&&(ge=le.current.parentElement.querySelector('[role="listbox"]')),!ge)return;if(q===-1){ge.scrollTop=0;return}const Ie=le.current.querySelector(`[data-option-index="${q}"]`);if(Ie&&(Ie.classList.add(`${r}-focused`),re==="keyboard"&&Ie.classList.add(`${r}-focusVisible`),ge.scrollHeight>ge.clientHeight&&re!=="mouse"&&re!=="touch")){const Pe=Ie,ze=ge.clientHeight+ge.scrollTop,Et=Pe.offsetTop+Pe.offsetHeight;Et>ze?ge.scrollTop=Et-ge.clientHeight:Pe.offsetTop-Pe.offsetHeight*(N?1.3:0)<ge.scrollTop&&(ge.scrollTop=Pe.offsetTop-Pe.offsetHeight*(N?1.3:0))}}),Ee=pr(({event:F,diff:q,direction:re="next",reason:me="auto"})=>{if(!Ue)return;const Ie=mt((()=>{const Pe=Be.length-1;if(q==="reset")return z;if(q==="start")return 0;if(q==="end")return Pe;const ze=pe.current+q;return ze<0?ze===-1&&g?-1:d&&pe.current!==-1||Math.abs(q)>1?0:Pe:ze>Pe?ze===Pe+1&&g?-1:d||Math.abs(q)>1?Pe:0:ze})(),re);if(ft({index:Ie,reason:me,event:F}),n&&q!=="reset")if(Ie===-1)se.current.value=Te;else{const Pe=ue(Be[Ie]);se.current.value=Pe,Pe.toLowerCase().indexOf(Te.toLowerCase())===0&&Te.length>0&&se.current.setSelectionRange(Te.length,Pe.length)}}),Ae=()=>{const F=(q,re)=>{const me=q?ue(q):"",ge=re?ue(re):"";return me===ge};if(pe.current!==-1&&st.filteredOptions&&st.filteredOptions.length!==Be.length&&st.inputValue===Te&&(C?de.length===st.value.length&&st.value.every((q,re)=>ue(de[re])===ue(q)):F(st.value,de))){const q=st.filteredOptions[pe.current];if(q)return Be.findIndex(re=>ue(re)===ue(q))}return-1},at=j.useCallback(()=>{if(!Ue)return;const F=Ae();if(F!==-1){pe.current=F;return}const q=C?de[0]:de;if(Be.length===0||q==null){Ee({diff:"reset"});return}if(le.current){if(q!=null){const re=Be[pe.current];if(C&&re&&de.findIndex(ge=>b(re,ge))!==-1)return;const me=Be.findIndex(ge=>b(ge,q));me===-1?Ee({diff:"reset"}):ft({index:me});return}if(pe.current>=Be.length-1){ft({index:Be.length-1});return}ft({index:pe.current})}},[Be.length,C?!1:de,E,Ee,ft,Ue,Te,C]),wt=pr(F=>{Do(le,F),F&&at()});process.env.NODE_ENV!=="production"&&j.useEffect(()=>{(!se.current||se.current.nodeName!=="INPUT")&&(se.current&&se.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
220
|
+
`)):console.error([`MUI: Unable to find the input element. It was resolved to ${se.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"",u==="useAutocomplete"?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join(`
|
|
221
|
+
`)))},[u]),j.useEffect(()=>{at()},[at]);const St=F=>{Fe||(Ye(!0),Ct(!0),W&&W(F))},Bt=(F,q)=>{Fe&&(Ye(!1),P&&P(F,q))},Rt=(F,q,re,me)=>{if(C){if(de.length===q.length&&de.every((ge,Ie)=>ge===q[Ie]))return}else if(de===q)return;_&&_(F,q,re,me),Ce(q)},Yt=j.useRef(!1),Xt=(F,q,re="selectOption",me="options")=>{let ge=re,Ie=q;if(C){if(Ie=Array.isArray(de)?de.slice():[],process.env.NODE_ENV!=="production"){const ze=Ie.filter(Et=>b(q,Et));ze.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${ze.length} matches.`].join(`
|
|
222
|
+
`))}const Pe=Ie.findIndex(ze=>b(q,ze));Pe===-1?Ie.push(q):me!=="freeSolo"&&(Ie.splice(Pe,1),ge="removeOption")}be(F,Ie,ge),Rt(F,Ie,ge,{option:q}),!y&&(!F||!F.ctrlKey&&!F.metaKey)&&Bt(F,ge),(l===!0||l==="touch"&&Yt.current||l==="mouse"&&!Yt.current)&&se.current.blur()};function U(F,q){if(F===-1)return-1;let re=F;for(;;){if(q==="next"&&re===de.length||q==="previous"&&re===-1)return-1;const me=te.querySelector(`[data-tag-index="${re}"]`);if(!me||!me.hasAttribute("tabindex")||me.disabled||me.getAttribute("aria-disabled")==="true")re+=q==="next"?1:-1;else return re}}const $=(F,q)=>{if(!C)return;Te===""&&Bt(F,"toggleInput");let re=X;X===-1?Te===""&&q==="previous"&&(re=de.length-1):(re+=q==="next"?1:-1,re<0&&(re=0),re===de.length&&(re=-1)),re=U(re,q),Re(re),Ze(re)},K=F=>{ce.current=!0,$e(""),D&&D(F,"","clear"),Rt(F,C?[]:null,"clear")},V=F=>q=>{if(F.onKeyDown&&F.onKeyDown(q),!q.defaultMuiPrevented&&(X!==-1&&!["ArrowLeft","ArrowRight"].includes(q.key)&&(Re(-1),Ze(-1)),q.which!==229))switch(q.key){case"Home":Ue&&M&&(q.preventDefault(),Ee({diff:"start",direction:"next",reason:"keyboard",event:q}));break;case"End":Ue&&M&&(q.preventDefault(),Ee({diff:"end",direction:"previous",reason:"keyboard",event:q}));break;case"PageUp":q.preventDefault(),Ee({diff:-pm,direction:"previous",reason:"keyboard",event:q}),St(q);break;case"PageDown":q.preventDefault(),Ee({diff:pm,direction:"next",reason:"keyboard",event:q}),St(q);break;case"ArrowDown":q.preventDefault(),Ee({diff:1,direction:"next",reason:"keyboard",event:q}),St(q);break;case"ArrowUp":q.preventDefault(),Ee({diff:-1,direction:"previous",reason:"keyboard",event:q}),St(q);break;case"ArrowLeft":$(q,"previous");break;case"ArrowRight":$(q,"next");break;case"Enter":if(pe.current!==-1&&Ue){const re=Be[pe.current],me=S?S(re):!1;if(q.preventDefault(),me)return;Xt(q,re,"selectOption"),n&&se.current.setSelectionRange(se.current.value.length,se.current.value.length)}else R&&Te!==""&&pt===!1&&(C&&q.preventDefault(),Xt(q,Te,"createOption","freeSolo"));break;case"Escape":Ue?(q.preventDefault(),q.stopPropagation(),Bt(q,"escape")):c&&(Te!==""||C&&de.length>0)&&(q.preventDefault(),q.stopPropagation(),K(q));break;case"Backspace":if(C&&!Y&&Te===""&&de.length>0){const re=X===-1?de.length-1:X,me=de.slice();me.splice(re,1),Rt(q,me,"removeOption",{option:de[re]})}break;case"Delete":if(C&&!Y&&Te===""&&de.length>0&&X!==-1){const re=X,me=de.slice();me.splice(re,1),Rt(q,me,"removeOption",{option:de[re]})}break}},Se=F=>{Ne(!0),G&&!ce.current&&St(F)},ke=F=>{if(t(le)){se.current.focus();return}Ne(!1),ye.current=!0,ce.current=!1,a&&pe.current!==-1&&Ue?Xt(F,Be[pe.current],"blur"):a&&R&&Te!==""?Xt(F,Te,"blur","freeSolo"):s&&be(F,de,"blur"),Bt(F,"blur")},je=F=>{const q=F.target.value;Te!==q&&($e(q),Ct(!1),D&&D(F,q,"input")),q===""?!h&&!C&&Rt(F,null,"clear"):St(F)},ee=F=>{const q=Number(F.currentTarget.getAttribute("data-option-index"));pe.current!==q&&ft({event:F,index:q,reason:"mouse"})},L=F=>{ft({event:F,index:Number(F.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Yt.current=!0},H=F=>{const q=Number(F.currentTarget.getAttribute("data-option-index"));Xt(F,Be[q],"selectOption"),Yt.current=!1},ie=F=>q=>{const re=de.slice();re.splice(F,1),Rt(q,re,"removeOption",{option:de[F]})},Oe=F=>{Fe?Bt(F,"toggleInput"):St(F)},Me=F=>{F.currentTarget.contains(F.target)&&F.target.getAttribute("id")!==ne&&F.preventDefault()},lt=F=>{F.currentTarget.contains(F.target)&&(se.current.focus(),ae&&ye.current&&se.current.selectionEnd-se.current.selectionStart===0&&se.current.select(),ye.current=!1)},I=F=>{!m&&(Te===""||!Fe)&&Oe(F)};let J=R&&Te.length>0;J=J||(C?de.length>0:de!==null);let fe=Be;if(N){const F=new Map;let q=!1;fe=Be.reduce((re,me,ge)=>{const Ie=N(me);return re.length>0&&re[re.length-1].group===Ie?re[re.length-1].options.push(me):(process.env.NODE_ENV!=="production"&&(F.get(Ie)&&!q&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),q=!0),F.set(Ie,!0)),re.push({key:ge,index:ge,group:Ie,options:[me]})),re},[])}return m&&He&&ke(),{getRootProps:(F={})=>({"aria-owns":De?`${ne}-listbox`:null,...F,onKeyDown:V(F),onMouseDown:Me,onClick:lt}),getInputLabelProps:()=>({id:`${ne}-label`,htmlFor:ne}),getInputProps:()=>({id:ne,value:Te,onBlur:ke,onFocus:Se,onChange:je,onMouseDown:I,"aria-activedescendant":Ue?"":null,"aria-autocomplete":n?"both":"list","aria-controls":De?`${ne}-listbox`:void 0,"aria-expanded":De,autoComplete:"off",ref:se,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:K}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oe}),getTagProps:({index:F})=>({key:F,"data-tag-index":F,tabIndex:-1,...!Y&&{onDelete:ie(F)}}),getListboxProps:()=>({role:"listbox",id:`${ne}-listbox`,"aria-labelledby":`${ne}-label`,ref:wt,onMouseDown:F=>{F.preventDefault()}}),getOptionProps:({index:F,option:q})=>{const re=(C?de:[de]).some(ge=>ge!=null&&b(q,ge)),me=S?S(q):!1;return{key:(T==null?void 0:T(q))??ue(q),tabIndex:-1,role:"option",id:`${ne}-option-${F}`,onMouseMove:ee,onClick:H,onTouchStart:L,"data-option-index":F,"aria-disabled":me,"aria-selected":re}},id:ne,inputValue:Te,value:de,dirty:J,expanded:Ue&&te,popupOpen:Ue,focused:He||X!==-1,anchorEl:te,setAnchorEl:ve,focusedTag:X,groupedOptions:fe}}var zt="top",rr="bottom",nr="right",Vt="left",ic="auto",Jn=[zt,rr,nr,Vt],un="start",Qn="end",MC="clippingParents",fm="viewport",Zn="popper",DC="reference",dm=Jn.reduce(function(e,t){return e.concat([t+"-"+un,t+"-"+Qn])},[]),hm=[].concat(Jn,[ic]).reduce(function(e,t){return e.concat([t,t+"-"+un,t+"-"+Qn])},[]),LC="beforeRead",FC="read",BC="afterRead",qC="beforeMain",zC="main",VC="afterMain",UC="beforeWrite",WC="write",HC="afterWrite",GC=[LC,FC,BC,qC,zC,VC,UC,WC,HC];function yr(e){return e?(e.nodeName||"").toLowerCase():null}function Kt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hr(e){var t=Kt(e).Element;return e instanceof t||e instanceof Element}function or(e){var t=Kt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ac(e){if(typeof ShadowRoot>"u")return!1;var t=Kt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function KC(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!or(a)||!yr(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(l){var s=i[l];s===!1?a.removeAttribute(l):a.setAttribute(l,s===!0?"":s)}))})}function YC(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=l.reduce(function(c,u){return c[u]="",c},{});!or(i)||!yr(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(c){i.removeAttribute(c)}))})}}const XC={name:"applyStyles",enabled:!0,phase:"write",fn:KC,effect:YC,requires:["computeStyles"]};function vr(e){return e.split("-")[0]}var Gr=Math.max,ci=Math.min,pn=Math.round;function sc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function mm(){return!/^((?!chrome|android).)*safari/i.test(sc())}function fn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&or(e)&&(i=e.offsetWidth>0&&pn(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&pn(n.height)/e.offsetHeight||1);var l=Hr(e)?Kt(e):window,s=l.visualViewport,c=!mm()&&r,u=(n.left+(c&&s?s.offsetLeft:0))/i,f=(n.top+(c&&s?s.offsetTop:0))/a,h=n.width/i,y=n.height/a;return{width:h,height:y,top:f,right:u+h,bottom:f+y,left:u,x:u,y:f}}function lc(e){var t=fn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function gm(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ac(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function wr(e){return Kt(e).getComputedStyle(e)}function JC(e){return["table","td","th"].indexOf(yr(e))>=0}function $r(e){return((Hr(e)?e.ownerDocument:e.document)||window.document).documentElement}function ui(e){return yr(e)==="html"?e:e.assignedSlot||e.parentNode||(ac(e)?e.host:null)||$r(e)}function ym(e){return!or(e)||wr(e).position==="fixed"?null:e.offsetParent}function QC(e){var t=/firefox/i.test(sc()),r=/Trident/i.test(sc());if(r&&or(e)){var n=wr(e);if(n.position==="fixed")return null}var i=ui(e);for(ac(i)&&(i=i.host);or(i)&&["html","body"].indexOf(yr(i))<0;){var a=wr(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function eo(e){for(var t=Kt(e),r=ym(e);r&&JC(r)&&wr(r).position==="static";)r=ym(r);return r&&(yr(r)==="html"||yr(r)==="body"&&wr(r).position==="static")?t:r||QC(e)||t}function cc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function to(e,t,r){return Gr(e,ci(t,r))}function ZC(e,t,r){var n=to(e,t,r);return n>r?r:n}function vm(){return{top:0,right:0,bottom:0,left:0}}function bm(e){return Object.assign({},vm(),e)}function xm(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var e1=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,bm(typeof t!="number"?t:xm(t,Jn))};function t1(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,s=vr(r.placement),c=cc(s),u=[Vt,nr].indexOf(s)>=0,f=u?"height":"width";if(!(!a||!l)){var h=e1(i.padding,r),y=lc(a),m=c==="y"?zt:Vt,x=c==="y"?rr:nr,d=r.rects.reference[f]+r.rects.reference[c]-l[c]-r.rects.popper[f],v=l[c]-r.rects.reference[c],E=eo(a),R=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,S=d/2-v/2,T=h[m],w=R-y[f]-h[x],N=R/2-y[f]/2+S,M=to(T,N,w),O=c;r.modifiersData[n]=(t={},t[O]=M,t.centerOffset=M-N,t)}}function r1(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||gm(t.elements.popper,i)&&(t.elements.arrow=i))}const n1={name:"arrow",enabled:!0,phase:"main",fn:t1,effect:r1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dn(e){return e.split("-")[1]}var o1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i1(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:pn(r*i)/i||0,y:pn(n*i)/i||0}}function Om(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,l=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,h=e.isFixed,y=l.x,m=y===void 0?0:y,x=l.y,d=x===void 0?0:x,v=typeof f=="function"?f({x:m,y:d}):{x:m,y:d};m=v.x,d=v.y;var E=l.hasOwnProperty("x"),R=l.hasOwnProperty("y"),S=Vt,T=zt,w=window;if(u){var N=eo(r),M="clientHeight",O="clientWidth";if(N===Kt(r)&&(N=$r(r),wr(N).position!=="static"&&s==="absolute"&&(M="scrollHeight",O="scrollWidth")),N=N,i===zt||(i===Vt||i===nr)&&a===Qn){T=rr;var g=h&&N===w&&w.visualViewport?w.visualViewport.height:N[M];d-=g-n.height,d*=c?1:-1}if(i===Vt||(i===zt||i===rr)&&a===Qn){S=nr;var p=h&&N===w&&w.visualViewport?w.visualViewport.width:N[O];m-=p-n.width,m*=c?1:-1}}var b=Object.assign({position:s},u&&o1),C=f===!0?i1({x:m,y:d},Kt(r)):{x:m,y:d};if(m=C.x,d=C.y,c){var _;return Object.assign({},b,(_={},_[T]=R?"0":"",_[S]=E?"0":"",_.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+d+"px)":"translate3d("+m+"px, "+d+"px, 0)",_))}return Object.assign({},b,(t={},t[T]=R?d+"px":"",t[S]=E?m+"px":"",t.transform="",t))}function a1(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,l=a===void 0?!0:a,s=r.roundOffsets,c=s===void 0?!0:s,u={placement:vr(t.placement),variation:dn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Om(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Om(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const s1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:a1,data:{}};var pi={passive:!0};function l1(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,l=n.resize,s=l===void 0?!0:l,c=Kt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(f){f.addEventListener("scroll",r.update,pi)}),s&&c.addEventListener("resize",r.update,pi),function(){a&&u.forEach(function(f){f.removeEventListener("scroll",r.update,pi)}),s&&c.removeEventListener("resize",r.update,pi)}}const c1={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:l1,data:{}};var u1={left:"right",right:"left",bottom:"top",top:"bottom"};function fi(e){return e.replace(/left|right|bottom|top/g,function(t){return u1[t]})}var p1={start:"end",end:"start"};function Em(e){return e.replace(/start|end/g,function(t){return p1[t]})}function uc(e){var t=Kt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function pc(e){return fn($r(e)).left+uc(e).scrollLeft}function f1(e,t){var r=Kt(e),n=$r(e),i=r.visualViewport,a=n.clientWidth,l=n.clientHeight,s=0,c=0;if(i){a=i.width,l=i.height;var u=mm();(u||!u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:l,x:s+pc(e),y:c}}function d1(e){var t,r=$r(e),n=uc(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Gr(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=Gr(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+pc(e),c=-n.scrollTop;return wr(i||r).direction==="rtl"&&(s+=Gr(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:l,x:s,y:c}}function fc(e){var t=wr(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Cm(e){return["html","body","#document"].indexOf(yr(e))>=0?e.ownerDocument.body:or(e)&&fc(e)?e:Cm(ui(e))}function ro(e,t){var r;t===void 0&&(t=[]);var n=Cm(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Kt(n),l=i?[a].concat(a.visualViewport||[],fc(n)?n:[]):n,s=t.concat(l);return i?s:s.concat(ro(ui(l)))}function dc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function h1(e,t){var r=fn(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Sm(e,t,r){return t===fm?dc(f1(e,r)):Hr(t)?h1(t,r):dc(d1($r(e)))}function m1(e){var t=ro(ui(e)),r=["absolute","fixed"].indexOf(wr(e).position)>=0,n=r&&or(e)?eo(e):e;return Hr(n)?t.filter(function(i){return Hr(i)&&gm(i,n)&&yr(i)!=="body"}):[]}function g1(e,t,r,n){var i=t==="clippingParents"?m1(e):[].concat(t),a=[].concat(i,[r]),l=a[0],s=a.reduce(function(c,u){var f=Sm(e,u,n);return c.top=Gr(f.top,c.top),c.right=ci(f.right,c.right),c.bottom=ci(f.bottom,c.bottom),c.left=Gr(f.left,c.left),c},Sm(e,l,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Tm(e){var t=e.reference,r=e.element,n=e.placement,i=n?vr(n):null,a=n?dn(n):null,l=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(i){case zt:c={x:l,y:t.y-r.height};break;case rr:c={x:l,y:t.y+t.height};break;case nr:c={x:t.x+t.width,y:s};break;case Vt:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var u=i?cc(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(a){case un:c[u]=c[u]-(t[f]/2-r[f]/2);break;case Qn:c[u]=c[u]+(t[f]/2-r[f]/2);break}}return c}function no(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,l=a===void 0?e.strategy:a,s=r.boundary,c=s===void 0?MC:s,u=r.rootBoundary,f=u===void 0?fm:u,h=r.elementContext,y=h===void 0?Zn:h,m=r.altBoundary,x=m===void 0?!1:m,d=r.padding,v=d===void 0?0:d,E=bm(typeof v!="number"?v:xm(v,Jn)),R=y===Zn?DC:Zn,S=e.rects.popper,T=e.elements[x?R:y],w=g1(Hr(T)?T:T.contextElement||$r(e.elements.popper),c,f,l),N=fn(e.elements.reference),M=Tm({reference:N,element:S,strategy:"absolute",placement:i}),O=dc(Object.assign({},S,M)),g=y===Zn?O:N,p={top:w.top-g.top+E.top,bottom:g.bottom-w.bottom+E.bottom,left:w.left-g.left+E.left,right:g.right-w.right+E.right},b=e.modifiersData.offset;if(y===Zn&&b){var C=b[i];Object.keys(p).forEach(function(_){var P=[nr,rr].indexOf(_)>=0?1:-1,k=[zt,rr].indexOf(_)>=0?"y":"x";p[_]+=C[k]*P})}return p}function y1(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,l=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?hm:c,f=dn(n),h=f?s?dm:dm.filter(function(x){return dn(x)===f}):Jn,y=h.filter(function(x){return u.indexOf(x)>=0});y.length===0&&(y=h);var m=y.reduce(function(x,d){return x[d]=no(e,{placement:d,boundary:i,rootBoundary:a,padding:l})[vr(d)],x},{});return Object.keys(m).sort(function(x,d){return m[x]-m[d]})}function v1(e){if(vr(e)===ic)return[];var t=fi(e);return[Em(e),t,Em(t)]}function b1(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,l=r.altAxis,s=l===void 0?!0:l,c=r.fallbackPlacements,u=r.padding,f=r.boundary,h=r.rootBoundary,y=r.altBoundary,m=r.flipVariations,x=m===void 0?!0:m,d=r.allowedAutoPlacements,v=t.options.placement,E=vr(v),R=E===v,S=c||(R||!x?[fi(v)]:v1(v)),T=[v].concat(S).reduce(function(ne,ue){return ne.concat(vr(ue)===ic?y1(t,{placement:ue,boundary:f,rootBoundary:h,padding:u,flipVariations:x,allowedAutoPlacements:d}):ue)},[]),w=t.rects.reference,N=t.rects.popper,M=new Map,O=!0,g=T[0],p=0;p<T.length;p++){var b=T[p],C=vr(b),_=dn(b)===un,P=[zt,rr].indexOf(C)>=0,k=P?"width":"height",D=no(t,{placement:b,boundary:f,rootBoundary:h,altBoundary:y,padding:u}),W=P?_?nr:Vt:_?rr:zt;w[k]>N[k]&&(W=fi(W));var Z=fi(W),G=[];if(a&&G.push(D[C]<=0),s&&G.push(D[W]<=0,D[Z]<=0),G.every(function(ne){return ne})){g=b,O=!1;break}M.set(b,G)}if(O)for(var B=x?3:1,Y=function(ue){var ce=T.find(function(ye){var se=M.get(ye);if(se)return se.slice(0,ue).every(function(le){return le})});if(ce)return g=ce,"break"},ae=B;ae>0;ae--){var oe=Y(ae);if(oe==="break")break}t.placement!==g&&(t.modifiersData[n]._skip=!0,t.placement=g,t.reset=!0)}}const x1={name:"flip",enabled:!0,phase:"main",fn:b1,requiresIfExists:["offset"],data:{_skip:!1}};function wm(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Rm(e){return[zt,nr,rr,Vt].some(function(t){return e[t]>=0})}function O1(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,l=no(t,{elementContext:"reference"}),s=no(t,{altBoundary:!0}),c=wm(l,n),u=wm(s,i,a),f=Rm(c),h=Rm(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const E1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:O1};function C1(e,t,r){var n=vr(e),i=[Vt,zt].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],s=a[1];return l=l||0,s=(s||0)*i,[Vt,nr].indexOf(n)>=0?{x:s,y:l}:{x:l,y:s}}function S1(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,l=hm.reduce(function(f,h){return f[h]=C1(h,t.rects,a),f},{}),s=l[t.placement],c=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=l}const T1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:S1};function w1(e){var t=e.state,r=e.name;t.modifiersData[r]=Tm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const R1={name:"popperOffsets",enabled:!0,phase:"read",fn:w1,data:{}};function _1(e){return e==="x"?"y":"x"}function P1(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,l=r.altAxis,s=l===void 0?!1:l,c=r.boundary,u=r.rootBoundary,f=r.altBoundary,h=r.padding,y=r.tether,m=y===void 0?!0:y,x=r.tetherOffset,d=x===void 0?0:x,v=no(t,{boundary:c,rootBoundary:u,padding:h,altBoundary:f}),E=vr(t.placement),R=dn(t.placement),S=!R,T=cc(E),w=_1(T),N=t.modifiersData.popperOffsets,M=t.rects.reference,O=t.rects.popper,g=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,p=typeof g=="number"?{mainAxis:g,altAxis:g}:Object.assign({mainAxis:0,altAxis:0},g),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(N){if(a){var _,P=T==="y"?zt:Vt,k=T==="y"?rr:nr,D=T==="y"?"height":"width",W=N[T],Z=W+v[P],G=W-v[k],B=m?-O[D]/2:0,Y=R===un?M[D]:O[D],ae=R===un?-O[D]:-M[D],oe=t.elements.arrow,ne=m&&oe?lc(oe):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vm(),ce=ue[P],ye=ue[k],se=to(0,M[D],ne[D]),le=S?M[D]/2-B-se-ce-p.mainAxis:Y-se-ce-p.mainAxis,te=S?-M[D]/2+B+se+ye+p.mainAxis:ae+se+ye+p.mainAxis,ve=t.elements.arrow&&eo(t.elements.arrow),X=ve?T==="y"?ve.clientTop||0:ve.clientLeft||0:0,Re=(_=b==null?void 0:b[T])!=null?_:0,z=W+le-Re-X,pe=W+te-Re,de=to(m?ci(Z,z):Z,W,m?Gr(G,pe):G);N[T]=de,C[T]=de-W}if(s){var Ce,Te=T==="x"?zt:Vt,$e=T==="x"?rr:nr,He=N[w],Ne=w==="y"?"height":"width",be=He+v[Te],Fe=He-v[$e],Ye=[zt,Vt].indexOf(E)!==-1,ht=(Ce=b==null?void 0:b[w])!=null?Ce:0,Ct=Ye?be:He-M[Ne]-O[Ne]-ht+p.altAxis,pt=Ye?He+M[Ne]+O[Ne]-ht-p.altAxis:Fe,Ue=m&&Ye?ZC(Ct,He,pt):to(m?Ct:be,He,m?pt:Fe);N[w]=Ue,C[w]=Ue-He}t.modifiersData[n]=C}}const I1={name:"preventOverflow",enabled:!0,phase:"main",fn:P1,requiresIfExists:["offset"]};function k1(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function j1(e){return e===Kt(e)||!or(e)?uc(e):k1(e)}function A1(e){var t=e.getBoundingClientRect(),r=pn(t.width)/e.offsetWidth||1,n=pn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function N1(e,t,r){r===void 0&&(r=!1);var n=or(t),i=or(t)&&A1(t),a=$r(t),l=fn(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((yr(t)!=="body"||fc(a))&&(s=j1(t)),or(t)?(c=fn(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=pc(a))),{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}function $1(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(s){if(!r.has(s)){var c=t.get(s);c&&i(c)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function M1(e){var t=$1(e);return GC.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function D1(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function L1(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var _m={placement:"bottom",modifiers:[],strategy:"absolute"};function Pm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function F1(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?_m:i;return function(s,c,u){u===void 0&&(u=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},_m,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},h=[],y=!1,m={state:f,setOptions:function(E){var R=typeof E=="function"?E(f.options):E;d(),f.options=Object.assign({},a,f.options,R),f.scrollParents={reference:Hr(s)?ro(s):s.contextElement?ro(s.contextElement):[],popper:ro(c)};var S=M1(L1([].concat(n,f.options.modifiers)));return f.orderedModifiers=S.filter(function(T){return T.enabled}),x(),m.update()},forceUpdate:function(){if(!y){var E=f.elements,R=E.reference,S=E.popper;if(Pm(R,S)){f.rects={reference:N1(R,eo(S),f.options.strategy==="fixed"),popper:lc(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(p){return f.modifiersData[p.name]=Object.assign({},p.data)});for(var T=0;T<f.orderedModifiers.length;T++){if(f.reset===!0){f.reset=!1,T=-1;continue}var w=f.orderedModifiers[T],N=w.fn,M=w.options,O=M===void 0?{}:M,g=w.name;typeof N=="function"&&(f=N({state:f,options:O,name:g,instance:m})||f)}}}},update:D1(function(){return new Promise(function(v){m.forceUpdate(),v(f)})}),destroy:function(){d(),y=!0}};if(!Pm(s,c))return m;m.setOptions(u).then(function(v){!y&&u.onFirstUpdate&&u.onFirstUpdate(v)});function x(){f.orderedModifiers.forEach(function(v){var E=v.name,R=v.options,S=R===void 0?{}:R,T=v.effect;if(typeof T=="function"){var w=T({state:f,name:E,instance:m,options:S}),N=function(){};h.push(w||N)}})}function d(){h.forEach(function(v){return v()}),h=[]}return m}}var B1=[c1,R1,s1,XC,T1,x1,I1,n1,E1],q1=F1({defaultModifiers:B1});function z1(e){return We("MuiPopper",e)}qe("MuiPopper",["root"]);function V1(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function di(e){return typeof e=="function"?e():e}function hi(e){return e.nodeType!==void 0}function U1(e){return!hi(e)}const W1=e=>{const{classes:t}=e;return Ge({root:["root"]},z1,t)},H1={},G1=j.forwardRef(function(t,r){const{anchorEl:n,children:i,direction:a,disablePortal:l,modifiers:s,open:c,placement:u,popperOptions:f,popperRef:h,slotProps:y={},slots:m={},TransitionProps:x,ownerState:d,...v}=t,E=j.useRef(null),R=Ot(E,r),S=j.useRef(null),T=Ot(S,h),w=j.useRef(T);cr(()=>{w.current=T},[T]),j.useImperativeHandle(h,()=>S.current,[]);const N=V1(u,a),[M,O]=j.useState(N),[g,p]=j.useState(di(n));j.useEffect(()=>{S.current&&S.current.forceUpdate()}),j.useEffect(()=>{n&&p(di(n))},[n]),cr(()=>{if(!g||!c)return;const k=Z=>{O(Z.placement)};if(process.env.NODE_ENV!=="production"&&g&&hi(g)&&g.nodeType===1){const Z=g.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Z.top===0&&Z.left===0&&Z.right===0&&Z.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
223
|
+
`))}let D=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Z})=>{k(Z)}}];s!=null&&(D=D.concat(s)),f&&f.modifiers!=null&&(D=D.concat(f.modifiers));const W=q1(g,E.current,{placement:N,...f,modifiers:D});return w.current(W),()=>{W.destroy(),w.current(null)}},[g,l,s,c,f,N]);const b={placement:M};x!==null&&(b.TransitionProps=x);const C=W1(t),_=m.root??"div",P=Tl({elementType:_,externalSlotProps:y.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:R},ownerState:t,className:C.root});return A.jsx(_,{...P,children:typeof i=="function"?i(b):i})}),Im=j.forwardRef(function(t,r){const{anchorEl:n,children:i,container:a,direction:l="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:u,open:f,placement:h="bottom",popperOptions:y=H1,popperRef:m,style:x,transition:d=!1,slotProps:v={},slots:E={},...R}=t,[S,T]=j.useState(!0),w=()=>{T(!1)},N=()=>{T(!0)};if(!c&&!f&&(!d||S))return null;let M;if(a)M=a;else if(n){const p=di(n);M=p&&hi(p)?Wt(p).body:Wt(null).body}const O=!f&&c&&(!d||S)?"none":void 0,g=d?{in:f,onEnter:w,onExited:N}:void 0;return A.jsx(zn,{disablePortal:s,container:M,children:A.jsx(G1,{anchorEl:n,direction:l,disablePortal:s,modifiers:u,ref:r,open:d?!S:f,placement:h,popperOptions:y,popperRef:m,slotProps:v,slots:E,...R,style:{position:"fixed",top:0,left:0,display:O,...x},TransitionProps:g,children:i})})});process.env.NODE_ENV!=="production"&&(Im.propTypes={anchorEl:ur(o.oneOfType([Er,o.object,o.func]),e=>{if(e.open){const t=di(e.anchorEl);if(t&&hi(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
224
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||U1(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
225
|
+
`))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([Er,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Dt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const K1=xe(Im,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hc=j.forwardRef(function(t,r){const n=Nd(),i=Je({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:s,componentsProps:c,container:u,disablePortal:f,keepMounted:h,modifiers:y,open:m,placement:x,popperOptions:d,popperRef:v,transition:E,slots:R,slotProps:S,...T}=i,w=(R==null?void 0:R.root)??(s==null?void 0:s.Root),N={anchorEl:a,container:u,disablePortal:f,keepMounted:h,modifiers:y,open:m,placement:x,popperOptions:d,popperRef:v,transition:E,...T};return A.jsx(K1,{as:l,direction:n?"rtl":"ltr",slots:{root:w},slotProps:S??c,...N,ref:r})});process.env.NODE_ENV!=="production"&&(hc.propTypes={anchorEl:o.oneOfType([Er,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Er,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Dt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function Y1(e){return We("MuiListSubheader",e)}qe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const X1=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:a}=e,l={root:["root",r!=="default"&&`color${he(r)}`,!n&&"gutters",i&&"inset",!a&&"sticky"]};return Ge(l,Y1,t)},J1=xe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${he(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(Ke(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),mi=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:l="li",disableGutters:s=!1,disableSticky:c=!1,inset:u=!1,...f}=n,h={...n,color:a,component:l,disableGutters:s,disableSticky:c,inset:u},y=X1(h);return A.jsx(J1,{as:l,className:_e(y.root,i),ref:r,ownerState:h,...f})});mi&&(mi.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(mi.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOf(["default","inherit","primary"]),component:o.elementType,disableGutters:o.bool,disableSticky:o.bool,inset:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Q1=Pt(A.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Z1(e){return We("MuiAutocomplete",e)}const Le=qe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var km,jm;const eS=e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:a,hasClearIcon:l,hasPopupIcon:s,inputFocused:c,popupOpen:u,size:f}=e,h={root:["root",n&&"expanded",i&&"focused",a&&"fullWidth",l&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${he(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ge(h,Z1,t)},tS=xe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:a,inputFocused:l,size:s}=r;return[{[`& .${Le.tag}`]:t.tag},{[`& .${Le.tag}`]:t[`tagSize${he(s)}`]},{[`& .${Le.inputRoot}`]:t.inputRoot},{[`& .${Le.input}`]:t.input},{[`& .${Le.input}`]:l&&t.inputFocused},t.root,n&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Le.focused} .${Le.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Le.clearIndicator}`]:{visibility:"visible"}},[`& .${Le.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Le.inputRoot}`]:{[`.${Le.hasPopupIcon}&, .${Le.hasClearIcon}&`]:{paddingRight:30},[`.${Le.hasPopupIcon}.${Le.hasClearIcon}&`]:{paddingRight:56},[`& .${Le.input}`]:{width:0,minWidth:30}},[`& .${Ar.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ar.root}.${Ht.sizeSmall}`]:{[`& .${Ar.input}`]:{padding:"2px 4px 3px 0"}},[`& .${er.root}`]:{padding:9,[`.${Le.hasPopupIcon}&, .${Le.hasClearIcon}&`]:{paddingRight:39},[`.${Le.hasPopupIcon}.${Le.hasClearIcon}&`]:{paddingRight:65},[`& .${Le.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Le.endAdornment}`]:{right:9}},[`& .${er.root}.${Ht.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Le.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Gt.root}`]:{paddingTop:19,paddingLeft:8,[`.${Le.hasPopupIcon}&, .${Le.hasClearIcon}&`]:{paddingRight:39},[`.${Le.hasPopupIcon}.${Le.hasClearIcon}&`]:{paddingRight:65},[`& .${Gt.input}`]:{padding:"7px 4px"},[`& .${Le.endAdornment}`]:{right:9}},[`& .${Gt.root}.${Ht.sizeSmall}`]:{paddingBottom:1,[`& .${Gt.input}`]:{padding:"2.5px 4px"}},[`& .${Ht.hiddenLabel}`]:{paddingTop:8},[`& .${Gt.root}.${Ht.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Le.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Gt.root}.${Ht.hiddenLabel}.${Ht.sizeSmall}`]:{[`& .${Le.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Le.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Le.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Le.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Le.inputRoot}`]:{flexWrap:"wrap"}}}]}),rS=xe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),nS=xe(ai,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),oS=xe(ai,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),iS=xe(hc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Le.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(Ke(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),aS=xe(Vn,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(Ke(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),sS=xe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),lS=xe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),cS=xe("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(Ke(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Le.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Le.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Le.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Le.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Le.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),uS=xe(mi,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(Ke(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),pS=xe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Le.option}`]:{paddingLeft:24}}),Am=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:a=!1,autoSelect:l=!1,blurOnSelect:s=!1,ChipProps:c,className:u,clearIcon:f=km||(km=A.jsx(Q1,{fontSize:"small"})),clearOnBlur:h=!n.freeSolo,clearOnEscape:y=!1,clearText:m="Clear",closeText:x="Close",componentsProps:d,defaultValue:v=n.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:R=!1,disabled:S=!1,disabledItemsFocusable:T=!1,disableListWrap:w=!1,disablePortal:N=!1,filterOptions:M,filterSelectedOptions:O=!1,forcePopupIcon:g="auto",freeSolo:p=!1,fullWidth:b=!1,getLimitTagsText:C=Xe=>`+${Xe}`,getOptionDisabled:_,getOptionKey:P,getOptionLabel:k,isOptionEqualToValue:D,groupBy:W,handleHomeEndKeys:Z=!n.freeSolo,id:G,includeInputInList:B=!1,inputValue:Y,limitTags:ae=-1,ListboxComponent:oe,ListboxProps:ne,loading:ue=!1,loadingText:ce="Loading…",multiple:ye=!1,noOptionsText:se="No options",onChange:le,onClose:te,onHighlightChange:ve,onInputChange:X,onOpen:Re,open:z,openOnFocus:pe=!1,openText:de="Open",options:Ce,PaperComponent:Te,PopperComponent:$e,popupIcon:He=jm||(jm=A.jsx(Ah,{})),readOnly:Ne=!1,renderGroup:be,renderInput:Fe,renderOption:Ye,renderTags:ht,selectOnFocus:Ct=!n.freeSolo,size:pt="medium",slots:Ue={},slotProps:Be={},value:st,...De}=n,{getRootProps:Ze,getInputProps:mt,getInputLabelProps:ft,getPopupIndicatorProps:Ee,getClearProps:Ae,getTagProps:at,getListboxProps:wt,getOptionProps:St,value:Bt,dirty:Rt,expanded:Yt,id:Xt,popupOpen:U,focused:$,focusedTag:K,anchorEl:V,setAnchorEl:Se,inputValue:ke,groupedOptions:je}=$C({...n,componentName:"Autocomplete"}),ee=!E&&!S&&Rt&&!Ne,L=(!p||g===!0)&&g!==!1,{onMouseDown:H}=mt(),{ref:ie,...Oe}=wt(),lt=k||(Xe=>Xe.label??Xe),I={...n,disablePortal:N,expanded:Yt,focused:$,fullWidth:b,getOptionLabel:lt,hasClearIcon:ee,hasPopupIcon:L,inputFocused:K===-1,popupOpen:U,size:pt},J=eS(I),fe={slots:{paper:Te,popper:$e,...Ue},slotProps:{chip:c,listbox:ne,...d,...Be}},[F,q]=Lt("listbox",{elementType:cS,externalForwardedProps:fe,ownerState:I,className:J.listbox,additionalProps:Oe,ref:ie}),[re,me]=Lt("paper",{elementType:Vn,externalForwardedProps:fe,ownerState:I,className:J.paper}),[ge,Ie]=Lt("popper",{elementType:hc,externalForwardedProps:fe,ownerState:I,className:J.popper,additionalProps:{disablePortal:N,style:{width:V?V.clientWidth:null},role:"presentation",anchorEl:V,open:U}});let Pe;if(ye&&Bt.length>0){const Xe=br=>({className:J.tag,disabled:S,...at(br)});ht?Pe=ht(Bt,Xe,I):Pe=Bt.map((br,Dr)=>{const{key:oo,...mS}=Xe({index:Dr});return A.jsx(Kl,{label:lt(br),size:pt,...mS,...fe.slotProps.chip},oo)})}if(ae>-1&&Array.isArray(Pe)){const Xe=Pe.length-ae;!$&&Xe>0&&(Pe=Pe.splice(0,ae),Pe.push(A.jsx("span",{className:J.tag,children:C(Xe)},Pe.length)))}const Et=be||(Xe=>A.jsxs("li",{children:[A.jsx(uS,{className:J.groupLabel,ownerState:I,component:"div",children:Xe.group}),A.jsx(pS,{className:J.groupUl,ownerState:I,children:Xe.children})]},Xe.key)),vt=Ye||((Xe,br)=>{const{key:Dr,...oo}=Xe;return A.jsx("li",{...oo,children:lt(br)},Dr)}),_t=(Xe,br)=>{const Dr=St({option:Xe,index:br});return vt({...Dr,className:J.option},Xe,{selected:Dr["aria-selected"],index:br,inputValue:ke},I)},It=fe.slotProps.clearIndicator,Mr=fe.slotProps.popupIndicator,Kr=Xe=>A.jsx(iS,{as:ge,...Ie,children:A.jsx(aS,{as:re,...me,children:Xe})});let gi=null;return je.length>0?gi=Kr(A.jsx(F,{as:oe,...q,children:je.map((Xe,br)=>W?Et({key:Xe.key,group:Xe.group,children:Xe.options.map((Dr,oo)=>_t(Dr,Xe.index+oo))}):_t(Xe,br))})):ue&&je.length===0?gi=Kr(A.jsx(sS,{className:J.loading,ownerState:I,children:ce})):je.length===0&&!p&&!ue&&(gi=Kr(A.jsx(lS,{className:J.noOptions,ownerState:I,role:"presentation",onMouseDown:Xe=>{Xe.preventDefault()},children:se}))),A.jsxs(j.Fragment,{children:[A.jsx(tS,{ref:r,className:_e(J.root,u),ownerState:I,...Ze(De),children:Fe({id:Xt,disabled:S,fullWidth:!0,size:pt==="small"?"small":void 0,InputLabelProps:ft(),InputProps:{ref:Se,className:J.inputRoot,startAdornment:Pe,onMouseDown:Xe=>{Xe.target===Xe.currentTarget&&H(Xe)},...(ee||L)&&{endAdornment:A.jsxs(rS,{className:J.endAdornment,ownerState:I,children:[ee?A.jsx(nS,{...Ae(),"aria-label":m,title:m,ownerState:I,...It,className:_e(J.clearIndicator,It==null?void 0:It.className),children:f}):null,L?A.jsx(oS,{...Ee(),disabled:S,"aria-label":U?x:de,title:U?x:de,ownerState:I,...Mr,className:_e(J.popupIndicator,Mr==null?void 0:Mr.className),children:He}):null]})}},inputProps:{className:J.input,disabled:S,readOnly:Ne,...mt()}})}),V?gi:null]})});process.env.NODE_ENV!=="production"&&(Am.propTypes={autoComplete:o.bool,autoHighlight:o.bool,autoSelect:o.bool,blurOnSelect:o.oneOfType([o.oneOf(["mouse","touch"]),o.bool]),ChipProps:o.object,classes:o.object,className:o.string,clearIcon:o.node,clearOnBlur:o.bool,clearOnEscape:o.bool,clearText:o.string,closeText:o.string,componentsProps:o.shape({clearIndicator:o.object,paper:o.object,popper:o.object,popupIndicator:o.object}),defaultValue:ur(o.any,e=>e.multiple&&e.defaultValue!==void 0&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join(`
|
|
226
|
+
`)):null),disableClearable:o.bool,disableCloseOnSelect:o.bool,disabled:o.bool,disabledItemsFocusable:o.bool,disableListWrap:o.bool,disablePortal:o.bool,filterOptions:o.func,filterSelectedOptions:o.bool,forcePopupIcon:o.oneOfType([o.oneOf(["auto"]),o.bool]),freeSolo:o.bool,fullWidth:o.bool,getLimitTagsText:o.func,getOptionDisabled:o.func,getOptionKey:o.func,getOptionLabel:o.func,groupBy:o.func,handleHomeEndKeys:o.bool,id:o.string,includeInputInList:o.bool,inputValue:o.string,isOptionEqualToValue:o.func,limitTags:Sl,ListboxComponent:o.elementType,ListboxProps:o.object,loading:o.bool,loadingText:o.node,multiple:o.bool,noOptionsText:o.node,onChange:o.func,onClose:o.func,onHighlightChange:o.func,onInputChange:o.func,onKeyDown:o.func,onOpen:o.func,open:o.bool,openOnFocus:o.bool,openText:o.string,options:o.array.isRequired,PaperComponent:o.elementType,PopperComponent:o.elementType,popupIcon:o.node,readOnly:o.bool,renderGroup:o.func,renderInput:o.func.isRequired,renderOption:o.func,renderTags:o.func,selectOnFocus:o.bool,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({chip:o.oneOfType([o.func,o.object]),clearIndicator:o.oneOfType([o.func,o.object]),listbox:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),popupIndicator:o.oneOfType([o.func,o.object])}),slots:o.shape({listbox:o.elementType,paper:o.elementType,popper:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:ur(o.any,e=>e.multiple&&e.value!==void 0&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join(`
|
|
227
|
+
`)):null)}),String.prototype.format=function(){for(var e=this,t=0;t<arguments.length;t++){var r=new RegExp("\\{"+t+"\\}","gi");e=e.replace(r,arguments[t])}return e};function fS(e){const{value:t,error:r,onChangeValidate:n,form:{schema:{type:i},action:a,title:l,required:s,multiple:c,disabled:u,options:f},model:h}=e,y=i==="array"?[]:void 0,[m,x]=we.useState(t||y),[d,v]=we.useState([]),{url:E,params:R}=a||{},S=R&&R.some(g=>g!=null)?R.map(g=>kt.get(h,g)):[];we.useEffect(()=>{const g=R?S.length>0?E.format(...S):"":E;g&&w(g)},S),we.useEffect(()=>{i==="array"?n(m):m!==null&&n({target:{value:m}})},[m]);const T=(g,p)=>{if(i!=="array")if(c){const b=p.map(C=>C.id).join(",");x(b)}else x(p.id);else x(c?p.map(b=>b.id):[p.id])},w=g=>{const p=new cm,b={"Content-Type":"application/json"};p.get("csrf")&&Object.assign(b,{"X-CSRF-TOKEN":p.get("csrf")}),fetch(g,{headers:b,credentials:"include"}).then(C=>C.ok?C.json():C.text().then(_=>{throw new Error(_)})).then(C=>{v(C)}).catch(C=>{console.error(C)})};let N="";r&&(N=A.jsx("div",{style:{color:"red"},children:r}));let M;const O=f&&f.length>0?f:d;return c?Array.isArray(t)?M=t?O.filter(g=>t.includes(g.id)):[]:M=t?O.filter(g=>t.split(",").includes(g.id)):[]:Array.isArray(t)?M=t.length===1?O.find(g=>g.id===t[0]):null:M=t?O.find(g=>g.id===t):null,A.jsxs("div",{children:[A.jsx(Am,{multiple:c,disabled:u,getOptionLabel:g=>g.label||"",value:M,onChange:T,options:O,renderInput:g=>A.jsx(ti,{...g,label:s?l+" *":l})}),N]})}const dS=jt(fS),hS=e=>{let t=e&&typeof e=="object"&&e.toISOString().slice(0,10)||e;return t||(t=""),t.length>0&&(t=new Date(t).toISOString().slice(0,10)),t};class Nm extends we.Component{constructor(r){super(r);Tt(this,"mapper",{number:SO,text:Hn,password:Hn,textarea:TO,markdown:wO,textsuggest:_O,select:JO,taxonomy:IC,radios:jE,date:AE,timestamp:$E,checkbox:HE,help:GE,array:tm,tBoolean:dC,fieldset:im,tuple:im,multiselect:aE,dynaselect:dS});Tt(this,"setDefault",(r,n,i,a)=>{const{onModelChange:l}=this.props,s=Mt.selectOrSet(r,n);_p(s)&&!_p(a)&&l(r,a,i.type,i)});Tt(this,"getLocalization",()=>{const{localization:r}=this.props;return{getLocalizedString:r&&r.getLocalizedString?r.getLocalizedString:n=>n,getLocalizedNumber:r&&r.getLocalizedNumber?r.getLocalizedNumber:n=>n,getLocalizedDate:r&&r.getLocalizedDate?r.getLocalizedDate:hS}});this.builder=this.builder.bind(this)}builder(r,n,i,a,l,s){const{errors:c,showErrors:u,evalContext:f}=this.props,h=this.mapper[r.type];if(!h||r.condition)return null;const y=r.key&&r.key.join(".")||i,m=c&&y in c?c[y]:null;return A.jsx(h,{model:n,form:r,onChange:l,setDefault:this.setDefault,mapper:a,builder:s,errorText:m,localization:this.getLocalization(),showErrors:u},y)}render(){const{schema:r,form:n,ignore:i,option:a,model:l,className:s,onModelChange:c,mapper:u}=this.props,f=Mt.merge(r,n,i,a);let h=this.mapper;u&&(h=Fg(this.mapper,u));const y=f.map((m,x)=>this.builder(m,l,x,h,c,this.builder));return A.jsx("div",{className:s,children:y})}}Nm.defaultProps={localization:void 0,showErrors:!1},bt.Array=tm,bt.ComposedComponent=jt,bt.SchemaForm=Nm,bt.utils=Mt,Object.defineProperty(bt,Symbol.toStringTag,{value:"Module"})});
|
|
228
|
+
//# sourceMappingURL=react-schema-form.umd.cjs.map
|