react-schema-form 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
(function(Mt,ke){typeof exports=="object"&&typeof module<"u"?ke(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"],ke):(Mt=typeof globalThis<"u"?globalThis:Mt||self,ke(Mt["react-schema-form"]={},Mt.React,Mt.EmotionStyled,Mt.EmotionReact,Mt["React-dom"],Mt.UiwReactMarkdownEditor,Mt.MuiMaterial))})(this,(function(Mt,ke,Yv,Or,Nn,Jv,Jr){"use strict";function Xu(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
|
|
1
|
+
(function(Mt,ke){typeof exports=="object"&&typeof module<"u"?ke(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"],ke):(Mt=typeof globalThis<"u"?globalThis:Mt||self,ke(Mt["react-schema-form"]={},Mt.React,Mt.EmotionStyled,Mt.EmotionReact,Mt["React-dom"],Mt.UiwReactMarkdownEditor,Mt.MuiMaterial))})(this,(function(Mt,ke,Yv,Or,Nn,Jv,Jr){"use strict";function Xu(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=Xu(ke),Xv=Xu(Nn);var Co=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var To={exports:{}},An={};var Zu;function Zv(){if(Zu)return An;Zu=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,i,a){var l=null;if(a!==void 0&&(l=""+a),i.key!==void 0&&(l=""+i.key),"key"in i){a={};for(var s in i)s!=="key"&&(a[s]=i[s])}else a=i;return i=a.ref,{$$typeof:e,type:n,key:l,ref:i!==void 0?i:null,props:a}}return An.Fragment=t,An.jsx=r,An.jsxs=r,An}var Mn={};var Qu;function Qv(){return Qu||(Qu=1,process.env.NODE_ENV!=="production"&&(function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===R?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case b:return"Fragment";case p:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case x:return"SuspenseList";case M:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case f:return"Portal";case S:return C.displayName||"Context";case _:return(C._context.displayName||"Context")+".Consumer";case w:var V=C.render;return C=C.displayName,C||(C=V.displayName||V.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case P:return V=C.displayName||null,V!==null?V:e(C.type)||"Memo";case k:V=C._payload,C=C._init;try{return e(C(V))}catch{}}return null}function t(C){return""+C}function r(C){try{t(C);var V=!1}catch{V=!0}if(V){V=console;var A=V.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return A.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),t(C)}}function n(C){if(C===b)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===k)return"<...>";try{var V=e(C);return V?"<"+V+">":"<...>"}catch{return"<...>"}}function i(){var C=O.A;return C===null?null:C.getOwner()}function a(){return Error("react-stack-top-frame")}function l(C){if(q.call(C,"key")){var V=Object.getOwnPropertyDescriptor(C,"key").get;if(V&&V.isReactWarning)return!1}return C.key!==void 0}function s(C,V){function A(){W||(W=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",V))}A.isReactWarning=!0,Object.defineProperty(C,"key",{get:A,configurable:!0})}function c(){var C=e(this.type);return le[C]||(le[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function u(C,V,A,T,$,D){var K=A.ref;return C={$$typeof:g,type:C,key:V,props:A,_owner:T},(K!==void 0?K:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:c}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function d(C,V,A,T,$,D){var K=V.children;if(K!==void 0)if(T)if(N(K)){for(T=0;T<K.length;T++)m(K[T]);Object.freeze&&Object.freeze(K)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(K);if(q.call(V,"key")){K=e(C);var re=Object.keys(V).filter(function(te){return te!=="key"});T=0<re.length?"{key: someKey, "+re.join(": ..., ")+": ...}":"{key: someKey}",z[K+T]||(re=0<re.length?"{"+re.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,T,K,re,K),z[K+T]=!0)}if(K=null,M!==void 0&&(r(M),K=""+M),l(V)&&(r(V.key),K=""+V.key),"key"in V){M={};for(var ie in V)ie!=="key"&&(M[ie]=V[ie])}else M=V;return K&&s(M,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,K,M,i(),$,q)}function m(C){h(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===k&&(C._payload.status==="fulfilled"?h(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function h(C){return typeof C=="object"&&C!==null&&C.$$typeof===g}var y=ke,g=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),S=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),R=Symbol.for("react.client.reference"),O=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=Object.prototype.hasOwnProperty,N=Array.isArray,U=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(C){return C()}};var W,le={},ce=y.react_stack_bottom_frame.bind(y,a)(),ue=U(n(a)),z={};Mn.Fragment=b,Mn.jsx=function(C,V,M){var T=1e4>O.recentlyCreatedOwnerStacks++;return d(C,V,M,!1,T?Error("react-stack-top-frame"):ce,T?U(n(C)):ue)},Mn.jsxs=function(C,V,M){var T=1e4>O.recentlyCreatedOwnerStacks++;return d(C,V,M,!0,T?Error("react-stack-top-frame"):ce,T?U(n(C)):ue)}})()),Mn}var ed;function eb(){return ed||(ed=1,process.env.NODE_ENV==="production"?To.exports=Zv():To.exports=Qv()),To.exports}var F=eb(),Ma,td;function tb(){if(td)return Ma;td=1;function e(){this.__data__=[],this.size=0}return Ma=e,Ma}var Da,rd;function Po(){if(rd)return Da;rd=1;function e(t,r){return t===r||t!==t&&r!==r}return Da=e,Da}var qa,nd;function $o(){if(nd)return qa;nd=1;var e=Po();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return qa=t,qa}var La,od;function rb(){if(od)return La;od=1;var e=$o(),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 La=n,La}var Fa,id;function nb(){if(id)return Fa;id=1;var e=$o();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Fa=t,Fa}var za,ad;function ob(){if(ad)return za;ad=1;var e=$o();function t(r){return e(this.__data__,r)>-1}return za=t,za}var Va,sd;function ib(){if(sd)return Va;sd=1;var e=$o();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 Va=t,Va}var Ba,ld;function Ro(){if(ld)return Ba;ld=1;var e=tb(),t=rb(),r=nb(),n=ob(),i=ib();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,Ba=a,Ba}var Ua,cd;function ab(){if(cd)return Ua;cd=1;var e=Ro();function t(){this.__data__=new e,this.size=0}return Ua=t,Ua}var Wa,ud;function sb(){if(ud)return Wa;ud=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Wa=e,Wa}var Ha,dd;function lb(){if(dd)return Ha;dd=1;function e(t){return this.__data__.get(t)}return Ha=e,Ha}var Ka,fd;function cb(){if(fd)return Ka;fd=1;function e(t){return this.__data__.has(t)}return Ka=e,Ka}var Ga,pd;function hd(){if(pd)return Ga;pd=1;var e=typeof Co=="object"&&Co&&Co.Object===Object&&Co;return Ga=e,Ga}var Ya,md;function pr(){if(md)return Ya;md=1;var e=hd(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ya=r,Ya}var Ja,yd;function Xa(){if(yd)return Ja;yd=1;var e=pr(),t=e.Symbol;return Ja=t,Ja}var Za,gd;function ub(){if(gd)return Za;gd=1;var e=Xa(),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 d=n.call(l);return u&&(s?l[i]=c:delete l[i]),d}return Za=a,Za}var Qa,vd;function db(){if(vd)return Qa;vd=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Qa=r,Qa}var es,bd;function Dn(){if(bd)return es;bd=1;var e=Xa(),t=ub(),r=db(),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 es=l,es}var ts,_d;function xr(){if(_d)return ts;_d=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ts=e,ts}var rs,wd;function ns(){if(wd)return rs;wd=1;var e=Dn(),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 rs=l,rs}var os,Sd;function fb(){if(Sd)return os;Sd=1;var e=pr(),t=e["__core-js_shared__"];return os=t,os}var is,Ed;function pb(){if(Ed)return is;Ed=1;var e=fb(),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 is=r,is}var as,Od;function xd(){if(Od)return as;Od=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 as=r,as}var ss,Cd;function hb(){if(Cd)return ss;Cd=1;var e=ns(),t=pb(),r=xr(),n=xd(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,l=Function.prototype,s=Object.prototype,c=l.toString,u=s.hasOwnProperty,d=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(h){if(!r(h)||t(h))return!1;var y=e(h)?d:a;return y.test(n(h))}return ss=m,ss}var ls,Td;function mb(){if(Td)return ls;Td=1;function e(t,r){return t?.[r]}return ls=e,ls}var cs,Pd;function Xr(){if(Pd)return cs;Pd=1;var e=hb(),t=mb();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return cs=r,cs}var us,$d;function ds(){if($d)return us;$d=1;var e=Xr(),t=pr(),r=e(t,"Map");return us=r,us}var fs,Rd;function ko(){if(Rd)return fs;Rd=1;var e=Xr(),t=e(Object,"create");return fs=t,fs}var ps,kd;function yb(){if(kd)return ps;kd=1;var e=ko();function t(){this.__data__=e?e(null):{},this.size=0}return ps=t,ps}var hs,Id;function gb(){if(Id)return hs;Id=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return hs=e,hs}var ms,jd;function vb(){if(jd)return ms;jd=1;var e=ko(),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 ms=i,ms}var ys,Nd;function bb(){if(Nd)return ys;Nd=1;var e=ko(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return ys=n,ys}var gs,Ad;function _b(){if(Ad)return gs;Ad=1;var e=ko(),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 gs=r,gs}var vs,Md;function wb(){if(Md)return vs;Md=1;var e=yb(),t=gb(),r=vb(),n=bb(),i=_b();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,vs=a,vs}var bs,Dd;function Sb(){if(Dd)return bs;Dd=1;var e=wb(),t=Ro(),r=ds();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return bs=n,bs}var _s,qd;function Eb(){if(qd)return _s;qd=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return _s=e,_s}var ws,Ld;function Io(){if(Ld)return ws;Ld=1;var e=Eb();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return ws=t,ws}var Ss,Fd;function Ob(){if(Fd)return Ss;Fd=1;var e=Io();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Ss=t,Ss}var Es,zd;function xb(){if(zd)return Es;zd=1;var e=Io();function t(r){return e(this,r).get(r)}return Es=t,Es}var Os,Vd;function Cb(){if(Vd)return Os;Vd=1;var e=Io();function t(r){return e(this,r).has(r)}return Os=t,Os}var xs,Bd;function Tb(){if(Bd)return xs;Bd=1;var e=Io();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 xs=t,xs}var Cs,Ud;function Pb(){if(Ud)return Cs;Ud=1;var e=Sb(),t=Ob(),r=xb(),n=Cb(),i=Tb();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,Cs=a,Cs}var Ts,Wd;function $b(){if(Wd)return Ts;Wd=1;var e=Ro(),t=ds(),r=Pb(),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 Ts=i,Ts}var Ps,Hd;function Kd(){if(Hd)return Ps;Hd=1;var e=Ro(),t=ab(),r=sb(),n=lb(),i=cb(),a=$b();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,Ps=l,Ps}var $s,Gd;function Yd(){if(Gd)return $s;Gd=1;var e=Xr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return $s=t,$s}var Rs,Jd;function ks(){if(Jd)return Rs;Jd=1;var e=Yd();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Rs=t,Rs}var Is,Xd;function Zd(){if(Xd)return Is;Xd=1;var e=ks(),t=Po();function r(n,i,a){(a!==void 0&&!t(n[i],a)||a===void 0&&!(i in n))&&e(n,i,a)}return Is=r,Is}var js,Qd;function Rb(){if(Qd)return js;Qd=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 js=e,js}var Ns,ef;function kb(){if(ef)return Ns;ef=1;var e=Rb(),t=e();return Ns=t,Ns}var qn={exports:{}};qn.exports;var tf;function rf(){return tf||(tf=1,(function(e,t){var r=pr(),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,d){if(d)return u.slice();var m=u.length,h=s?s(m):new u.constructor(m);return u.copy(h),h}e.exports=c})(qn,qn.exports)),qn.exports}var As,nf;function Ib(){if(nf)return As;nf=1;var e=pr(),t=e.Uint8Array;return As=t,As}var Ms,of;function Ds(){if(of)return Ms;of=1;var e=Ib();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return Ms=t,Ms}var qs,af;function sf(){if(af)return qs;af=1;var e=Ds();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return qs=t,qs}var Ls,lf;function cf(){if(lf)return Ls;lf=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 Ls=e,Ls}var Fs,uf;function jb(){if(uf)return Fs;uf=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 Fs=r,Fs}var zs,df;function ff(){if(df)return zs;df=1;function e(t,r){return function(n){return t(r(n))}}return zs=e,zs}var Vs,pf;function Bs(){if(pf)return Vs;pf=1;var e=ff(),t=e(Object.getPrototypeOf,Object);return Vs=t,Vs}var Us,hf;function Ws(){if(hf)return Us;hf=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Us=t,Us}var Hs,mf;function yf(){if(mf)return Hs;mf=1;var e=jb(),t=Bs(),r=Ws();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return Hs=n,Hs}var Ks,gf;function Zr(){if(gf)return Ks;gf=1;function e(t){return t!=null&&typeof t=="object"}return Ks=e,Ks}var Gs,vf;function Nb(){if(vf)return Gs;vf=1;var e=Dn(),t=Zr(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Gs=n,Gs}var Ys,bf;function _f(){if(bf)return Ys;bf=1;var e=Nb(),t=Zr(),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 Ys=a,Ys}var Js,wf;function jo(){if(wf)return Js;wf=1;var e=Array.isArray;return Js=e,Js}var Xs,Sf;function Ef(){if(Sf)return Xs;Sf=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Xs=t,Xs}var Zs,Of;function No(){if(Of)return Zs;Of=1;var e=ns(),t=Ef();function r(n){return n!=null&&t(n.length)&&!e(n)}return Zs=r,Zs}var Qs,xf;function Ab(){if(xf)return Qs;xf=1;var e=No(),t=Zr();function r(n){return t(n)&&e(n)}return Qs=r,Qs}var Ln={exports:{}},el,Cf;function Mb(){if(Cf)return el;Cf=1;function e(){return!1}return el=e,el}Ln.exports;var Tf;function tl(){return Tf||(Tf=1,(function(e,t){var r=pr(),n=Mb(),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})(Ln,Ln.exports)),Ln.exports}var rl,Pf;function Db(){if(Pf)return rl;Pf=1;var e=Dn(),t=Bs(),r=Zr(),n="[object Object]",i=Function.prototype,a=Object.prototype,l=i.toString,s=a.hasOwnProperty,c=l.call(Object);function u(d){if(!r(d)||e(d)!=n)return!1;var m=t(d);if(m===null)return!0;var h=s.call(m,"constructor")&&m.constructor;return typeof h=="function"&&h instanceof h&&l.call(h)==c}return rl=u,rl}var nl,$f;function qb(){if($f)return nl;$f=1;var e=Dn(),t=Ef(),r=Zr(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",l="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",m="[object Object]",h="[object RegExp]",y="[object Set]",g="[object String]",f="[object WeakMap]",b="[object ArrayBuffer]",v="[object DataView]",p="[object Float32Array]",_="[object Float64Array]",S="[object Int8Array]",w="[object Int16Array]",E="[object Int32Array]",x="[object Uint8Array]",P="[object Uint8ClampedArray]",k="[object Uint16Array]",j="[object Uint32Array]",R={};R[p]=R[_]=R[S]=R[w]=R[E]=R[x]=R[P]=R[k]=R[j]=!0,R[n]=R[i]=R[b]=R[a]=R[v]=R[l]=R[s]=R[c]=R[u]=R[d]=R[m]=R[h]=R[y]=R[g]=R[f]=!1;function O(D){return r(D)&&t(D.length)&&!!R[e(D)]}return nl=O,nl}var ol,Rf;function il(){if(Rf)return ol;Rf=1;function e(t){return function(r){return t(r)}}return ol=e,ol}var Fn={exports:{}};Fn.exports;var kf;function al(){return kf||(kf=1,(function(e,t){var r=hd(),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})(Fn,Fn.exports)),Fn.exports}var sl,If;function jf(){if(If)return sl;If=1;var e=qb(),t=il(),r=al(),n=r&&r.isTypedArray,i=n?t(n):e;return sl=i,sl}var ll,Nf;function Af(){if(Nf)return ll;Nf=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return ll=e,ll}var cl,Mf;function Df(){if(Mf)return cl;Mf=1;var e=ks(),t=Po(),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 cl=i,cl}var ul,qf;function mn(){if(qf)return ul;qf=1;var e=Df(),t=ks();function r(n,i,a,l){var s=!a;a||(a={});for(var c=-1,u=i.length;++c<u;){var d=i[c],m=l?l(a[d],n[d],d,a,n):void 0;m===void 0&&(m=n[d]),s?t(a,d,m):e(a,d,m)}return a}return ul=r,ul}var dl,Lf;function Lb(){if(Lf)return dl;Lf=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return dl=e,dl}var fl,Ff;function zf(){if(Ff)return fl;Ff=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 fl=r,fl}var pl,Vf;function Bf(){if(Vf)return pl;Vf=1;var e=Lb(),t=_f(),r=jo(),n=tl(),i=zf(),a=jf(),l=Object.prototype,s=l.hasOwnProperty;function c(u,d){var m=r(u),h=!m&&t(u),y=!m&&!h&&n(u),g=!m&&!h&&!y&&a(u),f=m||h||y||g,b=f?e(u.length,String):[],v=b.length;for(var p in u)(d||s.call(u,p))&&!(f&&(p=="length"||y&&(p=="offset"||p=="parent")||g&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||i(p,v)))&&b.push(p);return b}return pl=c,pl}var hl,Uf;function Fb(){if(Uf)return hl;Uf=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return hl=e,hl}var ml,Wf;function zb(){if(Wf)return ml;Wf=1;var e=xr(),t=Ws(),r=Fb(),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 ml=a,ml}var yl,Hf;function yn(){if(Hf)return yl;Hf=1;var e=Bf(),t=zb(),r=No();function n(i){return r(i)?e(i,!0):t(i)}return yl=n,yl}var gl,Kf;function Vb(){if(Kf)return gl;Kf=1;var e=mn(),t=yn();function r(n){return e(n,t(n))}return gl=r,gl}var vl,Gf;function Bb(){if(Gf)return vl;Gf=1;var e=Zd(),t=rf(),r=sf(),n=cf(),i=yf(),a=_f(),l=jo(),s=Ab(),c=tl(),u=ns(),d=xr(),m=Db(),h=jf(),y=Af(),g=Vb();function f(b,v,p,_,S,w,E){var x=y(b,p),P=y(v,p),k=E.get(P);if(k){e(b,p,k);return}var j=w?w(x,P,p+"",b,v,E):void 0,R=j===void 0;if(R){var O=l(P),D=!O&&c(P),N=!O&&!D&&h(P);j=P,O||D||N?l(x)?j=x:s(x)?j=n(x):D?(R=!1,j=t(P,!0)):N?(R=!1,j=r(P,!0)):j=[]:m(P)||a(P)?(j=x,a(x)?j=g(x):(!d(x)||u(x))&&(j=i(P))):R=!1}R&&(E.set(P,j),S(j,P,_,w,E),E.delete(P)),e(b,p,j)}return vl=f,vl}var bl,Yf;function Ub(){if(Yf)return bl;Yf=1;var e=Kd(),t=Zd(),r=kb(),n=Bb(),i=xr(),a=yn(),l=Af();function s(c,u,d,m,h){c!==u&&r(u,function(y,g){if(h||(h=new e),i(y))n(c,u,g,d,s,m,h);else{var f=m?m(l(c,g),y,g+"",c,u,h):void 0;f===void 0&&(f=y),t(c,g,f)}},a)}return bl=s,bl}var _l,Jf;function Xf(){if(Jf)return _l;Jf=1;function e(t){return t}return _l=e,_l}var wl,Zf;function Wb(){if(Zf)return wl;Zf=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 wl=e,wl}var Sl,Qf;function Hb(){if(Qf)return Sl;Qf=1;var e=Wb(),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 d=Array(i+1);++s<i;)d[s]=l[s];return d[i]=a(u),e(n,this,d)}}return Sl=r,Sl}var El,ep;function Kb(){if(ep)return El;ep=1;function e(t){return function(){return t}}return El=e,El}var Ol,tp;function Gb(){if(tp)return Ol;tp=1;var e=Kb(),t=Yd(),r=Xf(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Ol=n,Ol}var xl,rp;function Yb(){if(rp)return xl;rp=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 xl=n,xl}var Cl,np;function Jb(){if(np)return Cl;np=1;var e=Gb(),t=Yb(),r=t(e);return Cl=r,Cl}var Tl,op;function Xb(){if(op)return Tl;op=1;var e=Xf(),t=Hb(),r=Jb();function n(i,a){return r(t(i,a,e),i+"")}return Tl=n,Tl}var Pl,ip;function Zb(){if(ip)return Pl;ip=1;var e=Po(),t=No(),r=zf(),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 Pl=i,Pl}var $l,ap;function sp(){if(ap)return $l;ap=1;var e=Xb(),t=Zb();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 d=a[l];d&&n(i,d,l,c)}return i})}return $l=r,$l}var Rl,lp;function Qb(){if(lp)return Rl;lp=1;var e=Ub(),t=sp(),r=t(function(n,i,a){e(n,i,a)});return Rl=r,Rl}var e0=Qb();const t0=Ut(e0);var kl,cp;function r0(){if(cp)return kl;cp=1;function e(t){return t==null}return kl=e,kl}var n0=r0();const up=Ut(n0);var o0=xr();const i0=Ut(o0);var Il,dp;function a0(){if(dp)return Il;dp=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 Il=e,Il}var jl,fp;function s0(){if(fp)return jl;fp=1;var e=ff(),t=e(Object.keys,Object);return jl=t,jl}var Nl,pp;function l0(){if(pp)return Nl;pp=1;var e=Ws(),t=s0(),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 Nl=i,Nl}var Al,hp;function Ml(){if(hp)return Al;hp=1;var e=Bf(),t=l0(),r=No();function n(i){return r(i)?e(i):t(i)}return Al=n,Al}var Dl,mp;function c0(){if(mp)return Dl;mp=1;var e=mn(),t=Ml();function r(n,i){return n&&e(i,t(i),n)}return Dl=r,Dl}var ql,yp;function u0(){if(yp)return ql;yp=1;var e=mn(),t=yn();function r(n,i){return n&&e(i,t(i),n)}return ql=r,ql}var Ll,gp;function d0(){if(gp)return Ll;gp=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 Ll=e,Ll}var Fl,vp;function bp(){if(vp)return Fl;vp=1;function e(){return[]}return Fl=e,Fl}var zl,_p;function Vl(){if(_p)return zl;_p=1;var e=d0(),t=bp(),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 zl=a,zl}var Bl,wp;function f0(){if(wp)return Bl;wp=1;var e=mn(),t=Vl();function r(n,i){return e(n,t(n),i)}return Bl=r,Bl}var Ul,Sp;function Ep(){if(Sp)return Ul;Sp=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 Ul=e,Ul}var Wl,Op;function xp(){if(Op)return Wl;Op=1;var e=Ep(),t=Bs(),r=Vl(),n=bp(),i=Object.getOwnPropertySymbols,a=i?function(l){for(var s=[];l;)e(s,r(l)),l=t(l);return s}:n;return Wl=a,Wl}var Hl,Cp;function p0(){if(Cp)return Hl;Cp=1;var e=mn(),t=xp();function r(n,i){return e(n,t(n),i)}return Hl=r,Hl}var Kl,Tp;function Pp(){if(Tp)return Kl;Tp=1;var e=Ep(),t=jo();function r(n,i,a){var l=i(n);return t(n)?l:e(l,a(n))}return Kl=r,Kl}var Gl,$p;function h0(){if($p)return Gl;$p=1;var e=Pp(),t=Vl(),r=Ml();function n(i){return e(i,r,t)}return Gl=n,Gl}var Yl,Rp;function m0(){if(Rp)return Yl;Rp=1;var e=Pp(),t=xp(),r=yn();function n(i){return e(i,r,t)}return Yl=n,Yl}var Jl,kp;function y0(){if(kp)return Jl;kp=1;var e=Xr(),t=pr(),r=e(t,"DataView");return Jl=r,Jl}var Xl,Ip;function g0(){if(Ip)return Xl;Ip=1;var e=Xr(),t=pr(),r=e(t,"Promise");return Xl=r,Xl}var Zl,jp;function v0(){if(jp)return Zl;jp=1;var e=Xr(),t=pr(),r=e(t,"Set");return Zl=r,Zl}var Ql,Np;function b0(){if(Np)return Ql;Np=1;var e=Xr(),t=pr(),r=e(t,"WeakMap");return Ql=r,Ql}var ec,Ap;function tc(){if(Ap)return ec;Ap=1;var e=y0(),t=ds(),r=g0(),n=v0(),i=b0(),a=Dn(),l=xd(),s="[object Map]",c="[object Object]",u="[object Promise]",d="[object Set]",m="[object WeakMap]",h="[object DataView]",y=l(e),g=l(t),f=l(r),b=l(n),v=l(i),p=a;return(e&&p(new e(new ArrayBuffer(1)))!=h||t&&p(new t)!=s||r&&p(r.resolve())!=u||n&&p(new n)!=d||i&&p(new i)!=m)&&(p=function(_){var S=a(_),w=S==c?_.constructor:void 0,E=w?l(w):"";if(E)switch(E){case y:return h;case g:return s;case f:return u;case b:return d;case v:return m}return S}),ec=p,ec}var rc,Mp;function _0(){if(Mp)return rc;Mp=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 rc=r,rc}var nc,Dp;function w0(){if(Dp)return nc;Dp=1;var e=Ds();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return nc=t,nc}var oc,qp;function S0(){if(qp)return oc;qp=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return oc=t,oc}var ic,Lp;function E0(){if(Lp)return ic;Lp=1;var e=Xa(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return ic=n,ic}var ac,Fp;function O0(){if(Fp)return ac;Fp=1;var e=Ds(),t=w0(),r=S0(),n=E0(),i=sf(),a="[object Boolean]",l="[object Date]",s="[object Map]",c="[object Number]",u="[object RegExp]",d="[object Set]",m="[object String]",h="[object Symbol]",y="[object ArrayBuffer]",g="[object DataView]",f="[object Float32Array]",b="[object Float64Array]",v="[object Int8Array]",p="[object Int16Array]",_="[object Int32Array]",S="[object Uint8Array]",w="[object Uint8ClampedArray]",E="[object Uint16Array]",x="[object Uint32Array]";function P(k,j,R){var O=k.constructor;switch(j){case y:return e(k);case a:case l:return new O(+k);case g:return t(k,R);case f:case b:case v:case p:case _:case S:case w:case E:case x:return i(k,R);case s:return new O;case c:case m:return new O(k);case u:return r(k);case d:return new O;case h:return n(k)}}return ac=P,ac}var sc,zp;function x0(){if(zp)return sc;zp=1;var e=tc(),t=Zr(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return sc=n,sc}var lc,Vp;function C0(){if(Vp)return lc;Vp=1;var e=x0(),t=il(),r=al(),n=r&&r.isMap,i=n?t(n):e;return lc=i,lc}var cc,Bp;function T0(){if(Bp)return cc;Bp=1;var e=tc(),t=Zr(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return cc=n,cc}var uc,Up;function P0(){if(Up)return uc;Up=1;var e=T0(),t=il(),r=al(),n=r&&r.isSet,i=n?t(n):e;return uc=i,uc}var dc,Wp;function $0(){if(Wp)return dc;Wp=1;var e=Kd(),t=a0(),r=Df(),n=c0(),i=u0(),a=rf(),l=cf(),s=f0(),c=p0(),u=h0(),d=m0(),m=tc(),h=_0(),y=O0(),g=yf(),f=jo(),b=tl(),v=C0(),p=xr(),_=P0(),S=Ml(),w=yn(),E=1,x=2,P=4,k="[object Arguments]",j="[object Array]",R="[object Boolean]",O="[object Date]",D="[object Error]",N="[object Function]",U="[object GeneratorFunction]",W="[object Map]",le="[object Number]",ce="[object Object]",ue="[object RegExp]",z="[object Set]",C="[object String]",V="[object Symbol]",M="[object WeakMap]",T="[object ArrayBuffer]",$="[object DataView]",q="[object Float32Array]",K="[object Float64Array]",re="[object Int8Array]",ie="[object Int16Array]",te="[object Int32Array]",L="[object Uint8Array]",I="[object Uint8ClampedArray]",G="[object Uint16Array]",X="[object Uint32Array]",oe={};oe[k]=oe[j]=oe[T]=oe[$]=oe[R]=oe[O]=oe[q]=oe[K]=oe[re]=oe[ie]=oe[te]=oe[W]=oe[le]=oe[ce]=oe[ue]=oe[z]=oe[C]=oe[V]=oe[L]=oe[I]=oe[G]=oe[X]=!0,oe[D]=oe[N]=oe[M]=!1;function ye(ve,fe,Te,be,Ee,he){var $e,Ie=fe&E,ot=fe&x,Qe=fe&P;if(Te&&($e=Ee?Te(ve,be,Ee,he):Te(ve)),$e!==void 0)return $e;if(!p(ve))return ve;var _t=f(ve);if(_t){if($e=h(ve),!Ie)return l(ve,$e)}else{var et=m(ve),Tt=et==N||et==U;if(b(ve))return a(ve,Ie);if(et==ce||et==k||Tt&&!Ee){if($e=ot||Tt?{}:g(ve),!Ie)return ot?c(ve,i($e,ve)):s(ve,n($e,ve))}else{if(!oe[et])return Ee?ve:{};$e=y(ve,et,Ie)}}he||(he=new e);var Je=he.get(ve);if(Je)return Je;he.set(ve,$e),_(ve)?ve.forEach(function(ft){$e.add(ye(ft,fe,Te,ft,ve,he))}):v(ve)&&ve.forEach(function(ft,ct){$e.set(ct,ye(ft,fe,Te,ct,ve,he))});var Oe=Qe?ot?d:u:ot?w:S,He=_t?void 0:Oe(ve);return t(He||ve,function(ft,ct){He&&(ct=ft,ft=ve[ct]),r($e,ct,ye(ft,fe,Te,ct,ve,he))}),$e}return dc=ye,dc}var fc,Hp;function R0(){if(Hp)return fc;Hp=1;var e=$0(),t=1,r=4;function n(i){return e(i,t|r)}return fc=n,fc}var k0=R0();const Ao=Ut(k0);var pc,Kp;function I0(){if(Kp)return pc;Kp=1;var e=mn(),t=sp(),r=yn(),n=t(function(i,a){e(a,r(a),i)});return pc=n,pc}var hc,Gp;function j0(){return Gp||(Gp=1,hc=I0()),hc}var N0=j0();const A0=Ut(N0);var mc,Yp;function M0(){if(Yp)return mc;Yp=1;function e(t){return t===void 0}return mc=e,mc}var D0=M0();const q0=Ut(D0);var yc={},Jp;function L0(){return Jp||(Jp=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,d;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!=="'")d=i.indexOf("]",c),d===-1&&(d=i.length),l.push(i.slice(a+1,d)),a=i.slice(d+1,d+2)==="."?d+2:d+1;else{for(d=i.indexOf(u+"]",c),d===-1&&(d=i.length);i.slice(d-1,d)==="\\"&&c<i.length;)c++,d=i.indexOf(u+"]",c);l.push(i.slice(a+2,d).replace(r[u],u).replace(/\\+/g,function(m){return new Array(Math.ceil(m.length/2)+1).join("\\")})),a=i.slice(d+2,d+3)==="."?d+3:d+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 d=c.toString();return!l&&/^[A-z_]\w*$/.exec(d)?u!==0?"."+d:d:!l&&/^\d+$/.exec(d)?"["+d+"]":(d=d.replace(s,"\\$1"),"["+a+d+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})()})(yc)),yc}var gc,Xp;function F0(){return Xp||(Xp=1,gc=L0().ObjectPath),gc}var z0=F0();const Rt=Ut(z0);var Mo={exports:{}},vc={},Cr={},Qr={},bc={},_c={},wc={},Zp;function Do(){return Zp||(Zp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(p){if(super(),!e.IDENTIFIER.test(p))throw new Error("CodeGen: name must be a valid identifier");this.str=p}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(p){super(),this._items=typeof p=="string"?[p]:p}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const p=this._items[0];return p===""||p==='""'}get str(){var p;return(p=this._str)!==null&&p!==void 0?p:this._str=this._items.reduce((_,S)=>`${_}${S}`,"")}get names(){var p;return(p=this._names)!==null&&p!==void 0?p:this._names=this._items.reduce((_,S)=>(S instanceof r&&(_[S.str]=(_[S.str]||0)+1),_),{})}}e._Code=n,e.nil=new n("");function i(v,...p){const _=[v[0]];let S=0;for(;S<p.length;)s(_,p[S]),_.push(v[++S]);return new n(_)}e._=i;const a=new n("+");function l(v,...p){const _=[y(v[0])];let S=0;for(;S<p.length;)_.push(a),s(_,p[S]),_.push(a,y(v[++S]));return c(_),new n(_)}e.str=l;function s(v,p){p instanceof n?v.push(...p._items):p instanceof r?v.push(p):v.push(m(p))}e.addCodeArg=s;function c(v){let p=1;for(;p<v.length-1;){if(v[p]===a){const _=u(v[p-1],v[p+1]);if(_!==void 0){v.splice(p-1,3,_);continue}v[p++]="+"}p++}}function u(v,p){if(p==='""')return v;if(v==='""')return p;if(typeof v=="string")return p instanceof r||v[v.length-1]!=='"'?void 0:typeof p!="string"?`${v.slice(0,-1)}${p}"`:p[0]==='"'?v.slice(0,-1)+p.slice(1):void 0;if(typeof p=="string"&&p[0]==='"'&&!(v instanceof r))return`"${v}${p.slice(1)}`}function d(v,p){return p.emptyStr()?v:v.emptyStr()?p:l`${v}${p}`}e.strConcat=d;function m(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:y(Array.isArray(v)?v.join(","):v)}function h(v){return new n(y(v))}e.stringify=h;function y(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=y;function g(v){return typeof v=="string"&&e.IDENTIFIER.test(v)?new n(`.${v}`):i`[${v}]`}e.getProperty=g;function f(v){if(typeof v=="string"&&e.IDENTIFIER.test(v))return new n(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}e.getEsmExportName=f;function b(v){return new n(v.toString())}e.regexpCode=b})(wc)),wc}var Sc={},Qp;function eh(){return Qp||(Qp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Do();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:u,parent:d}={}){this._names={},this._prefixes=u,this._parent=d}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const d=this._names[u]||this._nameGroup(u);return`${u}${d.index++}`}_nameGroup(u){var d,m;if(!((m=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||m===void 0)&&m.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=i;class a extends t.Name{constructor(u,d){super(d),this.prefix=u}setValue(u,{property:d,itemIndex:m}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(d)}[${m}]`}}e.ValueScopeName=a;const l=(0,t._)`\n`;class s extends i{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?l:t.nil}}get(){return this._scope}name(u){return new a(u,this._newName(u))}value(u,d){var m;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const h=this.toName(u),{prefix:y}=h,g=(m=d.key)!==null&&m!==void 0?m:d.ref;let f=this._values[y];if(f){const p=f.get(g);if(p)return p}else f=this._values[y]=new Map;f.set(g,h);const b=this._scope[y]||(this._scope[y]=[]),v=b.length;return b[v]=d.ref,h.setValue(d,{property:y,itemIndex:v}),h}getValue(u,d){const m=this._values[u];if(m)return m.get(d)}scopeRefs(u,d=this._values){return this._reduceValues(d,m=>{if(m.scopePath===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return(0,t._)`${u}${m.scopePath}`})}scopeCode(u=this._values,d,m){return this._reduceValues(u,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},d,m)}_reduceValues(u,d,m={},h){let y=t.nil;for(const g in u){const f=u[g];if(!f)continue;const b=m[g]=m[g]||new Map;f.forEach(v=>{if(b.has(v))return;b.set(v,n.Started);let p=d(v);if(p){const _=this.opts.es5?e.varKinds.var:e.varKinds.const;y=(0,t._)`${y}${_} ${v} = ${p};${this.opts._n}`}else if(p=h?.(v))y=(0,t._)`${y}${p}${this.opts._n}`;else throw new r(v);b.set(v,n.Completed)})}return y}}e.ValueScope=s})(Sc)),Sc}var th;function De(){return th||(th=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Do(),r=eh();var n=Do();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=eh();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(T,$){return this}}class l extends a{constructor(T,$,q){super(),this.varKind=T,this.name=$,this.rhs=q}render({es5:T,_n:$}){const q=T?r.varKinds.var:this.varKind,K=this.rhs===void 0?"":` = ${this.rhs}`;return`${q} ${this.name}${K};`+$}optimizeNames(T,$){if(T[this.name.str])return this.rhs&&(this.rhs=N(this.rhs,T,$)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(T,$,q){super(),this.lhs=T,this.rhs=$,this.sideEffects=q}render({_n:T}){return`${this.lhs} = ${this.rhs};`+T}optimizeNames(T,$){if(!(this.lhs instanceof t.Name&&!T[this.lhs.str]&&!this.sideEffects))return this.rhs=N(this.rhs,T,$),this}get names(){const T=this.lhs instanceof t.Name?{}:{...this.lhs.names};return D(T,this.rhs)}}class c extends s{constructor(T,$,q,K){super(T,q,K),this.op=$}render({_n:T}){return`${this.lhs} ${this.op}= ${this.rhs};`+T}}class u extends a{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`${this.label}:`+T}}class d extends a{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`break${this.label?` ${this.label}`:""};`+T}}class m extends a{constructor(T){super(),this.error=T}render({_n:T}){return`throw ${this.error};`+T}get names(){return this.error.names}}class h extends a{constructor(T){super(),this.code=T}render({_n:T}){return`${this.code};`+T}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(T,$){return this.code=N(this.code,T,$),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class y extends a{constructor(T=[]){super(),this.nodes=T}render(T){return this.nodes.reduce(($,q)=>$+q.render(T),"")}optimizeNodes(){const{nodes:T}=this;let $=T.length;for(;$--;){const q=T[$].optimizeNodes();Array.isArray(q)?T.splice($,1,...q):q?T[$]=q:T.splice($,1)}return T.length>0?this:void 0}optimizeNames(T,$){const{nodes:q}=this;let K=q.length;for(;K--;){const re=q[K];re.optimizeNames(T,$)||(U(T,re.names),q.splice(K,1))}return q.length>0?this:void 0}get names(){return this.nodes.reduce((T,$)=>O(T,$.names),{})}}class g extends y{render(T){return"{"+T._n+super.render(T)+"}"+T._n}}class f extends y{}class b extends g{}b.kind="else";class v extends g{constructor(T,$){super($),this.condition=T}render(T){let $=`if(${this.condition})`+super.render(T);return this.else&&($+="else "+this.else.render(T)),$}optimizeNodes(){super.optimizeNodes();const T=this.condition;if(T===!0)return this.nodes;let $=this.else;if($){const q=$.optimizeNodes();$=this.else=Array.isArray(q)?new b(q):q}if($)return T===!1?$ instanceof v?$:$.nodes:this.nodes.length?this:new v(W(T),$ instanceof v?[$]:$.nodes);if(!(T===!1||!this.nodes.length))return this}optimizeNames(T,$){var q;if(this.else=(q=this.else)===null||q===void 0?void 0:q.optimizeNames(T,$),!!(super.optimizeNames(T,$)||this.else))return this.condition=N(this.condition,T,$),this}get names(){const T=super.names;return D(T,this.condition),this.else&&O(T,this.else.names),T}}v.kind="if";class p extends g{}p.kind="for";class _ extends p{constructor(T){super(),this.iteration=T}render(T){return`for(${this.iteration})`+super.render(T)}optimizeNames(T,$){if(super.optimizeNames(T,$))return this.iteration=N(this.iteration,T,$),this}get names(){return O(super.names,this.iteration.names)}}class S extends p{constructor(T,$,q,K){super(),this.varKind=T,this.name=$,this.from=q,this.to=K}render(T){const $=T.es5?r.varKinds.var:this.varKind,{name:q,from:K,to:re}=this;return`for(${$} ${q}=${K}; ${q}<${re}; ${q}++)`+super.render(T)}get names(){const T=D(super.names,this.from);return D(T,this.to)}}class w extends p{constructor(T,$,q,K){super(),this.loop=T,this.varKind=$,this.name=q,this.iterable=K}render(T){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(T)}optimizeNames(T,$){if(super.optimizeNames(T,$))return this.iterable=N(this.iterable,T,$),this}get names(){return O(super.names,this.iterable.names)}}class E extends g{constructor(T,$,q){super(),this.name=T,this.args=$,this.async=q}render(T){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(T)}}E.kind="func";class x extends y{render(T){return"return "+super.render(T)}}x.kind="return";class P extends g{render(T){let $="try"+super.render(T);return this.catch&&($+=this.catch.render(T)),this.finally&&($+=this.finally.render(T)),$}optimizeNodes(){var T,$;return super.optimizeNodes(),(T=this.catch)===null||T===void 0||T.optimizeNodes(),($=this.finally)===null||$===void 0||$.optimizeNodes(),this}optimizeNames(T,$){var q,K;return super.optimizeNames(T,$),(q=this.catch)===null||q===void 0||q.optimizeNames(T,$),(K=this.finally)===null||K===void 0||K.optimizeNames(T,$),this}get names(){const T=super.names;return this.catch&&O(T,this.catch.names),this.finally&&O(T,this.finally.names),T}}class k extends g{constructor(T){super(),this.error=T}render(T){return`catch(${this.error})`+super.render(T)}}k.kind="catch";class j extends g{render(T){return"finally"+super.render(T)}}j.kind="finally";class R{constructor(T,$={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...$,_n:$.lines?`
|
|
7
|
-
`:""},this._extScope=T,this._scope=new r.Scope({parent:T}),this._nodes=[new f]}toString(){return this._root.render(this.opts)}name(T){return this._scope.name(T)}scopeName(T){return this._extScope.name(T)}scopeValue(T,$){const q=this._extScope.value(T,$);return(this._values[q.prefix]||(this._values[q.prefix]=new Set)).add(q),q}getScopeValue(T,$){return this._extScope.getValue(T,$)}scopeRefs(T){return this._extScope.scopeRefs(T,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(T,$,q,K){const re=this._scope.toName($);return q!==void 0&&K&&(this._constants[re.str]=q),this._leafNode(new l(T,re,q)),re}const(T,$,q){return this._def(r.varKinds.const,T,$,q)}let(T,$,q){return this._def(r.varKinds.let,T,$,q)}var(T,$,q){return this._def(r.varKinds.var,T,$,q)}assign(T,$,q){return this._leafNode(new s(T,$,q))}add(T,$){return this._leafNode(new c(T,e.operators.ADD,$))}code(T){return typeof T=="function"?T():T!==t.nil&&this._leafNode(new h(T)),this}object(...T){const $=["{"];for(const[q,K]of T)$.length>1&&$.push(","),$.push(q),(q!==K||this.opts.es5)&&($.push(":"),(0,t.addCodeArg)($,K));return $.push("}"),new t._Code($)}if(T,$,q){if(this._blockNode(new v(T)),$&&q)this.code($).else().code(q).endIf();else if($)this.code($).endIf();else if(q)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(T){return this._elseNode(new v(T))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(v,b)}_for(T,$){return this._blockNode(T),$&&this.code($).endFor(),this}for(T,$){return this._for(new _(T),$)}forRange(T,$,q,K,re=this.opts.es5?r.varKinds.var:r.varKinds.let){const ie=this._scope.toName(T);return this._for(new S(re,ie,$,q),()=>K(ie))}forOf(T,$,q,K=r.varKinds.const){const re=this._scope.toName(T);if(this.opts.es5){const ie=$ instanceof t.Name?$:this.var("_arr",$);return this.forRange("_i",0,(0,t._)`${ie}.length`,te=>{this.var(re,(0,t._)`${ie}[${te}]`),q(re)})}return this._for(new w("of",K,re,$),()=>q(re))}forIn(T,$,q,K=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(T,(0,t._)`Object.keys(${$})`,q);const re=this._scope.toName(T);return this._for(new w("in",K,re,$),()=>q(re))}endFor(){return this._endBlockNode(p)}label(T){return this._leafNode(new u(T))}break(T){return this._leafNode(new d(T))}return(T){const $=new x;if(this._blockNode($),this.code(T),$.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(T,$,q){if(!$&&!q)throw new Error('CodeGen: "try" without "catch" and "finally"');const K=new P;if(this._blockNode(K),this.code(T),$){const re=this.name("e");this._currNode=K.catch=new k(re),$(re)}return q&&(this._currNode=K.finally=new j,this.code(q)),this._endBlockNode(k,j)}throw(T){return this._leafNode(new m(T))}block(T,$){return this._blockStarts.push(this._nodes.length),T&&this.code(T).endBlock($),this}endBlock(T){const $=this._blockStarts.pop();if($===void 0)throw new Error("CodeGen: not in self-balancing block");const q=this._nodes.length-$;if(q<0||T!==void 0&&q!==T)throw new Error(`CodeGen: wrong number of nodes: ${q} vs ${T} expected`);return this._nodes.length=$,this}func(T,$=t.nil,q,K){return this._blockNode(new E(T,$,q)),K&&this.code(K).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(T=1){for(;T-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(T){return this._currNode.nodes.push(T),this}_blockNode(T){this._currNode.nodes.push(T),this._nodes.push(T)}_endBlockNode(T,$){const q=this._currNode;if(q instanceof T||$&&q instanceof $)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${$?`${T.kind}/${$.kind}`:T.kind}"`)}_elseNode(T){const $=this._currNode;if(!($ instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=$.else=T,this}get _root(){return this._nodes[0]}get _currNode(){const T=this._nodes;return T[T.length-1]}set _currNode(T){const $=this._nodes;$[$.length-1]=T}}e.CodeGen=R;function O(M,T){for(const $ in T)M[$]=(M[$]||0)+(T[$]||0);return M}function D(M,T){return T instanceof t._CodeOrName?O(M,T.names):M}function N(M,T,$){if(M instanceof t.Name)return q(M);if(!K(M))return M;return new t._Code(M._items.reduce((re,ie)=>(ie instanceof t.Name&&(ie=q(ie)),ie instanceof t._Code?re.push(...ie._items):re.push(ie),re),[]));function q(re){const ie=$[re.str];return ie===void 0||T[re.str]!==1?re:(delete T[re.str],ie)}function K(re){return re instanceof t._Code&&re._items.some(ie=>ie instanceof t.Name&&T[ie.str]===1&&$[ie.str]!==void 0)}}function U(M,T){for(const $ in T)M[$]=(M[$]||0)-(T[$]||0)}function W(M){return typeof M=="boolean"||typeof M=="number"||M===null?!M:(0,t._)`!${V(M)}`}e.not=W;const le=C(e.operators.AND);function ce(...M){return M.reduce(le)}e.and=ce;const ue=C(e.operators.OR);function z(...M){return M.reduce(ue)}e.or=z;function C(M){return(T,$)=>T===t.nil?$:$===t.nil?T:(0,t._)`${V(T)} ${M} ${V($)}`}function V(M){return M instanceof t.Name?M:(0,t._)`(${M})`}})(_c)),_c}var qe={},rh;function Ge(){if(rh)return qe;rh=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.checkStrictMode=qe.getErrorPath=qe.Type=qe.useFunc=qe.setEvaluated=qe.evaluatedPropsToName=qe.mergeEvaluated=qe.eachItem=qe.unescapeJsonPointer=qe.escapeJsonPointer=qe.escapeFragment=qe.unescapeFragment=qe.schemaRefOrVal=qe.schemaHasRulesButRef=qe.schemaHasRules=qe.checkUnknownRules=qe.alwaysValidSchema=qe.toHash=void 0;const e=De(),t=Do();function r(w){const E={};for(const x of w)E[x]=!0;return E}qe.toHash=r;function n(w,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(i(w,E),!a(E,w.self.RULES.all))}qe.alwaysValidSchema=n;function i(w,E=w.schema){const{opts:x,self:P}=w;if(!x.strictSchema||typeof E=="boolean")return;const k=P.RULES.keywords;for(const j in E)k[j]||S(w,`unknown keyword: "${j}"`)}qe.checkUnknownRules=i;function a(w,E){if(typeof w=="boolean")return!w;for(const x in w)if(E[x])return!0;return!1}qe.schemaHasRules=a;function l(w,E){if(typeof w=="boolean")return!w;for(const x in w)if(x!=="$ref"&&E.all[x])return!0;return!1}qe.schemaHasRulesButRef=l;function s({topSchemaRef:w,schemaPath:E},x,P,k){if(!k){if(typeof x=="number"||typeof x=="boolean")return x;if(typeof x=="string")return(0,e._)`${x}`}return(0,e._)`${w}${E}${(0,e.getProperty)(P)}`}qe.schemaRefOrVal=s;function c(w){return m(decodeURIComponent(w))}qe.unescapeFragment=c;function u(w){return encodeURIComponent(d(w))}qe.escapeFragment=u;function d(w){return typeof w=="number"?`${w}`:w.replace(/~/g,"~0").replace(/\//g,"~1")}qe.escapeJsonPointer=d;function m(w){return w.replace(/~1/g,"/").replace(/~0/g,"~")}qe.unescapeJsonPointer=m;function h(w,E){if(Array.isArray(w))for(const x of w)E(x);else E(w)}qe.eachItem=h;function y({mergeNames:w,mergeToName:E,mergeValues:x,resultToName:P}){return(k,j,R,O)=>{const D=R===void 0?j:R instanceof e.Name?(j instanceof e.Name?w(k,j,R):E(k,j,R),R):j instanceof e.Name?(E(k,R,j),j):x(j,R);return O===e.Name&&!(D instanceof e.Name)?P(k,D):D}}qe.mergeEvaluated={props:y({mergeNames:(w,E,x)=>w.if((0,e._)`${x} !== true && ${E} !== undefined`,()=>{w.if((0,e._)`${E} === true`,()=>w.assign(x,!0),()=>w.assign(x,(0,e._)`${x} || {}`).code((0,e._)`Object.assign(${x}, ${E})`))}),mergeToName:(w,E,x)=>w.if((0,e._)`${x} !== true`,()=>{E===!0?w.assign(x,!0):(w.assign(x,(0,e._)`${x} || {}`),f(w,x,E))}),mergeValues:(w,E)=>w===!0?!0:{...w,...E},resultToName:g}),items:y({mergeNames:(w,E,x)=>w.if((0,e._)`${x} !== true && ${E} !== undefined`,()=>w.assign(x,(0,e._)`${E} === true ? true : ${x} > ${E} ? ${x} : ${E}`)),mergeToName:(w,E,x)=>w.if((0,e._)`${x} !== true`,()=>w.assign(x,E===!0?!0:(0,e._)`${x} > ${E} ? ${x} : ${E}`)),mergeValues:(w,E)=>w===!0?!0:Math.max(w,E),resultToName:(w,E)=>w.var("items",E)})};function g(w,E){if(E===!0)return w.var("props",!0);const x=w.var("props",(0,e._)`{}`);return E!==void 0&&f(w,x,E),x}qe.evaluatedPropsToName=g;function f(w,E,x){Object.keys(x).forEach(P=>w.assign((0,e._)`${E}${(0,e.getProperty)(P)}`,!0))}qe.setEvaluated=f;const b={};function v(w,E){return w.scopeValue("func",{ref:E,code:b[E.code]||(b[E.code]=new t._Code(E.code))})}qe.useFunc=v;var p;(function(w){w[w.Num=0]="Num",w[w.Str=1]="Str"})(p||(qe.Type=p={}));function _(w,E,x){if(w instanceof e.Name){const P=E===p.Num;return x?P?(0,e._)`"[" + ${w} + "]"`:(0,e._)`"['" + ${w} + "']"`:P?(0,e._)`"/" + ${w}`:(0,e._)`"/" + ${w}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return x?(0,e.getProperty)(w).toString():"/"+d(w)}qe.getErrorPath=_;function S(w,E,x=w.opts.strictSchema){if(x){if(E=`strict mode: ${E}`,x===!0)throw new Error(E);w.self.logger.warn(E)}}return qe.checkStrictMode=S,qe}var qo={},nh;function Dr(){if(nh)return qo;nh=1,Object.defineProperty(qo,"__esModule",{value:!0});const e=De(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return qo.default=t,qo}var oh;function Lo(){return oh||(oh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=De(),r=Ge(),n=Dr();e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:v})=>v?(0,t.str)`"${b}" keyword must be ${v} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function i(b,v=e.keywordError,p,_){const{it:S}=b,{gen:w,compositeRule:E,allErrors:x}=S,P=m(b,v,p);_??(E||x)?c(w,P):u(S,(0,t._)`[${P}]`)}e.reportError=i;function a(b,v=e.keywordError,p){const{it:_}=b,{gen:S,compositeRule:w,allErrors:E}=_,x=m(b,v,p);c(S,x),w||E||u(_,n.default.vErrors)}e.reportExtraError=a;function l(b,v){b.assign(n.default.errors,v),b.if((0,t._)`${n.default.vErrors} !== null`,()=>b.if(v,()=>b.assign((0,t._)`${n.default.vErrors}.length`,v),()=>b.assign(n.default.vErrors,null)))}e.resetErrorsCount=l;function s({gen:b,keyword:v,schemaValue:p,data:_,errsCount:S,it:w}){if(S===void 0)throw new Error("ajv implementation error");const E=b.name("err");b.forRange("i",S,n.default.errors,x=>{b.const(E,(0,t._)`${n.default.vErrors}[${x}]`),b.if((0,t._)`${E}.instancePath === undefined`,()=>b.assign((0,t._)`${E}.instancePath`,(0,t.strConcat)(n.default.instancePath,w.errorPath))),b.assign((0,t._)`${E}.schemaPath`,(0,t.str)`${w.errSchemaPath}/${v}`),w.opts.verbose&&(b.assign((0,t._)`${E}.schema`,p),b.assign((0,t._)`${E}.data`,_))})}e.extendErrors=s;function c(b,v){const p=b.const("err",v);b.if((0,t._)`${n.default.vErrors} === null`,()=>b.assign(n.default.vErrors,(0,t._)`[${p}]`),(0,t._)`${n.default.vErrors}.push(${p})`),b.code((0,t._)`${n.default.errors}++`)}function u(b,v){const{gen:p,validateName:_,schemaEnv:S}=b;S.$async?p.throw((0,t._)`new ${b.ValidationError}(${v})`):(p.assign((0,t._)`${_}.errors`,v),p.return(!1))}const d={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function m(b,v,p){const{createErrors:_}=b.it;return _===!1?(0,t._)`{}`:h(b,v,p)}function h(b,v,p={}){const{gen:_,it:S}=b,w=[y(S,p),g(b,p)];return f(b,v,w),_.object(...w)}function y({errorPath:b},{instancePath:v}){const p=v?(0,t.str)`${b}${(0,r.getErrorPath)(v,r.Type.Str)}`:b;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,p)]}function g({keyword:b,it:{errSchemaPath:v}},{schemaPath:p,parentSchema:_}){let S=_?v:(0,t.str)`${v}/${b}`;return p&&(S=(0,t.str)`${S}${(0,r.getErrorPath)(p,r.Type.Str)}`),[d.schemaPath,S]}function f(b,{params:v,message:p},_){const{keyword:S,data:w,schemaValue:E,it:x}=b,{opts:P,propertyName:k,topSchemaRef:j,schemaPath:R}=x;_.push([d.keyword,S],[d.params,typeof v=="function"?v(b):v||(0,t._)`{}`]),P.messages&&_.push([d.message,typeof p=="function"?p(b):p]),P.verbose&&_.push([d.schema,E],[d.parentSchema,(0,t._)`${j}${R}`],[n.default.data,w]),k&&_.push([d.propertyName,k])}})(bc)),bc}var ih;function V0(){if(ih)return Qr;ih=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.boolOrEmptySchema=Qr.topBoolOrEmptySchema=void 0;const e=Lo(),t=De(),r=Dr(),n={message:"boolean schema is false"};function i(s){const{gen:c,schema:u,validateName:d}=s;u===!1?l(s,!1):typeof u=="object"&&u.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${d}.errors`,null),c.return(!0))}Qr.topBoolOrEmptySchema=i;function a(s,c){const{gen:u,schema:d}=s;d===!1?(u.var(c,!1),l(s)):u.var(c,!0)}Qr.boolOrEmptySchema=a;function l(s,c){const{gen:u,data:d}=s,m={gen:u,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:s};(0,e.reportError)(m,n,void 0,c)}return Qr}var Pt={},en={},ah;function sh(){if(ah)return en;ah=1,Object.defineProperty(en,"__esModule",{value:!0}),en.getRules=en.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(i){return typeof i=="string"&&t.has(i)}en.isJSONType=r;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return en.getRules=n,en}var Tr={},lh;function ch(){if(lh)return Tr;lh=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.shouldUseRule=Tr.shouldUseGroup=Tr.schemaHasRulesForType=void 0;function e({schema:n,self:i},a){const l=i.RULES.types[a];return l&&l!==!0&&t(n,l)}Tr.schemaHasRulesForType=e;function t(n,i){return i.rules.some(a=>r(n,a))}Tr.shouldUseGroup=t;function r(n,i){var a;return n[i.keyword]!==void 0||((a=i.definition.implements)===null||a===void 0?void 0:a.some(l=>n[l]!==void 0))}return Tr.shouldUseRule=r,Tr}var uh;function Fo(){if(uh)return Pt;uh=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.reportTypeError=Pt.checkDataTypes=Pt.checkDataType=Pt.coerceAndCheckDataType=Pt.getJSONTypes=Pt.getSchemaTypes=Pt.DataType=void 0;const e=sh(),t=ch(),r=Lo(),n=De(),i=Ge();var a;(function(p){p[p.Correct=0]="Correct",p[p.Wrong=1]="Wrong"})(a||(Pt.DataType=a={}));function l(p){const _=s(p.type);if(_.includes("null")){if(p.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!_.length&&p.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');p.nullable===!0&&_.push("null")}return _}Pt.getSchemaTypes=l;function s(p){const _=Array.isArray(p)?p:p?[p]:[];if(_.every(e.isJSONType))return _;throw new Error("type must be JSONType or JSONType[]: "+_.join(","))}Pt.getJSONTypes=s;function c(p,_){const{gen:S,data:w,opts:E}=p,x=d(_,E.coerceTypes),P=_.length>0&&!(x.length===0&&_.length===1&&(0,t.schemaHasRulesForType)(p,_[0]));if(P){const k=g(_,w,E.strictNumbers,a.Wrong);S.if(k,()=>{x.length?m(p,_,x):b(p)})}return P}Pt.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function d(p,_){return _?p.filter(S=>u.has(S)||_==="array"&&S==="array"):[]}function m(p,_,S){const{gen:w,data:E,opts:x}=p,P=w.let("dataType",(0,n._)`typeof ${E}`),k=w.let("coerced",(0,n._)`undefined`);x.coerceTypes==="array"&&w.if((0,n._)`${P} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>w.assign(E,(0,n._)`${E}[0]`).assign(P,(0,n._)`typeof ${E}`).if(g(_,E,x.strictNumbers),()=>w.assign(k,E))),w.if((0,n._)`${k} !== undefined`);for(const R of S)(u.has(R)||R==="array"&&x.coerceTypes==="array")&&j(R);w.else(),b(p),w.endIf(),w.if((0,n._)`${k} !== undefined`,()=>{w.assign(E,k),h(p,k)});function j(R){switch(R){case"string":w.elseIf((0,n._)`${P} == "number" || ${P} == "boolean"`).assign(k,(0,n._)`"" + ${E}`).elseIf((0,n._)`${E} === null`).assign(k,(0,n._)`""`);return;case"number":w.elseIf((0,n._)`${P} == "boolean" || ${E} === null
|
|
6
|
+
<%s key={someKey} {...props} />`,T,K,re,K),z[K+T]=!0)}if(K=null,A!==void 0&&(r(A),K=""+A),l(V)&&(r(V.key),K=""+V.key),"key"in V){A={};for(var ie in V)ie!=="key"&&(A[ie]=V[ie])}else A=V;return K&&s(A,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,K,A,i(),$,D)}function m(C){h(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===k&&(C._payload.status==="fulfilled"?h(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function h(C){return typeof C=="object"&&C!==null&&C.$$typeof===g}var y=ke,g=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),S=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),R=Symbol.for("react.client.reference"),O=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,N=Array.isArray,U=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(C){return C()}};var W,le={},ce=y.react_stack_bottom_frame.bind(y,a)(),ue=U(n(a)),z={};Mn.Fragment=b,Mn.jsx=function(C,V,A){var T=1e4>O.recentlyCreatedOwnerStacks++;return d(C,V,A,!1,T?Error("react-stack-top-frame"):ce,T?U(n(C)):ue)},Mn.jsxs=function(C,V,A){var T=1e4>O.recentlyCreatedOwnerStacks++;return d(C,V,A,!0,T?Error("react-stack-top-frame"):ce,T?U(n(C)):ue)}})()),Mn}var ed;function eb(){return ed||(ed=1,process.env.NODE_ENV==="production"?To.exports=Zv():To.exports=Qv()),To.exports}var F=eb(),Ma,td;function tb(){if(td)return Ma;td=1;function e(){this.__data__=[],this.size=0}return Ma=e,Ma}var Da,rd;function Po(){if(rd)return Da;rd=1;function e(t,r){return t===r||t!==t&&r!==r}return Da=e,Da}var qa,nd;function $o(){if(nd)return qa;nd=1;var e=Po();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return qa=t,qa}var La,od;function rb(){if(od)return La;od=1;var e=$o(),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 La=n,La}var Fa,id;function nb(){if(id)return Fa;id=1;var e=$o();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Fa=t,Fa}var za,ad;function ob(){if(ad)return za;ad=1;var e=$o();function t(r){return e(this.__data__,r)>-1}return za=t,za}var Va,sd;function ib(){if(sd)return Va;sd=1;var e=$o();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 Va=t,Va}var Ba,ld;function Ro(){if(ld)return Ba;ld=1;var e=tb(),t=rb(),r=nb(),n=ob(),i=ib();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,Ba=a,Ba}var Ua,cd;function ab(){if(cd)return Ua;cd=1;var e=Ro();function t(){this.__data__=new e,this.size=0}return Ua=t,Ua}var Wa,ud;function sb(){if(ud)return Wa;ud=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Wa=e,Wa}var Ha,dd;function lb(){if(dd)return Ha;dd=1;function e(t){return this.__data__.get(t)}return Ha=e,Ha}var Ka,fd;function cb(){if(fd)return Ka;fd=1;function e(t){return this.__data__.has(t)}return Ka=e,Ka}var Ga,pd;function hd(){if(pd)return Ga;pd=1;var e=typeof Co=="object"&&Co&&Co.Object===Object&&Co;return Ga=e,Ga}var Ya,md;function pr(){if(md)return Ya;md=1;var e=hd(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ya=r,Ya}var Ja,yd;function Xa(){if(yd)return Ja;yd=1;var e=pr(),t=e.Symbol;return Ja=t,Ja}var Za,gd;function ub(){if(gd)return Za;gd=1;var e=Xa(),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 d=n.call(l);return u&&(s?l[i]=c:delete l[i]),d}return Za=a,Za}var Qa,vd;function db(){if(vd)return Qa;vd=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Qa=r,Qa}var es,bd;function Dn(){if(bd)return es;bd=1;var e=Xa(),t=ub(),r=db(),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 es=l,es}var ts,_d;function xr(){if(_d)return ts;_d=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ts=e,ts}var rs,wd;function ns(){if(wd)return rs;wd=1;var e=Dn(),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 rs=l,rs}var os,Sd;function fb(){if(Sd)return os;Sd=1;var e=pr(),t=e["__core-js_shared__"];return os=t,os}var is,Ed;function pb(){if(Ed)return is;Ed=1;var e=fb(),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 is=r,is}var as,Od;function xd(){if(Od)return as;Od=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 as=r,as}var ss,Cd;function hb(){if(Cd)return ss;Cd=1;var e=ns(),t=pb(),r=xr(),n=xd(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,l=Function.prototype,s=Object.prototype,c=l.toString,u=s.hasOwnProperty,d=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(h){if(!r(h)||t(h))return!1;var y=e(h)?d:a;return y.test(n(h))}return ss=m,ss}var ls,Td;function mb(){if(Td)return ls;Td=1;function e(t,r){return t?.[r]}return ls=e,ls}var cs,Pd;function Xr(){if(Pd)return cs;Pd=1;var e=hb(),t=mb();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return cs=r,cs}var us,$d;function ds(){if($d)return us;$d=1;var e=Xr(),t=pr(),r=e(t,"Map");return us=r,us}var fs,Rd;function ko(){if(Rd)return fs;Rd=1;var e=Xr(),t=e(Object,"create");return fs=t,fs}var ps,kd;function yb(){if(kd)return ps;kd=1;var e=ko();function t(){this.__data__=e?e(null):{},this.size=0}return ps=t,ps}var hs,Id;function gb(){if(Id)return hs;Id=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return hs=e,hs}var ms,jd;function vb(){if(jd)return ms;jd=1;var e=ko(),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 ms=i,ms}var ys,Nd;function bb(){if(Nd)return ys;Nd=1;var e=ko(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return ys=n,ys}var gs,Ad;function _b(){if(Ad)return gs;Ad=1;var e=ko(),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 gs=r,gs}var vs,Md;function wb(){if(Md)return vs;Md=1;var e=yb(),t=gb(),r=vb(),n=bb(),i=_b();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,vs=a,vs}var bs,Dd;function Sb(){if(Dd)return bs;Dd=1;var e=wb(),t=Ro(),r=ds();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return bs=n,bs}var _s,qd;function Eb(){if(qd)return _s;qd=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return _s=e,_s}var ws,Ld;function Io(){if(Ld)return ws;Ld=1;var e=Eb();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return ws=t,ws}var Ss,Fd;function Ob(){if(Fd)return Ss;Fd=1;var e=Io();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Ss=t,Ss}var Es,zd;function xb(){if(zd)return Es;zd=1;var e=Io();function t(r){return e(this,r).get(r)}return Es=t,Es}var Os,Vd;function Cb(){if(Vd)return Os;Vd=1;var e=Io();function t(r){return e(this,r).has(r)}return Os=t,Os}var xs,Bd;function Tb(){if(Bd)return xs;Bd=1;var e=Io();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 xs=t,xs}var Cs,Ud;function Pb(){if(Ud)return Cs;Ud=1;var e=Sb(),t=Ob(),r=xb(),n=Cb(),i=Tb();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,Cs=a,Cs}var Ts,Wd;function $b(){if(Wd)return Ts;Wd=1;var e=Ro(),t=ds(),r=Pb(),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 Ts=i,Ts}var Ps,Hd;function Kd(){if(Hd)return Ps;Hd=1;var e=Ro(),t=ab(),r=sb(),n=lb(),i=cb(),a=$b();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,Ps=l,Ps}var $s,Gd;function Yd(){if(Gd)return $s;Gd=1;var e=Xr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return $s=t,$s}var Rs,Jd;function ks(){if(Jd)return Rs;Jd=1;var e=Yd();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Rs=t,Rs}var Is,Xd;function Zd(){if(Xd)return Is;Xd=1;var e=ks(),t=Po();function r(n,i,a){(a!==void 0&&!t(n[i],a)||a===void 0&&!(i in n))&&e(n,i,a)}return Is=r,Is}var js,Qd;function Rb(){if(Qd)return js;Qd=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 js=e,js}var Ns,ef;function kb(){if(ef)return Ns;ef=1;var e=Rb(),t=e();return Ns=t,Ns}var qn={exports:{}};qn.exports;var tf;function rf(){return tf||(tf=1,(function(e,t){var r=pr(),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,d){if(d)return u.slice();var m=u.length,h=s?s(m):new u.constructor(m);return u.copy(h),h}e.exports=c})(qn,qn.exports)),qn.exports}var As,nf;function Ib(){if(nf)return As;nf=1;var e=pr(),t=e.Uint8Array;return As=t,As}var Ms,of;function Ds(){if(of)return Ms;of=1;var e=Ib();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return Ms=t,Ms}var qs,af;function sf(){if(af)return qs;af=1;var e=Ds();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return qs=t,qs}var Ls,lf;function cf(){if(lf)return Ls;lf=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 Ls=e,Ls}var Fs,uf;function jb(){if(uf)return Fs;uf=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 Fs=r,Fs}var zs,df;function ff(){if(df)return zs;df=1;function e(t,r){return function(n){return t(r(n))}}return zs=e,zs}var Vs,pf;function Bs(){if(pf)return Vs;pf=1;var e=ff(),t=e(Object.getPrototypeOf,Object);return Vs=t,Vs}var Us,hf;function Ws(){if(hf)return Us;hf=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Us=t,Us}var Hs,mf;function yf(){if(mf)return Hs;mf=1;var e=jb(),t=Bs(),r=Ws();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return Hs=n,Hs}var Ks,gf;function Zr(){if(gf)return Ks;gf=1;function e(t){return t!=null&&typeof t=="object"}return Ks=e,Ks}var Gs,vf;function Nb(){if(vf)return Gs;vf=1;var e=Dn(),t=Zr(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Gs=n,Gs}var Ys,bf;function _f(){if(bf)return Ys;bf=1;var e=Nb(),t=Zr(),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 Ys=a,Ys}var Js,wf;function jo(){if(wf)return Js;wf=1;var e=Array.isArray;return Js=e,Js}var Xs,Sf;function Ef(){if(Sf)return Xs;Sf=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Xs=t,Xs}var Zs,Of;function No(){if(Of)return Zs;Of=1;var e=ns(),t=Ef();function r(n){return n!=null&&t(n.length)&&!e(n)}return Zs=r,Zs}var Qs,xf;function Ab(){if(xf)return Qs;xf=1;var e=No(),t=Zr();function r(n){return t(n)&&e(n)}return Qs=r,Qs}var Ln={exports:{}},el,Cf;function Mb(){if(Cf)return el;Cf=1;function e(){return!1}return el=e,el}Ln.exports;var Tf;function tl(){return Tf||(Tf=1,(function(e,t){var r=pr(),n=Mb(),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})(Ln,Ln.exports)),Ln.exports}var rl,Pf;function Db(){if(Pf)return rl;Pf=1;var e=Dn(),t=Bs(),r=Zr(),n="[object Object]",i=Function.prototype,a=Object.prototype,l=i.toString,s=a.hasOwnProperty,c=l.call(Object);function u(d){if(!r(d)||e(d)!=n)return!1;var m=t(d);if(m===null)return!0;var h=s.call(m,"constructor")&&m.constructor;return typeof h=="function"&&h instanceof h&&l.call(h)==c}return rl=u,rl}var nl,$f;function qb(){if($f)return nl;$f=1;var e=Dn(),t=Ef(),r=Zr(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",l="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",m="[object Object]",h="[object RegExp]",y="[object Set]",g="[object String]",f="[object WeakMap]",b="[object ArrayBuffer]",v="[object DataView]",p="[object Float32Array]",_="[object Float64Array]",S="[object Int8Array]",w="[object Int16Array]",E="[object Int32Array]",x="[object Uint8Array]",P="[object Uint8ClampedArray]",k="[object Uint16Array]",M="[object Uint32Array]",R={};R[p]=R[_]=R[S]=R[w]=R[E]=R[x]=R[P]=R[k]=R[M]=!0,R[n]=R[i]=R[b]=R[a]=R[v]=R[l]=R[s]=R[c]=R[u]=R[d]=R[m]=R[h]=R[y]=R[g]=R[f]=!1;function O(q){return r(q)&&t(q.length)&&!!R[e(q)]}return nl=O,nl}var ol,Rf;function il(){if(Rf)return ol;Rf=1;function e(t){return function(r){return t(r)}}return ol=e,ol}var Fn={exports:{}};Fn.exports;var kf;function al(){return kf||(kf=1,(function(e,t){var r=hd(),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})(Fn,Fn.exports)),Fn.exports}var sl,If;function jf(){if(If)return sl;If=1;var e=qb(),t=il(),r=al(),n=r&&r.isTypedArray,i=n?t(n):e;return sl=i,sl}var ll,Nf;function Af(){if(Nf)return ll;Nf=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return ll=e,ll}var cl,Mf;function Df(){if(Mf)return cl;Mf=1;var e=ks(),t=Po(),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 cl=i,cl}var ul,qf;function mn(){if(qf)return ul;qf=1;var e=Df(),t=ks();function r(n,i,a,l){var s=!a;a||(a={});for(var c=-1,u=i.length;++c<u;){var d=i[c],m=l?l(a[d],n[d],d,a,n):void 0;m===void 0&&(m=n[d]),s?t(a,d,m):e(a,d,m)}return a}return ul=r,ul}var dl,Lf;function Lb(){if(Lf)return dl;Lf=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return dl=e,dl}var fl,Ff;function zf(){if(Ff)return fl;Ff=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 fl=r,fl}var pl,Vf;function Bf(){if(Vf)return pl;Vf=1;var e=Lb(),t=_f(),r=jo(),n=tl(),i=zf(),a=jf(),l=Object.prototype,s=l.hasOwnProperty;function c(u,d){var m=r(u),h=!m&&t(u),y=!m&&!h&&n(u),g=!m&&!h&&!y&&a(u),f=m||h||y||g,b=f?e(u.length,String):[],v=b.length;for(var p in u)(d||s.call(u,p))&&!(f&&(p=="length"||y&&(p=="offset"||p=="parent")||g&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||i(p,v)))&&b.push(p);return b}return pl=c,pl}var hl,Uf;function Fb(){if(Uf)return hl;Uf=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return hl=e,hl}var ml,Wf;function zb(){if(Wf)return ml;Wf=1;var e=xr(),t=Ws(),r=Fb(),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 ml=a,ml}var yl,Hf;function yn(){if(Hf)return yl;Hf=1;var e=Bf(),t=zb(),r=No();function n(i){return r(i)?e(i,!0):t(i)}return yl=n,yl}var gl,Kf;function Vb(){if(Kf)return gl;Kf=1;var e=mn(),t=yn();function r(n){return e(n,t(n))}return gl=r,gl}var vl,Gf;function Bb(){if(Gf)return vl;Gf=1;var e=Zd(),t=rf(),r=sf(),n=cf(),i=yf(),a=_f(),l=jo(),s=Ab(),c=tl(),u=ns(),d=xr(),m=Db(),h=jf(),y=Af(),g=Vb();function f(b,v,p,_,S,w,E){var x=y(b,p),P=y(v,p),k=E.get(P);if(k){e(b,p,k);return}var M=w?w(x,P,p+"",b,v,E):void 0,R=M===void 0;if(R){var O=l(P),q=!O&&c(P),N=!O&&!q&&h(P);M=P,O||q||N?l(x)?M=x:s(x)?M=n(x):q?(R=!1,M=t(P,!0)):N?(R=!1,M=r(P,!0)):M=[]:m(P)||a(P)?(M=x,a(x)?M=g(x):(!d(x)||u(x))&&(M=i(P))):R=!1}R&&(E.set(P,M),S(M,P,_,w,E),E.delete(P)),e(b,p,M)}return vl=f,vl}var bl,Yf;function Ub(){if(Yf)return bl;Yf=1;var e=Kd(),t=Zd(),r=kb(),n=Bb(),i=xr(),a=yn(),l=Af();function s(c,u,d,m,h){c!==u&&r(u,function(y,g){if(h||(h=new e),i(y))n(c,u,g,d,s,m,h);else{var f=m?m(l(c,g),y,g+"",c,u,h):void 0;f===void 0&&(f=y),t(c,g,f)}},a)}return bl=s,bl}var _l,Jf;function Xf(){if(Jf)return _l;Jf=1;function e(t){return t}return _l=e,_l}var wl,Zf;function Wb(){if(Zf)return wl;Zf=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 wl=e,wl}var Sl,Qf;function Hb(){if(Qf)return Sl;Qf=1;var e=Wb(),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 d=Array(i+1);++s<i;)d[s]=l[s];return d[i]=a(u),e(n,this,d)}}return Sl=r,Sl}var El,ep;function Kb(){if(ep)return El;ep=1;function e(t){return function(){return t}}return El=e,El}var Ol,tp;function Gb(){if(tp)return Ol;tp=1;var e=Kb(),t=Yd(),r=Xf(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Ol=n,Ol}var xl,rp;function Yb(){if(rp)return xl;rp=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 xl=n,xl}var Cl,np;function Jb(){if(np)return Cl;np=1;var e=Gb(),t=Yb(),r=t(e);return Cl=r,Cl}var Tl,op;function Xb(){if(op)return Tl;op=1;var e=Xf(),t=Hb(),r=Jb();function n(i,a){return r(t(i,a,e),i+"")}return Tl=n,Tl}var Pl,ip;function Zb(){if(ip)return Pl;ip=1;var e=Po(),t=No(),r=zf(),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 Pl=i,Pl}var $l,ap;function sp(){if(ap)return $l;ap=1;var e=Xb(),t=Zb();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 d=a[l];d&&n(i,d,l,c)}return i})}return $l=r,$l}var Rl,lp;function Qb(){if(lp)return Rl;lp=1;var e=Ub(),t=sp(),r=t(function(n,i,a){e(n,i,a)});return Rl=r,Rl}var e0=Qb();const t0=Ut(e0);var kl,cp;function r0(){if(cp)return kl;cp=1;function e(t){return t==null}return kl=e,kl}var n0=r0();const up=Ut(n0);var o0=xr();const i0=Ut(o0);var Il,dp;function a0(){if(dp)return Il;dp=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 Il=e,Il}var jl,fp;function s0(){if(fp)return jl;fp=1;var e=ff(),t=e(Object.keys,Object);return jl=t,jl}var Nl,pp;function l0(){if(pp)return Nl;pp=1;var e=Ws(),t=s0(),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 Nl=i,Nl}var Al,hp;function Ml(){if(hp)return Al;hp=1;var e=Bf(),t=l0(),r=No();function n(i){return r(i)?e(i):t(i)}return Al=n,Al}var Dl,mp;function c0(){if(mp)return Dl;mp=1;var e=mn(),t=Ml();function r(n,i){return n&&e(i,t(i),n)}return Dl=r,Dl}var ql,yp;function u0(){if(yp)return ql;yp=1;var e=mn(),t=yn();function r(n,i){return n&&e(i,t(i),n)}return ql=r,ql}var Ll,gp;function d0(){if(gp)return Ll;gp=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 Ll=e,Ll}var Fl,vp;function bp(){if(vp)return Fl;vp=1;function e(){return[]}return Fl=e,Fl}var zl,_p;function Vl(){if(_p)return zl;_p=1;var e=d0(),t=bp(),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 zl=a,zl}var Bl,wp;function f0(){if(wp)return Bl;wp=1;var e=mn(),t=Vl();function r(n,i){return e(n,t(n),i)}return Bl=r,Bl}var Ul,Sp;function Ep(){if(Sp)return Ul;Sp=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 Ul=e,Ul}var Wl,Op;function xp(){if(Op)return Wl;Op=1;var e=Ep(),t=Bs(),r=Vl(),n=bp(),i=Object.getOwnPropertySymbols,a=i?function(l){for(var s=[];l;)e(s,r(l)),l=t(l);return s}:n;return Wl=a,Wl}var Hl,Cp;function p0(){if(Cp)return Hl;Cp=1;var e=mn(),t=xp();function r(n,i){return e(n,t(n),i)}return Hl=r,Hl}var Kl,Tp;function Pp(){if(Tp)return Kl;Tp=1;var e=Ep(),t=jo();function r(n,i,a){var l=i(n);return t(n)?l:e(l,a(n))}return Kl=r,Kl}var Gl,$p;function h0(){if($p)return Gl;$p=1;var e=Pp(),t=Vl(),r=Ml();function n(i){return e(i,r,t)}return Gl=n,Gl}var Yl,Rp;function m0(){if(Rp)return Yl;Rp=1;var e=Pp(),t=xp(),r=yn();function n(i){return e(i,r,t)}return Yl=n,Yl}var Jl,kp;function y0(){if(kp)return Jl;kp=1;var e=Xr(),t=pr(),r=e(t,"DataView");return Jl=r,Jl}var Xl,Ip;function g0(){if(Ip)return Xl;Ip=1;var e=Xr(),t=pr(),r=e(t,"Promise");return Xl=r,Xl}var Zl,jp;function v0(){if(jp)return Zl;jp=1;var e=Xr(),t=pr(),r=e(t,"Set");return Zl=r,Zl}var Ql,Np;function b0(){if(Np)return Ql;Np=1;var e=Xr(),t=pr(),r=e(t,"WeakMap");return Ql=r,Ql}var ec,Ap;function tc(){if(Ap)return ec;Ap=1;var e=y0(),t=ds(),r=g0(),n=v0(),i=b0(),a=Dn(),l=xd(),s="[object Map]",c="[object Object]",u="[object Promise]",d="[object Set]",m="[object WeakMap]",h="[object DataView]",y=l(e),g=l(t),f=l(r),b=l(n),v=l(i),p=a;return(e&&p(new e(new ArrayBuffer(1)))!=h||t&&p(new t)!=s||r&&p(r.resolve())!=u||n&&p(new n)!=d||i&&p(new i)!=m)&&(p=function(_){var S=a(_),w=S==c?_.constructor:void 0,E=w?l(w):"";if(E)switch(E){case y:return h;case g:return s;case f:return u;case b:return d;case v:return m}return S}),ec=p,ec}var rc,Mp;function _0(){if(Mp)return rc;Mp=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 rc=r,rc}var nc,Dp;function w0(){if(Dp)return nc;Dp=1;var e=Ds();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return nc=t,nc}var oc,qp;function S0(){if(qp)return oc;qp=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return oc=t,oc}var ic,Lp;function E0(){if(Lp)return ic;Lp=1;var e=Xa(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return ic=n,ic}var ac,Fp;function O0(){if(Fp)return ac;Fp=1;var e=Ds(),t=w0(),r=S0(),n=E0(),i=sf(),a="[object Boolean]",l="[object Date]",s="[object Map]",c="[object Number]",u="[object RegExp]",d="[object Set]",m="[object String]",h="[object Symbol]",y="[object ArrayBuffer]",g="[object DataView]",f="[object Float32Array]",b="[object Float64Array]",v="[object Int8Array]",p="[object Int16Array]",_="[object Int32Array]",S="[object Uint8Array]",w="[object Uint8ClampedArray]",E="[object Uint16Array]",x="[object Uint32Array]";function P(k,M,R){var O=k.constructor;switch(M){case y:return e(k);case a:case l:return new O(+k);case g:return t(k,R);case f:case b:case v:case p:case _:case S:case w:case E:case x:return i(k,R);case s:return new O;case c:case m:return new O(k);case u:return r(k);case d:return new O;case h:return n(k)}}return ac=P,ac}var sc,zp;function x0(){if(zp)return sc;zp=1;var e=tc(),t=Zr(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return sc=n,sc}var lc,Vp;function C0(){if(Vp)return lc;Vp=1;var e=x0(),t=il(),r=al(),n=r&&r.isMap,i=n?t(n):e;return lc=i,lc}var cc,Bp;function T0(){if(Bp)return cc;Bp=1;var e=tc(),t=Zr(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return cc=n,cc}var uc,Up;function P0(){if(Up)return uc;Up=1;var e=T0(),t=il(),r=al(),n=r&&r.isSet,i=n?t(n):e;return uc=i,uc}var dc,Wp;function $0(){if(Wp)return dc;Wp=1;var e=Kd(),t=a0(),r=Df(),n=c0(),i=u0(),a=rf(),l=cf(),s=f0(),c=p0(),u=h0(),d=m0(),m=tc(),h=_0(),y=O0(),g=yf(),f=jo(),b=tl(),v=C0(),p=xr(),_=P0(),S=Ml(),w=yn(),E=1,x=2,P=4,k="[object Arguments]",M="[object Array]",R="[object Boolean]",O="[object Date]",q="[object Error]",N="[object Function]",U="[object GeneratorFunction]",W="[object Map]",le="[object Number]",ce="[object Object]",ue="[object RegExp]",z="[object Set]",C="[object String]",V="[object Symbol]",A="[object WeakMap]",T="[object ArrayBuffer]",$="[object DataView]",D="[object Float32Array]",K="[object Float64Array]",re="[object Int8Array]",ie="[object Int16Array]",te="[object Int32Array]",L="[object Uint8Array]",I="[object Uint8ClampedArray]",G="[object Uint16Array]",X="[object Uint32Array]",ne={};ne[k]=ne[M]=ne[T]=ne[$]=ne[R]=ne[O]=ne[D]=ne[K]=ne[re]=ne[ie]=ne[te]=ne[W]=ne[le]=ne[ce]=ne[ue]=ne[z]=ne[C]=ne[V]=ne[L]=ne[I]=ne[G]=ne[X]=!0,ne[q]=ne[N]=ne[A]=!1;function he(ve,fe,Te,be,Ee,ge){var $e,Ie=fe&E,ot=fe&x,Qe=fe&P;if(Te&&($e=Ee?Te(ve,be,Ee,ge):Te(ve)),$e!==void 0)return $e;if(!p(ve))return ve;var _t=f(ve);if(_t){if($e=h(ve),!Ie)return l(ve,$e)}else{var et=m(ve),Tt=et==N||et==U;if(b(ve))return a(ve,Ie);if(et==ce||et==k||Tt&&!Ee){if($e=ot||Tt?{}:g(ve),!Ie)return ot?c(ve,i($e,ve)):s(ve,n($e,ve))}else{if(!ne[et])return Ee?ve:{};$e=y(ve,et,Ie)}}ge||(ge=new e);var Je=ge.get(ve);if(Je)return Je;ge.set(ve,$e),_(ve)?ve.forEach(function(dt){$e.add(he(dt,fe,Te,dt,ve,ge))}):v(ve)&&ve.forEach(function(dt,ft){$e.set(ft,he(dt,fe,Te,ft,ve,ge))});var Oe=Qe?ot?d:u:ot?w:S,He=_t?void 0:Oe(ve);return t(He||ve,function(dt,ft){He&&(ft=dt,dt=ve[ft]),r($e,ft,he(dt,fe,Te,ft,ve,ge))}),$e}return dc=he,dc}var fc,Hp;function R0(){if(Hp)return fc;Hp=1;var e=$0(),t=1,r=4;function n(i){return e(i,t|r)}return fc=n,fc}var k0=R0();const Ao=Ut(k0);var pc,Kp;function I0(){if(Kp)return pc;Kp=1;var e=mn(),t=sp(),r=yn(),n=t(function(i,a){e(a,r(a),i)});return pc=n,pc}var hc,Gp;function j0(){return Gp||(Gp=1,hc=I0()),hc}var N0=j0();const A0=Ut(N0);var mc,Yp;function M0(){if(Yp)return mc;Yp=1;function e(t){return t===void 0}return mc=e,mc}var D0=M0();const q0=Ut(D0);var yc={},Jp;function L0(){return Jp||(Jp=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,d;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!=="'")d=i.indexOf("]",c),d===-1&&(d=i.length),l.push(i.slice(a+1,d)),a=i.slice(d+1,d+2)==="."?d+2:d+1;else{for(d=i.indexOf(u+"]",c),d===-1&&(d=i.length);i.slice(d-1,d)==="\\"&&c<i.length;)c++,d=i.indexOf(u+"]",c);l.push(i.slice(a+2,d).replace(r[u],u).replace(/\\+/g,function(m){return new Array(Math.ceil(m.length/2)+1).join("\\")})),a=i.slice(d+2,d+3)==="."?d+3:d+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 d=c.toString();return!l&&/^[A-z_]\w*$/.exec(d)?u!==0?"."+d:d:!l&&/^\d+$/.exec(d)?"["+d+"]":(d=d.replace(s,"\\$1"),"["+a+d+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})()})(yc)),yc}var gc,Xp;function F0(){return Xp||(Xp=1,gc=L0().ObjectPath),gc}var z0=F0();const Rt=Ut(z0);var Mo={exports:{}},vc={},Cr={},Qr={},bc={},_c={},wc={},Zp;function Do(){return Zp||(Zp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(p){if(super(),!e.IDENTIFIER.test(p))throw new Error("CodeGen: name must be a valid identifier");this.str=p}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(p){super(),this._items=typeof p=="string"?[p]:p}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const p=this._items[0];return p===""||p==='""'}get str(){var p;return(p=this._str)!==null&&p!==void 0?p:this._str=this._items.reduce((_,S)=>`${_}${S}`,"")}get names(){var p;return(p=this._names)!==null&&p!==void 0?p:this._names=this._items.reduce((_,S)=>(S instanceof r&&(_[S.str]=(_[S.str]||0)+1),_),{})}}e._Code=n,e.nil=new n("");function i(v,...p){const _=[v[0]];let S=0;for(;S<p.length;)s(_,p[S]),_.push(v[++S]);return new n(_)}e._=i;const a=new n("+");function l(v,...p){const _=[y(v[0])];let S=0;for(;S<p.length;)_.push(a),s(_,p[S]),_.push(a,y(v[++S]));return c(_),new n(_)}e.str=l;function s(v,p){p instanceof n?v.push(...p._items):p instanceof r?v.push(p):v.push(m(p))}e.addCodeArg=s;function c(v){let p=1;for(;p<v.length-1;){if(v[p]===a){const _=u(v[p-1],v[p+1]);if(_!==void 0){v.splice(p-1,3,_);continue}v[p++]="+"}p++}}function u(v,p){if(p==='""')return v;if(v==='""')return p;if(typeof v=="string")return p instanceof r||v[v.length-1]!=='"'?void 0:typeof p!="string"?`${v.slice(0,-1)}${p}"`:p[0]==='"'?v.slice(0,-1)+p.slice(1):void 0;if(typeof p=="string"&&p[0]==='"'&&!(v instanceof r))return`"${v}${p.slice(1)}`}function d(v,p){return p.emptyStr()?v:v.emptyStr()?p:l`${v}${p}`}e.strConcat=d;function m(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:y(Array.isArray(v)?v.join(","):v)}function h(v){return new n(y(v))}e.stringify=h;function y(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=y;function g(v){return typeof v=="string"&&e.IDENTIFIER.test(v)?new n(`.${v}`):i`[${v}]`}e.getProperty=g;function f(v){if(typeof v=="string"&&e.IDENTIFIER.test(v))return new n(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}e.getEsmExportName=f;function b(v){return new n(v.toString())}e.regexpCode=b})(wc)),wc}var Sc={},Qp;function eh(){return Qp||(Qp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Do();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:u,parent:d}={}){this._names={},this._prefixes=u,this._parent=d}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const d=this._names[u]||this._nameGroup(u);return`${u}${d.index++}`}_nameGroup(u){var d,m;if(!((m=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||m===void 0)&&m.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=i;class a extends t.Name{constructor(u,d){super(d),this.prefix=u}setValue(u,{property:d,itemIndex:m}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(d)}[${m}]`}}e.ValueScopeName=a;const l=(0,t._)`\n`;class s extends i{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?l:t.nil}}get(){return this._scope}name(u){return new a(u,this._newName(u))}value(u,d){var m;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const h=this.toName(u),{prefix:y}=h,g=(m=d.key)!==null&&m!==void 0?m:d.ref;let f=this._values[y];if(f){const p=f.get(g);if(p)return p}else f=this._values[y]=new Map;f.set(g,h);const b=this._scope[y]||(this._scope[y]=[]),v=b.length;return b[v]=d.ref,h.setValue(d,{property:y,itemIndex:v}),h}getValue(u,d){const m=this._values[u];if(m)return m.get(d)}scopeRefs(u,d=this._values){return this._reduceValues(d,m=>{if(m.scopePath===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return(0,t._)`${u}${m.scopePath}`})}scopeCode(u=this._values,d,m){return this._reduceValues(u,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},d,m)}_reduceValues(u,d,m={},h){let y=t.nil;for(const g in u){const f=u[g];if(!f)continue;const b=m[g]=m[g]||new Map;f.forEach(v=>{if(b.has(v))return;b.set(v,n.Started);let p=d(v);if(p){const _=this.opts.es5?e.varKinds.var:e.varKinds.const;y=(0,t._)`${y}${_} ${v} = ${p};${this.opts._n}`}else if(p=h?.(v))y=(0,t._)`${y}${p}${this.opts._n}`;else throw new r(v);b.set(v,n.Completed)})}return y}}e.ValueScope=s})(Sc)),Sc}var th;function De(){return th||(th=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Do(),r=eh();var n=Do();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=eh();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(T,$){return this}}class l extends a{constructor(T,$,D){super(),this.varKind=T,this.name=$,this.rhs=D}render({es5:T,_n:$}){const D=T?r.varKinds.var:this.varKind,K=this.rhs===void 0?"":` = ${this.rhs}`;return`${D} ${this.name}${K};`+$}optimizeNames(T,$){if(T[this.name.str])return this.rhs&&(this.rhs=N(this.rhs,T,$)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(T,$,D){super(),this.lhs=T,this.rhs=$,this.sideEffects=D}render({_n:T}){return`${this.lhs} = ${this.rhs};`+T}optimizeNames(T,$){if(!(this.lhs instanceof t.Name&&!T[this.lhs.str]&&!this.sideEffects))return this.rhs=N(this.rhs,T,$),this}get names(){const T=this.lhs instanceof t.Name?{}:{...this.lhs.names};return q(T,this.rhs)}}class c extends s{constructor(T,$,D,K){super(T,D,K),this.op=$}render({_n:T}){return`${this.lhs} ${this.op}= ${this.rhs};`+T}}class u extends a{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`${this.label}:`+T}}class d extends a{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`break${this.label?` ${this.label}`:""};`+T}}class m extends a{constructor(T){super(),this.error=T}render({_n:T}){return`throw ${this.error};`+T}get names(){return this.error.names}}class h extends a{constructor(T){super(),this.code=T}render({_n:T}){return`${this.code};`+T}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(T,$){return this.code=N(this.code,T,$),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class y extends a{constructor(T=[]){super(),this.nodes=T}render(T){return this.nodes.reduce(($,D)=>$+D.render(T),"")}optimizeNodes(){const{nodes:T}=this;let $=T.length;for(;$--;){const D=T[$].optimizeNodes();Array.isArray(D)?T.splice($,1,...D):D?T[$]=D:T.splice($,1)}return T.length>0?this:void 0}optimizeNames(T,$){const{nodes:D}=this;let K=D.length;for(;K--;){const re=D[K];re.optimizeNames(T,$)||(U(T,re.names),D.splice(K,1))}return D.length>0?this:void 0}get names(){return this.nodes.reduce((T,$)=>O(T,$.names),{})}}class g extends y{render(T){return"{"+T._n+super.render(T)+"}"+T._n}}class f extends y{}class b extends g{}b.kind="else";class v extends g{constructor(T,$){super($),this.condition=T}render(T){let $=`if(${this.condition})`+super.render(T);return this.else&&($+="else "+this.else.render(T)),$}optimizeNodes(){super.optimizeNodes();const T=this.condition;if(T===!0)return this.nodes;let $=this.else;if($){const D=$.optimizeNodes();$=this.else=Array.isArray(D)?new b(D):D}if($)return T===!1?$ instanceof v?$:$.nodes:this.nodes.length?this:new v(W(T),$ instanceof v?[$]:$.nodes);if(!(T===!1||!this.nodes.length))return this}optimizeNames(T,$){var D;if(this.else=(D=this.else)===null||D===void 0?void 0:D.optimizeNames(T,$),!!(super.optimizeNames(T,$)||this.else))return this.condition=N(this.condition,T,$),this}get names(){const T=super.names;return q(T,this.condition),this.else&&O(T,this.else.names),T}}v.kind="if";class p extends g{}p.kind="for";class _ extends p{constructor(T){super(),this.iteration=T}render(T){return`for(${this.iteration})`+super.render(T)}optimizeNames(T,$){if(super.optimizeNames(T,$))return this.iteration=N(this.iteration,T,$),this}get names(){return O(super.names,this.iteration.names)}}class S extends p{constructor(T,$,D,K){super(),this.varKind=T,this.name=$,this.from=D,this.to=K}render(T){const $=T.es5?r.varKinds.var:this.varKind,{name:D,from:K,to:re}=this;return`for(${$} ${D}=${K}; ${D}<${re}; ${D}++)`+super.render(T)}get names(){const T=q(super.names,this.from);return q(T,this.to)}}class w extends p{constructor(T,$,D,K){super(),this.loop=T,this.varKind=$,this.name=D,this.iterable=K}render(T){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(T)}optimizeNames(T,$){if(super.optimizeNames(T,$))return this.iterable=N(this.iterable,T,$),this}get names(){return O(super.names,this.iterable.names)}}class E extends g{constructor(T,$,D){super(),this.name=T,this.args=$,this.async=D}render(T){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(T)}}E.kind="func";class x extends y{render(T){return"return "+super.render(T)}}x.kind="return";class P extends g{render(T){let $="try"+super.render(T);return this.catch&&($+=this.catch.render(T)),this.finally&&($+=this.finally.render(T)),$}optimizeNodes(){var T,$;return super.optimizeNodes(),(T=this.catch)===null||T===void 0||T.optimizeNodes(),($=this.finally)===null||$===void 0||$.optimizeNodes(),this}optimizeNames(T,$){var D,K;return super.optimizeNames(T,$),(D=this.catch)===null||D===void 0||D.optimizeNames(T,$),(K=this.finally)===null||K===void 0||K.optimizeNames(T,$),this}get names(){const T=super.names;return this.catch&&O(T,this.catch.names),this.finally&&O(T,this.finally.names),T}}class k extends g{constructor(T){super(),this.error=T}render(T){return`catch(${this.error})`+super.render(T)}}k.kind="catch";class M extends g{render(T){return"finally"+super.render(T)}}M.kind="finally";class R{constructor(T,$={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...$,_n:$.lines?`
|
|
7
|
+
`:""},this._extScope=T,this._scope=new r.Scope({parent:T}),this._nodes=[new f]}toString(){return this._root.render(this.opts)}name(T){return this._scope.name(T)}scopeName(T){return this._extScope.name(T)}scopeValue(T,$){const D=this._extScope.value(T,$);return(this._values[D.prefix]||(this._values[D.prefix]=new Set)).add(D),D}getScopeValue(T,$){return this._extScope.getValue(T,$)}scopeRefs(T){return this._extScope.scopeRefs(T,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(T,$,D,K){const re=this._scope.toName($);return D!==void 0&&K&&(this._constants[re.str]=D),this._leafNode(new l(T,re,D)),re}const(T,$,D){return this._def(r.varKinds.const,T,$,D)}let(T,$,D){return this._def(r.varKinds.let,T,$,D)}var(T,$,D){return this._def(r.varKinds.var,T,$,D)}assign(T,$,D){return this._leafNode(new s(T,$,D))}add(T,$){return this._leafNode(new c(T,e.operators.ADD,$))}code(T){return typeof T=="function"?T():T!==t.nil&&this._leafNode(new h(T)),this}object(...T){const $=["{"];for(const[D,K]of T)$.length>1&&$.push(","),$.push(D),(D!==K||this.opts.es5)&&($.push(":"),(0,t.addCodeArg)($,K));return $.push("}"),new t._Code($)}if(T,$,D){if(this._blockNode(new v(T)),$&&D)this.code($).else().code(D).endIf();else if($)this.code($).endIf();else if(D)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(T){return this._elseNode(new v(T))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(v,b)}_for(T,$){return this._blockNode(T),$&&this.code($).endFor(),this}for(T,$){return this._for(new _(T),$)}forRange(T,$,D,K,re=this.opts.es5?r.varKinds.var:r.varKinds.let){const ie=this._scope.toName(T);return this._for(new S(re,ie,$,D),()=>K(ie))}forOf(T,$,D,K=r.varKinds.const){const re=this._scope.toName(T);if(this.opts.es5){const ie=$ instanceof t.Name?$:this.var("_arr",$);return this.forRange("_i",0,(0,t._)`${ie}.length`,te=>{this.var(re,(0,t._)`${ie}[${te}]`),D(re)})}return this._for(new w("of",K,re,$),()=>D(re))}forIn(T,$,D,K=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(T,(0,t._)`Object.keys(${$})`,D);const re=this._scope.toName(T);return this._for(new w("in",K,re,$),()=>D(re))}endFor(){return this._endBlockNode(p)}label(T){return this._leafNode(new u(T))}break(T){return this._leafNode(new d(T))}return(T){const $=new x;if(this._blockNode($),this.code(T),$.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(T,$,D){if(!$&&!D)throw new Error('CodeGen: "try" without "catch" and "finally"');const K=new P;if(this._blockNode(K),this.code(T),$){const re=this.name("e");this._currNode=K.catch=new k(re),$(re)}return D&&(this._currNode=K.finally=new M,this.code(D)),this._endBlockNode(k,M)}throw(T){return this._leafNode(new m(T))}block(T,$){return this._blockStarts.push(this._nodes.length),T&&this.code(T).endBlock($),this}endBlock(T){const $=this._blockStarts.pop();if($===void 0)throw new Error("CodeGen: not in self-balancing block");const D=this._nodes.length-$;if(D<0||T!==void 0&&D!==T)throw new Error(`CodeGen: wrong number of nodes: ${D} vs ${T} expected`);return this._nodes.length=$,this}func(T,$=t.nil,D,K){return this._blockNode(new E(T,$,D)),K&&this.code(K).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(T=1){for(;T-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(T){return this._currNode.nodes.push(T),this}_blockNode(T){this._currNode.nodes.push(T),this._nodes.push(T)}_endBlockNode(T,$){const D=this._currNode;if(D instanceof T||$&&D instanceof $)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${$?`${T.kind}/${$.kind}`:T.kind}"`)}_elseNode(T){const $=this._currNode;if(!($ instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=$.else=T,this}get _root(){return this._nodes[0]}get _currNode(){const T=this._nodes;return T[T.length-1]}set _currNode(T){const $=this._nodes;$[$.length-1]=T}}e.CodeGen=R;function O(A,T){for(const $ in T)A[$]=(A[$]||0)+(T[$]||0);return A}function q(A,T){return T instanceof t._CodeOrName?O(A,T.names):A}function N(A,T,$){if(A instanceof t.Name)return D(A);if(!K(A))return A;return new t._Code(A._items.reduce((re,ie)=>(ie instanceof t.Name&&(ie=D(ie)),ie instanceof t._Code?re.push(...ie._items):re.push(ie),re),[]));function D(re){const ie=$[re.str];return ie===void 0||T[re.str]!==1?re:(delete T[re.str],ie)}function K(re){return re instanceof t._Code&&re._items.some(ie=>ie instanceof t.Name&&T[ie.str]===1&&$[ie.str]!==void 0)}}function U(A,T){for(const $ in T)A[$]=(A[$]||0)-(T[$]||0)}function W(A){return typeof A=="boolean"||typeof A=="number"||A===null?!A:(0,t._)`!${V(A)}`}e.not=W;const le=C(e.operators.AND);function ce(...A){return A.reduce(le)}e.and=ce;const ue=C(e.operators.OR);function z(...A){return A.reduce(ue)}e.or=z;function C(A){return(T,$)=>T===t.nil?$:$===t.nil?T:(0,t._)`${V(T)} ${A} ${V($)}`}function V(A){return A instanceof t.Name?A:(0,t._)`(${A})`}})(_c)),_c}var qe={},rh;function Ge(){if(rh)return qe;rh=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.checkStrictMode=qe.getErrorPath=qe.Type=qe.useFunc=qe.setEvaluated=qe.evaluatedPropsToName=qe.mergeEvaluated=qe.eachItem=qe.unescapeJsonPointer=qe.escapeJsonPointer=qe.escapeFragment=qe.unescapeFragment=qe.schemaRefOrVal=qe.schemaHasRulesButRef=qe.schemaHasRules=qe.checkUnknownRules=qe.alwaysValidSchema=qe.toHash=void 0;const e=De(),t=Do();function r(w){const E={};for(const x of w)E[x]=!0;return E}qe.toHash=r;function n(w,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(i(w,E),!a(E,w.self.RULES.all))}qe.alwaysValidSchema=n;function i(w,E=w.schema){const{opts:x,self:P}=w;if(!x.strictSchema||typeof E=="boolean")return;const k=P.RULES.keywords;for(const M in E)k[M]||S(w,`unknown keyword: "${M}"`)}qe.checkUnknownRules=i;function a(w,E){if(typeof w=="boolean")return!w;for(const x in w)if(E[x])return!0;return!1}qe.schemaHasRules=a;function l(w,E){if(typeof w=="boolean")return!w;for(const x in w)if(x!=="$ref"&&E.all[x])return!0;return!1}qe.schemaHasRulesButRef=l;function s({topSchemaRef:w,schemaPath:E},x,P,k){if(!k){if(typeof x=="number"||typeof x=="boolean")return x;if(typeof x=="string")return(0,e._)`${x}`}return(0,e._)`${w}${E}${(0,e.getProperty)(P)}`}qe.schemaRefOrVal=s;function c(w){return m(decodeURIComponent(w))}qe.unescapeFragment=c;function u(w){return encodeURIComponent(d(w))}qe.escapeFragment=u;function d(w){return typeof w=="number"?`${w}`:w.replace(/~/g,"~0").replace(/\//g,"~1")}qe.escapeJsonPointer=d;function m(w){return w.replace(/~1/g,"/").replace(/~0/g,"~")}qe.unescapeJsonPointer=m;function h(w,E){if(Array.isArray(w))for(const x of w)E(x);else E(w)}qe.eachItem=h;function y({mergeNames:w,mergeToName:E,mergeValues:x,resultToName:P}){return(k,M,R,O)=>{const q=R===void 0?M:R instanceof e.Name?(M instanceof e.Name?w(k,M,R):E(k,M,R),R):M instanceof e.Name?(E(k,R,M),M):x(M,R);return O===e.Name&&!(q instanceof e.Name)?P(k,q):q}}qe.mergeEvaluated={props:y({mergeNames:(w,E,x)=>w.if((0,e._)`${x} !== true && ${E} !== undefined`,()=>{w.if((0,e._)`${E} === true`,()=>w.assign(x,!0),()=>w.assign(x,(0,e._)`${x} || {}`).code((0,e._)`Object.assign(${x}, ${E})`))}),mergeToName:(w,E,x)=>w.if((0,e._)`${x} !== true`,()=>{E===!0?w.assign(x,!0):(w.assign(x,(0,e._)`${x} || {}`),f(w,x,E))}),mergeValues:(w,E)=>w===!0?!0:{...w,...E},resultToName:g}),items:y({mergeNames:(w,E,x)=>w.if((0,e._)`${x} !== true && ${E} !== undefined`,()=>w.assign(x,(0,e._)`${E} === true ? true : ${x} > ${E} ? ${x} : ${E}`)),mergeToName:(w,E,x)=>w.if((0,e._)`${x} !== true`,()=>w.assign(x,E===!0?!0:(0,e._)`${x} > ${E} ? ${x} : ${E}`)),mergeValues:(w,E)=>w===!0?!0:Math.max(w,E),resultToName:(w,E)=>w.var("items",E)})};function g(w,E){if(E===!0)return w.var("props",!0);const x=w.var("props",(0,e._)`{}`);return E!==void 0&&f(w,x,E),x}qe.evaluatedPropsToName=g;function f(w,E,x){Object.keys(x).forEach(P=>w.assign((0,e._)`${E}${(0,e.getProperty)(P)}`,!0))}qe.setEvaluated=f;const b={};function v(w,E){return w.scopeValue("func",{ref:E,code:b[E.code]||(b[E.code]=new t._Code(E.code))})}qe.useFunc=v;var p;(function(w){w[w.Num=0]="Num",w[w.Str=1]="Str"})(p||(qe.Type=p={}));function _(w,E,x){if(w instanceof e.Name){const P=E===p.Num;return x?P?(0,e._)`"[" + ${w} + "]"`:(0,e._)`"['" + ${w} + "']"`:P?(0,e._)`"/" + ${w}`:(0,e._)`"/" + ${w}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return x?(0,e.getProperty)(w).toString():"/"+d(w)}qe.getErrorPath=_;function S(w,E,x=w.opts.strictSchema){if(x){if(E=`strict mode: ${E}`,x===!0)throw new Error(E);w.self.logger.warn(E)}}return qe.checkStrictMode=S,qe}var qo={},nh;function Dr(){if(nh)return qo;nh=1,Object.defineProperty(qo,"__esModule",{value:!0});const e=De(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return qo.default=t,qo}var oh;function Lo(){return oh||(oh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=De(),r=Ge(),n=Dr();e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:v})=>v?(0,t.str)`"${b}" keyword must be ${v} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function i(b,v=e.keywordError,p,_){const{it:S}=b,{gen:w,compositeRule:E,allErrors:x}=S,P=m(b,v,p);_??(E||x)?c(w,P):u(S,(0,t._)`[${P}]`)}e.reportError=i;function a(b,v=e.keywordError,p){const{it:_}=b,{gen:S,compositeRule:w,allErrors:E}=_,x=m(b,v,p);c(S,x),w||E||u(_,n.default.vErrors)}e.reportExtraError=a;function l(b,v){b.assign(n.default.errors,v),b.if((0,t._)`${n.default.vErrors} !== null`,()=>b.if(v,()=>b.assign((0,t._)`${n.default.vErrors}.length`,v),()=>b.assign(n.default.vErrors,null)))}e.resetErrorsCount=l;function s({gen:b,keyword:v,schemaValue:p,data:_,errsCount:S,it:w}){if(S===void 0)throw new Error("ajv implementation error");const E=b.name("err");b.forRange("i",S,n.default.errors,x=>{b.const(E,(0,t._)`${n.default.vErrors}[${x}]`),b.if((0,t._)`${E}.instancePath === undefined`,()=>b.assign((0,t._)`${E}.instancePath`,(0,t.strConcat)(n.default.instancePath,w.errorPath))),b.assign((0,t._)`${E}.schemaPath`,(0,t.str)`${w.errSchemaPath}/${v}`),w.opts.verbose&&(b.assign((0,t._)`${E}.schema`,p),b.assign((0,t._)`${E}.data`,_))})}e.extendErrors=s;function c(b,v){const p=b.const("err",v);b.if((0,t._)`${n.default.vErrors} === null`,()=>b.assign(n.default.vErrors,(0,t._)`[${p}]`),(0,t._)`${n.default.vErrors}.push(${p})`),b.code((0,t._)`${n.default.errors}++`)}function u(b,v){const{gen:p,validateName:_,schemaEnv:S}=b;S.$async?p.throw((0,t._)`new ${b.ValidationError}(${v})`):(p.assign((0,t._)`${_}.errors`,v),p.return(!1))}const d={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function m(b,v,p){const{createErrors:_}=b.it;return _===!1?(0,t._)`{}`:h(b,v,p)}function h(b,v,p={}){const{gen:_,it:S}=b,w=[y(S,p),g(b,p)];return f(b,v,w),_.object(...w)}function y({errorPath:b},{instancePath:v}){const p=v?(0,t.str)`${b}${(0,r.getErrorPath)(v,r.Type.Str)}`:b;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,p)]}function g({keyword:b,it:{errSchemaPath:v}},{schemaPath:p,parentSchema:_}){let S=_?v:(0,t.str)`${v}/${b}`;return p&&(S=(0,t.str)`${S}${(0,r.getErrorPath)(p,r.Type.Str)}`),[d.schemaPath,S]}function f(b,{params:v,message:p},_){const{keyword:S,data:w,schemaValue:E,it:x}=b,{opts:P,propertyName:k,topSchemaRef:M,schemaPath:R}=x;_.push([d.keyword,S],[d.params,typeof v=="function"?v(b):v||(0,t._)`{}`]),P.messages&&_.push([d.message,typeof p=="function"?p(b):p]),P.verbose&&_.push([d.schema,E],[d.parentSchema,(0,t._)`${M}${R}`],[n.default.data,w]),k&&_.push([d.propertyName,k])}})(bc)),bc}var ih;function V0(){if(ih)return Qr;ih=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.boolOrEmptySchema=Qr.topBoolOrEmptySchema=void 0;const e=Lo(),t=De(),r=Dr(),n={message:"boolean schema is false"};function i(s){const{gen:c,schema:u,validateName:d}=s;u===!1?l(s,!1):typeof u=="object"&&u.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${d}.errors`,null),c.return(!0))}Qr.topBoolOrEmptySchema=i;function a(s,c){const{gen:u,schema:d}=s;d===!1?(u.var(c,!1),l(s)):u.var(c,!0)}Qr.boolOrEmptySchema=a;function l(s,c){const{gen:u,data:d}=s,m={gen:u,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:s};(0,e.reportError)(m,n,void 0,c)}return Qr}var Pt={},en={},ah;function sh(){if(ah)return en;ah=1,Object.defineProperty(en,"__esModule",{value:!0}),en.getRules=en.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(i){return typeof i=="string"&&t.has(i)}en.isJSONType=r;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return en.getRules=n,en}var Tr={},lh;function ch(){if(lh)return Tr;lh=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.shouldUseRule=Tr.shouldUseGroup=Tr.schemaHasRulesForType=void 0;function e({schema:n,self:i},a){const l=i.RULES.types[a];return l&&l!==!0&&t(n,l)}Tr.schemaHasRulesForType=e;function t(n,i){return i.rules.some(a=>r(n,a))}Tr.shouldUseGroup=t;function r(n,i){var a;return n[i.keyword]!==void 0||((a=i.definition.implements)===null||a===void 0?void 0:a.some(l=>n[l]!==void 0))}return Tr.shouldUseRule=r,Tr}var uh;function Fo(){if(uh)return Pt;uh=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.reportTypeError=Pt.checkDataTypes=Pt.checkDataType=Pt.coerceAndCheckDataType=Pt.getJSONTypes=Pt.getSchemaTypes=Pt.DataType=void 0;const e=sh(),t=ch(),r=Lo(),n=De(),i=Ge();var a;(function(p){p[p.Correct=0]="Correct",p[p.Wrong=1]="Wrong"})(a||(Pt.DataType=a={}));function l(p){const _=s(p.type);if(_.includes("null")){if(p.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!_.length&&p.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');p.nullable===!0&&_.push("null")}return _}Pt.getSchemaTypes=l;function s(p){const _=Array.isArray(p)?p:p?[p]:[];if(_.every(e.isJSONType))return _;throw new Error("type must be JSONType or JSONType[]: "+_.join(","))}Pt.getJSONTypes=s;function c(p,_){const{gen:S,data:w,opts:E}=p,x=d(_,E.coerceTypes),P=_.length>0&&!(x.length===0&&_.length===1&&(0,t.schemaHasRulesForType)(p,_[0]));if(P){const k=g(_,w,E.strictNumbers,a.Wrong);S.if(k,()=>{x.length?m(p,_,x):b(p)})}return P}Pt.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function d(p,_){return _?p.filter(S=>u.has(S)||_==="array"&&S==="array"):[]}function m(p,_,S){const{gen:w,data:E,opts:x}=p,P=w.let("dataType",(0,n._)`typeof ${E}`),k=w.let("coerced",(0,n._)`undefined`);x.coerceTypes==="array"&&w.if((0,n._)`${P} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>w.assign(E,(0,n._)`${E}[0]`).assign(P,(0,n._)`typeof ${E}`).if(g(_,E,x.strictNumbers),()=>w.assign(k,E))),w.if((0,n._)`${k} !== undefined`);for(const R of S)(u.has(R)||R==="array"&&x.coerceTypes==="array")&&M(R);w.else(),b(p),w.endIf(),w.if((0,n._)`${k} !== undefined`,()=>{w.assign(E,k),h(p,k)});function M(R){switch(R){case"string":w.elseIf((0,n._)`${P} == "number" || ${P} == "boolean"`).assign(k,(0,n._)`"" + ${E}`).elseIf((0,n._)`${E} === null`).assign(k,(0,n._)`""`);return;case"number":w.elseIf((0,n._)`${P} == "boolean" || ${E} === null
|
|
8
8
|
|| (${P} == "string" && ${E} && ${E} == +${E})`).assign(k,(0,n._)`+${E}`);return;case"integer":w.elseIf((0,n._)`${P} === "boolean" || ${E} === null
|
|
9
9
|
|| (${P} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(k,(0,n._)`+${E}`);return;case"boolean":w.elseIf((0,n._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(k,!1).elseIf((0,n._)`${E} === "true" || ${E} === 1`).assign(k,!0);return;case"null":w.elseIf((0,n._)`${E} === "" || ${E} === 0 || ${E} === false`),w.assign(k,null);return;case"array":w.elseIf((0,n._)`${P} === "string" || ${P} === "number"
|
|
10
|
-
|| ${P} === "boolean" || ${E} === null`).assign(k,(0,n._)`[${E}]`)}}}function h({gen:p,parentData:_,parentDataProperty:S},w){p.if((0,n._)`${_} !== undefined`,()=>p.assign((0,n._)`${_}[${S}]`,w))}function y(p,_,S,w=a.Correct){const E=w===a.Correct?n.operators.EQ:n.operators.NEQ;let x;switch(p){case"null":return(0,n._)`${_} ${E} null`;case"array":x=(0,n._)`Array.isArray(${_})`;break;case"object":x=(0,n._)`${_} && typeof ${_} == "object" && !Array.isArray(${_})`;break;case"integer":x=P((0,n._)`!(${_} % 1) && !isNaN(${_})`);break;case"number":x=P();break;default:return(0,n._)`typeof ${_} ${E} ${p}`}return w===a.Correct?x:(0,n.not)(x);function P(k=n.nil){return(0,n.and)((0,n._)`typeof ${_} == "number"`,k,S?(0,n._)`isFinite(${_})`:n.nil)}}Pt.checkDataType=y;function g(p,_,S,w){if(p.length===1)return y(p[0],_,S,w);let E;const x=(0,i.toHash)(p);if(x.array&&x.object){const P=(0,n._)`typeof ${_} != "object"`;E=x.null?P:(0,n._)`!${_} || ${P}`,delete x.null,delete x.array,delete x.object}else E=n.nil;x.number&&delete x.integer;for(const P in x)E=(0,n.and)(E,y(P,_,S,w));return E}Pt.checkDataTypes=g;const f={message:({schema:p})=>`must be ${p}`,params:({schema:p,schemaValue:_})=>typeof p=="string"?(0,n._)`{type: ${p}}`:(0,n._)`{type: ${_}}`};function b(p){const _=v(p);(0,r.reportError)(_,f)}Pt.reportTypeError=b;function v(p){const{gen:_,data:S,schema:w}=p,E=(0,i.schemaRefOrVal)(p,w,"type");return{gen:_,keyword:"type",data:S,schema:w.type,schemaCode:E,schemaValue:E,parentSchema:w,params:{},it:p}}return Pt}var zn={},dh;function B0(){if(dh)return zn;dh=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.assignDefaults=void 0;const e=De(),t=Ge();function r(i,a){const{properties:l,items:s}=i.schema;if(a==="object"&&l)for(const c in l)n(i,c,l[c].default);else a==="array"&&Array.isArray(s)&&s.forEach((c,u)=>n(i,u,c.default))}zn.assignDefaults=r;function n(i,a,l){const{gen:s,compositeRule:c,data:u,opts:d}=i;if(l===void 0)return;const m=(0,e._)`${u}${(0,e.getProperty)(a)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${m}`);return}let h=(0,e._)`${m} === undefined`;d.useDefaults==="empty"&&(h=(0,e._)`${h} || ${m} === null || ${m} === ""`),s.if(h,(0,e._)`${m} = ${(0,e.stringify)(l)}`)}return zn}var ar={},tt={},fh;function sr(){if(fh)return tt;fh=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.validateUnion=tt.validateArray=tt.usePattern=tt.callValidateCode=tt.schemaProperties=tt.allSchemaProperties=tt.noPropertyInData=tt.propertyInData=tt.isOwnProperty=tt.hasPropFunc=tt.reportMissingProp=tt.checkMissingProp=tt.checkReportMissingProp=void 0;const e=De(),t=Ge(),r=Dr(),n=Ge();function i(p,_){const{gen:S,data:w,it:E}=p;S.if(d(S,w,_,E.opts.ownProperties),()=>{p.setParams({missingProperty:(0,e._)`${_}`},!0),p.error()})}tt.checkReportMissingProp=i;function a({gen:p,data:_,it:{opts:S}},w,E){return(0,e.or)(...w.map(x=>(0,e.and)(d(p,_,x,S.ownProperties),(0,e._)`${E} = ${x}`)))}tt.checkMissingProp=a;function l(p,_){p.setParams({missingProperty:_},!0),p.error()}tt.reportMissingProp=l;function s(p){return p.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}tt.hasPropFunc=s;function c(p,_,S){return(0,e._)`${s(p)}.call(${_}, ${S})`}tt.isOwnProperty=c;function u(p,_,S,w){const E=(0,e._)`${_}${(0,e.getProperty)(S)} !== undefined`;return w?(0,e._)`${E} && ${c(p,_,S)}`:E}tt.propertyInData=u;function d(p,_,S,w){const E=(0,e._)`${_}${(0,e.getProperty)(S)} === undefined`;return w?(0,e.or)(E,(0,e.not)(c(p,_,S))):E}tt.noPropertyInData=d;function m(p){return p?Object.keys(p).filter(_=>_!=="__proto__"):[]}tt.allSchemaProperties=m;function h(p,_){return m(_).filter(S=>!(0,t.alwaysValidSchema)(p,_[S]))}tt.schemaProperties=h;function y({schemaCode:p,data:_,it:{gen:S,topSchemaRef:w,schemaPath:E,errorPath:x},it:P},k,j,R){const O=R?(0,e._)`${p}, ${_}, ${w}${E}`:_,D=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,x)],[r.default.parentData,P.parentData],[r.default.parentDataProperty,P.parentDataProperty],[r.default.rootData,r.default.rootData]];P.opts.dynamicRef&&D.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const N=(0,e._)`${O}, ${S.object(...D)}`;return j!==e.nil?(0,e._)`${k}.call(${j}, ${N})`:(0,e._)`${k}(${N})`}tt.callValidateCode=y;const g=(0,e._)`new RegExp`;function f({gen:p,it:{opts:_}},S){const w=_.unicodeRegExp?"u":"",{regExp:E}=_.code,x=E(S,w);return p.scopeValue("pattern",{key:x.toString(),ref:x,code:(0,e._)`${E.code==="new RegExp"?g:(0,n.useFunc)(p,E)}(${S}, ${w})`})}tt.usePattern=f;function b(p){const{gen:_,data:S,keyword:w,it:E}=p,x=_.name("valid");if(E.allErrors){const k=_.let("valid",!0);return P(()=>_.assign(k,!1)),k}return _.var(x,!0),P(()=>_.break()),x;function P(k){const j=_.const("len",(0,e._)`${S}.length`);_.forRange("i",0,j,R=>{p.subschema({keyword:w,dataProp:R,dataPropType:t.Type.Num},x),_.if((0,e.not)(x),k)})}}tt.validateArray=b;function v(p){const{gen:_,schema:S,keyword:w,it:E}=p;if(!Array.isArray(S))throw new Error("ajv implementation error");if(S.some(j=>(0,t.alwaysValidSchema)(E,j))&&!E.opts.unevaluated)return;const P=_.let("valid",!1),k=_.name("_valid");_.block(()=>S.forEach((j,R)=>{const O=p.subschema({keyword:w,schemaProp:R,compositeRule:!0},k);_.assign(P,(0,e._)`${P} || ${k}`),p.mergeValidEvaluated(O,k)||_.if((0,e.not)(P))})),p.result(P,()=>p.reset(),()=>p.error(!0))}return tt.validateUnion=v,tt}var ph;function U0(){if(ph)return ar;ph=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.validateKeywordUsage=ar.validSchemaType=ar.funcKeywordCode=ar.macroKeywordCode=void 0;const e=De(),t=Dr(),r=sr(),n=Lo();function i(h,y){const{gen:g,keyword:f,schema:b,parentSchema:v,it:p}=h,_=y.macro.call(p.self,b,v,p),S=u(g,f,_);p.opts.validateSchema!==!1&&p.self.validateSchema(_,!0);const w=g.name("valid");h.subschema({schema:_,schemaPath:e.nil,errSchemaPath:`${p.errSchemaPath}/${f}`,topSchemaRef:S,compositeRule:!0},w),h.pass(w,()=>h.error(!0))}ar.macroKeywordCode=i;function a(h,y){var g;const{gen:f,keyword:b,schema:v,parentSchema:p,$data:_,it:S}=h;c(S,y);const w=!_&&y.compile?y.compile.call(S.self,v,p,S):y.validate,E=u(f,b,w),x=f.let("valid");h.block$data(x,P),h.ok((g=y.valid)!==null&&g!==void 0?g:x);function P(){if(y.errors===!1)R(),y.modifying&&l(h),O(()=>h.error());else{const D=y.async?k():j();y.modifying&&l(h),O(()=>s(h,D))}}function k(){const D=f.let("ruleErrs",null);return f.try(()=>R((0,e._)`await `),N=>f.assign(x,!1).if((0,e._)`${N} instanceof ${S.ValidationError}`,()=>f.assign(D,(0,e._)`${N}.errors`),()=>f.throw(N))),D}function j(){const D=(0,e._)`${E}.errors`;return f.assign(D,null),R(e.nil),D}function R(D=y.async?(0,e._)`await `:e.nil){const N=S.opts.passContext?t.default.this:t.default.self,U=!("compile"in y&&!_||y.schema===!1);f.assign(x,(0,e._)`${D}${(0,r.callValidateCode)(h,E,N,U)}`,y.modifying)}function O(D){var N;f.if((0,e.not)((N=y.valid)!==null&&N!==void 0?N:x),D)}}ar.funcKeywordCode=a;function l(h){const{gen:y,data:g,it:f}=h;y.if(f.parentData,()=>y.assign(g,(0,e._)`${f.parentData}[${f.parentDataProperty}]`))}function s(h,y){const{gen:g}=h;g.if((0,e._)`Array.isArray(${y})`,()=>{g.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${y} : ${t.default.vErrors}.concat(${y})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(h)},()=>h.error())}function c({schemaEnv:h},y){if(y.async&&!h.$async)throw new Error("async keyword in sync schema")}function u(h,y,g){if(g===void 0)throw new Error(`keyword "${y}" failed to compile`);return h.scopeValue("keyword",typeof g=="function"?{ref:g}:{ref:g,code:(0,e.stringify)(g)})}function d(h,y,g=!1){return!y.length||y.some(f=>f==="array"?Array.isArray(h):f==="object"?h&&typeof h=="object"&&!Array.isArray(h):typeof h==f||g&&typeof h>"u")}ar.validSchemaType=d;function m({schema:h,opts:y,self:g,errSchemaPath:f},b,v){if(Array.isArray(b.keyword)?!b.keyword.includes(v):b.keyword!==v)throw new Error("ajv implementation error");const p=b.dependencies;if(p?.some(_=>!Object.prototype.hasOwnProperty.call(h,_)))throw new Error(`parent schema must have dependencies of ${v}: ${p.join(",")}`);if(b.validateSchema&&!b.validateSchema(h[v])){const S=`keyword "${v}" value is invalid at path "${f}": `+g.errorsText(b.validateSchema.errors);if(y.validateSchema==="log")g.logger.error(S);else throw new Error(S)}}return ar.validateKeywordUsage=m,ar}var Pr={},hh;function W0(){if(hh)return Pr;hh=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.extendSubschemaMode=Pr.extendSubschemaData=Pr.getSubschema=void 0;const e=De(),t=Ge();function r(a,{keyword:l,schemaProp:s,schema:c,schemaPath:u,errSchemaPath:d,topSchemaRef:m}){if(l!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(l!==void 0){const h=a.schema[l];return s===void 0?{schema:h,schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(l)}`,errSchemaPath:`${a.errSchemaPath}/${l}`}:{schema:h[s],schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(l)}${(0,e.getProperty)(s)}`,errSchemaPath:`${a.errSchemaPath}/${l}/${(0,t.escapeFragment)(s)}`}}if(c!==void 0){if(u===void 0||d===void 0||m===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:u,topSchemaRef:m,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}Pr.getSubschema=r;function n(a,l,{dataProp:s,dataPropType:c,data:u,dataTypes:d,propertyName:m}){if(u!==void 0&&s!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:h}=l;if(s!==void 0){const{errorPath:g,dataPathArr:f,opts:b}=l,v=h.let("data",(0,e._)`${l.data}${(0,e.getProperty)(s)}`,!0);y(v),a.errorPath=(0,e.str)`${g}${(0,t.getErrorPath)(s,c,b.jsPropertySyntax)}`,a.parentDataProperty=(0,e._)`${s}`,a.dataPathArr=[...f,a.parentDataProperty]}if(u!==void 0){const g=u instanceof e.Name?u:h.let("data",u,!0);y(g),m!==void 0&&(a.propertyName=m)}d&&(a.dataTypes=d);function y(g){a.data=g,a.dataLevel=l.dataLevel+1,a.dataTypes=[],l.definedProperties=new Set,a.parentData=l.data,a.dataNames=[...l.dataNames,g]}}Pr.extendSubschemaData=n;function i(a,{jtdDiscriminator:l,jtdMetadata:s,compositeRule:c,createErrors:u,allErrors:d}){c!==void 0&&(a.compositeRule=c),u!==void 0&&(a.createErrors=u),d!==void 0&&(a.allErrors=d),a.jtdDiscriminator=l,a.jtdMetadata=s}return Pr.extendSubschemaMode=i,Pr}var Dt={},Ec,mh;function yh(){return mh||(mh=1,Ec=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var l=a[i];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r}),Ec}var Oc={exports:{}},gh;function H0(){if(gh)return Oc.exports;gh=1;var e=Oc.exports=function(n,i,a){typeof i=="function"&&(a=i,i={}),a=i.cb||a;var l=typeof a=="function"?a:a.pre||function(){},s=a.post||function(){};t(i,l,s,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(n,i,a,l,s,c,u,d,m,h){if(l&&typeof l=="object"&&!Array.isArray(l)){i(l,s,c,u,d,m,h);for(var y in l){var g=l[y];if(Array.isArray(g)){if(y in e.arrayKeywords)for(var f=0;f<g.length;f++)t(n,i,a,g[f],s+"/"+y+"/"+f,c,s,y,l,f)}else if(y in e.propsKeywords){if(g&&typeof g=="object")for(var b in g)t(n,i,a,g[b],s+"/"+y+"/"+r(b),c,s,y,l,b)}else(y in e.keywords||n.allKeys&&!(y in e.skipKeywords))&&t(n,i,a,g,s+"/"+y,c,s,y,l)}a(l,s,c,u,d,m,h)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Oc.exports}var vh;function zo(){if(vh)return Dt;vh=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.getSchemaRefs=Dt.resolveUrl=Dt.normalizeId=Dt._getFullPath=Dt.getFullPath=Dt.inlineRef=void 0;const e=Ge(),t=yh(),r=H0(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(f,b=!0){return typeof f=="boolean"?!0:b===!0?!l(f):b?s(f)<=b:!1}Dt.inlineRef=i;const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(f){for(const b in f){if(a.has(b))return!0;const v=f[b];if(Array.isArray(v)&&v.some(l)||typeof v=="object"&&l(v))return!0}return!1}function s(f){let b=0;for(const v in f){if(v==="$ref")return 1/0;if(b++,!n.has(v)&&(typeof f[v]=="object"&&(0,e.eachItem)(f[v],p=>b+=s(p)),b===1/0))return 1/0}return b}function c(f,b="",v){v!==!1&&(b=m(b));const p=f.parse(b);return u(f,p)}Dt.getFullPath=c;function u(f,b){return f.serialize(b).split("#")[0]+"#"}Dt._getFullPath=u;const d=/#\/?$/;function m(f){return f?f.replace(d,""):""}Dt.normalizeId=m;function h(f,b,v){return v=m(v),f.resolve(b,v)}Dt.resolveUrl=h;const y=/^[a-z_][-a-z0-9._]*$/i;function g(f,b){if(typeof f=="boolean")return{};const{schemaId:v,uriResolver:p}=this.opts,_=m(f[v]||b),S={"":_},w=c(p,_,!1),E={},x=new Set;return r(f,{allKeys:!0},(j,R,O,D)=>{if(D===void 0)return;const N=w+R;let U=S[D];typeof j[v]=="string"&&(U=W.call(this,j[v])),le.call(this,j.$anchor),le.call(this,j.$dynamicAnchor),S[R]=U;function W(ce){const ue=this.opts.uriResolver.resolve;if(ce=m(U?ue(U,ce):ce),x.has(ce))throw k(ce);x.add(ce);let z=this.refs[ce];return typeof z=="string"&&(z=this.refs[z]),typeof z=="object"?P(j,z.schema,ce):ce!==m(N)&&(ce[0]==="#"?(P(j,E[ce],ce),E[ce]=j):this.refs[ce]=N),ce}function le(ce){if(typeof ce=="string"){if(!y.test(ce))throw new Error(`invalid anchor "${ce}"`);W.call(this,`#${ce}`)}}}),E;function P(j,R,O){if(R!==void 0&&!t(j,R))throw k(O)}function k(j){return new Error(`reference "${j}" resolves to more than one schema`)}}return Dt.getSchemaRefs=g,Dt}var bh;function Vo(){if(bh)return Cr;bh=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.getData=Cr.KeywordCxt=Cr.validateFunctionCode=void 0;const e=V0(),t=Fo(),r=ch(),n=Fo(),i=B0(),a=U0(),l=W0(),s=De(),c=Dr(),u=zo(),d=Ge(),m=Lo();function h(L){if(w(L)&&(x(L),S(L))){b(L);return}y(L,()=>(0,e.topBoolOrEmptySchema)(L))}Cr.validateFunctionCode=h;function y({gen:L,validateName:I,schema:G,schemaEnv:X,opts:oe},ye){oe.code.es5?L.func(I,(0,s._)`${c.default.data}, ${c.default.valCxt}`,X.$async,()=>{L.code((0,s._)`"use strict"; ${p(G,oe)}`),f(L,oe),L.code(ye)}):L.func(I,(0,s._)`${c.default.data}, ${g(oe)}`,X.$async,()=>L.code(p(G,oe)).code(ye))}function g(L){return(0,s._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${L.dynamicRef?(0,s._)`, ${c.default.dynamicAnchors}={}`:s.nil}}={}`}function f(L,I){L.if(c.default.valCxt,()=>{L.var(c.default.instancePath,(0,s._)`${c.default.valCxt}.${c.default.instancePath}`),L.var(c.default.parentData,(0,s._)`${c.default.valCxt}.${c.default.parentData}`),L.var(c.default.parentDataProperty,(0,s._)`${c.default.valCxt}.${c.default.parentDataProperty}`),L.var(c.default.rootData,(0,s._)`${c.default.valCxt}.${c.default.rootData}`),I.dynamicRef&&L.var(c.default.dynamicAnchors,(0,s._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{L.var(c.default.instancePath,(0,s._)`""`),L.var(c.default.parentData,(0,s._)`undefined`),L.var(c.default.parentDataProperty,(0,s._)`undefined`),L.var(c.default.rootData,c.default.data),I.dynamicRef&&L.var(c.default.dynamicAnchors,(0,s._)`{}`)})}function b(L){const{schema:I,opts:G,gen:X}=L;y(L,()=>{G.$comment&&I.$comment&&D(L),j(L),X.let(c.default.vErrors,null),X.let(c.default.errors,0),G.unevaluated&&v(L),P(L),N(L)})}function v(L){const{gen:I,validateName:G}=L;L.evaluated=I.const("evaluated",(0,s._)`${G}.evaluated`),I.if((0,s._)`${L.evaluated}.dynamicProps`,()=>I.assign((0,s._)`${L.evaluated}.props`,(0,s._)`undefined`)),I.if((0,s._)`${L.evaluated}.dynamicItems`,()=>I.assign((0,s._)`${L.evaluated}.items`,(0,s._)`undefined`))}function p(L,I){const G=typeof L=="object"&&L[I.schemaId];return G&&(I.code.source||I.code.process)?(0,s._)`/*# sourceURL=${G} */`:s.nil}function _(L,I){if(w(L)&&(x(L),S(L))){E(L,I);return}(0,e.boolOrEmptySchema)(L,I)}function S({schema:L,self:I}){if(typeof L=="boolean")return!L;for(const G in L)if(I.RULES.all[G])return!0;return!1}function w(L){return typeof L.schema!="boolean"}function E(L,I){const{schema:G,gen:X,opts:oe}=L;oe.$comment&&G.$comment&&D(L),R(L),O(L);const ye=X.const("_errs",c.default.errors);P(L,ye),X.var(I,(0,s._)`${ye} === ${c.default.errors}`)}function x(L){(0,d.checkUnknownRules)(L),k(L)}function P(L,I){if(L.opts.jtd)return W(L,[],!1,I);const G=(0,t.getSchemaTypes)(L.schema),X=(0,t.coerceAndCheckDataType)(L,G);W(L,G,!X,I)}function k(L){const{schema:I,errSchemaPath:G,opts:X,self:oe}=L;I.$ref&&X.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(I,oe.RULES)&&oe.logger.warn(`$ref: keywords ignored in schema at path "${G}"`)}function j(L){const{schema:I,opts:G}=L;I.default!==void 0&&G.useDefaults&&G.strictSchema&&(0,d.checkStrictMode)(L,"default is ignored in the schema root")}function R(L){const I=L.schema[L.opts.schemaId];I&&(L.baseId=(0,u.resolveUrl)(L.opts.uriResolver,L.baseId,I))}function O(L){if(L.schema.$async&&!L.schemaEnv.$async)throw new Error("async schema in sync schema")}function D({gen:L,schemaEnv:I,schema:G,errSchemaPath:X,opts:oe}){const ye=G.$comment;if(oe.$comment===!0)L.code((0,s._)`${c.default.self}.logger.log(${ye})`);else if(typeof oe.$comment=="function"){const ve=(0,s.str)`${X}/$comment`,fe=L.scopeValue("root",{ref:I.root});L.code((0,s._)`${c.default.self}.opts.$comment(${ye}, ${ve}, ${fe}.schema)`)}}function N(L){const{gen:I,schemaEnv:G,validateName:X,ValidationError:oe,opts:ye}=L;G.$async?I.if((0,s._)`${c.default.errors} === 0`,()=>I.return(c.default.data),()=>I.throw((0,s._)`new ${oe}(${c.default.vErrors})`)):(I.assign((0,s._)`${X}.errors`,c.default.vErrors),ye.unevaluated&&U(L),I.return((0,s._)`${c.default.errors} === 0`))}function U({gen:L,evaluated:I,props:G,items:X}){G instanceof s.Name&&L.assign((0,s._)`${I}.props`,G),X instanceof s.Name&&L.assign((0,s._)`${I}.items`,X)}function W(L,I,G,X){const{gen:oe,schema:ye,data:ve,allErrors:fe,opts:Te,self:be}=L,{RULES:Ee}=be;if(ye.$ref&&(Te.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(ye,Ee))){oe.block(()=>K(L,"$ref",Ee.all.$ref.definition));return}Te.jtd||ce(L,I),oe.block(()=>{for(const $e of Ee.rules)he($e);he(Ee.post)});function he($e){(0,r.shouldUseGroup)(ye,$e)&&($e.type?(oe.if((0,n.checkDataType)($e.type,ve,Te.strictNumbers)),le(L,$e),I.length===1&&I[0]===$e.type&&G&&(oe.else(),(0,n.reportTypeError)(L)),oe.endIf()):le(L,$e),fe||oe.if((0,s._)`${c.default.errors} === ${X||0}`))}}function le(L,I){const{gen:G,schema:X,opts:{useDefaults:oe}}=L;oe&&(0,i.assignDefaults)(L,I.type),G.block(()=>{for(const ye of I.rules)(0,r.shouldUseRule)(X,ye)&&K(L,ye.keyword,ye.definition,I.type)})}function ce(L,I){L.schemaEnv.meta||!L.opts.strictTypes||(ue(L,I),L.opts.allowUnionTypes||z(L,I),C(L,L.dataTypes))}function ue(L,I){if(I.length){if(!L.dataTypes.length){L.dataTypes=I;return}I.forEach(G=>{M(L.dataTypes,G)||$(L,`type "${G}" not allowed by context "${L.dataTypes.join(",")}"`)}),T(L,I)}}function z(L,I){I.length>1&&!(I.length===2&&I.includes("null"))&&$(L,"use allowUnionTypes to allow union type keyword")}function C(L,I){const G=L.self.RULES.all;for(const X in G){const oe=G[X];if(typeof oe=="object"&&(0,r.shouldUseRule)(L.schema,oe)){const{type:ye}=oe.definition;ye.length&&!ye.some(ve=>V(I,ve))&&$(L,`missing type "${ye.join(",")}" for keyword "${X}"`)}}}function V(L,I){return L.includes(I)||I==="number"&&L.includes("integer")}function M(L,I){return L.includes(I)||I==="integer"&&L.includes("number")}function T(L,I){const G=[];for(const X of L.dataTypes)M(I,X)?G.push(X):I.includes("integer")&&X==="number"&&G.push("integer");L.dataTypes=G}function $(L,I){const G=L.schemaEnv.baseId+L.errSchemaPath;I+=` at "${G}" (strictTypes)`,(0,d.checkStrictMode)(L,I,L.opts.strictTypes)}class q{constructor(I,G,X){if((0,a.validateKeywordUsage)(I,G,X),this.gen=I.gen,this.allErrors=I.allErrors,this.keyword=X,this.data=I.data,this.schema=I.schema[X],this.$data=G.$data&&I.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(I,this.schema,X,this.$data),this.schemaType=G.schemaType,this.parentSchema=I.schema,this.params={},this.it=I,this.def=G,this.$data)this.schemaCode=I.gen.const("vSchema",te(this.$data,I));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,G.schemaType,G.allowUndefined))throw new Error(`${X} value must be ${JSON.stringify(G.schemaType)}`);("code"in G?G.trackErrors:G.errors!==!1)&&(this.errsCount=I.gen.const("_errs",c.default.errors))}result(I,G,X){this.failResult((0,s.not)(I),G,X)}failResult(I,G,X){this.gen.if(I),X?X():this.error(),G?(this.gen.else(),G(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(I,G){this.failResult((0,s.not)(I),void 0,G)}fail(I){if(I===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(I),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(I){if(!this.$data)return this.fail(I);const{schemaCode:G}=this;this.fail((0,s._)`${G} !== undefined && (${(0,s.or)(this.invalid$data(),I)})`)}error(I,G,X){if(G){this.setParams(G),this._error(I,X),this.setParams({});return}this._error(I,X)}_error(I,G){(I?m.reportExtraError:m.reportError)(this,this.def.error,G)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(I){this.allErrors||this.gen.if(I)}setParams(I,G){G?Object.assign(this.params,I):this.params=I}block$data(I,G,X=s.nil){this.gen.block(()=>{this.check$data(I,X),G()})}check$data(I=s.nil,G=s.nil){if(!this.$data)return;const{gen:X,schemaCode:oe,schemaType:ye,def:ve}=this;X.if((0,s.or)((0,s._)`${oe} === undefined`,G)),I!==s.nil&&X.assign(I,!0),(ye.length||ve.validateSchema)&&(X.elseIf(this.invalid$data()),this.$dataError(),I!==s.nil&&X.assign(I,!1)),X.else()}invalid$data(){const{gen:I,schemaCode:G,schemaType:X,def:oe,it:ye}=this;return(0,s.or)(ve(),fe());function ve(){if(X.length){if(!(G instanceof s.Name))throw new Error("ajv implementation error");const Te=Array.isArray(X)?X:[X];return(0,s._)`${(0,n.checkDataTypes)(Te,G,ye.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}function fe(){if(oe.validateSchema){const Te=I.scopeValue("validate$data",{ref:oe.validateSchema});return(0,s._)`!${Te}(${G})`}return s.nil}}subschema(I,G){const X=(0,l.getSubschema)(this.it,I);(0,l.extendSubschemaData)(X,this.it,I),(0,l.extendSubschemaMode)(X,I);const oe={...this.it,...X,items:void 0,props:void 0};return _(oe,G),oe}mergeEvaluated(I,G){const{it:X,gen:oe}=this;X.opts.unevaluated&&(X.props!==!0&&I.props!==void 0&&(X.props=d.mergeEvaluated.props(oe,I.props,X.props,G)),X.items!==!0&&I.items!==void 0&&(X.items=d.mergeEvaluated.items(oe,I.items,X.items,G)))}mergeValidEvaluated(I,G){const{it:X,gen:oe}=this;if(X.opts.unevaluated&&(X.props!==!0||X.items!==!0))return oe.if(G,()=>this.mergeEvaluated(I,s.Name)),!0}}Cr.KeywordCxt=q;function K(L,I,G,X){const oe=new q(L,G,I);"code"in G?G.code(oe,X):oe.$data&&G.validate?(0,a.funcKeywordCode)(oe,G):"macro"in G?(0,a.macroKeywordCode)(oe,G):(G.compile||G.validate)&&(0,a.funcKeywordCode)(oe,G)}const re=/^\/(?:[^~]|~0|~1)*$/,ie=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function te(L,{dataLevel:I,dataNames:G,dataPathArr:X}){let oe,ye;if(L==="")return c.default.rootData;if(L[0]==="/"){if(!re.test(L))throw new Error(`Invalid JSON-pointer: ${L}`);oe=L,ye=c.default.rootData}else{const be=ie.exec(L);if(!be)throw new Error(`Invalid JSON-pointer: ${L}`);const Ee=+be[1];if(oe=be[2],oe==="#"){if(Ee>=I)throw new Error(Te("property/index",Ee));return X[I-Ee]}if(Ee>I)throw new Error(Te("data",Ee));if(ye=G[I-Ee],!oe)return ye}let ve=ye;const fe=oe.split("/");for(const be of fe)be&&(ye=(0,s._)`${ye}${(0,s.getProperty)((0,d.unescapeJsonPointer)(be))}`,ve=(0,s._)`${ve} && ${ye}`);return ve;function Te(be,Ee){return`Cannot access ${be} ${Ee} levels up, current level is ${I}`}}return Cr.getData=te,Cr}var Bo={},_h;function xc(){if(_h)return Bo;_h=1,Object.defineProperty(Bo,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Bo.default=e,Bo}var Uo={},wh;function Wo(){if(wh)return Uo;wh=1,Object.defineProperty(Uo,"__esModule",{value:!0});const e=zo();class t extends Error{constructor(n,i,a,l){super(l||`can't resolve reference ${a} from id ${i}`),this.missingRef=(0,e.resolveUrl)(n,i,a),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return Uo.default=t,Uo}var Wt={},Sh;function Cc(){if(Sh)return Wt;Sh=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.resolveSchema=Wt.getCompilingSchema=Wt.resolveRef=Wt.compileSchema=Wt.SchemaEnv=void 0;const e=De(),t=xc(),r=Dr(),n=zo(),i=Ge(),a=Vo();class l{constructor(v){var p;this.refs={},this.dynamicAnchors={};let _;typeof v.schema=="object"&&(_=v.schema),this.schema=v.schema,this.schemaId=v.schemaId,this.root=v.root||this,this.baseId=(p=v.baseId)!==null&&p!==void 0?p:(0,n.normalizeId)(_?.[v.schemaId||"$id"]),this.schemaPath=v.schemaPath,this.localRefs=v.localRefs,this.meta=v.meta,this.$async=_?.$async,this.refs={}}}Wt.SchemaEnv=l;function s(b){const v=d.call(this,b);if(v)return v;const p=(0,n.getFullPath)(this.opts.uriResolver,b.root.baseId),{es5:_,lines:S}=this.opts.code,{ownProperties:w}=this.opts,E=new e.CodeGen(this.scope,{es5:_,lines:S,ownProperties:w});let x;b.$async&&(x=E.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const P=E.scopeName("validate");b.validateName=P;const k={gen:E,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:E.scopeValue("schema",this.opts.code.source===!0?{ref:b.schema,code:(0,e.stringify)(b.schema)}:{ref:b.schema}),validateName:P,ValidationError:x,schema:b.schema,schemaEnv:b,rootId:p,baseId:b.baseId||p,schemaPath:e.nil,errSchemaPath:b.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let j;try{this._compilations.add(b),(0,a.validateFunctionCode)(k),E.optimize(this.opts.code.optimize);const R=E.toString();j=`${E.scopeRefs(r.default.scope)}return ${R}`,this.opts.code.process&&(j=this.opts.code.process(j,b));const D=new Function(`${r.default.self}`,`${r.default.scope}`,j)(this,this.scope.get());if(this.scope.value(P,{ref:D}),D.errors=null,D.schema=b.schema,D.schemaEnv=b,b.$async&&(D.$async=!0),this.opts.code.source===!0&&(D.source={validateName:P,validateCode:R,scopeValues:E._values}),this.opts.unevaluated){const{props:N,items:U}=k;D.evaluated={props:N instanceof e.Name?void 0:N,items:U instanceof e.Name?void 0:U,dynamicProps:N instanceof e.Name,dynamicItems:U instanceof e.Name},D.source&&(D.source.evaluated=(0,e.stringify)(D.evaluated))}return b.validate=D,b}catch(R){throw delete b.validate,delete b.validateName,j&&this.logger.error("Error compiling schema, function code:",j),R}finally{this._compilations.delete(b)}}Wt.compileSchema=s;function c(b,v,p){var _;p=(0,n.resolveUrl)(this.opts.uriResolver,v,p);const S=b.refs[p];if(S)return S;let w=h.call(this,b,p);if(w===void 0){const E=(_=b.localRefs)===null||_===void 0?void 0:_[p],{schemaId:x}=this.opts;E&&(w=new l({schema:E,schemaId:x,root:b,baseId:v}))}if(w!==void 0)return b.refs[p]=u.call(this,w)}Wt.resolveRef=c;function u(b){return(0,n.inlineRef)(b.schema,this.opts.inlineRefs)?b.schema:b.validate?b:s.call(this,b)}function d(b){for(const v of this._compilations)if(m(v,b))return v}Wt.getCompilingSchema=d;function m(b,v){return b.schema===v.schema&&b.root===v.root&&b.baseId===v.baseId}function h(b,v){let p;for(;typeof(p=this.refs[v])=="string";)v=p;return p||this.schemas[v]||y.call(this,b,v)}function y(b,v){const p=this.opts.uriResolver.parse(v),_=(0,n._getFullPath)(this.opts.uriResolver,p);let S=(0,n.getFullPath)(this.opts.uriResolver,b.baseId,void 0);if(Object.keys(b.schema).length>0&&_===S)return f.call(this,p,b);const w=(0,n.normalizeId)(_),E=this.refs[w]||this.schemas[w];if(typeof E=="string"){const x=y.call(this,b,E);return typeof x?.schema!="object"?void 0:f.call(this,p,x)}if(typeof E?.schema=="object"){if(E.validate||s.call(this,E),w===(0,n.normalizeId)(v)){const{schema:x}=E,{schemaId:P}=this.opts,k=x[P];return k&&(S=(0,n.resolveUrl)(this.opts.uriResolver,S,k)),new l({schema:x,schemaId:P,root:b,baseId:S})}return f.call(this,p,E)}}Wt.resolveSchema=y;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function f(b,{baseId:v,schema:p,root:_}){var S;if(((S=b.fragment)===null||S===void 0?void 0:S[0])!=="/")return;for(const x of b.fragment.slice(1).split("/")){if(typeof p=="boolean")return;const P=p[(0,i.unescapeFragment)(x)];if(P===void 0)return;p=P;const k=typeof p=="object"&&p[this.opts.schemaId];!g.has(x)&&k&&(v=(0,n.resolveUrl)(this.opts.uriResolver,v,k))}let w;if(typeof p!="boolean"&&p.$ref&&!(0,i.schemaHasRulesButRef)(p,this.RULES)){const x=(0,n.resolveUrl)(this.opts.uriResolver,v,p.$ref);w=y.call(this,_,x)}const{schemaId:E}=this.opts;if(w=w||new l({schema:p,schemaId:E,root:_,baseId:v}),w.schema!==w.root.schema)return w}return Wt}const K0={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var Ho={},Vn={exports:{}},Tc,Eh;function Oh(){if(Eh)return Tc;Eh=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function r(h){let y="",g=0,f=0;for(f=0;f<h.length;f++)if(g=h[f].charCodeAt(0),g!==48){if(!(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102))return"";y+=h[f];break}for(f+=1;f<h.length;f++){if(g=h[f].charCodeAt(0),!(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102))return"";y+=h[f]}return y}const n=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function i(h){return h.length=0,!0}function a(h,y,g){if(h.length){const f=r(h);if(f!=="")y.push(f);else return g.error=!0,!1;h.length=0}return!0}function l(h){let y=0;const g={error:!1,address:"",zone:""},f=[],b=[];let v=!1,p=!1,_=a;for(let S=0;S<h.length;S++){const w=h[S];if(!(w==="["||w==="]"))if(w===":"){if(v===!0&&(p=!0),!_(b,f,g))break;if(++y>7){g.error=!0;break}S>0&&h[S-1]===":"&&(v=!0),f.push(":");continue}else if(w==="%"){if(!_(b,f,g))break;_=i}else{b.push(w);continue}}return b.length&&(_===i?g.zone=b.join(""):p?f.push(b.join("")):f.push(r(b))),g.address=f.join(""),g}function s(h){if(c(h,":")<2)return{host:h,isIPV6:!1};const y=l(h);if(y.error)return{host:h,isIPV6:!1};{let g=y.address,f=y.address;return y.zone&&(g+="%"+y.zone,f+="%25"+y.zone),{host:g,isIPV6:!0,escapedHost:f}}}function c(h,y){let g=0;for(let f=0;f<h.length;f++)h[f]===y&&g++;return g}function u(h){let y=h;const g=[];let f=-1,b=0;for(;b=y.length;){if(b===1){if(y===".")break;if(y==="/"){g.push("/");break}else{g.push(y);break}}else if(b===2){if(y[0]==="."){if(y[1]===".")break;if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&(y[1]==="."||y[1]==="/")){g.push("/");break}}else if(b===3&&y==="/.."){g.length!==0&&g.pop(),g.push("/");break}if(y[0]==="."){if(y[1]==="."){if(y[2]==="/"){y=y.slice(3);continue}}else if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&y[1]==="."){if(y[2]==="/"){y=y.slice(2);continue}else if(y[2]==="."&&y[3]==="/"){y=y.slice(3),g.length!==0&&g.pop();continue}}if((f=y.indexOf("/",1))===-1){g.push(y);break}else g.push(y.slice(0,f)),y=y.slice(f)}return g.join("")}function d(h,y){const g=y!==!0?escape:unescape;return h.scheme!==void 0&&(h.scheme=g(h.scheme)),h.userinfo!==void 0&&(h.userinfo=g(h.userinfo)),h.host!==void 0&&(h.host=g(h.host)),h.path!==void 0&&(h.path=g(h.path)),h.query!==void 0&&(h.query=g(h.query)),h.fragment!==void 0&&(h.fragment=g(h.fragment)),h}function m(h){const y=[];if(h.userinfo!==void 0&&(y.push(h.userinfo),y.push("@")),h.host!==void 0){let g=unescape(h.host);if(!t(g)){const f=s(g);f.isIPV6===!0?g=`[${f.escapedHost}]`:g=h.host}y.push(g)}return(typeof h.port=="number"||typeof h.port=="string")&&(y.push(":"),y.push(String(h.port))),y.length?y.join(""):void 0}return Tc={nonSimpleDomain:n,recomposeAuthority:m,normalizeComponentEncoding:d,removeDotSegments:u,isIPv4:t,isUUID:e,normalizeIPv6:s,stringArrayToHexStripped:r},Tc}var Pc,xh;function G0(){if(xh)return Pc;xh=1;const{isUUID:e}=Oh(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(w){return r.indexOf(w)!==-1}function i(w){return w.secure===!0?!0:w.secure===!1?!1:w.scheme?w.scheme.length===3&&(w.scheme[0]==="w"||w.scheme[0]==="W")&&(w.scheme[1]==="s"||w.scheme[1]==="S")&&(w.scheme[2]==="s"||w.scheme[2]==="S"):!1}function a(w){return w.host||(w.error=w.error||"HTTP URIs must have a host."),w}function l(w){const E=String(w.scheme).toLowerCase()==="https";return(w.port===(E?443:80)||w.port==="")&&(w.port=void 0),w.path||(w.path="/"),w}function s(w){return w.secure=i(w),w.resourceName=(w.path||"/")+(w.query?"?"+w.query:""),w.path=void 0,w.query=void 0,w}function c(w){if((w.port===(i(w)?443:80)||w.port==="")&&(w.port=void 0),typeof w.secure=="boolean"&&(w.scheme=w.secure?"wss":"ws",w.secure=void 0),w.resourceName){const[E,x]=w.resourceName.split("?");w.path=E&&E!=="/"?E:void 0,w.query=x,w.resourceName=void 0}return w.fragment=void 0,w}function u(w,E){if(!w.path)return w.error="URN can not be parsed",w;const x=w.path.match(t);if(x){const P=E.scheme||w.scheme||"urn";w.nid=x[1].toLowerCase(),w.nss=x[2];const k=`${P}:${E.nid||w.nid}`,j=S(k);w.path=void 0,j&&(w=j.parse(w,E))}else w.error=w.error||"URN can not be parsed.";return w}function d(w,E){if(w.nid===void 0)throw new Error("URN without nid cannot be serialized");const x=E.scheme||w.scheme||"urn",P=w.nid.toLowerCase(),k=`${x}:${E.nid||P}`,j=S(k);j&&(w=j.serialize(w,E));const R=w,O=w.nss;return R.path=`${P||E.nid}:${O}`,E.skipEscape=!0,R}function m(w,E){const x=w;return x.uuid=x.nss,x.nss=void 0,!E.tolerant&&(!x.uuid||!e(x.uuid))&&(x.error=x.error||"UUID is not valid."),x}function h(w){const E=w;return E.nss=(w.uuid||"").toLowerCase(),E}const y={scheme:"http",domainHost:!0,parse:a,serialize:l},g={scheme:"https",domainHost:y.domainHost,parse:a,serialize:l},f={scheme:"ws",domainHost:!0,parse:s,serialize:c},b={scheme:"wss",domainHost:f.domainHost,parse:f.parse,serialize:f.serialize},_={http:y,https:g,ws:f,wss:b,urn:{scheme:"urn",parse:u,serialize:d,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:m,serialize:h,skipNormalize:!0}};Object.setPrototypeOf(_,null);function S(w){return w&&(_[w]||_[w.toLowerCase()])||void 0}return Pc={wsIsSecure:i,SCHEMES:_,isValidSchemeName:n,getSchemeHandler:S},Pc}var Ch;function Y0(){if(Ch)return Vn.exports;Ch=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizeComponentEncoding:n,isIPv4:i,nonSimpleDomain:a}=Oh(),{SCHEMES:l,getSchemeHandler:s}=G0();function c(b,v){return typeof b=="string"?b=h(g(b,v),v):typeof b=="object"&&(b=g(h(b,v),v)),b}function u(b,v,p){const _=p?Object.assign({scheme:"null"},p):{scheme:"null"},S=d(g(b,_),g(v,_),_,!0);return _.skipEscape=!0,h(S,_)}function d(b,v,p,_){const S={};return _||(b=g(h(b,p),p),v=g(h(v,p),p)),p=p||{},!p.tolerant&&v.scheme?(S.scheme=v.scheme,S.userinfo=v.userinfo,S.host=v.host,S.port=v.port,S.path=t(v.path||""),S.query=v.query):(v.userinfo!==void 0||v.host!==void 0||v.port!==void 0?(S.userinfo=v.userinfo,S.host=v.host,S.port=v.port,S.path=t(v.path||""),S.query=v.query):(v.path?(v.path[0]==="/"?S.path=t(v.path):((b.userinfo!==void 0||b.host!==void 0||b.port!==void 0)&&!b.path?S.path="/"+v.path:b.path?S.path=b.path.slice(0,b.path.lastIndexOf("/")+1)+v.path:S.path=v.path,S.path=t(S.path)),S.query=v.query):(S.path=b.path,v.query!==void 0?S.query=v.query:S.query=b.query),S.userinfo=b.userinfo,S.host=b.host,S.port=b.port),S.scheme=b.scheme),S.fragment=v.fragment,S}function m(b,v,p){return typeof b=="string"?(b=unescape(b),b=h(n(g(b,p),!0),{...p,skipEscape:!0})):typeof b=="object"&&(b=h(n(b,!0),{...p,skipEscape:!0})),typeof v=="string"?(v=unescape(v),v=h(n(g(v,p),!0),{...p,skipEscape:!0})):typeof v=="object"&&(v=h(n(v,!0),{...p,skipEscape:!0})),b.toLowerCase()===v.toLowerCase()}function h(b,v){const p={host:b.host,scheme:b.scheme,userinfo:b.userinfo,port:b.port,path:b.path,query:b.query,nid:b.nid,nss:b.nss,uuid:b.uuid,fragment:b.fragment,reference:b.reference,resourceName:b.resourceName,secure:b.secure,error:""},_=Object.assign({},v),S=[],w=s(_.scheme||p.scheme);w&&w.serialize&&w.serialize(p,_),p.path!==void 0&&(_.skipEscape?p.path=unescape(p.path):(p.path=escape(p.path),p.scheme!==void 0&&(p.path=p.path.split("%3A").join(":")))),_.reference!=="suffix"&&p.scheme&&S.push(p.scheme,":");const E=r(p);if(E!==void 0&&(_.reference!=="suffix"&&S.push("//"),S.push(E),p.path&&p.path[0]!=="/"&&S.push("/")),p.path!==void 0){let x=p.path;!_.absolutePath&&(!w||!w.absolutePath)&&(x=t(x)),E===void 0&&x[0]==="/"&&x[1]==="/"&&(x="/%2F"+x.slice(2)),S.push(x)}return p.query!==void 0&&S.push("?",p.query),p.fragment!==void 0&&S.push("#",p.fragment),S.join("")}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(b,v){const p=Object.assign({},v),_={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let S=!1;p.reference==="suffix"&&(p.scheme?b=p.scheme+":"+b:b="//"+b);const w=b.match(y);if(w){if(_.scheme=w[1],_.userinfo=w[3],_.host=w[4],_.port=parseInt(w[5],10),_.path=w[6]||"",_.query=w[7],_.fragment=w[8],isNaN(_.port)&&(_.port=w[5]),_.host)if(i(_.host)===!1){const P=e(_.host);_.host=P.host.toLowerCase(),S=P.isIPV6}else S=!0;_.scheme===void 0&&_.userinfo===void 0&&_.host===void 0&&_.port===void 0&&_.query===void 0&&!_.path?_.reference="same-document":_.scheme===void 0?_.reference="relative":_.fragment===void 0?_.reference="absolute":_.reference="uri",p.reference&&p.reference!=="suffix"&&p.reference!==_.reference&&(_.error=_.error||"URI is not a "+p.reference+" reference.");const E=s(p.scheme||_.scheme);if(!p.unicodeSupport&&(!E||!E.unicodeSupport)&&_.host&&(p.domainHost||E&&E.domainHost)&&S===!1&&a(_.host))try{_.host=URL.domainToASCII(_.host.toLowerCase())}catch(x){_.error=_.error||"Host's domain name can not be converted to ASCII: "+x}(!E||E&&!E.skipNormalize)&&(b.indexOf("%")!==-1&&(_.scheme!==void 0&&(_.scheme=unescape(_.scheme)),_.host!==void 0&&(_.host=unescape(_.host))),_.path&&(_.path=escape(unescape(_.path))),_.fragment&&(_.fragment=encodeURI(decodeURIComponent(_.fragment)))),E&&E.parse&&E.parse(_,p)}else _.error=_.error||"URI can not be parsed.";return _}const f={SCHEMES:l,normalize:c,resolve:u,resolveComponent:d,equal:m,serialize:h,parse:g};return Vn.exports=f,Vn.exports.default=f,Vn.exports.fastUri=f,Vn.exports}var Th;function J0(){if(Th)return Ho;Th=1,Object.defineProperty(Ho,"__esModule",{value:!0});const e=Y0();return e.code='require("ajv/dist/runtime/uri").default',Ho.default=e,Ho}var Ph;function X0(){return Ph||(Ph=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Vo();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=De();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=xc(),i=Wo(),a=sh(),l=Cc(),s=De(),c=zo(),u=Fo(),d=Ge(),m=K0,h=J0(),y=(z,C)=>new RegExp(z,C);y.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],f=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},p=200;function _(z){var C,V,M,T,$,q,K,re,ie,te,L,I,G,X,oe,ye,ve,fe,Te,be,Ee,he,$e,Ie,ot;const Qe=z.strict,_t=(C=z.code)===null||C===void 0?void 0:C.optimize,et=_t===!0||_t===void 0?1:_t||0,Tt=(M=(V=z.code)===null||V===void 0?void 0:V.regExp)!==null&&M!==void 0?M:y,Je=(T=z.uriResolver)!==null&&T!==void 0?T:h.default;return{strictSchema:(q=($=z.strictSchema)!==null&&$!==void 0?$:Qe)!==null&&q!==void 0?q:!0,strictNumbers:(re=(K=z.strictNumbers)!==null&&K!==void 0?K:Qe)!==null&&re!==void 0?re:!0,strictTypes:(te=(ie=z.strictTypes)!==null&&ie!==void 0?ie:Qe)!==null&&te!==void 0?te:"log",strictTuples:(I=(L=z.strictTuples)!==null&&L!==void 0?L:Qe)!==null&&I!==void 0?I:"log",strictRequired:(X=(G=z.strictRequired)!==null&&G!==void 0?G:Qe)!==null&&X!==void 0?X:!1,code:z.code?{...z.code,optimize:et,regExp:Tt}:{optimize:et,regExp:Tt},loopRequired:(oe=z.loopRequired)!==null&&oe!==void 0?oe:p,loopEnum:(ye=z.loopEnum)!==null&&ye!==void 0?ye:p,meta:(ve=z.meta)!==null&&ve!==void 0?ve:!0,messages:(fe=z.messages)!==null&&fe!==void 0?fe:!0,inlineRefs:(Te=z.inlineRefs)!==null&&Te!==void 0?Te:!0,schemaId:(be=z.schemaId)!==null&&be!==void 0?be:"$id",addUsedSchema:(Ee=z.addUsedSchema)!==null&&Ee!==void 0?Ee:!0,validateSchema:(he=z.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:($e=z.validateFormats)!==null&&$e!==void 0?$e:!0,unicodeRegExp:(Ie=z.unicodeRegExp)!==null&&Ie!==void 0?Ie:!0,int32range:(ot=z.int32range)!==null&&ot!==void 0?ot:!0,uriResolver:Je}}class S{constructor(C={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,C=this.opts={...C,..._(C)};const{es5:V,lines:M}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:f,es5:V,lines:M}),this.logger=O(C.logger);const T=C.validateFormats;C.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,b,C,"NOT SUPPORTED"),w.call(this,v,C,"DEPRECATED","warn"),this._metaOpts=j.call(this),C.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),C.keywords&&k.call(this,C.keywords),typeof C.meta=="object"&&this.addMetaSchema(C.meta),x.call(this),C.validateFormats=T}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:C,meta:V,schemaId:M}=this.opts;let T=m;M==="id"&&(T={...m},T.id=T.$id,delete T.$id),V&&C&&this.addMetaSchema(T,T[M],!1)}defaultMeta(){const{meta:C,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof C=="object"?C[V]||C:void 0}validate(C,V){let M;if(typeof C=="string"){if(M=this.getSchema(C),!M)throw new Error(`no schema with key or ref "${C}"`)}else M=this.compile(C);const T=M(V);return"$async"in M||(this.errors=M.errors),T}compile(C,V){const M=this._addSchema(C,V);return M.validate||this._compileSchemaEnv(M)}compileAsync(C,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:M}=this.opts;return T.call(this,C,V);async function T(te,L){await $.call(this,te.$schema);const I=this._addSchema(te,L);return I.validate||q.call(this,I)}async function $(te){te&&!this.getSchema(te)&&await T.call(this,{$ref:te},!0)}async function q(te){try{return this._compileSchemaEnv(te)}catch(L){if(!(L instanceof i.default))throw L;return K.call(this,L),await re.call(this,L.missingSchema),q.call(this,te)}}function K({missingSchema:te,missingRef:L}){if(this.refs[te])throw new Error(`AnySchema ${te} is loaded but ${L} cannot be resolved`)}async function re(te){const L=await ie.call(this,te);this.refs[te]||await $.call(this,L.$schema),this.refs[te]||this.addSchema(L,te,V)}async function ie(te){const L=this._loading[te];if(L)return L;try{return await(this._loading[te]=M(te))}finally{delete this._loading[te]}}}addSchema(C,V,M,T=this.opts.validateSchema){if(Array.isArray(C)){for(const q of C)this.addSchema(q,void 0,M,T);return this}let $;if(typeof C=="object"){const{schemaId:q}=this.opts;if($=C[q],$!==void 0&&typeof $!="string")throw new Error(`schema ${q} must be string`)}return V=(0,c.normalizeId)(V||$),this._checkUnique(V),this.schemas[V]=this._addSchema(C,M,V,T,!0),this}addMetaSchema(C,V,M=this.opts.validateSchema){return this.addSchema(C,V,!0,M),this}validateSchema(C,V){if(typeof C=="boolean")return!0;let M;if(M=C.$schema,M!==void 0&&typeof M!="string")throw new Error("$schema must be a string");if(M=M||this.opts.defaultMeta||this.defaultMeta(),!M)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const T=this.validate(M,C);if(!T&&V){const $="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error($);else throw new Error($)}return T}getSchema(C){let V;for(;typeof(V=E.call(this,C))=="string";)C=V;if(V===void 0){const{schemaId:M}=this.opts,T=new l.SchemaEnv({schema:{},schemaId:M});if(V=l.resolveSchema.call(this,T,C),!V)return;this.refs[C]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(C){if(C instanceof RegExp)return this._removeAllSchemas(this.schemas,C),this._removeAllSchemas(this.refs,C),this;switch(typeof C){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=E.call(this,C);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[C],delete this.refs[C],this}case"object":{const V=C;this._cache.delete(V);let M=C[this.opts.schemaId];return M&&(M=(0,c.normalizeId)(M),delete this.schemas[M],delete this.refs[M]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(C){for(const V of C)this.addKeyword(V);return this}addKeyword(C,V){let M;if(typeof C=="string")M=C,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=M);else if(typeof C=="object"&&V===void 0){if(V=C,M=V.keyword,Array.isArray(M)&&!M.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(N.call(this,M,V),!V)return(0,d.eachItem)(M,$=>U.call(this,$)),this;le.call(this,V);const T={...V,type:(0,u.getJSONTypes)(V.type),schemaType:(0,u.getJSONTypes)(V.schemaType)};return(0,d.eachItem)(M,T.type.length===0?$=>U.call(this,$,T):$=>T.type.forEach(q=>U.call(this,$,T,q))),this}getKeyword(C){const V=this.RULES.all[C];return typeof V=="object"?V.definition:!!V}removeKeyword(C){const{RULES:V}=this;delete V.keywords[C],delete V.all[C];for(const M of V.rules){const T=M.rules.findIndex($=>$.keyword===C);T>=0&&M.rules.splice(T,1)}return this}addFormat(C,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[C]=V,this}errorsText(C=this.errors,{separator:V=", ",dataVar:M="data"}={}){return!C||C.length===0?"No errors":C.map(T=>`${M}${T.instancePath} ${T.message}`).reduce((T,$)=>T+V+$)}$dataMetaSchema(C,V){const M=this.RULES.all;C=JSON.parse(JSON.stringify(C));for(const T of V){const $=T.split("/").slice(1);let q=C;for(const K of $)q=q[K];for(const K in M){const re=M[K];if(typeof re!="object")continue;const{$data:ie}=re.definition,te=q[K];ie&&te&&(q[K]=ue(te))}}return C}_removeAllSchemas(C,V){for(const M in C){const T=C[M];(!V||V.test(M))&&(typeof T=="string"?delete C[M]:T&&!T.meta&&(this._cache.delete(T.schema),delete C[M]))}}_addSchema(C,V,M,T=this.opts.validateSchema,$=this.opts.addUsedSchema){let q;const{schemaId:K}=this.opts;if(typeof C=="object")q=C[K];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof C!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(C);if(re!==void 0)return re;M=(0,c.normalizeId)(q||M);const ie=c.getSchemaRefs.call(this,C,M);return re=new l.SchemaEnv({schema:C,schemaId:K,meta:V,baseId:M,localRefs:ie}),this._cache.set(re.schema,re),$&&!M.startsWith("#")&&(M&&this._checkUnique(M),this.refs[M]=re),T&&this.validateSchema(C,!0),re}_checkUnique(C){if(this.schemas[C]||this.refs[C])throw new Error(`schema with key or id "${C}" already exists`)}_compileSchemaEnv(C){if(C.meta?this._compileMetaSchema(C):l.compileSchema.call(this,C),!C.validate)throw new Error("ajv implementation error");return C.validate}_compileMetaSchema(C){const V=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,C)}finally{this.opts=V}}}S.ValidationError=n.default,S.MissingRefError=i.default,e.default=S;function w(z,C,V,M="error"){for(const T in z){const $=T;$ in C&&this.logger[M](`${V}: option ${T}. ${z[$]}`)}}function E(z){return z=(0,c.normalizeId)(z),this.schemas[z]||this.refs[z]}function x(){const z=this.opts.schemas;if(z)if(Array.isArray(z))this.addSchema(z);else for(const C in z)this.addSchema(z[C],C)}function P(){for(const z in this.opts.formats){const C=this.opts.formats[z];C&&this.addFormat(z,C)}}function k(z){if(Array.isArray(z)){this.addVocabulary(z);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const C in z){const V=z[C];V.keyword||(V.keyword=C),this.addKeyword(V)}}function j(){const z={...this.opts};for(const C of g)delete z[C];return z}const R={log(){},warn(){},error(){}};function O(z){if(z===!1)return R;if(z===void 0)return console;if(z.log&&z.warn&&z.error)return z;throw new Error("logger must implement log, warn and error methods")}const D=/^[a-z_$][a-z0-9_$:-]*$/i;function N(z,C){const{RULES:V}=this;if((0,d.eachItem)(z,M=>{if(V.keywords[M])throw new Error(`Keyword ${M} is already defined`);if(!D.test(M))throw new Error(`Keyword ${M} has invalid name`)}),!!C&&C.$data&&!("code"in C||"validate"in C))throw new Error('$data keyword must have "code" or "validate" function')}function U(z,C,V){var M;const T=C?.post;if(V&&T)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:$}=this;let q=T?$.post:$.rules.find(({type:re})=>re===V);if(q||(q={type:V,rules:[]},$.rules.push(q)),$.keywords[z]=!0,!C)return;const K={keyword:z,definition:{...C,type:(0,u.getJSONTypes)(C.type),schemaType:(0,u.getJSONTypes)(C.schemaType)}};C.before?W.call(this,q,K,C.before):q.rules.push(K),$.all[z]=K,(M=C.implements)===null||M===void 0||M.forEach(re=>this.addKeyword(re))}function W(z,C,V){const M=z.rules.findIndex(T=>T.keyword===V);M>=0?z.rules.splice(M,0,C):(z.rules.push(C),this.logger.warn(`rule ${V} is not defined`))}function le(z){let{metaSchema:C}=z;C!==void 0&&(z.$data&&this.opts.$data&&(C=ue(C)),z.validateSchema=this.compile(C,!0))}const ce={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ue(z){return{anyOf:[z,ce]}}})(vc)),vc}var Ko={},Go={},Yo={},$h;function Z0(){if($h)return Yo;$h=1,Object.defineProperty(Yo,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Yo.default=e,Yo}var qr={},Rh;function Q0(){if(Rh)return qr;Rh=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.callRef=qr.getValidate=void 0;const e=Wo(),t=sr(),r=De(),n=Dr(),i=Cc(),a=Ge(),l={keyword:"$ref",schemaType:"string",code(u){const{gen:d,schema:m,it:h}=u,{baseId:y,schemaEnv:g,validateName:f,opts:b,self:v}=h,{root:p}=g;if((m==="#"||m==="#/")&&y===p.baseId)return S();const _=i.resolveRef.call(v,p,y,m);if(_===void 0)throw new e.default(h.opts.uriResolver,y,m);if(_ instanceof i.SchemaEnv)return w(_);return E(_);function S(){if(g===p)return c(u,f,g,g.$async);const x=d.scopeValue("root",{ref:p});return c(u,(0,r._)`${x}.validate`,p,p.$async)}function w(x){const P=s(u,x);c(u,P,x,x.$async)}function E(x){const P=d.scopeValue("schema",b.code.source===!0?{ref:x,code:(0,r.stringify)(x)}:{ref:x}),k=d.name("valid"),j=u.subschema({schema:x,dataTypes:[],schemaPath:r.nil,topSchemaRef:P,errSchemaPath:m},k);u.mergeEvaluated(j),u.ok(k)}}};function s(u,d){const{gen:m}=u;return d.validate?m.scopeValue("validate",{ref:d.validate}):(0,r._)`${m.scopeValue("wrapper",{ref:d})}.validate`}qr.getValidate=s;function c(u,d,m,h){const{gen:y,it:g}=u,{allErrors:f,schemaEnv:b,opts:v}=g,p=v.passContext?n.default.this:r.nil;h?_():S();function _(){if(!b.$async)throw new Error("async schema referenced by sync schema");const x=y.let("valid");y.try(()=>{y.code((0,r._)`await ${(0,t.callValidateCode)(u,d,p)}`),E(d),f||y.assign(x,!0)},P=>{y.if((0,r._)`!(${P} instanceof ${g.ValidationError})`,()=>y.throw(P)),w(P),f||y.assign(x,!1)}),u.ok(x)}function S(){u.result((0,t.callValidateCode)(u,d,p),()=>E(d),()=>w(d))}function w(x){const P=(0,r._)`${x}.errors`;y.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${P} : ${n.default.vErrors}.concat(${P})`),y.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function E(x){var P;if(!g.opts.unevaluated)return;const k=(P=m?.validate)===null||P===void 0?void 0:P.evaluated;if(g.props!==!0)if(k&&!k.dynamicProps)k.props!==void 0&&(g.props=a.mergeEvaluated.props(y,k.props,g.props));else{const j=y.var("props",(0,r._)`${x}.evaluated.props`);g.props=a.mergeEvaluated.props(y,j,g.props,r.Name)}if(g.items!==!0)if(k&&!k.dynamicItems)k.items!==void 0&&(g.items=a.mergeEvaluated.items(y,k.items,g.items));else{const j=y.var("items",(0,r._)`${x}.evaluated.items`);g.items=a.mergeEvaluated.items(y,j,g.items,r.Name)}}}return qr.callRef=c,qr.default=l,qr}var kh;function e_(){if(kh)return Go;kh=1,Object.defineProperty(Go,"__esModule",{value:!0});const e=Z0(),t=Q0(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Go.default=r,Go}var Jo={},Xo={},Ih;function t_(){if(Ih)return Xo;Ih=1,Object.defineProperty(Xo,"__esModule",{value:!0});const e=De(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:a,schemaCode:l})=>(0,e.str)`must be ${r[a].okStr} ${l}`,params:({keyword:a,schemaCode:l})=>(0,e._)`{comparison: ${r[a].okStr}, limit: ${l}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(a){const{keyword:l,data:s,schemaCode:c}=a;a.fail$data((0,e._)`${s} ${r[l].fail} ${c} || isNaN(${s})`)}};return Xo.default=i,Xo}var Zo={},jh;function r_(){if(jh)return Zo;jh=1,Object.defineProperty(Zo,"__esModule",{value:!0});const e=De(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:i,data:a,schemaCode:l,it:s}=n,c=s.opts.multipleOfPrecision,u=i.let("res"),d=c?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${c}`:(0,e._)`${u} !== parseInt(${u})`;n.fail$data((0,e._)`(${l} === 0 || (${u} = ${a}/${l}, ${d}))`)}};return Zo.default=r,Zo}var Qo={},ei={},Nh;function n_(){if(Nh)return ei;Nh=1,Object.defineProperty(ei,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,i=0,a;for(;i<r;)n++,a=t.charCodeAt(i++),a>=55296&&a<=56319&&i<r&&(a=t.charCodeAt(i),(a&64512)===56320&&i++);return n}return ei.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',ei}var Ah;function o_(){if(Ah)return Qo;Ah=1,Object.defineProperty(Qo,"__esModule",{value:!0});const e=De(),t=Ge(),r=n_(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:l}){const s=a==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${l} characters`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:l,data:s,schemaCode:c,it:u}=a,d=l==="maxLength"?e.operators.GT:e.operators.LT,m=u.opts.unicode===!1?(0,e._)`${s}.length`:(0,e._)`${(0,t.useFunc)(a.gen,r.default)}(${s})`;a.fail$data((0,e._)`${m} ${d} ${c}`)}};return Qo.default=i,Qo}var ti={},Mh;function i_(){if(Mh)return ti;Mh=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=sr(),t=De(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,t.str)`must match pattern "${i}"`,params:({schemaCode:i})=>(0,t._)`{pattern: ${i}}`},code(i){const{data:a,$data:l,schema:s,schemaCode:c,it:u}=i,d=u.opts.unicodeRegExp?"u":"",m=l?(0,t._)`(new RegExp(${c}, ${d}))`:(0,e.usePattern)(i,s);i.fail$data((0,t._)`!${m}.test(${a})`)}};return ti.default=n,ti}var ri={},Dh;function a_(){if(Dh)return ri;Dh=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=De(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:l}=n,s=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${a}).length ${s} ${l}`)}};return ri.default=r,ri}var ni={},qh;function s_(){if(qh)return ni;qh=1,Object.defineProperty(ni,"__esModule",{value:!0});const e=sr(),t=De(),r=Ge(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:a}})=>(0,t.str)`must have required property '${a}'`,params:({params:{missingProperty:a}})=>(0,t._)`{missingProperty: ${a}}`},code(a){const{gen:l,schema:s,schemaCode:c,data:u,$data:d,it:m}=a,{opts:h}=m;if(!d&&s.length===0)return;const y=s.length>=h.loopRequired;if(m.allErrors?g():f(),h.strictRequired){const p=a.parentSchema.properties,{definedProperties:_}=a.it;for(const S of s)if(p?.[S]===void 0&&!_.has(S)){const w=m.schemaEnv.baseId+m.errSchemaPath,E=`required property "${S}" is not defined at "${w}" (strictRequired)`;(0,r.checkStrictMode)(m,E,m.opts.strictRequired)}}function g(){if(y||d)a.block$data(t.nil,b);else for(const p of s)(0,e.checkReportMissingProp)(a,p)}function f(){const p=l.let("missing");if(y||d){const _=l.let("valid",!0);a.block$data(_,()=>v(p,_)),a.ok(_)}else l.if((0,e.checkMissingProp)(a,s,p)),(0,e.reportMissingProp)(a,p),l.else()}function b(){l.forOf("prop",c,p=>{a.setParams({missingProperty:p}),l.if((0,e.noPropertyInData)(l,u,p,h.ownProperties),()=>a.error())})}function v(p,_){a.setParams({missingProperty:p}),l.forOf(p,c,()=>{l.assign(_,(0,e.propertyInData)(l,u,p,h.ownProperties)),l.if((0,t.not)(_),()=>{a.error(),l.break()})},t.nil)}}};return ni.default=i,ni}var oi={},Lh;function l_(){if(Lh)return oi;Lh=1,Object.defineProperty(oi,"__esModule",{value:!0});const e=De(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:l}=n,s=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${a}.length ${s} ${l}`)}};return oi.default=r,oi}var ii={},ai={},Fh;function $c(){if(Fh)return ai;Fh=1,Object.defineProperty(ai,"__esModule",{value:!0});const e=yh();return e.code='require("ajv/dist/runtime/equal").default',ai.default=e,ai}var zh;function c_(){if(zh)return ii;zh=1,Object.defineProperty(ii,"__esModule",{value:!0});const e=Fo(),t=De(),r=Ge(),n=$c(),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:l,j:s}})=>(0,t.str)`must NOT have duplicate items (items ## ${s} and ${l} are identical)`,params:({params:{i:l,j:s}})=>(0,t._)`{i: ${l}, j: ${s}}`},code(l){const{gen:s,data:c,$data:u,schema:d,parentSchema:m,schemaCode:h,it:y}=l;if(!u&&!d)return;const g=s.let("valid"),f=m.items?(0,e.getSchemaTypes)(m.items):[];l.block$data(g,b,(0,t._)`${h} === false`),l.ok(g);function b(){const S=s.let("i",(0,t._)`${c}.length`),w=s.let("j");l.setParams({i:S,j:w}),s.assign(g,!0),s.if((0,t._)`${S} > 1`,()=>(v()?p:_)(S,w))}function v(){return f.length>0&&!f.some(S=>S==="object"||S==="array")}function p(S,w){const E=s.name("item"),x=(0,e.checkDataTypes)(f,E,y.opts.strictNumbers,e.DataType.Wrong),P=s.const("indices",(0,t._)`{}`);s.for((0,t._)`;${S}--;`,()=>{s.let(E,(0,t._)`${c}[${S}]`),s.if(x,(0,t._)`continue`),f.length>1&&s.if((0,t._)`typeof ${E} == "string"`,(0,t._)`${E} += "_"`),s.if((0,t._)`typeof ${P}[${E}] == "number"`,()=>{s.assign(w,(0,t._)`${P}[${E}]`),l.error(),s.assign(g,!1).break()}).code((0,t._)`${P}[${E}] = ${S}`)})}function _(S,w){const E=(0,r.useFunc)(s,n.default),x=s.name("outer");s.label(x).for((0,t._)`;${S}--;`,()=>s.for((0,t._)`${w} = ${S}; ${w}--;`,()=>s.if((0,t._)`${E}(${c}[${S}], ${c}[${w}])`,()=>{l.error(),s.assign(g,!1).break(x)})))}}};return ii.default=a,ii}var si={},Vh;function u_(){if(Vh)return si;Vh=1,Object.defineProperty(si,"__esModule",{value:!0});const e=De(),t=Ge(),r=$c(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:a})=>(0,e._)`{allowedValue: ${a}}`},code(a){const{gen:l,data:s,$data:c,schemaCode:u,schema:d}=a;c||d&&typeof d=="object"?a.fail$data((0,e._)`!${(0,t.useFunc)(l,r.default)}(${s}, ${u})`):a.fail((0,e._)`${d} !== ${s}`)}};return si.default=i,si}var li={},Bh;function d_(){if(Bh)return li;Bh=1,Object.defineProperty(li,"__esModule",{value:!0});const e=De(),t=Ge(),r=$c(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:a})=>(0,e._)`{allowedValues: ${a}}`},code(a){const{gen:l,data:s,$data:c,schema:u,schemaCode:d,it:m}=a;if(!c&&u.length===0)throw new Error("enum must have non-empty array");const h=u.length>=m.opts.loopEnum;let y;const g=()=>y??(y=(0,t.useFunc)(l,r.default));let f;if(h||c)f=l.let("valid"),a.block$data(f,b);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const p=l.const("vSchema",d);f=(0,e.or)(...u.map((_,S)=>v(p,S)))}a.pass(f);function b(){l.assign(f,!1),l.forOf("v",d,p=>l.if((0,e._)`${g()}(${s}, ${p})`,()=>l.assign(f,!0).break()))}function v(p,_){const S=u[_];return typeof S=="object"&&S!==null?(0,e._)`${g()}(${s}, ${p}[${_}])`:(0,e._)`${s} === ${S}`}}};return li.default=i,li}var Uh;function f_(){if(Uh)return Jo;Uh=1,Object.defineProperty(Jo,"__esModule",{value:!0});const e=t_(),t=r_(),r=o_(),n=i_(),i=a_(),a=s_(),l=l_(),s=c_(),c=u_(),u=d_(),d=[e.default,t.default,r.default,n.default,i.default,a.default,l.default,s.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,u.default];return Jo.default=d,Jo}var ci={},gn={},Wh;function Hh(){if(Wh)return gn;Wh=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.validateAdditionalItems=void 0;const e=De(),t=Ge(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,e.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,e._)`{limit: ${a}}`},code(a){const{parentSchema:l,it:s}=a,{items:c}=l;if(!Array.isArray(c)){(0,t.checkStrictMode)(s,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(a,c)}};function i(a,l){const{gen:s,schema:c,data:u,keyword:d,it:m}=a;m.items=!0;const h=s.const("len",(0,e._)`${u}.length`);if(c===!1)a.setParams({len:l.length}),a.pass((0,e._)`${h} <= ${l.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(m,c)){const g=s.var("valid",(0,e._)`${h} <= ${l.length}`);s.if((0,e.not)(g),()=>y(g)),a.ok(g)}function y(g){s.forRange("i",l.length,h,f=>{a.subschema({keyword:d,dataProp:f,dataPropType:t.Type.Num},g),m.allErrors||s.if((0,e.not)(g),()=>s.break())})}}return gn.validateAdditionalItems=i,gn.default=n,gn}var ui={},vn={},Kh;function Gh(){if(Kh)return vn;Kh=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.validateTuple=void 0;const e=De(),t=Ge(),r=sr(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(a){const{schema:l,it:s}=a;if(Array.isArray(l))return i(a,"additionalItems",l);s.items=!0,!(0,t.alwaysValidSchema)(s,l)&&a.ok((0,r.validateArray)(a))}};function i(a,l,s=a.schema){const{gen:c,parentSchema:u,data:d,keyword:m,it:h}=a;f(u),h.opts.unevaluated&&s.length&&h.items!==!0&&(h.items=t.mergeEvaluated.items(c,s.length,h.items));const y=c.name("valid"),g=c.const("len",(0,e._)`${d}.length`);s.forEach((b,v)=>{(0,t.alwaysValidSchema)(h,b)||(c.if((0,e._)`${g} > ${v}`,()=>a.subschema({keyword:m,schemaProp:v,dataProp:v},y)),a.ok(y))});function f(b){const{opts:v,errSchemaPath:p}=h,_=s.length,S=_===b.minItems&&(_===b.maxItems||b[l]===!1);if(v.strictTuples&&!S){const w=`"${m}" is ${_}-tuple, but minItems or maxItems/${l} are not specified or different at path "${p}"`;(0,t.checkStrictMode)(h,w,v.strictTuples)}}}return vn.validateTuple=i,vn.default=n,vn}var Yh;function p_(){if(Yh)return ui;Yh=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=Gh(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return ui.default=t,ui}var di={},Jh;function h_(){if(Jh)return di;Jh=1,Object.defineProperty(di,"__esModule",{value:!0});const e=De(),t=Ge(),r=sr(),n=Hh(),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:l}})=>(0,e.str)`must NOT have more than ${l} items`,params:({params:{len:l}})=>(0,e._)`{limit: ${l}}`},code(l){const{schema:s,parentSchema:c,it:u}=l,{prefixItems:d}=c;u.items=!0,!(0,t.alwaysValidSchema)(u,s)&&(d?(0,n.validateAdditionalItems)(l,d):l.ok((0,r.validateArray)(l)))}};return di.default=a,di}var fi={},Xh;function m_(){if(Xh)return fi;Xh=1,Object.defineProperty(fi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:a}})=>a===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${a} valid item(s)`,params:({params:{min:i,max:a}})=>a===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${a}}`},code(i){const{gen:a,schema:l,parentSchema:s,data:c,it:u}=i;let d,m;const{minContains:h,maxContains:y}=s;u.opts.next?(d=h===void 0?1:h,m=y):d=1;const g=a.const("len",(0,e._)`${c}.length`);if(i.setParams({min:d,max:m}),m===void 0&&d===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(m!==void 0&&d>m){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(u,l)){let _=(0,e._)`${g} >= ${d}`;m!==void 0&&(_=(0,e._)`${_} && ${g} <= ${m}`),i.pass(_);return}u.items=!0;const f=a.name("valid");m===void 0&&d===1?v(f,()=>a.if(f,()=>a.break())):d===0?(a.let(f,!0),m!==void 0&&a.if((0,e._)`${c}.length > 0`,b)):(a.let(f,!1),b()),i.result(f,()=>i.reset());function b(){const _=a.name("_valid"),S=a.let("count",0);v(_,()=>a.if(_,()=>p(S)))}function v(_,S){a.forRange("i",0,g,w=>{i.subschema({keyword:"contains",dataProp:w,dataPropType:t.Type.Num,compositeRule:!0},_),S()})}function p(_){a.code((0,e._)`${_}++`),m===void 0?a.if((0,e._)`${_} >= ${d}`,()=>a.assign(f,!0).break()):(a.if((0,e._)`${_} > ${m}`,()=>a.assign(f,!1).break()),d===1?a.assign(f,!0):a.if((0,e._)`${_} >= ${d}`,()=>a.assign(f,!0)))}}};return fi.default=n,fi}var Rc={},Zh;function y_(){return Zh||(Zh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=De(),r=Ge(),n=sr();e.error={message:({params:{property:c,depsCount:u,deps:d}})=>{const m=u===1?"property":"properties";return(0,t.str)`must have ${m} ${d} when property ${c} is present`},params:({params:{property:c,depsCount:u,deps:d,missingProperty:m}})=>(0,t._)`{property: ${c},
|
|
10
|
+
|| ${P} === "boolean" || ${E} === null`).assign(k,(0,n._)`[${E}]`)}}}function h({gen:p,parentData:_,parentDataProperty:S},w){p.if((0,n._)`${_} !== undefined`,()=>p.assign((0,n._)`${_}[${S}]`,w))}function y(p,_,S,w=a.Correct){const E=w===a.Correct?n.operators.EQ:n.operators.NEQ;let x;switch(p){case"null":return(0,n._)`${_} ${E} null`;case"array":x=(0,n._)`Array.isArray(${_})`;break;case"object":x=(0,n._)`${_} && typeof ${_} == "object" && !Array.isArray(${_})`;break;case"integer":x=P((0,n._)`!(${_} % 1) && !isNaN(${_})`);break;case"number":x=P();break;default:return(0,n._)`typeof ${_} ${E} ${p}`}return w===a.Correct?x:(0,n.not)(x);function P(k=n.nil){return(0,n.and)((0,n._)`typeof ${_} == "number"`,k,S?(0,n._)`isFinite(${_})`:n.nil)}}Pt.checkDataType=y;function g(p,_,S,w){if(p.length===1)return y(p[0],_,S,w);let E;const x=(0,i.toHash)(p);if(x.array&&x.object){const P=(0,n._)`typeof ${_} != "object"`;E=x.null?P:(0,n._)`!${_} || ${P}`,delete x.null,delete x.array,delete x.object}else E=n.nil;x.number&&delete x.integer;for(const P in x)E=(0,n.and)(E,y(P,_,S,w));return E}Pt.checkDataTypes=g;const f={message:({schema:p})=>`must be ${p}`,params:({schema:p,schemaValue:_})=>typeof p=="string"?(0,n._)`{type: ${p}}`:(0,n._)`{type: ${_}}`};function b(p){const _=v(p);(0,r.reportError)(_,f)}Pt.reportTypeError=b;function v(p){const{gen:_,data:S,schema:w}=p,E=(0,i.schemaRefOrVal)(p,w,"type");return{gen:_,keyword:"type",data:S,schema:w.type,schemaCode:E,schemaValue:E,parentSchema:w,params:{},it:p}}return Pt}var zn={},dh;function B0(){if(dh)return zn;dh=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.assignDefaults=void 0;const e=De(),t=Ge();function r(i,a){const{properties:l,items:s}=i.schema;if(a==="object"&&l)for(const c in l)n(i,c,l[c].default);else a==="array"&&Array.isArray(s)&&s.forEach((c,u)=>n(i,u,c.default))}zn.assignDefaults=r;function n(i,a,l){const{gen:s,compositeRule:c,data:u,opts:d}=i;if(l===void 0)return;const m=(0,e._)`${u}${(0,e.getProperty)(a)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${m}`);return}let h=(0,e._)`${m} === undefined`;d.useDefaults==="empty"&&(h=(0,e._)`${h} || ${m} === null || ${m} === ""`),s.if(h,(0,e._)`${m} = ${(0,e.stringify)(l)}`)}return zn}var ar={},tt={},fh;function sr(){if(fh)return tt;fh=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.validateUnion=tt.validateArray=tt.usePattern=tt.callValidateCode=tt.schemaProperties=tt.allSchemaProperties=tt.noPropertyInData=tt.propertyInData=tt.isOwnProperty=tt.hasPropFunc=tt.reportMissingProp=tt.checkMissingProp=tt.checkReportMissingProp=void 0;const e=De(),t=Ge(),r=Dr(),n=Ge();function i(p,_){const{gen:S,data:w,it:E}=p;S.if(d(S,w,_,E.opts.ownProperties),()=>{p.setParams({missingProperty:(0,e._)`${_}`},!0),p.error()})}tt.checkReportMissingProp=i;function a({gen:p,data:_,it:{opts:S}},w,E){return(0,e.or)(...w.map(x=>(0,e.and)(d(p,_,x,S.ownProperties),(0,e._)`${E} = ${x}`)))}tt.checkMissingProp=a;function l(p,_){p.setParams({missingProperty:_},!0),p.error()}tt.reportMissingProp=l;function s(p){return p.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}tt.hasPropFunc=s;function c(p,_,S){return(0,e._)`${s(p)}.call(${_}, ${S})`}tt.isOwnProperty=c;function u(p,_,S,w){const E=(0,e._)`${_}${(0,e.getProperty)(S)} !== undefined`;return w?(0,e._)`${E} && ${c(p,_,S)}`:E}tt.propertyInData=u;function d(p,_,S,w){const E=(0,e._)`${_}${(0,e.getProperty)(S)} === undefined`;return w?(0,e.or)(E,(0,e.not)(c(p,_,S))):E}tt.noPropertyInData=d;function m(p){return p?Object.keys(p).filter(_=>_!=="__proto__"):[]}tt.allSchemaProperties=m;function h(p,_){return m(_).filter(S=>!(0,t.alwaysValidSchema)(p,_[S]))}tt.schemaProperties=h;function y({schemaCode:p,data:_,it:{gen:S,topSchemaRef:w,schemaPath:E,errorPath:x},it:P},k,M,R){const O=R?(0,e._)`${p}, ${_}, ${w}${E}`:_,q=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,x)],[r.default.parentData,P.parentData],[r.default.parentDataProperty,P.parentDataProperty],[r.default.rootData,r.default.rootData]];P.opts.dynamicRef&&q.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const N=(0,e._)`${O}, ${S.object(...q)}`;return M!==e.nil?(0,e._)`${k}.call(${M}, ${N})`:(0,e._)`${k}(${N})`}tt.callValidateCode=y;const g=(0,e._)`new RegExp`;function f({gen:p,it:{opts:_}},S){const w=_.unicodeRegExp?"u":"",{regExp:E}=_.code,x=E(S,w);return p.scopeValue("pattern",{key:x.toString(),ref:x,code:(0,e._)`${E.code==="new RegExp"?g:(0,n.useFunc)(p,E)}(${S}, ${w})`})}tt.usePattern=f;function b(p){const{gen:_,data:S,keyword:w,it:E}=p,x=_.name("valid");if(E.allErrors){const k=_.let("valid",!0);return P(()=>_.assign(k,!1)),k}return _.var(x,!0),P(()=>_.break()),x;function P(k){const M=_.const("len",(0,e._)`${S}.length`);_.forRange("i",0,M,R=>{p.subschema({keyword:w,dataProp:R,dataPropType:t.Type.Num},x),_.if((0,e.not)(x),k)})}}tt.validateArray=b;function v(p){const{gen:_,schema:S,keyword:w,it:E}=p;if(!Array.isArray(S))throw new Error("ajv implementation error");if(S.some(M=>(0,t.alwaysValidSchema)(E,M))&&!E.opts.unevaluated)return;const P=_.let("valid",!1),k=_.name("_valid");_.block(()=>S.forEach((M,R)=>{const O=p.subschema({keyword:w,schemaProp:R,compositeRule:!0},k);_.assign(P,(0,e._)`${P} || ${k}`),p.mergeValidEvaluated(O,k)||_.if((0,e.not)(P))})),p.result(P,()=>p.reset(),()=>p.error(!0))}return tt.validateUnion=v,tt}var ph;function U0(){if(ph)return ar;ph=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.validateKeywordUsage=ar.validSchemaType=ar.funcKeywordCode=ar.macroKeywordCode=void 0;const e=De(),t=Dr(),r=sr(),n=Lo();function i(h,y){const{gen:g,keyword:f,schema:b,parentSchema:v,it:p}=h,_=y.macro.call(p.self,b,v,p),S=u(g,f,_);p.opts.validateSchema!==!1&&p.self.validateSchema(_,!0);const w=g.name("valid");h.subschema({schema:_,schemaPath:e.nil,errSchemaPath:`${p.errSchemaPath}/${f}`,topSchemaRef:S,compositeRule:!0},w),h.pass(w,()=>h.error(!0))}ar.macroKeywordCode=i;function a(h,y){var g;const{gen:f,keyword:b,schema:v,parentSchema:p,$data:_,it:S}=h;c(S,y);const w=!_&&y.compile?y.compile.call(S.self,v,p,S):y.validate,E=u(f,b,w),x=f.let("valid");h.block$data(x,P),h.ok((g=y.valid)!==null&&g!==void 0?g:x);function P(){if(y.errors===!1)R(),y.modifying&&l(h),O(()=>h.error());else{const q=y.async?k():M();y.modifying&&l(h),O(()=>s(h,q))}}function k(){const q=f.let("ruleErrs",null);return f.try(()=>R((0,e._)`await `),N=>f.assign(x,!1).if((0,e._)`${N} instanceof ${S.ValidationError}`,()=>f.assign(q,(0,e._)`${N}.errors`),()=>f.throw(N))),q}function M(){const q=(0,e._)`${E}.errors`;return f.assign(q,null),R(e.nil),q}function R(q=y.async?(0,e._)`await `:e.nil){const N=S.opts.passContext?t.default.this:t.default.self,U=!("compile"in y&&!_||y.schema===!1);f.assign(x,(0,e._)`${q}${(0,r.callValidateCode)(h,E,N,U)}`,y.modifying)}function O(q){var N;f.if((0,e.not)((N=y.valid)!==null&&N!==void 0?N:x),q)}}ar.funcKeywordCode=a;function l(h){const{gen:y,data:g,it:f}=h;y.if(f.parentData,()=>y.assign(g,(0,e._)`${f.parentData}[${f.parentDataProperty}]`))}function s(h,y){const{gen:g}=h;g.if((0,e._)`Array.isArray(${y})`,()=>{g.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${y} : ${t.default.vErrors}.concat(${y})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(h)},()=>h.error())}function c({schemaEnv:h},y){if(y.async&&!h.$async)throw new Error("async keyword in sync schema")}function u(h,y,g){if(g===void 0)throw new Error(`keyword "${y}" failed to compile`);return h.scopeValue("keyword",typeof g=="function"?{ref:g}:{ref:g,code:(0,e.stringify)(g)})}function d(h,y,g=!1){return!y.length||y.some(f=>f==="array"?Array.isArray(h):f==="object"?h&&typeof h=="object"&&!Array.isArray(h):typeof h==f||g&&typeof h>"u")}ar.validSchemaType=d;function m({schema:h,opts:y,self:g,errSchemaPath:f},b,v){if(Array.isArray(b.keyword)?!b.keyword.includes(v):b.keyword!==v)throw new Error("ajv implementation error");const p=b.dependencies;if(p?.some(_=>!Object.prototype.hasOwnProperty.call(h,_)))throw new Error(`parent schema must have dependencies of ${v}: ${p.join(",")}`);if(b.validateSchema&&!b.validateSchema(h[v])){const S=`keyword "${v}" value is invalid at path "${f}": `+g.errorsText(b.validateSchema.errors);if(y.validateSchema==="log")g.logger.error(S);else throw new Error(S)}}return ar.validateKeywordUsage=m,ar}var Pr={},hh;function W0(){if(hh)return Pr;hh=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.extendSubschemaMode=Pr.extendSubschemaData=Pr.getSubschema=void 0;const e=De(),t=Ge();function r(a,{keyword:l,schemaProp:s,schema:c,schemaPath:u,errSchemaPath:d,topSchemaRef:m}){if(l!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(l!==void 0){const h=a.schema[l];return s===void 0?{schema:h,schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(l)}`,errSchemaPath:`${a.errSchemaPath}/${l}`}:{schema:h[s],schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(l)}${(0,e.getProperty)(s)}`,errSchemaPath:`${a.errSchemaPath}/${l}/${(0,t.escapeFragment)(s)}`}}if(c!==void 0){if(u===void 0||d===void 0||m===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:u,topSchemaRef:m,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}Pr.getSubschema=r;function n(a,l,{dataProp:s,dataPropType:c,data:u,dataTypes:d,propertyName:m}){if(u!==void 0&&s!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:h}=l;if(s!==void 0){const{errorPath:g,dataPathArr:f,opts:b}=l,v=h.let("data",(0,e._)`${l.data}${(0,e.getProperty)(s)}`,!0);y(v),a.errorPath=(0,e.str)`${g}${(0,t.getErrorPath)(s,c,b.jsPropertySyntax)}`,a.parentDataProperty=(0,e._)`${s}`,a.dataPathArr=[...f,a.parentDataProperty]}if(u!==void 0){const g=u instanceof e.Name?u:h.let("data",u,!0);y(g),m!==void 0&&(a.propertyName=m)}d&&(a.dataTypes=d);function y(g){a.data=g,a.dataLevel=l.dataLevel+1,a.dataTypes=[],l.definedProperties=new Set,a.parentData=l.data,a.dataNames=[...l.dataNames,g]}}Pr.extendSubschemaData=n;function i(a,{jtdDiscriminator:l,jtdMetadata:s,compositeRule:c,createErrors:u,allErrors:d}){c!==void 0&&(a.compositeRule=c),u!==void 0&&(a.createErrors=u),d!==void 0&&(a.allErrors=d),a.jtdDiscriminator=l,a.jtdMetadata=s}return Pr.extendSubschemaMode=i,Pr}var Dt={},Ec,mh;function yh(){return mh||(mh=1,Ec=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var l=a[i];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r}),Ec}var Oc={exports:{}},gh;function H0(){if(gh)return Oc.exports;gh=1;var e=Oc.exports=function(n,i,a){typeof i=="function"&&(a=i,i={}),a=i.cb||a;var l=typeof a=="function"?a:a.pre||function(){},s=a.post||function(){};t(i,l,s,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(n,i,a,l,s,c,u,d,m,h){if(l&&typeof l=="object"&&!Array.isArray(l)){i(l,s,c,u,d,m,h);for(var y in l){var g=l[y];if(Array.isArray(g)){if(y in e.arrayKeywords)for(var f=0;f<g.length;f++)t(n,i,a,g[f],s+"/"+y+"/"+f,c,s,y,l,f)}else if(y in e.propsKeywords){if(g&&typeof g=="object")for(var b in g)t(n,i,a,g[b],s+"/"+y+"/"+r(b),c,s,y,l,b)}else(y in e.keywords||n.allKeys&&!(y in e.skipKeywords))&&t(n,i,a,g,s+"/"+y,c,s,y,l)}a(l,s,c,u,d,m,h)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Oc.exports}var vh;function zo(){if(vh)return Dt;vh=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.getSchemaRefs=Dt.resolveUrl=Dt.normalizeId=Dt._getFullPath=Dt.getFullPath=Dt.inlineRef=void 0;const e=Ge(),t=yh(),r=H0(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(f,b=!0){return typeof f=="boolean"?!0:b===!0?!l(f):b?s(f)<=b:!1}Dt.inlineRef=i;const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(f){for(const b in f){if(a.has(b))return!0;const v=f[b];if(Array.isArray(v)&&v.some(l)||typeof v=="object"&&l(v))return!0}return!1}function s(f){let b=0;for(const v in f){if(v==="$ref")return 1/0;if(b++,!n.has(v)&&(typeof f[v]=="object"&&(0,e.eachItem)(f[v],p=>b+=s(p)),b===1/0))return 1/0}return b}function c(f,b="",v){v!==!1&&(b=m(b));const p=f.parse(b);return u(f,p)}Dt.getFullPath=c;function u(f,b){return f.serialize(b).split("#")[0]+"#"}Dt._getFullPath=u;const d=/#\/?$/;function m(f){return f?f.replace(d,""):""}Dt.normalizeId=m;function h(f,b,v){return v=m(v),f.resolve(b,v)}Dt.resolveUrl=h;const y=/^[a-z_][-a-z0-9._]*$/i;function g(f,b){if(typeof f=="boolean")return{};const{schemaId:v,uriResolver:p}=this.opts,_=m(f[v]||b),S={"":_},w=c(p,_,!1),E={},x=new Set;return r(f,{allKeys:!0},(M,R,O,q)=>{if(q===void 0)return;const N=w+R;let U=S[q];typeof M[v]=="string"&&(U=W.call(this,M[v])),le.call(this,M.$anchor),le.call(this,M.$dynamicAnchor),S[R]=U;function W(ce){const ue=this.opts.uriResolver.resolve;if(ce=m(U?ue(U,ce):ce),x.has(ce))throw k(ce);x.add(ce);let z=this.refs[ce];return typeof z=="string"&&(z=this.refs[z]),typeof z=="object"?P(M,z.schema,ce):ce!==m(N)&&(ce[0]==="#"?(P(M,E[ce],ce),E[ce]=M):this.refs[ce]=N),ce}function le(ce){if(typeof ce=="string"){if(!y.test(ce))throw new Error(`invalid anchor "${ce}"`);W.call(this,`#${ce}`)}}}),E;function P(M,R,O){if(R!==void 0&&!t(M,R))throw k(O)}function k(M){return new Error(`reference "${M}" resolves to more than one schema`)}}return Dt.getSchemaRefs=g,Dt}var bh;function Vo(){if(bh)return Cr;bh=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.getData=Cr.KeywordCxt=Cr.validateFunctionCode=void 0;const e=V0(),t=Fo(),r=ch(),n=Fo(),i=B0(),a=U0(),l=W0(),s=De(),c=Dr(),u=zo(),d=Ge(),m=Lo();function h(L){if(w(L)&&(x(L),S(L))){b(L);return}y(L,()=>(0,e.topBoolOrEmptySchema)(L))}Cr.validateFunctionCode=h;function y({gen:L,validateName:I,schema:G,schemaEnv:X,opts:ne},he){ne.code.es5?L.func(I,(0,s._)`${c.default.data}, ${c.default.valCxt}`,X.$async,()=>{L.code((0,s._)`"use strict"; ${p(G,ne)}`),f(L,ne),L.code(he)}):L.func(I,(0,s._)`${c.default.data}, ${g(ne)}`,X.$async,()=>L.code(p(G,ne)).code(he))}function g(L){return(0,s._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${L.dynamicRef?(0,s._)`, ${c.default.dynamicAnchors}={}`:s.nil}}={}`}function f(L,I){L.if(c.default.valCxt,()=>{L.var(c.default.instancePath,(0,s._)`${c.default.valCxt}.${c.default.instancePath}`),L.var(c.default.parentData,(0,s._)`${c.default.valCxt}.${c.default.parentData}`),L.var(c.default.parentDataProperty,(0,s._)`${c.default.valCxt}.${c.default.parentDataProperty}`),L.var(c.default.rootData,(0,s._)`${c.default.valCxt}.${c.default.rootData}`),I.dynamicRef&&L.var(c.default.dynamicAnchors,(0,s._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{L.var(c.default.instancePath,(0,s._)`""`),L.var(c.default.parentData,(0,s._)`undefined`),L.var(c.default.parentDataProperty,(0,s._)`undefined`),L.var(c.default.rootData,c.default.data),I.dynamicRef&&L.var(c.default.dynamicAnchors,(0,s._)`{}`)})}function b(L){const{schema:I,opts:G,gen:X}=L;y(L,()=>{G.$comment&&I.$comment&&q(L),M(L),X.let(c.default.vErrors,null),X.let(c.default.errors,0),G.unevaluated&&v(L),P(L),N(L)})}function v(L){const{gen:I,validateName:G}=L;L.evaluated=I.const("evaluated",(0,s._)`${G}.evaluated`),I.if((0,s._)`${L.evaluated}.dynamicProps`,()=>I.assign((0,s._)`${L.evaluated}.props`,(0,s._)`undefined`)),I.if((0,s._)`${L.evaluated}.dynamicItems`,()=>I.assign((0,s._)`${L.evaluated}.items`,(0,s._)`undefined`))}function p(L,I){const G=typeof L=="object"&&L[I.schemaId];return G&&(I.code.source||I.code.process)?(0,s._)`/*# sourceURL=${G} */`:s.nil}function _(L,I){if(w(L)&&(x(L),S(L))){E(L,I);return}(0,e.boolOrEmptySchema)(L,I)}function S({schema:L,self:I}){if(typeof L=="boolean")return!L;for(const G in L)if(I.RULES.all[G])return!0;return!1}function w(L){return typeof L.schema!="boolean"}function E(L,I){const{schema:G,gen:X,opts:ne}=L;ne.$comment&&G.$comment&&q(L),R(L),O(L);const he=X.const("_errs",c.default.errors);P(L,he),X.var(I,(0,s._)`${he} === ${c.default.errors}`)}function x(L){(0,d.checkUnknownRules)(L),k(L)}function P(L,I){if(L.opts.jtd)return W(L,[],!1,I);const G=(0,t.getSchemaTypes)(L.schema),X=(0,t.coerceAndCheckDataType)(L,G);W(L,G,!X,I)}function k(L){const{schema:I,errSchemaPath:G,opts:X,self:ne}=L;I.$ref&&X.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(I,ne.RULES)&&ne.logger.warn(`$ref: keywords ignored in schema at path "${G}"`)}function M(L){const{schema:I,opts:G}=L;I.default!==void 0&&G.useDefaults&&G.strictSchema&&(0,d.checkStrictMode)(L,"default is ignored in the schema root")}function R(L){const I=L.schema[L.opts.schemaId];I&&(L.baseId=(0,u.resolveUrl)(L.opts.uriResolver,L.baseId,I))}function O(L){if(L.schema.$async&&!L.schemaEnv.$async)throw new Error("async schema in sync schema")}function q({gen:L,schemaEnv:I,schema:G,errSchemaPath:X,opts:ne}){const he=G.$comment;if(ne.$comment===!0)L.code((0,s._)`${c.default.self}.logger.log(${he})`);else if(typeof ne.$comment=="function"){const ve=(0,s.str)`${X}/$comment`,fe=L.scopeValue("root",{ref:I.root});L.code((0,s._)`${c.default.self}.opts.$comment(${he}, ${ve}, ${fe}.schema)`)}}function N(L){const{gen:I,schemaEnv:G,validateName:X,ValidationError:ne,opts:he}=L;G.$async?I.if((0,s._)`${c.default.errors} === 0`,()=>I.return(c.default.data),()=>I.throw((0,s._)`new ${ne}(${c.default.vErrors})`)):(I.assign((0,s._)`${X}.errors`,c.default.vErrors),he.unevaluated&&U(L),I.return((0,s._)`${c.default.errors} === 0`))}function U({gen:L,evaluated:I,props:G,items:X}){G instanceof s.Name&&L.assign((0,s._)`${I}.props`,G),X instanceof s.Name&&L.assign((0,s._)`${I}.items`,X)}function W(L,I,G,X){const{gen:ne,schema:he,data:ve,allErrors:fe,opts:Te,self:be}=L,{RULES:Ee}=be;if(he.$ref&&(Te.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(he,Ee))){ne.block(()=>K(L,"$ref",Ee.all.$ref.definition));return}Te.jtd||ce(L,I),ne.block(()=>{for(const $e of Ee.rules)ge($e);ge(Ee.post)});function ge($e){(0,r.shouldUseGroup)(he,$e)&&($e.type?(ne.if((0,n.checkDataType)($e.type,ve,Te.strictNumbers)),le(L,$e),I.length===1&&I[0]===$e.type&&G&&(ne.else(),(0,n.reportTypeError)(L)),ne.endIf()):le(L,$e),fe||ne.if((0,s._)`${c.default.errors} === ${X||0}`))}}function le(L,I){const{gen:G,schema:X,opts:{useDefaults:ne}}=L;ne&&(0,i.assignDefaults)(L,I.type),G.block(()=>{for(const he of I.rules)(0,r.shouldUseRule)(X,he)&&K(L,he.keyword,he.definition,I.type)})}function ce(L,I){L.schemaEnv.meta||!L.opts.strictTypes||(ue(L,I),L.opts.allowUnionTypes||z(L,I),C(L,L.dataTypes))}function ue(L,I){if(I.length){if(!L.dataTypes.length){L.dataTypes=I;return}I.forEach(G=>{A(L.dataTypes,G)||$(L,`type "${G}" not allowed by context "${L.dataTypes.join(",")}"`)}),T(L,I)}}function z(L,I){I.length>1&&!(I.length===2&&I.includes("null"))&&$(L,"use allowUnionTypes to allow union type keyword")}function C(L,I){const G=L.self.RULES.all;for(const X in G){const ne=G[X];if(typeof ne=="object"&&(0,r.shouldUseRule)(L.schema,ne)){const{type:he}=ne.definition;he.length&&!he.some(ve=>V(I,ve))&&$(L,`missing type "${he.join(",")}" for keyword "${X}"`)}}}function V(L,I){return L.includes(I)||I==="number"&&L.includes("integer")}function A(L,I){return L.includes(I)||I==="integer"&&L.includes("number")}function T(L,I){const G=[];for(const X of L.dataTypes)A(I,X)?G.push(X):I.includes("integer")&&X==="number"&&G.push("integer");L.dataTypes=G}function $(L,I){const G=L.schemaEnv.baseId+L.errSchemaPath;I+=` at "${G}" (strictTypes)`,(0,d.checkStrictMode)(L,I,L.opts.strictTypes)}class D{constructor(I,G,X){if((0,a.validateKeywordUsage)(I,G,X),this.gen=I.gen,this.allErrors=I.allErrors,this.keyword=X,this.data=I.data,this.schema=I.schema[X],this.$data=G.$data&&I.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(I,this.schema,X,this.$data),this.schemaType=G.schemaType,this.parentSchema=I.schema,this.params={},this.it=I,this.def=G,this.$data)this.schemaCode=I.gen.const("vSchema",te(this.$data,I));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,G.schemaType,G.allowUndefined))throw new Error(`${X} value must be ${JSON.stringify(G.schemaType)}`);("code"in G?G.trackErrors:G.errors!==!1)&&(this.errsCount=I.gen.const("_errs",c.default.errors))}result(I,G,X){this.failResult((0,s.not)(I),G,X)}failResult(I,G,X){this.gen.if(I),X?X():this.error(),G?(this.gen.else(),G(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(I,G){this.failResult((0,s.not)(I),void 0,G)}fail(I){if(I===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(I),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(I){if(!this.$data)return this.fail(I);const{schemaCode:G}=this;this.fail((0,s._)`${G} !== undefined && (${(0,s.or)(this.invalid$data(),I)})`)}error(I,G,X){if(G){this.setParams(G),this._error(I,X),this.setParams({});return}this._error(I,X)}_error(I,G){(I?m.reportExtraError:m.reportError)(this,this.def.error,G)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(I){this.allErrors||this.gen.if(I)}setParams(I,G){G?Object.assign(this.params,I):this.params=I}block$data(I,G,X=s.nil){this.gen.block(()=>{this.check$data(I,X),G()})}check$data(I=s.nil,G=s.nil){if(!this.$data)return;const{gen:X,schemaCode:ne,schemaType:he,def:ve}=this;X.if((0,s.or)((0,s._)`${ne} === undefined`,G)),I!==s.nil&&X.assign(I,!0),(he.length||ve.validateSchema)&&(X.elseIf(this.invalid$data()),this.$dataError(),I!==s.nil&&X.assign(I,!1)),X.else()}invalid$data(){const{gen:I,schemaCode:G,schemaType:X,def:ne,it:he}=this;return(0,s.or)(ve(),fe());function ve(){if(X.length){if(!(G instanceof s.Name))throw new Error("ajv implementation error");const Te=Array.isArray(X)?X:[X];return(0,s._)`${(0,n.checkDataTypes)(Te,G,he.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}function fe(){if(ne.validateSchema){const Te=I.scopeValue("validate$data",{ref:ne.validateSchema});return(0,s._)`!${Te}(${G})`}return s.nil}}subschema(I,G){const X=(0,l.getSubschema)(this.it,I);(0,l.extendSubschemaData)(X,this.it,I),(0,l.extendSubschemaMode)(X,I);const ne={...this.it,...X,items:void 0,props:void 0};return _(ne,G),ne}mergeEvaluated(I,G){const{it:X,gen:ne}=this;X.opts.unevaluated&&(X.props!==!0&&I.props!==void 0&&(X.props=d.mergeEvaluated.props(ne,I.props,X.props,G)),X.items!==!0&&I.items!==void 0&&(X.items=d.mergeEvaluated.items(ne,I.items,X.items,G)))}mergeValidEvaluated(I,G){const{it:X,gen:ne}=this;if(X.opts.unevaluated&&(X.props!==!0||X.items!==!0))return ne.if(G,()=>this.mergeEvaluated(I,s.Name)),!0}}Cr.KeywordCxt=D;function K(L,I,G,X){const ne=new D(L,G,I);"code"in G?G.code(ne,X):ne.$data&&G.validate?(0,a.funcKeywordCode)(ne,G):"macro"in G?(0,a.macroKeywordCode)(ne,G):(G.compile||G.validate)&&(0,a.funcKeywordCode)(ne,G)}const re=/^\/(?:[^~]|~0|~1)*$/,ie=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function te(L,{dataLevel:I,dataNames:G,dataPathArr:X}){let ne,he;if(L==="")return c.default.rootData;if(L[0]==="/"){if(!re.test(L))throw new Error(`Invalid JSON-pointer: ${L}`);ne=L,he=c.default.rootData}else{const be=ie.exec(L);if(!be)throw new Error(`Invalid JSON-pointer: ${L}`);const Ee=+be[1];if(ne=be[2],ne==="#"){if(Ee>=I)throw new Error(Te("property/index",Ee));return X[I-Ee]}if(Ee>I)throw new Error(Te("data",Ee));if(he=G[I-Ee],!ne)return he}let ve=he;const fe=ne.split("/");for(const be of fe)be&&(he=(0,s._)`${he}${(0,s.getProperty)((0,d.unescapeJsonPointer)(be))}`,ve=(0,s._)`${ve} && ${he}`);return ve;function Te(be,Ee){return`Cannot access ${be} ${Ee} levels up, current level is ${I}`}}return Cr.getData=te,Cr}var Bo={},_h;function xc(){if(_h)return Bo;_h=1,Object.defineProperty(Bo,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Bo.default=e,Bo}var Uo={},wh;function Wo(){if(wh)return Uo;wh=1,Object.defineProperty(Uo,"__esModule",{value:!0});const e=zo();class t extends Error{constructor(n,i,a,l){super(l||`can't resolve reference ${a} from id ${i}`),this.missingRef=(0,e.resolveUrl)(n,i,a),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return Uo.default=t,Uo}var Wt={},Sh;function Cc(){if(Sh)return Wt;Sh=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.resolveSchema=Wt.getCompilingSchema=Wt.resolveRef=Wt.compileSchema=Wt.SchemaEnv=void 0;const e=De(),t=xc(),r=Dr(),n=zo(),i=Ge(),a=Vo();class l{constructor(v){var p;this.refs={},this.dynamicAnchors={};let _;typeof v.schema=="object"&&(_=v.schema),this.schema=v.schema,this.schemaId=v.schemaId,this.root=v.root||this,this.baseId=(p=v.baseId)!==null&&p!==void 0?p:(0,n.normalizeId)(_?.[v.schemaId||"$id"]),this.schemaPath=v.schemaPath,this.localRefs=v.localRefs,this.meta=v.meta,this.$async=_?.$async,this.refs={}}}Wt.SchemaEnv=l;function s(b){const v=d.call(this,b);if(v)return v;const p=(0,n.getFullPath)(this.opts.uriResolver,b.root.baseId),{es5:_,lines:S}=this.opts.code,{ownProperties:w}=this.opts,E=new e.CodeGen(this.scope,{es5:_,lines:S,ownProperties:w});let x;b.$async&&(x=E.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const P=E.scopeName("validate");b.validateName=P;const k={gen:E,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:E.scopeValue("schema",this.opts.code.source===!0?{ref:b.schema,code:(0,e.stringify)(b.schema)}:{ref:b.schema}),validateName:P,ValidationError:x,schema:b.schema,schemaEnv:b,rootId:p,baseId:b.baseId||p,schemaPath:e.nil,errSchemaPath:b.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let M;try{this._compilations.add(b),(0,a.validateFunctionCode)(k),E.optimize(this.opts.code.optimize);const R=E.toString();M=`${E.scopeRefs(r.default.scope)}return ${R}`,this.opts.code.process&&(M=this.opts.code.process(M,b));const q=new Function(`${r.default.self}`,`${r.default.scope}`,M)(this,this.scope.get());if(this.scope.value(P,{ref:q}),q.errors=null,q.schema=b.schema,q.schemaEnv=b,b.$async&&(q.$async=!0),this.opts.code.source===!0&&(q.source={validateName:P,validateCode:R,scopeValues:E._values}),this.opts.unevaluated){const{props:N,items:U}=k;q.evaluated={props:N instanceof e.Name?void 0:N,items:U instanceof e.Name?void 0:U,dynamicProps:N instanceof e.Name,dynamicItems:U instanceof e.Name},q.source&&(q.source.evaluated=(0,e.stringify)(q.evaluated))}return b.validate=q,b}catch(R){throw delete b.validate,delete b.validateName,M&&this.logger.error("Error compiling schema, function code:",M),R}finally{this._compilations.delete(b)}}Wt.compileSchema=s;function c(b,v,p){var _;p=(0,n.resolveUrl)(this.opts.uriResolver,v,p);const S=b.refs[p];if(S)return S;let w=h.call(this,b,p);if(w===void 0){const E=(_=b.localRefs)===null||_===void 0?void 0:_[p],{schemaId:x}=this.opts;E&&(w=new l({schema:E,schemaId:x,root:b,baseId:v}))}if(w!==void 0)return b.refs[p]=u.call(this,w)}Wt.resolveRef=c;function u(b){return(0,n.inlineRef)(b.schema,this.opts.inlineRefs)?b.schema:b.validate?b:s.call(this,b)}function d(b){for(const v of this._compilations)if(m(v,b))return v}Wt.getCompilingSchema=d;function m(b,v){return b.schema===v.schema&&b.root===v.root&&b.baseId===v.baseId}function h(b,v){let p;for(;typeof(p=this.refs[v])=="string";)v=p;return p||this.schemas[v]||y.call(this,b,v)}function y(b,v){const p=this.opts.uriResolver.parse(v),_=(0,n._getFullPath)(this.opts.uriResolver,p);let S=(0,n.getFullPath)(this.opts.uriResolver,b.baseId,void 0);if(Object.keys(b.schema).length>0&&_===S)return f.call(this,p,b);const w=(0,n.normalizeId)(_),E=this.refs[w]||this.schemas[w];if(typeof E=="string"){const x=y.call(this,b,E);return typeof x?.schema!="object"?void 0:f.call(this,p,x)}if(typeof E?.schema=="object"){if(E.validate||s.call(this,E),w===(0,n.normalizeId)(v)){const{schema:x}=E,{schemaId:P}=this.opts,k=x[P];return k&&(S=(0,n.resolveUrl)(this.opts.uriResolver,S,k)),new l({schema:x,schemaId:P,root:b,baseId:S})}return f.call(this,p,E)}}Wt.resolveSchema=y;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function f(b,{baseId:v,schema:p,root:_}){var S;if(((S=b.fragment)===null||S===void 0?void 0:S[0])!=="/")return;for(const x of b.fragment.slice(1).split("/")){if(typeof p=="boolean")return;const P=p[(0,i.unescapeFragment)(x)];if(P===void 0)return;p=P;const k=typeof p=="object"&&p[this.opts.schemaId];!g.has(x)&&k&&(v=(0,n.resolveUrl)(this.opts.uriResolver,v,k))}let w;if(typeof p!="boolean"&&p.$ref&&!(0,i.schemaHasRulesButRef)(p,this.RULES)){const x=(0,n.resolveUrl)(this.opts.uriResolver,v,p.$ref);w=y.call(this,_,x)}const{schemaId:E}=this.opts;if(w=w||new l({schema:p,schemaId:E,root:_,baseId:v}),w.schema!==w.root.schema)return w}return Wt}const K0={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var Ho={},Vn={exports:{}},Tc,Eh;function Oh(){if(Eh)return Tc;Eh=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function r(h){let y="",g=0,f=0;for(f=0;f<h.length;f++)if(g=h[f].charCodeAt(0),g!==48){if(!(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102))return"";y+=h[f];break}for(f+=1;f<h.length;f++){if(g=h[f].charCodeAt(0),!(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102))return"";y+=h[f]}return y}const n=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function i(h){return h.length=0,!0}function a(h,y,g){if(h.length){const f=r(h);if(f!=="")y.push(f);else return g.error=!0,!1;h.length=0}return!0}function l(h){let y=0;const g={error:!1,address:"",zone:""},f=[],b=[];let v=!1,p=!1,_=a;for(let S=0;S<h.length;S++){const w=h[S];if(!(w==="["||w==="]"))if(w===":"){if(v===!0&&(p=!0),!_(b,f,g))break;if(++y>7){g.error=!0;break}S>0&&h[S-1]===":"&&(v=!0),f.push(":");continue}else if(w==="%"){if(!_(b,f,g))break;_=i}else{b.push(w);continue}}return b.length&&(_===i?g.zone=b.join(""):p?f.push(b.join("")):f.push(r(b))),g.address=f.join(""),g}function s(h){if(c(h,":")<2)return{host:h,isIPV6:!1};const y=l(h);if(y.error)return{host:h,isIPV6:!1};{let g=y.address,f=y.address;return y.zone&&(g+="%"+y.zone,f+="%25"+y.zone),{host:g,isIPV6:!0,escapedHost:f}}}function c(h,y){let g=0;for(let f=0;f<h.length;f++)h[f]===y&&g++;return g}function u(h){let y=h;const g=[];let f=-1,b=0;for(;b=y.length;){if(b===1){if(y===".")break;if(y==="/"){g.push("/");break}else{g.push(y);break}}else if(b===2){if(y[0]==="."){if(y[1]===".")break;if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&(y[1]==="."||y[1]==="/")){g.push("/");break}}else if(b===3&&y==="/.."){g.length!==0&&g.pop(),g.push("/");break}if(y[0]==="."){if(y[1]==="."){if(y[2]==="/"){y=y.slice(3);continue}}else if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&y[1]==="."){if(y[2]==="/"){y=y.slice(2);continue}else if(y[2]==="."&&y[3]==="/"){y=y.slice(3),g.length!==0&&g.pop();continue}}if((f=y.indexOf("/",1))===-1){g.push(y);break}else g.push(y.slice(0,f)),y=y.slice(f)}return g.join("")}function d(h,y){const g=y!==!0?escape:unescape;return h.scheme!==void 0&&(h.scheme=g(h.scheme)),h.userinfo!==void 0&&(h.userinfo=g(h.userinfo)),h.host!==void 0&&(h.host=g(h.host)),h.path!==void 0&&(h.path=g(h.path)),h.query!==void 0&&(h.query=g(h.query)),h.fragment!==void 0&&(h.fragment=g(h.fragment)),h}function m(h){const y=[];if(h.userinfo!==void 0&&(y.push(h.userinfo),y.push("@")),h.host!==void 0){let g=unescape(h.host);if(!t(g)){const f=s(g);f.isIPV6===!0?g=`[${f.escapedHost}]`:g=h.host}y.push(g)}return(typeof h.port=="number"||typeof h.port=="string")&&(y.push(":"),y.push(String(h.port))),y.length?y.join(""):void 0}return Tc={nonSimpleDomain:n,recomposeAuthority:m,normalizeComponentEncoding:d,removeDotSegments:u,isIPv4:t,isUUID:e,normalizeIPv6:s,stringArrayToHexStripped:r},Tc}var Pc,xh;function G0(){if(xh)return Pc;xh=1;const{isUUID:e}=Oh(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(w){return r.indexOf(w)!==-1}function i(w){return w.secure===!0?!0:w.secure===!1?!1:w.scheme?w.scheme.length===3&&(w.scheme[0]==="w"||w.scheme[0]==="W")&&(w.scheme[1]==="s"||w.scheme[1]==="S")&&(w.scheme[2]==="s"||w.scheme[2]==="S"):!1}function a(w){return w.host||(w.error=w.error||"HTTP URIs must have a host."),w}function l(w){const E=String(w.scheme).toLowerCase()==="https";return(w.port===(E?443:80)||w.port==="")&&(w.port=void 0),w.path||(w.path="/"),w}function s(w){return w.secure=i(w),w.resourceName=(w.path||"/")+(w.query?"?"+w.query:""),w.path=void 0,w.query=void 0,w}function c(w){if((w.port===(i(w)?443:80)||w.port==="")&&(w.port=void 0),typeof w.secure=="boolean"&&(w.scheme=w.secure?"wss":"ws",w.secure=void 0),w.resourceName){const[E,x]=w.resourceName.split("?");w.path=E&&E!=="/"?E:void 0,w.query=x,w.resourceName=void 0}return w.fragment=void 0,w}function u(w,E){if(!w.path)return w.error="URN can not be parsed",w;const x=w.path.match(t);if(x){const P=E.scheme||w.scheme||"urn";w.nid=x[1].toLowerCase(),w.nss=x[2];const k=`${P}:${E.nid||w.nid}`,M=S(k);w.path=void 0,M&&(w=M.parse(w,E))}else w.error=w.error||"URN can not be parsed.";return w}function d(w,E){if(w.nid===void 0)throw new Error("URN without nid cannot be serialized");const x=E.scheme||w.scheme||"urn",P=w.nid.toLowerCase(),k=`${x}:${E.nid||P}`,M=S(k);M&&(w=M.serialize(w,E));const R=w,O=w.nss;return R.path=`${P||E.nid}:${O}`,E.skipEscape=!0,R}function m(w,E){const x=w;return x.uuid=x.nss,x.nss=void 0,!E.tolerant&&(!x.uuid||!e(x.uuid))&&(x.error=x.error||"UUID is not valid."),x}function h(w){const E=w;return E.nss=(w.uuid||"").toLowerCase(),E}const y={scheme:"http",domainHost:!0,parse:a,serialize:l},g={scheme:"https",domainHost:y.domainHost,parse:a,serialize:l},f={scheme:"ws",domainHost:!0,parse:s,serialize:c},b={scheme:"wss",domainHost:f.domainHost,parse:f.parse,serialize:f.serialize},_={http:y,https:g,ws:f,wss:b,urn:{scheme:"urn",parse:u,serialize:d,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:m,serialize:h,skipNormalize:!0}};Object.setPrototypeOf(_,null);function S(w){return w&&(_[w]||_[w.toLowerCase()])||void 0}return Pc={wsIsSecure:i,SCHEMES:_,isValidSchemeName:n,getSchemeHandler:S},Pc}var Ch;function Y0(){if(Ch)return Vn.exports;Ch=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizeComponentEncoding:n,isIPv4:i,nonSimpleDomain:a}=Oh(),{SCHEMES:l,getSchemeHandler:s}=G0();function c(b,v){return typeof b=="string"?b=h(g(b,v),v):typeof b=="object"&&(b=g(h(b,v),v)),b}function u(b,v,p){const _=p?Object.assign({scheme:"null"},p):{scheme:"null"},S=d(g(b,_),g(v,_),_,!0);return _.skipEscape=!0,h(S,_)}function d(b,v,p,_){const S={};return _||(b=g(h(b,p),p),v=g(h(v,p),p)),p=p||{},!p.tolerant&&v.scheme?(S.scheme=v.scheme,S.userinfo=v.userinfo,S.host=v.host,S.port=v.port,S.path=t(v.path||""),S.query=v.query):(v.userinfo!==void 0||v.host!==void 0||v.port!==void 0?(S.userinfo=v.userinfo,S.host=v.host,S.port=v.port,S.path=t(v.path||""),S.query=v.query):(v.path?(v.path[0]==="/"?S.path=t(v.path):((b.userinfo!==void 0||b.host!==void 0||b.port!==void 0)&&!b.path?S.path="/"+v.path:b.path?S.path=b.path.slice(0,b.path.lastIndexOf("/")+1)+v.path:S.path=v.path,S.path=t(S.path)),S.query=v.query):(S.path=b.path,v.query!==void 0?S.query=v.query:S.query=b.query),S.userinfo=b.userinfo,S.host=b.host,S.port=b.port),S.scheme=b.scheme),S.fragment=v.fragment,S}function m(b,v,p){return typeof b=="string"?(b=unescape(b),b=h(n(g(b,p),!0),{...p,skipEscape:!0})):typeof b=="object"&&(b=h(n(b,!0),{...p,skipEscape:!0})),typeof v=="string"?(v=unescape(v),v=h(n(g(v,p),!0),{...p,skipEscape:!0})):typeof v=="object"&&(v=h(n(v,!0),{...p,skipEscape:!0})),b.toLowerCase()===v.toLowerCase()}function h(b,v){const p={host:b.host,scheme:b.scheme,userinfo:b.userinfo,port:b.port,path:b.path,query:b.query,nid:b.nid,nss:b.nss,uuid:b.uuid,fragment:b.fragment,reference:b.reference,resourceName:b.resourceName,secure:b.secure,error:""},_=Object.assign({},v),S=[],w=s(_.scheme||p.scheme);w&&w.serialize&&w.serialize(p,_),p.path!==void 0&&(_.skipEscape?p.path=unescape(p.path):(p.path=escape(p.path),p.scheme!==void 0&&(p.path=p.path.split("%3A").join(":")))),_.reference!=="suffix"&&p.scheme&&S.push(p.scheme,":");const E=r(p);if(E!==void 0&&(_.reference!=="suffix"&&S.push("//"),S.push(E),p.path&&p.path[0]!=="/"&&S.push("/")),p.path!==void 0){let x=p.path;!_.absolutePath&&(!w||!w.absolutePath)&&(x=t(x)),E===void 0&&x[0]==="/"&&x[1]==="/"&&(x="/%2F"+x.slice(2)),S.push(x)}return p.query!==void 0&&S.push("?",p.query),p.fragment!==void 0&&S.push("#",p.fragment),S.join("")}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(b,v){const p=Object.assign({},v),_={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let S=!1;p.reference==="suffix"&&(p.scheme?b=p.scheme+":"+b:b="//"+b);const w=b.match(y);if(w){if(_.scheme=w[1],_.userinfo=w[3],_.host=w[4],_.port=parseInt(w[5],10),_.path=w[6]||"",_.query=w[7],_.fragment=w[8],isNaN(_.port)&&(_.port=w[5]),_.host)if(i(_.host)===!1){const P=e(_.host);_.host=P.host.toLowerCase(),S=P.isIPV6}else S=!0;_.scheme===void 0&&_.userinfo===void 0&&_.host===void 0&&_.port===void 0&&_.query===void 0&&!_.path?_.reference="same-document":_.scheme===void 0?_.reference="relative":_.fragment===void 0?_.reference="absolute":_.reference="uri",p.reference&&p.reference!=="suffix"&&p.reference!==_.reference&&(_.error=_.error||"URI is not a "+p.reference+" reference.");const E=s(p.scheme||_.scheme);if(!p.unicodeSupport&&(!E||!E.unicodeSupport)&&_.host&&(p.domainHost||E&&E.domainHost)&&S===!1&&a(_.host))try{_.host=URL.domainToASCII(_.host.toLowerCase())}catch(x){_.error=_.error||"Host's domain name can not be converted to ASCII: "+x}(!E||E&&!E.skipNormalize)&&(b.indexOf("%")!==-1&&(_.scheme!==void 0&&(_.scheme=unescape(_.scheme)),_.host!==void 0&&(_.host=unescape(_.host))),_.path&&(_.path=escape(unescape(_.path))),_.fragment&&(_.fragment=encodeURI(decodeURIComponent(_.fragment)))),E&&E.parse&&E.parse(_,p)}else _.error=_.error||"URI can not be parsed.";return _}const f={SCHEMES:l,normalize:c,resolve:u,resolveComponent:d,equal:m,serialize:h,parse:g};return Vn.exports=f,Vn.exports.default=f,Vn.exports.fastUri=f,Vn.exports}var Th;function J0(){if(Th)return Ho;Th=1,Object.defineProperty(Ho,"__esModule",{value:!0});const e=Y0();return e.code='require("ajv/dist/runtime/uri").default',Ho.default=e,Ho}var Ph;function X0(){return Ph||(Ph=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Vo();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=De();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=xc(),i=Wo(),a=sh(),l=Cc(),s=De(),c=zo(),u=Fo(),d=Ge(),m=K0,h=J0(),y=(z,C)=>new RegExp(z,C);y.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],f=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},p=200;function _(z){var C,V,A,T,$,D,K,re,ie,te,L,I,G,X,ne,he,ve,fe,Te,be,Ee,ge,$e,Ie,ot;const Qe=z.strict,_t=(C=z.code)===null||C===void 0?void 0:C.optimize,et=_t===!0||_t===void 0?1:_t||0,Tt=(A=(V=z.code)===null||V===void 0?void 0:V.regExp)!==null&&A!==void 0?A:y,Je=(T=z.uriResolver)!==null&&T!==void 0?T:h.default;return{strictSchema:(D=($=z.strictSchema)!==null&&$!==void 0?$:Qe)!==null&&D!==void 0?D:!0,strictNumbers:(re=(K=z.strictNumbers)!==null&&K!==void 0?K:Qe)!==null&&re!==void 0?re:!0,strictTypes:(te=(ie=z.strictTypes)!==null&&ie!==void 0?ie:Qe)!==null&&te!==void 0?te:"log",strictTuples:(I=(L=z.strictTuples)!==null&&L!==void 0?L:Qe)!==null&&I!==void 0?I:"log",strictRequired:(X=(G=z.strictRequired)!==null&&G!==void 0?G:Qe)!==null&&X!==void 0?X:!1,code:z.code?{...z.code,optimize:et,regExp:Tt}:{optimize:et,regExp:Tt},loopRequired:(ne=z.loopRequired)!==null&&ne!==void 0?ne:p,loopEnum:(he=z.loopEnum)!==null&&he!==void 0?he:p,meta:(ve=z.meta)!==null&&ve!==void 0?ve:!0,messages:(fe=z.messages)!==null&&fe!==void 0?fe:!0,inlineRefs:(Te=z.inlineRefs)!==null&&Te!==void 0?Te:!0,schemaId:(be=z.schemaId)!==null&&be!==void 0?be:"$id",addUsedSchema:(Ee=z.addUsedSchema)!==null&&Ee!==void 0?Ee:!0,validateSchema:(ge=z.validateSchema)!==null&&ge!==void 0?ge:!0,validateFormats:($e=z.validateFormats)!==null&&$e!==void 0?$e:!0,unicodeRegExp:(Ie=z.unicodeRegExp)!==null&&Ie!==void 0?Ie:!0,int32range:(ot=z.int32range)!==null&&ot!==void 0?ot:!0,uriResolver:Je}}class S{constructor(C={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,C=this.opts={...C,..._(C)};const{es5:V,lines:A}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:f,es5:V,lines:A}),this.logger=O(C.logger);const T=C.validateFormats;C.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,b,C,"NOT SUPPORTED"),w.call(this,v,C,"DEPRECATED","warn"),this._metaOpts=M.call(this),C.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),C.keywords&&k.call(this,C.keywords),typeof C.meta=="object"&&this.addMetaSchema(C.meta),x.call(this),C.validateFormats=T}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:C,meta:V,schemaId:A}=this.opts;let T=m;A==="id"&&(T={...m},T.id=T.$id,delete T.$id),V&&C&&this.addMetaSchema(T,T[A],!1)}defaultMeta(){const{meta:C,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof C=="object"?C[V]||C:void 0}validate(C,V){let A;if(typeof C=="string"){if(A=this.getSchema(C),!A)throw new Error(`no schema with key or ref "${C}"`)}else A=this.compile(C);const T=A(V);return"$async"in A||(this.errors=A.errors),T}compile(C,V){const A=this._addSchema(C,V);return A.validate||this._compileSchemaEnv(A)}compileAsync(C,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:A}=this.opts;return T.call(this,C,V);async function T(te,L){await $.call(this,te.$schema);const I=this._addSchema(te,L);return I.validate||D.call(this,I)}async function $(te){te&&!this.getSchema(te)&&await T.call(this,{$ref:te},!0)}async function D(te){try{return this._compileSchemaEnv(te)}catch(L){if(!(L instanceof i.default))throw L;return K.call(this,L),await re.call(this,L.missingSchema),D.call(this,te)}}function K({missingSchema:te,missingRef:L}){if(this.refs[te])throw new Error(`AnySchema ${te} is loaded but ${L} cannot be resolved`)}async function re(te){const L=await ie.call(this,te);this.refs[te]||await $.call(this,L.$schema),this.refs[te]||this.addSchema(L,te,V)}async function ie(te){const L=this._loading[te];if(L)return L;try{return await(this._loading[te]=A(te))}finally{delete this._loading[te]}}}addSchema(C,V,A,T=this.opts.validateSchema){if(Array.isArray(C)){for(const D of C)this.addSchema(D,void 0,A,T);return this}let $;if(typeof C=="object"){const{schemaId:D}=this.opts;if($=C[D],$!==void 0&&typeof $!="string")throw new Error(`schema ${D} must be string`)}return V=(0,c.normalizeId)(V||$),this._checkUnique(V),this.schemas[V]=this._addSchema(C,A,V,T,!0),this}addMetaSchema(C,V,A=this.opts.validateSchema){return this.addSchema(C,V,!0,A),this}validateSchema(C,V){if(typeof C=="boolean")return!0;let A;if(A=C.$schema,A!==void 0&&typeof A!="string")throw new Error("$schema must be a string");if(A=A||this.opts.defaultMeta||this.defaultMeta(),!A)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const T=this.validate(A,C);if(!T&&V){const $="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error($);else throw new Error($)}return T}getSchema(C){let V;for(;typeof(V=E.call(this,C))=="string";)C=V;if(V===void 0){const{schemaId:A}=this.opts,T=new l.SchemaEnv({schema:{},schemaId:A});if(V=l.resolveSchema.call(this,T,C),!V)return;this.refs[C]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(C){if(C instanceof RegExp)return this._removeAllSchemas(this.schemas,C),this._removeAllSchemas(this.refs,C),this;switch(typeof C){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=E.call(this,C);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[C],delete this.refs[C],this}case"object":{const V=C;this._cache.delete(V);let A=C[this.opts.schemaId];return A&&(A=(0,c.normalizeId)(A),delete this.schemas[A],delete this.refs[A]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(C){for(const V of C)this.addKeyword(V);return this}addKeyword(C,V){let A;if(typeof C=="string")A=C,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=A);else if(typeof C=="object"&&V===void 0){if(V=C,A=V.keyword,Array.isArray(A)&&!A.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(N.call(this,A,V),!V)return(0,d.eachItem)(A,$=>U.call(this,$)),this;le.call(this,V);const T={...V,type:(0,u.getJSONTypes)(V.type),schemaType:(0,u.getJSONTypes)(V.schemaType)};return(0,d.eachItem)(A,T.type.length===0?$=>U.call(this,$,T):$=>T.type.forEach(D=>U.call(this,$,T,D))),this}getKeyword(C){const V=this.RULES.all[C];return typeof V=="object"?V.definition:!!V}removeKeyword(C){const{RULES:V}=this;delete V.keywords[C],delete V.all[C];for(const A of V.rules){const T=A.rules.findIndex($=>$.keyword===C);T>=0&&A.rules.splice(T,1)}return this}addFormat(C,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[C]=V,this}errorsText(C=this.errors,{separator:V=", ",dataVar:A="data"}={}){return!C||C.length===0?"No errors":C.map(T=>`${A}${T.instancePath} ${T.message}`).reduce((T,$)=>T+V+$)}$dataMetaSchema(C,V){const A=this.RULES.all;C=JSON.parse(JSON.stringify(C));for(const T of V){const $=T.split("/").slice(1);let D=C;for(const K of $)D=D[K];for(const K in A){const re=A[K];if(typeof re!="object")continue;const{$data:ie}=re.definition,te=D[K];ie&&te&&(D[K]=ue(te))}}return C}_removeAllSchemas(C,V){for(const A in C){const T=C[A];(!V||V.test(A))&&(typeof T=="string"?delete C[A]:T&&!T.meta&&(this._cache.delete(T.schema),delete C[A]))}}_addSchema(C,V,A,T=this.opts.validateSchema,$=this.opts.addUsedSchema){let D;const{schemaId:K}=this.opts;if(typeof C=="object")D=C[K];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof C!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(C);if(re!==void 0)return re;A=(0,c.normalizeId)(D||A);const ie=c.getSchemaRefs.call(this,C,A);return re=new l.SchemaEnv({schema:C,schemaId:K,meta:V,baseId:A,localRefs:ie}),this._cache.set(re.schema,re),$&&!A.startsWith("#")&&(A&&this._checkUnique(A),this.refs[A]=re),T&&this.validateSchema(C,!0),re}_checkUnique(C){if(this.schemas[C]||this.refs[C])throw new Error(`schema with key or id "${C}" already exists`)}_compileSchemaEnv(C){if(C.meta?this._compileMetaSchema(C):l.compileSchema.call(this,C),!C.validate)throw new Error("ajv implementation error");return C.validate}_compileMetaSchema(C){const V=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,C)}finally{this.opts=V}}}S.ValidationError=n.default,S.MissingRefError=i.default,e.default=S;function w(z,C,V,A="error"){for(const T in z){const $=T;$ in C&&this.logger[A](`${V}: option ${T}. ${z[$]}`)}}function E(z){return z=(0,c.normalizeId)(z),this.schemas[z]||this.refs[z]}function x(){const z=this.opts.schemas;if(z)if(Array.isArray(z))this.addSchema(z);else for(const C in z)this.addSchema(z[C],C)}function P(){for(const z in this.opts.formats){const C=this.opts.formats[z];C&&this.addFormat(z,C)}}function k(z){if(Array.isArray(z)){this.addVocabulary(z);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const C in z){const V=z[C];V.keyword||(V.keyword=C),this.addKeyword(V)}}function M(){const z={...this.opts};for(const C of g)delete z[C];return z}const R={log(){},warn(){},error(){}};function O(z){if(z===!1)return R;if(z===void 0)return console;if(z.log&&z.warn&&z.error)return z;throw new Error("logger must implement log, warn and error methods")}const q=/^[a-z_$][a-z0-9_$:-]*$/i;function N(z,C){const{RULES:V}=this;if((0,d.eachItem)(z,A=>{if(V.keywords[A])throw new Error(`Keyword ${A} is already defined`);if(!q.test(A))throw new Error(`Keyword ${A} has invalid name`)}),!!C&&C.$data&&!("code"in C||"validate"in C))throw new Error('$data keyword must have "code" or "validate" function')}function U(z,C,V){var A;const T=C?.post;if(V&&T)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:$}=this;let D=T?$.post:$.rules.find(({type:re})=>re===V);if(D||(D={type:V,rules:[]},$.rules.push(D)),$.keywords[z]=!0,!C)return;const K={keyword:z,definition:{...C,type:(0,u.getJSONTypes)(C.type),schemaType:(0,u.getJSONTypes)(C.schemaType)}};C.before?W.call(this,D,K,C.before):D.rules.push(K),$.all[z]=K,(A=C.implements)===null||A===void 0||A.forEach(re=>this.addKeyword(re))}function W(z,C,V){const A=z.rules.findIndex(T=>T.keyword===V);A>=0?z.rules.splice(A,0,C):(z.rules.push(C),this.logger.warn(`rule ${V} is not defined`))}function le(z){let{metaSchema:C}=z;C!==void 0&&(z.$data&&this.opts.$data&&(C=ue(C)),z.validateSchema=this.compile(C,!0))}const ce={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ue(z){return{anyOf:[z,ce]}}})(vc)),vc}var Ko={},Go={},Yo={},$h;function Z0(){if($h)return Yo;$h=1,Object.defineProperty(Yo,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Yo.default=e,Yo}var qr={},Rh;function Q0(){if(Rh)return qr;Rh=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.callRef=qr.getValidate=void 0;const e=Wo(),t=sr(),r=De(),n=Dr(),i=Cc(),a=Ge(),l={keyword:"$ref",schemaType:"string",code(u){const{gen:d,schema:m,it:h}=u,{baseId:y,schemaEnv:g,validateName:f,opts:b,self:v}=h,{root:p}=g;if((m==="#"||m==="#/")&&y===p.baseId)return S();const _=i.resolveRef.call(v,p,y,m);if(_===void 0)throw new e.default(h.opts.uriResolver,y,m);if(_ instanceof i.SchemaEnv)return w(_);return E(_);function S(){if(g===p)return c(u,f,g,g.$async);const x=d.scopeValue("root",{ref:p});return c(u,(0,r._)`${x}.validate`,p,p.$async)}function w(x){const P=s(u,x);c(u,P,x,x.$async)}function E(x){const P=d.scopeValue("schema",b.code.source===!0?{ref:x,code:(0,r.stringify)(x)}:{ref:x}),k=d.name("valid"),M=u.subschema({schema:x,dataTypes:[],schemaPath:r.nil,topSchemaRef:P,errSchemaPath:m},k);u.mergeEvaluated(M),u.ok(k)}}};function s(u,d){const{gen:m}=u;return d.validate?m.scopeValue("validate",{ref:d.validate}):(0,r._)`${m.scopeValue("wrapper",{ref:d})}.validate`}qr.getValidate=s;function c(u,d,m,h){const{gen:y,it:g}=u,{allErrors:f,schemaEnv:b,opts:v}=g,p=v.passContext?n.default.this:r.nil;h?_():S();function _(){if(!b.$async)throw new Error("async schema referenced by sync schema");const x=y.let("valid");y.try(()=>{y.code((0,r._)`await ${(0,t.callValidateCode)(u,d,p)}`),E(d),f||y.assign(x,!0)},P=>{y.if((0,r._)`!(${P} instanceof ${g.ValidationError})`,()=>y.throw(P)),w(P),f||y.assign(x,!1)}),u.ok(x)}function S(){u.result((0,t.callValidateCode)(u,d,p),()=>E(d),()=>w(d))}function w(x){const P=(0,r._)`${x}.errors`;y.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${P} : ${n.default.vErrors}.concat(${P})`),y.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function E(x){var P;if(!g.opts.unevaluated)return;const k=(P=m?.validate)===null||P===void 0?void 0:P.evaluated;if(g.props!==!0)if(k&&!k.dynamicProps)k.props!==void 0&&(g.props=a.mergeEvaluated.props(y,k.props,g.props));else{const M=y.var("props",(0,r._)`${x}.evaluated.props`);g.props=a.mergeEvaluated.props(y,M,g.props,r.Name)}if(g.items!==!0)if(k&&!k.dynamicItems)k.items!==void 0&&(g.items=a.mergeEvaluated.items(y,k.items,g.items));else{const M=y.var("items",(0,r._)`${x}.evaluated.items`);g.items=a.mergeEvaluated.items(y,M,g.items,r.Name)}}}return qr.callRef=c,qr.default=l,qr}var kh;function e_(){if(kh)return Go;kh=1,Object.defineProperty(Go,"__esModule",{value:!0});const e=Z0(),t=Q0(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Go.default=r,Go}var Jo={},Xo={},Ih;function t_(){if(Ih)return Xo;Ih=1,Object.defineProperty(Xo,"__esModule",{value:!0});const e=De(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:a,schemaCode:l})=>(0,e.str)`must be ${r[a].okStr} ${l}`,params:({keyword:a,schemaCode:l})=>(0,e._)`{comparison: ${r[a].okStr}, limit: ${l}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(a){const{keyword:l,data:s,schemaCode:c}=a;a.fail$data((0,e._)`${s} ${r[l].fail} ${c} || isNaN(${s})`)}};return Xo.default=i,Xo}var Zo={},jh;function r_(){if(jh)return Zo;jh=1,Object.defineProperty(Zo,"__esModule",{value:!0});const e=De(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:i,data:a,schemaCode:l,it:s}=n,c=s.opts.multipleOfPrecision,u=i.let("res"),d=c?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${c}`:(0,e._)`${u} !== parseInt(${u})`;n.fail$data((0,e._)`(${l} === 0 || (${u} = ${a}/${l}, ${d}))`)}};return Zo.default=r,Zo}var Qo={},ei={},Nh;function n_(){if(Nh)return ei;Nh=1,Object.defineProperty(ei,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,i=0,a;for(;i<r;)n++,a=t.charCodeAt(i++),a>=55296&&a<=56319&&i<r&&(a=t.charCodeAt(i),(a&64512)===56320&&i++);return n}return ei.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',ei}var Ah;function o_(){if(Ah)return Qo;Ah=1,Object.defineProperty(Qo,"__esModule",{value:!0});const e=De(),t=Ge(),r=n_(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:l}){const s=a==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${l} characters`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:l,data:s,schemaCode:c,it:u}=a,d=l==="maxLength"?e.operators.GT:e.operators.LT,m=u.opts.unicode===!1?(0,e._)`${s}.length`:(0,e._)`${(0,t.useFunc)(a.gen,r.default)}(${s})`;a.fail$data((0,e._)`${m} ${d} ${c}`)}};return Qo.default=i,Qo}var ti={},Mh;function i_(){if(Mh)return ti;Mh=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=sr(),t=De(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,t.str)`must match pattern "${i}"`,params:({schemaCode:i})=>(0,t._)`{pattern: ${i}}`},code(i){const{data:a,$data:l,schema:s,schemaCode:c,it:u}=i,d=u.opts.unicodeRegExp?"u":"",m=l?(0,t._)`(new RegExp(${c}, ${d}))`:(0,e.usePattern)(i,s);i.fail$data((0,t._)`!${m}.test(${a})`)}};return ti.default=n,ti}var ri={},Dh;function a_(){if(Dh)return ri;Dh=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=De(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:l}=n,s=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${a}).length ${s} ${l}`)}};return ri.default=r,ri}var ni={},qh;function s_(){if(qh)return ni;qh=1,Object.defineProperty(ni,"__esModule",{value:!0});const e=sr(),t=De(),r=Ge(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:a}})=>(0,t.str)`must have required property '${a}'`,params:({params:{missingProperty:a}})=>(0,t._)`{missingProperty: ${a}}`},code(a){const{gen:l,schema:s,schemaCode:c,data:u,$data:d,it:m}=a,{opts:h}=m;if(!d&&s.length===0)return;const y=s.length>=h.loopRequired;if(m.allErrors?g():f(),h.strictRequired){const p=a.parentSchema.properties,{definedProperties:_}=a.it;for(const S of s)if(p?.[S]===void 0&&!_.has(S)){const w=m.schemaEnv.baseId+m.errSchemaPath,E=`required property "${S}" is not defined at "${w}" (strictRequired)`;(0,r.checkStrictMode)(m,E,m.opts.strictRequired)}}function g(){if(y||d)a.block$data(t.nil,b);else for(const p of s)(0,e.checkReportMissingProp)(a,p)}function f(){const p=l.let("missing");if(y||d){const _=l.let("valid",!0);a.block$data(_,()=>v(p,_)),a.ok(_)}else l.if((0,e.checkMissingProp)(a,s,p)),(0,e.reportMissingProp)(a,p),l.else()}function b(){l.forOf("prop",c,p=>{a.setParams({missingProperty:p}),l.if((0,e.noPropertyInData)(l,u,p,h.ownProperties),()=>a.error())})}function v(p,_){a.setParams({missingProperty:p}),l.forOf(p,c,()=>{l.assign(_,(0,e.propertyInData)(l,u,p,h.ownProperties)),l.if((0,t.not)(_),()=>{a.error(),l.break()})},t.nil)}}};return ni.default=i,ni}var oi={},Lh;function l_(){if(Lh)return oi;Lh=1,Object.defineProperty(oi,"__esModule",{value:!0});const e=De(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:l}=n,s=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${a}.length ${s} ${l}`)}};return oi.default=r,oi}var ii={},ai={},Fh;function $c(){if(Fh)return ai;Fh=1,Object.defineProperty(ai,"__esModule",{value:!0});const e=yh();return e.code='require("ajv/dist/runtime/equal").default',ai.default=e,ai}var zh;function c_(){if(zh)return ii;zh=1,Object.defineProperty(ii,"__esModule",{value:!0});const e=Fo(),t=De(),r=Ge(),n=$c(),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:l,j:s}})=>(0,t.str)`must NOT have duplicate items (items ## ${s} and ${l} are identical)`,params:({params:{i:l,j:s}})=>(0,t._)`{i: ${l}, j: ${s}}`},code(l){const{gen:s,data:c,$data:u,schema:d,parentSchema:m,schemaCode:h,it:y}=l;if(!u&&!d)return;const g=s.let("valid"),f=m.items?(0,e.getSchemaTypes)(m.items):[];l.block$data(g,b,(0,t._)`${h} === false`),l.ok(g);function b(){const S=s.let("i",(0,t._)`${c}.length`),w=s.let("j");l.setParams({i:S,j:w}),s.assign(g,!0),s.if((0,t._)`${S} > 1`,()=>(v()?p:_)(S,w))}function v(){return f.length>0&&!f.some(S=>S==="object"||S==="array")}function p(S,w){const E=s.name("item"),x=(0,e.checkDataTypes)(f,E,y.opts.strictNumbers,e.DataType.Wrong),P=s.const("indices",(0,t._)`{}`);s.for((0,t._)`;${S}--;`,()=>{s.let(E,(0,t._)`${c}[${S}]`),s.if(x,(0,t._)`continue`),f.length>1&&s.if((0,t._)`typeof ${E} == "string"`,(0,t._)`${E} += "_"`),s.if((0,t._)`typeof ${P}[${E}] == "number"`,()=>{s.assign(w,(0,t._)`${P}[${E}]`),l.error(),s.assign(g,!1).break()}).code((0,t._)`${P}[${E}] = ${S}`)})}function _(S,w){const E=(0,r.useFunc)(s,n.default),x=s.name("outer");s.label(x).for((0,t._)`;${S}--;`,()=>s.for((0,t._)`${w} = ${S}; ${w}--;`,()=>s.if((0,t._)`${E}(${c}[${S}], ${c}[${w}])`,()=>{l.error(),s.assign(g,!1).break(x)})))}}};return ii.default=a,ii}var si={},Vh;function u_(){if(Vh)return si;Vh=1,Object.defineProperty(si,"__esModule",{value:!0});const e=De(),t=Ge(),r=$c(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:a})=>(0,e._)`{allowedValue: ${a}}`},code(a){const{gen:l,data:s,$data:c,schemaCode:u,schema:d}=a;c||d&&typeof d=="object"?a.fail$data((0,e._)`!${(0,t.useFunc)(l,r.default)}(${s}, ${u})`):a.fail((0,e._)`${d} !== ${s}`)}};return si.default=i,si}var li={},Bh;function d_(){if(Bh)return li;Bh=1,Object.defineProperty(li,"__esModule",{value:!0});const e=De(),t=Ge(),r=$c(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:a})=>(0,e._)`{allowedValues: ${a}}`},code(a){const{gen:l,data:s,$data:c,schema:u,schemaCode:d,it:m}=a;if(!c&&u.length===0)throw new Error("enum must have non-empty array");const h=u.length>=m.opts.loopEnum;let y;const g=()=>y??(y=(0,t.useFunc)(l,r.default));let f;if(h||c)f=l.let("valid"),a.block$data(f,b);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const p=l.const("vSchema",d);f=(0,e.or)(...u.map((_,S)=>v(p,S)))}a.pass(f);function b(){l.assign(f,!1),l.forOf("v",d,p=>l.if((0,e._)`${g()}(${s}, ${p})`,()=>l.assign(f,!0).break()))}function v(p,_){const S=u[_];return typeof S=="object"&&S!==null?(0,e._)`${g()}(${s}, ${p}[${_}])`:(0,e._)`${s} === ${S}`}}};return li.default=i,li}var Uh;function f_(){if(Uh)return Jo;Uh=1,Object.defineProperty(Jo,"__esModule",{value:!0});const e=t_(),t=r_(),r=o_(),n=i_(),i=a_(),a=s_(),l=l_(),s=c_(),c=u_(),u=d_(),d=[e.default,t.default,r.default,n.default,i.default,a.default,l.default,s.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,u.default];return Jo.default=d,Jo}var ci={},gn={},Wh;function Hh(){if(Wh)return gn;Wh=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.validateAdditionalItems=void 0;const e=De(),t=Ge(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,e.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,e._)`{limit: ${a}}`},code(a){const{parentSchema:l,it:s}=a,{items:c}=l;if(!Array.isArray(c)){(0,t.checkStrictMode)(s,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(a,c)}};function i(a,l){const{gen:s,schema:c,data:u,keyword:d,it:m}=a;m.items=!0;const h=s.const("len",(0,e._)`${u}.length`);if(c===!1)a.setParams({len:l.length}),a.pass((0,e._)`${h} <= ${l.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(m,c)){const g=s.var("valid",(0,e._)`${h} <= ${l.length}`);s.if((0,e.not)(g),()=>y(g)),a.ok(g)}function y(g){s.forRange("i",l.length,h,f=>{a.subschema({keyword:d,dataProp:f,dataPropType:t.Type.Num},g),m.allErrors||s.if((0,e.not)(g),()=>s.break())})}}return gn.validateAdditionalItems=i,gn.default=n,gn}var ui={},vn={},Kh;function Gh(){if(Kh)return vn;Kh=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.validateTuple=void 0;const e=De(),t=Ge(),r=sr(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(a){const{schema:l,it:s}=a;if(Array.isArray(l))return i(a,"additionalItems",l);s.items=!0,!(0,t.alwaysValidSchema)(s,l)&&a.ok((0,r.validateArray)(a))}};function i(a,l,s=a.schema){const{gen:c,parentSchema:u,data:d,keyword:m,it:h}=a;f(u),h.opts.unevaluated&&s.length&&h.items!==!0&&(h.items=t.mergeEvaluated.items(c,s.length,h.items));const y=c.name("valid"),g=c.const("len",(0,e._)`${d}.length`);s.forEach((b,v)=>{(0,t.alwaysValidSchema)(h,b)||(c.if((0,e._)`${g} > ${v}`,()=>a.subschema({keyword:m,schemaProp:v,dataProp:v},y)),a.ok(y))});function f(b){const{opts:v,errSchemaPath:p}=h,_=s.length,S=_===b.minItems&&(_===b.maxItems||b[l]===!1);if(v.strictTuples&&!S){const w=`"${m}" is ${_}-tuple, but minItems or maxItems/${l} are not specified or different at path "${p}"`;(0,t.checkStrictMode)(h,w,v.strictTuples)}}}return vn.validateTuple=i,vn.default=n,vn}var Yh;function p_(){if(Yh)return ui;Yh=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=Gh(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return ui.default=t,ui}var di={},Jh;function h_(){if(Jh)return di;Jh=1,Object.defineProperty(di,"__esModule",{value:!0});const e=De(),t=Ge(),r=sr(),n=Hh(),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:l}})=>(0,e.str)`must NOT have more than ${l} items`,params:({params:{len:l}})=>(0,e._)`{limit: ${l}}`},code(l){const{schema:s,parentSchema:c,it:u}=l,{prefixItems:d}=c;u.items=!0,!(0,t.alwaysValidSchema)(u,s)&&(d?(0,n.validateAdditionalItems)(l,d):l.ok((0,r.validateArray)(l)))}};return di.default=a,di}var fi={},Xh;function m_(){if(Xh)return fi;Xh=1,Object.defineProperty(fi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:a}})=>a===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${a} valid item(s)`,params:({params:{min:i,max:a}})=>a===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${a}}`},code(i){const{gen:a,schema:l,parentSchema:s,data:c,it:u}=i;let d,m;const{minContains:h,maxContains:y}=s;u.opts.next?(d=h===void 0?1:h,m=y):d=1;const g=a.const("len",(0,e._)`${c}.length`);if(i.setParams({min:d,max:m}),m===void 0&&d===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(m!==void 0&&d>m){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(u,l)){let _=(0,e._)`${g} >= ${d}`;m!==void 0&&(_=(0,e._)`${_} && ${g} <= ${m}`),i.pass(_);return}u.items=!0;const f=a.name("valid");m===void 0&&d===1?v(f,()=>a.if(f,()=>a.break())):d===0?(a.let(f,!0),m!==void 0&&a.if((0,e._)`${c}.length > 0`,b)):(a.let(f,!1),b()),i.result(f,()=>i.reset());function b(){const _=a.name("_valid"),S=a.let("count",0);v(_,()=>a.if(_,()=>p(S)))}function v(_,S){a.forRange("i",0,g,w=>{i.subschema({keyword:"contains",dataProp:w,dataPropType:t.Type.Num,compositeRule:!0},_),S()})}function p(_){a.code((0,e._)`${_}++`),m===void 0?a.if((0,e._)`${_} >= ${d}`,()=>a.assign(f,!0).break()):(a.if((0,e._)`${_} > ${m}`,()=>a.assign(f,!1).break()),d===1?a.assign(f,!0):a.if((0,e._)`${_} >= ${d}`,()=>a.assign(f,!0)))}}};return fi.default=n,fi}var Rc={},Zh;function y_(){return Zh||(Zh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=De(),r=Ge(),n=sr();e.error={message:({params:{property:c,depsCount:u,deps:d}})=>{const m=u===1?"property":"properties";return(0,t.str)`must have ${m} ${d} when property ${c} is present`},params:({params:{property:c,depsCount:u,deps:d,missingProperty:m}})=>(0,t._)`{property: ${c},
|
|
11
11
|
missingProperty: ${m},
|
|
12
12
|
depsCount: ${u},
|
|
13
|
-
deps: ${d}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[u,d]=a(c);l(c,u),s(c,d)}};function a({schema:c}){const u={},d={};for(const m in c){if(m==="__proto__")continue;const h=Array.isArray(c[m])?u:d;h[m]=c[m]}return[u,d]}function l(c,u=c.schema){const{gen:d,data:m,it:h}=c;if(Object.keys(u).length===0)return;const y=d.let("missing");for(const g in u){const f=u[g];if(f.length===0)continue;const b=(0,n.propertyInData)(d,m,g,h.opts.ownProperties);c.setParams({property:g,depsCount:f.length,deps:f.join(", ")}),h.allErrors?d.if(b,()=>{for(const v of f)(0,n.checkReportMissingProp)(c,v)}):(d.if((0,t._)`${b} && (${(0,n.checkMissingProp)(c,f,y)})`),(0,n.reportMissingProp)(c,y),d.else())}}e.validatePropertyDeps=l;function s(c,u=c.schema){const{gen:d,data:m,keyword:h,it:y}=c,g=d.name("valid");for(const f in u)(0,r.alwaysValidSchema)(y,u[f])||(d.if((0,n.propertyInData)(d,m,f,y.opts.ownProperties),()=>{const b=c.subschema({keyword:h,schemaProp:f},g);c.mergeValidEvaluated(b,g)},()=>d.var(g,!0)),c.ok(g))}e.validateSchemaDeps=s,e.default=i})(Rc)),Rc}var pi={},Qh;function g_(){if(Qh)return pi;Qh=1,Object.defineProperty(pi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:a,schema:l,data:s,it:c}=i;if((0,t.alwaysValidSchema)(c,l))return;const u=a.name("valid");a.forIn("key",s,d=>{i.setParams({propertyName:d}),i.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},u),a.if((0,e.not)(u),()=>{i.error(!0),c.allErrors||a.break()})}),i.ok(u)}};return pi.default=n,pi}var hi={},em;function tm(){if(em)return hi;em=1,Object.defineProperty(hi,"__esModule",{value:!0});const e=sr(),t=De(),r=Dr(),n=Ge(),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:l})=>(0,t._)`{additionalProperty: ${l.additionalProperty}}`},code(l){const{gen:s,schema:c,parentSchema:u,data:d,errsCount:m,it:h}=l;if(!m)throw new Error("ajv implementation error");const{allErrors:y,opts:g}=h;if(h.props=!0,g.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(h,c))return;const f=(0,e.allSchemaProperties)(u.properties),b=(0,e.allSchemaProperties)(u.patternProperties);v(),l.ok((0,t._)`${m} === ${r.default.errors}`);function v(){s.forIn("key",d,E=>{!f.length&&!b.length?S(E):s.if(p(E),()=>S(E))})}function p(E){let x;if(f.length>8){const P=(0,n.schemaRefOrVal)(h,u.properties,"properties");x=(0,e.isOwnProperty)(s,P,E)}else f.length?x=(0,t.or)(...f.map(P=>(0,t._)`${E} === ${P}`)):x=t.nil;return b.length&&(x=(0,t.or)(x,...b.map(P=>(0,t._)`${(0,e.usePattern)(l,P)}.test(${E})`))),(0,t.not)(x)}function _(E){s.code((0,t._)`delete ${d}[${E}]`)}function S(E){if(g.removeAdditional==="all"||g.removeAdditional&&c===!1){_(E);return}if(c===!1){l.setParams({additionalProperty:E}),l.error(),y||s.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(h,c)){const x=s.name("valid");g.removeAdditional==="failing"?(w(E,x,!1),s.if((0,t.not)(x),()=>{l.reset(),_(E)})):(w(E,x),y||s.if((0,t.not)(x),()=>s.break()))}}function w(E,x,P){const k={keyword:"additionalProperties",dataProp:E,dataPropType:n.Type.Str};P===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),l.subschema(k,x)}}};return hi.default=a,hi}var mi={},rm;function v_(){if(rm)return mi;rm=1,Object.defineProperty(mi,"__esModule",{value:!0});const e=Vo(),t=sr(),r=Ge(),n=tm(),i={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:l,schema:s,parentSchema:c,data:u,it:d}=a;d.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&n.default.code(new e.KeywordCxt(d,n.default,"additionalProperties"));const m=(0,t.allSchemaProperties)(s);for(const b of m)d.definedProperties.add(b);d.opts.unevaluated&&m.length&&d.props!==!0&&(d.props=r.mergeEvaluated.props(l,(0,r.toHash)(m),d.props));const h=m.filter(b=>!(0,r.alwaysValidSchema)(d,s[b]));if(h.length===0)return;const y=l.name("valid");for(const b of h)g(b)?f(b):(l.if((0,t.propertyInData)(l,u,b,d.opts.ownProperties)),f(b),d.allErrors||l.else().var(y,!0),l.endIf()),a.it.definedProperties.add(b),a.ok(y);function g(b){return d.opts.useDefaults&&!d.compositeRule&&s[b].default!==void 0}function f(b){a.subschema({keyword:"properties",schemaProp:b,dataProp:b},y)}}};return mi.default=i,mi}var yi={},nm;function b_(){if(nm)return yi;nm=1,Object.defineProperty(yi,"__esModule",{value:!0});const e=sr(),t=De(),r=Ge(),n=Ge(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:l,schema:s,data:c,parentSchema:u,it:d}=a,{opts:m}=d,h=(0,e.allSchemaProperties)(s),y=h.filter(S=>(0,r.alwaysValidSchema)(d,s[S]));if(h.length===0||y.length===h.length&&(!d.opts.unevaluated||d.props===!0))return;const g=m.strictSchema&&!m.allowMatchingProperties&&u.properties,f=l.name("valid");d.props!==!0&&!(d.props instanceof t.Name)&&(d.props=(0,n.evaluatedPropsToName)(l,d.props));const{props:b}=d;v();function v(){for(const S of h)g&&p(S),d.allErrors?_(S):(l.var(f,!0),_(S),l.if(f))}function p(S){for(const w in g)new RegExp(S).test(w)&&(0,r.checkStrictMode)(d,`property ${w} matches pattern ${S} (use allowMatchingProperties)`)}function _(S){l.forIn("key",c,w=>{l.if((0,t._)`${(0,e.usePattern)(a,S)}.test(${w})`,()=>{const E=y.includes(S);E||a.subschema({keyword:"patternProperties",schemaProp:S,dataProp:w,dataPropType:n.Type.Str},f),d.opts.unevaluated&&b!==!0?l.assign((0,t._)`${b}[${w}]`,!0):!E&&!d.allErrors&&l.if((0,t.not)(f),()=>l.break())})})}}};return yi.default=i,yi}var gi={},om;function __(){if(om)return gi;om=1,Object.defineProperty(gi,"__esModule",{value:!0});const e=Ge(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:i,it:a}=r;if((0,e.alwaysValidSchema)(a,i)){r.fail();return}const l=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),r.failResult(l,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return gi.default=t,gi}var vi={},im;function w_(){if(im)return vi;im=1,Object.defineProperty(vi,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:sr().validateUnion,error:{message:"must match a schema in anyOf"}};return vi.default=t,vi}var bi={},am;function S_(){if(am)return bi;am=1,Object.defineProperty(bi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:a,schema:l,parentSchema:s,it:c}=i;if(!Array.isArray(l))throw new Error("ajv implementation error");if(c.opts.discriminator&&s.discriminator)return;const u=l,d=a.let("valid",!1),m=a.let("passing",null),h=a.name("_valid");i.setParams({passing:m}),a.block(y),i.result(d,()=>i.reset(),()=>i.error(!0));function y(){u.forEach((g,f)=>{let b;(0,t.alwaysValidSchema)(c,g)?a.var(h,!0):b=i.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},h),f>0&&a.if((0,e._)`${h} && ${d}`).assign(d,!1).assign(m,(0,e._)`[${m}, ${f}]`).else(),a.if(h,()=>{a.assign(d,!0),a.assign(m,f),b&&i.mergeEvaluated(b,e.Name)})})}}};return bi.default=n,bi}var _i={},sm;function E_(){if(sm)return _i;sm=1,Object.defineProperty(_i,"__esModule",{value:!0});const e=Ge(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:i,it:a}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const l=n.name("valid");i.forEach((s,c)=>{if((0,e.alwaysValidSchema)(a,s))return;const u=r.subschema({keyword:"allOf",schemaProp:c},l);r.ok(l),r.mergeEvaluated(u)})}};return _i.default=t,_i}var wi={},lm;function O_(){if(lm)return wi;lm=1,Object.defineProperty(wi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:a})=>(0,e.str)`must match "${a.ifClause}" schema`,params:({params:a})=>(0,e._)`{failingKeyword: ${a.ifClause}}`},code(a){const{gen:l,parentSchema:s,it:c}=a;s.then===void 0&&s.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const u=i(c,"then"),d=i(c,"else");if(!u&&!d)return;const m=l.let("valid",!0),h=l.name("_valid");if(y(),a.reset(),u&&d){const f=l.let("ifClause");a.setParams({ifClause:f}),l.if(h,g("then",f),g("else",f))}else u?l.if(h,g("then")):l.if((0,e.not)(h),g("else"));a.pass(m,()=>a.error(!0));function y(){const f=a.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);a.mergeEvaluated(f)}function g(f,b){return()=>{const v=a.subschema({keyword:f},h);l.assign(m,h),a.mergeValidEvaluated(v,m),b?l.assign(b,(0,e._)`${f}`):a.setParams({ifClause:f})}}}};function i(a,l){const s=a.schema[l];return s!==void 0&&!(0,t.alwaysValidSchema)(a,s)}return wi.default=n,wi}var Si={},cm;function x_(){if(cm)return Si;cm=1,Object.defineProperty(Si,"__esModule",{value:!0});const e=Ge(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:i}){n.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return Si.default=t,Si}var um;function C_(){if(um)return ci;um=1,Object.defineProperty(ci,"__esModule",{value:!0});const e=Hh(),t=p_(),r=Gh(),n=h_(),i=m_(),a=y_(),l=g_(),s=tm(),c=v_(),u=b_(),d=__(),m=w_(),h=S_(),y=E_(),g=O_(),f=x_();function b(v=!1){const p=[d.default,m.default,h.default,y.default,g.default,f.default,l.default,s.default,a.default,c.default,u.default];return v?p.push(t.default,n.default):p.push(e.default,r.default),p.push(i.default),p}return ci.default=b,ci}var Ei={},Oi={},dm;function T_(){if(dm)return Oi;dm=1,Object.defineProperty(Oi,"__esModule",{value:!0});const e=De(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,i){const{gen:a,data:l,$data:s,schema:c,schemaCode:u,it:d}=n,{opts:m,errSchemaPath:h,schemaEnv:y,self:g}=d;if(!m.validateFormats)return;s?f():b();function f(){const v=a.scopeValue("formats",{ref:g.formats,code:m.code.formats}),p=a.const("fDef",(0,e._)`${v}[${u}]`),_=a.let("fType"),S=a.let("format");a.if((0,e._)`typeof ${p} == "object" && !(${p} instanceof RegExp)`,()=>a.assign(_,(0,e._)`${p}.type || "string"`).assign(S,(0,e._)`${p}.validate`),()=>a.assign(_,(0,e._)`"string"`).assign(S,p)),n.fail$data((0,e.or)(w(),E()));function w(){return m.strictSchema===!1?e.nil:(0,e._)`${u} && !${S}`}function E(){const x=y.$async?(0,e._)`(${p}.async ? await ${S}(${l}) : ${S}(${l}))`:(0,e._)`${S}(${l})`,P=(0,e._)`(typeof ${S} == "function" ? ${x} : ${S}.test(${l}))`;return(0,e._)`${S} && ${S} !== true && ${_} === ${i} && !${P}`}}function b(){const v=g.formats[c];if(!v){w();return}if(v===!0)return;const[p,_,S]=E(v);p===i&&n.pass(x());function w(){if(m.strictSchema===!1){g.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${c}" ignored in schema at path "${h}"`}}function E(P){const k=P instanceof RegExp?(0,e.regexpCode)(P):m.code.formats?(0,e._)`${m.code.formats}${(0,e.getProperty)(c)}`:void 0,j=a.scopeValue("formats",{key:c,ref:P,code:k});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,e._)`${j}.validate`]:["string",P,j]}function x(){if(typeof v=="object"&&!(v instanceof RegExp)&&v.async){if(!y.$async)throw new Error("async format in sync schema");return(0,e._)`await ${S}(${l})`}return typeof _=="function"?(0,e._)`${S}(${l})`:(0,e._)`${S}.test(${l})`}}}};return Oi.default=r,Oi}var fm;function P_(){if(fm)return Ei;fm=1,Object.defineProperty(Ei,"__esModule",{value:!0});const t=[T_().default];return Ei.default=t,Ei}var tn={},pm;function $_(){return pm||(pm=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.contentVocabulary=tn.metadataVocabulary=void 0,tn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],tn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),tn}var hm;function R_(){if(hm)return Ko;hm=1,Object.defineProperty(Ko,"__esModule",{value:!0});const e=e_(),t=f_(),r=C_(),n=P_(),i=$_(),a=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return Ko.default=a,Ko}var xi={},Bn={},mm;function k_(){if(mm)return Bn;mm=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Bn.DiscrError=e={})),Bn}var ym;function I_(){if(ym)return xi;ym=1,Object.defineProperty(xi,"__esModule",{value:!0});const e=De(),t=k_(),r=Cc(),n=Wo(),i=Ge(),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:s,tagName:c}})=>s===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:s,tag:c,tagName:u}})=>(0,e._)`{error: ${s}, tag: ${u}, tagValue: ${c}}`},code(s){const{gen:c,data:u,schema:d,parentSchema:m,it:h}=s,{oneOf:y}=m;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const g=d.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!y)throw new Error("discriminator: requires oneOf keyword");const f=c.let("valid",!1),b=c.const("tag",(0,e._)`${u}${(0,e.getProperty)(g)}`);c.if((0,e._)`typeof ${b} == "string"`,()=>v(),()=>s.error(!1,{discrError:t.DiscrError.Tag,tag:b,tagName:g})),s.ok(f);function v(){const S=_();c.if(!1);for(const w in S)c.elseIf((0,e._)`${b} === ${w}`),c.assign(f,p(S[w]));c.else(),s.error(!1,{discrError:t.DiscrError.Mapping,tag:b,tagName:g}),c.endIf()}function p(S){const w=c.name("valid"),E=s.subschema({keyword:"oneOf",schemaProp:S},w);return s.mergeEvaluated(E,e.Name),w}function _(){var S;const w={},E=P(m);let x=!0;for(let R=0;R<y.length;R++){let O=y[R];if(O?.$ref&&!(0,i.schemaHasRulesButRef)(O,h.self.RULES)){const N=O.$ref;if(O=r.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,N),O instanceof r.SchemaEnv&&(O=O.schema),O===void 0)throw new n.default(h.opts.uriResolver,h.baseId,N)}const D=(S=O?.properties)===null||S===void 0?void 0:S[g];if(typeof D!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);x=x&&(E||P(O)),k(D,R)}if(!x)throw new Error(`discriminator: "${g}" must be required`);return w;function P({required:R}){return Array.isArray(R)&&R.includes(g)}function k(R,O){if(R.const)j(R.const,O);else if(R.enum)for(const D of R.enum)j(D,O);else throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}function j(R,O){if(typeof R!="string"||R in w)throw new Error(`discriminator: "${g}" values must be unique strings`);w[R]=O}}}};return xi.default=l,xi}const j_={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var gm;function vm(){return gm||(gm=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=X0(),n=R_(),i=I_(),a=j_,l=["/properties"],s="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(a,l):a;this.addMetaSchema(g,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=Vo();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=De();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var m=xc();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return m.default}});var h=Wo();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(Mo,Mo.exports)),Mo.exports}var N_=vm();const A_=Ut(N_);var Ci={exports:{}},kc={},bm;function M_(){return bm||(bm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(R,O){return{validate:R,compare:O}}e.fullFormats={date:t(a,l),time:t(c(!0),u),"date-time":t(h(!0),y),"iso-time":t(c(),d),"iso-date-time":t(h(),g),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:j,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:_,int32:{type:"number",validate:E},int64:{type:"number",validate:x},float:{type:"number",validate:P},double:{type:"number",validate:P},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,l),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,y),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,g),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(R){return R%4===0&&(R%100!==0||R%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(R){const O=n.exec(R);if(!O)return!1;const D=+O[1],N=+O[2],U=+O[3];return N>=1&&N<=12&&U>=1&&U<=(N===2&&r(D)?29:i[N])}function l(R,O){if(R&&O)return R>O?1:R<O?-1:0}const s=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(R){return function(D){const N=s.exec(D);if(!N)return!1;const U=+N[1],W=+N[2],le=+N[3],ce=N[4],ue=N[5]==="-"?-1:1,z=+(N[6]||0),C=+(N[7]||0);if(z>23||C>59||R&&!ce)return!1;if(U<=23&&W<=59&&le<60)return!0;const V=W-C*ue,M=U-z*ue-(V<0?1:0);return(M===23||M===-1)&&(V===59||V===-1)&&le<61}}function u(R,O){if(!(R&&O))return;const D=new Date("2020-01-01T"+R).valueOf(),N=new Date("2020-01-01T"+O).valueOf();if(D&&N)return D-N}function d(R,O){if(!(R&&O))return;const D=s.exec(R),N=s.exec(O);if(D&&N)return R=D[1]+D[2]+D[3],O=N[1]+N[2]+N[3],R>O?1:R<O?-1:0}const m=/t|\s/i;function h(R){const O=c(R);return function(N){const U=N.split(m);return U.length===2&&a(U[0])&&O(U[1])}}function y(R,O){if(!(R&&O))return;const D=new Date(R).valueOf(),N=new Date(O).valueOf();if(D&&N)return D-N}function g(R,O){if(!(R&&O))return;const[D,N]=R.split(m),[U,W]=O.split(m),le=l(D,U);if(le!==void 0)return le||u(N,W)}const f=/\/|:/,b=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function v(R){return f.test(R)&&b.test(R)}const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function _(R){return p.lastIndex=0,p.test(R)}const S=-2147483648,w=2**31-1;function E(R){return Number.isInteger(R)&&R<=w&&R>=S}function x(R){return Number.isInteger(R)}function P(){return!0}const k=/[^\\]\\Z/;function j(R){if(k.test(R))return!1;try{return new RegExp(R),!0}catch{return!1}}})(kc)),kc}var Ic={},_m;function D_(){return _m||(_m=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=vm(),r=De(),n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},a={message:({keyword:s,schemaCode:c})=>(0,r.str)`should be ${i[s].okStr} ${c}`,params:({keyword:s,schemaCode:c})=>(0,r._)`{comparison: ${i[s].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:c,data:u,schemaCode:d,keyword:m,it:h}=s,{opts:y,self:g}=h;if(!y.validateFormats)return;const f=new t.KeywordCxt(h,g.RULES.all.format.definition,"format");f.$data?b():v();function b(){const _=c.scopeValue("formats",{ref:g.formats,code:y.code.formats}),S=c.const("fmt",(0,r._)`${_}[${f.schemaCode}]`);s.fail$data((0,r.or)((0,r._)`typeof ${S} != "object"`,(0,r._)`${S} instanceof RegExp`,(0,r._)`typeof ${S}.compare != "function"`,p(S)))}function v(){const _=f.schema,S=g.formats[_];if(!S||S===!0)return;if(typeof S!="object"||S instanceof RegExp||typeof S.compare!="function")throw new Error(`"${m}": format "${_}" does not define "compare" function`);const w=c.scopeValue("formats",{key:_,ref:S,code:y.code.formats?(0,r._)`${y.code.formats}${(0,r.getProperty)(_)}`:void 0});s.fail$data(p(w))}function p(_){return(0,r._)`${_}.compare(${u}, ${d}) ${i[m].fail} 0`}},dependencies:["format"]};const l=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=l})(Ic)),Ic}var wm;function q_(){return wm||(wm=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=M_(),n=D_(),i=De(),a=new i.Name("fullFormats"),l=new i.Name("fastFormats"),s=(u,d={keywords:!0})=>{if(Array.isArray(d))return c(u,d,r.fullFormats,a),u;const[m,h]=d.mode==="fast"?[r.fastFormats,l]:[r.fullFormats,a],y=d.formats||r.formatNames;return c(u,y,m,h),d.keywords&&(0,n.default)(u),u};s.get=(u,d="full")=>{const h=(d==="fast"?r.fastFormats:r.fullFormats)[u];if(!h)throw new Error(`Unknown format "${u}"`);return h};function c(u,d,m,h){var y,g;(y=(g=u.opts.code).formats)!==null&&y!==void 0||(g.formats=(0,i._)`require("ajv-formats/dist/formats").${h}`);for(const f of d)u.addFormat(f,m[f])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(Ci,Ci.exports)),Ci.exports}var L_=q_();const F_=Ut(L_),Ti=new A_({allErrors:!0,strict:!1,keywords:["readonly"]});F_(Ti);const jc=new Map,z_=(e,t)=>{try{return t.split(/[.[\]'"]/).filter(Boolean).reduce((r,n)=>r&&r[n],e)}catch{return}},V_=(e,t)=>{try{const r=Ao(t);if(!e)return!0;const n=e.match(/^(.*?)\s*(===|!==|>)\s*('([^']*)'|"([^"]*)'|([0-9.]+))$/);if(!n){console.warn(`Unsupported condition format: ${e}`);return}const i=n[1].trim(),a=n[2],l=n[3],s=n[4],c=n[5],u=n[6],d=z_(r,i);let m;if(s!==void 0)m=s;else if(c!==void 0)m=c;else if(u!==void 0)m=parseFloat(u);else{console.warn(`Could not determine the type of the right-hand value in: ${e}`);return}switch(a){case"===":return d===m;case"!==":return d!==m;case">":return d>m;case"<":return d<m;default:console.warn(`Unsupported operator: ${a}`);return}}catch(r){console.error("Custom evaluation error:",r);return}},Ft=e=>{if(Array.isArray(e)&&e.length===2){if(e[0]==="null")return e[1];if(e[1]==="null")return e[0]}return e},Nc=e=>{const t=[];return e.forEach(r=>{t.push({name:r,value:r})}),t},Sm=(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},Xt=(e,t,r)=>{r=r||{};const n=r.global&&r.global.formDefaults?Ao(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=Sm(t.enumNames,t.enum)),n.schema=t,n},B_=(e,t,r)=>{if(Ft(t.type)==="tBoolean"&&!t.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="tBoolean",r.lookup[Rt.stringify(r.path)]=n,n}},Em=(e,t,r)=>{if(Ft(t.type)==="string"&&!t.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="text",r.lookup[Rt.stringify(r.path)]=n,n}},Om=(e,t,r)=>{if(Ft(t.type)==="number"){const n=Xt(e,t,r);return n.key=r.path,n.type="number",r.lookup[Rt.stringify(r.path)]=n,n}},xm=(e,t,r)=>{if(Ft(t.type)==="integer"){const n=Xt(e,t,r);return n.key=r.path,n.type="number",r.lookup[Rt.stringify(r.path)]=n,n}},U_=(e,t,r)=>{if(Ft(t.type)==="date"){const n=Xt(e,t,r);return n.key=r.path,n.type="date",r.lookup[Rt.stringify(r.path)]=n,n}},Cm=(e,t,r)=>{if(Ft(t.type)==="boolean"){const n=Xt(e,t,r);return n.key=r.path,n.type="checkbox",r.lookup[Rt.stringify(r.path)]=n,n}},Tm=(e,t,r)=>{if(Ft(t.type)==="string"&&t.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="select",!n.titleMap&&!t.isObject&&(n.titleMap=Nc(t.enum)),r.lookup[Rt.stringify(r.path)]=n,n}},Pm=e=>Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"?Pm(r):(r==null||r==="")&&delete e[t]}),$m=(e,t,r)=>{if(Ft(t.type)==="array"&&t.items&&t.items.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="checkboxes",n.titleMap||(n.titleMap=Nc(t.items.enum)),r.lookup[Rt.stringify(r.path)]=n,n}},Un=(e,t,r)=>{const n=Lr[Ft(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"]&&i0(i.schema["x-schema-form"])&&(i=A0(i,i.schema["x-schema-form"])),i}},Rm=(e,t,r)=>{if(Ft(t.type)==="object"){const n=Xt(e,t,r);return n.type="fieldset",n.items=[],r.lookup[Rt.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[Rt.stringify(a)]!==!0){const l=t.required&&t.required.indexOf(i)!==-1,s=Un(i,t.properties[i],{path:a,required:l||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});s&&n.items.push(s)}}}),n}},W_=(e,t,r)=>{if(Ft(t.type)==="array"){const n=Xt(e,t,r);if(n.type="tuple",n.key=r.path,r.lookup[Rt.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=Un(e,l,{path:c,required:i||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});return u&&a.push(u),a},[]),n}}},km=(e,t,r)=>{if(Ft(t.type)==="array"){const n=Xt(e,t,r);if(n.type="array",n.key=r.path,r.lookup[Rt.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=Un(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}},Lr={string:[Tm,Em],object:[Rm],number:[Om],integer:[xm],boolean:[Cm],array:[$m,W_,km],date:[U_],tBoolean:[B_]},Im=(e,t,r)=>{const n=[],i={};if(t=t||{},r=r||{},Ft(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=Un(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}},jm=e=>e,H_=(e,t)=>{Lr[e]||(Lr[e]=[]),Lr[e].push(t)},K_=(e,t)=>{Lr[e]||(Lr[e]=[]),Lr[e].unshift(t)},G_=(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||[])},Ac=(e,t)=>{t(e),e.items&&e.items.forEach(r=>{Ac(r,t)}),e.tabs&&e.tabs.forEach(r=>{r.items.forEach(n=>{Ac(n,t)})})},Mc=(e,t,r,n,i)=>{t=t||["*"],n=n||{},i=i||e.readonly||e.readOnly;const a=Im(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 jm(t.map(c=>{if(typeof c=="string"&&(c={key:c}),c&&c.key&&typeof c.key=="string"&&(c.key=Rt.parse(c.key)),c&&c.itemForm){c.items=[];const u=Rt.stringify(c.key);s[u].items.forEach(m=>{const h=Ao(c.itemForm);h.key=m.key,c.items.push(h)})}if(c&&c.key){const u=Rt.stringify(c.key);if(s[u]){const d=s[u];Object.keys(d).forEach(m=>{Object.prototype.hasOwnProperty.call(d,m)&&c[m]===void 0&&(c[m]=d[m])})}}return i===!0&&(c.readonly=!0),c&&c.items&&c.items.length>0&&(c.items=Mc(e,c.items,r,n,c.readonly)),c&&c.tabs&&c.tabs.forEach(u=>{u.items=Mc(e,u.items,r,n,c.readonly)}),c&&c.type==="checkbox"&&q0(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"?Rt.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 Nm=(e,t)=>{if(jc.has(e))return jc.get(e);try{const r=Ti.compile(t);return jc.set(e,r),r}catch{return null}};function J_(e){const t=JSON.stringify(e);let r=0;for(let n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;return r.toString(16)}const lr={traverseForm:Ac,traverseSchema:G_,prependRule:K_,appendRule:H_,postProcessFn:jm,getDefaults:Im,defaultFormDefinition:Un,defaults:Lr,array:km,fieldset:Rm,checkboxes:$m,select:Tm,checkbox:Cm,integer:xm,number:Om,text:Em,stdFormObj:Xt,canonicalTitleMap:Sm,enumToTitleMap:Nc,stripNullType:Ft,merge:Mc,validate:(e,t)=>{if(!e||!e.schema)return{valid:!0};(t===""||e.type==="number"&&(t===null||isNaN(parseFloat(t))))&&(t=void 0);const r=e.key[e.key.length-1],{schema:n}=e,i={type:"object",properties:{},$schema:"http://json-schema.org/draft-07/schema#"},a=e.key[e.key.length-1];i.properties[a]=n,e.required&&(i.required=[a]);const l=Nm(r,i);return l?l(t===void 0?{}:{[e.key[e.key.length-1]]:t})?{valid:!0}:{valid:!1,error:Ti.errorsText(l.errors,{})}:{valid:!1,error:"Invalid Schema"}},validateBySchema:(e,t)=>{e.$schema||(e.$schema="http://json-schema.org/draft-07/schema#");let r=J_(e);const n=Nm(r,e);return n?n(t===void 0?{}:t)?{valid:!0}:{valid:!1,error:Ti.errorsText(n.errors,{})}:{valid:!1,error:"Invalid Schema"}},safeEval:V_,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:Pm};var Pi={exports:{}},$i={exports:{}},Xe={};var Am;function X_(){if(Am)return Xe;Am=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,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function _(w){if(typeof w=="object"&&w!==null){var E=w.$$typeof;switch(E){case t:switch(w=w.type,w){case c:case u:case n:case a:case i:case m:return w;default:switch(w=w&&w.$$typeof,w){case s:case d:case g:case y:case l:return w;default:return E}}case r:return E}}}function S(w){return _(w)===u}return Xe.AsyncMode=c,Xe.ConcurrentMode=u,Xe.ContextConsumer=s,Xe.ContextProvider=l,Xe.Element=t,Xe.ForwardRef=d,Xe.Fragment=n,Xe.Lazy=g,Xe.Memo=y,Xe.Portal=r,Xe.Profiler=a,Xe.StrictMode=i,Xe.Suspense=m,Xe.isAsyncMode=function(w){return S(w)||_(w)===c},Xe.isConcurrentMode=S,Xe.isContextConsumer=function(w){return _(w)===s},Xe.isContextProvider=function(w){return _(w)===l},Xe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Xe.isForwardRef=function(w){return _(w)===d},Xe.isFragment=function(w){return _(w)===n},Xe.isLazy=function(w){return _(w)===g},Xe.isMemo=function(w){return _(w)===y},Xe.isPortal=function(w){return _(w)===r},Xe.isProfiler=function(w){return _(w)===a},Xe.isStrictMode=function(w){return _(w)===i},Xe.isSuspense=function(w){return _(w)===m},Xe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===u||w===a||w===i||w===m||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===y||w.$$typeof===l||w.$$typeof===s||w.$$typeof===d||w.$$typeof===b||w.$$typeof===v||w.$$typeof===p||w.$$typeof===f)},Xe.typeOf=_,Xe}var Ze={};var Mm;function Z_(){return Mm||(Mm=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,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function _(I){return typeof I=="string"||typeof I=="function"||I===n||I===u||I===a||I===i||I===m||I===h||typeof I=="object"&&I!==null&&(I.$$typeof===g||I.$$typeof===y||I.$$typeof===l||I.$$typeof===s||I.$$typeof===d||I.$$typeof===b||I.$$typeof===v||I.$$typeof===p||I.$$typeof===f)}function S(I){if(typeof I=="object"&&I!==null){var G=I.$$typeof;switch(G){case t:var X=I.type;switch(X){case c:case u:case n:case a:case i:case m:return X;default:var oe=X&&X.$$typeof;switch(oe){case s:case d:case g:case y:case l:return oe;default:return G}}case r:return G}}}var w=c,E=u,x=s,P=l,k=t,j=d,R=n,O=g,D=y,N=r,U=a,W=i,le=m,ce=!1;function ue(I){return ce||(ce=!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.")),z(I)||S(I)===c}function z(I){return S(I)===u}function C(I){return S(I)===s}function V(I){return S(I)===l}function M(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function T(I){return S(I)===d}function $(I){return S(I)===n}function q(I){return S(I)===g}function K(I){return S(I)===y}function re(I){return S(I)===r}function ie(I){return S(I)===a}function te(I){return S(I)===i}function L(I){return S(I)===m}Ze.AsyncMode=w,Ze.ConcurrentMode=E,Ze.ContextConsumer=x,Ze.ContextProvider=P,Ze.Element=k,Ze.ForwardRef=j,Ze.Fragment=R,Ze.Lazy=O,Ze.Memo=D,Ze.Portal=N,Ze.Profiler=U,Ze.StrictMode=W,Ze.Suspense=le,Ze.isAsyncMode=ue,Ze.isConcurrentMode=z,Ze.isContextConsumer=C,Ze.isContextProvider=V,Ze.isElement=M,Ze.isForwardRef=T,Ze.isFragment=$,Ze.isLazy=q,Ze.isMemo=K,Ze.isPortal=re,Ze.isProfiler=ie,Ze.isStrictMode=te,Ze.isSuspense=L,Ze.isValidElementType=_,Ze.typeOf=S})()),Ze}var Dm;function qm(){return Dm||(Dm=1,process.env.NODE_ENV==="production"?$i.exports=X_():$i.exports=Z_()),$i.exports}var Dc,Lm;function Q_(){if(Lm)return Dc;Lm=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(d){return l[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Dc=i()?Object.assign:function(a,l){for(var s,c=n(a),u,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var m in s)t.call(s,m)&&(c[m]=s[m]);if(e){u=e(s);for(var h=0;h<u.length;h++)r.call(s,u[h])&&(c[u[h]]=s[u[h]])}}return c},Dc}var qc,Fm;function Lc(){if(Fm)return qc;Fm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qc=e,qc}var Fc,zm;function Vm(){return zm||(zm=1,Fc=Function.call.bind(Object.prototype.hasOwnProperty)),Fc}var zc,Bm;function ew(){if(Bm)return zc;Bm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Lc(),r={},n=Vm();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 d in a)if(n(a,d)){var m;try{if(typeof a[d]!="function"){var h=Error((c||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}m=a[d](l,d,c,s,null,t)}catch(g){m=g}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var y=u?u():"";e("Failed "+s+" type: "+m.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},zc=i,zc}var Vc,Um;function tw(){if(Um)return Vc;Um=1;var e=qm(),t=Q_(),r=Lc(),n=Vm(),i=ew(),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 Vc=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(z){var C=z&&(u&&z[u]||z[d]);if(typeof C=="function")return C}var h="<<anonymous>>",y={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:p(),arrayOf:_,element:S(),elementType:w(),instanceOf:E,node:j(),objectOf:P,oneOf:x,oneOfType:k,shape:O,exact:D};function g(z,C){return z===C?z!==0||1/z===1/C:z!==z&&C!==C}function f(z,C){this.message=z,this.data=C&&typeof C=="object"?C:{},this.stack=""}f.prototype=Error.prototype;function b(z){if(process.env.NODE_ENV!=="production")var C={},V=0;function M($,q,K,re,ie,te,L){if(re=re||h,te=te||K,L!==r){if(c){var I=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 I.name="Invariant Violation",I}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var G=re+":"+K;!C[G]&&V<3&&(a("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+re+"`. 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."),C[G]=!0,V++)}}return q[K]==null?$?q[K]===null?new f("The "+ie+" `"+te+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new f("The "+ie+" `"+te+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:z(q,K,re,ie,te)}var T=M.bind(null,!1);return T.isRequired=M.bind(null,!0),T}function v(z){function C(V,M,T,$,q,K){var re=V[M],ie=W(re);if(ie!==z){var te=le(re);return new f("Invalid "+$+" `"+q+"` of type "+("`"+te+"` supplied to `"+T+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return b(C)}function p(){return b(l)}function _(z){function C(V,M,T,$,q){if(typeof z!="function")return new f("Property `"+q+"` of component `"+T+"` has invalid PropType notation inside arrayOf.");var K=V[M];if(!Array.isArray(K)){var re=W(K);return new f("Invalid "+$+" `"+q+"` of type "+("`"+re+"` supplied to `"+T+"`, expected an array."))}for(var ie=0;ie<K.length;ie++){var te=z(K,ie,T,$,q+"["+ie+"]",r);if(te instanceof Error)return te}return null}return b(C)}function S(){function z(C,V,M,T,$){var q=C[V];if(!s(q)){var K=W(q);return new f("Invalid "+T+" `"+$+"` of type "+("`"+K+"` supplied to `"+M+"`, expected a single ReactElement."))}return null}return b(z)}function w(){function z(C,V,M,T,$){var q=C[V];if(!e.isValidElementType(q)){var K=W(q);return new f("Invalid "+T+" `"+$+"` of type "+("`"+K+"` supplied to `"+M+"`, expected a single ReactElement type."))}return null}return b(z)}function E(z){function C(V,M,T,$,q){if(!(V[M]instanceof z)){var K=z.name||h,re=ue(V[M]);return new f("Invalid "+$+" `"+q+"` of type "+("`"+re+"` supplied to `"+T+"`, expected ")+("instance of `"+K+"`."))}return null}return b(C)}function x(z){if(!Array.isArray(z))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 C(V,M,T,$,q){for(var K=V[M],re=0;re<z.length;re++)if(g(K,z[re]))return null;var ie=JSON.stringify(z,function(L,I){var G=le(I);return G==="symbol"?String(I):I});return new f("Invalid "+$+" `"+q+"` of value `"+String(K)+"` "+("supplied to `"+T+"`, expected one of "+ie+"."))}return b(C)}function P(z){function C(V,M,T,$,q){if(typeof z!="function")return new f("Property `"+q+"` of component `"+T+"` has invalid PropType notation inside objectOf.");var K=V[M],re=W(K);if(re!=="object")return new f("Invalid "+$+" `"+q+"` of type "+("`"+re+"` supplied to `"+T+"`, expected an object."));for(var ie in K)if(n(K,ie)){var te=z(K,ie,T,$,q+"."+ie,r);if(te instanceof Error)return te}return null}return b(C)}function k(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var C=0;C<z.length;C++){var V=z[C];if(typeof V!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ce(V)+" at index "+C+"."),l}function M(T,$,q,K,re){for(var ie=[],te=0;te<z.length;te++){var L=z[te],I=L(T,$,q,K,re,r);if(I==null)return null;I.data&&n(I.data,"expectedType")&&ie.push(I.data.expectedType)}var G=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new f("Invalid "+K+" `"+re+"` supplied to "+("`"+q+"`"+G+"."))}return b(M)}function j(){function z(C,V,M,T,$){return N(C[V])?null:new f("Invalid "+T+" `"+$+"` supplied to "+("`"+M+"`, expected a ReactNode."))}return b(z)}function R(z,C,V,M,T){return new f((z||"React class")+": "+C+" type `"+V+"."+M+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+T+"`.")}function O(z){function C(V,M,T,$,q){var K=V[M],re=W(K);if(re!=="object")return new f("Invalid "+$+" `"+q+"` of type `"+re+"` "+("supplied to `"+T+"`, expected `object`."));for(var ie in z){var te=z[ie];if(typeof te!="function")return R(T,$,q,ie,le(te));var L=te(K,ie,T,$,q+"."+ie,r);if(L)return L}return null}return b(C)}function D(z){function C(V,M,T,$,q){var K=V[M],re=W(K);if(re!=="object")return new f("Invalid "+$+" `"+q+"` of type `"+re+"` "+("supplied to `"+T+"`, expected `object`."));var ie=t({},V[M],z);for(var te in ie){var L=z[te];if(n(z,te)&&typeof L!="function")return R(T,$,q,te,le(L));if(!L)return new f("Invalid "+$+" `"+q+"` key `"+te+"` supplied to `"+T+"`.\nBad object: "+JSON.stringify(V[M],null," ")+`
|
|
14
|
-
Valid keys: `+JSON.stringify(Object.keys(z),null," "));var I=L(K,te,T,$,
|
|
13
|
+
deps: ${d}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[u,d]=a(c);l(c,u),s(c,d)}};function a({schema:c}){const u={},d={};for(const m in c){if(m==="__proto__")continue;const h=Array.isArray(c[m])?u:d;h[m]=c[m]}return[u,d]}function l(c,u=c.schema){const{gen:d,data:m,it:h}=c;if(Object.keys(u).length===0)return;const y=d.let("missing");for(const g in u){const f=u[g];if(f.length===0)continue;const b=(0,n.propertyInData)(d,m,g,h.opts.ownProperties);c.setParams({property:g,depsCount:f.length,deps:f.join(", ")}),h.allErrors?d.if(b,()=>{for(const v of f)(0,n.checkReportMissingProp)(c,v)}):(d.if((0,t._)`${b} && (${(0,n.checkMissingProp)(c,f,y)})`),(0,n.reportMissingProp)(c,y),d.else())}}e.validatePropertyDeps=l;function s(c,u=c.schema){const{gen:d,data:m,keyword:h,it:y}=c,g=d.name("valid");for(const f in u)(0,r.alwaysValidSchema)(y,u[f])||(d.if((0,n.propertyInData)(d,m,f,y.opts.ownProperties),()=>{const b=c.subschema({keyword:h,schemaProp:f},g);c.mergeValidEvaluated(b,g)},()=>d.var(g,!0)),c.ok(g))}e.validateSchemaDeps=s,e.default=i})(Rc)),Rc}var pi={},Qh;function g_(){if(Qh)return pi;Qh=1,Object.defineProperty(pi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:a,schema:l,data:s,it:c}=i;if((0,t.alwaysValidSchema)(c,l))return;const u=a.name("valid");a.forIn("key",s,d=>{i.setParams({propertyName:d}),i.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},u),a.if((0,e.not)(u),()=>{i.error(!0),c.allErrors||a.break()})}),i.ok(u)}};return pi.default=n,pi}var hi={},em;function tm(){if(em)return hi;em=1,Object.defineProperty(hi,"__esModule",{value:!0});const e=sr(),t=De(),r=Dr(),n=Ge(),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:l})=>(0,t._)`{additionalProperty: ${l.additionalProperty}}`},code(l){const{gen:s,schema:c,parentSchema:u,data:d,errsCount:m,it:h}=l;if(!m)throw new Error("ajv implementation error");const{allErrors:y,opts:g}=h;if(h.props=!0,g.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(h,c))return;const f=(0,e.allSchemaProperties)(u.properties),b=(0,e.allSchemaProperties)(u.patternProperties);v(),l.ok((0,t._)`${m} === ${r.default.errors}`);function v(){s.forIn("key",d,E=>{!f.length&&!b.length?S(E):s.if(p(E),()=>S(E))})}function p(E){let x;if(f.length>8){const P=(0,n.schemaRefOrVal)(h,u.properties,"properties");x=(0,e.isOwnProperty)(s,P,E)}else f.length?x=(0,t.or)(...f.map(P=>(0,t._)`${E} === ${P}`)):x=t.nil;return b.length&&(x=(0,t.or)(x,...b.map(P=>(0,t._)`${(0,e.usePattern)(l,P)}.test(${E})`))),(0,t.not)(x)}function _(E){s.code((0,t._)`delete ${d}[${E}]`)}function S(E){if(g.removeAdditional==="all"||g.removeAdditional&&c===!1){_(E);return}if(c===!1){l.setParams({additionalProperty:E}),l.error(),y||s.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(h,c)){const x=s.name("valid");g.removeAdditional==="failing"?(w(E,x,!1),s.if((0,t.not)(x),()=>{l.reset(),_(E)})):(w(E,x),y||s.if((0,t.not)(x),()=>s.break()))}}function w(E,x,P){const k={keyword:"additionalProperties",dataProp:E,dataPropType:n.Type.Str};P===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),l.subschema(k,x)}}};return hi.default=a,hi}var mi={},rm;function v_(){if(rm)return mi;rm=1,Object.defineProperty(mi,"__esModule",{value:!0});const e=Vo(),t=sr(),r=Ge(),n=tm(),i={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:l,schema:s,parentSchema:c,data:u,it:d}=a;d.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&n.default.code(new e.KeywordCxt(d,n.default,"additionalProperties"));const m=(0,t.allSchemaProperties)(s);for(const b of m)d.definedProperties.add(b);d.opts.unevaluated&&m.length&&d.props!==!0&&(d.props=r.mergeEvaluated.props(l,(0,r.toHash)(m),d.props));const h=m.filter(b=>!(0,r.alwaysValidSchema)(d,s[b]));if(h.length===0)return;const y=l.name("valid");for(const b of h)g(b)?f(b):(l.if((0,t.propertyInData)(l,u,b,d.opts.ownProperties)),f(b),d.allErrors||l.else().var(y,!0),l.endIf()),a.it.definedProperties.add(b),a.ok(y);function g(b){return d.opts.useDefaults&&!d.compositeRule&&s[b].default!==void 0}function f(b){a.subschema({keyword:"properties",schemaProp:b,dataProp:b},y)}}};return mi.default=i,mi}var yi={},nm;function b_(){if(nm)return yi;nm=1,Object.defineProperty(yi,"__esModule",{value:!0});const e=sr(),t=De(),r=Ge(),n=Ge(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:l,schema:s,data:c,parentSchema:u,it:d}=a,{opts:m}=d,h=(0,e.allSchemaProperties)(s),y=h.filter(S=>(0,r.alwaysValidSchema)(d,s[S]));if(h.length===0||y.length===h.length&&(!d.opts.unevaluated||d.props===!0))return;const g=m.strictSchema&&!m.allowMatchingProperties&&u.properties,f=l.name("valid");d.props!==!0&&!(d.props instanceof t.Name)&&(d.props=(0,n.evaluatedPropsToName)(l,d.props));const{props:b}=d;v();function v(){for(const S of h)g&&p(S),d.allErrors?_(S):(l.var(f,!0),_(S),l.if(f))}function p(S){for(const w in g)new RegExp(S).test(w)&&(0,r.checkStrictMode)(d,`property ${w} matches pattern ${S} (use allowMatchingProperties)`)}function _(S){l.forIn("key",c,w=>{l.if((0,t._)`${(0,e.usePattern)(a,S)}.test(${w})`,()=>{const E=y.includes(S);E||a.subschema({keyword:"patternProperties",schemaProp:S,dataProp:w,dataPropType:n.Type.Str},f),d.opts.unevaluated&&b!==!0?l.assign((0,t._)`${b}[${w}]`,!0):!E&&!d.allErrors&&l.if((0,t.not)(f),()=>l.break())})})}}};return yi.default=i,yi}var gi={},om;function __(){if(om)return gi;om=1,Object.defineProperty(gi,"__esModule",{value:!0});const e=Ge(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:i,it:a}=r;if((0,e.alwaysValidSchema)(a,i)){r.fail();return}const l=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),r.failResult(l,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return gi.default=t,gi}var vi={},im;function w_(){if(im)return vi;im=1,Object.defineProperty(vi,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:sr().validateUnion,error:{message:"must match a schema in anyOf"}};return vi.default=t,vi}var bi={},am;function S_(){if(am)return bi;am=1,Object.defineProperty(bi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:a,schema:l,parentSchema:s,it:c}=i;if(!Array.isArray(l))throw new Error("ajv implementation error");if(c.opts.discriminator&&s.discriminator)return;const u=l,d=a.let("valid",!1),m=a.let("passing",null),h=a.name("_valid");i.setParams({passing:m}),a.block(y),i.result(d,()=>i.reset(),()=>i.error(!0));function y(){u.forEach((g,f)=>{let b;(0,t.alwaysValidSchema)(c,g)?a.var(h,!0):b=i.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},h),f>0&&a.if((0,e._)`${h} && ${d}`).assign(d,!1).assign(m,(0,e._)`[${m}, ${f}]`).else(),a.if(h,()=>{a.assign(d,!0),a.assign(m,f),b&&i.mergeEvaluated(b,e.Name)})})}}};return bi.default=n,bi}var _i={},sm;function E_(){if(sm)return _i;sm=1,Object.defineProperty(_i,"__esModule",{value:!0});const e=Ge(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:i,it:a}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const l=n.name("valid");i.forEach((s,c)=>{if((0,e.alwaysValidSchema)(a,s))return;const u=r.subschema({keyword:"allOf",schemaProp:c},l);r.ok(l),r.mergeEvaluated(u)})}};return _i.default=t,_i}var wi={},lm;function O_(){if(lm)return wi;lm=1,Object.defineProperty(wi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:a})=>(0,e.str)`must match "${a.ifClause}" schema`,params:({params:a})=>(0,e._)`{failingKeyword: ${a.ifClause}}`},code(a){const{gen:l,parentSchema:s,it:c}=a;s.then===void 0&&s.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const u=i(c,"then"),d=i(c,"else");if(!u&&!d)return;const m=l.let("valid",!0),h=l.name("_valid");if(y(),a.reset(),u&&d){const f=l.let("ifClause");a.setParams({ifClause:f}),l.if(h,g("then",f),g("else",f))}else u?l.if(h,g("then")):l.if((0,e.not)(h),g("else"));a.pass(m,()=>a.error(!0));function y(){const f=a.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);a.mergeEvaluated(f)}function g(f,b){return()=>{const v=a.subschema({keyword:f},h);l.assign(m,h),a.mergeValidEvaluated(v,m),b?l.assign(b,(0,e._)`${f}`):a.setParams({ifClause:f})}}}};function i(a,l){const s=a.schema[l];return s!==void 0&&!(0,t.alwaysValidSchema)(a,s)}return wi.default=n,wi}var Si={},cm;function x_(){if(cm)return Si;cm=1,Object.defineProperty(Si,"__esModule",{value:!0});const e=Ge(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:i}){n.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return Si.default=t,Si}var um;function C_(){if(um)return ci;um=1,Object.defineProperty(ci,"__esModule",{value:!0});const e=Hh(),t=p_(),r=Gh(),n=h_(),i=m_(),a=y_(),l=g_(),s=tm(),c=v_(),u=b_(),d=__(),m=w_(),h=S_(),y=E_(),g=O_(),f=x_();function b(v=!1){const p=[d.default,m.default,h.default,y.default,g.default,f.default,l.default,s.default,a.default,c.default,u.default];return v?p.push(t.default,n.default):p.push(e.default,r.default),p.push(i.default),p}return ci.default=b,ci}var Ei={},Oi={},dm;function T_(){if(dm)return Oi;dm=1,Object.defineProperty(Oi,"__esModule",{value:!0});const e=De(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,i){const{gen:a,data:l,$data:s,schema:c,schemaCode:u,it:d}=n,{opts:m,errSchemaPath:h,schemaEnv:y,self:g}=d;if(!m.validateFormats)return;s?f():b();function f(){const v=a.scopeValue("formats",{ref:g.formats,code:m.code.formats}),p=a.const("fDef",(0,e._)`${v}[${u}]`),_=a.let("fType"),S=a.let("format");a.if((0,e._)`typeof ${p} == "object" && !(${p} instanceof RegExp)`,()=>a.assign(_,(0,e._)`${p}.type || "string"`).assign(S,(0,e._)`${p}.validate`),()=>a.assign(_,(0,e._)`"string"`).assign(S,p)),n.fail$data((0,e.or)(w(),E()));function w(){return m.strictSchema===!1?e.nil:(0,e._)`${u} && !${S}`}function E(){const x=y.$async?(0,e._)`(${p}.async ? await ${S}(${l}) : ${S}(${l}))`:(0,e._)`${S}(${l})`,P=(0,e._)`(typeof ${S} == "function" ? ${x} : ${S}.test(${l}))`;return(0,e._)`${S} && ${S} !== true && ${_} === ${i} && !${P}`}}function b(){const v=g.formats[c];if(!v){w();return}if(v===!0)return;const[p,_,S]=E(v);p===i&&n.pass(x());function w(){if(m.strictSchema===!1){g.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${c}" ignored in schema at path "${h}"`}}function E(P){const k=P instanceof RegExp?(0,e.regexpCode)(P):m.code.formats?(0,e._)`${m.code.formats}${(0,e.getProperty)(c)}`:void 0,M=a.scopeValue("formats",{key:c,ref:P,code:k});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,e._)`${M}.validate`]:["string",P,M]}function x(){if(typeof v=="object"&&!(v instanceof RegExp)&&v.async){if(!y.$async)throw new Error("async format in sync schema");return(0,e._)`await ${S}(${l})`}return typeof _=="function"?(0,e._)`${S}(${l})`:(0,e._)`${S}.test(${l})`}}}};return Oi.default=r,Oi}var fm;function P_(){if(fm)return Ei;fm=1,Object.defineProperty(Ei,"__esModule",{value:!0});const t=[T_().default];return Ei.default=t,Ei}var tn={},pm;function $_(){return pm||(pm=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.contentVocabulary=tn.metadataVocabulary=void 0,tn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],tn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),tn}var hm;function R_(){if(hm)return Ko;hm=1,Object.defineProperty(Ko,"__esModule",{value:!0});const e=e_(),t=f_(),r=C_(),n=P_(),i=$_(),a=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return Ko.default=a,Ko}var xi={},Bn={},mm;function k_(){if(mm)return Bn;mm=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Bn.DiscrError=e={})),Bn}var ym;function I_(){if(ym)return xi;ym=1,Object.defineProperty(xi,"__esModule",{value:!0});const e=De(),t=k_(),r=Cc(),n=Wo(),i=Ge(),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:s,tagName:c}})=>s===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:s,tag:c,tagName:u}})=>(0,e._)`{error: ${s}, tag: ${u}, tagValue: ${c}}`},code(s){const{gen:c,data:u,schema:d,parentSchema:m,it:h}=s,{oneOf:y}=m;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const g=d.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!y)throw new Error("discriminator: requires oneOf keyword");const f=c.let("valid",!1),b=c.const("tag",(0,e._)`${u}${(0,e.getProperty)(g)}`);c.if((0,e._)`typeof ${b} == "string"`,()=>v(),()=>s.error(!1,{discrError:t.DiscrError.Tag,tag:b,tagName:g})),s.ok(f);function v(){const S=_();c.if(!1);for(const w in S)c.elseIf((0,e._)`${b} === ${w}`),c.assign(f,p(S[w]));c.else(),s.error(!1,{discrError:t.DiscrError.Mapping,tag:b,tagName:g}),c.endIf()}function p(S){const w=c.name("valid"),E=s.subschema({keyword:"oneOf",schemaProp:S},w);return s.mergeEvaluated(E,e.Name),w}function _(){var S;const w={},E=P(m);let x=!0;for(let R=0;R<y.length;R++){let O=y[R];if(O?.$ref&&!(0,i.schemaHasRulesButRef)(O,h.self.RULES)){const N=O.$ref;if(O=r.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,N),O instanceof r.SchemaEnv&&(O=O.schema),O===void 0)throw new n.default(h.opts.uriResolver,h.baseId,N)}const q=(S=O?.properties)===null||S===void 0?void 0:S[g];if(typeof q!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);x=x&&(E||P(O)),k(q,R)}if(!x)throw new Error(`discriminator: "${g}" must be required`);return w;function P({required:R}){return Array.isArray(R)&&R.includes(g)}function k(R,O){if(R.const)M(R.const,O);else if(R.enum)for(const q of R.enum)M(q,O);else throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}function M(R,O){if(typeof R!="string"||R in w)throw new Error(`discriminator: "${g}" values must be unique strings`);w[R]=O}}}};return xi.default=l,xi}const j_={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var gm;function vm(){return gm||(gm=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=X0(),n=R_(),i=I_(),a=j_,l=["/properties"],s="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(a,l):a;this.addMetaSchema(g,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=Vo();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=De();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var m=xc();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return m.default}});var h=Wo();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(Mo,Mo.exports)),Mo.exports}var N_=vm();const A_=Ut(N_);var Ci={exports:{}},kc={},bm;function M_(){return bm||(bm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(R,O){return{validate:R,compare:O}}e.fullFormats={date:t(a,l),time:t(c(!0),u),"date-time":t(h(!0),y),"iso-time":t(c(),d),"iso-date-time":t(h(),g),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:M,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:_,int32:{type:"number",validate:E},int64:{type:"number",validate:x},float:{type:"number",validate:P},double:{type:"number",validate:P},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,l),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,y),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,g),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(R){return R%4===0&&(R%100!==0||R%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(R){const O=n.exec(R);if(!O)return!1;const q=+O[1],N=+O[2],U=+O[3];return N>=1&&N<=12&&U>=1&&U<=(N===2&&r(q)?29:i[N])}function l(R,O){if(R&&O)return R>O?1:R<O?-1:0}const s=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(R){return function(q){const N=s.exec(q);if(!N)return!1;const U=+N[1],W=+N[2],le=+N[3],ce=N[4],ue=N[5]==="-"?-1:1,z=+(N[6]||0),C=+(N[7]||0);if(z>23||C>59||R&&!ce)return!1;if(U<=23&&W<=59&&le<60)return!0;const V=W-C*ue,A=U-z*ue-(V<0?1:0);return(A===23||A===-1)&&(V===59||V===-1)&&le<61}}function u(R,O){if(!(R&&O))return;const q=new Date("2020-01-01T"+R).valueOf(),N=new Date("2020-01-01T"+O).valueOf();if(q&&N)return q-N}function d(R,O){if(!(R&&O))return;const q=s.exec(R),N=s.exec(O);if(q&&N)return R=q[1]+q[2]+q[3],O=N[1]+N[2]+N[3],R>O?1:R<O?-1:0}const m=/t|\s/i;function h(R){const O=c(R);return function(N){const U=N.split(m);return U.length===2&&a(U[0])&&O(U[1])}}function y(R,O){if(!(R&&O))return;const q=new Date(R).valueOf(),N=new Date(O).valueOf();if(q&&N)return q-N}function g(R,O){if(!(R&&O))return;const[q,N]=R.split(m),[U,W]=O.split(m),le=l(q,U);if(le!==void 0)return le||u(N,W)}const f=/\/|:/,b=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function v(R){return f.test(R)&&b.test(R)}const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function _(R){return p.lastIndex=0,p.test(R)}const S=-2147483648,w=2**31-1;function E(R){return Number.isInteger(R)&&R<=w&&R>=S}function x(R){return Number.isInteger(R)}function P(){return!0}const k=/[^\\]\\Z/;function M(R){if(k.test(R))return!1;try{return new RegExp(R),!0}catch{return!1}}})(kc)),kc}var Ic={},_m;function D_(){return _m||(_m=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=vm(),r=De(),n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},a={message:({keyword:s,schemaCode:c})=>(0,r.str)`should be ${i[s].okStr} ${c}`,params:({keyword:s,schemaCode:c})=>(0,r._)`{comparison: ${i[s].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:c,data:u,schemaCode:d,keyword:m,it:h}=s,{opts:y,self:g}=h;if(!y.validateFormats)return;const f=new t.KeywordCxt(h,g.RULES.all.format.definition,"format");f.$data?b():v();function b(){const _=c.scopeValue("formats",{ref:g.formats,code:y.code.formats}),S=c.const("fmt",(0,r._)`${_}[${f.schemaCode}]`);s.fail$data((0,r.or)((0,r._)`typeof ${S} != "object"`,(0,r._)`${S} instanceof RegExp`,(0,r._)`typeof ${S}.compare != "function"`,p(S)))}function v(){const _=f.schema,S=g.formats[_];if(!S||S===!0)return;if(typeof S!="object"||S instanceof RegExp||typeof S.compare!="function")throw new Error(`"${m}": format "${_}" does not define "compare" function`);const w=c.scopeValue("formats",{key:_,ref:S,code:y.code.formats?(0,r._)`${y.code.formats}${(0,r.getProperty)(_)}`:void 0});s.fail$data(p(w))}function p(_){return(0,r._)`${_}.compare(${u}, ${d}) ${i[m].fail} 0`}},dependencies:["format"]};const l=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=l})(Ic)),Ic}var wm;function q_(){return wm||(wm=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=M_(),n=D_(),i=De(),a=new i.Name("fullFormats"),l=new i.Name("fastFormats"),s=(u,d={keywords:!0})=>{if(Array.isArray(d))return c(u,d,r.fullFormats,a),u;const[m,h]=d.mode==="fast"?[r.fastFormats,l]:[r.fullFormats,a],y=d.formats||r.formatNames;return c(u,y,m,h),d.keywords&&(0,n.default)(u),u};s.get=(u,d="full")=>{const h=(d==="fast"?r.fastFormats:r.fullFormats)[u];if(!h)throw new Error(`Unknown format "${u}"`);return h};function c(u,d,m,h){var y,g;(y=(g=u.opts.code).formats)!==null&&y!==void 0||(g.formats=(0,i._)`require("ajv-formats/dist/formats").${h}`);for(const f of d)u.addFormat(f,m[f])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(Ci,Ci.exports)),Ci.exports}var L_=q_();const F_=Ut(L_),Ti=new A_({allErrors:!0,strict:!1,keywords:["readonly"]});F_(Ti);const jc=new Map,z_=(e,t)=>{try{return t.split(/[.[\]'"]/).filter(Boolean).reduce((r,n)=>r&&r[n],e)}catch{return}},V_=(e,t)=>{try{const r=Ao(t);if(!e)return!0;const n=e.match(/^(.*?)\s*(===|!==|>)\s*('([^']*)'|"([^"]*)'|([0-9.]+))$/);if(!n){console.warn(`Unsupported condition format: ${e}`);return}const i=n[1].trim(),a=n[2],l=n[3],s=n[4],c=n[5],u=n[6],d=z_(r,i);let m;if(s!==void 0)m=s;else if(c!==void 0)m=c;else if(u!==void 0)m=parseFloat(u);else{console.warn(`Could not determine the type of the right-hand value in: ${e}`);return}switch(a){case"===":return d===m;case"!==":return d!==m;case">":return d>m;case"<":return d<m;default:console.warn(`Unsupported operator: ${a}`);return}}catch(r){console.error("Custom evaluation error:",r);return}},Ft=e=>{if(Array.isArray(e)&&e.length===2){if(e[0]==="null")return e[1];if(e[1]==="null")return e[0]}return e},Nc=e=>{const t=[];return e.forEach(r=>{t.push({name:r,value:r})}),t},Sm=(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},Xt=(e,t,r)=>{r=r||{};const n=r.global&&r.global.formDefaults?Ao(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=Sm(t.enumNames,t.enum)),n.schema=t,n},B_=(e,t,r)=>{if(Ft(t.type)==="tBoolean"&&!t.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="tBoolean",r.lookup[Rt.stringify(r.path)]=n,n}},Em=(e,t,r)=>{if(Ft(t.type)==="string"&&!t.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="text",r.lookup[Rt.stringify(r.path)]=n,n}},Om=(e,t,r)=>{if(Ft(t.type)==="number"){const n=Xt(e,t,r);return n.key=r.path,n.type="number",r.lookup[Rt.stringify(r.path)]=n,n}},xm=(e,t,r)=>{if(Ft(t.type)==="integer"){const n=Xt(e,t,r);return n.key=r.path,n.type="number",r.lookup[Rt.stringify(r.path)]=n,n}},U_=(e,t,r)=>{if(Ft(t.type)==="date"){const n=Xt(e,t,r);return n.key=r.path,n.type="date",r.lookup[Rt.stringify(r.path)]=n,n}},Cm=(e,t,r)=>{if(Ft(t.type)==="boolean"){const n=Xt(e,t,r);return n.key=r.path,n.type="checkbox",r.lookup[Rt.stringify(r.path)]=n,n}},Tm=(e,t,r)=>{if(Ft(t.type)==="string"&&t.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="select",!n.titleMap&&!t.isObject&&(n.titleMap=Nc(t.enum)),r.lookup[Rt.stringify(r.path)]=n,n}},Pm=e=>Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"?Pm(r):(r==null||r==="")&&delete e[t]}),$m=(e,t,r)=>{if(Ft(t.type)==="array"&&t.items&&t.items.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="checkboxes",n.titleMap||(n.titleMap=Nc(t.items.enum)),r.lookup[Rt.stringify(r.path)]=n,n}},Un=(e,t,r)=>{const n=Lr[Ft(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"]&&i0(i.schema["x-schema-form"])&&(i=A0(i,i.schema["x-schema-form"])),i}},Rm=(e,t,r)=>{if(Ft(t.type)==="object"){const n=Xt(e,t,r);return n.type="fieldset",n.items=[],r.lookup[Rt.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[Rt.stringify(a)]!==!0){const l=t.required&&t.required.indexOf(i)!==-1,s=Un(i,t.properties[i],{path:a,required:l||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});s&&n.items.push(s)}}}),n}},W_=(e,t,r)=>{if(Ft(t.type)==="array"){const n=Xt(e,t,r);if(n.type="tuple",n.key=r.path,r.lookup[Rt.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=Un(e,l,{path:c,required:i||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});return u&&a.push(u),a},[]),n}}},km=(e,t,r)=>{if(Ft(t.type)==="array"){const n=Xt(e,t,r);if(n.type="array",n.key=r.path,r.lookup[Rt.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=Un(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}},Lr={string:[Tm,Em],object:[Rm],number:[Om],integer:[xm],boolean:[Cm],array:[$m,W_,km],date:[U_],tBoolean:[B_]},Im=(e,t,r)=>{const n=[],i={};if(t=t||{},r=r||{},Ft(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=Un(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}},jm=e=>e,H_=(e,t)=>{Lr[e]||(Lr[e]=[]),Lr[e].push(t)},K_=(e,t)=>{Lr[e]||(Lr[e]=[]),Lr[e].unshift(t)},G_=(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||[])},Ac=(e,t)=>{t(e),e.items&&e.items.forEach(r=>{Ac(r,t)}),e.tabs&&e.tabs.forEach(r=>{r.items.forEach(n=>{Ac(n,t)})})},Mc=(e,t,r,n,i)=>{t=t||["*"],n=n||{},i=i||e.readonly||e.readOnly;const a=Im(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 jm(t.map(c=>{if(typeof c=="string"&&(c={key:c}),c&&c.key&&typeof c.key=="string"&&(c.key=Rt.parse(c.key)),c&&c.itemForm){c.items=[];const u=Rt.stringify(c.key);s[u].items.forEach(m=>{const h=Ao(c.itemForm);h.key=m.key,c.items.push(h)})}if(c&&c.key){const u=Rt.stringify(c.key);if(s[u]){const d=s[u];Object.keys(d).forEach(m=>{Object.prototype.hasOwnProperty.call(d,m)&&c[m]===void 0&&(c[m]=d[m])})}}return i===!0&&(c.readonly=!0),c&&c.items&&c.items.length>0&&(c.items=Mc(e,c.items,r,n,c.readonly)),c&&c.tabs&&c.tabs.forEach(u=>{u.items=Mc(e,u.items,r,n,c.readonly)}),c&&c.type==="checkbox"&&q0(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"?Rt.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 Nm=(e,t)=>{if(jc.has(e))return jc.get(e);try{const r=Ti.compile(t);return jc.set(e,r),r}catch{return null}};function J_(e){const t=JSON.stringify(e);let r=0;for(let n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;return r.toString(16)}const lr={traverseForm:Ac,traverseSchema:G_,prependRule:K_,appendRule:H_,postProcessFn:jm,getDefaults:Im,defaultFormDefinition:Un,defaults:Lr,array:km,fieldset:Rm,checkboxes:$m,select:Tm,checkbox:Cm,integer:xm,number:Om,text:Em,stdFormObj:Xt,canonicalTitleMap:Sm,enumToTitleMap:Nc,stripNullType:Ft,merge:Mc,validate:(e,t)=>{if(!e||!e.schema)return{valid:!0};(t===""||e.type==="number"&&(t===null||isNaN(parseFloat(t))))&&(t=void 0);const r=e.key[e.key.length-1],{schema:n}=e,i={type:"object",properties:{},$schema:"http://json-schema.org/draft-07/schema#"},a=e.key[e.key.length-1];i.properties[a]=n,e.required&&(i.required=[a]);const l=Nm(r,i);return l?l(t===void 0?{}:{[e.key[e.key.length-1]]:t})?{valid:!0}:{valid:!1,error:Ti.errorsText(l.errors,{})}:{valid:!1,error:"Invalid Schema"}},validateBySchema:(e,t)=>{e.$schema||(e.$schema="http://json-schema.org/draft-07/schema#");let r=J_(e);const n=Nm(r,e);return n?n(t===void 0?{}:t)?{valid:!0}:{valid:!1,error:Ti.errorsText(n.errors,{})}:{valid:!1,error:"Invalid Schema"}},safeEval:V_,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:Pm};var Pi={exports:{}},$i={exports:{}},Xe={};var Am;function X_(){if(Am)return Xe;Am=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,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function _(w){if(typeof w=="object"&&w!==null){var E=w.$$typeof;switch(E){case t:switch(w=w.type,w){case c:case u:case n:case a:case i:case m:return w;default:switch(w=w&&w.$$typeof,w){case s:case d:case g:case y:case l:return w;default:return E}}case r:return E}}}function S(w){return _(w)===u}return Xe.AsyncMode=c,Xe.ConcurrentMode=u,Xe.ContextConsumer=s,Xe.ContextProvider=l,Xe.Element=t,Xe.ForwardRef=d,Xe.Fragment=n,Xe.Lazy=g,Xe.Memo=y,Xe.Portal=r,Xe.Profiler=a,Xe.StrictMode=i,Xe.Suspense=m,Xe.isAsyncMode=function(w){return S(w)||_(w)===c},Xe.isConcurrentMode=S,Xe.isContextConsumer=function(w){return _(w)===s},Xe.isContextProvider=function(w){return _(w)===l},Xe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Xe.isForwardRef=function(w){return _(w)===d},Xe.isFragment=function(w){return _(w)===n},Xe.isLazy=function(w){return _(w)===g},Xe.isMemo=function(w){return _(w)===y},Xe.isPortal=function(w){return _(w)===r},Xe.isProfiler=function(w){return _(w)===a},Xe.isStrictMode=function(w){return _(w)===i},Xe.isSuspense=function(w){return _(w)===m},Xe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===u||w===a||w===i||w===m||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===y||w.$$typeof===l||w.$$typeof===s||w.$$typeof===d||w.$$typeof===b||w.$$typeof===v||w.$$typeof===p||w.$$typeof===f)},Xe.typeOf=_,Xe}var Ze={};var Mm;function Z_(){return Mm||(Mm=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,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function _(I){return typeof I=="string"||typeof I=="function"||I===n||I===u||I===a||I===i||I===m||I===h||typeof I=="object"&&I!==null&&(I.$$typeof===g||I.$$typeof===y||I.$$typeof===l||I.$$typeof===s||I.$$typeof===d||I.$$typeof===b||I.$$typeof===v||I.$$typeof===p||I.$$typeof===f)}function S(I){if(typeof I=="object"&&I!==null){var G=I.$$typeof;switch(G){case t:var X=I.type;switch(X){case c:case u:case n:case a:case i:case m:return X;default:var ne=X&&X.$$typeof;switch(ne){case s:case d:case g:case y:case l:return ne;default:return G}}case r:return G}}}var w=c,E=u,x=s,P=l,k=t,M=d,R=n,O=g,q=y,N=r,U=a,W=i,le=m,ce=!1;function ue(I){return ce||(ce=!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.")),z(I)||S(I)===c}function z(I){return S(I)===u}function C(I){return S(I)===s}function V(I){return S(I)===l}function A(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function T(I){return S(I)===d}function $(I){return S(I)===n}function D(I){return S(I)===g}function K(I){return S(I)===y}function re(I){return S(I)===r}function ie(I){return S(I)===a}function te(I){return S(I)===i}function L(I){return S(I)===m}Ze.AsyncMode=w,Ze.ConcurrentMode=E,Ze.ContextConsumer=x,Ze.ContextProvider=P,Ze.Element=k,Ze.ForwardRef=M,Ze.Fragment=R,Ze.Lazy=O,Ze.Memo=q,Ze.Portal=N,Ze.Profiler=U,Ze.StrictMode=W,Ze.Suspense=le,Ze.isAsyncMode=ue,Ze.isConcurrentMode=z,Ze.isContextConsumer=C,Ze.isContextProvider=V,Ze.isElement=A,Ze.isForwardRef=T,Ze.isFragment=$,Ze.isLazy=D,Ze.isMemo=K,Ze.isPortal=re,Ze.isProfiler=ie,Ze.isStrictMode=te,Ze.isSuspense=L,Ze.isValidElementType=_,Ze.typeOf=S})()),Ze}var Dm;function qm(){return Dm||(Dm=1,process.env.NODE_ENV==="production"?$i.exports=X_():$i.exports=Z_()),$i.exports}var Dc,Lm;function Q_(){if(Lm)return Dc;Lm=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(d){return l[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Dc=i()?Object.assign:function(a,l){for(var s,c=n(a),u,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var m in s)t.call(s,m)&&(c[m]=s[m]);if(e){u=e(s);for(var h=0;h<u.length;h++)r.call(s,u[h])&&(c[u[h]]=s[u[h]])}}return c},Dc}var qc,Fm;function Lc(){if(Fm)return qc;Fm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qc=e,qc}var Fc,zm;function Vm(){return zm||(zm=1,Fc=Function.call.bind(Object.prototype.hasOwnProperty)),Fc}var zc,Bm;function ew(){if(Bm)return zc;Bm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Lc(),r={},n=Vm();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 d in a)if(n(a,d)){var m;try{if(typeof a[d]!="function"){var h=Error((c||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}m=a[d](l,d,c,s,null,t)}catch(g){m=g}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var y=u?u():"";e("Failed "+s+" type: "+m.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},zc=i,zc}var Vc,Um;function tw(){if(Um)return Vc;Um=1;var e=qm(),t=Q_(),r=Lc(),n=Vm(),i=ew(),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 Vc=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(z){var C=z&&(u&&z[u]||z[d]);if(typeof C=="function")return C}var h="<<anonymous>>",y={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:p(),arrayOf:_,element:S(),elementType:w(),instanceOf:E,node:M(),objectOf:P,oneOf:x,oneOfType:k,shape:O,exact:q};function g(z,C){return z===C?z!==0||1/z===1/C:z!==z&&C!==C}function f(z,C){this.message=z,this.data=C&&typeof C=="object"?C:{},this.stack=""}f.prototype=Error.prototype;function b(z){if(process.env.NODE_ENV!=="production")var C={},V=0;function A($,D,K,re,ie,te,L){if(re=re||h,te=te||K,L!==r){if(c){var I=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 I.name="Invariant Violation",I}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var G=re+":"+K;!C[G]&&V<3&&(a("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+re+"`. 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."),C[G]=!0,V++)}}return D[K]==null?$?D[K]===null?new f("The "+ie+" `"+te+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new f("The "+ie+" `"+te+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:z(D,K,re,ie,te)}var T=A.bind(null,!1);return T.isRequired=A.bind(null,!0),T}function v(z){function C(V,A,T,$,D,K){var re=V[A],ie=W(re);if(ie!==z){var te=le(re);return new f("Invalid "+$+" `"+D+"` of type "+("`"+te+"` supplied to `"+T+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return b(C)}function p(){return b(l)}function _(z){function C(V,A,T,$,D){if(typeof z!="function")return new f("Property `"+D+"` of component `"+T+"` has invalid PropType notation inside arrayOf.");var K=V[A];if(!Array.isArray(K)){var re=W(K);return new f("Invalid "+$+" `"+D+"` of type "+("`"+re+"` supplied to `"+T+"`, expected an array."))}for(var ie=0;ie<K.length;ie++){var te=z(K,ie,T,$,D+"["+ie+"]",r);if(te instanceof Error)return te}return null}return b(C)}function S(){function z(C,V,A,T,$){var D=C[V];if(!s(D)){var K=W(D);return new f("Invalid "+T+" `"+$+"` of type "+("`"+K+"` supplied to `"+A+"`, expected a single ReactElement."))}return null}return b(z)}function w(){function z(C,V,A,T,$){var D=C[V];if(!e.isValidElementType(D)){var K=W(D);return new f("Invalid "+T+" `"+$+"` of type "+("`"+K+"` supplied to `"+A+"`, expected a single ReactElement type."))}return null}return b(z)}function E(z){function C(V,A,T,$,D){if(!(V[A]instanceof z)){var K=z.name||h,re=ue(V[A]);return new f("Invalid "+$+" `"+D+"` of type "+("`"+re+"` supplied to `"+T+"`, expected ")+("instance of `"+K+"`."))}return null}return b(C)}function x(z){if(!Array.isArray(z))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 C(V,A,T,$,D){for(var K=V[A],re=0;re<z.length;re++)if(g(K,z[re]))return null;var ie=JSON.stringify(z,function(L,I){var G=le(I);return G==="symbol"?String(I):I});return new f("Invalid "+$+" `"+D+"` of value `"+String(K)+"` "+("supplied to `"+T+"`, expected one of "+ie+"."))}return b(C)}function P(z){function C(V,A,T,$,D){if(typeof z!="function")return new f("Property `"+D+"` of component `"+T+"` has invalid PropType notation inside objectOf.");var K=V[A],re=W(K);if(re!=="object")return new f("Invalid "+$+" `"+D+"` of type "+("`"+re+"` supplied to `"+T+"`, expected an object."));for(var ie in K)if(n(K,ie)){var te=z(K,ie,T,$,D+"."+ie,r);if(te instanceof Error)return te}return null}return b(C)}function k(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var C=0;C<z.length;C++){var V=z[C];if(typeof V!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ce(V)+" at index "+C+"."),l}function A(T,$,D,K,re){for(var ie=[],te=0;te<z.length;te++){var L=z[te],I=L(T,$,D,K,re,r);if(I==null)return null;I.data&&n(I.data,"expectedType")&&ie.push(I.data.expectedType)}var G=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new f("Invalid "+K+" `"+re+"` supplied to "+("`"+D+"`"+G+"."))}return b(A)}function M(){function z(C,V,A,T,$){return N(C[V])?null:new f("Invalid "+T+" `"+$+"` supplied to "+("`"+A+"`, expected a ReactNode."))}return b(z)}function R(z,C,V,A,T){return new f((z||"React class")+": "+C+" type `"+V+"."+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+T+"`.")}function O(z){function C(V,A,T,$,D){var K=V[A],re=W(K);if(re!=="object")return new f("Invalid "+$+" `"+D+"` of type `"+re+"` "+("supplied to `"+T+"`, expected `object`."));for(var ie in z){var te=z[ie];if(typeof te!="function")return R(T,$,D,ie,le(te));var L=te(K,ie,T,$,D+"."+ie,r);if(L)return L}return null}return b(C)}function q(z){function C(V,A,T,$,D){var K=V[A],re=W(K);if(re!=="object")return new f("Invalid "+$+" `"+D+"` of type `"+re+"` "+("supplied to `"+T+"`, expected `object`."));var ie=t({},V[A],z);for(var te in ie){var L=z[te];if(n(z,te)&&typeof L!="function")return R(T,$,D,te,le(L));if(!L)return new f("Invalid "+$+" `"+D+"` key `"+te+"` supplied to `"+T+"`.\nBad object: "+JSON.stringify(V[A],null," ")+`
|
|
14
|
+
Valid keys: `+JSON.stringify(Object.keys(z),null," "));var I=L(K,te,T,$,D+"."+te,r);if(I)return I}return null}return b(C)}function N(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(N);if(z===null||s(z))return!0;var C=m(z);if(C){var V=C.call(z),A;if(C!==z.entries){for(;!(A=V.next()).done;)if(!N(A.value))return!1}else for(;!(A=V.next()).done;){var T=A.value;if(T&&!N(T[1]))return!1}}else return!1;return!0;default:return!1}}function U(z,C){return z==="symbol"?!0:C?C["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&C instanceof Symbol:!1}function W(z){var C=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":U(C,z)?"symbol":C}function le(z){if(typeof z>"u"||z===null)return""+z;var C=W(z);if(C==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return C}function ce(z){var C=le(z);switch(C){case"array":case"object":return"an "+C;case"boolean":case"date":case"regexp":return"a "+C;default:return C}}function ue(z){return!z.constructor||!z.constructor.name?h:z.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},Vc}var Bc,Wm;function rw(){if(Wm)return Bc;Wm=1;var e=Lc();function t(){}function r(){}return r.resetWarningCache=t,Bc=function(){function n(l,s,c,u,d,m){if(m!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}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},Bc}var Hm;function nw(){if(Hm)return Pi.exports;if(Hm=1,process.env.NODE_ENV!=="production"){var e=qm(),t=!0;Pi.exports=tw()(e.isElement,t)}else Pi.exports=rw()();return Pi.exports}var ow=nw();const o=Ut(ow);function Km(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=Km(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function xe(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Km(e))&&(n&&(n+=" "),n+=t);return n}function Be(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 Gm=0;function iw(e){const[t,r]=j.useState(e),n=e||t;return j.useEffect(()=>{t==null&&(Gm+=1,r(`mui-${Gm}`))},[t]),n}const Ym={...j}.useId;function bn(e){if(Ym!==void 0){const t=Ym();return e??t}return iw(e)}const zt=o.oneOfType([o.func,o.object]);function hr(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 pe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":hr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ri={exports:{}},it={};var Jm;function aw(){if(Jm)return it;Jm=1;var e=Symbol.for("react.transitional.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.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case e:switch(f=f.type,f){case r:case i:case n:case c:case u:case h:return f;default:switch(f=f&&f.$$typeof,f){case l:case s:case m:case d:return f;case a:return f;default:return b}}case t:return b}}}return it.ContextConsumer=a,it.ContextProvider=l,it.Element=e,it.ForwardRef=s,it.Fragment=r,it.Lazy=m,it.Memo=d,it.Portal=t,it.Profiler=i,it.StrictMode=n,it.Suspense=c,it.SuspenseList=u,it.isContextConsumer=function(f){return g(f)===a},it.isContextProvider=function(f){return g(f)===l},it.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},it.isForwardRef=function(f){return g(f)===s},it.isFragment=function(f){return g(f)===r},it.isLazy=function(f){return g(f)===m},it.isMemo=function(f){return g(f)===d},it.isPortal=function(f){return g(f)===t},it.isProfiler=function(f){return g(f)===i},it.isStrictMode=function(f){return g(f)===n},it.isSuspense=function(f){return g(f)===c},it.isSuspenseList=function(f){return g(f)===u},it.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===n||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===d||f.$$typeof===l||f.$$typeof===a||f.$$typeof===s||f.$$typeof===y||f.getModuleId!==void 0)},it.typeOf=g,it}var at={};var Xm;function sw(){return Xm||(Xm=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case t:switch(f=f.type,f){case n:case a:case i:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case s:case c:case h:case m:return f;case l:return f;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.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.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");at.ContextConsumer=l,at.ContextProvider=s,at.Element=t,at.ForwardRef=c,at.Fragment=n,at.Lazy=h,at.Memo=m,at.Portal=r,at.Profiler=a,at.StrictMode=i,at.Suspense=u,at.SuspenseList=d,at.isContextConsumer=function(f){return e(f)===l},at.isContextProvider=function(f){return e(f)===s},at.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},at.isForwardRef=function(f){return e(f)===c},at.isFragment=function(f){return e(f)===n},at.isLazy=function(f){return e(f)===h},at.isMemo=function(f){return e(f)===m},at.isPortal=function(f){return e(f)===r},at.isProfiler=function(f){return e(f)===a},at.isStrictMode=function(f){return e(f)===i},at.isSuspense=function(f){return e(f)===u},at.isSuspenseList=function(f){return e(f)===d},at.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===a||f===i||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===m||f.$$typeof===s||f.$$typeof===l||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},at.typeOf=e})()),at}var Zm;function lw(){return Zm||(Zm=1,process.env.NODE_ENV==="production"?Ri.exports=aw():Ri.exports=sw()),Ri.exports}var ki=lw();function mr(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 Qm(e){if(j.isValidElement(e)||ki.isValidElementType(e)||!mr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Qm(e[r])}),t}function kt(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return mr(e)&&mr(t)&&Object.keys(t).forEach(i=>{j.isValidElement(t[i])||ki.isValidElementType(t[i])?n[i]=t[i]:mr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&mr(e[i])?n[i]=kt(e[i],t[i],r):r.clone?n[i]=mr(t[i])?Qm(t[i]):t[i]:n[i]=t[i]}),n}function Wn(e,t){return t?kt(e,t,{clone:!1}):e}const Fr=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function ey(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(i.match(a)?.[1]||0)});return r.length?r.reduce((n,i)=>{const a=t[i];return delete n[i],n[i]=a,n},{...t}):t}function cw(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function uw(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>\`.
|
|
15
15
|
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:hr(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function dw(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 Ii={xs:0,sm:600,md:900,lg:1200,xl:1536},ty={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ii[e]}px)`},fw={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Ii[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function $r(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||ty;return t.reduce((l,s,c)=>(l[a.up(a.keys[c])]=r(t[c]),l),{})}if(typeof t=="object"){const a=n.breakpoints||ty;return Object.keys(t).reduce((l,s)=>{if(cw(a.keys,s)){const c=uw(n.containerQueries?n:fw,s);c&&(l[c]=r(t[s],s))}else if(Object.keys(a.values||Ii).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 pw(e={}){return e.keys?.reduce((r,n)=>{const i=e.up(n);return r[i]={},r},{})||{}}function ry(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function ji(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 Ni(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=ji(e,r)||n,t&&(i=t(i,n,e)),i}function wt(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=ji(c,n)||{};return $r(l,s,m=>{let h=Ni(u,i,m);return m===h&&typeof m=="string"&&(h=Ni(u,i,`${t}${m==="default"?"":pe(m)}`,m)),r===!1?h:{[r]:h}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Fr}:{},a.filterProps=[t],a}function hw(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const mw={m:"margin",p:"padding"},yw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ny={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gw=hw(e=>{if(e.length>2)if(ny[e])e=ny[e];else return[e];const[t,r]=e.split(""),n=mw[t],i=yw[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Ai=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Mi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],vw=[...Ai,...Mi];function Hn(e,t,r,n){const i=ji(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"?i.startsWith("var(")&&a===0?0:i.startsWith("var(")&&a===1?i:`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(`
|
|
16
16
|
`)):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(`
|
|
17
17
|
`)));const s=i[l];return a>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${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(`
|
|
18
18
|
`)),()=>{})}function Uc(e){return Hn(e,"spacing",8,"spacing")}function Kn(e,t){return typeof t=="string"||t==null?t:e(t)}function bw(e,t){return r=>e.reduce((n,i)=>(n[i]=Kn(t,r),n),{})}function _w(e,t,r,n){if(!t.includes(r))return null;const i=gw(r),a=bw(i,n),l=e[r];return $r(e,l,a)}function oy(e,t){const r=Uc(e.theme);return Object.keys(e).map(n=>_w(e,t,n,r)).reduce(Wn,{})}function vt(e){return oy(e,Ai)}vt.propTypes=process.env.NODE_ENV!=="production"?Ai.reduce((e,t)=>(e[t]=Fr,e),{}):{},vt.filterProps=Ai;function bt(e){return oy(e,Mi)}bt.propTypes=process.env.NODE_ENV!=="production"?Mi.reduce((e,t)=>(e[t]=Fr,e),{}):{},bt.filterProps=Mi,process.env.NODE_ENV!=="production"&&vw.reduce((e,t)=>(e[t]=Fr,e),{});function Di(...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]?Wn(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 Zt(e){return typeof e!="number"?e:`${e}px solid`}function Qt(e,t){return wt({prop:e,themeKey:"borders",transform:t})}const ww=Qt("border",Zt),Sw=Qt("borderTop",Zt),Ew=Qt("borderRight",Zt),Ow=Qt("borderBottom",Zt),xw=Qt("borderLeft",Zt),Cw=Qt("borderColor"),Tw=Qt("borderTopColor"),Pw=Qt("borderRightColor"),$w=Qt("borderBottomColor"),Rw=Qt("borderLeftColor"),kw=Qt("outline",Zt),Iw=Qt("outlineColor"),qi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Hn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Kn(t,n)});return $r(e,e.borderRadius,r)}return null};qi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Fr}:{},qi.filterProps=["borderRadius"],Di(ww,Sw,Ew,Ow,xw,Cw,Tw,Pw,$w,Rw,qi,kw,Iw);const Li=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Hn(e.theme,"spacing",8,"gap"),r=n=>({gap:Kn(t,n)});return $r(e,e.gap,r)}return null};Li.propTypes=process.env.NODE_ENV!=="production"?{gap:Fr}:{},Li.filterProps=["gap"];const Fi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Hn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Kn(t,n)});return $r(e,e.columnGap,r)}return null};Fi.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Fr}:{},Fi.filterProps=["columnGap"];const zi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Hn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Kn(t,n)});return $r(e,e.rowGap,r)}return null};zi.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Fr}:{},zi.filterProps=["rowGap"];const jw=wt({prop:"gridColumn"}),Nw=wt({prop:"gridRow"}),Aw=wt({prop:"gridAutoFlow"}),Mw=wt({prop:"gridAutoColumns"}),Dw=wt({prop:"gridAutoRows"}),qw=wt({prop:"gridTemplateColumns"}),Lw=wt({prop:"gridTemplateRows"}),Fw=wt({prop:"gridTemplateAreas"}),zw=wt({prop:"gridArea"});Di(Li,Fi,zi,jw,Nw,Aw,Mw,Dw,qw,Lw,Fw,zw);function _n(e,t){return t==="grey"?t:e}const Vw=wt({prop:"color",themeKey:"palette",transform:_n}),Bw=wt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_n}),Uw=wt({prop:"backgroundColor",themeKey:"palette",transform:_n});Di(Vw,Bw,Uw);function Ht(e){return e<=1&&e!==0?`${e*100}%`:e}const Ww=wt({prop:"width",transform:Ht}),Wc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Ii[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Ht(r)}};return $r(e,e.maxWidth,t)}return null};Wc.filterProps=["maxWidth"];const Hw=wt({prop:"minWidth",transform:Ht}),Kw=wt({prop:"height",transform:Ht}),Gw=wt({prop:"maxHeight",transform:Ht}),Yw=wt({prop:"minHeight",transform:Ht});wt({prop:"size",cssProperty:"width",transform:Ht}),wt({prop:"size",cssProperty:"height",transform:Ht});const Jw=wt({prop:"boxSizing"});Di(Ww,Wc,Hw,Kw,Gw,Yw,Jw);const Gn={border:{themeKey:"borders",transform:Zt},borderTop:{themeKey:"borders",transform:Zt},borderRight:{themeKey:"borders",transform:Zt},borderBottom:{themeKey:"borders",transform:Zt},borderLeft:{themeKey:"borders",transform:Zt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qi},color:{themeKey:"palette",transform:_n},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_n},backgroundColor:{themeKey:"palette",transform:_n},p:{style:bt},pt:{style:bt},pr:{style:bt},pb:{style:bt},pl:{style:bt},px:{style:bt},py:{style:bt},padding:{style:bt},paddingTop:{style:bt},paddingRight:{style:bt},paddingBottom:{style:bt},paddingLeft:{style:bt},paddingX:{style:bt},paddingY:{style:bt},paddingInline:{style:bt},paddingInlineStart:{style:bt},paddingInlineEnd:{style:bt},paddingBlock:{style:bt},paddingBlockStart:{style:bt},paddingBlockEnd:{style:bt},m:{style:vt},mt:{style:vt},mr:{style:vt},mb:{style:vt},ml:{style:vt},mx:{style:vt},my:{style:vt},margin:{style:vt},marginTop:{style:vt},marginRight:{style:vt},marginBottom:{style:vt},marginLeft:{style:vt},marginX:{style:vt},marginY:{style:vt},marginInline:{style:vt},marginInlineStart:{style:vt},marginInlineEnd:{style:vt},marginBlock:{style:vt},marginBlockStart:{style:vt},marginBlockEnd:{style:vt},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:Li},rowGap:{style:zi},columnGap:{style:Fi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ht},maxWidth:{style:Wc},minWidth:{transform:Ht},height:{transform:Ht},maxHeight:{transform:Ht},minHeight:{transform:Ht},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Xw(...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 Zw(e,t){return typeof e=="function"?e(t):e}function Qw(){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:d,style:m}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const h=ji(i,u)||{};return m?m(l):$r(l,n,g=>{let f=Ni(h,d,g);return g===f&&typeof g=="string"&&(f=Ni(h,d,`${r}${g==="default"?"":pe(g)}`,g)),c===!1?f:{[c]:f}})}function t(r){const{sx:n,theme:i={},nested:a}=r||{};if(!n)return null;const l=i.unstable_sxConfig??Gn;function s(c){let u=c;if(typeof c=="function")u=c(i);else if(typeof c!="object")return c;if(!u)return null;const d=pw(i.breakpoints),m=Object.keys(d);let h=d;return Object.keys(u).forEach(y=>{const g=Zw(u[y],i);if(g!=null)if(typeof g=="object")if(l[y])h=Wn(h,e(y,g,i,l));else{const f=$r({theme:i},g,b=>({[y]:b}));Xw(f,g)?h[y]=t({sx:g,theme:i,nested:!0}):h=Wn(h,f)}else h=Wn(h,e(y,g,i,l))}),!a&&i.modularCssLayers?{"@layer sx":ey(i,ry(m,h))}:ey(i,ry(m,h))}return Array.isArray(n)?n.map(s):s(n)}return t}const wn=Qw();wn.filterProps=["sx"];const eS=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??Gn;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function tS(e){const{sx:t,...r}=e,{systemProps:n,otherProps:i}=eS(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...l)=>{const s=t(...l);return mr(s)?{...n,...s}:n}:a={...n,...t},{...i,sx:a}}function rS(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 nS={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 oS(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var iS=/[A-Z]|^ms/g,aS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,iy=function(t){return t.charCodeAt(1)===45},ay=function(t){return t!=null&&typeof t!="boolean"},Hc=oS(function(e){return iy(e)?e:e.replace(iS,"-$&").toLowerCase()}),sy=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(aS,function(n,i,a){return zr={name:i,styles:a,next:zr},i})}return nS[t]!==1&&!iy(t)&&typeof r=="number"&&r!==0?r+"px":r};function Vi(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 zr={name:i.name,styles:i.styles,next:zr},i.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)zr={name:l.name,styles:l.styles,next:zr},l=l.next;var s=a.styles+";";return s}return sS(e,t,r)}}var c=r;return c}function sS(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Vi(e,t,r[i])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var s=l;ay(s)&&(n+=Hc(a)+":"+sy(a,s)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var c=0;c<l.length;c++)ay(l[c])&&(n+=Hc(a)+":"+sy(a,l[c])+";");else{var u=Vi(e,t,l);switch(a){case"animation":case"animationName":{n+=Hc(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}var ly=/label:\s*([^\s;{]+)\s*(;|$)/g,zr;function lS(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="";zr=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=Vi(r,t,a);else{var l=a;i+=l[0]}for(var s=1;s<e.length;s++)if(i+=Vi(r,t,e[s]),n){var c=a;i+=c[s]}ly.lastIndex=0;for(var u="",d;(d=ly.exec(i))!==null;)u+="-"+d[1];var m=rS(i)+u;return{name:m,styles:i,next:zr}}function cS(e){return e==null||Object.keys(e).length===0}function cy(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(cS(i)?r:i):t;return F.jsx(Or.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(cy.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function uS(e,t){const r=Yv(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(`
|
|
19
|
-
`)):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 dS(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const uy=[];function Vr(e){return uy[0]=e,lS(uy)}const fS=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 pS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,a=fS(t),l=Object.keys(a);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function u(h,y){const g=l.indexOf(y);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(g!==-1&&typeof t[l[g]]=="number"?t[l[g]]:y)-n/100}${r})`}function d(h){return l.indexOf(h)+1<l.length?u(h,l[l.indexOf(h)+1]):s(h)}function m(h){const y=l.indexOf(h);return y===0?s(l[1]):y===l.length-1?c(l[y]):u(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:s,down:c,between:u,only:d,not:m,unit:r,...i}}const hS={borderRadius:4};function dy(e=8,t=Uc({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 mS(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Kc(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={},...l}=e,s=pS(r),c=dy(i);let u=kt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...hS,...a}},l);return u=dw(u),u.applyStyles=mS,u=t.reduce((d,m)=>kt(d,m),u),u.unstable_sxConfig={...Gn,...l?.unstable_sxConfig},u.unstable_sx=function(m){return wn({sx:m,theme:this})},u}function yS(e){return Object.keys(e).length===0}function gS(e=null){const t=
|
|
19
|
+
`)):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 dS(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const uy=[];function Vr(e){return uy[0]=e,lS(uy)}const fS=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 pS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,a=fS(t),l=Object.keys(a);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function u(h,y){const g=l.indexOf(y);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(g!==-1&&typeof t[l[g]]=="number"?t[l[g]]:y)-n/100}${r})`}function d(h){return l.indexOf(h)+1<l.length?u(h,l[l.indexOf(h)+1]):s(h)}function m(h){const y=l.indexOf(h);return y===0?s(l[1]):y===l.length-1?c(l[y]):u(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:s,down:c,between:u,only:d,not:m,unit:r,...i}}const hS={borderRadius:4};function dy(e=8,t=Uc({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 mS(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Kc(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={},...l}=e,s=pS(r),c=dy(i);let u=kt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...hS,...a}},l);return u=dw(u),u.applyStyles=mS,u=t.reduce((d,m)=>kt(d,m),u),u.unstable_sxConfig={...Gn,...l?.unstable_sxConfig},u.unstable_sx=function(m){return wn({sx:m,theme:this})},u}function yS(e){return Object.keys(e).length===0}function gS(e=null){const t=j.useContext(Or.ThemeContext);return!t||yS(t)?e:t}const vS=Kc();function fy(e=vS){return gS(e)}function Gc(e){const t=Vr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function py({styles:e,themeId:t,defaultTheme:r={}}){const n=fy(r),i=t&&n[t]||n;let a=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(a)?a=a.map(l=>Gc(typeof l=="function"?l(i):l)):a=Gc(a)),F.jsx(cy,{styles:a})}process.env.NODE_ENV!=="production"&&(py.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const hy=e=>e,bS=(()=>{let e=hy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=hy}}})(),_S={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 Fe(e,t,r="Mui"){const n=_S[t];return n?`${r}-${n}`:`${bS.generate(e)}-${t}`}function Le(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Fe(e,i,r)}),n}function my(e,t=""){return e.displayName||e.name||t}function yy(e,t,r){const n=my(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function wS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return my(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ki.ForwardRef:return yy(e,e.render,"ForwardRef");case ki.Memo:return yy(e,e.type,"memo");default:return}}}function gy(e){const{variants:t,...r}=e,n={variants:t,style:Vr(r),isProcessed:!0};return n.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Vr(i.style))}),n}const SS=Kc();function Yc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function rn(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function ES(e){return e?(t,r)=>r[e]:null}function OS(e,t,r){e.theme=TS(e.theme)?r:e.theme[t]||e.theme}function Bi(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(i=>Bi(e,i,r));if(Array.isArray(n?.variants)){let i;if(n.isProcessed)i=r?rn(n.style,r):n.style;else{const{variants:a,...l}=n;i=r?rn(Vr(l),r):l}return vy(e,n.variants,[i],r)}return n?.isProcessed?r?rn(Vr(n.style),r):n.style:r?rn(Vr(n),r):n}function vy(e,t,r=[],n=void 0){let i;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(i))continue}else for(const s in l.props)if(e[s]!==l.props[s]&&e.ownerState?.[s]!==l.props[s])continue e;typeof l.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?rn(Vr(l.style(i)),n):l.style(i))):r.push(n?rn(Vr(l.style),n):l.style)}return r}function by(e={}){const{themeId:t,defaultTheme:r=SS,rootShouldForwardProp:n=Yc,slotShouldForwardProp:i=Yc}=e;function a(s){OS(s,t,r)}return(s,c={})=>{dS(s,E=>E.filter(x=>x!==wn));const{name:u,slot:d,skipVariantsResolver:m,skipSx:h,overridesResolver:y=ES(_y(d)),...g}=c,f=u&&u.startsWith("Mui")||d?"components":"custom",b=m!==void 0?m:d&&d!=="Root"&&d!=="root"||!1,v=h||!1;let p=Yc;d==="Root"||d==="root"?p=n:d?p=i:PS(s)&&(p=void 0);const _=uS(s,{shouldForwardProp:p,label:CS(u,d),...g}),S=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(P){return Bi(P,E,P.theme.modularCssLayers?f:void 0)};if(mr(E)){const x=gy(E);return function(k){return x.variants?Bi(k,x,k.theme.modularCssLayers?f:void 0):k.theme.modularCssLayers?rn(x.style,f):x.style}}return E},w=(...E)=>{const x=[],P=E.map(S),k=[];if(x.push(a),u&&y&&k.push(function(q){const U=q.theme.components?.[u]?.styleOverrides;if(!U)return null;const W={};for(const le in U)W[le]=Bi(q,U[le],q.theme.modularCssLayers?"theme":void 0);return y(q,W)}),u&&!b&&k.push(function(q){const U=q.theme?.components?.[u]?.variants;return U?vy(q,U,[],q.theme.modularCssLayers?"theme":void 0):null}),v||k.push(wn),Array.isArray(P[0])){const O=P.shift(),q=new Array(x.length).fill(""),N=new Array(k.length).fill("");let U;U=[...q,...O,...N],U.raw=[...q,...O.raw,...N],x.unshift(U)}const M=[...x,...P,...k],R=_(...M);return s.muiName&&(R.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(R.displayName=xS(u,d,s)),R};return _.withConfig&&(w.withConfig=_.withConfig),w}}function xS(e,t,r){return e?`${e}${pe(t||"")}`:`Styled(${wS(r)})`}function CS(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${_y(t||"Root")}`),r}function TS(e){for(const t in e)return!1;return!0}function PS(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _y(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Ui=by();function Wi(e,t,r=!1){const n={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=i;if(a==="components"||a==="slots")n[a]={...e[a],...n[a]};else if(a==="componentsProps"||a==="slotProps"){const l=e[a],s=t[a];if(!s)n[a]=l||{};else if(!l)n[a]=s;else{n[a]={...s};for(const c in l)if(Object.prototype.hasOwnProperty.call(l,c)){const u=c;n[a][u]=Wi(l[u],s[u],r)}}}else a==="className"&&r&&t.className?n.className=xe(e?.className,t?.className):a==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[a]===void 0&&(n[a]=e[a])}return n}const yr=typeof window<"u"?j.useLayoutEffect:j.useEffect;function $S(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Jc(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}].`),$S(e,t,r)}function RS(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)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),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 Br(e){if(e.type)return e;if(e.charAt(0)==="#")return Br(RS(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.
|
|
20
20
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:hr(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.
|
|
21
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:hr(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const kS=e=>{const t=Br(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Yn=(e,t)=>{try{return kS(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Hi(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 wy(e){e=Br(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,d=(u+r/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,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])),Hi({type:s,values:c})}function Xc(e){e=Br(e);let t=e.type==="hsl"||e.type==="hsla"?Br(wy(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 Sy(e,t){const r=Xc(e),n=Xc(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ki(e,t){return e=Br(e),t=Jc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Hi(e)}function nn(e,t,r){try{return Ki(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Gi(e,t){if(e=Br(e),t=Jc(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 Hi(e)}function rt(e,t,r){try{return Gi(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Yi(e,t){if(e=Br(e),t=Jc(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 Hi(e)}function nt(e,t,r){try{return Yi(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function IS(e,t=.15){return Xc(e)>.5?Gi(e,t):Yi(e,t)}function Ji(e,t,r){try{return IS(e,t)}catch{return e}}const jS="exact-prop: ";function Ey(e){return process.env.NODE_ENV==="production"?e:{...e,[jS]: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}}}const NS=A.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const Oy=()=>A.useContext(NS)??!1,AS=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function MS(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?Wi(i.defaultProps,n,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Wi(i,n,t.components.mergeClassNameAndStyle):n}function DS({props:e,name:t}){const r=A.useContext(AS);return MS({props:e,name:t,theme:{components:r}})}const xy={theme:void 0};function qS(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&(xy.theme=i.theme,a=gy(e(xy)),t=a,r=i.theme),a}}function LS(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 Cy=(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])})},FS=(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)},zS=(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 Zc(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},l={};return FS(e,(s,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(s,c))){const d=`--${r?`${r}-`:""}${s.join("-")}`,m=zS(s,c);Object.assign(i,{[d]:m}),Cy(a,s,`var(${d})`,u),Cy(l,s,`var(${d}, ${m})`,u)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:l}}function VS(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:l={},components:s,defaultColorScheme:c="light",...u}=e,{vars:d,css:m,varsWithDefaults:h}=Zc(u,t);let y=h;const g={},{[c]:f,...b}=l;if(Object.entries(b||{}).forEach(([S,w])=>{const{vars:E,css:x,varsWithDefaults:P}=Zc(w,t);y=kt(y,P),g[S]={css:x,vars:E}}),f){const{css:S,vars:w,varsWithDefaults:E}=Zc(f,t);y=kt(y,E),g[c]={css:S,vars:w}}function v(S,w){let E=i;if(i==="class"&&(E=".%s"),i==="data"&&(E="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(E=`[${i}="%s"]`),S){if(E==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${l[S]?.palette?.mode||S})`]:{":root":w}};if(E)return e.defaultColorScheme===S?`:root, ${E.replace("%s",String(S))}`:E.replace("%s",String(S))}return":root"}return{vars:y,generateThemeVars:()=>{let S={...d};return Object.entries(g).forEach(([,{vars:w}])=>{S=kt(S,w)}),S},generateStyleSheets:()=>{const S=[],w=e.defaultColorScheme||"light";function E(k,j){Object.keys(j).length&&S.push(typeof k=="string"?{[k]:{...j}}:k)}E(r(void 0,{...m}),m);const{[w]:x,...P}=g;if(x){const{css:k}=x,j=l[w]?.palette?.mode,R=!n&&j?{colorScheme:j,...k}:{...k};E(r(w,{...R}),R)}return Object.entries(P).forEach(([k,{css:j}])=>{const R=l[k]?.palette?.mode,O=!n&&R?{colorScheme:R,...j}:{...j};E(r(k,{...O}),O)}),a&&S.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),S}}}function BS(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)} &`:"&"}}function Qc(e,t){return A.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const Jn={black:"#000",white:"#fff"},US={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"},Sn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},En={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Xn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},On={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},xn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Cn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ty(){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:Jn.white,default:Jn.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 Py=Ty();function $y(){return{text:{primary:Jn.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:Jn.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 eu=$y();function Ry(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=Yi(e.main,i):t==="dark"&&(e.dark=Gi(e.main,a)))}function ky(e,t,r,n,i){const a=i.light||i,l=i.dark||i*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(l*100).toFixed(0)}%)`))}function WS(e="light"){return e==="dark"?{main:On[200],light:On[50],dark:On[400]}:{main:On[700],light:On[400],dark:On[800]}}function HS(e="light"){return e==="dark"?{main:Sn[200],light:Sn[50],dark:Sn[400]}:{main:Sn[500],light:Sn[300],dark:Sn[700]}}function KS(e="light"){return e==="dark"?{main:En[500],light:En[300],dark:En[700]}:{main:En[700],light:En[400],dark:En[800]}}function GS(e="light"){return e==="dark"?{main:xn[400],light:xn[300],dark:xn[700]}:{main:xn[700],light:xn[500],dark:xn[900]}}function YS(e="light"){return e==="dark"?{main:Cn[400],light:Cn[300],dark:Cn[700]}:{main:Cn[800],light:Cn[500],dark:Cn[900]}}function JS(e="light"){return e==="dark"?{main:Xn[400],light:Xn[300],dark:Xn[700]}:{main:"#ed6c02",light:Xn[500],dark:Xn[900]}}function XS(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function tu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:i,...a}=e,l=e.primary||WS(t),s=e.secondary||HS(t),c=e.error||KS(t),u=e.info||GS(t),d=e.success||YS(t),m=e.warning||JS(t);function h(b){if(i)return XS(b);const v=Sy(b,eu.text.primary)>=r?eu.text.primary:Py.text.primary;if(process.env.NODE_ENV!=="production"){const p=Sy(b,v);p<3&&console.error([`MUI: The contrast ratio of ${p}:1 for ${v} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
21
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:hr(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const kS=e=>{const t=Br(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Yn=(e,t)=>{try{return kS(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Hi(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 wy(e){e=Br(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,d=(u+r/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,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])),Hi({type:s,values:c})}function Xc(e){e=Br(e);let t=e.type==="hsl"||e.type==="hsla"?Br(wy(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 Sy(e,t){const r=Xc(e),n=Xc(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ki(e,t){return e=Br(e),t=Jc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Hi(e)}function nn(e,t,r){try{return Ki(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Gi(e,t){if(e=Br(e),t=Jc(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 Hi(e)}function rt(e,t,r){try{return Gi(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Yi(e,t){if(e=Br(e),t=Jc(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 Hi(e)}function nt(e,t,r){try{return Yi(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function IS(e,t=.15){return Xc(e)>.5?Gi(e,t):Yi(e,t)}function Ji(e,t,r){try{return IS(e,t)}catch{return e}}const jS="exact-prop: ";function Ey(e){return process.env.NODE_ENV==="production"?e:{...e,[jS]: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}}}const NS=j.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const Oy=()=>j.useContext(NS)??!1,AS=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function MS(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?Wi(i.defaultProps,n,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Wi(i,n,t.components.mergeClassNameAndStyle):n}function DS({props:e,name:t}){const r=j.useContext(AS);return MS({props:e,name:t,theme:{components:r}})}const xy={theme:void 0};function qS(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&(xy.theme=i.theme,a=gy(e(xy)),t=a,r=i.theme),a}}function LS(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 Cy=(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])})},FS=(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)},zS=(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 Zc(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},l={};return FS(e,(s,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(s,c))){const d=`--${r?`${r}-`:""}${s.join("-")}`,m=zS(s,c);Object.assign(i,{[d]:m}),Cy(a,s,`var(${d})`,u),Cy(l,s,`var(${d}, ${m})`,u)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:l}}function VS(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:l={},components:s,defaultColorScheme:c="light",...u}=e,{vars:d,css:m,varsWithDefaults:h}=Zc(u,t);let y=h;const g={},{[c]:f,...b}=l;if(Object.entries(b||{}).forEach(([S,w])=>{const{vars:E,css:x,varsWithDefaults:P}=Zc(w,t);y=kt(y,P),g[S]={css:x,vars:E}}),f){const{css:S,vars:w,varsWithDefaults:E}=Zc(f,t);y=kt(y,E),g[c]={css:S,vars:w}}function v(S,w){let E=i;if(i==="class"&&(E=".%s"),i==="data"&&(E="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(E=`[${i}="%s"]`),S){if(E==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${l[S]?.palette?.mode||S})`]:{":root":w}};if(E)return e.defaultColorScheme===S?`:root, ${E.replace("%s",String(S))}`:E.replace("%s",String(S))}return":root"}return{vars:y,generateThemeVars:()=>{let S={...d};return Object.entries(g).forEach(([,{vars:w}])=>{S=kt(S,w)}),S},generateStyleSheets:()=>{const S=[],w=e.defaultColorScheme||"light";function E(k,M){Object.keys(M).length&&S.push(typeof k=="string"?{[k]:{...M}}:k)}E(r(void 0,{...m}),m);const{[w]:x,...P}=g;if(x){const{css:k}=x,M=l[w]?.palette?.mode,R=!n&&M?{colorScheme:M,...k}:{...k};E(r(w,{...R}),R)}return Object.entries(P).forEach(([k,{css:M}])=>{const R=l[k]?.palette?.mode,O=!n&&R?{colorScheme:R,...M}:{...M};E(r(k,{...O}),O)}),a&&S.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),S}}}function BS(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)} &`:"&"}}function Qc(e,t){return j.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const Jn={black:"#000",white:"#fff"},US={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"},Sn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},En={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Xn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},On={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},xn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Cn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ty(){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:Jn.white,default:Jn.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 Py=Ty();function $y(){return{text:{primary:Jn.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:Jn.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 eu=$y();function Ry(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=Yi(e.main,i):t==="dark"&&(e.dark=Gi(e.main,a)))}function ky(e,t,r,n,i){const a=i.light||i,l=i.dark||i*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(l*100).toFixed(0)}%)`))}function WS(e="light"){return e==="dark"?{main:On[200],light:On[50],dark:On[400]}:{main:On[700],light:On[400],dark:On[800]}}function HS(e="light"){return e==="dark"?{main:Sn[200],light:Sn[50],dark:Sn[400]}:{main:Sn[500],light:Sn[300],dark:Sn[700]}}function KS(e="light"){return e==="dark"?{main:En[500],light:En[300],dark:En[700]}:{main:En[700],light:En[400],dark:En[800]}}function GS(e="light"){return e==="dark"?{main:xn[400],light:xn[300],dark:xn[700]}:{main:xn[700],light:xn[500],dark:xn[900]}}function YS(e="light"){return e==="dark"?{main:Cn[400],light:Cn[300],dark:Cn[700]}:{main:Cn[800],light:Cn[500],dark:Cn[900]}}function JS(e="light"){return e==="dark"?{main:Xn[400],light:Xn[300],dark:Xn[700]}:{main:"#ed6c02",light:Xn[500],dark:Xn[900]}}function XS(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function tu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:i,...a}=e,l=e.primary||WS(t),s=e.secondary||HS(t),c=e.error||KS(t),u=e.info||GS(t),d=e.success||YS(t),m=e.warning||JS(t);function h(b){if(i)return XS(b);const v=Sy(b,eu.text.primary)>=r?eu.text.primary:Py.text.primary;if(process.env.NODE_ENV!=="production"){const p=Sy(b,v);p<3&&console.error([`MUI: The contrast ratio of ${p}:1 for ${v} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
22
22
|
`))}return v}const y=({color:b,name:v,mainShade:p=500,lightShade:_=300,darkShade:S=700})=>{if(b={...b},!b.main&&b[p]&&(b.main=b[p]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
23
23
|
The color object needs to have a \`main\` property or a \`${p}\` property.`:hr(11,v?` (${v})`:"",p));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
24
24
|
\`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
|
|
@@ -42,31 +42,31 @@ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
|
42
42
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
43
43
|
|
|
44
44
|
export default theme;`}function My(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const fE=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function pE(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Ki(t,fE(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${My(r)})`:Yi(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${My(r)})`:Gi(t,r)}})}function ru(e={},...t){const{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:l={},typography:s={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":hr(20));const m=tu({...a,colorSpace:u}),h=Kc(e);let y=kt(h,{mixins:QS(h.breakpoints,n),palette:m,shadows:iE.slice(),typography:tE(m,s),transitions:cE(l),zIndex:{...uE}});if(y=kt(y,d),y=t.reduce((g,f)=>kt(g,f),y),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(b,v)=>{let p;for(p in b){const _=b[p];if(g.includes(p)&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const S=Fe("",p);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${p}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
45
|
-
`))}b[p]={}}}};Object.keys(y.components).forEach(b=>{const v=y.components[b].styleOverrides;v&&b.startsWith("Mui")&&f(v,b)})}return y.unstable_sxConfig={...Gn,...d?.unstable_sxConfig},y.unstable_sx=function(f){return wn({sx:f,theme:this})},y.toRuntimeSource=Ay,pE(y),y}function nu(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 hE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=nu(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Dy(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function qy(e){return e==="dark"?hE:[]}function mE(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:i,...a}=e,l=tu({...t,colorSpace:i});return{palette:l,opacity:{...Dy(l.mode),...r},overlays:n||qy(l.mode),...a}}function yE(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const gE=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],vE=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?.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return gE(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 bE(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function
|
|
46
|
-
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 _E(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const gr=e=>{try{return e()}catch{}},wE=(e="mui")=>LS(e);function ou(e,t,r,n,i){if(!r)return;r=r===!0?{}:r;const a=i==="dark"?"dark":"light";if(!n){t[i]=mE({...r,palette:{mode:a,...r?.palette},colorSpace:e});return}const{palette:l,...s}=ru({...n,palette:{mode:a,...r?.palette},colorSpace:e});return t[i]={...r,palette:l,opacity:{...Dy(a),...r?.opacity},overlays:r?.overlays||qy(a)},s}function SE(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",nativeColor:l=!1,shouldSkipGeneratingVar:s=yE,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...d}=e,m=Object.keys(r)[0],h=n||(r.light&&m!=="light"?"light":m),y=wE(a),{[h]:g,light:f,dark:b,...v}=r,p={...v};let _=g;if((h==="dark"&&!("dark"in r)||h==="light"&&!("light"in r))&&(_=!0),!_)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:hr(21,h));let S;l&&(S="oklch");const w=ou(S,p,_,d,h);f&&!p.light&&ou(S,p,f,void 0,"light"),b&&!p.dark&&ou(S,p,b,void 0,"dark");let E={defaultColorScheme:h,...w,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:u,getCssVar:y,colorSchemes:p,font:{...ZS(w.typography),...w.font},spacing:_E(d.spacing)};Object.keys(E.colorSchemes).forEach(R=>{const O=E.colorSchemes[R].palette,D=U=>{const W=U.split("-"),le=W[1],ce=W[2];return y(U,O[le][ce])};O.mode==="light"&&(ne(O.common,"background","#fff"),ne(O.common,"onBackground","#000")),O.mode==="dark"&&(ne(O.common,"background","#000"),ne(O.common,"onBackground","#fff"));function N(U,W,le){if(S){let ce;return U===nn&&(ce=`transparent ${((1-le)*100).toFixed(0)}%`),U===rt&&(ce=`#000 ${(le*100).toFixed(0)}%`),U===nt&&(ce=`#fff ${(le*100).toFixed(0)}%`),`color-mix(in ${S}, ${W}, ${ce})`}return U(W,le)}if(bE(O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),O.mode==="light"){ne(O.Alert,"errorColor",N(rt,O.error.light,.6)),ne(O.Alert,"infoColor",N(rt,O.info.light,.6)),ne(O.Alert,"successColor",N(rt,O.success.light,.6)),ne(O.Alert,"warningColor",N(rt,O.warning.light,.6)),ne(O.Alert,"errorFilledBg",D("palette-error-main")),ne(O.Alert,"infoFilledBg",D("palette-info-main")),ne(O.Alert,"successFilledBg",D("palette-success-main")),ne(O.Alert,"warningFilledBg",D("palette-warning-main")),ne(O.Alert,"errorFilledColor",gr(()=>O.getContrastText(O.error.main))),ne(O.Alert,"infoFilledColor",gr(()=>O.getContrastText(O.info.main))),ne(O.Alert,"successFilledColor",gr(()=>O.getContrastText(O.success.main))),ne(O.Alert,"warningFilledColor",gr(()=>O.getContrastText(O.warning.main))),ne(O.Alert,"errorStandardBg",N(nt,O.error.light,.9)),ne(O.Alert,"infoStandardBg",N(nt,O.info.light,.9)),ne(O.Alert,"successStandardBg",N(nt,O.success.light,.9)),ne(O.Alert,"warningStandardBg",N(nt,O.warning.light,.9)),ne(O.Alert,"errorIconColor",D("palette-error-main")),ne(O.Alert,"infoIconColor",D("palette-info-main")),ne(O.Alert,"successIconColor",D("palette-success-main")),ne(O.Alert,"warningIconColor",D("palette-warning-main")),ne(O.AppBar,"defaultBg",D("palette-grey-100")),ne(O.Avatar,"defaultBg",D("palette-grey-400")),ne(O.Button,"inheritContainedBg",D("palette-grey-300")),ne(O.Button,"inheritContainedHoverBg",D("palette-grey-A100")),ne(O.Chip,"defaultBorder",D("palette-grey-400")),ne(O.Chip,"defaultAvatarColor",D("palette-grey-700")),ne(O.Chip,"defaultIconColor",D("palette-grey-700")),ne(O.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ne(O.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ne(O.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ne(O.LinearProgress,"primaryBg",N(nt,O.primary.main,.62)),ne(O.LinearProgress,"secondaryBg",N(nt,O.secondary.main,.62)),ne(O.LinearProgress,"errorBg",N(nt,O.error.main,.62)),ne(O.LinearProgress,"infoBg",N(nt,O.info.main,.62)),ne(O.LinearProgress,"successBg",N(nt,O.success.main,.62)),ne(O.LinearProgress,"warningBg",N(nt,O.warning.main,.62)),ne(O.Skeleton,"bg",S?N(nn,O.text.primary,.11):`rgba(${D("palette-text-primaryChannel")} / 0.11)`),ne(O.Slider,"primaryTrack",N(nt,O.primary.main,.62)),ne(O.Slider,"secondaryTrack",N(nt,O.secondary.main,.62)),ne(O.Slider,"errorTrack",N(nt,O.error.main,.62)),ne(O.Slider,"infoTrack",N(nt,O.info.main,.62)),ne(O.Slider,"successTrack",N(nt,O.success.main,.62)),ne(O.Slider,"warningTrack",N(nt,O.warning.main,.62));const U=S?N(rt,O.background.default,.6825):Ji(O.background.default,.8);ne(O.SnackbarContent,"bg",U),ne(O.SnackbarContent,"color",gr(()=>S?eu.text.primary:O.getContrastText(U))),ne(O.SpeedDialAction,"fabHoverBg",Ji(O.background.paper,.15)),ne(O.StepConnector,"border",D("palette-grey-400")),ne(O.StepContent,"border",D("palette-grey-400")),ne(O.Switch,"defaultColor",D("palette-common-white")),ne(O.Switch,"defaultDisabledColor",D("palette-grey-100")),ne(O.Switch,"primaryDisabledColor",N(nt,O.primary.main,.62)),ne(O.Switch,"secondaryDisabledColor",N(nt,O.secondary.main,.62)),ne(O.Switch,"errorDisabledColor",N(nt,O.error.main,.62)),ne(O.Switch,"infoDisabledColor",N(nt,O.info.main,.62)),ne(O.Switch,"successDisabledColor",N(nt,O.success.main,.62)),ne(O.Switch,"warningDisabledColor",N(nt,O.warning.main,.62)),ne(O.TableCell,"border",N(nt,N(nn,O.divider,1),.88)),ne(O.Tooltip,"bg",N(nn,O.grey[700],.92))}if(O.mode==="dark"){ne(O.Alert,"errorColor",N(nt,O.error.light,.6)),ne(O.Alert,"infoColor",N(nt,O.info.light,.6)),ne(O.Alert,"successColor",N(nt,O.success.light,.6)),ne(O.Alert,"warningColor",N(nt,O.warning.light,.6)),ne(O.Alert,"errorFilledBg",D("palette-error-dark")),ne(O.Alert,"infoFilledBg",D("palette-info-dark")),ne(O.Alert,"successFilledBg",D("palette-success-dark")),ne(O.Alert,"warningFilledBg",D("palette-warning-dark")),ne(O.Alert,"errorFilledColor",gr(()=>O.getContrastText(O.error.dark))),ne(O.Alert,"infoFilledColor",gr(()=>O.getContrastText(O.info.dark))),ne(O.Alert,"successFilledColor",gr(()=>O.getContrastText(O.success.dark))),ne(O.Alert,"warningFilledColor",gr(()=>O.getContrastText(O.warning.dark))),ne(O.Alert,"errorStandardBg",N(rt,O.error.light,.9)),ne(O.Alert,"infoStandardBg",N(rt,O.info.light,.9)),ne(O.Alert,"successStandardBg",N(rt,O.success.light,.9)),ne(O.Alert,"warningStandardBg",N(rt,O.warning.light,.9)),ne(O.Alert,"errorIconColor",D("palette-error-main")),ne(O.Alert,"infoIconColor",D("palette-info-main")),ne(O.Alert,"successIconColor",D("palette-success-main")),ne(O.Alert,"warningIconColor",D("palette-warning-main")),ne(O.AppBar,"defaultBg",D("palette-grey-900")),ne(O.AppBar,"darkBg",D("palette-background-paper")),ne(O.AppBar,"darkColor",D("palette-text-primary")),ne(O.Avatar,"defaultBg",D("palette-grey-600")),ne(O.Button,"inheritContainedBg",D("palette-grey-800")),ne(O.Button,"inheritContainedHoverBg",D("palette-grey-700")),ne(O.Chip,"defaultBorder",D("palette-grey-700")),ne(O.Chip,"defaultAvatarColor",D("palette-grey-300")),ne(O.Chip,"defaultIconColor",D("palette-grey-300")),ne(O.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ne(O.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ne(O.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ne(O.LinearProgress,"primaryBg",N(rt,O.primary.main,.5)),ne(O.LinearProgress,"secondaryBg",N(rt,O.secondary.main,.5)),ne(O.LinearProgress,"errorBg",N(rt,O.error.main,.5)),ne(O.LinearProgress,"infoBg",N(rt,O.info.main,.5)),ne(O.LinearProgress,"successBg",N(rt,O.success.main,.5)),ne(O.LinearProgress,"warningBg",N(rt,O.warning.main,.5)),ne(O.Skeleton,"bg",S?N(nn,O.text.primary,.13):`rgba(${D("palette-text-primaryChannel")} / 0.13)`),ne(O.Slider,"primaryTrack",N(rt,O.primary.main,.5)),ne(O.Slider,"secondaryTrack",N(rt,O.secondary.main,.5)),ne(O.Slider,"errorTrack",N(rt,O.error.main,.5)),ne(O.Slider,"infoTrack",N(rt,O.info.main,.5)),ne(O.Slider,"successTrack",N(rt,O.success.main,.5)),ne(O.Slider,"warningTrack",N(rt,O.warning.main,.5));const U=S?N(nt,O.background.default,.985):Ji(O.background.default,.98);ne(O.SnackbarContent,"bg",U),ne(O.SnackbarContent,"color",gr(()=>S?Py.text.primary:O.getContrastText(U))),ne(O.SpeedDialAction,"fabHoverBg",Ji(O.background.paper,.15)),ne(O.StepConnector,"border",D("palette-grey-600")),ne(O.StepContent,"border",D("palette-grey-600")),ne(O.Switch,"defaultColor",D("palette-grey-300")),ne(O.Switch,"defaultDisabledColor",D("palette-grey-600")),ne(O.Switch,"primaryDisabledColor",N(rt,O.primary.main,.55)),ne(O.Switch,"secondaryDisabledColor",N(rt,O.secondary.main,.55)),ne(O.Switch,"errorDisabledColor",N(rt,O.error.main,.55)),ne(O.Switch,"infoDisabledColor",N(rt,O.info.main,.55)),ne(O.Switch,"successDisabledColor",N(rt,O.success.main,.55)),ne(O.Switch,"warningDisabledColor",N(rt,O.warning.main,.55)),ne(O.TableCell,"border",N(rt,N(nn,O.divider,1),.68)),ne(O.Tooltip,"bg",N(nn,O.grey[700],.92))}Rr(O.background,"default"),Rr(O.background,"paper"),Rr(O.common,"background"),Rr(O.common,"onBackground"),Rr(O,"divider"),Object.keys(O).forEach(U=>{const W=O[U];U!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&ne(O[U],"mainChannel",Yn(Zn(W.main))),W.light&&ne(O[U],"lightChannel",Yn(Zn(W.light))),W.dark&&ne(O[U],"darkChannel",Yn(Zn(W.dark))),W.contrastText&&ne(O[U],"contrastTextChannel",Yn(Zn(W.contrastText))),U==="text"&&(Rr(O[U],"primary"),Rr(O[U],"secondary")),U==="action"&&(W.active&&Rr(O[U],"active"),W.selected&&Rr(O[U],"selected")))})}),E=t.reduce((R,O)=>kt(R,O),E);const x={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:vE(E),enableContrastVars:l},{vars:P,generateThemeVars:k,generateStyleSheets:j}=VS(E,x);return E.vars=P,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([R,O])=>{E[R]=O}),E.generateThemeVars=k,E.generateStyleSheets=j,E.generateSpacing=function(){return dy(d.spacing,Uc(this))},E.getColorSchemeSelector=BS(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=s,E.unstable_sxConfig={...Gn,...d?.unstable_sxConfig},E.unstable_sx=function(O){return wn({sx:O,theme:this})},E.toRuntimeSource=Ay,E}function Ly(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:tu({...r===!0?{}:r.palette,mode:t})})}function EE(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...l}=e,s=a||"light",c=i?.[s],u={...i,...r?{[s]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return ru(e,...t);let d=r;"palette"in e||u[s]&&(u[s]!==!0?d=u[s].palette:s==="dark"&&(d={mode:"dark"}));const m=ru({...e,palette:d},...t);return m.defaultColorScheme=s,m.colorSchemes=u,m.palette.mode==="light"&&(m.colorSchemes.light={...u.light!==!0&&u.light,palette:m.palette},Ly(m,"dark",u.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:m.palette},Ly(m,"light",u.light)),m}return!r&&!("light"in u)&&s==="light"&&(u.light=!0),SE({...l,colorSchemes:u,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const iu=EE(),au="$$material";function su(){const e=fy(iu);return process.env.NODE_ENV!=="production"&&A.useDebugValue(e),e[au]||e}function Fy(e){return F.jsx(py,{...e,defaultTheme:iu,themeId:au})}process.env.NODE_ENV!=="production"&&(Fy.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function zy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const It=e=>zy(e)&&e!=="classes",me=by({themeId:au,defaultTheme:iu,rootShouldForwardProp:It});function OE(e){return function(r){return F.jsx(Fy,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function xE(){return tS}process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function We(e){return DS(e)}function cr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function CE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function TE(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"&&!CE(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 lu=cr(o.elementType,TE);function Xi(e){return typeof e=="string"}function Vy(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 St(...e){const t=A.useRef(void 0),r=A.useCallback(n=>{const i=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const l=a,s=l(n);return typeof s=="function"?s:()=>{l(null)}}return a.current=n,()=>{a.current=null}});return()=>{i.forEach(a=>a?.())}},e);return A.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function ur(e){const t=A.useRef(e);return yr(()=>{t.current=e}),A.useRef((...r)=>(0,t.current)(...r)).current}function Kt(e){return e&&e.ownerDocument||document}function kr(e){return Kt(e).defaultView||window}function Zi(e){return parseInt(e,10)||0}const PE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function $E(e){for(const t in e)return!1;return!0}function By(e){return $E(e)||e.outerHeightStyle===0&&!e.overflowing}const Uy=A.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:l,value:s,...c}=t,{current:u}=A.useRef(s!=null),d=A.useRef(null),m=St(r,d),h=A.useRef(null),y=A.useRef(null),g=A.useCallback(()=>{const _=d.current,S=y.current;if(!_||!S)return;const E=kr(_).getComputedStyle(_);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=E.width,S.value=_.value||t.placeholder||"x",S.value.slice(-1)===`
|
|
47
|
-
`&&(S.value+=" ");const x=E.boxSizing,P=Zi(E.paddingBottom)+Zi(E.paddingTop),k=Zi(E.borderBottomWidth)+Zi(E.borderTopWidth),
|
|
48
|
-
`),x=S.selectionStart===w;E&&x&&S.setSelectionRange(w,w),n&&n(_)};return F.jsxs(
|
|
49
|
-
`))},[]),L=St(ie,S,_.ref,te),[I,G]=A.useState(!1),X=vr();process.env.NODE_ENV!=="production"&&A.useEffect(()=>{if(X)return X.registerEffect()},[X]);const oe=Ur({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=X?X.focused:I,A.useEffect(()=>{!X&&h&&I&&(G(!1),j&&j())},[X,h,I,j]);const ye=X&&X.onFilled,ve=X&&X.onEmpty,fe=A.useCallback(Oe=>{ea(Oe)?ye&&ye():ve&&ve()},[ye,ve]);yr(()=>{re&&fe({value:K})},[K,fe,re]);const Te=Oe=>{D&&D(Oe),_.onFocus&&_.onFocus(Oe),X&&X.onFocus?X.onFocus(Oe):G(!0)},be=Oe=>{j&&j(Oe),_.onBlur&&_.onBlur(Oe),X&&X.onBlur?X.onBlur(Oe):G(!1)},Ee=(Oe,...He)=>{if(!re){const ft=Oe.target||ie.current;if(ft==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.":hr(1));fe({value:ft.value})}_.onChange&&_.onChange(Oe,...He),R&&R(Oe,...He)};A.useEffect(()=>{fe(ie.current)},[]);const he=Oe=>{ie.current&&Oe.currentTarget===Oe.target&&ie.current.focus(),O&&O(Oe)};let $e=p,Ie=_;P&&$e==="input"&&(ue?(process.env.NODE_ENV!=="production"&&(x||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ie={type:void 0,minRows:ue,maxRows:ue,...Ie}):Ie={type:void 0,maxRows:E,minRows:x,...Ie},$e=Uy);const ot=Oe=>{fe(Oe.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};A.useEffect(()=>{X&&X.setAdornedStart(!!M)},[X,M]);const Qe={...n,color:oe.color||"primary",disabled:oe.disabled,endAdornment:g,error:oe.error,focused:oe.focused,formControl:X,fullWidth:b,hiddenLabel:oe.hiddenLabel,multiline:P,size:oe.size,startAdornment:M,type:T},_t=IE(Qe),et=V.root||u.Root||na,Tt=C.root||d.root||{},Je=V.input||u.Input||oa;return Ie={...Ie,...C.input??d.input},F.jsxs(A.Fragment,{children:[!y&&typeof Ky=="function"&&(Hy||(Hy=F.jsx(Ky,{}))),F.jsxs(et,{...Tt,ref:r,onClick:he,...q,...!Xi(et)&&{ownerState:{...Qe,...Tt.ownerState}},className:xe(_t.root,Tt.className,s,le&&"MuiInputBase-readOnly"),children:[M,F.jsx(Qi.Provider,{value:null,children:F.jsx(Je,{"aria-invalid":oe.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:m,disabled:oe.disabled,id:v,onAnimationStart:ot,name:k,placeholder:W,readOnly:le,required:oe.required,rows:ue,value:K,onKeyDown:N,onKeyUp:U,type:T,...Ie,...!Xi(Je)&&{as:$e,ownerState:{...Qe,...Ie.ownerState}},ref:L,className:xe(_t.input,Ie.className,le&&"MuiInputBase-readOnly"),onBlur:be,onChange:Ee,onFocus:Te})}),g,ce?ce({...oe,startAdornment:M}):null]})]})});process.env.NODE_ENV!=="production"&&(ia.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:lu,inputProps:o.object,inputRef:zt,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 jE(e){return typeof e.main=="string"}function NE(e,t=[]){if(!jE(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&&NE(t,e)}function AE(e){return Fe("MuiInput",e)}const Wr={...Gt,...Le("MuiInput",["root","underline","input"])},ME=e=>{const{classes:t,disableUnderline:r}=e,i=Be({root:["root",!r&&"underline"],input:["input"]},AE,t);return{...t,...i}},DE=me(na,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ta(e,t),!r.disableUnderline&&t.underline]}})(ze(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=e.alpha(e.vars.palette.common.onBackground,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"},[`&.${Wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wr.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(.${Wr.disabled}, .${Wr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wr.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}`}}}))]}})),qE=me(oa,{name:"MuiInput",slot:"Input",overridesResolver:ra})({}),aa=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:m={},type:h="text",...y}=n,g=ME(n),b={root:{ownerState:{disableUnderline:i}}},v=d??l?kt(d??l,b):b,p=m.root??a.Root??DE,_=m.input??a.Input??qE;return F.jsx(ia,{slots:{root:p,input:_},slotProps:v,fullWidth:s,inputComponent:c,multiline:u,ref:r,type:h,...y,classes:g})});process.env.NODE_ENV!=="production"&&(aa.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:zt,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}),aa.muiName="Input";function LE(e){return Fe("MuiFilledInput",e)}const Yt={...Gt,...Le("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function cu(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function FE(e){return Fe("MuiSvgIcon",e)}Le("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zE=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${pe(t)}`,`fontSize${pe(r)}`]};return Be(i,FE,n)},VE=me("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${pe(r.color)}`],t[`fontSize${pe(r.fontSize)}`]]}})(ze(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),sa=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:l="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:m,viewBox:h="0 0 24 24",...y}=n,g=A.isValidElement(i)&&i.type==="svg",f={...n,color:l,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},b={};d||(b.viewBox=h);const v=zE(f);return F.jsxs(VE,{as:s,className:xe(v.root,a),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r,...b,...y,...g&&i.props,ownerState:f,children:[g?i.props.children:i,m?F.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(sa.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}),sa.muiName="SvgIcon";function Ct(e,t){function r(n,i){return F.jsx(sa,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=sa.muiName,A.memo(A.forwardRef(r))}function uu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function BE(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 on(e){const{controlled:t,default:r,name:n,state:i="value"}=e,{current:a}=A.useRef(t!==void 0),[l,s]=A.useState(r),c=a?t:l;if(process.env.NODE_ENV!=="production"){A.useEffect(()=>{a!==(t!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${i} state of ${n} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} 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(`
|
|
50
|
-
`))},[i,n,t]);const{current:d}=
|
|
51
|
-
`))},[JSON.stringify(r)])}const u=A.useCallback(d=>{a||s(d)},[]);return[c,u]}function UE(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function Gy(e,t){if(!e)return t;function r(l,s){const c={};return Object.keys(s).forEach(u=>{UE(u,s[u])&&typeof l[u]=="function"&&(c[u]=(...d)=>{l[u](...d),s[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return l=>{const s=typeof t=="function"?t(l):t,c=typeof e=="function"?e({...l,...s}):e,u=xe(l?.className,s?.className,c?.className),d=r(c,s);return{...s,...c,...d,...!!u&&{className:u},...s?.style&&c?.style&&{style:{...s.style,...c.style}},...s?.sx&&c?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const n=t,i=r(e,n),a=xe(n?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const WE=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${pe(a)}`,l&&"hiddenLabel",s&&"multiline"],input:["input"]},u=Be(c,LE,t);return{...t,...u}},HE=me(na,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ta(e,t),!r.disableUnderline&&t.underline]}})(ze(({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}},[`&.${Yt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${Yt.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"},[`&.${Yt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):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(.${Yt.disabled}, .${Yt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Yt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($t()).map(([l])=>({props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[l]?.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}}]}})),KE=me(oa,{name:"MuiFilledInput",slot:"Input",overridesResolver:ra})(ze(({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}}]}))),la=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:m,slots:h={},type:y="text",...g}=n,f={...n,disableUnderline:i,fullWidth:s,inputComponent:u,multiline:d,type:y},b=WE(n),v={root:{ownerState:f},input:{ownerState:f}},p=m??l?kt(v,m??l):v,_=h.root??a.Root??HE,S=h.input??a.Input??KE;return F.jsx(ia,{slots:{root:_,input:S},slotProps:p,fullWidth:s,inputComponent:u,multiline:d,ref:r,type:y,...g,classes:b})});process.env.NODE_ENV!=="production"&&(la.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:zt,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}),la.muiName="Input";var Yy;const GE=me("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:It})({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%"}),YE=me("legend",{name:"MuiNotchedOutlined",shouldForwardProp:It})(ze(({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 Jy(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 F.jsx(GE,{"aria-hidden":!0,className:n,ownerState:c,...l,children:F.jsx(YE,{ownerState:c,children:s?F.jsx("span",{children:i}):Yy||(Yy=F.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(Jy.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});function JE(e){return Fe("MuiOutlinedInput",e)}const er={...Gt,...Le("MuiOutlinedInput",["root","notchedOutline","input"])};function Xy(e,t,r){return e===void 0||Xi(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Zy(e,t,r){return typeof e=="function"?e(t,r):e}function Qy(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 eg(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 tg(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const y=xe(r?.className,a,i?.className,n?.className),g={...r?.style,...i?.style,...n?.style},f={...r,...i,...n};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const l=Qy({...i,...n}),s=eg(n),c=eg(i),u=t(l),d=xe(u?.className,r?.className,a,i?.className,n?.className),m={...u?.style,...r?.style,...i?.style,...n?.style},h={...u,...r,...c,...s};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function dt(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:a,internalForwardedProps:l,shouldForwardComponentProp:s=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:m={[e]:void 0},...h}=a,y=d[e]||n,g=Zy(m[e],i),{props:{component:f,...b},internalRef:v}=tg({className:r,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),p=St(v,g?.ref,t.ref),_=e==="root"?f||u:f,S=Xy(y,{...e==="root"&&!u&&!d[e]&&l,...e!=="root"&&!d[e]&&l,...b,..._&&!s&&{as:_},..._&&s&&{component:_},ref:p},i);return[y,S]}const XE=e=>{const{classes:t}=e,n=Be({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},JE,t);return{...t,...n}},ZE=me(na,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ta})(ze(({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?e.alpha(e.vars.palette.common.onBackground,.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"}}]}})),QE=me(Jy,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ze(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),e1=me(oa,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ra})(ze(({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}}]}))),ca=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:l="input",label:s,multiline:c=!1,notched:u,slots:d={},slotProps:m={},type:h="text",...y}=n,g=XE(n),f=vr(),b=Ur({props:n,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...n,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:f,fullWidth:a,hiddenLabel:b.hiddenLabel,multiline:c,size:b.size,type:h},p=d.root??i.Root??ZE,_=d.input??i.Input??e1,[S,w]=dt("notchedOutline",{elementType:QE,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:d,slotProps:m},additionalProps:{label:s!=null&&s!==""&&b.required?F.jsxs(A.Fragment,{children:[s," ","*"]}):s}});return F.jsx(ia,{slots:{root:p,input:_},slotProps:m,renderSuffix:E=>F.jsx(S,{...w,notched:typeof u<"u"?u:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:a,inputComponent:l,multiline:c,ref:r,type:h,...y,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(ca.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:zt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),ca.muiName="Input";function t1(e){return Fe("MuiFormLabel",e)}const Qn=Le("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),r1=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:l,required:s}=e,c={root:["root",`color${pe(r)}`,i&&"disabled",a&&"error",l&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Be(c,t1,t)},n1=me("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(ze(({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:{[`&.${Qn.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Qn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qn.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),o1=me("span",{name:"MuiFormLabel",slot:"Asterisk"})(ze(({theme:e})=>({[`&.${Qn.error}`]:{color:(e.vars||e).palette.error.main}}))),Hr=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormLabel"}),{children:i,className:a,color:l,component:s="label",disabled:c,error:u,filled:d,focused:m,required:h,...y}=n,g=vr(),f=Ur({props:n,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),b={...n,color:f.color||"primary",component:s,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},v=r1(b);return F.jsxs(n1,{as:s,ownerState:b,className:xe(v.root,a),ref:r,...y,children:[i,f.required&&F.jsxs(o1,{ownerState:b,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Hr.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 i1(e){return Fe("MuiInputLabel",e)}Le("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const a1=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!=="medium"&&`size${pe(n)}`,l],asterisk:[s&&"asterisk"]},u=Be(c,i1,t);return{...t,...u}},s1=me(Hr,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Qn.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]]}})(ze(({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)"}}]}))),ua=A.forwardRef(function(t,r){const n=We({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:a,shrink:l,variant:s,className:c,...u}=n,d=vr();let m=l;typeof m>"u"&&d&&(m=d.filled||d.focused||d.adornedStart);const h=Ur({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),y={...n,disableAnimation:i,formControl:d,shrink:m,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=a1(y);return F.jsx(s1,{"data-shrink":m,ref:r,className:xe(g.root,c),...u,ownerState:y,classes:g})});process.env.NODE_ENV!=="production"&&(ua.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function l1(e){return Fe("MuiFormControl",e)}Le("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const c1=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${pe(r)}`,n&&"fullWidth"]};return Be(i,l1,t)},u1=me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${pe(r.margin)}`],r.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%"}}]}),Tn=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormControl"}),{children:i,className:a,color:l="primary",component:s="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:m=!1,hiddenLabel:h=!1,margin:y="none",required:g=!1,size:f="medium",variant:b="outlined",...v}=n,p={...n,color:l,component:s,disabled:c,error:u,fullWidth:m,hiddenLabel:h,margin:y,required:g,size:f,variant:b},_=c1(p),[S,w]=A.useState(()=>{let W=!1;return i&&A.Children.forEach(i,le=>{if(!Qc(le,["Input","Select"]))return;const ce=Qc(le,["Select"])?le.props.input:le;ce&&RE(ce.props)&&(W=!0)}),W}),[E,x]=A.useState(()=>{let W=!1;return i&&A.Children.forEach(i,le=>{Qc(le,["Input","Select"])&&(ea(le.props,!0)||ea(le.props.inputProps,!0))&&(W=!0)}),W}),[P,k]=A.useState(!1);c&&P&&k(!1);const j=d!==void 0&&!c?d:P;let R;const O=A.useRef(!1);process.env.NODE_ENV!=="production"&&(R=()=>(O.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
52
|
-
`)),O.current=!0,()=>{O.current=!1}));const D=A.useCallback(()=>{x(!0)},[]),N=A.useCallback(()=>{x(!1)},[]),U=A.useMemo(()=>({adornedStart:S,setAdornedStart:w,color:l,disabled:c,error:u,filled:E,focused:j,fullWidth:m,hiddenLabel:h,size:f,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:N,onFilled:D,registerEffect:R,required:g,variant:b}),[S,l,c,u,E,j,m,h,R,N,D,g,f,b]);return F.jsx(Qi.Provider,{value:U,children:F.jsx(u1,{as:s,ownerState:p,className:xe(_.root,a),ref:r,...v,children:i})})});process.env.NODE_ENV!=="production"&&(Tn.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 d1(e){return Fe("MuiFormHelperText",e)}const rg=Le("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ng;const f1=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${pe(n)}`,r&&"contained",s&&"focused",l&&"filled",c&&"required"]};return Be(u,d1,t)},p1=me("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${pe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${rg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rg.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}}]}))),eo=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:l="p",disabled:s,error:c,filled:u,focused:d,margin:m,required:h,variant:y,...g}=n,f=vr(),b=Ur({props:n,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),v={...n,component:l,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete v.ownerState;const p=f1(v);return F.jsx(p1,{as:l,className:xe(p.root,a),ref:r,...g,ownerState:v,children:i===" "?ng||(ng=F.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});process.env.NODE_ENV!=="production"&&(eo.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function to(e){return parseInt(A.version,10)>=19?e?.props?.ref||null:e?.ref||null}var da={exports:{}},st={};var og;function h1(){if(og)return st;og=1;var e=Symbol.for("react.transitional.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.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case e:switch(f=f.type,f){case r:case i:case n:case c:case u:case h:return f;default:switch(f=f&&f.$$typeof,f){case l:case s:case m:case d:return f;case a:return f;default:return b}}case t:return b}}}return st.ContextConsumer=a,st.ContextProvider=l,st.Element=e,st.ForwardRef=s,st.Fragment=r,st.Lazy=m,st.Memo=d,st.Portal=t,st.Profiler=i,st.StrictMode=n,st.Suspense=c,st.SuspenseList=u,st.isContextConsumer=function(f){return g(f)===a},st.isContextProvider=function(f){return g(f)===l},st.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},st.isForwardRef=function(f){return g(f)===s},st.isFragment=function(f){return g(f)===r},st.isLazy=function(f){return g(f)===m},st.isMemo=function(f){return g(f)===d},st.isPortal=function(f){return g(f)===t},st.isProfiler=function(f){return g(f)===i},st.isStrictMode=function(f){return g(f)===n},st.isSuspense=function(f){return g(f)===c},st.isSuspenseList=function(f){return g(f)===u},st.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===n||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===d||f.$$typeof===l||f.$$typeof===a||f.$$typeof===s||f.$$typeof===y||f.getModuleId!==void 0)},st.typeOf=g,st}var lt={};var ig;function m1(){return ig||(ig=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case t:switch(f=f.type,f){case n:case a:case i:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case s:case c:case h:case m:return f;case l:return f;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.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.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");lt.ContextConsumer=l,lt.ContextProvider=s,lt.Element=t,lt.ForwardRef=c,lt.Fragment=n,lt.Lazy=h,lt.Memo=m,lt.Portal=r,lt.Profiler=a,lt.StrictMode=i,lt.Suspense=u,lt.SuspenseList=d,lt.isContextConsumer=function(f){return e(f)===l},lt.isContextProvider=function(f){return e(f)===s},lt.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},lt.isForwardRef=function(f){return e(f)===c},lt.isFragment=function(f){return e(f)===n},lt.isLazy=function(f){return e(f)===h},lt.isMemo=function(f){return e(f)===m},lt.isPortal=function(f){return e(f)===r},lt.isProfiler=function(f){return e(f)===a},lt.isStrictMode=function(f){return e(f)===i},lt.isSuspense=function(f){return e(f)===u},lt.isSuspenseList=function(f){return e(f)===d},lt.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===a||f===i||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===m||f.$$typeof===s||f.$$typeof===l||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},lt.typeOf=e})()),lt}var ag;function y1(){return ag||(ag=1,process.env.NODE_ENV==="production"?da.exports=h1():da.exports=m1()),da.exports}var du=y1();function Ir(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 sg(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1,...a}=e,l=i?{}:Zy(r,n),{props:s,internalRef:c}=tg({...a,externalSlotProps:l}),u=St(c,l?.ref,e.additionalProps?.ref);return Xy(t,{...s,ref:u},n)}const fa=A.createContext({});process.env.NODE_ENV!=="production"&&(fa.displayName="ListContext");function g1(e){return Fe("MuiList",e)}Le("MuiList",["root","padding","dense","subheader"]);const v1=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Be({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},g1,t)},b1=me("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}}]}),lg=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiList"}),{children:i,className:a,component:l="ul",dense:s=!1,disablePadding:c=!1,subheader:u,...d}=n,m=A.useMemo(()=>({dense:s}),[s]),h={...n,component:l,dense:s,disablePadding:c},y=v1(h);return F.jsx(fa.Provider,{value:m,children:F.jsxs(b1,{as:l,className:xe(y.root,a),ref:r,ownerState:h,...d,children:[u,i]})})});process.env.NODE_ENV!=="production"&&(lg.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 ro(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function cg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function fu(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function ug(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function dg(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 no(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")||!dg(s,a)||c)s=i(e,s,r);else return s.focus(),!0}return!1}const fg=A.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:l,className:s,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:m="selectedMenu",...h}=t,y=A.useRef(null),g=A.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yr(()=>{i&&y.current.focus()},[i]),A.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:S})=>{const w=!y.current.style.width;if(_.clientHeight<y.current.clientHeight&&w){const E=`${cg(kr(_))}px`;y.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=E,y.current.style.width=`calc(100% + ${E})`}return y.current}}),[]);const f=_=>{const S=y.current,w=_.key;if(_.ctrlKey||_.metaKey||_.altKey){d&&d(_);return}const x=ro(Kt(S));if(w==="ArrowDown")_.preventDefault(),no(S,x,u,c,fu);else if(w==="ArrowUp")_.preventDefault(),no(S,x,u,c,ug);else if(w==="Home")_.preventDefault(),no(S,null,u,c,fu);else if(w==="End")_.preventDefault(),no(S,null,u,c,ug);else if(w.length===1){const P=g.current,k=w.toLowerCase(),j=performance.now();P.keys.length>0&&(j-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&k!==P.keys[0]&&(P.repeating=!1)),P.lastTime=j,P.keys.push(k);const R=x&&!P.repeating&&dg(x,P);P.previousKeyMatched&&(R||no(S,x,!1,c,fu,P))?_.preventDefault():P.previousKeyMatched=!1}d&&d(_)},b=St(y,r);let v=-1;A.Children.forEach(l,(_,S)=>{if(!A.isValidElement(_)){v===S&&(v+=1,v>=l.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&du.isFragment(_)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
53
|
-
`)),_.props.disabled||(m==="selectedMenu"&&_.props.selected||v===-1)&&(v=S),v===S&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(v+=1,v>=l.length&&(v=-1))});const p=A.Children.map(l,(_,S)=>{if(S===v){const w={};return a&&(w.autoFocus=!0),_.props.tabIndex===void 0&&m==="selectedMenu"&&(w.tabIndex=0),A.cloneElement(_,w)}return _});return F.jsx(lg,{role:"menu",ref:b,className:s,onKeyDown:f,tabIndex:i?0:-1,...h,children:p})});process.env.NODE_ENV!=="production"&&(fg.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 _1(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function pg(e,t,r,n){const i=e[t];if(i==null||!Number.isInteger(i)){const a=_1(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function hg(e,t,r,n){return e[t]===void 0?null:pg(e,t,r,n)}function pu(){return null}hg.isRequired=pg,pu.isRequired=pu;const hu=process.env.NODE_ENV==="production"?pu:hg,mg={};function yg(e,t){const r=A.useRef(mg);return r.current===mg&&(r.current=e(t)),r}const w1=[];function S1(e){A.useEffect(e,w1)}class mu{static create(){return new mu}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function gg(){const e=yg(mu.create).current;return S1(e.disposeEffect),e}function E1(e){const{prototype:t={}}=e;return!!t.isReactComponent}function vg(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"&&!E1(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 oo=cr(o.element,vg);oo.isRequired=cr(o.element.isRequired,vg);function yu(){return yu=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},yu.apply(null,arguments)}function bg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function gu(e,t){return gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},gu(e,t)}function _g(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gu(e,t)}const wg={disabled:!1};var O1=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 pa=ke.createContext(null);var x1=function(t){return t.scrollTop},io="unmounted",an="exited",sn="entering",Pn="entered",vu="exiting",br=(function(e){_g(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=an,a.appearStatus=sn):c=Pn:n.unmountOnExit||n.mountOnEnter?c=io:c=an,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var l=i.in;return l&&a.status===io?{status:an}: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!==sn&&l!==Pn&&(a=sn):(l===sn||l===Pn)&&(a=vu)}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===sn){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Nn.findDOMNode(this);l&&x1(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===an&&this.setState({status:io})},r.performEnter=function(i){var a=this,l=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[Nn.findDOMNode(this),s],u=c[0],d=c[1],m=this.getTimeouts(),h=s?m.appear:m.enter;if(!i&&!l||wg.disabled){this.safeSetState({status:Pn},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:sn},function(){a.props.onEntering(u,d),a.onTransitionEnd(h,function(){a.safeSetState({status:Pn},function(){a.props.onEntered(u,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,l=this.getTimeouts(),s=this.props.nodeRef?void 0:Nn.findDOMNode(this);if(!a||wg.disabled){this.safeSetState({status:an},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:vu},function(){i.props.onExiting(s),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:an},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:Nn.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],d=c[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===io)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=bg(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(pa.Provider,{value:null},typeof l=="function"?l(i,s):ke.cloneElement(ke.Children.only(l),s))},t})(ke.Component);br.contextType=pa,br.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=O1;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 $n(){}br.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$n,onEntering:$n,onEntered:$n,onExit:$n,onExiting:$n,onExited:$n},br.UNMOUNTED=io,br.EXITED=an,br.ENTERING=sn,br.ENTERED=Pn,br.EXITING=vu;function C1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bu(e,t){var r=function(a){return t&&ke.isValidElement(a)?t(a):a},n=Object.create(null);return e&&ke.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function T1(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}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 ln(e,t,r){return r[t]!=null?r[t]:e.props[t]}function P1(e,t){return bu(e.children,function(r){return ke.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:ln(r,"appear",e),enter:ln(r,"enter",e),exit:ln(r,"exit",e)})})}function $1(e,t,r){var n=bu(e.children),i=T1(t,n);return Object.keys(i).forEach(function(a){var l=i[a];if(ke.isValidElement(l)){var s=a in t,c=a in n,u=t[a],d=ke.isValidElement(u)&&!u.props.in;c&&(!s||d)?i[a]=ke.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:ln(l,"exit",e),enter:ln(l,"enter",e)}):!c&&s&&!d?i[a]=ke.cloneElement(l,{in:!1}):c&&s&&ke.isValidElement(u)&&(i[a]=ke.cloneElement(l,{onExited:r.bind(null,l),in:u.props.in,exit:ln(l,"exit",e),enter:ln(l,"enter",e)}))}}),i}var R1=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},k1={component:"div",childFactory:function(t){return t}},_u=(function(e){_g(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var l=a.handleExited.bind(C1(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?P1(i,s):$1(i,l,s),firstRender:!1}},r.handleExited=function(i,a){var l=bu(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var c=yu({},s.children);return delete c[i.key],{children:c}}))},r.render=function(){var i=this.props,a=i.component,l=i.childFactory,s=bg(i,["component","childFactory"]),c=this.state.contextValue,u=R1(this.state.children).map(l);return delete s.appear,delete s.enter,delete s.exit,a===null?ke.createElement(pa.Provider,{value:c},u):ke.createElement(pa.Provider,{value:c},ke.createElement(a,s,u))},t})(ke.Component);_u.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},_u.defaultProps=k1;const Sg=e=>e.scrollTop;function ha(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 wu(e){return`scale(${e}, ${e**2})`}const I1={entering:{opacity:1,transform:wu(1)},entered:{opacity:1,transform:"none"}},Su=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ma=A.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:m,onExited:h,onExiting:y,style:g,timeout:f="auto",TransitionComponent:b=br,...v}=t,p=gg(),_=A.useRef(),S=su(),w=A.useRef(null),E=St(w,to(a),r),x=U=>W=>{if(U){const le=w.current;W===void 0?U(le):U(le,W)}},P=x(d),k=x((U,W)=>{Sg(U);const{duration:le,delay:ce,easing:ue}=ha({style:g,timeout:f,easing:l},{mode:"enter"});let z;f==="auto"?(z=S.transitions.getAutoHeightDuration(U.clientHeight),_.current=z):z=le,U.style.transition=[S.transitions.create("opacity",{duration:z,delay:ce}),S.transitions.create("transform",{duration:Su?z:z*.666,delay:ce,easing:ue})].join(","),c&&c(U,W)}),j=x(u),R=x(y),O=x(U=>{const{duration:W,delay:le,easing:ce}=ha({style:g,timeout:f,easing:l},{mode:"exit"});let ue;f==="auto"?(ue=S.transitions.getAutoHeightDuration(U.clientHeight),_.current=ue):ue=W,U.style.transition=[S.transitions.create("opacity",{duration:ue,delay:le}),S.transitions.create("transform",{duration:Su?ue:ue*.666,delay:Su?le:le||ue*.333,easing:ce})].join(","),U.style.opacity=0,U.style.transform=wu(.75),m&&m(U)}),D=x(h),N=U=>{f==="auto"&&p.start(_.current||0,U),n&&n(w.current,U)};return F.jsx(b,{appear:i,in:s,nodeRef:w,onEnter:k,onEntered:j,onEntering:P,onExit:O,onExited:D,onExiting:R,addEndListener:N,timeout:f==="auto"?null:f,...v,children:(U,{ownerState:W,...le})=>A.cloneElement(a,{style:{opacity:0,transform:wu(.75),visibility:U==="exited"&&!s?"hidden":void 0,...I1[U],...g,...a.props.style},ref:E,...le})})});process.env.NODE_ENV!=="production"&&(ma.propTypes={addEndListener:o.func,appear:o.bool,children:oo.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})])}),ma&&(ma.muiSupportAuto=!0);function j1(e){const t=Kt(e);return t.body===e?kr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ao(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Eg(e){return parseInt(kr(e).getComputedStyle(e).paddingRight,10)||0}function N1(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 Og(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,l=>{const s=!a.includes(l),c=!N1(l);s&&c&&ao(l,i)})}function Eu(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function A1(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(j1(n)){const l=cg(kr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Eg(n)+l}px`;const s=Kt(n).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Eg(c)+l}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Kt(n).body;else{const l=n.parentElement,s=kr(n);a=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 M1(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class D1{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&&ao(t.modalRef,!1);const i=M1(r);Og(r,t.mount,t.modalRef,i,!0);const a=Eu(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=Eu(this.containers,a=>a.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=A1(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Eu(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&&ao(t.modalRef,r),Og(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&&ao(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const q1=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function L1(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 F1(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 z1(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||F1(e))}function V1(e){const t=[],r=[];return Array.from(e.querySelectorAll(q1)).forEach((n,i)=>{const a=L1(n);a===-1||!z1(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 B1(){return!0}function ya(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=V1,isEnabled:l=B1,open:s}=e,c=A.useRef(!1),u=A.useRef(null),d=A.useRef(null),m=A.useRef(null),h=A.useRef(null),y=A.useRef(!1),g=A.useRef(null),f=St(to(t),g),b=A.useRef(null);A.useEffect(()=>{!s||!g.current||(y.current=!r)},[r,s]),A.useEffect(()=>{if(!s||!g.current)return;const _=Kt(g.current),S=ro(_);return g.current.contains(S)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
54
|
-
`)),g.current.setAttribute("tabIndex","-1")),y.current&&g.current.focus()),()=>{i||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[s]),A.useEffect(()=>{if(!s||!g.current)return;const _=Kt(g.current),S=ro(_),w=P=>{b.current=P,!(n||!l()||P.key!=="Tab")&&S===g.current&&P.shiftKey&&(c.current=!0,d.current&&d.current.focus())},E=()=>{const P=g.current;if(P===null)return;const k=ro(_);if(!_.hasFocus()||!l()||c.current){c.current=!1;return}if(P.contains(k)||n&&k!==u.current&&k!==d.current)return;if(k!==h.current)h.current=null;else if(h.current!==null)return;if(!y.current)return;let j=[];if((k===u.current||k===d.current)&&(j=a(g.current)),j.length>0){const R=!!(b.current?.shiftKey&&b.current?.key==="Tab"),O=j[0],D=j[j.length-1];typeof O!="string"&&typeof D!="string"&&(R?D.focus():O.focus())}else P.focus()};_.addEventListener("focusin",E),_.addEventListener("keydown",w,!0);const x=setInterval(()=>{const P=ro(_);P&&P.tagName==="BODY"&&E()},50);return()=>{clearInterval(x),_.removeEventListener("focusin",E),_.removeEventListener("keydown",w,!0)}},[r,n,i,l,s,a]);const v=_=>{m.current===null&&(m.current=_.relatedTarget),y.current=!0,h.current=_.target;const S=t.props.onFocus;S&&S(_)},p=_=>{m.current===null&&(m.current=_.relatedTarget),y.current=!0};return F.jsxs(A.Fragment,{children:[F.jsx("div",{tabIndex:s?0:-1,onFocus:p,ref:u,"data-testid":"sentinelStart"}),A.cloneElement(t,{ref:f,onFocus:v}),F.jsx("div",{tabIndex:s?0:-1,onFocus:p,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ya.propTypes={children:oo,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(ya.propTypes=Ey(ya.propTypes));function U1(e){return typeof e=="function"?e():e}const so=A.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[l,s]=A.useState(null),c=St(A.isValidElement(n)?to(n):null,r);if(yr(()=>{a||s(U1(i)||document.body)},[i,a]),yr(()=>{if(l&&!a)return uu(r,l),()=>{uu(r,null)}},[r,l,a]),a){if(A.isValidElement(n)){const u={ref:c};return A.cloneElement(n,u)}return n}return l&&Xv.createPortal(n,l)});process.env.NODE_ENV!=="production"&&(so.propTypes={children:o.node,container:o.oneOfType([Ir,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(so.propTypes=Ey(so.propTypes));const W1={entering:{opacity:1},entered:{opacity:1}},xg=A.forwardRef(function(t,r){const n=su(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:s,easing:c,in:u,onEnter:d,onEntered:m,onEntering:h,onExit:y,onExited:g,onExiting:f,style:b,timeout:v=i,TransitionComponent:p=br,..._}=t,S=A.useRef(null),w=St(S,to(s),r),E=N=>U=>{if(N){const W=S.current;U===void 0?N(W):N(W,U)}},x=E(h),P=E((N,U)=>{Sg(N);const W=ha({style:b,timeout:v,easing:c},{mode:"enter"});N.style.webkitTransition=n.transitions.create("opacity",W),N.style.transition=n.transitions.create("opacity",W),d&&d(N,U)}),k=E(m),j=E(f),R=E(N=>{const U=ha({style:b,timeout:v,easing:c},{mode:"exit"});N.style.webkitTransition=n.transitions.create("opacity",U),N.style.transition=n.transitions.create("opacity",U),y&&y(N)}),O=E(g),D=N=>{a&&a(S.current,N)};return F.jsx(p,{appear:l,in:u,nodeRef:S,onEnter:P,onEntered:k,onEntering:x,onExit:R,onExited:O,onExiting:j,addEndListener:D,timeout:v,..._,children:(N,{ownerState:U,...W})=>A.cloneElement(s,{style:{opacity:0,visibility:N==="exited"&&!u?"hidden":void 0,...W1[N],...b,...s.props.style},ref:w,...W})})});process.env.NODE_ENV!=="production"&&(xg.propTypes={addEndListener:o.func,appear:o.bool,children:oo.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 H1(e){return Fe("MuiBackdrop",e)}Le("MuiBackdrop",["root","invisible"]);const K1=e=>{const{classes:t,invisible:r}=e;return Be({root:["root",r&&"invisible"]},H1,t)},G1=me("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"}}]}),Cg=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:l="div",invisible:s=!1,open:c,components:u={},componentsProps:d={},slotProps:m={},slots:h={},TransitionComponent:y,transitionDuration:g,...f}=n,b={...n,component:l,invisible:s},v=K1(b),p={transition:y,root:u.Root,...h},_={...d,...m},S={component:l,slots:p,slotProps:_},[w,E]=dt("root",{elementType:G1,externalForwardedProps:S,className:xe(v.root,a),ownerState:b}),[x,P]=dt("transition",{elementType:xg,externalForwardedProps:S,ownerState:b});return F.jsx(x,{in:c,timeout:g,...f,...P,children:F.jsx(w,{"aria-hidden":!0,...E,classes:v,ref:r,children:i})})});process.env.NODE_ENV!=="production"&&(Cg.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 Y1(e){return typeof e=="function"?e():e}function J1(e){return e?e.props.hasOwnProperty("in"):!1}const Tg=()=>{},ga=new D1;function X1(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,m=A.useRef({}),h=A.useRef(null),y=A.useRef(null),g=St(y,d),[f,b]=A.useState(!u),v=J1(s);let p=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(p=!1);const _=()=>Kt(h.current),S=()=>(m.current.modalRef=y.current,m.current.mount=h.current,m.current),w=()=>{ga.mount(S(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},E=ur(()=>{const U=Y1(t)||_().body;ga.add(S(),U),y.current&&w()}),x=()=>ga.isTopModal(S()),P=ur(U=>{h.current=U,U&&(u&&x()?w():y.current&&ao(y.current,p))}),k=A.useCallback(()=>{ga.remove(S(),p)},[p]);A.useEffect(()=>()=>{k()},[k]),A.useEffect(()=>{u?E():(!v||!i)&&k()},[u,k,v,i,E]);const j=U=>W=>{U.onKeyDown?.(W),!(W.key!=="Escape"||W.which===229||!x())&&(r||(W.stopPropagation(),c&&c(W,"escapeKeyDown")))},R=U=>W=>{U.onClick?.(W),W.target===W.currentTarget&&c&&c(W,"backdropClick")};return{getRootProps:(U={})=>{const W=Qy(e);delete W.onTransitionEnter,delete W.onTransitionExited;const le={...W,...U};return{role:"presentation",...le,onKeyDown:j(le),ref:g}},getBackdropProps:(U={})=>{const W=U;return{"aria-hidden":!0,...W,onClick:R(W),open:u}},getTransitionProps:()=>{const U=()=>{b(!1),a&&a()},W=()=>{b(!0),l&&l(),i&&k()};return{onEnter:cu(U,s?.props.onEnter??Tg),onExited:cu(W,s?.props.onExited??Tg)}},rootRef:g,portalRef:P,isTopModal:x,exited:f,hasTransition:v}}function Z1(e){return Fe("MuiModal",e)}Le("MuiModal",["root","hidden","backdrop"]);const Q1=e=>{const{open:t,exited:r,classes:n}=e;return Be({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Z1,n)},eO=me("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(ze(({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"}}]}))),tO=me(Cg,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Pg=A.forwardRef(function(t,r){const n=We({name:"MuiModal",props:t}),{BackdropComponent:i=tO,BackdropProps:a,classes:l,className:s,closeAfterTransition:c=!1,children:u,container:d,component:m,components:h={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:b=!1,disablePortal:v=!1,disableRestoreFocus:p=!1,disableScrollLock:_=!1,hideBackdrop:S=!1,keepMounted:w=!1,onClose:E,onTransitionEnter:x,onTransitionExited:P,open:k,slotProps:j={},slots:R={},theme:O,...D}=n,N={...n,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:b,disablePortal:v,disableRestoreFocus:p,disableScrollLock:_,hideBackdrop:S,keepMounted:w},{getRootProps:U,getBackdropProps:W,getTransitionProps:le,portalRef:ce,isTopModal:ue,exited:z,hasTransition:C}=X1({...N,rootRef:r}),V={...N,exited:z},M=Q1(V),T={};if(u.props.tabIndex===void 0&&(T.tabIndex="-1"),C){const{onEnter:te,onExited:L}=le();T.onEnter=te,T.onExited=L}const $={slots:{root:h.Root,backdrop:h.Backdrop,...R},slotProps:{...y,...j}},[q,K]=dt("root",{ref:r,elementType:eO,externalForwardedProps:{...$,...D,component:m},getSlotProps:U,ownerState:V,className:xe(s,M?.root,!V.open&&V.exited&&M?.hidden)}),[re,ie]=dt("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:$,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:te=>W({...te,onClick:L=>{te?.onClick&&te.onClick(L)}}),className:xe(a?.className,M?.backdrop),ownerState:V});return!w&&!k&&(!C||z)?null:F.jsx(so,{ref:ce,container:d,disablePortal:v,children:F.jsxs(q,{...K,children:[!S&&i?F.jsx(re,{...ie}):null,F.jsx(ya,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:p,isEnabled:ue,open:k,children:A.cloneElement(u,T)})]})})});process.env.NODE_ENV!=="production"&&(Pg.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:oo.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([Ir,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function rO(e){return Fe("MuiPaper",e)}Le("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 nO=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Be(a,rO,i)},oO=me("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}`]]}})(ze(({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)"}}]}))),lo=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiPaper"}),i=su(),{className:a,component:l="div",elevation:s=1,square:c=!1,variant:u="elevation",...d}=n,m={...n,component:l,elevation:s,square:c,variant:u},h=nO(m);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(`
|
|
55
|
-
`)),F.jsx(
|
|
56
|
-
`))}return{top:I.top+$g(I,l.vertical),left:I.left+Rg(I,l.horizontal)}},[a,l.horizontal,l.vertical,s,c]),O=
|
|
57
|
-
`)),y!==null&&
|
|
45
|
+
`))}b[p]={}}}};Object.keys(y.components).forEach(b=>{const v=y.components[b].styleOverrides;v&&b.startsWith("Mui")&&f(v,b)})}return y.unstable_sxConfig={...Gn,...d?.unstable_sxConfig},y.unstable_sx=function(f){return wn({sx:f,theme:this})},y.toRuntimeSource=Ay,pE(y),y}function nu(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 hE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=nu(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Dy(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function qy(e){return e==="dark"?hE:[]}function mE(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:i,...a}=e,l=tu({...t,colorSpace:i});return{palette:l,opacity:{...Dy(l.mode),...r},overlays:n||qy(l.mode),...a}}function yE(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const gE=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],vE=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?.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return gE(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 bE(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function oe(e,t,r){!e[t]&&r&&(e[t]=r)}function Zn(e){return typeof e!="string"||!e.startsWith("hsl")?e:wy(e)}function Rr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Yn(Zn(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().
|
|
46
|
+
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 _E(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const gr=e=>{try{return e()}catch{}},wE=(e="mui")=>LS(e);function ou(e,t,r,n,i){if(!r)return;r=r===!0?{}:r;const a=i==="dark"?"dark":"light";if(!n){t[i]=mE({...r,palette:{mode:a,...r?.palette},colorSpace:e});return}const{palette:l,...s}=ru({...n,palette:{mode:a,...r?.palette},colorSpace:e});return t[i]={...r,palette:l,opacity:{...Dy(a),...r?.opacity},overlays:r?.overlays||qy(a)},s}function SE(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",nativeColor:l=!1,shouldSkipGeneratingVar:s=yE,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...d}=e,m=Object.keys(r)[0],h=n||(r.light&&m!=="light"?"light":m),y=wE(a),{[h]:g,light:f,dark:b,...v}=r,p={...v};let _=g;if((h==="dark"&&!("dark"in r)||h==="light"&&!("light"in r))&&(_=!0),!_)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:hr(21,h));let S;l&&(S="oklch");const w=ou(S,p,_,d,h);f&&!p.light&&ou(S,p,f,void 0,"light"),b&&!p.dark&&ou(S,p,b,void 0,"dark");let E={defaultColorScheme:h,...w,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:u,getCssVar:y,colorSchemes:p,font:{...ZS(w.typography),...w.font},spacing:_E(d.spacing)};Object.keys(E.colorSchemes).forEach(R=>{const O=E.colorSchemes[R].palette,q=U=>{const W=U.split("-"),le=W[1],ce=W[2];return y(U,O[le][ce])};O.mode==="light"&&(oe(O.common,"background","#fff"),oe(O.common,"onBackground","#000")),O.mode==="dark"&&(oe(O.common,"background","#000"),oe(O.common,"onBackground","#fff"));function N(U,W,le){if(S){let ce;return U===nn&&(ce=`transparent ${((1-le)*100).toFixed(0)}%`),U===rt&&(ce=`#000 ${(le*100).toFixed(0)}%`),U===nt&&(ce=`#fff ${(le*100).toFixed(0)}%`),`color-mix(in ${S}, ${W}, ${ce})`}return U(W,le)}if(bE(O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),O.mode==="light"){oe(O.Alert,"errorColor",N(rt,O.error.light,.6)),oe(O.Alert,"infoColor",N(rt,O.info.light,.6)),oe(O.Alert,"successColor",N(rt,O.success.light,.6)),oe(O.Alert,"warningColor",N(rt,O.warning.light,.6)),oe(O.Alert,"errorFilledBg",q("palette-error-main")),oe(O.Alert,"infoFilledBg",q("palette-info-main")),oe(O.Alert,"successFilledBg",q("palette-success-main")),oe(O.Alert,"warningFilledBg",q("palette-warning-main")),oe(O.Alert,"errorFilledColor",gr(()=>O.getContrastText(O.error.main))),oe(O.Alert,"infoFilledColor",gr(()=>O.getContrastText(O.info.main))),oe(O.Alert,"successFilledColor",gr(()=>O.getContrastText(O.success.main))),oe(O.Alert,"warningFilledColor",gr(()=>O.getContrastText(O.warning.main))),oe(O.Alert,"errorStandardBg",N(nt,O.error.light,.9)),oe(O.Alert,"infoStandardBg",N(nt,O.info.light,.9)),oe(O.Alert,"successStandardBg",N(nt,O.success.light,.9)),oe(O.Alert,"warningStandardBg",N(nt,O.warning.light,.9)),oe(O.Alert,"errorIconColor",q("palette-error-main")),oe(O.Alert,"infoIconColor",q("palette-info-main")),oe(O.Alert,"successIconColor",q("palette-success-main")),oe(O.Alert,"warningIconColor",q("palette-warning-main")),oe(O.AppBar,"defaultBg",q("palette-grey-100")),oe(O.Avatar,"defaultBg",q("palette-grey-400")),oe(O.Button,"inheritContainedBg",q("palette-grey-300")),oe(O.Button,"inheritContainedHoverBg",q("palette-grey-A100")),oe(O.Chip,"defaultBorder",q("palette-grey-400")),oe(O.Chip,"defaultAvatarColor",q("palette-grey-700")),oe(O.Chip,"defaultIconColor",q("palette-grey-700")),oe(O.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(O.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(O.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(O.LinearProgress,"primaryBg",N(nt,O.primary.main,.62)),oe(O.LinearProgress,"secondaryBg",N(nt,O.secondary.main,.62)),oe(O.LinearProgress,"errorBg",N(nt,O.error.main,.62)),oe(O.LinearProgress,"infoBg",N(nt,O.info.main,.62)),oe(O.LinearProgress,"successBg",N(nt,O.success.main,.62)),oe(O.LinearProgress,"warningBg",N(nt,O.warning.main,.62)),oe(O.Skeleton,"bg",S?N(nn,O.text.primary,.11):`rgba(${q("palette-text-primaryChannel")} / 0.11)`),oe(O.Slider,"primaryTrack",N(nt,O.primary.main,.62)),oe(O.Slider,"secondaryTrack",N(nt,O.secondary.main,.62)),oe(O.Slider,"errorTrack",N(nt,O.error.main,.62)),oe(O.Slider,"infoTrack",N(nt,O.info.main,.62)),oe(O.Slider,"successTrack",N(nt,O.success.main,.62)),oe(O.Slider,"warningTrack",N(nt,O.warning.main,.62));const U=S?N(rt,O.background.default,.6825):Ji(O.background.default,.8);oe(O.SnackbarContent,"bg",U),oe(O.SnackbarContent,"color",gr(()=>S?eu.text.primary:O.getContrastText(U))),oe(O.SpeedDialAction,"fabHoverBg",Ji(O.background.paper,.15)),oe(O.StepConnector,"border",q("palette-grey-400")),oe(O.StepContent,"border",q("palette-grey-400")),oe(O.Switch,"defaultColor",q("palette-common-white")),oe(O.Switch,"defaultDisabledColor",q("palette-grey-100")),oe(O.Switch,"primaryDisabledColor",N(nt,O.primary.main,.62)),oe(O.Switch,"secondaryDisabledColor",N(nt,O.secondary.main,.62)),oe(O.Switch,"errorDisabledColor",N(nt,O.error.main,.62)),oe(O.Switch,"infoDisabledColor",N(nt,O.info.main,.62)),oe(O.Switch,"successDisabledColor",N(nt,O.success.main,.62)),oe(O.Switch,"warningDisabledColor",N(nt,O.warning.main,.62)),oe(O.TableCell,"border",N(nt,N(nn,O.divider,1),.88)),oe(O.Tooltip,"bg",N(nn,O.grey[700],.92))}if(O.mode==="dark"){oe(O.Alert,"errorColor",N(nt,O.error.light,.6)),oe(O.Alert,"infoColor",N(nt,O.info.light,.6)),oe(O.Alert,"successColor",N(nt,O.success.light,.6)),oe(O.Alert,"warningColor",N(nt,O.warning.light,.6)),oe(O.Alert,"errorFilledBg",q("palette-error-dark")),oe(O.Alert,"infoFilledBg",q("palette-info-dark")),oe(O.Alert,"successFilledBg",q("palette-success-dark")),oe(O.Alert,"warningFilledBg",q("palette-warning-dark")),oe(O.Alert,"errorFilledColor",gr(()=>O.getContrastText(O.error.dark))),oe(O.Alert,"infoFilledColor",gr(()=>O.getContrastText(O.info.dark))),oe(O.Alert,"successFilledColor",gr(()=>O.getContrastText(O.success.dark))),oe(O.Alert,"warningFilledColor",gr(()=>O.getContrastText(O.warning.dark))),oe(O.Alert,"errorStandardBg",N(rt,O.error.light,.9)),oe(O.Alert,"infoStandardBg",N(rt,O.info.light,.9)),oe(O.Alert,"successStandardBg",N(rt,O.success.light,.9)),oe(O.Alert,"warningStandardBg",N(rt,O.warning.light,.9)),oe(O.Alert,"errorIconColor",q("palette-error-main")),oe(O.Alert,"infoIconColor",q("palette-info-main")),oe(O.Alert,"successIconColor",q("palette-success-main")),oe(O.Alert,"warningIconColor",q("palette-warning-main")),oe(O.AppBar,"defaultBg",q("palette-grey-900")),oe(O.AppBar,"darkBg",q("palette-background-paper")),oe(O.AppBar,"darkColor",q("palette-text-primary")),oe(O.Avatar,"defaultBg",q("palette-grey-600")),oe(O.Button,"inheritContainedBg",q("palette-grey-800")),oe(O.Button,"inheritContainedHoverBg",q("palette-grey-700")),oe(O.Chip,"defaultBorder",q("palette-grey-700")),oe(O.Chip,"defaultAvatarColor",q("palette-grey-300")),oe(O.Chip,"defaultIconColor",q("palette-grey-300")),oe(O.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(O.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(O.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(O.LinearProgress,"primaryBg",N(rt,O.primary.main,.5)),oe(O.LinearProgress,"secondaryBg",N(rt,O.secondary.main,.5)),oe(O.LinearProgress,"errorBg",N(rt,O.error.main,.5)),oe(O.LinearProgress,"infoBg",N(rt,O.info.main,.5)),oe(O.LinearProgress,"successBg",N(rt,O.success.main,.5)),oe(O.LinearProgress,"warningBg",N(rt,O.warning.main,.5)),oe(O.Skeleton,"bg",S?N(nn,O.text.primary,.13):`rgba(${q("palette-text-primaryChannel")} / 0.13)`),oe(O.Slider,"primaryTrack",N(rt,O.primary.main,.5)),oe(O.Slider,"secondaryTrack",N(rt,O.secondary.main,.5)),oe(O.Slider,"errorTrack",N(rt,O.error.main,.5)),oe(O.Slider,"infoTrack",N(rt,O.info.main,.5)),oe(O.Slider,"successTrack",N(rt,O.success.main,.5)),oe(O.Slider,"warningTrack",N(rt,O.warning.main,.5));const U=S?N(nt,O.background.default,.985):Ji(O.background.default,.98);oe(O.SnackbarContent,"bg",U),oe(O.SnackbarContent,"color",gr(()=>S?Py.text.primary:O.getContrastText(U))),oe(O.SpeedDialAction,"fabHoverBg",Ji(O.background.paper,.15)),oe(O.StepConnector,"border",q("palette-grey-600")),oe(O.StepContent,"border",q("palette-grey-600")),oe(O.Switch,"defaultColor",q("palette-grey-300")),oe(O.Switch,"defaultDisabledColor",q("palette-grey-600")),oe(O.Switch,"primaryDisabledColor",N(rt,O.primary.main,.55)),oe(O.Switch,"secondaryDisabledColor",N(rt,O.secondary.main,.55)),oe(O.Switch,"errorDisabledColor",N(rt,O.error.main,.55)),oe(O.Switch,"infoDisabledColor",N(rt,O.info.main,.55)),oe(O.Switch,"successDisabledColor",N(rt,O.success.main,.55)),oe(O.Switch,"warningDisabledColor",N(rt,O.warning.main,.55)),oe(O.TableCell,"border",N(rt,N(nn,O.divider,1),.68)),oe(O.Tooltip,"bg",N(nn,O.grey[700],.92))}Rr(O.background,"default"),Rr(O.background,"paper"),Rr(O.common,"background"),Rr(O.common,"onBackground"),Rr(O,"divider"),Object.keys(O).forEach(U=>{const W=O[U];U!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&oe(O[U],"mainChannel",Yn(Zn(W.main))),W.light&&oe(O[U],"lightChannel",Yn(Zn(W.light))),W.dark&&oe(O[U],"darkChannel",Yn(Zn(W.dark))),W.contrastText&&oe(O[U],"contrastTextChannel",Yn(Zn(W.contrastText))),U==="text"&&(Rr(O[U],"primary"),Rr(O[U],"secondary")),U==="action"&&(W.active&&Rr(O[U],"active"),W.selected&&Rr(O[U],"selected")))})}),E=t.reduce((R,O)=>kt(R,O),E);const x={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:vE(E),enableContrastVars:l},{vars:P,generateThemeVars:k,generateStyleSheets:M}=VS(E,x);return E.vars=P,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([R,O])=>{E[R]=O}),E.generateThemeVars=k,E.generateStyleSheets=M,E.generateSpacing=function(){return dy(d.spacing,Uc(this))},E.getColorSchemeSelector=BS(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=s,E.unstable_sxConfig={...Gn,...d?.unstable_sxConfig},E.unstable_sx=function(O){return wn({sx:O,theme:this})},E.toRuntimeSource=Ay,E}function Ly(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:tu({...r===!0?{}:r.palette,mode:t})})}function EE(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...l}=e,s=a||"light",c=i?.[s],u={...i,...r?{[s]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return ru(e,...t);let d=r;"palette"in e||u[s]&&(u[s]!==!0?d=u[s].palette:s==="dark"&&(d={mode:"dark"}));const m=ru({...e,palette:d},...t);return m.defaultColorScheme=s,m.colorSchemes=u,m.palette.mode==="light"&&(m.colorSchemes.light={...u.light!==!0&&u.light,palette:m.palette},Ly(m,"dark",u.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:m.palette},Ly(m,"light",u.light)),m}return!r&&!("light"in u)&&s==="light"&&(u.light=!0),SE({...l,colorSchemes:u,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const iu=EE(),au="$$material";function su(){const e=fy(iu);return process.env.NODE_ENV!=="production"&&j.useDebugValue(e),e[au]||e}function Fy(e){return F.jsx(py,{...e,defaultTheme:iu,themeId:au})}process.env.NODE_ENV!=="production"&&(Fy.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function zy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const It=e=>zy(e)&&e!=="classes",me=by({themeId:au,defaultTheme:iu,rootShouldForwardProp:It});function OE(e){return function(r){return F.jsx(Fy,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function xE(){return tS}process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function We(e){return DS(e)}function cr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function CE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function TE(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"&&!CE(a)&&(s="Did you accidentally provide a plain function component instead?"),a===j.Fragment&&(s="Did you accidentally provide a React.Fragment 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 lu=cr(o.elementType,TE);function Xi(e){return typeof e=="string"}function Vy(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 St(...e){const t=j.useRef(void 0),r=j.useCallback(n=>{const i=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const l=a,s=l(n);return typeof s=="function"?s:()=>{l(null)}}return a.current=n,()=>{a.current=null}});return()=>{i.forEach(a=>a?.())}},e);return j.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function ur(e){const t=j.useRef(e);return yr(()=>{t.current=e}),j.useRef((...r)=>(0,t.current)(...r)).current}function Kt(e){return e&&e.ownerDocument||document}function kr(e){return Kt(e).defaultView||window}function Zi(e){return parseInt(e,10)||0}const PE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function $E(e){for(const t in e)return!1;return!0}function By(e){return $E(e)||e.outerHeightStyle===0&&!e.overflowing}const Uy=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),d=j.useRef(null),m=St(r,d),h=j.useRef(null),y=j.useRef(null),g=j.useCallback(()=>{const _=d.current,S=y.current;if(!_||!S)return;const E=kr(_).getComputedStyle(_);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=E.width,S.value=_.value||t.placeholder||"x",S.value.slice(-1)===`
|
|
47
|
+
`&&(S.value+=" ");const x=E.boxSizing,P=Zi(E.paddingBottom)+Zi(E.paddingTop),k=Zi(E.borderBottomWidth)+Zi(E.borderTopWidth),M=S.scrollHeight;S.value="x";const R=S.scrollHeight;let O=M;a&&(O=Math.max(Number(a)*R,O)),i&&(O=Math.min(Number(i)*R,O)),O=Math.max(O,R);const q=O+(x==="border-box"?P+k:0),N=Math.abs(O-M)<=1;return{outerHeightStyle:q,overflowing:N}},[i,a,t.placeholder]),f=ur(()=>{const _=d.current,S=g();if(!_||!S||By(S))return!1;const w=S.outerHeightStyle;return h.current!=null&&h.current!==w}),b=j.useCallback(()=>{const _=d.current,S=g();if(!_||!S||By(S))return;const w=S.outerHeightStyle;h.current!==w&&(h.current=w,_.style.height=`${w}px`),_.style.overflow=S.overflowing?"hidden":""},[g]),v=j.useRef(-1);yr(()=>{const _=Vy(b),S=d?.current;if(!S)return;const w=kr(S);w.addEventListener("resize",_);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{f()&&(E.unobserve(S),cancelAnimationFrame(v.current),b(),v.current=requestAnimationFrame(()=>{E.observe(S)}))}),E.observe(S)),()=>{_.clear(),cancelAnimationFrame(v.current),w.removeEventListener("resize",_),E&&E.disconnect()}},[g,b,f]),yr(()=>{b()});const p=_=>{u||b();const S=_.target,w=S.value.length,E=S.value.endsWith(`
|
|
48
|
+
`),x=S.selectionStart===w;E&&x&&S.setSelectionRange(w,w),n&&n(_)};return F.jsxs(j.Fragment,{children:[F.jsx("textarea",{value:s,onChange:p,ref:m,rows:a,style:l,...c}),F.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...PE.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Uy.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 Ur({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 Qi=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Qi.displayName="FormControlContext");function vr(){return j.useContext(Qi)}const ze=qS;function Wy(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ea(e,t=!1){return e&&(Wy(e.value)&&e.value!==""||t&&Wy(e.defaultValue)&&e.defaultValue!=="")}function RE(e){return e.startAdornment}function kE(e){return Fe("MuiInputBase",e)}const Gt=Le("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Hy;const ta=(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${pe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ra=(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]},IE=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:l,formControl:s,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:m,size:h,startAdornment:y,type:g}=e,f={root:["root",`color${pe(r)}`,n&&"disabled",i&&"error",c&&"fullWidth",l&&"focused",s&&"formControl",h&&h!=="medium"&&`size${pe(h)}`,d&&"multiline",y&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",m&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",y&&"inputAdornedStart",a&&"inputAdornedEnd",m&&"readOnly"]};return Be(f,kE,t)},na=me("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ta})(ze(({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",[`&.${Gt.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%"}}]}))),oa=me("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ra})(ze(({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] + .${Gt.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},[`&.${Gt.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"}}]}})),Ky=OE({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ia=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,color:c,components:u={},componentsProps:d={},defaultValue:m,disabled:h,disableInjectingGlobalStyles:y,endAdornment:g,error:f,fullWidth:b=!1,id:v,inputComponent:p="input",inputProps:_={},inputRef:S,margin:w,maxRows:E,minRows:x,multiline:P=!1,name:k,onBlur:M,onChange:R,onClick:O,onFocus:q,onKeyDown:N,onKeyUp:U,placeholder:W,readOnly:le,renderSuffix:ce,rows:ue,size:z,slotProps:C={},slots:V={},startAdornment:A,type:T="text",value:$,...D}=n,K=_.value!=null?_.value:$,{current:re}=j.useRef(K!=null),ie=j.useRef(),te=j.useCallback(Oe=>{process.env.NODE_ENV!=="production"&&Oe&&Oe.nodeName!=="INPUT"&&!Oe.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
49
|
+
`))},[]),L=St(ie,S,_.ref,te),[I,G]=j.useState(!1),X=vr();process.env.NODE_ENV!=="production"&&j.useEffect(()=>{if(X)return X.registerEffect()},[X]);const ne=Ur({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ne.focused=X?X.focused:I,j.useEffect(()=>{!X&&h&&I&&(G(!1),M&&M())},[X,h,I,M]);const he=X&&X.onFilled,ve=X&&X.onEmpty,fe=j.useCallback(Oe=>{ea(Oe)?he&&he():ve&&ve()},[he,ve]);yr(()=>{re&&fe({value:K})},[K,fe,re]);const Te=Oe=>{q&&q(Oe),_.onFocus&&_.onFocus(Oe),X&&X.onFocus?X.onFocus(Oe):G(!0)},be=Oe=>{M&&M(Oe),_.onBlur&&_.onBlur(Oe),X&&X.onBlur?X.onBlur(Oe):G(!1)},Ee=(Oe,...He)=>{if(!re){const dt=Oe.target||ie.current;if(dt==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.":hr(1));fe({value:dt.value})}_.onChange&&_.onChange(Oe,...He),R&&R(Oe,...He)};j.useEffect(()=>{fe(ie.current)},[]);const ge=Oe=>{ie.current&&Oe.currentTarget===Oe.target&&ie.current.focus(),O&&O(Oe)};let $e=p,Ie=_;P&&$e==="input"&&(ue?(process.env.NODE_ENV!=="production"&&(x||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ie={type:void 0,minRows:ue,maxRows:ue,...Ie}):Ie={type:void 0,maxRows:E,minRows:x,...Ie},$e=Uy);const ot=Oe=>{fe(Oe.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};j.useEffect(()=>{X&&X.setAdornedStart(!!A)},[X,A]);const Qe={...n,color:ne.color||"primary",disabled:ne.disabled,endAdornment:g,error:ne.error,focused:ne.focused,formControl:X,fullWidth:b,hiddenLabel:ne.hiddenLabel,multiline:P,size:ne.size,startAdornment:A,type:T},_t=IE(Qe),et=V.root||u.Root||na,Tt=C.root||d.root||{},Je=V.input||u.Input||oa;return Ie={...Ie,...C.input??d.input},F.jsxs(j.Fragment,{children:[!y&&typeof Ky=="function"&&(Hy||(Hy=F.jsx(Ky,{}))),F.jsxs(et,{...Tt,ref:r,onClick:ge,...D,...!Xi(et)&&{ownerState:{...Qe,...Tt.ownerState}},className:xe(_t.root,Tt.className,s,le&&"MuiInputBase-readOnly"),children:[A,F.jsx(Qi.Provider,{value:null,children:F.jsx(Je,{"aria-invalid":ne.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:m,disabled:ne.disabled,id:v,onAnimationStart:ot,name:k,placeholder:W,readOnly:le,required:ne.required,rows:ue,value:K,onKeyDown:N,onKeyUp:U,type:T,...Ie,...!Xi(Je)&&{as:$e,ownerState:{...Qe,...Ie.ownerState}},ref:L,className:xe(_t.input,Ie.className,le&&"MuiInputBase-readOnly"),onBlur:be,onChange:Ee,onFocus:Te})}),g,ce?ce({...ne,startAdornment:A}):null]})]})});process.env.NODE_ENV!=="production"&&(ia.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:lu,inputProps:o.object,inputRef:zt,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 jE(e){return typeof e.main=="string"}function NE(e,t=[]){if(!jE(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&&NE(t,e)}function AE(e){return Fe("MuiInput",e)}const Wr={...Gt,...Le("MuiInput",["root","underline","input"])},ME=e=>{const{classes:t,disableUnderline:r}=e,i=Be({root:["root",!r&&"underline"],input:["input"]},AE,t);return{...t,...i}},DE=me(na,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ta(e,t),!r.disableUnderline&&t.underline]}})(ze(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=e.alpha(e.vars.palette.common.onBackground,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"},[`&.${Wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wr.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(.${Wr.disabled}, .${Wr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wr.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}`}}}))]}})),qE=me(oa,{name:"MuiInput",slot:"Input",overridesResolver:ra})({}),aa=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:m={},type:h="text",...y}=n,g=ME(n),b={root:{ownerState:{disableUnderline:i}}},v=d??l?kt(d??l,b):b,p=m.root??a.Root??DE,_=m.input??a.Input??qE;return F.jsx(ia,{slots:{root:p,input:_},slotProps:v,fullWidth:s,inputComponent:c,multiline:u,ref:r,type:h,...y,classes:g})});process.env.NODE_ENV!=="production"&&(aa.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:zt,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}),aa.muiName="Input";function LE(e){return Fe("MuiFilledInput",e)}const Yt={...Gt,...Le("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function cu(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function FE(e){return Fe("MuiSvgIcon",e)}Le("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zE=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${pe(t)}`,`fontSize${pe(r)}`]};return Be(i,FE,n)},VE=me("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${pe(r.color)}`],t[`fontSize${pe(r.fontSize)}`]]}})(ze(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),sa=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:l="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:m,viewBox:h="0 0 24 24",...y}=n,g=j.isValidElement(i)&&i.type==="svg",f={...n,color:l,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},b={};d||(b.viewBox=h);const v=zE(f);return F.jsxs(VE,{as:s,className:xe(v.root,a),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r,...b,...y,...g&&i.props,ownerState:f,children:[g?i.props.children:i,m?F.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(sa.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}),sa.muiName="SvgIcon";function Ct(e,t){function r(n,i){return F.jsx(sa,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=sa.muiName,j.memo(j.forwardRef(r))}function uu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function BE(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 on(e){const{controlled:t,default:r,name:n,state:i="value"}=e,{current:a}=j.useRef(t!==void 0),[l,s]=j.useState(r),c=a?t:l;if(process.env.NODE_ENV!=="production"){j.useEffect(()=>{a!==(t!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${i} state of ${n} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} 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(`
|
|
50
|
+
`))},[i,n,t]);const{current:d}=j.useRef(r);j.useEffect(()=>{!a&&JSON.stringify(r)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
51
|
+
`))},[JSON.stringify(r)])}const u=j.useCallback(d=>{a||s(d)},[]);return[c,u]}function UE(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function Gy(e,t){if(!e)return t;function r(l,s){const c={};return Object.keys(s).forEach(u=>{UE(u,s[u])&&typeof l[u]=="function"&&(c[u]=(...d)=>{l[u](...d),s[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return l=>{const s=typeof t=="function"?t(l):t,c=typeof e=="function"?e({...l,...s}):e,u=xe(l?.className,s?.className,c?.className),d=r(c,s);return{...s,...c,...d,...!!u&&{className:u},...s?.style&&c?.style&&{style:{...s.style,...c.style}},...s?.sx&&c?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const n=t,i=r(e,n),a=xe(n?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const WE=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${pe(a)}`,l&&"hiddenLabel",s&&"multiline"],input:["input"]},u=Be(c,LE,t);return{...t,...u}},HE=me(na,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ta(e,t),!r.disableUnderline&&t.underline]}})(ze(({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}},[`&.${Yt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${Yt.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"},[`&.${Yt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):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(.${Yt.disabled}, .${Yt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Yt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($t()).map(([l])=>({props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[l]?.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}}]}})),KE=me(oa,{name:"MuiFilledInput",slot:"Input",overridesResolver:ra})(ze(({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}}]}))),la=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:m,slots:h={},type:y="text",...g}=n,f={...n,disableUnderline:i,fullWidth:s,inputComponent:u,multiline:d,type:y},b=WE(n),v={root:{ownerState:f},input:{ownerState:f}},p=m??l?kt(v,m??l):v,_=h.root??a.Root??HE,S=h.input??a.Input??KE;return F.jsx(ia,{slots:{root:_,input:S},slotProps:p,fullWidth:s,inputComponent:u,multiline:d,ref:r,type:y,...g,classes:b})});process.env.NODE_ENV!=="production"&&(la.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:zt,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}),la.muiName="Input";var Yy;const GE=me("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:It})({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%"}),YE=me("legend",{name:"MuiNotchedOutlined",shouldForwardProp:It})(ze(({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 Jy(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 F.jsx(GE,{"aria-hidden":!0,className:n,ownerState:c,...l,children:F.jsx(YE,{ownerState:c,children:s?F.jsx("span",{children:i}):Yy||(Yy=F.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(Jy.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});function JE(e){return Fe("MuiOutlinedInput",e)}const er={...Gt,...Le("MuiOutlinedInput",["root","notchedOutline","input"])};function Xy(e,t,r){return e===void 0||Xi(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Zy(e,t,r){return typeof e=="function"?e(t,r):e}function Qy(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 eg(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 tg(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const y=xe(r?.className,a,i?.className,n?.className),g={...r?.style,...i?.style,...n?.style},f={...r,...i,...n};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const l=Qy({...i,...n}),s=eg(n),c=eg(i),u=t(l),d=xe(u?.className,r?.className,a,i?.className,n?.className),m={...u?.style,...r?.style,...i?.style,...n?.style},h={...u,...r,...c,...s};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function ut(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:a,internalForwardedProps:l,shouldForwardComponentProp:s=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:m={[e]:void 0},...h}=a,y=d[e]||n,g=Zy(m[e],i),{props:{component:f,...b},internalRef:v}=tg({className:r,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),p=St(v,g?.ref,t.ref),_=e==="root"?f||u:f,S=Xy(y,{...e==="root"&&!u&&!d[e]&&l,...e!=="root"&&!d[e]&&l,...b,..._&&!s&&{as:_},..._&&s&&{component:_},ref:p},i);return[y,S]}const XE=e=>{const{classes:t}=e,n=Be({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},JE,t);return{...t,...n}},ZE=me(na,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ta})(ze(({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?e.alpha(e.vars.palette.common.onBackground,.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"}}]}})),QE=me(Jy,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ze(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),eO=me(oa,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ra})(ze(({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}}]}))),ca=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:l="input",label:s,multiline:c=!1,notched:u,slots:d={},slotProps:m={},type:h="text",...y}=n,g=XE(n),f=vr(),b=Ur({props:n,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...n,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:f,fullWidth:a,hiddenLabel:b.hiddenLabel,multiline:c,size:b.size,type:h},p=d.root??i.Root??ZE,_=d.input??i.Input??eO,[S,w]=ut("notchedOutline",{elementType:QE,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:d,slotProps:m},additionalProps:{label:s!=null&&s!==""&&b.required?F.jsxs(j.Fragment,{children:[s," ","*"]}):s}});return F.jsx(ia,{slots:{root:p,input:_},slotProps:m,renderSuffix:E=>F.jsx(S,{...w,notched:typeof u<"u"?u:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:a,inputComponent:l,multiline:c,ref:r,type:h,...y,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(ca.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:zt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),ca.muiName="Input";function tO(e){return Fe("MuiFormLabel",e)}const Qn=Le("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),rO=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:l,required:s}=e,c={root:["root",`color${pe(r)}`,i&&"disabled",a&&"error",l&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Be(c,tO,t)},nO=me("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(ze(({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:{[`&.${Qn.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Qn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qn.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),oO=me("span",{name:"MuiFormLabel",slot:"Asterisk"})(ze(({theme:e})=>({[`&.${Qn.error}`]:{color:(e.vars||e).palette.error.main}}))),Hr=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormLabel"}),{children:i,className:a,color:l,component:s="label",disabled:c,error:u,filled:d,focused:m,required:h,...y}=n,g=vr(),f=Ur({props:n,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),b={...n,color:f.color||"primary",component:s,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},v=rO(b);return F.jsxs(nO,{as:s,ownerState:b,className:xe(v.root,a),ref:r,...y,children:[i,f.required&&F.jsxs(oO,{ownerState:b,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Hr.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 iO(e){return Fe("MuiInputLabel",e)}Le("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const aO=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!=="medium"&&`size${pe(n)}`,l],asterisk:[s&&"asterisk"]},u=Be(c,iO,t);return{...t,...u}},sO=me(Hr,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Qn.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]]}})(ze(({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)"}}]}))),ua=j.forwardRef(function(t,r){const n=We({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:a,shrink:l,variant:s,className:c,...u}=n,d=vr();let m=l;typeof m>"u"&&d&&(m=d.filled||d.focused||d.adornedStart);const h=Ur({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),y={...n,disableAnimation:i,formControl:d,shrink:m,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=aO(y);return F.jsx(sO,{"data-shrink":m,ref:r,className:xe(g.root,c),...u,ownerState:y,classes:g})});process.env.NODE_ENV!=="production"&&(ua.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function lO(e){return Fe("MuiFormControl",e)}Le("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const cO=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${pe(r)}`,n&&"fullWidth"]};return Be(i,lO,t)},uO=me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${pe(r.margin)}`],r.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%"}}]}),Tn=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormControl"}),{children:i,className:a,color:l="primary",component:s="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:m=!1,hiddenLabel:h=!1,margin:y="none",required:g=!1,size:f="medium",variant:b="outlined",...v}=n,p={...n,color:l,component:s,disabled:c,error:u,fullWidth:m,hiddenLabel:h,margin:y,required:g,size:f,variant:b},_=cO(p),[S,w]=j.useState(()=>{let W=!1;return i&&j.Children.forEach(i,le=>{if(!Qc(le,["Input","Select"]))return;const ce=Qc(le,["Select"])?le.props.input:le;ce&&RE(ce.props)&&(W=!0)}),W}),[E,x]=j.useState(()=>{let W=!1;return i&&j.Children.forEach(i,le=>{Qc(le,["Input","Select"])&&(ea(le.props,!0)||ea(le.props.inputProps,!0))&&(W=!0)}),W}),[P,k]=j.useState(!1);c&&P&&k(!1);const M=d!==void 0&&!c?d:P;let R;const O=j.useRef(!1);process.env.NODE_ENV!=="production"&&(R=()=>(O.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
52
|
+
`)),O.current=!0,()=>{O.current=!1}));const q=j.useCallback(()=>{x(!0)},[]),N=j.useCallback(()=>{x(!1)},[]),U=j.useMemo(()=>({adornedStart:S,setAdornedStart:w,color:l,disabled:c,error:u,filled:E,focused:M,fullWidth:m,hiddenLabel:h,size:f,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:N,onFilled:q,registerEffect:R,required:g,variant:b}),[S,l,c,u,E,M,m,h,R,N,q,g,f,b]);return F.jsx(Qi.Provider,{value:U,children:F.jsx(uO,{as:s,ownerState:p,className:xe(_.root,a),ref:r,...v,children:i})})});process.env.NODE_ENV!=="production"&&(Tn.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 dO(e){return Fe("MuiFormHelperText",e)}const rg=Le("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ng;const fO=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${pe(n)}`,r&&"contained",s&&"focused",l&&"filled",c&&"required"]};return Be(u,dO,t)},pO=me("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${pe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${rg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rg.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}}]}))),eo=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:l="p",disabled:s,error:c,filled:u,focused:d,margin:m,required:h,variant:y,...g}=n,f=vr(),b=Ur({props:n,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),v={...n,component:l,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete v.ownerState;const p=fO(v);return F.jsx(pO,{as:l,className:xe(p.root,a),ref:r,...g,ownerState:v,children:i===" "?ng||(ng=F.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});process.env.NODE_ENV!=="production"&&(eo.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function to(e){return parseInt(j.version,10)>=19?e?.props?.ref||null:e?.ref||null}var da={exports:{}},st={};var og;function hO(){if(og)return st;og=1;var e=Symbol.for("react.transitional.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.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case e:switch(f=f.type,f){case r:case i:case n:case c:case u:case h:return f;default:switch(f=f&&f.$$typeof,f){case l:case s:case m:case d:return f;case a:return f;default:return b}}case t:return b}}}return st.ContextConsumer=a,st.ContextProvider=l,st.Element=e,st.ForwardRef=s,st.Fragment=r,st.Lazy=m,st.Memo=d,st.Portal=t,st.Profiler=i,st.StrictMode=n,st.Suspense=c,st.SuspenseList=u,st.isContextConsumer=function(f){return g(f)===a},st.isContextProvider=function(f){return g(f)===l},st.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},st.isForwardRef=function(f){return g(f)===s},st.isFragment=function(f){return g(f)===r},st.isLazy=function(f){return g(f)===m},st.isMemo=function(f){return g(f)===d},st.isPortal=function(f){return g(f)===t},st.isProfiler=function(f){return g(f)===i},st.isStrictMode=function(f){return g(f)===n},st.isSuspense=function(f){return g(f)===c},st.isSuspenseList=function(f){return g(f)===u},st.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===n||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===d||f.$$typeof===l||f.$$typeof===a||f.$$typeof===s||f.$$typeof===y||f.getModuleId!==void 0)},st.typeOf=g,st}var lt={};var ig;function mO(){return ig||(ig=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case t:switch(f=f.type,f){case n:case a:case i:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case s:case c:case h:case m:return f;case l:return f;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.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.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");lt.ContextConsumer=l,lt.ContextProvider=s,lt.Element=t,lt.ForwardRef=c,lt.Fragment=n,lt.Lazy=h,lt.Memo=m,lt.Portal=r,lt.Profiler=a,lt.StrictMode=i,lt.Suspense=u,lt.SuspenseList=d,lt.isContextConsumer=function(f){return e(f)===l},lt.isContextProvider=function(f){return e(f)===s},lt.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},lt.isForwardRef=function(f){return e(f)===c},lt.isFragment=function(f){return e(f)===n},lt.isLazy=function(f){return e(f)===h},lt.isMemo=function(f){return e(f)===m},lt.isPortal=function(f){return e(f)===r},lt.isProfiler=function(f){return e(f)===a},lt.isStrictMode=function(f){return e(f)===i},lt.isSuspense=function(f){return e(f)===u},lt.isSuspenseList=function(f){return e(f)===d},lt.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===a||f===i||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===m||f.$$typeof===s||f.$$typeof===l||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},lt.typeOf=e})()),lt}var ag;function yO(){return ag||(ag=1,process.env.NODE_ENV==="production"?da.exports=hO():da.exports=mO()),da.exports}var du=yO();function Ir(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 sg(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1,...a}=e,l=i?{}:Zy(r,n),{props:s,internalRef:c}=tg({...a,externalSlotProps:l}),u=St(c,l?.ref,e.additionalProps?.ref);return Xy(t,{...s,ref:u},n)}const fa=j.createContext({});process.env.NODE_ENV!=="production"&&(fa.displayName="ListContext");function gO(e){return Fe("MuiList",e)}Le("MuiList",["root","padding","dense","subheader"]);const vO=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Be({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},gO,t)},bO=me("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}}]}),lg=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiList"}),{children:i,className:a,component:l="ul",dense:s=!1,disablePadding:c=!1,subheader:u,...d}=n,m=j.useMemo(()=>({dense:s}),[s]),h={...n,component:l,dense:s,disablePadding:c},y=vO(h);return F.jsx(fa.Provider,{value:m,children:F.jsxs(bO,{as:l,className:xe(y.root,a),ref:r,ownerState:h,...d,children:[u,i]})})});process.env.NODE_ENV!=="production"&&(lg.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 ro(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function cg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function fu(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function ug(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function dg(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 no(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")||!dg(s,a)||c)s=i(e,s,r);else return s.focus(),!0}return!1}const fg=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:d,variant:m="selectedMenu",...h}=t,y=j.useRef(null),g=j.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yr(()=>{i&&y.current.focus()},[i]),j.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:S})=>{const w=!y.current.style.width;if(_.clientHeight<y.current.clientHeight&&w){const E=`${cg(kr(_))}px`;y.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=E,y.current.style.width=`calc(100% + ${E})`}return y.current}}),[]);const f=_=>{const S=y.current,w=_.key;if(_.ctrlKey||_.metaKey||_.altKey){d&&d(_);return}const x=ro(Kt(S));if(w==="ArrowDown")_.preventDefault(),no(S,x,u,c,fu);else if(w==="ArrowUp")_.preventDefault(),no(S,x,u,c,ug);else if(w==="Home")_.preventDefault(),no(S,null,u,c,fu);else if(w==="End")_.preventDefault(),no(S,null,u,c,ug);else if(w.length===1){const P=g.current,k=w.toLowerCase(),M=performance.now();P.keys.length>0&&(M-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&k!==P.keys[0]&&(P.repeating=!1)),P.lastTime=M,P.keys.push(k);const R=x&&!P.repeating&&dg(x,P);P.previousKeyMatched&&(R||no(S,x,!1,c,fu,P))?_.preventDefault():P.previousKeyMatched=!1}d&&d(_)},b=St(y,r);let v=-1;j.Children.forEach(l,(_,S)=>{if(!j.isValidElement(_)){v===S&&(v+=1,v>=l.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&du.isFragment(_)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
53
|
+
`)),_.props.disabled||(m==="selectedMenu"&&_.props.selected||v===-1)&&(v=S),v===S&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(v+=1,v>=l.length&&(v=-1))});const p=j.Children.map(l,(_,S)=>{if(S===v){const w={};return a&&(w.autoFocus=!0),_.props.tabIndex===void 0&&m==="selectedMenu"&&(w.tabIndex=0),j.cloneElement(_,w)}return _});return F.jsx(lg,{role:"menu",ref:b,className:s,onKeyDown:f,tabIndex:i?0:-1,...h,children:p})});process.env.NODE_ENV!=="production"&&(fg.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 _O(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function pg(e,t,r,n){const i=e[t];if(i==null||!Number.isInteger(i)){const a=_O(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function hg(e,t,r,n){return e[t]===void 0?null:pg(e,t,r,n)}function pu(){return null}hg.isRequired=pg,pu.isRequired=pu;const hu=process.env.NODE_ENV==="production"?pu:hg,mg={};function yg(e,t){const r=j.useRef(mg);return r.current===mg&&(r.current=e(t)),r}const wO=[];function SO(e){j.useEffect(e,wO)}class mu{static create(){return new mu}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function gg(){const e=yg(mu.create).current;return SO(e.disposeEffect),e}function EO(e){const{prototype:t={}}=e;return!!t.isReactComponent}function vg(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"&&!EO(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 oo=cr(o.element,vg);oo.isRequired=cr(o.element.isRequired,vg);function yu(){return yu=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},yu.apply(null,arguments)}function bg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function gu(e,t){return gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},gu(e,t)}function _g(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gu(e,t)}const wg={disabled:!1};var OO=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 pa=ke.createContext(null);var xO=function(t){return t.scrollTop},io="unmounted",an="exited",sn="entering",Pn="entered",vu="exiting",br=(function(e){_g(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=an,a.appearStatus=sn):c=Pn:n.unmountOnExit||n.mountOnEnter?c=io:c=an,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var l=i.in;return l&&a.status===io?{status:an}: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!==sn&&l!==Pn&&(a=sn):(l===sn||l===Pn)&&(a=vu)}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===sn){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Nn.findDOMNode(this);l&&xO(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===an&&this.setState({status:io})},r.performEnter=function(i){var a=this,l=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[Nn.findDOMNode(this),s],u=c[0],d=c[1],m=this.getTimeouts(),h=s?m.appear:m.enter;if(!i&&!l||wg.disabled){this.safeSetState({status:Pn},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:sn},function(){a.props.onEntering(u,d),a.onTransitionEnd(h,function(){a.safeSetState({status:Pn},function(){a.props.onEntered(u,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,l=this.getTimeouts(),s=this.props.nodeRef?void 0:Nn.findDOMNode(this);if(!a||wg.disabled){this.safeSetState({status:an},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:vu},function(){i.props.onExiting(s),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:an},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:Nn.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],d=c[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===io)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=bg(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(pa.Provider,{value:null},typeof l=="function"?l(i,s):ke.cloneElement(ke.Children.only(l),s))},t})(ke.Component);br.contextType=pa,br.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=OO;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 $n(){}br.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$n,onEntering:$n,onEntered:$n,onExit:$n,onExiting:$n,onExited:$n},br.UNMOUNTED=io,br.EXITED=an,br.ENTERING=sn,br.ENTERED=Pn,br.EXITING=vu;function CO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bu(e,t){var r=function(a){return t&&ke.isValidElement(a)?t(a):a},n=Object.create(null);return e&&ke.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function TO(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}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 ln(e,t,r){return r[t]!=null?r[t]:e.props[t]}function PO(e,t){return bu(e.children,function(r){return ke.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:ln(r,"appear",e),enter:ln(r,"enter",e),exit:ln(r,"exit",e)})})}function $O(e,t,r){var n=bu(e.children),i=TO(t,n);return Object.keys(i).forEach(function(a){var l=i[a];if(ke.isValidElement(l)){var s=a in t,c=a in n,u=t[a],d=ke.isValidElement(u)&&!u.props.in;c&&(!s||d)?i[a]=ke.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:ln(l,"exit",e),enter:ln(l,"enter",e)}):!c&&s&&!d?i[a]=ke.cloneElement(l,{in:!1}):c&&s&&ke.isValidElement(u)&&(i[a]=ke.cloneElement(l,{onExited:r.bind(null,l),in:u.props.in,exit:ln(l,"exit",e),enter:ln(l,"enter",e)}))}}),i}var RO=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},kO={component:"div",childFactory:function(t){return t}},_u=(function(e){_g(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var l=a.handleExited.bind(CO(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?PO(i,s):$O(i,l,s),firstRender:!1}},r.handleExited=function(i,a){var l=bu(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var c=yu({},s.children);return delete c[i.key],{children:c}}))},r.render=function(){var i=this.props,a=i.component,l=i.childFactory,s=bg(i,["component","childFactory"]),c=this.state.contextValue,u=RO(this.state.children).map(l);return delete s.appear,delete s.enter,delete s.exit,a===null?ke.createElement(pa.Provider,{value:c},u):ke.createElement(pa.Provider,{value:c},ke.createElement(a,s,u))},t})(ke.Component);_u.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},_u.defaultProps=kO;const Sg=e=>e.scrollTop;function ha(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 wu(e){return`scale(${e}, ${e**2})`}const IO={entering:{opacity:1,transform:wu(1)},entered:{opacity:1,transform:"none"}},Su=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ma=j.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:m,onExited:h,onExiting:y,style:g,timeout:f="auto",TransitionComponent:b=br,...v}=t,p=gg(),_=j.useRef(),S=su(),w=j.useRef(null),E=St(w,to(a),r),x=U=>W=>{if(U){const le=w.current;W===void 0?U(le):U(le,W)}},P=x(d),k=x((U,W)=>{Sg(U);const{duration:le,delay:ce,easing:ue}=ha({style:g,timeout:f,easing:l},{mode:"enter"});let z;f==="auto"?(z=S.transitions.getAutoHeightDuration(U.clientHeight),_.current=z):z=le,U.style.transition=[S.transitions.create("opacity",{duration:z,delay:ce}),S.transitions.create("transform",{duration:Su?z:z*.666,delay:ce,easing:ue})].join(","),c&&c(U,W)}),M=x(u),R=x(y),O=x(U=>{const{duration:W,delay:le,easing:ce}=ha({style:g,timeout:f,easing:l},{mode:"exit"});let ue;f==="auto"?(ue=S.transitions.getAutoHeightDuration(U.clientHeight),_.current=ue):ue=W,U.style.transition=[S.transitions.create("opacity",{duration:ue,delay:le}),S.transitions.create("transform",{duration:Su?ue:ue*.666,delay:Su?le:le||ue*.333,easing:ce})].join(","),U.style.opacity=0,U.style.transform=wu(.75),m&&m(U)}),q=x(h),N=U=>{f==="auto"&&p.start(_.current||0,U),n&&n(w.current,U)};return F.jsx(b,{appear:i,in:s,nodeRef:w,onEnter:k,onEntered:M,onEntering:P,onExit:O,onExited:q,onExiting:R,addEndListener:N,timeout:f==="auto"?null:f,...v,children:(U,{ownerState:W,...le})=>j.cloneElement(a,{style:{opacity:0,transform:wu(.75),visibility:U==="exited"&&!s?"hidden":void 0,...IO[U],...g,...a.props.style},ref:E,...le})})});process.env.NODE_ENV!=="production"&&(ma.propTypes={addEndListener:o.func,appear:o.bool,children:oo.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})])}),ma&&(ma.muiSupportAuto=!0);function jO(e){const t=Kt(e);return t.body===e?kr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ao(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Eg(e){return parseFloat(kr(e).getComputedStyle(e).paddingRight)||0}function NO(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 Og(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,l=>{const s=!a.includes(l),c=!NO(l);s&&c&&ao(l,i)})}function Eu(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function AO(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(jO(n)){const l=cg(kr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Eg(n)+l}px`;const s=Kt(n).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Eg(c)+l}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Kt(n).body;else{const l=n.parentElement,s=kr(n);a=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 MO(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class DO{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&&ao(t.modalRef,!1);const i=MO(r);Og(r,t.mount,t.modalRef,i,!0);const a=Eu(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=Eu(this.containers,a=>a.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=AO(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Eu(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&&ao(t.modalRef,r),Og(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&&ao(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const qO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function LO(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 FO(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 zO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||FO(e))}function VO(e){const t=[],r=[];return Array.from(e.querySelectorAll(qO)).forEach((n,i)=>{const a=LO(n);a===-1||!zO(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 BO(){return!0}function ya(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=VO,isEnabled:l=BO,open:s}=e,c=j.useRef(!1),u=j.useRef(null),d=j.useRef(null),m=j.useRef(null),h=j.useRef(null),y=j.useRef(!1),g=j.useRef(null),f=St(to(t),g),b=j.useRef(null);j.useEffect(()=>{!s||!g.current||(y.current=!r)},[r,s]),j.useEffect(()=>{if(!s||!g.current)return;const _=Kt(g.current),S=ro(_);return g.current.contains(S)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
54
|
+
`)),g.current.setAttribute("tabIndex","-1")),y.current&&g.current.focus()),()=>{i||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[s]),j.useEffect(()=>{if(!s||!g.current)return;const _=Kt(g.current),S=x=>{if(b.current=x,n||!l()||x.key!=="Tab")return;ro(_)===g.current&&x.shiftKey&&(c.current=!0,d.current&&d.current.focus())},w=()=>{const x=g.current;if(x===null)return;const P=ro(_);if(!_.hasFocus()||!l()||c.current){c.current=!1;return}if(x.contains(P)||n&&P!==u.current&&P!==d.current)return;if(P!==h.current)h.current=null;else if(h.current!==null)return;if(!y.current)return;let k=[];if((P===u.current||P===d.current)&&(k=a(g.current)),k.length>0){const M=!!(b.current?.shiftKey&&b.current?.key==="Tab"),R=k[0],O=k[k.length-1];typeof R!="string"&&typeof O!="string"&&(M?O.focus():R.focus())}else x.focus()};_.addEventListener("focusin",w),_.addEventListener("keydown",S,!0);const E=setInterval(()=>{const x=ro(_);x&&x.tagName==="BODY"&&w()},50);return()=>{clearInterval(E),_.removeEventListener("focusin",w),_.removeEventListener("keydown",S,!0)}},[r,n,i,l,s,a]);const v=_=>{m.current===null&&(m.current=_.relatedTarget),y.current=!0,h.current=_.target;const S=t.props.onFocus;S&&S(_)},p=_=>{m.current===null&&(m.current=_.relatedTarget),y.current=!0};return F.jsxs(j.Fragment,{children:[F.jsx("div",{tabIndex:s?0:-1,onFocus:p,ref:u,"data-testid":"sentinelStart"}),j.cloneElement(t,{ref:f,onFocus:v}),F.jsx("div",{tabIndex:s?0:-1,onFocus:p,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ya.propTypes={children:oo,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(ya.propTypes=Ey(ya.propTypes));function UO(e){return typeof e=="function"?e():e}const so=j.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[l,s]=j.useState(null),c=St(j.isValidElement(n)?to(n):null,r);if(yr(()=>{a||s(UO(i)||document.body)},[i,a]),yr(()=>{if(l&&!a)return uu(r,l),()=>{uu(r,null)}},[r,l,a]),a){if(j.isValidElement(n)){const u={ref:c};return j.cloneElement(n,u)}return n}return l&&Xv.createPortal(n,l)});process.env.NODE_ENV!=="production"&&(so.propTypes={children:o.node,container:o.oneOfType([Ir,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(so.propTypes=Ey(so.propTypes));const WO={entering:{opacity:1},entered:{opacity:1}},xg=j.forwardRef(function(t,r){const n=su(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:s,easing:c,in:u,onEnter:d,onEntered:m,onEntering:h,onExit:y,onExited:g,onExiting:f,style:b,timeout:v=i,TransitionComponent:p=br,..._}=t,S=j.useRef(null),w=St(S,to(s),r),E=N=>U=>{if(N){const W=S.current;U===void 0?N(W):N(W,U)}},x=E(h),P=E((N,U)=>{Sg(N);const W=ha({style:b,timeout:v,easing:c},{mode:"enter"});N.style.webkitTransition=n.transitions.create("opacity",W),N.style.transition=n.transitions.create("opacity",W),d&&d(N,U)}),k=E(m),M=E(f),R=E(N=>{const U=ha({style:b,timeout:v,easing:c},{mode:"exit"});N.style.webkitTransition=n.transitions.create("opacity",U),N.style.transition=n.transitions.create("opacity",U),y&&y(N)}),O=E(g),q=N=>{a&&a(S.current,N)};return F.jsx(p,{appear:l,in:u,nodeRef:S,onEnter:P,onEntered:k,onEntering:x,onExit:R,onExited:O,onExiting:M,addEndListener:q,timeout:v,..._,children:(N,{ownerState:U,...W})=>j.cloneElement(s,{style:{opacity:0,visibility:N==="exited"&&!u?"hidden":void 0,...WO[N],...b,...s.props.style},ref:w,...W})})});process.env.NODE_ENV!=="production"&&(xg.propTypes={addEndListener:o.func,appear:o.bool,children:oo.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 HO(e){return Fe("MuiBackdrop",e)}Le("MuiBackdrop",["root","invisible"]);const KO=e=>{const{classes:t,invisible:r}=e;return Be({root:["root",r&&"invisible"]},HO,t)},GO=me("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"}}]}),Cg=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:l="div",invisible:s=!1,open:c,components:u={},componentsProps:d={},slotProps:m={},slots:h={},TransitionComponent:y,transitionDuration:g,...f}=n,b={...n,component:l,invisible:s},v=KO(b),p={transition:y,root:u.Root,...h},_={...d,...m},S={component:l,slots:p,slotProps:_},[w,E]=ut("root",{elementType:GO,externalForwardedProps:S,className:xe(v.root,a),ownerState:b}),[x,P]=ut("transition",{elementType:xg,externalForwardedProps:S,ownerState:b});return F.jsx(x,{in:c,timeout:g,...f,...P,children:F.jsx(w,{"aria-hidden":!0,...E,ref:r,children:i})})});process.env.NODE_ENV!=="production"&&(Cg.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 YO(e){return typeof e=="function"?e():e}function JO(e){return e?e.props.hasOwnProperty("in"):!1}const Tg=()=>{},ga=new DO;function XO(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,m=j.useRef({}),h=j.useRef(null),y=j.useRef(null),g=St(y,d),[f,b]=j.useState(!u),v=JO(s);let p=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(p=!1);const _=()=>Kt(h.current),S=()=>(m.current.modalRef=y.current,m.current.mount=h.current,m.current),w=()=>{ga.mount(S(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},E=ur(()=>{const U=YO(t)||_().body;ga.add(S(),U),y.current&&w()}),x=()=>ga.isTopModal(S()),P=ur(U=>{h.current=U,U&&(u&&x()?w():y.current&&ao(y.current,p))}),k=j.useCallback(()=>{ga.remove(S(),p)},[p]);j.useEffect(()=>()=>{k()},[k]),j.useEffect(()=>{u?E():(!v||!i)&&k()},[u,k,v,i,E]);const M=U=>W=>{U.onKeyDown?.(W),!(W.key!=="Escape"||W.which===229||!x())&&(r||(W.stopPropagation(),c&&c(W,"escapeKeyDown")))},R=U=>W=>{U.onClick?.(W),W.target===W.currentTarget&&c&&c(W,"backdropClick")};return{getRootProps:(U={})=>{const W=Qy(e);delete W.onTransitionEnter,delete W.onTransitionExited;const le={...W,...U};return{role:"presentation",...le,onKeyDown:M(le),ref:g}},getBackdropProps:(U={})=>{const W=U;return{"aria-hidden":!0,...W,onClick:R(W),open:u}},getTransitionProps:()=>{const U=()=>{b(!1),a&&a()},W=()=>{b(!0),l&&l(),i&&k()};return{onEnter:cu(U,s?.props.onEnter??Tg),onExited:cu(W,s?.props.onExited??Tg)}},rootRef:g,portalRef:P,isTopModal:x,exited:f,hasTransition:v}}function ZO(e){return Fe("MuiModal",e)}Le("MuiModal",["root","hidden","backdrop"]);const QO=e=>{const{open:t,exited:r,classes:n}=e;return Be({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},ZO,n)},e1=me("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(ze(({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"}}]}))),t1=me(Cg,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Pg=j.forwardRef(function(t,r){const n=We({name:"MuiModal",props:t}),{BackdropComponent:i=t1,BackdropProps:a,classes:l,className:s,closeAfterTransition:c=!1,children:u,container:d,component:m,components:h={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:b=!1,disablePortal:v=!1,disableRestoreFocus:p=!1,disableScrollLock:_=!1,hideBackdrop:S=!1,keepMounted:w=!1,onClose:E,onTransitionEnter:x,onTransitionExited:P,open:k,slotProps:M={},slots:R={},theme:O,...q}=n,N={...n,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:b,disablePortal:v,disableRestoreFocus:p,disableScrollLock:_,hideBackdrop:S,keepMounted:w},{getRootProps:U,getBackdropProps:W,getTransitionProps:le,portalRef:ce,isTopModal:ue,exited:z,hasTransition:C}=XO({...N,rootRef:r}),V={...N,exited:z},A=QO(V),T={};if(u.props.tabIndex===void 0&&(T.tabIndex="-1"),C){const{onEnter:te,onExited:L}=le();T.onEnter=te,T.onExited=L}const $={slots:{root:h.Root,backdrop:h.Backdrop,...R},slotProps:{...y,...M}},[D,K]=ut("root",{ref:r,elementType:e1,externalForwardedProps:{...$,...q,component:m},getSlotProps:U,ownerState:V,className:xe(s,A?.root,!V.open&&V.exited&&A?.hidden)}),[re,ie]=ut("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:$,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:te=>W({...te,onClick:L=>{te?.onClick&&te.onClick(L)}}),className:xe(a?.className,A?.backdrop),ownerState:V});return!w&&!k&&(!C||z)?null:F.jsx(so,{ref:ce,container:d,disablePortal:v,children:F.jsxs(D,{...K,children:[!S&&i?F.jsx(re,{...ie}):null,F.jsx(ya,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:p,isEnabled:ue,open:k,children:j.cloneElement(u,T)})]})})});process.env.NODE_ENV!=="production"&&(Pg.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:oo.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([Ir,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function r1(e){return Fe("MuiPaper",e)}Le("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 n1=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Be(a,r1,i)},o1=me("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}`]]}})(ze(({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)"}}]}))),lo=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiPaper"}),i=su(),{className:a,component:l="div",elevation:s=1,square:c=!1,variant:u="elevation",...d}=n,m={...n,component:l,elevation:s,square:c,variant:u},h=n1(m);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(`
|
|
55
|
+
`)),F.jsx(o1,{as:l,ownerState:m,className:xe(h.root,a),ref:r,...d,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[s]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ki("#fff",nu(s))}, ${Ki("#fff",nu(s))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(lo.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:cr(hu,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 i1(e){return Fe("MuiPopover",e)}Le("MuiPopover",["root","paper"]);function $g(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Rg(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function kg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function co(e){return typeof e=="function"?e():e}const a1=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"]},i1,t)},s1=me(Pg,{name:"MuiPopover",slot:"Root"})({}),Ig=me(lo,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),jg=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:c="anchorEl",children:u,className:d,container:m,elevation:h=8,marginThreshold:y=16,open:g,PaperProps:f={},slots:b={},slotProps:v={},transformOrigin:p={vertical:"top",horizontal:"left"},TransitionComponent:_,transitionDuration:S="auto",TransitionProps:w={},disableScrollLock:E=!1,...x}=n,P=j.useRef(),k={...n,anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:y,transformOrigin:p,TransitionComponent:_,transitionDuration:S,TransitionProps:w},M=a1(k),R=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=co(a),L=te&&te.nodeType===1?te:Kt(P.current).body,I=L.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const G=L.getBoundingClientRect();process.env.NODE_ENV!=="test"&&G.top===0&&G.left===0&&G.right===0&&G.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(`
|
|
56
|
+
`))}return{top:I.top+$g(I,l.vertical),left:I.left+Rg(I,l.horizontal)}},[a,l.horizontal,l.vertical,s,c]),O=j.useCallback(te=>({vertical:$g(te,p.vertical),horizontal:Rg(te,p.horizontal)}),[p.horizontal,p.vertical]),q=j.useCallback(te=>{const L={width:te.offsetWidth,height:te.offsetHeight},I=O(L);if(c==="none")return{top:null,left:null,transformOrigin:kg(I)};const G=R();let X=G.top-I.vertical,ne=G.left-I.horizontal;const he=X+L.height,ve=ne+L.width,fe=kr(co(a)),Te=fe.innerHeight-y,be=fe.innerWidth-y;if(y!==null&&X<y){const Ee=X-y;X-=Ee,I.vertical+=Ee}else if(y!==null&&he>Te){const Ee=he-Te;X-=Ee,I.vertical+=Ee}if(process.env.NODE_ENV!=="production"&&L.height>Te&&L.height&&Te&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${L.height-Te}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
57
|
+
`)),y!==null&&ne<y){const Ee=ne-y;ne-=Ee,I.horizontal+=Ee}else if(ve>be){const Ee=ve-be;ne-=Ee,I.horizontal+=Ee}return{top:`${Math.round(X)}px`,left:`${Math.round(ne)}px`,transformOrigin:kg(I)}},[a,c,R,O,y]),[N,U]=j.useState(g),W=j.useCallback(()=>{const te=P.current;if(!te)return;const L=q(te);L.top!==null&&te.style.setProperty("top",L.top),L.left!==null&&(te.style.left=L.left),te.style.transformOrigin=L.transformOrigin,U(!0)},[q]);j.useEffect(()=>(E&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[a,E,W]);const le=()=>{W()},ce=()=>{U(!1)};j.useEffect(()=>{g&&W()}),j.useImperativeHandle(i,()=>g?{updatePosition:()=>{W()}}:null,[g,W]),j.useEffect(()=>{if(!g)return;const te=Vy(()=>{W()}),L=kr(co(a));return L.addEventListener("resize",te),()=>{te.clear(),L.removeEventListener("resize",te)}},[a,g,W]);let ue=S;const z={slots:{transition:_,...b},slotProps:{transition:w,paper:f,...v}},[C,V]=ut("transition",{elementType:ma,externalForwardedProps:z,ownerState:k,getSlotProps:te=>({...te,onEntering:(L,I)=>{te.onEntering?.(L,I),le()},onExited:L=>{te.onExited?.(L),ce()}}),additionalProps:{appear:!0,in:g}});S==="auto"&&!C.muiSupportAuto&&(ue=void 0);const A=m||(a?Kt(co(a)).body:void 0),[T,{slots:$,slotProps:D,...K}]=ut("root",{ref:r,elementType:s1,externalForwardedProps:{...z,...x},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:Gy(typeof v.backdrop=="function"?v.backdrop(k):v.backdrop,{invisible:!0})},container:A,open:g},ownerState:k,className:xe(M.root,d)}),[re,ie]=ut("paper",{ref:P,className:M.paper,elementType:Ig,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:N?void 0:{opacity:0}},ownerState:k});return F.jsx(T,{...K,...!Xi(T)&&{slots:$,slotProps:D,disableScrollLock:E},children:F.jsx(C,{...V,timeout:ue,children:F.jsx(re,{...ie,children:u})})})});process.env.NODE_ENV!=="production"&&(jg.propTypes={action:zt,anchorEl:cr(o.oneOfType([Ir,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=co(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(`
|
|
58
58
|
`))}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(`
|
|
59
|
-
`))}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([Ir,o.func]),disableScrollLock:o.bool,elevation:hu,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:lu}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function
|
|
60
|
-
`)),ue.props.disabled||(b==="selectedMenu"&&ue.props.selected||R===-1)&&(R=z))});const O={slots:v,slotProps:{list:c,transition:f,paper:m,...p}},
|
|
61
|
-
`));let Me;if(p){if(!Array.isArray(C))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":hr(2));Me=C.some(pt=>Fg(pt,we.props.value)),Me&&_t&&Qe.push(we.props.children)}else Me=Fg(C,we.props.value),Me&&_t&&(ot=we.props.children);return Me&&(et=!0),
|
|
62
|
-
`))}},[et,fe,p,_,C]),_t&&(p?Qe.length===0?Ie=null:Ie=Qe.reduce((we,Me,pt)=>(we.push(Me),pt<Qe.length-1&&we.push(", "),we),[]):Ie=ot);let Je=te;!l&&ie&&K&&(Je=X.clientWidth);let Oe;typeof W<"u"?Oe=W:Oe=m?null:0;const He=U.id||(_?`mui-component-select-${_}`:void 0),ft={...t,variant:ue,value:C,open:he,error:y},ct=EO(ft),Ar={...v.PaperProps,...typeof v.slotProps?.paper=="function"?v.slotProps.paper(ft):v.slotProps?.paper},Et={...v.MenuListProps,...typeof v.slotProps?.list=="function"?v.slotProps.list(ft):v.slotProps?.list},Ot=bn();return F.jsxs(A.Fragment,{children:[F.jsx(bO,{as:"div",ref:G,tabIndex:Oe,role:"combobox","aria-controls":he?Ot:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":he?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,He].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":N?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:Ee,onMouseDown:m||O?null:ye,onBlur:$e,onFocus:x,...U,ownerState:ft,className:xe(U.className,ct.select,c),id:He,children:SO(Ie)?Lg||(Lg=F.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Ie}),F.jsx(wO,{"aria-invalid":y,value:Array.isArray(C)?C.join(","):C,name:_,ref:$,"aria-hidden":!0,onChange:Te,tabIndex:-1,disabled:m,className:ct.nativeInput,autoFocus:a,required:N,...z,ownerState:ft}),F.jsx(_O,{as:g,className:ct.icon,ownerState:ft}),F.jsx(Ng,{id:`menu-${_||""}`,anchorEl:X,open:he,onClose:ve,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":p?"true":void 0,disableListWrap:!0,id:Ot,...Et},paper:{...Ar,style:{minWidth:Je,...Ar!=null?Ar.style:null}}},children:Tt})]})});process.env.NODE_ENV!=="production"&&(zg.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:zt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const Vg=Ct(F.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),OO=e=>{const{classes:t}=e,n=Be({root:["root"]},qg,t);return{...t,...n}},xu={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>It(e)&&e!=="variant"},xO=me(aa,xu)(""),CO=me(ca,xu)(""),TO=me(la,xu)(""),fo=A.forwardRef(function(t,r){const n=We({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:l={},className:s,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=Vg,id:m,input:h,inputProps:y,label:g,labelId:f,MenuProps:b,multiple:v=!1,native:p=!1,onClose:_,onOpen:S,open:w,renderValue:E,SelectDisplayProps:x,variant:P="outlined",...k}=n,j=p?Dg:zg,R=vr(),O=Ur({props:n,muiFormControl:R,states:["variant","error"]}),D=O.variant||P,N={...n,variant:D,classes:l},U=OO(N),{root:W,...le}=U,ce=h||{standard:F.jsx(xO,{ownerState:N}),outlined:F.jsx(CO,{label:g,ownerState:N}),filled:F.jsx(TO,{ownerState:N})}[D],ue=St(r,to(ce));return F.jsx(A.Fragment,{children:A.cloneElement(ce,{inputComponent:j,inputProps:{children:a,error:O.error,IconComponent:d,variant:D,type:void 0,multiple:v,...p?{id:m}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:f,MenuProps:b,onClose:_,onOpen:S,open:w,renderValue:E,SelectDisplayProps:{id:m,...x}},...y,classes:y?kt(le,y.classes):le,...h?h.props.inputProps:{}},...(v&&p||u)&&D==="outlined"?{notched:!0}:{},ref:ue,className:xe(ce.props.className,s,U.root),...!h&&{variant:D},...k})})});process.env.NODE_ENV!=="production"&&(fo.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"])}),fo.muiName="Select";function PO(e){return Fe("MuiTextField",e)}Le("MuiTextField",["root"]);const $O={standard:aa,filled:la,outlined:ca},RO=e=>{const{classes:t}=e;return Be({root:["root"]},PO,t)},kO=me(Tn,{name:"MuiTextField",slot:"Root"})({}),va=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:l,className:s,color:c="primary",defaultValue:u,disabled:d=!1,error:m=!1,FormHelperTextProps:h,fullWidth:y=!1,helperText:g,id:f,InputLabelProps:b,inputProps:v,InputProps:p,inputRef:_,label:S,maxRows:w,minRows:E,multiline:x=!1,name:P,onBlur:k,onChange:j,onFocus:R,placeholder:O,required:D=!1,rows:N,select:U=!1,SelectProps:W,slots:le={},slotProps:ce={},type:ue,value:z,variant:C="outlined",...V}=n,M={...n,autoFocus:a,color:c,disabled:d,error:m,fullWidth:y,multiline:x,required:D,select:U,variant:C},T=RO(M);process.env.NODE_ENV!=="production"&&U&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const $=bn(f),q=g&&$?`${$}-helper-text`:void 0,K=S&&$?`${$}-label`:void 0,re=$O[C],ie={slots:le,slotProps:{input:p,inputLabel:b,htmlInput:v,formHelperText:h,select:W,...ce}},te={},L=ie.slotProps.inputLabel;C==="outlined"&&(L&&typeof L.shrink<"u"&&(te.notched=L.shrink),te.label=S),U&&((!W||!W.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const[I,G]=dt("root",{elementType:kO,shouldForwardComponentProp:!0,externalForwardedProps:{...ie,...V},ownerState:M,className:xe(T.root,s),ref:r,additionalProps:{disabled:d,error:m,fullWidth:y,required:D,color:c,variant:C}}),[X,oe]=dt("input",{elementType:re,externalForwardedProps:ie,additionalProps:te,ownerState:M}),[ye,ve]=dt("inputLabel",{elementType:ua,externalForwardedProps:ie,ownerState:M}),[fe,Te]=dt("htmlInput",{elementType:"input",externalForwardedProps:ie,ownerState:M}),[be,Ee]=dt("formHelperText",{elementType:eo,externalForwardedProps:ie,ownerState:M}),[he,$e]=dt("select",{elementType:fo,externalForwardedProps:ie,ownerState:M}),Ie=F.jsx(X,{"aria-describedby":q,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:y,multiline:x,name:P,rows:N,maxRows:w,minRows:E,type:ue,value:z,id:$,inputRef:_,onBlur:k,onChange:j,onFocus:R,placeholder:O,inputProps:Te,slots:{input:le.htmlInput?fe:void 0},...oe});return F.jsxs(I,{...G,children:[S!=null&&S!==""&&F.jsx(ye,{htmlFor:$,id:K,...ve,children:S}),U?F.jsx(he,{"aria-describedby":q,id:$,labelId:K,value:z,input:Ie,...$e,children:l}):Ie,g&&F.jsx(be,{id:q,...Ee,children:g})]})});process.env.NODE_ENV!=="production"&&(va.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:zt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const IO=e=>{let t;return e.form&&e.form.key&&(t=lr.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},Bg=e=>{const{errorText:t,form:r,showErrors:n}=e,i=IO(e);if(!n)return{value:i,valid:!0,error:""};const a=lr.validate(r,i||void 0),l=a.valid?void 0:a.error;return{value:i,valid:a.valid,error:(a.valid?null:l)||t}};function qt(e){const{form:t,onChange:r}=e,[n,i]=ke.useState(()=>Bg(e));return ke.useEffect(()=>{i(Bg(e))},[e.model,e.form,e.showErrors,e.errorText]),{...n,onChangeValidate:(l,s)=>{let c=null;const u=t.schema?t.schema.type:t.type;if(s!==void 0)c=s;else switch(u){case"integer":case"number":{c=l;break}case"boolean":c=l.target.checked;break;case"array":c=l;break;case"object":if(t.type==="date"){l.target.value.length>0?c=new Date(l.target.value):c="";break}({value:c}=l.target);break;case"string":t.type==="timestamp"?c=l:{value:c}=l.target;break;default:console.log("type = ",u),l&&l.target?{value:c}=l.target:c=l}const d=lr.validate(t,c);i({value:c,valid:d.valid,error:d.valid?null:d.error}),r(t.key,c)}}}function cn(e){const{form:t,setDefault:r,model:n,localization:{getLocalizedString:i},otherProps:a}=e,l=qt(e),s=e.value!==void 0?e.value:l.value,c=e.valid!==void 0?e.valid:l.valid,u=e.error!==void 0?e.error:l.error,d=e.onChangeValidate!==void 0?e.onChangeValidate:l.onChangeValidate,{key:m}=t;return r(m,n,t,l.value),F.jsx(va,{type:t.type,label:t.title&&i(t.title),placeholder:t.placeholder&&i(t.placeholder),helperText:(u||t.description)&&i(u||t.description),error:!c,onChange:d,value:s||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...a,...t.otherProps})}cn.defaultProps={otherProps:void 0};const jO=e=>{const{form:t,localization:{getLocalizedNumber:r}}=e,{value:n,valid:i,error:a,onChangeValidate:l}=qt(e);let s=n||n===0?n:"";t.useLocalizer&&(s=r(s));const c=u=>{const d=t.schema?t.schema.type:t.type;let m=null;if(d==="integer")m=parseInt(u.target.value,10);else if(d==="number"){const h=u.target.value.split(".");h.length<2?m=parseInt(u.target.value,10):h.length>1&&(h[1].length>0?m=parseFloat(u.target.value):m=`${parseInt(h[0],10)}.`)}l(m)};return F.jsx(cn,{...e,form:{...t,type:"string"},value:s,valid:i,error:a,onChangeValidate:c})},NO=e=>{const{form:t}=e;return F.jsx(cn,{...e,otherProps:{multiline:!0,rows:t.rows,maxRows:t.maxRows}})},AO=e=>{const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e),{key:u,title:d}=r;return ke.useEffect(()=>{n(u,t,r,a)},[]),F.jsxs(ke.Fragment,{children:[F.jsx(Hr,{required:r.required,children:d&&i(d)}),F.jsx(Jv,{value:a||"",height:r.height,onChange:m=>c(null,m)}),l?null:F.jsx(eo,{error:!0,children:s})]})};function MO(e){const t=A.useRef({});return A.useEffect(()=>{t.current=e}),t.current}function Ug({array1:e,array2:t,parser:r=n=>n}){return e&&t&&e.length===t.length&&e.every((n,i)=>r(n)===r(t[i]))}function Wg(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function DO(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 d=l?c.trim():c;r&&(d=d.toLowerCase()),t&&(d=Wg(d));const m=d?s.filter(h=>{let y=(a||u)(h);return r&&(y=y.toLowerCase()),t&&(y=Wg(y)),i==="start"?y.startsWith(d):y.includes(d)}):s;return typeof n=="number"?m.slice(0,n):m}}const qO=DO(),Hg=5,LO=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),FO=[];function Kg(e,t,r,n){if(t||e==null||n)return"";const i=r(e);return typeof i=="string"?i:""}function zO(e){const{unstable_isActiveElementInListbox:t=LO,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:d=e.multiple?FO:null,disableClearable:m=!1,disableCloseOnSelect:h=!1,disabled:y,disabledItemsFocusable:g=!1,disableListWrap:f=!1,filterOptions:b=qO,filterSelectedOptions:v=!1,freeSolo:p=!1,getOptionDisabled:_,getOptionKey:S,getOptionLabel:w=ae=>ae.label??ae,groupBy:E,handleHomeEndKeys:x=!e.freeSolo,id:P,includeInputInList:k=!1,inputValue:j,isOptionEqualToValue:R=(ae,ee)=>ae===ee,multiple:O=!1,onChange:D,onClose:N,onHighlightChange:U,onInputChange:W,onOpen:le,open:ce,openOnFocus:ue=!1,options:z,readOnly:C=!1,renderValue:V,selectOnFocus:M=!e.freeSolo,value:T}=e,$=bn(P);let q=w;q=ae=>{const ee=w(ae);if(typeof ee!="string"){if(process.env.NODE_ENV!=="production"){const ge=ee===void 0?"undefined":`${typeof ee} (${ee})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${ge} instead of a string for ${JSON.stringify(ae)}.`)}return String(ee)}return ee};const K=A.useRef(!1),re=A.useRef(!0),ie=A.useRef(null),te=A.useRef(null),[L,I]=A.useState(null),[G,X]=A.useState(-1),oe=i?0:-1,ye=A.useRef(oe),ve=A.useRef(Kg(d??T,O,q)).current,[fe,Te]=on({controlled:T,default:d,name:u}),[be,Ee]=on({controlled:j,default:ve,name:u,state:"inputValue"}),[he,$e]=A.useState(!1),Ie=A.useCallback((ae,ee,ge)=>{if(!(O?fe.length<ee.length:ee!==null)&&!s)return;const Pe=Kg(ee,O,q,V);be!==Pe&&(Ee(Pe),W&&W(ae,Pe,ge))},[q,be,O,W,Ee,s,fe,V]),[ot,Qe]=on({controlled:ce,default:!1,name:u,state:"open"}),[_t,et]=A.useState(!0),Tt=!O&&fe!=null&&be===q(fe),Je=ot&&!C,Oe=Je?b(z.filter(ae=>!(v&&(O?fe:[fe]).some(ee=>ee!==null&&R(ae,ee)))),{inputValue:Tt&&_t?"":be,getOptionLabel:q}):[],He=MO({filteredOptions:Oe,value:fe,inputValue:be});A.useEffect(()=>{const ae=fe!==He.value;he&&!ae||p&&!ae||Ie(null,fe,"reset")},[fe,Ie,he,He.value,p]);const ft=ot&&Oe.length>0&&!C,ct=ur(ae=>{if(ae===-1)ie.current.focus();else{const ee=V?"data-item-index":"data-tag-index";L.querySelector(`[${ee}="${ae}"]`).focus()}});A.useEffect(()=>{O&&G>fe.length-1&&(X(-1),ct(-1))},[fe,O,G,ct]);function Ar(ae,ee){if(!te.current||ae<0||ae>=Oe.length)return-1;let ge=ae;for(;;){const Ce=te.current.querySelector(`[data-option-index="${ge}"]`),Pe=g?!1:!Ce||Ce.disabled||Ce.getAttribute("aria-disabled")==="true";if(Ce&&Ce.hasAttribute("tabindex")&&!Pe)return ge;if(ee==="next"?ge=(ge+1)%Oe.length:ge=(ge-1+Oe.length)%Oe.length,ge===ae)return-1}}const Et=ur(({event:ae,index:ee,reason:ge})=>{if(ye.current=ee,ee===-1?ie.current.removeAttribute("aria-activedescendant"):ie.current.setAttribute("aria-activedescendant",`${$}-option-${ee}`),U&&["mouse","keyboard","touch"].includes(ge)&&U(ae,ee===-1?null:Oe[ee],ge),!te.current)return;const Ce=te.current.querySelector(`[role="option"].${r}-focused`);Ce&&(Ce.classList.remove(`${r}-focused`),Ce.classList.remove(`${r}-focusVisible`));let Pe=te.current;if(te.current.getAttribute("role")!=="listbox"&&(Pe=te.current.parentElement.querySelector('[role="listbox"]')),!Pe)return;if(ee===-1){Pe.scrollTop=0;return}const ht=te.current.querySelector(`[data-option-index="${ee}"]`);if(ht&&(ht.classList.add(`${r}-focused`),ge==="keyboard"&&ht.classList.add(`${r}-focusVisible`),Pe.scrollHeight>Pe.clientHeight&&ge!=="mouse"&&ge!=="touch")){const Ue=ht,Nt=Pe.clientHeight+Pe.scrollTop,At=Ue.offsetTop+Ue.offsetHeight;At>Nt?Pe.scrollTop=At-Pe.clientHeight:Ue.offsetTop-Ue.offsetHeight*(E?1.3:0)<Pe.scrollTop&&(Pe.scrollTop=Ue.offsetTop-Ue.offsetHeight*(E?1.3:0))}}),Ot=ur(({event:ae,diff:ee,direction:ge="next",reason:Ce})=>{if(!Je)return;const ht=Ar((()=>{const Ue=Oe.length-1;if(ee==="reset")return oe;if(ee==="start")return 0;if(ee==="end")return Ue;const Nt=ye.current+ee;return Nt<0?Nt===-1&&k?-1:f&&ye.current!==-1||Math.abs(ee)>1?0:Ue:Nt>Ue?Nt===Ue+1&&k?-1:f||Math.abs(ee)>1?Ue:0:Nt})(),ge);if(Et({index:ht,reason:Ce,event:ae}),n&&ee!=="reset")if(ht===-1)ie.current.value=be;else{const Ue=q(Oe[ht]);ie.current.value=Ue,Ue.toLowerCase().indexOf(be.toLowerCase())===0&&be.length>0&&ie.current.setSelectionRange(be.length,Ue.length)}}),we=!Ug({array1:He.filteredOptions,array2:Oe,parser:q}),Me=()=>{const ae=(ee,ge)=>{const Ce=ee?q(ee):"",Pe=ge?q(ge):"";return Ce===Pe};if(ye.current!==-1&&!Ug({array1:He.filteredOptions,array2:Oe,parser:q})&&He.inputValue===be&&(O?fe.length===He.value.length&&He.value.every((ee,ge)=>q(fe[ge])===q(ee)):ae(He.value,fe))){const ee=He.filteredOptions[ye.current];if(ee)return Oe.findIndex(ge=>q(ge)===q(ee))}return-1},pt=A.useCallback(()=>{if(!Je)return;const ae=Me();if(ae!==-1){ye.current=ae;return}const ee=O?fe[0]:fe;if(Oe.length===0||ee==null){Ot({diff:"reset"});return}if(te.current){if(ee!=null){const ge=Oe[ye.current];if(O&&ge&&fe.findIndex(Pe=>R(ge,Pe))!==-1)return;const Ce=Oe.findIndex(Pe=>R(Pe,ee));Ce===-1?Ot({diff:"reset"}):Et({index:Ce});return}if(ye.current>=Oe.length-1){Et({index:Oe.length-1});return}Et({index:ye.current})}},[Oe.length,O?!1:fe,Ot,Et,Je,be,O]),xt=ur(ae=>{uu(te,ae),ae&&pt()});process.env.NODE_ENV!=="production"&&A.useEffect(()=>{(!ie.current||ie.current.nodeName!=="INPUT")&&(ie.current&&ie.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(`
|
|
59
|
+
`))}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([Ir,o.func]),disableScrollLock:o.bool,elevation:hu,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:lu}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function l1(e){return Fe("MuiMenu",e)}Le("MuiMenu",["root","paper","list"]);const c1={vertical:"top",horizontal:"right"},u1={vertical:"top",horizontal:"left"},d1=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"],list:["list"]},l1,t)},f1=me(jg,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),p1=me(Ig,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),h1=me(fg,{name:"MuiMenu",slot:"List"})({outline:0}),Ng=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:m={},PopoverClasses:h,transitionDuration:y="auto",TransitionProps:{onEntering:g,...f}={},variant:b="selectedMenu",slots:v={},slotProps:p={},..._}=n,S=Oy(),w={...n,autoFocus:i,disableAutoFocusItem:s,MenuListProps:c,onEntering:g,PaperProps:m,transitionDuration:y,TransitionProps:f,variant:b},E=d1(w),x=i&&!s&&d,P=j.useRef(null),k=(ue,z)=>{P.current&&P.current.adjustStyleForScrollbar(ue,{direction:S?"rtl":"ltr"}),g&&g(ue,z)},M=ue=>{ue.key==="Tab"&&(ue.preventDefault(),u&&u(ue,"tabKeyDown"))};let R=-1;j.Children.map(a,(ue,z)=>{j.isValidElement(ue)&&(process.env.NODE_ENV!=="production"&&du.isFragment(ue)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
60
|
+
`)),ue.props.disabled||(b==="selectedMenu"&&ue.props.selected||R===-1)&&(R=z))});const O={slots:v,slotProps:{list:c,transition:f,paper:m,...p}},q=sg({elementType:v.root,externalSlotProps:p.root,ownerState:w,className:[E.root,l]}),[N,U]=ut("paper",{className:E.paper,elementType:p1,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:w}),[W,le]=ut("list",{className:xe(E.list,c.className),elementType:h1,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:ue=>({...ue,onKeyDown:z=>{M(z),ue.onKeyDown?.(z)}}),ownerState:w}),ce=typeof O.slotProps.transition=="function"?O.slotProps.transition(w):O.slotProps.transition;return F.jsx(f1,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?c1:u1,slots:{root:v.root,paper:N,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:q,paper:U,backdrop:typeof p.backdrop=="function"?p.backdrop(w):p.backdrop,transition:{...ce,onEntering:(...ue)=>{k(...ue),ce?.onEntering?.(...ue)}}},open:d,ref:r,transitionDuration:y,ownerState:w,..._,classes:h,children:F.jsx(W,{actions:P,autoFocus:i&&(R===-1||s),autoFocusItem:x,variant:b,...le,children:a})})});process.env.NODE_ENV!=="production"&&(Ng.propTypes={anchorEl:o.oneOfType([Ir,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,list:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function m1(e){return Fe("MuiNativeSelect",e)}const Ou=Le("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),y1=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${pe(r)}`,a&&"iconOpen",n&&"disabled"]};return Be(s,m1,t)},Ag=me("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ou.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}}}]})),g1=me(Ag,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:It,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Ou.multiple}`]:t.multiple}]}})({}),Mg=me("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ou.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}}]})),v1=me(Mg,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${pe(r.variant)}`],r.open&&t.iconOpen]}})({}),Dg=j.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:l,inputRef:s,variant:c="standard",...u}=t,d={...t,disabled:i,variant:c,error:a},m=y1(d);return F.jsxs(j.Fragment,{children:[F.jsx(g1,{ownerState:d,className:xe(m.select,n),disabled:i,ref:s||r,...u}),t.multiple?null:F.jsx(v1,{as:l,ownerState:d,className:m.icon})]})});process.env.NODE_ENV!=="production"&&(Dg.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:zt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});function qg(e){return Fe("MuiSelect",e)}const uo=Le("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Lg;const b1=me(Ag,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${uo.select}`]:t.select},{[`&.${uo.select}`]:t[r.variant]},{[`&.${uo.error}`]:t.error},{[`&.${uo.multiple}`]:t.multiple}]}})({[`&.${uo.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),_1=me(Mg,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${pe(r.variant)}`],r.open&&t.iconOpen]}})({}),w1=me("input",{shouldForwardProp:e=>zy(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Fg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function S1(e){return e==null||typeof e=="string"&&!e.trim()}const E1=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${pe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Be(s,qg,t)},zg=j.forwardRef(function(t,r){const{"aria-describedby":n,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:c,defaultOpen:u,defaultValue:d,disabled:m,displayEmpty:h,error:y=!1,IconComponent:g,inputRef:f,labelId:b,MenuProps:v={},multiple:p,name:_,onBlur:S,onChange:w,onClose:E,onFocus:x,onKeyDown:P,onMouseDown:k,onOpen:M,open:R,readOnly:O,renderValue:q,required:N,SelectDisplayProps:U={},tabIndex:W,type:le,value:ce,variant:ue="standard",...z}=t,[C,V]=on({controlled:ce,default:d,name:"Select"}),[A,T]=on({controlled:R,default:u,name:"Select"}),$=j.useRef(null),D=j.useRef(null),[K,re]=j.useState(null),{current:ie}=j.useRef(R!=null),[te,L]=j.useState(),I=St(r,f),G=j.useCallback(we=>{D.current=we,we&&re(we)},[]),X=K?.parentNode;j.useImperativeHandle(I,()=>({focus:()=>{D.current.focus()},node:$.current,value:C}),[C]);const ne=K!==null&&A;j.useEffect(()=>{if(!ne||!X||l||typeof ResizeObserver>"u")return;const we=new ResizeObserver(()=>{L(X.clientWidth)});return we.observe(X),()=>{we.disconnect()}},[ne,X,l]),j.useEffect(()=>{u&&A&&K&&!ie&&(L(l?null:X.clientWidth),D.current.focus())},[K,l]),j.useEffect(()=>{a&&D.current.focus()},[a]),j.useEffect(()=>{if(!b)return;const we=Kt(D.current).getElementById(b);if(we){const Me=()=>{getSelection().isCollapsed&&D.current.focus()};return we.addEventListener("click",Me),()=>{we.removeEventListener("click",Me)}}},[b]);const he=(we,Me)=>{we?M&&M(Me):E&&E(Me),ie||(L(l?null:X.clientWidth),T(we))},ve=we=>{k?.(we),we.button===0&&(we.preventDefault(),D.current.focus(),he(!0,we))},fe=we=>{he(!1,we)},Te=j.Children.toArray(s),be=we=>{const Me=Te.find(pt=>pt.props.value===we.target.value);Me!==void 0&&(V(Me.props.value),w&&w(we,Me))},Ee=we=>Me=>{let pt;if(Me.currentTarget.hasAttribute("tabindex")){if(p){pt=Array.isArray(C)?C.slice():[];const xt=C.indexOf(we.props.value);xt===-1?pt.push(we.props.value):pt.splice(xt,1)}else pt=we.props.value;if(we.props.onClick&&we.props.onClick(Me),C!==pt&&(V(pt),w)){const xt=Me.nativeEvent||Me,Lt=new xt.constructor(xt.type,xt);Object.defineProperty(Lt,"target",{writable:!0,value:{value:pt,name:_}}),w(Lt,we)}p||he(!1,Me)}},ge=we=>{O||([" ","ArrowUp","ArrowDown","Enter"].includes(we.key)&&(we.preventDefault(),he(!0,we)),P?.(we))},$e=we=>{!ne&&S&&(Object.defineProperty(we,"target",{writable:!0,value:{value:C,name:_}}),S(we))};delete z["aria-invalid"];let Ie,ot;const Qe=[];let _t=!1,et=!1;(ea({value:C})||h)&&(q?Ie=q(C):_t=!0);const Tt=Te.map(we=>{if(!j.isValidElement(we))return null;process.env.NODE_ENV!=="production"&&du.isFragment(we)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
61
|
+
`));let Me;if(p){if(!Array.isArray(C))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":hr(2));Me=C.some(pt=>Fg(pt,we.props.value)),Me&&_t&&Qe.push(we.props.children)}else Me=Fg(C,we.props.value),Me&&_t&&(ot=we.props.children);return Me&&(et=!0),j.cloneElement(we,{"aria-selected":Me?"true":"false",onClick:Ee(we),onKeyUp:pt=>{pt.key===" "&&pt.preventDefault(),we.props.onKeyUp&&we.props.onKeyUp(pt)},role:"option",selected:Me,value:void 0,"data-value":we.props.value})});process.env.NODE_ENV!=="production"&&j.useEffect(()=>{if(!et&&!p&&C!==""){const we=Te.map(Me=>Me.props.value);console.warn([`MUI: You have provided an out-of-range value \`${C}\` for the select ${_?`(name="${_}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${we.filter(Me=>Me!=null).map(Me=>`\`${Me}\``).join(", ")||'""'}.`].join(`
|
|
62
|
+
`))}},[et,Te,p,_,C]),_t&&(p?Qe.length===0?Ie=null:Ie=Qe.reduce((we,Me,pt)=>(we.push(Me),pt<Qe.length-1&&we.push(", "),we),[]):Ie=ot);let Je=te;!l&&ie&&K&&(Je=X.clientWidth);let Oe;typeof W<"u"?Oe=W:Oe=m?null:0;const He=U.id||(_?`mui-component-select-${_}`:void 0),dt={...t,variant:ue,value:C,open:ne,error:y},ft=E1(dt),Ar={...v.PaperProps,...typeof v.slotProps?.paper=="function"?v.slotProps.paper(dt):v.slotProps?.paper},Et={...v.MenuListProps,...typeof v.slotProps?.list=="function"?v.slotProps.list(dt):v.slotProps?.list},Ot=bn();return F.jsxs(j.Fragment,{children:[F.jsx(b1,{as:"div",ref:G,tabIndex:Oe,role:"combobox","aria-controls":ne?Ot:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":ne?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,He].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":N?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:ge,onMouseDown:m||O?null:ve,onBlur:$e,onFocus:x,...U,ownerState:dt,className:xe(U.className,ft.select,c),id:He,children:S1(Ie)?Lg||(Lg=F.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Ie}),F.jsx(w1,{"aria-invalid":y,value:Array.isArray(C)?C.join(","):C,name:_,ref:$,"aria-hidden":!0,onChange:be,tabIndex:-1,disabled:m,className:ft.nativeInput,autoFocus:a,required:N,...z,ownerState:dt}),F.jsx(_1,{as:g,className:ft.icon,ownerState:dt}),F.jsx(Ng,{id:`menu-${_||""}`,anchorEl:X,open:ne,onClose:fe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":p?"true":void 0,disableListWrap:!0,id:Ot,...Et},paper:{...Ar,style:{minWidth:Je,...Ar!=null?Ar.style:null}}},children:Tt})]})});process.env.NODE_ENV!=="production"&&(zg.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:zt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const Vg=Ct(F.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),O1=e=>{const{classes:t}=e,n=Be({root:["root"]},qg,t);return{...t,...n}},xu={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>It(e)&&e!=="variant"},x1=me(aa,xu)(""),C1=me(ca,xu)(""),T1=me(la,xu)(""),fo=j.forwardRef(function(t,r){const n=We({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:l={},className:s,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=Vg,id:m,input:h,inputProps:y,label:g,labelId:f,MenuProps:b,multiple:v=!1,native:p=!1,onClose:_,onOpen:S,open:w,renderValue:E,SelectDisplayProps:x,variant:P="outlined",...k}=n,M=p?Dg:zg,R=vr(),O=Ur({props:n,muiFormControl:R,states:["variant","error"]}),q=O.variant||P,N={...n,variant:q,classes:l},U=O1(N),{root:W,...le}=U,ce=h||{standard:F.jsx(x1,{ownerState:N}),outlined:F.jsx(C1,{label:g,ownerState:N}),filled:F.jsx(T1,{ownerState:N})}[q],ue=St(r,to(ce));return F.jsx(j.Fragment,{children:j.cloneElement(ce,{inputComponent:M,inputProps:{children:a,error:O.error,IconComponent:d,variant:q,type:void 0,multiple:v,...p?{id:m}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:f,MenuProps:b,onClose:_,onOpen:S,open:w,renderValue:E,SelectDisplayProps:{id:m,...x}},...y,classes:y?kt(le,y.classes):le,...h?h.props.inputProps:{}},...(v&&p||u)&&q==="outlined"?{notched:!0}:{},ref:ue,className:xe(ce.props.className,s,U.root),...!h&&{variant:q},...k})})});process.env.NODE_ENV!=="production"&&(fo.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"])}),fo.muiName="Select";function P1(e){return Fe("MuiTextField",e)}Le("MuiTextField",["root"]);const $1={standard:aa,filled:la,outlined:ca},R1=e=>{const{classes:t}=e;return Be({root:["root"]},P1,t)},k1=me(Tn,{name:"MuiTextField",slot:"Root"})({}),va=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:l,className:s,color:c="primary",defaultValue:u,disabled:d=!1,error:m=!1,FormHelperTextProps:h,fullWidth:y=!1,helperText:g,id:f,InputLabelProps:b,inputProps:v,InputProps:p,inputRef:_,label:S,maxRows:w,minRows:E,multiline:x=!1,name:P,onBlur:k,onChange:M,onFocus:R,placeholder:O,required:q=!1,rows:N,select:U=!1,SelectProps:W,slots:le={},slotProps:ce={},type:ue,value:z,variant:C="outlined",...V}=n,A={...n,autoFocus:a,color:c,disabled:d,error:m,fullWidth:y,multiline:x,required:q,select:U,variant:C},T=R1(A);process.env.NODE_ENV!=="production"&&U&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const $=bn(f),D=g&&$?`${$}-helper-text`:void 0,K=S&&$?`${$}-label`:void 0,re=$1[C],ie={slots:le,slotProps:{input:p,inputLabel:b,htmlInput:v,formHelperText:h,select:W,...ce}},te={},L=ie.slotProps.inputLabel;C==="outlined"&&(L&&typeof L.shrink<"u"&&(te.notched=L.shrink),te.label=S),U&&((!W||!W.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const[I,G]=ut("root",{elementType:k1,shouldForwardComponentProp:!0,externalForwardedProps:{...ie,...V},ownerState:A,className:xe(T.root,s),ref:r,additionalProps:{disabled:d,error:m,fullWidth:y,required:q,color:c,variant:C}}),[X,ne]=ut("input",{elementType:re,externalForwardedProps:ie,additionalProps:te,ownerState:A}),[he,ve]=ut("inputLabel",{elementType:ua,externalForwardedProps:ie,ownerState:A}),[fe,Te]=ut("htmlInput",{elementType:"input",externalForwardedProps:ie,ownerState:A}),[be,Ee]=ut("formHelperText",{elementType:eo,externalForwardedProps:ie,ownerState:A}),[ge,$e]=ut("select",{elementType:fo,externalForwardedProps:ie,ownerState:A}),Ie=F.jsx(X,{"aria-describedby":D,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:y,multiline:x,name:P,rows:N,maxRows:w,minRows:E,type:ue,value:z,id:$,inputRef:_,onBlur:k,onChange:M,onFocus:R,placeholder:O,inputProps:Te,slots:{input:le.htmlInput?fe:void 0},...ne});return F.jsxs(I,{...G,children:[S!=null&&S!==""&&F.jsx(he,{htmlFor:$,id:K,...ve,children:S}),U?F.jsx(ge,{"aria-describedby":D,id:$,labelId:K,value:z,input:Ie,...$e,children:l}):Ie,g&&F.jsx(be,{id:D,...Ee,children:g})]})});process.env.NODE_ENV!=="production"&&(va.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:zt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const I1=e=>{let t;return e.form&&e.form.key&&(t=lr.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},Bg=e=>{const{errorText:t,form:r,showErrors:n}=e,i=I1(e);if(!n)return{value:i,valid:!0,error:""};const a=lr.validate(r,i||void 0),l=a.valid?void 0:a.error;return{value:i,valid:a.valid,error:(a.valid?null:l)||t}};function qt(e){const{form:t,onChange:r}=e,[n,i]=ke.useState(()=>Bg(e));return ke.useEffect(()=>{i(Bg(e))},[e.model,e.form,e.showErrors,e.errorText]),{...n,onChangeValidate:(l,s)=>{let c=null;const u=t.schema?t.schema.type:t.type;if(s!==void 0)c=s;else switch(u){case"integer":case"number":{c=l;break}case"boolean":c=l.target.checked;break;case"array":c=l;break;case"object":if(t.type==="date"){l.target.value.length>0?c=new Date(l.target.value):c="";break}({value:c}=l.target);break;case"string":t.type==="timestamp"?c=l:{value:c}=l.target;break;default:console.log("type = ",u),l&&l.target?{value:c}=l.target:c=l}const d=lr.validate(t,c);i({value:c,valid:d.valid,error:d.valid?null:d.error}),r(t.key,c)}}}function cn(e){const{form:t,setDefault:r,model:n,localization:{getLocalizedString:i},otherProps:a}=e,l=qt(e),s=e.value!==void 0?e.value:l.value,c=e.valid!==void 0?e.valid:l.valid,u=e.error!==void 0?e.error:l.error,d=e.onChangeValidate!==void 0?e.onChangeValidate:l.onChangeValidate,{key:m}=t;return r(m,n,t,l.value),F.jsx(va,{type:t.type,label:t.title&&i(t.title),placeholder:t.placeholder&&i(t.placeholder),helperText:(u||t.description)&&i(u||t.description),error:!c,onChange:d,value:s||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...a,...t.otherProps})}cn.defaultProps={otherProps:void 0};const j1=e=>{const{form:t,localization:{getLocalizedNumber:r}}=e,{value:n,valid:i,error:a,onChangeValidate:l}=qt(e);let s=n||n===0?n:"";t.useLocalizer&&(s=r(s));const c=u=>{const d=t.schema?t.schema.type:t.type;let m=null;if(d==="integer")m=parseInt(u.target.value,10);else if(d==="number"){const h=u.target.value.split(".");h.length<2?m=parseInt(u.target.value,10):h.length>1&&(h[1].length>0?m=parseFloat(u.target.value):m=`${parseInt(h[0],10)}.`)}l(m)};return F.jsx(cn,{...e,form:{...t,type:"string"},value:s,valid:i,error:a,onChangeValidate:c})},N1=e=>{const{form:t}=e;return F.jsx(cn,{...e,otherProps:{multiline:!0,rows:t.rows,maxRows:t.maxRows}})},A1=e=>{const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e),{key:u,title:d}=r;return ke.useEffect(()=>{n(u,t,r,a)},[]),F.jsxs(ke.Fragment,{children:[F.jsx(Hr,{required:r.required,children:d&&i(d)}),F.jsx(Jv,{value:a||"",height:r.height,onChange:m=>c(null,m)}),l?null:F.jsx(eo,{error:!0,children:s})]})};function M1(e){const t=j.useRef({});return j.useEffect(()=>{t.current=e}),t.current}function Ug({array1:e,array2:t,parser:r=n=>n}){return e&&t&&e.length===t.length&&e.every((n,i)=>r(n)===r(t[i]))}function Wg(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function D1(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 d=l?c.trim():c;r&&(d=d.toLowerCase()),t&&(d=Wg(d));const m=d?s.filter(h=>{let y=(a||u)(h);return r&&(y=y.toLowerCase()),t&&(y=Wg(y)),i==="start"?y.startsWith(d):y.includes(d)}):s;return typeof n=="number"?m.slice(0,n):m}}const q1=D1(),Hg=5,L1=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),F1=[];function Kg(e,t,r,n){if(t||e==null||n)return"";const i=r(e);return typeof i=="string"?i:""}function z1(e){const{unstable_isActiveElementInListbox:t=L1,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:d=e.multiple?F1:null,disableClearable:m=!1,disableCloseOnSelect:h=!1,disabled:y,disabledItemsFocusable:g=!1,disableListWrap:f=!1,filterOptions:b=q1,filterSelectedOptions:v=!1,freeSolo:p=!1,getOptionDisabled:_,getOptionKey:S,getOptionLabel:w=ae=>ae.label??ae,groupBy:E,handleHomeEndKeys:x=!e.freeSolo,id:P,includeInputInList:k=!1,inputValue:M,isOptionEqualToValue:R=(ae,Q)=>ae===Q,multiple:O=!1,onChange:q,onClose:N,onHighlightChange:U,onInputChange:W,onOpen:le,open:ce,openOnFocus:ue=!1,options:z,readOnly:C=!1,renderValue:V,selectOnFocus:A=!e.freeSolo,value:T}=e,$=bn(P);let D=w;D=ae=>{const Q=w(ae);if(typeof Q!="string"){if(process.env.NODE_ENV!=="production"){const ye=Q===void 0?"undefined":`${typeof Q} (${Q})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${ye} instead of a string for ${JSON.stringify(ae)}.`)}return String(Q)}return Q};const K=j.useRef(!1),re=j.useRef(!0),ie=j.useRef(null),te=j.useRef(null),[L,I]=j.useState(null),[G,X]=j.useState(-1),ne=i?0:-1,he=j.useRef(ne),ve=j.useRef(Kg(d??T,O,D)).current,[fe,Te]=on({controlled:T,default:d,name:u}),[be,Ee]=on({controlled:M,default:ve,name:u,state:"inputValue"}),[ge,$e]=j.useState(!1),Ie=j.useCallback((ae,Q,ye)=>{if(!(O?fe.length<Q.length:Q!==null)&&!s)return;const Pe=Kg(Q,O,D,V);be!==Pe&&(Ee(Pe),W&&W(ae,Pe,ye))},[D,be,O,W,Ee,s,fe,V]),[ot,Qe]=on({controlled:ce,default:!1,name:u,state:"open"}),[_t,et]=j.useState(!0),Tt=!O&&fe!=null&&be===D(fe),Je=ot&&!C,Oe=Je?b(z.filter(ae=>!(v&&(O?fe:[fe]).some(Q=>Q!==null&&R(ae,Q)))),{inputValue:Tt&&_t?"":be,getOptionLabel:D}):[],He=M1({filteredOptions:Oe,value:fe,inputValue:be});j.useEffect(()=>{const ae=fe!==He.value;ge&&!ae||p&&!ae||Ie(null,fe,"reset")},[fe,Ie,ge,He.value,p]);const dt=ot&&Oe.length>0&&!C,ft=ur(ae=>{if(ae===-1)ie.current.focus();else{const Q=V?"data-item-index":"data-tag-index";L.querySelector(`[${Q}="${ae}"]`).focus()}});j.useEffect(()=>{O&&G>fe.length-1&&(X(-1),ft(-1))},[fe,O,G,ft]);function Ar(ae,Q){if(!te.current||ae<0||ae>=Oe.length)return-1;let ye=ae;for(;;){const Ce=te.current.querySelector(`[data-option-index="${ye}"]`),Pe=g?!1:!Ce||Ce.disabled||Ce.getAttribute("aria-disabled")==="true";if(Ce&&Ce.hasAttribute("tabindex")&&!Pe)return ye;if(Q==="next"?ye=(ye+1)%Oe.length:ye=(ye-1+Oe.length)%Oe.length,ye===ae)return-1}}const Et=ur(({event:ae,index:Q,reason:ye})=>{if(he.current=Q,Q===-1?ie.current.removeAttribute("aria-activedescendant"):ie.current.setAttribute("aria-activedescendant",`${$}-option-${Q}`),U&&["mouse","keyboard","touch"].includes(ye)&&U(ae,Q===-1?null:Oe[Q],ye),!te.current)return;const Ce=te.current.querySelector(`[role="option"].${r}-focused`);Ce&&(Ce.classList.remove(`${r}-focused`),Ce.classList.remove(`${r}-focusVisible`));let Pe=te.current;if(te.current.getAttribute("role")!=="listbox"&&(Pe=te.current.parentElement.querySelector('[role="listbox"]')),!Pe)return;if(Q===-1){Pe.scrollTop=0;return}const ht=te.current.querySelector(`[data-option-index="${Q}"]`);if(ht&&(ht.classList.add(`${r}-focused`),ye==="keyboard"&&ht.classList.add(`${r}-focusVisible`),Pe.scrollHeight>Pe.clientHeight&&ye!=="mouse"&&ye!=="touch")){const Ue=ht,Nt=Pe.clientHeight+Pe.scrollTop,At=Ue.offsetTop+Ue.offsetHeight;At>Nt?Pe.scrollTop=At-Pe.clientHeight:Ue.offsetTop-Ue.offsetHeight*(E?1.3:0)<Pe.scrollTop&&(Pe.scrollTop=Ue.offsetTop-Ue.offsetHeight*(E?1.3:0))}}),Ot=ur(({event:ae,diff:Q,direction:ye="next",reason:Ce})=>{if(!Je)return;const ht=Ar((()=>{const Ue=Oe.length-1;if(Q==="reset")return ne;if(Q==="start")return 0;if(Q==="end")return Ue;const Nt=he.current+Q;return Nt<0?Nt===-1&&k?-1:f&&he.current!==-1||Math.abs(Q)>1?0:Ue:Nt>Ue?Nt===Ue+1&&k?-1:f||Math.abs(Q)>1?Ue:0:Nt})(),ye);if(Et({index:ht,reason:Ce,event:ae}),n&&Q!=="reset")if(ht===-1)ie.current.value=be;else{const Ue=D(Oe[ht]);ie.current.value=Ue,Ue.toLowerCase().indexOf(be.toLowerCase())===0&&be.length>0&&ie.current.setSelectionRange(be.length,Ue.length)}}),we=!Ug({array1:He.filteredOptions,array2:Oe,parser:D}),Me=()=>{const ae=(Q,ye)=>{const Ce=Q?D(Q):"",Pe=ye?D(ye):"";return Ce===Pe};if(he.current!==-1&&!Ug({array1:He.filteredOptions,array2:Oe,parser:D})&&He.inputValue===be&&(O?fe.length===He.value.length&&He.value.every((Q,ye)=>D(fe[ye])===D(Q)):ae(He.value,fe))){const Q=He.filteredOptions[he.current];if(Q)return Oe.findIndex(ye=>D(ye)===D(Q))}return-1},pt=j.useCallback(()=>{if(!Je)return;const ae=Me();if(ae!==-1){he.current=ae;return}const Q=O?fe[0]:fe;if(Oe.length===0||Q==null){Ot({diff:"reset"});return}if(te.current){if(Q!=null){const ye=Oe[he.current];if(O&&ye&&fe.findIndex(Pe=>R(ye,Pe))!==-1)return;const Ce=Oe.findIndex(Pe=>R(Pe,Q));Ce===-1?Ot({diff:"reset"}):Et({index:Ce});return}if(he.current>=Oe.length-1){Et({index:Oe.length-1});return}Et({index:he.current})}},[Oe.length,O?!1:fe,Ot,Et,Je,be,O]),xt=ur(ae=>{uu(te,ae),ae&&pt()});process.env.NODE_ENV!=="production"&&j.useEffect(()=>{(!ie.current||ie.current.nodeName!=="INPUT")&&(ie.current&&ie.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(`
|
|
63
63
|
`)):console.error([`MUI: Unable to find the input element. It was resolved to ${ie.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(`
|
|
64
|
-
`)))},[u]),
|
|
65
|
-
`))}const Ue=ht.findIndex(Nt=>R(ee,Nt));Ue===-1?ht.push(ee):Ce!=="freeSolo"&&(ht.splice(Ue,1),Pe="removeOption")}Ie(ae,ht,Pe),Y(ae,ht,Pe,{option:ee}),!h&&(!ae||!ae.ctrlKey&&!ae.metaKey)&&Mr(ae,Pe),(l===!0||l==="touch"&&B.current||l==="mouse"&&!B.current)&&ie.current.blur()};function J(ae,ee){if(ae===-1)return-1;let ge=ae;for(;;){if(ee==="next"&&ge===fe.length||ee==="previous"&&ge===-1)return-1;const Ce=V?"data-item-index":"data-tag-index",Pe=L.querySelector(`[${Ce}="${ge}"]`);if(!Pe||!Pe.hasAttribute("tabindex")||Pe.disabled||Pe.getAttribute("aria-disabled")==="true")ge+=ee==="next"?1:-1;else return ge}}const Se=(ae,ee)=>{if(!O)return;be===""&&Mr(ae,"toggleInput");let ge=G;G===-1?be===""&&ee==="previous"&&(ge=fe.length-1):(ge+=ee==="next"?1:-1,ge<0&&(ge=0),ge===fe.length&&(ge=-1)),ge=J(ge,ee),X(ge),ct(ge)},Re=ae=>{K.current=!0,Ee(""),W&&W(ae,"","clear"),Y(ae,O?[]:null,"clear")},je=ae=>ee=>{if(ae.onKeyDown&&ae.onKeyDown(ee),!ee.defaultMuiPrevented&&(G!==-1&&!["ArrowLeft","ArrowRight"].includes(ee.key)&&(X(-1),ct(-1)),ee.which!==229))switch(ee.key){case"Home":Je&&x&&(ee.preventDefault(),Ot({diff:"start",direction:"next",reason:"keyboard",event:ee}));break;case"End":Je&&x&&(ee.preventDefault(),Ot({diff:"end",direction:"previous",reason:"keyboard",event:ee}));break;case"PageUp":ee.preventDefault(),Ot({diff:-Hg,direction:"previous",reason:"keyboard",event:ee}),Lt(ee);break;case"PageDown":ee.preventDefault(),Ot({diff:Hg,direction:"next",reason:"keyboard",event:ee}),Lt(ee);break;case"ArrowDown":ee.preventDefault(),Ot({diff:1,direction:"next",reason:"keyboard",event:ee}),Lt(ee);break;case"ArrowUp":ee.preventDefault(),Ot({diff:-1,direction:"previous",reason:"keyboard",event:ee}),Lt(ee);break;case"ArrowLeft":!O&&V&&fe!=null?(X(0),ct(0)):Se(ee,"previous");break;case"ArrowRight":!O&&V?(X(-1),ct(-1)):Se(ee,"next");break;case"Enter":if(ye.current!==-1&&Je){const ge=Oe[ye.current],Ce=_?_(ge):!1;if(ee.preventDefault(),Ce)return;Q(ee,ge,"selectOption"),n&&ie.current.setSelectionRange(ie.current.value.length,ie.current.value.length)}else p&&be!==""&&Tt===!1&&(O&&ee.preventDefault(),Q(ee,be,"createOption","freeSolo"));break;case"Escape":Je?(ee.preventDefault(),ee.stopPropagation(),Mr(ee,"escape")):c&&(be!==""||O&&fe.length>0||V)&&(ee.preventDefault(),ee.stopPropagation(),Re(ee));break;case"Backspace":if(O&&!C&&be===""&&fe.length>0){const ge=G===-1?fe.length-1:G,Ce=fe.slice();Ce.splice(ge,1),Y(ee,Ce,"removeOption",{option:fe[ge]})}!O&&V&&!C&&(Te(null),X(-1),ct(-1));break;case"Delete":if(O&&!C&&be===""&&fe.length>0&&G!==-1){const ge=G,Ce=fe.slice();Ce.splice(ge,1),Y(ee,Ce,"removeOption",{option:fe[ge]})}!O&&V&&!C&&(Te(null),X(-1),ct(-1));break}},se=ae=>{$e(!0),G!==-1&&(X(-1),ct(-1)),ue&&!K.current&&Lt(ae)},H=ae=>{if(t(te)){ie.current.focus();return}$e(!1),re.current=!0,K.current=!1,a&&ye.current!==-1&&Je?Q(ae,Oe[ye.current],"blur"):a&&p&&be!==""?Q(ae,be,"blur","freeSolo"):s&&Ie(ae,fe,"blur"),Mr(ae,"blur")},Z=ae=>{const ee=ae.target.value;be!==ee&&(Ee(ee),et(!1),W&&W(ae,ee,"input")),ee===""?!m&&!O&&Y(ae,null,"clear"):Lt(ae)},de=ae=>{const ee=Number(ae.currentTarget.getAttribute("data-option-index"));ye.current!==ee&&Et({event:ae,index:ee,reason:"mouse"})},_e=ae=>{Et({event:ae,index:Number(ae.currentTarget.getAttribute("data-option-index")),reason:"touch"}),B.current=!0},Ne=ae=>{const ee=Number(ae.currentTarget.getAttribute("data-option-index"));Q(ae,Oe[ee],"selectOption"),B.current=!1},yt=ae=>ee=>{const ge=fe.slice();ge.splice(ae,1),Y(ee,ge,"removeOption",{option:fe[ae]})},gt=ae=>{Y(ae,null,"removeOption",{option:fe})},Ke=ae=>{ot?Mr(ae,"toggleInput"):Lt(ae)},ut=ae=>{ae.currentTarget.contains(ae.target)&&ae.target.getAttribute("id")!==$&&ae.preventDefault()},jt=ae=>{ae.currentTarget.contains(ae.target)&&(ie.current.focus(),M&&re.current&&ie.current.selectionEnd-ie.current.selectionStart===0&&ie.current.select(),re.current=!1)},hn=ae=>{!y&&(be===""||!ot)&&Ke(ae)};let ir=p&&be.length>0;ir=ir||(O?fe.length>0:fe!==null);let fr=Oe;if(E){const ae=new Map;let ee=!1;fr=Oe.reduce((ge,Ce,Pe)=>{const ht=E(Ce);return ge.length>0&&ge[ge.length-1].group===ht?ge[ge.length-1].options.push(Ce):(process.env.NODE_ENV!=="production"&&(ae.get(ht)&&!ee&&(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`."),ee=!0),ae.set(ht,!0)),ge.push({key:Pe,index:Pe,group:ht,options:[Ce]})),ge},[])}return y&&he&&H(),{getRootProps:(ae={})=>({...ae,onKeyDown:je(ae),onMouseDown:ut,onClick:jt}),getInputLabelProps:()=>({id:`${$}-label`,htmlFor:$}),getInputProps:()=>({id:$,value:be,onBlur:H,onFocus:se,onChange:Z,onMouseDown:hn,"aria-activedescendant":Je?"":null,"aria-autocomplete":n?"both":"list","aria-controls":ft?`${$}-listbox`:void 0,"aria-expanded":ft,autoComplete:"off",ref:ie,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Re}),getItemProps:({index:ae=0}={})=>({...O&&{key:ae},...V?{"data-item-index":ae}:{"data-tag-index":ae},tabIndex:-1,...!C&&{onDelete:O?yt(ae):gt}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ke}),getTagProps:({index:ae})=>({key:ae,"data-tag-index":ae,tabIndex:-1,...!C&&{onDelete:yt(ae)}}),getListboxProps:()=>({role:"listbox",id:`${$}-listbox`,"aria-labelledby":`${$}-label`,ref:xt,onMouseDown:ae=>{ae.preventDefault()}}),getOptionProps:({index:ae,option:ee})=>{const ge=(O?fe:[fe]).some(Pe=>Pe!=null&&R(ee,Pe)),Ce=_?_(ee):!1;return{key:S?.(ee)??q(ee),tabIndex:-1,role:"option",id:`${$}-option-${ae}`,onMouseMove:de,onClick:Ne,onTouchStart:_e,"data-option-index":ae,"aria-disabled":Ce,"aria-selected":ge}},id:$,inputValue:be,value:fe,dirty:ir,expanded:Je&&L,popupOpen:Je,focused:he||G!==-1,anchorEl:L,setAnchorEl:I,focusedItem:G,focusedTag:G,groupedOptions:fr}}var Vt="top",tr="bottom",rr="right",Bt="left",Cu="auto",po=[Vt,tr,rr,Bt],Rn="start",ho="end",VO="clippingParents",Gg="viewport",mo="popper",BO="reference",Yg=po.reduce(function(e,t){return e.concat([t+"-"+Rn,t+"-"+ho])},[]),Jg=[].concat(po,[Cu]).reduce(function(e,t){return e.concat([t,t+"-"+Rn,t+"-"+ho])},[]),UO="beforeRead",WO="read",HO="afterRead",KO="beforeMain",GO="main",YO="afterMain",JO="beforeWrite",XO="write",ZO="afterWrite",QO=[UO,WO,HO,KO,GO,YO,JO,XO,ZO];function _r(e){return e?(e.nodeName||"").toLowerCase():null}function Jt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function un(e){var t=Jt(e).Element;return e instanceof t||e instanceof Element}function nr(e){var t=Jt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tu(e){if(typeof ShadowRoot>"u")return!1;var t=Jt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ex(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];!nr(a)||!_r(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 tx(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},{});!nr(i)||!_r(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(c){i.removeAttribute(c)}))})}}const rx={name:"applyStyles",enabled:!0,phase:"write",fn:ex,effect:tx,requires:["computeStyles"]};function wr(e){return e.split("-")[0]}var dn=Math.max,ba=Math.min,kn=Math.round;function Pu(){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 Xg(){return!/^((?!chrome|android).)*safari/i.test(Pu())}function In(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&nr(e)&&(i=e.offsetWidth>0&&kn(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&kn(n.height)/e.offsetHeight||1);var l=un(e)?Jt(e):window,s=l.visualViewport,c=!Xg()&&r,u=(n.left+(c&&s?s.offsetLeft:0))/i,d=(n.top+(c&&s?s.offsetTop:0))/a,m=n.width/i,h=n.height/a;return{width:m,height:h,top:d,right:u+m,bottom:d+h,left:u,x:u,y:d}}function $u(e){var t=In(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 Zg(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Tu(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function jr(e){return Jt(e).getComputedStyle(e)}function nx(e){return["table","td","th"].indexOf(_r(e))>=0}function Kr(e){return((un(e)?e.ownerDocument:e.document)||window.document).documentElement}function _a(e){return _r(e)==="html"?e:e.assignedSlot||e.parentNode||(Tu(e)?e.host:null)||Kr(e)}function Qg(e){return!nr(e)||jr(e).position==="fixed"?null:e.offsetParent}function ox(e){var t=/firefox/i.test(Pu()),r=/Trident/i.test(Pu());if(r&&nr(e)){var n=jr(e);if(n.position==="fixed")return null}var i=_a(e);for(Tu(i)&&(i=i.host);nr(i)&&["html","body"].indexOf(_r(i))<0;){var a=jr(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 yo(e){for(var t=Jt(e),r=Qg(e);r&&nx(r)&&jr(r).position==="static";)r=Qg(r);return r&&(_r(r)==="html"||_r(r)==="body"&&jr(r).position==="static")?t:r||ox(e)||t}function Ru(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function go(e,t,r){return dn(e,ba(t,r))}function ix(e,t,r){var n=go(e,t,r);return n>r?r:n}function ev(){return{top:0,right:0,bottom:0,left:0}}function tv(e){return Object.assign({},ev(),e)}function rv(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var ax=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,tv(typeof t!="number"?t:rv(t,po))};function sx(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,s=wr(r.placement),c=Ru(s),u=[Bt,rr].indexOf(s)>=0,d=u?"height":"width";if(!(!a||!l)){var m=ax(i.padding,r),h=$u(a),y=c==="y"?Vt:Bt,g=c==="y"?tr:rr,f=r.rects.reference[d]+r.rects.reference[c]-l[c]-r.rects.popper[d],b=l[c]-r.rects.reference[c],v=yo(a),p=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,_=f/2-b/2,S=m[y],w=p-h[d]-m[g],E=p/2-h[d]/2+_,x=go(S,E,w),P=c;r.modifiersData[n]=(t={},t[P]=x,t.centerOffset=x-E,t)}}function lx(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)||Zg(t.elements.popper,i)&&(t.elements.arrow=i))}const cx={name:"arrow",enabled:!0,phase:"main",fn:sx,effect:lx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jn(e){return e.split("-")[1]}var ux={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dx(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:kn(r*i)/i||0,y:kn(n*i)/i||0}}function nv(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,d=e.roundOffsets,m=e.isFixed,h=l.x,y=h===void 0?0:h,g=l.y,f=g===void 0?0:g,b=typeof d=="function"?d({x:y,y:f}):{x:y,y:f};y=b.x,f=b.y;var v=l.hasOwnProperty("x"),p=l.hasOwnProperty("y"),_=Bt,S=Vt,w=window;if(u){var E=yo(r),x="clientHeight",P="clientWidth";if(E===Jt(r)&&(E=Kr(r),jr(E).position!=="static"&&s==="absolute"&&(x="scrollHeight",P="scrollWidth")),E=E,i===Vt||(i===Bt||i===rr)&&a===ho){S=tr;var k=m&&E===w&&w.visualViewport?w.visualViewport.height:E[x];f-=k-n.height,f*=c?1:-1}if(i===Bt||(i===Vt||i===tr)&&a===ho){_=rr;var j=m&&E===w&&w.visualViewport?w.visualViewport.width:E[P];y-=j-n.width,y*=c?1:-1}}var R=Object.assign({position:s},u&&ux),O=d===!0?dx({x:y,y:f},Jt(r)):{x:y,y:f};if(y=O.x,f=O.y,c){var D;return Object.assign({},R,(D={},D[S]=p?"0":"",D[_]=v?"0":"",D.transform=(w.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",D))}return Object.assign({},R,(t={},t[S]=p?f+"px":"",t[_]=v?y+"px":"",t.transform="",t))}function fx(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:wr(t.placement),variation:jn(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,nv(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,nv(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 px={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fx,data:{}};var wa={passive:!0};function hx(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=Jt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",r.update,wa)}),s&&c.addEventListener("resize",r.update,wa),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",r.update,wa)}),s&&c.removeEventListener("resize",r.update,wa)}}const mx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hx,data:{}};var yx={left:"right",right:"left",bottom:"top",top:"bottom"};function Sa(e){return e.replace(/left|right|bottom|top/g,function(t){return yx[t]})}var gx={start:"end",end:"start"};function ov(e){return e.replace(/start|end/g,function(t){return gx[t]})}function ku(e){var t=Jt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Iu(e){return In(Kr(e)).left+ku(e).scrollLeft}function vx(e,t){var r=Jt(e),n=Kr(e),i=r.visualViewport,a=n.clientWidth,l=n.clientHeight,s=0,c=0;if(i){a=i.width,l=i.height;var u=Xg();(u||!u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:l,x:s+Iu(e),y:c}}function bx(e){var t,r=Kr(e),n=ku(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=dn(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=dn(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Iu(e),c=-n.scrollTop;return jr(i||r).direction==="rtl"&&(s+=dn(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:l,x:s,y:c}}function ju(e){var t=jr(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function iv(e){return["html","body","#document"].indexOf(_r(e))>=0?e.ownerDocument.body:nr(e)&&ju(e)?e:iv(_a(e))}function vo(e,t){var r;t===void 0&&(t=[]);var n=iv(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Jt(n),l=i?[a].concat(a.visualViewport||[],ju(n)?n:[]):n,s=t.concat(l);return i?s:s.concat(vo(_a(l)))}function Nu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _x(e,t){var r=In(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 av(e,t,r){return t===Gg?Nu(vx(e,r)):un(t)?_x(t,r):Nu(bx(Kr(e)))}function wx(e){var t=vo(_a(e)),r=["absolute","fixed"].indexOf(jr(e).position)>=0,n=r&&nr(e)?yo(e):e;return un(n)?t.filter(function(i){return un(i)&&Zg(i,n)&&_r(i)!=="body"}):[]}function Sx(e,t,r,n){var i=t==="clippingParents"?wx(e):[].concat(t),a=[].concat(i,[r]),l=a[0],s=a.reduce(function(c,u){var d=av(e,u,n);return c.top=dn(d.top,c.top),c.right=ba(d.right,c.right),c.bottom=ba(d.bottom,c.bottom),c.left=dn(d.left,c.left),c},av(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 sv(e){var t=e.reference,r=e.element,n=e.placement,i=n?wr(n):null,a=n?jn(n):null,l=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(i){case Vt:c={x:l,y:t.y-r.height};break;case tr:c={x:l,y:t.y+t.height};break;case rr:c={x:t.x+t.width,y:s};break;case Bt:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var u=i?Ru(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case Rn:c[u]=c[u]-(t[d]/2-r[d]/2);break;case ho:c[u]=c[u]+(t[d]/2-r[d]/2);break}}return c}function bo(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?VO:s,u=r.rootBoundary,d=u===void 0?Gg:u,m=r.elementContext,h=m===void 0?mo:m,y=r.altBoundary,g=y===void 0?!1:y,f=r.padding,b=f===void 0?0:f,v=tv(typeof b!="number"?b:rv(b,po)),p=h===mo?BO:mo,_=e.rects.popper,S=e.elements[g?p:h],w=Sx(un(S)?S:S.contextElement||Kr(e.elements.popper),c,d,l),E=In(e.elements.reference),x=sv({reference:E,element:_,placement:i}),P=Nu(Object.assign({},_,x)),k=h===mo?P:E,j={top:w.top-k.top+v.top,bottom:k.bottom-w.bottom+v.bottom,left:w.left-k.left+v.left,right:k.right-w.right+v.right},R=e.modifiersData.offset;if(h===mo&&R){var O=R[i];Object.keys(j).forEach(function(D){var N=[rr,tr].indexOf(D)>=0?1:-1,U=[Vt,tr].indexOf(D)>=0?"y":"x";j[D]+=O[U]*N})}return j}function Ex(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?Jg:c,d=jn(n),m=d?s?Yg:Yg.filter(function(g){return jn(g)===d}):po,h=m.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=m);var y=h.reduce(function(g,f){return g[f]=bo(e,{placement:f,boundary:i,rootBoundary:a,padding:l})[wr(f)],g},{});return Object.keys(y).sort(function(g,f){return y[g]-y[f]})}function Ox(e){if(wr(e)===Cu)return[];var t=Sa(e);return[ov(e),t,ov(t)]}function xx(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,d=r.boundary,m=r.rootBoundary,h=r.altBoundary,y=r.flipVariations,g=y===void 0?!0:y,f=r.allowedAutoPlacements,b=t.options.placement,v=wr(b),p=v===b,_=c||(p||!g?[Sa(b)]:Ox(b)),S=[b].concat(_).reduce(function(T,$){return T.concat(wr($)===Cu?Ex(t,{placement:$,boundary:d,rootBoundary:m,padding:u,flipVariations:g,allowedAutoPlacements:f}):$)},[]),w=t.rects.reference,E=t.rects.popper,x=new Map,P=!0,k=S[0],j=0;j<S.length;j++){var R=S[j],O=wr(R),D=jn(R)===Rn,N=[Vt,tr].indexOf(O)>=0,U=N?"width":"height",W=bo(t,{placement:R,boundary:d,rootBoundary:m,altBoundary:h,padding:u}),le=N?D?rr:Bt:D?tr:Vt;w[U]>E[U]&&(le=Sa(le));var ce=Sa(le),ue=[];if(a&&ue.push(W[O]<=0),s&&ue.push(W[le]<=0,W[ce]<=0),ue.every(function(T){return T})){k=R,P=!1;break}x.set(R,ue)}if(P)for(var z=g?3:1,C=function($){var q=S.find(function(K){var re=x.get(K);if(re)return re.slice(0,$).every(function(ie){return ie})});if(q)return k=q,"break"},V=z;V>0;V--){var M=C(V);if(M==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const Cx={name:"flip",enabled:!0,phase:"main",fn:xx,requiresIfExists:["offset"],data:{_skip:!1}};function lv(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 cv(e){return[Vt,rr,tr,Bt].some(function(t){return e[t]>=0})}function Tx(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,l=bo(t,{elementContext:"reference"}),s=bo(t,{altBoundary:!0}),c=lv(l,n),u=lv(s,i,a),d=cv(c),m=cv(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const Px={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tx};function $x(e,t,r){var n=wr(e),i=[Bt,Vt].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,[Bt,rr].indexOf(n)>=0?{x:s,y:l}:{x:l,y:s}}function Rx(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,l=Jg.reduce(function(d,m){return d[m]=$x(m,t.rects,a),d},{}),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 kx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rx};function Ix(e){var t=e.state,r=e.name;t.modifiersData[r]=sv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const jx={name:"popperOffsets",enabled:!0,phase:"read",fn:Ix,data:{}};function Nx(e){return e==="x"?"y":"x"}function Ax(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,d=r.altBoundary,m=r.padding,h=r.tether,y=h===void 0?!0:h,g=r.tetherOffset,f=g===void 0?0:g,b=bo(t,{boundary:c,rootBoundary:u,padding:m,altBoundary:d}),v=wr(t.placement),p=jn(t.placement),_=!p,S=Ru(v),w=Nx(S),E=t.modifiersData.popperOffsets,x=t.rects.reference,P=t.rects.popper,k=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,j=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(E){if(a){var D,N=S==="y"?Vt:Bt,U=S==="y"?tr:rr,W=S==="y"?"height":"width",le=E[S],ce=le+b[N],ue=le-b[U],z=y?-P[W]/2:0,C=p===Rn?x[W]:P[W],V=p===Rn?-P[W]:-x[W],M=t.elements.arrow,T=y&&M?$u(M):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ev(),q=$[N],K=$[U],re=go(0,x[W],T[W]),ie=_?x[W]/2-z-re-q-j.mainAxis:C-re-q-j.mainAxis,te=_?-x[W]/2+z+re+K+j.mainAxis:V+re+K+j.mainAxis,L=t.elements.arrow&&yo(t.elements.arrow),I=L?S==="y"?L.clientTop||0:L.clientLeft||0:0,G=(D=R?.[S])!=null?D:0,X=le+ie-G-I,oe=le+te-G,ye=go(y?ba(ce,X):ce,le,y?dn(ue,oe):ue);E[S]=ye,O[S]=ye-le}if(s){var ve,fe=S==="x"?Vt:Bt,Te=S==="x"?tr:rr,be=E[w],Ee=w==="y"?"height":"width",he=be+b[fe],$e=be-b[Te],Ie=[Vt,Bt].indexOf(v)!==-1,ot=(ve=R?.[w])!=null?ve:0,Qe=Ie?he:be-x[Ee]-P[Ee]-ot+j.altAxis,_t=Ie?be+x[Ee]+P[Ee]-ot-j.altAxis:$e,et=y&&Ie?ix(Qe,be,_t):go(y?Qe:he,be,y?_t:$e);E[w]=et,O[w]=et-be}t.modifiersData[n]=O}}const Mx={name:"preventOverflow",enabled:!0,phase:"main",fn:Ax,requiresIfExists:["offset"]};function Dx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function qx(e){return e===Jt(e)||!nr(e)?ku(e):Dx(e)}function Lx(e){var t=e.getBoundingClientRect(),r=kn(t.width)/e.offsetWidth||1,n=kn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Fx(e,t,r){r===void 0&&(r=!1);var n=nr(t),i=nr(t)&&Lx(t),a=Kr(t),l=In(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((_r(t)!=="body"||ju(a))&&(s=qx(t)),nr(t)?(c=In(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Iu(a))),{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}function zx(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 Vx(e){var t=zx(e);return QO.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Bx(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Ux(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 uv={placement:"bottom",modifiers:[],strategy:"absolute"};function dv(){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 Wx(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?uv:i;return function(s,c,u){u===void 0&&(u=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},uv,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},m=[],h=!1,y={state:d,setOptions:function(v){var p=typeof v=="function"?v(d.options):v;f(),d.options=Object.assign({},a,d.options,p),d.scrollParents={reference:un(s)?vo(s):s.contextElement?vo(s.contextElement):[],popper:vo(c)};var _=Vx(Ux([].concat(n,d.options.modifiers)));return d.orderedModifiers=_.filter(function(S){return S.enabled}),g(),y.update()},forceUpdate:function(){if(!h){var v=d.elements,p=v.reference,_=v.popper;if(dv(p,_)){d.rects={reference:Fx(p,yo(_),d.options.strategy==="fixed"),popper:$u(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(j){return d.modifiersData[j.name]=Object.assign({},j.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var w=d.orderedModifiers[S],E=w.fn,x=w.options,P=x===void 0?{}:x,k=w.name;typeof E=="function"&&(d=E({state:d,options:P,name:k,instance:y})||d)}}}},update:Bx(function(){return new Promise(function(b){y.forceUpdate(),b(d)})}),destroy:function(){f(),h=!0}};if(!dv(s,c))return y;y.setOptions(u).then(function(b){!h&&u.onFirstUpdate&&u.onFirstUpdate(b)});function g(){d.orderedModifiers.forEach(function(b){var v=b.name,p=b.options,_=p===void 0?{}:p,S=b.effect;if(typeof S=="function"){var w=S({state:d,name:v,instance:y,options:_}),E=function(){};m.push(w||E)}})}function f(){m.forEach(function(b){return b()}),m=[]}return y}}var Hx=[mx,jx,px,rx,kx,Cx,Mx,cx,Px],Kx=Wx({defaultModifiers:Hx});function Gx(e){return Fe("MuiPopper",e)}Le("MuiPopper",["root"]);function Yx(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 Ea(e){return typeof e=="function"?e():e}function Oa(e){return e.nodeType!==void 0}function Jx(e){return!Oa(e)}const Xx=e=>{const{classes:t}=e;return Be({root:["root"]},Gx,t)},Zx={},Qx=A.forwardRef(function(t,r){const{anchorEl:n,children:i,direction:a,disablePortal:l,modifiers:s,open:c,placement:u,popperOptions:d,popperRef:m,slotProps:h={},slots:y={},TransitionProps:g,ownerState:f,...b}=t,v=A.useRef(null),p=St(v,r),_=A.useRef(null),S=St(_,m),w=A.useRef(S);yr(()=>{w.current=S},[S]),A.useImperativeHandle(m,()=>_.current,[]);const E=Yx(u,a),[x,P]=A.useState(E),[k,j]=A.useState(Ea(n));A.useEffect(()=>{_.current&&_.current.forceUpdate()}),A.useEffect(()=>{n&&j(Ea(n))},[n]),yr(()=>{if(!k||!c)return;const U=ce=>{P(ce.placement)};if(process.env.NODE_ENV!=="production"&&k&&Oa(k)&&k.nodeType===1){const ce=k.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ce.top===0&&ce.left===0&&ce.right===0&&ce.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(`
|
|
66
|
-
`))}let W=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ce})=>{U(ce)}}];s!=null&&(W=W.concat(s)),d&&d.modifiers!=null&&(W=W.concat(d.modifiers));const le=Kx(k,v.current,{placement:E,...d,modifiers:W});return w.current(le),()=>{le.destroy(),w.current(null)}},[k,l,s,c,d,E]);const R={placement:x};g!==null&&(R.TransitionProps=g);const O=Xx(t),
|
|
64
|
+
`)))},[u]),j.useEffect(()=>{(we||Je)&&pt()},[pt,we,Je]);const Lt=ae=>{ot||(Qe(!0),et(!0),le&&le(ae))},Mr=(ae,Q)=>{ot&&(Qe(!1),N&&N(ae,Q))},Y=(ae,Q,ye,Ce)=>{if(O){if(fe.length===Q.length&&fe.every((Pe,ht)=>Pe===Q[ht]))return}else if(fe===Q)return;q&&q(ae,Q,ye,Ce),Te(Q)},B=j.useRef(!1),ee=(ae,Q,ye="selectOption",Ce="options")=>{let Pe=ye,ht=Q;if(O){if(ht=Array.isArray(fe)?fe.slice():[],process.env.NODE_ENV!=="production"){const Nt=ht.filter(At=>R(Q,At));Nt.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 ${Nt.length} matches.`].join(`
|
|
65
|
+
`))}const Ue=ht.findIndex(Nt=>R(Q,Nt));Ue===-1?ht.push(Q):Ce!=="freeSolo"&&(ht.splice(Ue,1),Pe="removeOption")}Ie(ae,ht,Pe),Y(ae,ht,Pe,{option:Q}),!h&&(!ae||!ae.ctrlKey&&!ae.metaKey)&&Mr(ae,Pe),(l===!0||l==="touch"&&B.current||l==="mouse"&&!B.current)&&ie.current.blur()};function J(ae,Q){if(ae===-1)return-1;let ye=ae;for(;;){if(Q==="next"&&ye===fe.length||Q==="previous"&&ye===-1)return-1;const Ce=V?"data-item-index":"data-tag-index",Pe=L.querySelector(`[${Ce}="${ye}"]`);if(!Pe||!Pe.hasAttribute("tabindex")||Pe.disabled||Pe.getAttribute("aria-disabled")==="true")ye+=Q==="next"?1:-1;else return ye}}const Se=(ae,Q)=>{if(!O)return;be===""&&Mr(ae,"toggleInput");let ye=G;G===-1&&Q==="previous"?(ye=fe.length-1,p&&be!==""&&(Ee(""),W&&W(ae,"","reset"))):(ye+=Q==="next"?1:-1,ye<0&&(ye=0),ye===fe.length&&(ye=-1)),ye=J(ye,Q),X(ye),ft(ye)},Re=ae=>{K.current=!0,Ee(""),W&&W(ae,"","clear"),Y(ae,O?[]:null,"clear")},je=ae=>Q=>{if(ae.onKeyDown&&ae.onKeyDown(Q),!Q.defaultMuiPrevented&&(G!==-1&&!["ArrowLeft","ArrowRight"].includes(Q.key)&&(X(-1),ft(-1)),Q.which!==229))switch(Q.key){case"Home":Je&&x&&(Q.preventDefault(),Ot({diff:"start",direction:"next",reason:"keyboard",event:Q}));break;case"End":Je&&x&&(Q.preventDefault(),Ot({diff:"end",direction:"previous",reason:"keyboard",event:Q}));break;case"PageUp":Q.preventDefault(),Ot({diff:-Hg,direction:"previous",reason:"keyboard",event:Q}),Lt(Q);break;case"PageDown":Q.preventDefault(),Ot({diff:Hg,direction:"next",reason:"keyboard",event:Q}),Lt(Q);break;case"ArrowDown":Q.preventDefault(),Ot({diff:1,direction:"next",reason:"keyboard",event:Q}),Lt(Q);break;case"ArrowUp":Q.preventDefault(),Ot({diff:-1,direction:"previous",reason:"keyboard",event:Q}),Lt(Q);break;case"ArrowLeft":{const ye=ie.current;if(!(ye&&ye.selectionStart===0&&ye.selectionEnd===0))return;!O&&V&&fe!=null?(p&&be!==""&&(Ee(""),W&&W(Q,"","reset")),X(0),ft(0)):Se(Q,"previous");break}case"ArrowRight":!O&&V?(X(-1),ft(-1)):Se(Q,"next");break;case"Enter":if(he.current!==-1&&Je){const ye=Oe[he.current],Ce=_?_(ye):!1;if(Q.preventDefault(),Ce)return;ee(Q,ye,"selectOption"),n&&ie.current.setSelectionRange(ie.current.value.length,ie.current.value.length)}else p&&be!==""&&Tt===!1&&(O&&Q.preventDefault(),ee(Q,be,"createOption","freeSolo"));break;case"Escape":Je?(Q.preventDefault(),Q.stopPropagation(),Mr(Q,"escape")):c&&(be!==""||O&&fe.length>0||V)&&(Q.preventDefault(),Q.stopPropagation(),Re(Q));break;case"Backspace":if(O&&!C&&be===""&&fe.length>0){const ye=G===-1?fe.length-1:G,Ce=fe.slice();Ce.splice(ye,1),Y(Q,Ce,"removeOption",{option:fe[ye]})}!O&&V&&!C&&be===""&&Y(Q,null,"removeOption",{option:fe});break;case"Delete":if(O&&!C&&be===""&&fe.length>0&&G!==-1){const ye=G,Ce=fe.slice();Ce.splice(ye,1),Y(Q,Ce,"removeOption",{option:fe[ye]})}!O&&V&&!C&&be===""&&Y(Q,null,"removeOption",{option:fe});break}},se=ae=>{$e(!0),G!==-1&&(X(-1),ft(-1)),ue&&!K.current&&Lt(ae)},H=ae=>{if(t(te)){ie.current.focus();return}$e(!1),re.current=!0,K.current=!1,a&&he.current!==-1&&Je?ee(ae,Oe[he.current],"blur"):a&&p&&be!==""?ee(ae,be,"blur","freeSolo"):s&&Ie(ae,fe,"blur"),Mr(ae,"blur")},Z=ae=>{const Q=ae.target.value;be!==Q&&(Ee(Q),et(!1),W&&W(ae,Q,"input")),Q===""?!m&&!O&&!V&&Y(ae,null,"clear"):Lt(ae)},de=ae=>{const Q=Number(ae.currentTarget.getAttribute("data-option-index"));he.current!==Q&&Et({event:ae,index:Q,reason:"mouse"})},_e=ae=>{Et({event:ae,index:Number(ae.currentTarget.getAttribute("data-option-index")),reason:"touch"}),B.current=!0},Ne=ae=>{const Q=Number(ae.currentTarget.getAttribute("data-option-index"));ee(ae,Oe[Q],"selectOption"),B.current=!1},yt=ae=>Q=>{const ye=fe.slice();ye.splice(ae,1),Y(Q,ye,"removeOption",{option:fe[ae]})},gt=ae=>{Y(ae,null,"removeOption",{option:fe})},Ke=ae=>{ot?Mr(ae,"toggleInput"):Lt(ae)},ct=ae=>{ae.currentTarget.contains(ae.target)&&ae.target.getAttribute("id")!==$&&ae.preventDefault()},jt=ae=>{ae.currentTarget.contains(ae.target)&&(ie.current.focus(),A&&re.current&&ie.current.selectionEnd-ie.current.selectionStart===0&&ie.current.select(),re.current=!1)},hn=ae=>{!y&&(be===""||!ot)&&Ke(ae)};let ir=p&&be.length>0;ir=ir||(O?fe.length>0:fe!==null);let fr=Oe;if(E){const ae=new Map;let Q=!1;fr=Oe.reduce((ye,Ce,Pe)=>{const ht=E(Ce);return ye.length>0&&ye[ye.length-1].group===ht?ye[ye.length-1].options.push(Ce):(process.env.NODE_ENV!=="production"&&(ae.get(ht)&&!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),ae.set(ht,!0)),ye.push({key:Pe,index:Pe,group:ht,options:[Ce]})),ye},[])}return y&&ge&&H(),{getRootProps:(ae={})=>({...ae,onKeyDown:je(ae),onMouseDown:ct,onClick:jt}),getInputLabelProps:()=>({id:`${$}-label`,htmlFor:$}),getInputProps:()=>({id:$,value:be,onBlur:H,onFocus:se,onChange:Z,onMouseDown:hn,"aria-activedescendant":Je?"":null,"aria-autocomplete":n?"both":"list","aria-controls":dt?`${$}-listbox`:void 0,"aria-expanded":dt,autoComplete:"off",ref:ie,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Re}),getItemProps:({index:ae=0}={})=>({...O&&{key:ae},...V?{"data-item-index":ae}:{"data-tag-index":ae},tabIndex:-1,...!C&&{onDelete:O?yt(ae):gt}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ke}),getTagProps:({index:ae})=>({key:ae,"data-tag-index":ae,tabIndex:-1,...!C&&{onDelete:yt(ae)}}),getListboxProps:()=>({role:"listbox",id:`${$}-listbox`,"aria-labelledby":`${$}-label`,ref:xt,onMouseDown:ae=>{ae.preventDefault()}}),getOptionProps:({index:ae,option:Q})=>{const ye=(O?fe:[fe]).some(Pe=>Pe!=null&&R(Q,Pe)),Ce=_?_(Q):!1;return{key:S?.(Q)??D(Q),tabIndex:-1,role:"option",id:`${$}-option-${ae}`,onMouseMove:de,onClick:Ne,onTouchStart:_e,"data-option-index":ae,"aria-disabled":Ce,"aria-selected":ye}},id:$,inputValue:be,value:fe,dirty:ir,expanded:Je&&L,popupOpen:Je,focused:ge||G!==-1,anchorEl:L,setAnchorEl:I,focusedItem:G,focusedTag:G,groupedOptions:fr}}var Vt="top",tr="bottom",rr="right",Bt="left",Cu="auto",po=[Vt,tr,rr,Bt],Rn="start",ho="end",V1="clippingParents",Gg="viewport",mo="popper",B1="reference",Yg=po.reduce(function(e,t){return e.concat([t+"-"+Rn,t+"-"+ho])},[]),Jg=[].concat(po,[Cu]).reduce(function(e,t){return e.concat([t,t+"-"+Rn,t+"-"+ho])},[]),U1="beforeRead",W1="read",H1="afterRead",K1="beforeMain",G1="main",Y1="afterMain",J1="beforeWrite",X1="write",Z1="afterWrite",Q1=[U1,W1,H1,K1,G1,Y1,J1,X1,Z1];function _r(e){return e?(e.nodeName||"").toLowerCase():null}function Jt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function un(e){var t=Jt(e).Element;return e instanceof t||e instanceof Element}function nr(e){var t=Jt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tu(e){if(typeof ShadowRoot>"u")return!1;var t=Jt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ex(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];!nr(a)||!_r(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 tx(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},{});!nr(i)||!_r(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(c){i.removeAttribute(c)}))})}}const rx={name:"applyStyles",enabled:!0,phase:"write",fn:ex,effect:tx,requires:["computeStyles"]};function wr(e){return e.split("-")[0]}var dn=Math.max,ba=Math.min,kn=Math.round;function Pu(){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 Xg(){return!/^((?!chrome|android).)*safari/i.test(Pu())}function In(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&nr(e)&&(i=e.offsetWidth>0&&kn(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&kn(n.height)/e.offsetHeight||1);var l=un(e)?Jt(e):window,s=l.visualViewport,c=!Xg()&&r,u=(n.left+(c&&s?s.offsetLeft:0))/i,d=(n.top+(c&&s?s.offsetTop:0))/a,m=n.width/i,h=n.height/a;return{width:m,height:h,top:d,right:u+m,bottom:d+h,left:u,x:u,y:d}}function $u(e){var t=In(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 Zg(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Tu(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function jr(e){return Jt(e).getComputedStyle(e)}function nx(e){return["table","td","th"].indexOf(_r(e))>=0}function Kr(e){return((un(e)?e.ownerDocument:e.document)||window.document).documentElement}function _a(e){return _r(e)==="html"?e:e.assignedSlot||e.parentNode||(Tu(e)?e.host:null)||Kr(e)}function Qg(e){return!nr(e)||jr(e).position==="fixed"?null:e.offsetParent}function ox(e){var t=/firefox/i.test(Pu()),r=/Trident/i.test(Pu());if(r&&nr(e)){var n=jr(e);if(n.position==="fixed")return null}var i=_a(e);for(Tu(i)&&(i=i.host);nr(i)&&["html","body"].indexOf(_r(i))<0;){var a=jr(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 yo(e){for(var t=Jt(e),r=Qg(e);r&&nx(r)&&jr(r).position==="static";)r=Qg(r);return r&&(_r(r)==="html"||_r(r)==="body"&&jr(r).position==="static")?t:r||ox(e)||t}function Ru(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function go(e,t,r){return dn(e,ba(t,r))}function ix(e,t,r){var n=go(e,t,r);return n>r?r:n}function ev(){return{top:0,right:0,bottom:0,left:0}}function tv(e){return Object.assign({},ev(),e)}function rv(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var ax=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,tv(typeof t!="number"?t:rv(t,po))};function sx(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,s=wr(r.placement),c=Ru(s),u=[Bt,rr].indexOf(s)>=0,d=u?"height":"width";if(!(!a||!l)){var m=ax(i.padding,r),h=$u(a),y=c==="y"?Vt:Bt,g=c==="y"?tr:rr,f=r.rects.reference[d]+r.rects.reference[c]-l[c]-r.rects.popper[d],b=l[c]-r.rects.reference[c],v=yo(a),p=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,_=f/2-b/2,S=m[y],w=p-h[d]-m[g],E=p/2-h[d]/2+_,x=go(S,E,w),P=c;r.modifiersData[n]=(t={},t[P]=x,t.centerOffset=x-E,t)}}function lx(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)||Zg(t.elements.popper,i)&&(t.elements.arrow=i))}const cx={name:"arrow",enabled:!0,phase:"main",fn:sx,effect:lx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jn(e){return e.split("-")[1]}var ux={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dx(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:kn(r*i)/i||0,y:kn(n*i)/i||0}}function nv(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,d=e.roundOffsets,m=e.isFixed,h=l.x,y=h===void 0?0:h,g=l.y,f=g===void 0?0:g,b=typeof d=="function"?d({x:y,y:f}):{x:y,y:f};y=b.x,f=b.y;var v=l.hasOwnProperty("x"),p=l.hasOwnProperty("y"),_=Bt,S=Vt,w=window;if(u){var E=yo(r),x="clientHeight",P="clientWidth";if(E===Jt(r)&&(E=Kr(r),jr(E).position!=="static"&&s==="absolute"&&(x="scrollHeight",P="scrollWidth")),E=E,i===Vt||(i===Bt||i===rr)&&a===ho){S=tr;var k=m&&E===w&&w.visualViewport?w.visualViewport.height:E[x];f-=k-n.height,f*=c?1:-1}if(i===Bt||(i===Vt||i===tr)&&a===ho){_=rr;var M=m&&E===w&&w.visualViewport?w.visualViewport.width:E[P];y-=M-n.width,y*=c?1:-1}}var R=Object.assign({position:s},u&&ux),O=d===!0?dx({x:y,y:f},Jt(r)):{x:y,y:f};if(y=O.x,f=O.y,c){var q;return Object.assign({},R,(q={},q[S]=p?"0":"",q[_]=v?"0":"",q.transform=(w.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",q))}return Object.assign({},R,(t={},t[S]=p?f+"px":"",t[_]=v?y+"px":"",t.transform="",t))}function fx(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:wr(t.placement),variation:jn(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,nv(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,nv(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 px={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fx,data:{}};var wa={passive:!0};function hx(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=Jt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",r.update,wa)}),s&&c.addEventListener("resize",r.update,wa),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",r.update,wa)}),s&&c.removeEventListener("resize",r.update,wa)}}const mx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hx,data:{}};var yx={left:"right",right:"left",bottom:"top",top:"bottom"};function Sa(e){return e.replace(/left|right|bottom|top/g,function(t){return yx[t]})}var gx={start:"end",end:"start"};function ov(e){return e.replace(/start|end/g,function(t){return gx[t]})}function ku(e){var t=Jt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Iu(e){return In(Kr(e)).left+ku(e).scrollLeft}function vx(e,t){var r=Jt(e),n=Kr(e),i=r.visualViewport,a=n.clientWidth,l=n.clientHeight,s=0,c=0;if(i){a=i.width,l=i.height;var u=Xg();(u||!u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:l,x:s+Iu(e),y:c}}function bx(e){var t,r=Kr(e),n=ku(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=dn(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=dn(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Iu(e),c=-n.scrollTop;return jr(i||r).direction==="rtl"&&(s+=dn(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:l,x:s,y:c}}function ju(e){var t=jr(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function iv(e){return["html","body","#document"].indexOf(_r(e))>=0?e.ownerDocument.body:nr(e)&&ju(e)?e:iv(_a(e))}function vo(e,t){var r;t===void 0&&(t=[]);var n=iv(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Jt(n),l=i?[a].concat(a.visualViewport||[],ju(n)?n:[]):n,s=t.concat(l);return i?s:s.concat(vo(_a(l)))}function Nu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _x(e,t){var r=In(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 av(e,t,r){return t===Gg?Nu(vx(e,r)):un(t)?_x(t,r):Nu(bx(Kr(e)))}function wx(e){var t=vo(_a(e)),r=["absolute","fixed"].indexOf(jr(e).position)>=0,n=r&&nr(e)?yo(e):e;return un(n)?t.filter(function(i){return un(i)&&Zg(i,n)&&_r(i)!=="body"}):[]}function Sx(e,t,r,n){var i=t==="clippingParents"?wx(e):[].concat(t),a=[].concat(i,[r]),l=a[0],s=a.reduce(function(c,u){var d=av(e,u,n);return c.top=dn(d.top,c.top),c.right=ba(d.right,c.right),c.bottom=ba(d.bottom,c.bottom),c.left=dn(d.left,c.left),c},av(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 sv(e){var t=e.reference,r=e.element,n=e.placement,i=n?wr(n):null,a=n?jn(n):null,l=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(i){case Vt:c={x:l,y:t.y-r.height};break;case tr:c={x:l,y:t.y+t.height};break;case rr:c={x:t.x+t.width,y:s};break;case Bt:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var u=i?Ru(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case Rn:c[u]=c[u]-(t[d]/2-r[d]/2);break;case ho:c[u]=c[u]+(t[d]/2-r[d]/2);break}}return c}function bo(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?V1:s,u=r.rootBoundary,d=u===void 0?Gg:u,m=r.elementContext,h=m===void 0?mo:m,y=r.altBoundary,g=y===void 0?!1:y,f=r.padding,b=f===void 0?0:f,v=tv(typeof b!="number"?b:rv(b,po)),p=h===mo?B1:mo,_=e.rects.popper,S=e.elements[g?p:h],w=Sx(un(S)?S:S.contextElement||Kr(e.elements.popper),c,d,l),E=In(e.elements.reference),x=sv({reference:E,element:_,placement:i}),P=Nu(Object.assign({},_,x)),k=h===mo?P:E,M={top:w.top-k.top+v.top,bottom:k.bottom-w.bottom+v.bottom,left:w.left-k.left+v.left,right:k.right-w.right+v.right},R=e.modifiersData.offset;if(h===mo&&R){var O=R[i];Object.keys(M).forEach(function(q){var N=[rr,tr].indexOf(q)>=0?1:-1,U=[Vt,tr].indexOf(q)>=0?"y":"x";M[q]+=O[U]*N})}return M}function Ex(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?Jg:c,d=jn(n),m=d?s?Yg:Yg.filter(function(g){return jn(g)===d}):po,h=m.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=m);var y=h.reduce(function(g,f){return g[f]=bo(e,{placement:f,boundary:i,rootBoundary:a,padding:l})[wr(f)],g},{});return Object.keys(y).sort(function(g,f){return y[g]-y[f]})}function Ox(e){if(wr(e)===Cu)return[];var t=Sa(e);return[ov(e),t,ov(t)]}function xx(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,d=r.boundary,m=r.rootBoundary,h=r.altBoundary,y=r.flipVariations,g=y===void 0?!0:y,f=r.allowedAutoPlacements,b=t.options.placement,v=wr(b),p=v===b,_=c||(p||!g?[Sa(b)]:Ox(b)),S=[b].concat(_).reduce(function(T,$){return T.concat(wr($)===Cu?Ex(t,{placement:$,boundary:d,rootBoundary:m,padding:u,flipVariations:g,allowedAutoPlacements:f}):$)},[]),w=t.rects.reference,E=t.rects.popper,x=new Map,P=!0,k=S[0],M=0;M<S.length;M++){var R=S[M],O=wr(R),q=jn(R)===Rn,N=[Vt,tr].indexOf(O)>=0,U=N?"width":"height",W=bo(t,{placement:R,boundary:d,rootBoundary:m,altBoundary:h,padding:u}),le=N?q?rr:Bt:q?tr:Vt;w[U]>E[U]&&(le=Sa(le));var ce=Sa(le),ue=[];if(a&&ue.push(W[O]<=0),s&&ue.push(W[le]<=0,W[ce]<=0),ue.every(function(T){return T})){k=R,P=!1;break}x.set(R,ue)}if(P)for(var z=g?3:1,C=function($){var D=S.find(function(K){var re=x.get(K);if(re)return re.slice(0,$).every(function(ie){return ie})});if(D)return k=D,"break"},V=z;V>0;V--){var A=C(V);if(A==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const Cx={name:"flip",enabled:!0,phase:"main",fn:xx,requiresIfExists:["offset"],data:{_skip:!1}};function lv(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 cv(e){return[Vt,rr,tr,Bt].some(function(t){return e[t]>=0})}function Tx(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,l=bo(t,{elementContext:"reference"}),s=bo(t,{altBoundary:!0}),c=lv(l,n),u=lv(s,i,a),d=cv(c),m=cv(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const Px={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tx};function $x(e,t,r){var n=wr(e),i=[Bt,Vt].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,[Bt,rr].indexOf(n)>=0?{x:s,y:l}:{x:l,y:s}}function Rx(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,l=Jg.reduce(function(d,m){return d[m]=$x(m,t.rects,a),d},{}),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 kx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rx};function Ix(e){var t=e.state,r=e.name;t.modifiersData[r]=sv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const jx={name:"popperOffsets",enabled:!0,phase:"read",fn:Ix,data:{}};function Nx(e){return e==="x"?"y":"x"}function Ax(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,d=r.altBoundary,m=r.padding,h=r.tether,y=h===void 0?!0:h,g=r.tetherOffset,f=g===void 0?0:g,b=bo(t,{boundary:c,rootBoundary:u,padding:m,altBoundary:d}),v=wr(t.placement),p=jn(t.placement),_=!p,S=Ru(v),w=Nx(S),E=t.modifiersData.popperOffsets,x=t.rects.reference,P=t.rects.popper,k=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,M=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(E){if(a){var q,N=S==="y"?Vt:Bt,U=S==="y"?tr:rr,W=S==="y"?"height":"width",le=E[S],ce=le+b[N],ue=le-b[U],z=y?-P[W]/2:0,C=p===Rn?x[W]:P[W],V=p===Rn?-P[W]:-x[W],A=t.elements.arrow,T=y&&A?$u(A):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ev(),D=$[N],K=$[U],re=go(0,x[W],T[W]),ie=_?x[W]/2-z-re-D-M.mainAxis:C-re-D-M.mainAxis,te=_?-x[W]/2+z+re+K+M.mainAxis:V+re+K+M.mainAxis,L=t.elements.arrow&&yo(t.elements.arrow),I=L?S==="y"?L.clientTop||0:L.clientLeft||0:0,G=(q=R?.[S])!=null?q:0,X=le+ie-G-I,ne=le+te-G,he=go(y?ba(ce,X):ce,le,y?dn(ue,ne):ue);E[S]=he,O[S]=he-le}if(s){var ve,fe=S==="x"?Vt:Bt,Te=S==="x"?tr:rr,be=E[w],Ee=w==="y"?"height":"width",ge=be+b[fe],$e=be-b[Te],Ie=[Vt,Bt].indexOf(v)!==-1,ot=(ve=R?.[w])!=null?ve:0,Qe=Ie?ge:be-x[Ee]-P[Ee]-ot+M.altAxis,_t=Ie?be+x[Ee]+P[Ee]-ot-M.altAxis:$e,et=y&&Ie?ix(Qe,be,_t):go(y?Qe:ge,be,y?_t:$e);E[w]=et,O[w]=et-be}t.modifiersData[n]=O}}const Mx={name:"preventOverflow",enabled:!0,phase:"main",fn:Ax,requiresIfExists:["offset"]};function Dx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function qx(e){return e===Jt(e)||!nr(e)?ku(e):Dx(e)}function Lx(e){var t=e.getBoundingClientRect(),r=kn(t.width)/e.offsetWidth||1,n=kn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Fx(e,t,r){r===void 0&&(r=!1);var n=nr(t),i=nr(t)&&Lx(t),a=Kr(t),l=In(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((_r(t)!=="body"||ju(a))&&(s=qx(t)),nr(t)?(c=In(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Iu(a))),{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}function zx(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 Vx(e){var t=zx(e);return Q1.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Bx(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Ux(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 uv={placement:"bottom",modifiers:[],strategy:"absolute"};function dv(){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 Wx(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?uv:i;return function(s,c,u){u===void 0&&(u=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},uv,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},m=[],h=!1,y={state:d,setOptions:function(v){var p=typeof v=="function"?v(d.options):v;f(),d.options=Object.assign({},a,d.options,p),d.scrollParents={reference:un(s)?vo(s):s.contextElement?vo(s.contextElement):[],popper:vo(c)};var _=Vx(Ux([].concat(n,d.options.modifiers)));return d.orderedModifiers=_.filter(function(S){return S.enabled}),g(),y.update()},forceUpdate:function(){if(!h){var v=d.elements,p=v.reference,_=v.popper;if(dv(p,_)){d.rects={reference:Fx(p,yo(_),d.options.strategy==="fixed"),popper:$u(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(M){return d.modifiersData[M.name]=Object.assign({},M.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var w=d.orderedModifiers[S],E=w.fn,x=w.options,P=x===void 0?{}:x,k=w.name;typeof E=="function"&&(d=E({state:d,options:P,name:k,instance:y})||d)}}}},update:Bx(function(){return new Promise(function(b){y.forceUpdate(),b(d)})}),destroy:function(){f(),h=!0}};if(!dv(s,c))return y;y.setOptions(u).then(function(b){!h&&u.onFirstUpdate&&u.onFirstUpdate(b)});function g(){d.orderedModifiers.forEach(function(b){var v=b.name,p=b.options,_=p===void 0?{}:p,S=b.effect;if(typeof S=="function"){var w=S({state:d,name:v,instance:y,options:_}),E=function(){};m.push(w||E)}})}function f(){m.forEach(function(b){return b()}),m=[]}return y}}var Hx=[mx,jx,px,rx,kx,Cx,Mx,cx,Px],Kx=Wx({defaultModifiers:Hx});function Gx(e){return Fe("MuiPopper",e)}Le("MuiPopper",["root"]);function Yx(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 Ea(e){return typeof e=="function"?e():e}function Oa(e){return e.nodeType!==void 0}function Jx(e){return!Oa(e)}const Xx=e=>{const{classes:t}=e;return Be({root:["root"]},Gx,t)},Zx={},Qx=j.forwardRef(function(t,r){const{anchorEl:n,children:i,direction:a,disablePortal:l,modifiers:s,open:c,placement:u,popperOptions:d,popperRef:m,slotProps:h={},slots:y={},TransitionProps:g,ownerState:f,...b}=t,v=j.useRef(null),p=St(v,r),_=j.useRef(null),S=St(_,m),w=j.useRef(S);yr(()=>{w.current=S},[S]),j.useImperativeHandle(m,()=>_.current,[]);const E=Yx(u,a),[x,P]=j.useState(E),[k,M]=j.useState(Ea(n));j.useEffect(()=>{_.current&&_.current.forceUpdate()}),j.useEffect(()=>{n&&M(Ea(n))},[n]),yr(()=>{if(!k||!c)return;const U=ce=>{P(ce.placement)};if(process.env.NODE_ENV!=="production"&&k&&Oa(k)&&k.nodeType===1){const ce=k.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ce.top===0&&ce.left===0&&ce.right===0&&ce.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(`
|
|
66
|
+
`))}let W=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ce})=>{U(ce)}}];s!=null&&(W=W.concat(s)),d&&d.modifiers!=null&&(W=W.concat(d.modifiers));const le=Kx(k,v.current,{placement:E,...d,modifiers:W});return w.current(le),()=>{le.destroy(),w.current(null)}},[k,l,s,c,d,E]);const R={placement:x};g!==null&&(R.TransitionProps=g);const O=Xx(t),q=y.root??"div",N=sg({elementType:q,externalSlotProps:h.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:p},ownerState:t,className:O.root});return F.jsx(q,{...N,children:typeof i=="function"?i(R):i})}),fv=j.forwardRef(function(t,r){const{anchorEl:n,children:i,container:a,direction:l="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:u,open:d,placement:m="bottom",popperOptions:h=Zx,popperRef:y,style:g,transition:f=!1,slotProps:b={},slots:v={},...p}=t,[_,S]=j.useState(!0),w=()=>{S(!1)},E=()=>{S(!0)};if(!c&&!d&&(!f||_))return null;let x;if(a)x=a;else if(n){const M=Ea(n);x=M&&Oa(M)?Kt(M).body:Kt(null).body}const P=!d&&c&&(!f||_)?"none":void 0,k=f?{in:d,onEnter:w,onExited:E}:void 0;return F.jsx(so,{disablePortal:s,container:x,children:F.jsx(Qx,{anchorEl:n,direction:l,disablePortal:s,modifiers:u,ref:r,open:f?!_:d,placement:m,popperOptions:h,popperRef:y,slotProps:b,slots:v,...p,style:{position:"fixed",top:0,left:0,display:P,...g},TransitionProps:k,children:i})})});process.env.NODE_ENV!=="production"&&(fv.propTypes={anchorEl:cr(o.oneOfType([Ir,o.object,o.func]),e=>{if(e.open){const t=Ea(e.anchorEl);if(t&&Oa(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(`
|
|
67
67
|
`))}else if(!t||typeof t.getBoundingClientRect!="function"||Jx(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(`
|
|
68
|
-
`))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([Ir,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:zt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const eC=me(fv,{name:"MuiPopper",slot:"Root"})({}),Au=
|
|
69
|
-
`))}return!1}class Ca{static create(){return new Ca}static use(){const t=yg(Ca.create).current,[r,n]=
|
|
68
|
+
`))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([Ir,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:zt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const eC=me(fv,{name:"MuiPopper",slot:"Root"})({}),Au=j.forwardRef(function(t,r){const n=Oy(),i=We({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:s,componentsProps:c,container:u,disablePortal:d,keepMounted:m,modifiers:h,open:y,placement:g,popperOptions:f,popperRef:b,transition:v,slots:p,slotProps:_,...S}=i,w=p?.root??s?.Root,E={anchorEl:a,container:u,disablePortal:d,keepMounted:m,modifiers:h,open:y,placement:g,popperOptions:f,popperRef:b,transition:v,...S};return F.jsx(eC,{as:l,direction:n?"rtl":"ltr",slots:{root:w},slotProps:_??c,...E,ref:r})});process.env.NODE_ENV!=="production"&&(Au.propTypes={anchorEl:o.oneOfType([Ir,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([Ir,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:zt,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 tC(e){return Fe("MuiListSubheader",e)}Le("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const rC=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:a}=e,l={root:["root",r!=="default"&&`color${pe(r)}`,!n&&"gutters",i&&"inset",!a&&"sticky"]};return Be(l,tC,t)},nC=me("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${pe(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(ze(({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}}]}))),xa=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:l="li",disableGutters:s=!1,disableSticky:c=!1,inset:u=!1,...d}=n,m={...n,color:a,component:l,disableGutters:s,disableSticky:c,inset:u},h=rC(m);return F.jsx(nC,{as:l,className:xe(h.root,i),ref:r,ownerState:m,...d})});xa&&(xa.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(xa.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])});function pv(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
69
|
+
`))}return!1}class Ca{static create(){return new Ca}static use(){const t=yg(Ca.create).current,[r,n]=j.useState(!1);return t.shouldMount=r,t.setShouldMount=n,j.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=iC(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function oC(){return Ca.use()}function iC(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function hv(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:c,timeout:u}=e,[d,m]=j.useState(!1),h=xe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},g=xe(r.child,d&&r.childLeaving,n&&r.childPulsate);return!s&&!d&&m(!0),j.useEffect(()=>{if(!s&&c!=null){const f=setTimeout(c,u);return()=>{clearTimeout(f)}}},[c,s,u]),F.jsx("span",{className:h,style:y,children:F.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(hv.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 or=Le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Mu=550,aC=80,sC=Or.keyframes`
|
|
70
70
|
0% {
|
|
71
71
|
transform: scale(0);
|
|
72
72
|
opacity: 0.1;
|
|
@@ -139,7 +139,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
139
139
|
animation-iteration-count: infinite;
|
|
140
140
|
animation-delay: 200ms;
|
|
141
141
|
}
|
|
142
|
-
`,mv=
|
|
142
|
+
`,mv=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:l,...s}=n,[c,u]=j.useState([]),d=j.useRef(0),m=j.useRef(null);j.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const h=j.useRef(!1),y=gg(),g=j.useRef(null),f=j.useRef(null),b=j.useCallback(S=>{const{pulsate:w,rippleX:E,rippleY:x,rippleSize:P,cb:k}=S;u(M=>[...M,F.jsx(dC,{classes:{ripple:xe(a.ripple,or.ripple),rippleVisible:xe(a.rippleVisible,or.rippleVisible),ripplePulsate:xe(a.ripplePulsate,or.ripplePulsate),child:xe(a.child,or.child),childLeaving:xe(a.childLeaving,or.childLeaving),childPulsate:xe(a.childPulsate,or.childPulsate)},timeout:Mu,pulsate:w,rippleX:E,rippleY:x,rippleSize:P},d.current)]),d.current+=1,m.current=k},[a]),v=j.useCallback((S={},w={},E=()=>{})=>{const{pulsate:x=!1,center:P=i||w.pulsate,fakeElement:k=!1}=w;if(S?.type==="mousedown"&&h.current){h.current=!1;return}S?.type==="touchstart"&&(h.current=!0);const M=k?null:f.current,R=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,q,N;if(P||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)O=Math.round(R.width/2),q=Math.round(R.height/2);else{const{clientX:U,clientY:W}=S.touches&&S.touches.length>0?S.touches[0]:S;O=Math.round(U-R.left),q=Math.round(W-R.top)}if(P)N=Math.sqrt((2*R.width**2+R.height**2)/3),N%2===0&&(N+=1);else{const U=Math.max(Math.abs((M?M.clientWidth:0)-O),O)*2+2,W=Math.max(Math.abs((M?M.clientHeight:0)-q),q)*2+2;N=Math.sqrt(U**2+W**2)}S?.touches?g.current===null&&(g.current=()=>{b({pulsate:x,rippleX:O,rippleY:q,rippleSize:N,cb:E})},y.start(aC,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:x,rippleX:O,rippleY:q,rippleSize:N,cb:E})},[i,b,y]),p=j.useCallback(()=>{v({},{pulsate:!0})},[v]),_=j.useCallback((S,w)=>{if(y.clear(),S?.type==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{_(S,w)});return}g.current=null,u(E=>E.length>0?E.slice(1):E),m.current=w},[y]);return j.useImperativeHandle(r,()=>({pulsate:p,start:v,stop:_}),[p,v,_]),F.jsx(uC,{className:xe(or.root,a.root,l),ref:f,...s,children:F.jsx(_u,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(mv.propTypes={center:o.bool,classes:o.object,className:o.string});function fC(e){return Fe("MuiButtonBase",e)}const pC=Le("MuiButtonBase",["root","disabled","focusVisible"]),hC=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,l=Be({root:["root",t&&"disabled",r&&"focusVisible"]},fC,i);return r&&n&&(l.root+=` ${n}`),l},mC=me("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${pC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fn=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:l,className:s,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:m=!1,focusRipple:h=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:f,onClick:b,onContextMenu:v,onDragLeave:p,onFocus:_,onFocusVisible:S,onKeyDown:w,onKeyUp:E,onMouseDown:x,onMouseLeave:P,onMouseUp:k,onTouchEnd:M,onTouchMove:R,onTouchStart:O,tabIndex:q=0,TouchRippleProps:N,touchRippleRef:U,type:W,...le}=n,ce=j.useRef(null),ue=oC(),z=St(ue.ref,U),[C,V]=j.useState(!1);u&&C&&V(!1),j.useImperativeHandle(i,()=>({focusVisible:()=>{V(!0),ce.current.focus()}}),[]);const A=ue.shouldMount&&!d&&!u;j.useEffect(()=>{C&&h&&!d&&ue.pulsate()},[d,h,C,ue]);const T=Nr(ue,"start",x,m),$=Nr(ue,"stop",v,m),D=Nr(ue,"stop",p,m),K=Nr(ue,"stop",k,m),re=Nr(ue,"stop",ge=>{C&&ge.preventDefault(),P&&P(ge)},m),ie=Nr(ue,"start",O,m),te=Nr(ue,"stop",M,m),L=Nr(ue,"stop",R,m),I=Nr(ue,"stop",ge=>{pv(ge.target)||V(!1),f&&f(ge)},!1),G=ur(ge=>{ce.current||(ce.current=ge.currentTarget),pv(ge.target)&&(V(!0),S&&S(ge)),_&&_(ge)}),X=()=>{const ge=ce.current;return c&&c!=="button"&&!(ge.tagName==="A"&&ge.href)},ne=ur(ge=>{h&&!ge.repeat&&C&&ge.key===" "&&ue.stop(ge,()=>{ue.start(ge)}),ge.target===ge.currentTarget&&X()&&ge.key===" "&&ge.preventDefault(),w&&w(ge),ge.target===ge.currentTarget&&X()&&ge.key==="Enter"&&!u&&(ge.preventDefault(),b&&b(ge))}),he=ur(ge=>{h&&ge.key===" "&&C&&!ge.defaultPrevented&&ue.stop(ge,()=>{ue.pulsate(ge)}),E&&E(ge),b&&ge.target===ge.currentTarget&&X()&&ge.key===" "&&!ge.defaultPrevented&&b(ge)});let ve=c;ve==="button"&&(le.href||le.to)&&(ve=g);const fe={};if(ve==="button"){const ge=!!le.formAction;fe.type=W===void 0&&!ge?"button":W,fe.disabled=u}else!le.href&&!le.to&&(fe.role="button"),u&&(fe["aria-disabled"]=u);const Te=St(r,ce),be={...n,centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:m,focusRipple:h,tabIndex:q,focusVisible:C},Ee=hC(be);return F.jsxs(mC,{as:ve,className:xe(Ee.root,s),ownerState:be,onBlur:I,onClick:b,onContextMenu:$,onFocus:G,onKeyDown:ne,onKeyUp:he,onMouseDown:T,onMouseLeave:re,onMouseUp:K,onDragLeave:D,onTouchEnd:te,onTouchMove:L,onTouchStart:ie,ref:Te,tabIndex:u?-1:q,type:W,...fe,...le,children:[l,A?F.jsx(mv,{ref:z,center:a,...N}):null]})});function Nr(e,t,r,n=!1){return ur(i=>(r&&r(i),n||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(fn.propTypes={action:zt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:lu,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,formAction:o.oneOfType([o.func,o.string]),href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function yC(e){return Fe("MuiCircularProgress",e)}Le("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const dr=44,Du=Or.keyframes`
|
|
143
143
|
0% {
|
|
144
144
|
transform: rotate(0deg);
|
|
145
145
|
}
|
|
@@ -166,9 +166,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
166
166
|
animation: ${Du} 1.4s linear infinite;
|
|
167
167
|
`:null,vC=typeof qu!="string"?Or.css`
|
|
168
168
|
animation: ${qu} 1.4s ease-in-out infinite;
|
|
169
|
-
`:null,bC=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,a={root:["root",r,`color${pe(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${pe(r)}`,i&&"circleDisableShrink"]};return Be(a,yC,t)},_C=me("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${pe(r.color)}`]]}})(ze(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:gC||{animation:`${Du} 1.4s linear infinite`}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),wC=me("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),SC=me("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${pe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(ze(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:vC||{animation:`${qu} 1.4s ease-in-out infinite`}}]}))),EC=me("circle",{name:"MuiCircularProgress",slot:"Track"})(ze(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Lu=
|
|
170
|
-
`)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const PC=Ct(F.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 $C(e){return Fe("MuiChip",e)}const Ve=Le("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"]),RC=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${pe(n)}`,`color${pe(i)}`,s&&"clickable",s&&`clickableColor${pe(i)}`,l&&"deletable",l&&`deletableColor${pe(i)}`,`${c}${pe(i)}`],label:["label",`label${pe(n)}`],avatar:["avatar",`avatar${pe(n)}`,`avatarColor${pe(i)}`],icon:["icon",`icon${pe(n)}`,`iconColor${pe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${pe(n)}`,`deleteIconColor${pe(i)}`,`deleteIcon${pe(c)}Color${pe(i)}`]};return Be(u,$C,t)},kC=me("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${pe(s)}`]},{[`& .${Ve.avatar}`]:t[`avatarColor${pe(n)}`]},{[`& .${Ve.icon}`]:t.icon},{[`& .${Ve.icon}`]:t[`icon${pe(s)}`]},{[`& .${Ve.icon}`]:t[`iconColor${pe(i)}`]},{[`& .${Ve.deleteIcon}`]:t.deleteIcon},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${pe(s)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIconColor${pe(n)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${pe(c)}Color${pe(n)}`]},t.root,t[`size${pe(s)}`],t[`color${pe(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${pe(n)}`],l&&t.deletable,l&&n!=="default"&&t[`deletableColor${pe(n)}`],t[c],t[`${c}${pe(n)}`]]}})(ze(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${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.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${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.alpha((e.vars||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.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||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.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter($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.alpha((e.vars||e).palette[r].main,.7)}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Ve.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),IC=me("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${pe(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 gv(e){return e.key==="Backspace"||e.key==="Delete"}const Fu=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:l,color:s="default",component:c,deleteIcon:u,disabled:d=!1,icon:m,label:h,onClick:y,onDelete:g,onKeyDown:f,onKeyUp:b,size:v="medium",variant:p="filled",tabIndex:_,skipFocusWhenDisabled:S=!1,slots:w={},slotProps:E={},...x}=n,P=A.useRef(null),k=St(P,r),j=q=>{q.stopPropagation(),g&&g(q)},R=q=>{q.currentTarget===q.target&&gv(q)&&q.preventDefault(),f&&f(q)},O=q=>{q.currentTarget===q.target&&g&&gv(q)&&g(q),b&&b(q)},D=l!==!1&&y?!0:l,N=D||g?fn:c||"div",U={...n,component:N,disabled:d,size:v,color:s,iconColor:A.isValidElement(m)&&m.props.color||s,onDelete:!!g,clickable:D,variant:p},W=RC(U),le=N===fn?{component:c||"div",focusVisibleClassName:W.focusVisible,...g&&{disableRipple:!0}}:{};let ce=null;g&&(ce=u&&A.isValidElement(u)?A.cloneElement(u,{className:xe(u.props.className,W.deleteIcon),onClick:j}):F.jsx(PC,{className:W.deleteIcon,onClick:j}));let ue=null;i&&A.isValidElement(i)&&(ue=A.cloneElement(i,{className:xe(W.avatar,i.props.className)}));let z=null;m&&A.isValidElement(m)&&(z=A.cloneElement(m,{className:xe(W.icon,m.props.className)})),process.env.NODE_ENV!=="production"&&ue&&z&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const C={slots:w,slotProps:E},[V,M]=dt("root",{elementType:kC,externalForwardedProps:{...C,...x},ownerState:U,shouldForwardComponentProp:!0,ref:k,className:xe(W.root,a),additionalProps:{disabled:D&&d?!0:void 0,tabIndex:S&&d?-1:_,...le},getSlotProps:q=>({...q,onClick:K=>{q.onClick?.(K),y?.(K)},onKeyDown:K=>{q.onKeyDown?.(K),R(K)},onKeyUp:K=>{q.onKeyUp?.(K),O(K)}})}),[T,$]=dt("label",{elementType:IC,externalForwardedProps:C,ownerState:U,className:W.label});return F.jsxs(V,{as:N,...M,children:[ue||z,F.jsx(T,{...$,children:h}),ce]})});process.env.NODE_ENV!=="production"&&(Fu.propTypes={avatar:o.element,children:BE,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,slotProps:o.shape({label:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({label:o.elementType,root:o.elementType}),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 jC=Ct(F.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 NC(e){return Fe("MuiAutocomplete",e)}const Ae=Le("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 vv,bv;const AC=e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:a,hasClearIcon:l,hasPopupIcon:s,inputFocused:c,popupOpen:u,size:d}=e,m={root:["root",n&&"expanded",i&&"focused",a&&"fullWidth",l&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${pe(d)}`],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 Be(m,NC,t)},MC=me("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:a,inputFocused:l,size:s}=r;return[{[`& .${Ae.tag}`]:t.tag},{[`& .${Ae.tag}`]:t[`tagSize${pe(s)}`]},{[`& .${Ae.inputRoot}`]:t.inputRoot},{[`& .${Ae.input}`]:t.input},{[`& .${Ae.input}`]:l&&t.inputFocused},t.root,n&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Ae.focused} .${Ae.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ae.clearIndicator}`]:{visibility:"visible"}},[`& .${Ae.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ae.inputRoot}`]:{[`.${Ae.hasPopupIcon}&, .${Ae.hasClearIcon}&`]:{paddingRight:30},[`.${Ae.hasPopupIcon}.${Ae.hasClearIcon}&`]:{paddingRight:56},[`& .${Ae.input}`]:{width:0,minWidth:30}},[`& .${Wr.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Wr.root}.${Gt.sizeSmall}`]:{[`& .${Wr.input}`]:{padding:"2px 4px 3px 0"}},[`& .${er.root}`]:{padding:9,[`.${Ae.hasPopupIcon}&, .${Ae.hasClearIcon}&`]:{paddingRight:39},[`.${Ae.hasPopupIcon}.${Ae.hasClearIcon}&`]:{paddingRight:65},[`& .${Ae.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ae.endAdornment}`]:{right:9}},[`& .${er.root}.${Gt.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ae.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Yt.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ae.hasPopupIcon}&, .${Ae.hasClearIcon}&`]:{paddingRight:39},[`.${Ae.hasPopupIcon}.${Ae.hasClearIcon}&`]:{paddingRight:65},[`& .${Yt.input}`]:{padding:"7px 4px"},[`& .${Ae.endAdornment}`]:{right:9}},[`& .${Yt.root}.${Gt.sizeSmall}`]:{paddingBottom:1,[`& .${Yt.input}`]:{padding:"2.5px 4px"}},[`& .${Gt.hiddenLabel}`]:{paddingTop:8},[`& .${Yt.root}.${Gt.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ae.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Yt.root}.${Gt.hiddenLabel}.${Gt.sizeSmall}`]:{[`& .${Ae.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ae.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ae.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ae.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ae.inputRoot}`]:{flexWrap:"wrap"}}}]}),DC=me("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),qC=me(Ta,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),LC=me(Ta,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),FC=me(Au,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ae.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(ze(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),zC=me(lo,{name:"MuiAutocomplete",slot:"Paper"})(ze(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),VC=me("div",{name:"MuiAutocomplete",slot:"Loading"})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),BC=me("div",{name:"MuiAutocomplete",slot:"NoOptions"})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),UC=me("ul",{name:"MuiAutocomplete",slot:"Listbox"})(ze(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ae.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"},[`&.${Ae.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"},[`&.${Ae.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ae.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ae.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),WC=me(xa,{name:"MuiAutocomplete",slot:"GroupLabel"})(ze(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),HC=me("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Ae.option}`]:{paddingLeft:24}}),zu=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:a=!1,autoSelect:l=!1,blurOnSelect:s=!1,ChipProps:c,className:u,clearIcon:d=vv||(vv=F.jsx(jC,{fontSize:"small"})),clearOnBlur:m=!n.freeSolo,clearOnEscape:h=!1,clearText:y="Clear",closeText:g="Close",componentsProps:f,defaultValue:b=n.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:p=!1,disabled:_=!1,disabledItemsFocusable:S=!1,disableListWrap:w=!1,disablePortal:E=!1,filterOptions:x,filterSelectedOptions:P=!1,forcePopupIcon:k="auto",freeSolo:j=!1,fullWidth:R=!1,getLimitTagsText:O=Ye=>`+${Ye}`,getOptionDisabled:D,getOptionKey:N,getOptionLabel:U,isOptionEqualToValue:W,groupBy:le,handleHomeEndKeys:ce=!n.freeSolo,id:ue,includeInputInList:z=!1,inputValue:C,limitTags:V=-1,ListboxComponent:M,ListboxProps:T,loading:$=!1,loadingText:q="Loading…",multiple:K=!1,noOptionsText:re="No options",onChange:ie,onClose:te,onHighlightChange:L,onInputChange:I,onOpen:G,open:X,openOnFocus:oe=!1,openText:ye="Open",options:ve,PaperComponent:fe,PopperComponent:Te,popupIcon:be=bv||(bv=F.jsx(Vg,{})),readOnly:Ee=!1,renderGroup:he,renderInput:$e,renderOption:Ie,renderTags:ot,renderValue:Qe,selectOnFocus:_t=!n.freeSolo,size:et="medium",slots:Tt={},slotProps:Je={},value:Oe,...He}=n,{getRootProps:ft,getInputProps:ct,getInputLabelProps:Ar,getPopupIndicatorProps:Et,getClearProps:Ot,getItemProps:we,getListboxProps:Me,getOptionProps:pt,value:xt,dirty:Lt,expanded:Mr,id:Y,popupOpen:B,focused:Q,focusedItem:J,anchorEl:Se,setAnchorEl:Re,inputValue:je,groupedOptions:se}=zO({...n,componentName:"Autocomplete"}),H=!v&&!_&&Lt&&!Ee,Z=(!j||k===!0)&&k!==!1,{onMouseDown:de}=ct(),{ref:_e,...Ne}=Me(),gt=U||(Ye=>Ye.label??Ye),Ke={...n,disablePortal:E,expanded:Mr,focused:Q,fullWidth:R,getOptionLabel:gt,hasClearIcon:H,hasPopupIcon:Z,inputFocused:J===-1,popupOpen:B,size:et},ut=AC(Ke),jt={slots:{paper:fe,popper:Te,...Tt},slotProps:{chip:c,listbox:T,...f,...Je}},[hn,ir]=dt("listbox",{elementType:UC,externalForwardedProps:jt,ownerState:Ke,className:ut.listbox,additionalProps:Ne,ref:_e}),[fr,ae]=dt("paper",{elementType:lo,externalForwardedProps:jt,ownerState:Ke,className:ut.paper}),[ee,ge]=dt("popper",{elementType:Au,externalForwardedProps:jt,ownerState:Ke,className:ut.popper,additionalProps:{disablePortal:E,style:{width:Se?Se.clientWidth:null},role:"presentation",anchorEl:Se,open:B}});let Ce;const Pe=Ye=>({className:ut.tag,disabled:_,...we(Ye)});if(K?xt.length>0&&(ot?Ce=ot(xt,Pe,Ke):Qe?Ce=Qe(xt,Pe,Ke):Ce=xt.map((Ye,Gr)=>{const{key:Yr,...xo}=Pe({index:Gr});return F.jsx(Fu,{label:gt(Ye),size:et,...xo,...jt.slotProps.chip},Yr)})):Qe&&xt!=null&&(Ce=Qe(xt,Pe,Ke)),V>-1&&Array.isArray(Ce)){const Ye=Ce.length-V;!Q&&Ye>0&&(Ce=Ce.splice(0,V),Ce.push(F.jsx("span",{className:ut.tag,children:O(Ye)},Ce.length)))}const Ue=he||(Ye=>F.jsxs("li",{children:[F.jsx(WC,{className:ut.groupLabel,ownerState:Ke,component:"div",children:Ye.group}),F.jsx(HC,{className:ut.groupUl,ownerState:Ke,children:Ye.children})]},Ye.key)),At=Ie||((Ye,Gr)=>{const{key:Yr,...xo}=Ye;return F.jsx("li",{...xo,children:gt(Gr)},Yr)}),Na=(Ye,Gr)=>{const Yr=pt({option:Ye,index:Gr});return At({...Yr,className:ut.option},Ye,{selected:Yr["aria-selected"],index:Gr,inputValue:je},Ke)},Aa=jt.slotProps.clearIndicator,Gv=jt.slotProps.popupIndicator;return F.jsxs(A.Fragment,{children:[F.jsx(MC,{ref:r,className:xe(ut.root,u),ownerState:Ke,...ft(He),children:$e({id:Y,disabled:_,fullWidth:!0,size:et==="small"?"small":void 0,InputLabelProps:Ar(),InputProps:{ref:Re,className:ut.inputRoot,startAdornment:Ce,onMouseDown:Ye=>{Ye.target===Ye.currentTarget&&de(Ye)},...(H||Z)&&{endAdornment:F.jsxs(DC,{className:ut.endAdornment,ownerState:Ke,children:[H?F.jsx(qC,{...Ot(),"aria-label":y,title:y,ownerState:Ke,...Aa,className:xe(ut.clearIndicator,Aa?.className),children:d}):null,Z?F.jsx(LC,{...Et(),disabled:_,"aria-label":B?g:ye,title:B?g:ye,ownerState:Ke,...Gv,className:xe(ut.popupIndicator,Gv?.className),children:be}):null]})}},inputProps:{className:ut.input,disabled:_,readOnly:Ee,...ct()}})}),Se?F.jsx(FC,{as:ee,...ge,children:F.jsxs(zC,{as:fr,...ae,children:[$&&se.length===0?F.jsx(VC,{className:ut.loading,ownerState:Ke,children:q}):null,se.length===0&&!j&&!$?F.jsx(BC,{className:ut.noOptions,ownerState:Ke,role:"presentation",onMouseDown:Ye=>{Ye.preventDefault()},children:re}):null,se.length>0?F.jsx(hn,{as:M,...ir,children:se.map((Ye,Gr)=>le?Ue({key:Ye.key,group:Ye.group,children:Ye.options.map((Yr,xo)=>Na(Yr,Ye.index+xo))}):Na(Ye,Gr))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(zu.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:cr(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(`
|
|
169
|
+
`:null,bC=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,a={root:["root",r,`color${pe(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${pe(r)}`,i&&"circleDisableShrink"]};return Be(a,yC,t)},_C=me("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${pe(r.color)}`]]}})(ze(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:gC||{animation:`${Du} 1.4s linear infinite`}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),wC=me("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),SC=me("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${pe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(ze(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:vC||{animation:`${qu} 1.4s ease-in-out infinite`}}]}))),EC=me("circle",{name:"MuiCircularProgress",slot:"Track"})(ze(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Lu=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:l=!1,enableTrackSlot:s=!1,size:c=40,style:u,thickness:d=3.6,value:m=0,variant:h="indeterminate",...y}=n,g={...n,color:a,disableShrink:l,size:c,thickness:d,value:m,variant:h,enableTrackSlot:s},f=bC(g),b={},v={},p={};if(h==="determinate"){const _=2*Math.PI*((dr-d)/2);b.strokeDasharray=_.toFixed(3),p["aria-valuenow"]=Math.round(m),b.strokeDashoffset=`${((100-m)/100*_).toFixed(3)}px`,v.transform="rotate(-90deg)"}return F.jsx(_C,{className:xe(f.root,i),style:{width:c,height:c,...v,...u},ownerState:g,ref:r,role:"progressbar",...p,...y,children:F.jsxs(wC,{className:f.svg,ownerState:g,viewBox:`${dr/2} ${dr/2} ${dr} ${dr}`,children:[s?F.jsx(EC,{className:f.track,ownerState:g,cx:dr,cy:dr,r:(dr-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,F.jsx(SC,{className:f.circle,style:b,ownerState:g,cx:dr,cy:dr,r:(dr-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Lu.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:cr(o.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:o.bool,size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function OC(e){return Fe("MuiIconButton",e)}const yv=Le("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),xC=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a,loading:l}=e,s={root:["root",l&&"loading",r&&"disabled",n!=="default"&&`color${pe(n)}`,i&&`edge${pe(i)}`,`size${pe(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Be(s,OC,t)},CC=me(fn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${pe(r.color)}`],r.edge&&t[`edge${pe(r.edge)}`],t[`size${pe(r.size)}`]]}})(ze(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ze(({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.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${yv.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${yv.loading}`]:{color:"transparent"}}))),TC=me("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Ta=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:l,color:s="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:m,loading:h=null,loadingIndicator:y,...g}=n,f=bn(m),b=y??F.jsx(Lu,{"aria-labelledby":f,color:"inherit",size:16}),v={...n,edge:i,color:s,disabled:c,disableFocusRipple:u,loading:h,loadingIndicator:b,size:d},p=xC(v);return F.jsxs(CC,{id:h?f:m,className:xe(p.root,l),centerRipple:!0,focusRipple:!u,disabled:c||h,ref:r,...g,ownerState:v,children:[typeof h=="boolean"&&F.jsx("span",{className:p.loadingWrapper,style:{display:"contents"},children:F.jsx(TC,{className:p.loadingIndicator,ownerState:v,children:h&&b})}),a]})});process.env.NODE_ENV!=="production"&&(Ta.propTypes={children:cr(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(`
|
|
170
|
+
`)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const PC=Ct(F.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 $C(e){return Fe("MuiChip",e)}const Ve=Le("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"]),RC=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${pe(n)}`,`color${pe(i)}`,s&&"clickable",s&&`clickableColor${pe(i)}`,l&&"deletable",l&&`deletableColor${pe(i)}`,`${c}${pe(i)}`],label:["label",`label${pe(n)}`],avatar:["avatar",`avatar${pe(n)}`,`avatarColor${pe(i)}`],icon:["icon",`icon${pe(n)}`,`iconColor${pe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${pe(n)}`,`deleteIconColor${pe(i)}`,`deleteIcon${pe(c)}Color${pe(i)}`]};return Be(u,$C,t)},kC=me("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${pe(s)}`]},{[`& .${Ve.avatar}`]:t[`avatarColor${pe(n)}`]},{[`& .${Ve.icon}`]:t.icon},{[`& .${Ve.icon}`]:t[`icon${pe(s)}`]},{[`& .${Ve.icon}`]:t[`iconColor${pe(i)}`]},{[`& .${Ve.deleteIcon}`]:t.deleteIcon},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${pe(s)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIconColor${pe(n)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${pe(c)}Color${pe(n)}`]},t.root,t[`size${pe(s)}`],t[`color${pe(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${pe(n)}`],l&&t.deletable,l&&n!=="default"&&t[`deletableColor${pe(n)}`],t[c],t[`${c}${pe(n)}`]]}})(ze(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${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.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${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.alpha((e.vars||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.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||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.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter($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.alpha((e.vars||e).palette[r].main,.7)}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Ve.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),IC=me("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${pe(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 gv(e){return e.key==="Backspace"||e.key==="Delete"}const Fu=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:l,color:s="default",component:c,deleteIcon:u,disabled:d=!1,icon:m,label:h,onClick:y,onDelete:g,onKeyDown:f,onKeyUp:b,size:v="medium",variant:p="filled",tabIndex:_,skipFocusWhenDisabled:S=!1,slots:w={},slotProps:E={},...x}=n,P=j.useRef(null),k=St(P,r),M=D=>{D.stopPropagation(),g&&g(D)},R=D=>{D.currentTarget===D.target&&gv(D)&&D.preventDefault(),f&&f(D)},O=D=>{D.currentTarget===D.target&&g&&gv(D)&&g(D),b&&b(D)},q=l!==!1&&y?!0:l,N=q||g?fn:c||"div",U={...n,component:N,disabled:d,size:v,color:s,iconColor:j.isValidElement(m)&&m.props.color||s,onDelete:!!g,clickable:q,variant:p},W=RC(U),le=N===fn?{component:c||"div",focusVisibleClassName:W.focusVisible,...g&&{disableRipple:!0}}:{};let ce=null;g&&(ce=u&&j.isValidElement(u)?j.cloneElement(u,{className:xe(u.props.className,W.deleteIcon),onClick:M}):F.jsx(PC,{className:W.deleteIcon,onClick:M}));let ue=null;i&&j.isValidElement(i)&&(ue=j.cloneElement(i,{className:xe(W.avatar,i.props.className)}));let z=null;m&&j.isValidElement(m)&&(z=j.cloneElement(m,{className:xe(W.icon,m.props.className)})),process.env.NODE_ENV!=="production"&&ue&&z&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const C={slots:w,slotProps:E},[V,A]=ut("root",{elementType:kC,externalForwardedProps:{...C,...x},ownerState:U,shouldForwardComponentProp:!0,ref:k,className:xe(W.root,a),additionalProps:{disabled:q&&d?!0:void 0,tabIndex:S&&d?-1:_,...le},getSlotProps:D=>({...D,onClick:K=>{D.onClick?.(K),y?.(K)},onKeyDown:K=>{D.onKeyDown?.(K),R(K)},onKeyUp:K=>{D.onKeyUp?.(K),O(K)}})}),[T,$]=ut("label",{elementType:IC,externalForwardedProps:C,ownerState:U,className:W.label});return F.jsxs(V,{as:N,...A,children:[ue||z,F.jsx(T,{...$,children:h}),ce]})});process.env.NODE_ENV!=="production"&&(Fu.propTypes={avatar:o.element,children:BE,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,slotProps:o.shape({label:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({label:o.elementType,root:o.elementType}),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 jC=Ct(F.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 NC(e){return Fe("MuiAutocomplete",e)}const Ae=Le("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 vv,bv;const AC=e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:a,hasClearIcon:l,hasPopupIcon:s,inputFocused:c,popupOpen:u,size:d}=e,m={root:["root",n&&"expanded",i&&"focused",a&&"fullWidth",l&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${pe(d)}`],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 Be(m,NC,t)},MC=me("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:a,inputFocused:l,size:s}=r;return[{[`& .${Ae.tag}`]:t.tag},{[`& .${Ae.tag}`]:t[`tagSize${pe(s)}`]},{[`& .${Ae.inputRoot}`]:t.inputRoot},{[`& .${Ae.input}`]:t.input},{[`& .${Ae.input}`]:l&&t.inputFocused},t.root,n&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Ae.focused} .${Ae.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ae.clearIndicator}`]:{visibility:"visible"}},[`& .${Ae.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ae.inputRoot}`]:{[`.${Ae.hasPopupIcon}&, .${Ae.hasClearIcon}&`]:{paddingRight:30},[`.${Ae.hasPopupIcon}.${Ae.hasClearIcon}&`]:{paddingRight:56},[`& .${Ae.input}`]:{width:0,minWidth:30}},[`& .${Wr.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Wr.root}.${Gt.sizeSmall}`]:{[`& .${Wr.input}`]:{padding:"2px 4px 3px 0"}},[`& .${er.root}`]:{padding:9,[`.${Ae.hasPopupIcon}&, .${Ae.hasClearIcon}&`]:{paddingRight:39},[`.${Ae.hasPopupIcon}.${Ae.hasClearIcon}&`]:{paddingRight:65},[`& .${Ae.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ae.endAdornment}`]:{right:9}},[`& .${er.root}.${Gt.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ae.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Yt.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ae.hasPopupIcon}&, .${Ae.hasClearIcon}&`]:{paddingRight:39},[`.${Ae.hasPopupIcon}.${Ae.hasClearIcon}&`]:{paddingRight:65},[`& .${Yt.input}`]:{padding:"7px 4px"},[`& .${Ae.endAdornment}`]:{right:9}},[`& .${Yt.root}.${Gt.sizeSmall}`]:{paddingBottom:1,[`& .${Yt.input}`]:{padding:"2.5px 4px"}},[`& .${Gt.hiddenLabel}`]:{paddingTop:8},[`& .${Yt.root}.${Gt.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ae.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Yt.root}.${Gt.hiddenLabel}.${Gt.sizeSmall}`]:{[`& .${Ae.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ae.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ae.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ae.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ae.inputRoot}`]:{flexWrap:"wrap"}}}]}),DC=me("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),qC=me(Ta,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),LC=me(Ta,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),FC=me(Au,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ae.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(ze(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),zC=me(lo,{name:"MuiAutocomplete",slot:"Paper"})(ze(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),VC=me("div",{name:"MuiAutocomplete",slot:"Loading"})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),BC=me("div",{name:"MuiAutocomplete",slot:"NoOptions"})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),UC=me("ul",{name:"MuiAutocomplete",slot:"Listbox"})(ze(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ae.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"},[`&.${Ae.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"},[`&.${Ae.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ae.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ae.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),WC=me(xa,{name:"MuiAutocomplete",slot:"GroupLabel"})(ze(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),HC=me("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Ae.option}`]:{paddingLeft:24}}),zu=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:a=!1,autoSelect:l=!1,blurOnSelect:s=!1,ChipProps:c,className:u,clearIcon:d=vv||(vv=F.jsx(jC,{fontSize:"small"})),clearOnBlur:m=!n.freeSolo,clearOnEscape:h=!1,clearText:y="Clear",closeText:g="Close",componentsProps:f,defaultValue:b=n.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:p=!1,disabled:_=!1,disabledItemsFocusable:S=!1,disableListWrap:w=!1,disablePortal:E=!1,filterOptions:x,filterSelectedOptions:P=!1,forcePopupIcon:k="auto",freeSolo:M=!1,fullWidth:R=!1,getLimitTagsText:O=Ye=>`+${Ye}`,getOptionDisabled:q,getOptionKey:N,getOptionLabel:U,isOptionEqualToValue:W,groupBy:le,handleHomeEndKeys:ce=!n.freeSolo,id:ue,includeInputInList:z=!1,inputValue:C,limitTags:V=-1,ListboxComponent:A,ListboxProps:T,loading:$=!1,loadingText:D="Loading…",multiple:K=!1,noOptionsText:re="No options",onChange:ie,onClose:te,onHighlightChange:L,onInputChange:I,onOpen:G,open:X,openOnFocus:ne=!1,openText:he="Open",options:ve,PaperComponent:fe,PopperComponent:Te,popupIcon:be=bv||(bv=F.jsx(Vg,{})),readOnly:Ee=!1,renderGroup:ge,renderInput:$e,renderOption:Ie,renderTags:ot,renderValue:Qe,selectOnFocus:_t=!n.freeSolo,size:et="medium",slots:Tt={},slotProps:Je={},value:Oe,...He}=n,{getRootProps:dt,getInputProps:ft,getInputLabelProps:Ar,getPopupIndicatorProps:Et,getClearProps:Ot,getItemProps:we,getListboxProps:Me,getOptionProps:pt,value:xt,dirty:Lt,expanded:Mr,id:Y,popupOpen:B,focused:ee,focusedItem:J,anchorEl:Se,setAnchorEl:Re,inputValue:je,groupedOptions:se}=z1({...n,componentName:"Autocomplete"}),H=!v&&!_&&Lt&&!Ee,Z=(!M||k===!0)&&k!==!1,{onMouseDown:de}=ft(),{ref:_e,...Ne}=Me(),gt=U||(Ye=>Ye.label??Ye),Ke={...n,disablePortal:E,expanded:Mr,focused:ee,fullWidth:R,getOptionLabel:gt,hasClearIcon:H,hasPopupIcon:Z,inputFocused:J===-1,popupOpen:B,size:et},ct=AC(Ke),jt={slots:{paper:fe,popper:Te,...Tt},slotProps:{chip:c,listbox:T,...f,...Je}},[hn,ir]=ut("listbox",{elementType:UC,externalForwardedProps:jt,ownerState:Ke,className:ct.listbox,additionalProps:Ne,ref:_e}),[fr,ae]=ut("paper",{elementType:lo,externalForwardedProps:jt,ownerState:Ke,className:ct.paper}),[Q,ye]=ut("popper",{elementType:Au,externalForwardedProps:jt,ownerState:Ke,className:ct.popper,additionalProps:{disablePortal:E,style:{width:Se?Se.clientWidth:null},role:"presentation",anchorEl:Se,open:B}});let Ce;const Pe=Ye=>({className:ct.tag,disabled:_,...we(Ye)});if(K?xt.length>0&&(ot?Ce=ot(xt,Pe,Ke):Qe?Ce=Qe(xt,Pe,Ke):Ce=xt.map((Ye,Gr)=>{const{key:Yr,...xo}=Pe({index:Gr});return F.jsx(Fu,{label:gt(Ye),size:et,...xo,...jt.slotProps.chip},Yr)})):Qe&&xt!=null&&(Ce=Qe(xt,Pe,Ke)),V>-1&&Array.isArray(Ce)){const Ye=Ce.length-V;!ee&&Ye>0&&(Ce=Ce.splice(0,V),Ce.push(F.jsx("span",{className:ct.tag,children:O(Ye)},Ce.length)))}const Ue=ge||(Ye=>F.jsxs("li",{children:[F.jsx(WC,{className:ct.groupLabel,ownerState:Ke,component:"div",children:Ye.group}),F.jsx(HC,{className:ct.groupUl,ownerState:Ke,children:Ye.children})]},Ye.key)),At=Ie||((Ye,Gr)=>{const{key:Yr,...xo}=Ye;return F.jsx("li",{...xo,children:gt(Gr)},Yr)}),Na=(Ye,Gr)=>{const Yr=pt({option:Ye,index:Gr});return At({...Yr,className:ct.option},Ye,{selected:Yr["aria-selected"],index:Gr,inputValue:je},Ke)},Aa=jt.slotProps.clearIndicator,Gv=jt.slotProps.popupIndicator;return F.jsxs(j.Fragment,{children:[F.jsx(MC,{ref:r,className:xe(ct.root,u),ownerState:Ke,...dt(He),children:$e({id:Y,disabled:_,fullWidth:!0,size:et==="small"?"small":void 0,InputLabelProps:Ar(),InputProps:{ref:Re,className:ct.inputRoot,startAdornment:Ce,onMouseDown:Ye=>{Ye.target===Ye.currentTarget&&de(Ye)},...(H||Z)&&{endAdornment:F.jsxs(DC,{className:ct.endAdornment,ownerState:Ke,children:[H?F.jsx(qC,{...Ot(),"aria-label":y,title:y,ownerState:Ke,...Aa,className:xe(ct.clearIndicator,Aa?.className),children:d}):null,Z?F.jsx(LC,{...Et(),disabled:_,"aria-label":B?g:he,title:B?g:he,ownerState:Ke,...Gv,className:xe(ct.popupIndicator,Gv?.className),children:be}):null]})}},inputProps:{className:ct.input,disabled:_,readOnly:Ee,...ft()}})}),Se?F.jsx(FC,{as:Q,...ye,children:F.jsxs(zC,{as:fr,...ae,children:[$&&se.length===0?F.jsx(VC,{className:ct.loading,ownerState:Ke,children:D}):null,se.length===0&&!M&&!$?F.jsx(BC,{className:ct.noOptions,ownerState:Ke,role:"presentation",onMouseDown:Ye=>{Ye.preventDefault()},children:re}):null,se.length>0?F.jsx(hn,{as:A,...ir,children:se.map((Ye,Gr)=>le?Ue({key:Ye.key,group:Ye.group,children:Ye.options.map((Yr,xo)=>Na(Yr,Ye.index+xo))}):Na(Ye,Gr))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(zu.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:cr(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(`
|
|
171
171
|
`)):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:hu,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,renderValue: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:cr(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(`
|
|
172
|
-
`)):null)});const KC=e=>{const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e),{key:u,title:d,placeholder:m,readonly:h,titleMap:y}=r;ke.useEffect(()=>{n(u,t,r,a)},[]);const g=y||[],f=(p,_)=>{const S=_&&typeof _=="object"?_.value:_;c(null,S)},b=p=>i(typeof p=="object"&&p!==null?p.name||p.value||"":p||""),v=g.find(p=>typeof p=="object"&&p!==null?p.value===a:p===a)||null;return F.jsx("div",{className:r.htmlClass,children:F.jsx(zu,{options:g,getOptionLabel:b,value:v,onChange:f,disabled:h,fullWidth:!0,renderInput:p=>F.jsx(va,{...p,label:d&&i(d),placeholder:m&&i(m),helperText:(s||r.description)&&i(s||r.description),error:!l,required:r.required,style:r.style||{width:"100%"},...r.otherProps}),...r.otherProps})})},_v=Le("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),wv=Le("MuiListItemIcon",["root","alignItemsFlexStart"]);function GC(e){return Fe("MuiTypography",e)}Le("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const YC={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},JC=xE(),XC=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:l}=e,s={root:["root",a,e.align!=="inherit"&&`align${pe(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Be(s,GC,l)},ZC=me("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${pe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(ze(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${pe(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Sv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Pa=A.forwardRef(function(t,r){const{color:n,...i}=We({props:t,name:"MuiTypography"}),a=!YC[n],l=JC({...i,...a&&{color:n}}),{align:s="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:m=!1,paragraph:h=!1,variant:y="body1",variantMapping:g=Sv,...f}=l,b={...l,align:s,color:n,className:c,component:u,gutterBottom:d,noWrap:m,paragraph:h,variant:y,variantMapping:g},v=u||(h?"p":g[y]||Sv[y])||"span",p=XC(b);return F.jsx(ZC,{as:v,ref:r,className:xe(p.root,c),...f,ownerState:b,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...f.style}})});process.env.NODE_ENV!=="production"&&(Pa.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 Ev=Le("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function QC(e){return Fe("MuiMenuItem",e)}const _o=Le("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),eT=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},tT=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:l}=e,c=Be({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},QC,l);return{...l,...c}},rT=me(fn,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:eT})(ze(({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"}},[`&.${_o.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${_o.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${_o.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${_o.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_o.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${_v.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${_v.inset}`]:{marginLeft:52},[`& .${Ev.root}`]:{marginTop:0,marginBottom:0},[`& .${Ev.inset}`]:{paddingLeft:36},[`& .${wv.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,[`& .${wv.root} svg`]:{fontSize:"1.25rem"}}}]}))),$a=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:l=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:m,className:h,...y}=n,g=A.useContext(fa),f=A.useMemo(()=>({dense:l||g.dense||!1,disableGutters:c}),[g.dense,l,c]),b=A.useRef(null);yr(()=>{i&&(b.current?b.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 v={...n,dense:f.dense,divider:s,disableGutters:c},p=tT(n),_=St(b,r);let S;return n.disabled||(S=m!==void 0?m:-1),F.jsx(fa.Provider,{value:f,children:F.jsx(rT,{ref:_,role:d,tabIndex:S,component:a,focusVisibleClassName:xe(p.focusVisible,u),className:xe(p.root,h),...y,ownerState:v,classes:p})})});process.env.NODE_ENV!=="production"&&($a.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 nT(e){const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i},form:{key:a,schema:{isObject:l,enum:s,findFn:c,displayFn:u,noLocalization:d}}}=e,{value:m,valid:h,error:y,onChangeValidate:g}=qt(e);ke.useEffect(()=>{n(a,t,r,m)},[]);const f=p=>{if(l){const _=p.target.value,S=s.find(w=>c?c(w,_):w===_);g(S)}else g(p)},b=p=>u?u(p):d?p.name:i(p.name);let v=[];return l?v=r.schema.enum.map((p,_)=>F.jsx($a,{value:p,children:b(p)},_)):v=r.titleMap.map((p,_)=>F.jsx($a,{value:p.value,children:b(p)},_)),F.jsxs(Tn,{fullWidth:!0,error:!h,...r.otherProps,children:[F.jsx(ua,{required:r.required,...r.labelProps,children:r.title&&i(r.title)}),F.jsx(fo,{value:m||(r&&r.selectProps&&r.selectProps.multiple?[]:""),placeholder:r.placeholder&&i(r.placeholder),disabled:r.readonly,onChange:f,...r.selectProps,children:v}),F.jsx(eo,{...r.helperTextProps,children:(y||r.description)&&i(y||r.description)})]})}const wo="MultiSelect",Sr={root:`${wo}-root`,chips:`${wo}-chips`,chip:`${wo}-chip`,menuItem:`${wo}-menuItem`,selectedMenuItem:`${wo}-selectedMenuItem`},oT=Ui("div")(({theme:e})=>({[`&.${Sr.root}`]:{display:"flex",flexWrap:"wrap"},[`& .${Sr.chips}`]:{display:"flex",flexWrap:"wrap"},[`& .${Sr.chip}`]:{margin:e.spacing(.25)},[`& .${Sr.menuItem}`]:{fontWeight:e.typography.fontWeightRegular},[`& .${Sr.selectedMenuItem}`]:{fontWeight:e.typography.fontWeightMedium}})),iT={PaperProps:{style:{maxHeight:48*4.5+8,width:250}}},aT=e=>{const{form:t,localization:{getLocalizedString:r}}=e,{value:n,onChangeValidate:i}=qt(e),a=n||[],l=u=>{i(u.target.value)},s=lr.getTitleByValue.bind(null,t.titleMap),c=t.titleMap.map(u=>F.jsx($a,{value:u.value,className:a.indexOf(u.value)===-1?Sr.menuItem:Sr.selectedMenuItem,children:u.name&&r(u.name)},u.value));return F.jsx(oT,{className:Sr.root,children:F.jsxs(Tn,{fullWidth:!0,...t.otherProps,children:[F.jsx(ua,{required:t.required,children:t.title&&r(t.title)}),F.jsx(fo,{multiple:!0,value:a,placeholder:t.placeholder&&r(t.placeholder),disabled:t.readonly,onChange:l,MenuProps:iT,renderValue:u=>F.jsx("div",{className:Sr.chips,children:u.map(d=>F.jsx(Fu,{label:s(d)&&r(s(d)),className:Sr.chip},d))}),children:c})]})})};function sT(e){return Fe("MuiFormControlLabel",e)}const So=Le("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),lT=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,l={root:["root",r&&"disabled",`labelPlacement${pe(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return Be(l,sT,t)},cT=me("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${So.label}`]:t.label},t.root,t[`labelPlacement${pe(r.labelPlacement)}`]]}})(ze(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${So.disabled}`]:{cursor:"default"},[`& .${So.label}`]:{[`&.${So.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}}]}))),uT=me("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(ze(({theme:e})=>({[`&.${So.error}`]:{color:(e.vars||e).palette.error.main}}))),Vu=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormControlLabel"}),{checked:i,className:a,componentsProps:l={},control:s,disabled:c,disableTypography:u,inputRef:d,label:m,labelPlacement:h="end",name:y,onChange:g,required:f,slots:b={},slotProps:v={},value:p,..._}=n,S=vr(),w=c??s.props.disabled??S?.disabled,E=f??s.props.required,x={disabled:w,required:E};["checked","name","onChange","value","inputRef"].forEach(U=>{typeof s.props[U]>"u"&&typeof n[U]<"u"&&(x[U]=n[U])});const P=Ur({props:n,muiFormControl:S,states:["error"]}),k={...n,disabled:w,labelPlacement:h,required:E,error:P.error},j=lT(k),R={slots:b,slotProps:{...l,...v}},[O,D]=dt("typography",{elementType:Pa,externalForwardedProps:R,ownerState:k});let N=m;return N!=null&&N.type!==Pa&&!u&&(N=F.jsx(O,{component:"span",...D,className:xe(j.label,D?.className),children:N})),F.jsxs(cT,{className:xe(j.root,a),ownerState:k,ref:r,..._,children:[A.cloneElement(s,x),E?F.jsxs("div",{children:[N,F.jsxs(uT,{ownerState:k,"aria-hidden":!0,className:j.asterisk,children:[" ","*"]})]}):N]})});process.env.NODE_ENV!=="production"&&(Vu.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:zt,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 dT(e){return Fe("MuiFormGroup",e)}Le("MuiFormGroup",["root","row","error"]);const fT=e=>{const{classes:t,row:r,error:n}=e;return Be({root:["root",r&&"row",n&&"error"]},dT,t)},pT=me("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"}}]}),Bu=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1,...l}=n,s=vr(),c=Ur({props:n,muiFormControl:s,states:["error"]}),u={...n,row:a,error:c.error},d=fT(u);return F.jsx(pT,{className:xe(d.root,i),ownerState:u,ref:r,...l})});process.env.NODE_ENV!=="production"&&(Bu.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 hT(e){return Fe("MuiRadioGroup",e)}Le("MuiRadioGroup",["root","row","error"]);const Uu=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(Uu.displayName="RadioGroupContext");const mT=e=>{const{classes:t,row:r,error:n}=e;return Be({root:["root",r&&"row",n&&"error"]},hT,t)},Ov=A.forwardRef(function(t,r){const{actions:n,children:i,className:a,defaultValue:l,name:s,onChange:c,value:u,...d}=t,m=A.useRef(null),h=mT(t),[y,g]=on({controlled:u,default:l,name:"RadioGroup"});A.useImperativeHandle(n,()=>({focus:()=>{let p=m.current.querySelector("input:not(:disabled):checked");p||(p=m.current.querySelector("input:not(:disabled)")),p&&p.focus()}}),[]);const f=St(r,m),b=bn(s),v=A.useMemo(()=>({name:b,onChange(p){g(p.target.value),c&&c(p,p.target.value)},value:y}),[b,c,g,y]);return F.jsx(Uu.Provider,{value:v,children:F.jsx(Bu,{role:"radiogroup",ref:f,className:xe(h.root,a),...d,children:i})})});process.env.NODE_ENV!=="production"&&(Ov.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});function yT(){return A.useContext(Uu)}function gT(e){return Fe("PrivateSwitchBase",e)}Le("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const vT=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${pe(i)}`],input:["input"]};return Be(a,gT,t)},bT=me(fn,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),_T=me("input",{name:"MuiSwitchBase",shouldForwardProp:It})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Wu=A.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,defaultChecked:l,disabled:s,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:m,inputProps:h,inputRef:y,name:g,onBlur:f,onChange:b,onFocus:v,readOnly:p,required:_=!1,tabIndex:S,type:w,value:E,slots:x={},slotProps:P={},...k}=t,[j,R]=on({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),O=vr(),D=$=>{v&&v($),O&&O.onFocus&&O.onFocus($)},N=$=>{f&&f($),O&&O.onBlur&&O.onBlur($)},U=$=>{if($.nativeEvent.defaultPrevented)return;const q=$.target.checked;R(q),b&&b($,q)};let W=s;O&&typeof W>"u"&&(W=O.disabled);const le=w==="checkbox"||w==="radio",ce={...t,checked:j,disabled:W,disableFocusRipple:c,edge:u},ue=vT(ce),z={slots:x,slotProps:{input:h,...P}},[C,V]=dt("root",{ref:r,elementType:bT,className:ue.root,shouldForwardComponentProp:!0,externalForwardedProps:{...z,component:"span",...k},getSlotProps:$=>({...$,onFocus:q=>{$.onFocus?.(q),D(q)},onBlur:q=>{$.onBlur?.(q),N(q)}}),ownerState:ce,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:W,role:void 0,tabIndex:null}}),[M,T]=dt("input",{ref:y,elementType:_T,className:ue.input,externalForwardedProps:z,getSlotProps:$=>({...$,onChange:q=>{$.onChange?.(q),U(q)}}),ownerState:ce,additionalProps:{autoFocus:n,checked:i,defaultChecked:l,disabled:W,id:le?m:void 0,name:g,readOnly:p,required:_,tabIndex:S,type:w,...w==="checkbox"&&E===void 0?{}:{value:E}}});return F.jsxs(C,{...V,children:[F.jsx(M,{...T}),j?a:d]})});process.env.NODE_ENV!=="production"&&(Wu.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:zt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const wT=Ct(F.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"),ST=Ct(F.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"),ET=me("span",{name:"MuiRadioButtonIcon",shouldForwardProp:It})({position:"relative",display:"flex"}),OT=me(wT,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),xT=me(ST,{name:"MuiRadioButtonIcon"})(ze(({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 Hu(e){const{checked:t=!1,classes:r={},fontSize:n}=e,i={...e,checked:t};return F.jsxs(ET,{className:r.root,ownerState:i,children:[F.jsx(OT,{fontSize:n,className:r.background,ownerState:i}),F.jsx(xT,{fontSize:n,className:r.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(Hu.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});function CT(e){return Fe("MuiRadio",e)}const xv=Le("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),TT=e=>{const{classes:t,color:r,size:n}=e,i={root:["root",`color${pe(r)}`,n!=="medium"&&`size${pe(n)}`]};return{...t,...Be(i,CT,t)}},PT=me(Wu,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${pe(r.size)}`],t[`color${pe(r.color)}`]]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${xv.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${xv.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function $T(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const RT=F.jsx(Hu,{checked:!0}),kT=F.jsx(Hu,{}),Cv=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:a=RT,color:l="primary",icon:s=kT,name:c,onChange:u,size:d="medium",className:m,disabled:h,disableRipple:y=!1,slots:g={},slotProps:f={},inputProps:b,...v}=n,p=vr();let _=h;p&&typeof _>"u"&&(_=p.disabled),_??=!1;const S={...n,disabled:_,disableRipple:y,color:l,size:d},w=TT(S),E=yT();let x=i;const P=cu(u,E&&E.onChange);let k=c;E&&(typeof x>"u"&&(x=$T(E.value,n.value)),typeof k>"u"&&(k=E.name));const j=f.input??b,[R,O]=dt("root",{ref:r,elementType:PT,className:xe(w.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...v},getSlotProps:D=>({...D,onChange:(N,...U)=>{D.onChange?.(N,...U),P(N,...U)}}),ownerState:S,additionalProps:{type:"radio",icon:A.cloneElement(s,{fontSize:s.props.fontSize??d}),checkedIcon:A.cloneElement(a,{fontSize:a.props.fontSize??d}),disabled:_,name:k,checked:x,slots:g,slotProps:{input:typeof j=="function"?j(S):j}}});return F.jsx(R,{...O,classes:w})});process.env.NODE_ENV!=="production"&&(Cv.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:zt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const Tv="Radios",Ra={formControl:`${Tv}-formControl`,group:`${Tv}-group`},IT=Ui(Tn)(({theme:e})=>({[`&.${Ra.formControl}`]:{marginTop:e.spacing(1)},[`& .${Ra.group}`]:{margin:e.spacing(1,0)}})),jT=e=>{const{form:t,localization:{getLocalizedString:r}}=e,{value:n,onChangeValidate:i}=qt(e),a=l=>l.titleMap.map((s,c)=>F.jsx(Vu,{control:F.jsx(Cv,{}),label:s.name&&r(s.name),value:s.value,disabled:l.readonly},c));return F.jsxs(IT,{component:"fieldset",className:Ra.formControl,...t.otherProps,children:[F.jsx(Hr,{component:"legend",required:t.required,children:t.title&&r(t.title)}),F.jsx(Ov,{value:n,name:t.title,onChange:i,className:Ra.group,children:a(t)})]})},NT=e=>{const{localization:{getLocalizedDate:t},form:r,type:n}=e,{value:i,valid:a,error:l,onChangeValidate:s}=qt(e);return F.jsx(cn,{...e,form:{...r,type:n},value:t(i),valid:a,error:l,onChangeValidate:s,otherProps:{InputLabelProps:{shrink:!0}},...r.otherProps})},AT=e=>F.jsx(NT,{type:"date",...e}),MT=e=>{const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e);ke.useEffect(()=>{n(r.key,t,r,a)},[]);const u=m=>{if(!m)return"";try{const h=new Date(m);return isNaN(h.getTime())?m||"":h.toISOString().slice(0,16)}catch{return m||""}},d=m=>{const h=m.target.value;if(h)try{const y=new Date(h).toISOString();c(null,y)}catch{c(m)}else c(m)};return F.jsx(cn,{...e,value:u(a),valid:l,error:s,onChangeValidate:d,form:{...r,title:r.title&&i(r.title),placeholder:r.placeholder&&i(r.placeholder),description:r.description&&i(r.description),type:"datetime-local"},otherProps:{InputLabelProps:{shrink:!0},...r.otherProps}})},DT=Ct(F.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"),qT=Ct(F.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"),LT=Ct(F.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 FT(e){return Fe("MuiCheckbox",e)}const Ku=Le("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),zT=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${pe(n)}`,`size${pe(i)}`]},l=Be(a,FT,t);return{...t,...l}},VT=me(Wu,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${pe(r.size)}`],r.color!=="default"&&t[`color${pe(r.color)}`]]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{[`&.${Ku.checked}, &.${Ku.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ku.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),BT=F.jsx(qT,{}),UT=F.jsx(DT,{}),WT=F.jsx(LT,{}),Pv=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiCheckbox"}),{checkedIcon:i=BT,color:a="primary",icon:l=UT,indeterminate:s=!1,indeterminateIcon:c=WT,inputProps:u,size:d="medium",disableRipple:m=!1,className:h,slots:y={},slotProps:g={},...f}=n,b=s?c:l,v=s?c:i,p={...n,disableRipple:m,color:a,indeterminate:s,size:d},_=zT(p),S=g.input??u,[w,E]=dt("root",{ref:r,elementType:VT,className:xe(_.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...f},ownerState:p,additionalProps:{type:"checkbox",icon:A.cloneElement(b,{fontSize:b.props.fontSize??d}),checkedIcon:A.cloneElement(v,{fontSize:v.props.fontSize??d}),disableRipple:m,slots:y,slotProps:{input:Gy(typeof S=="function"?S(p):S,{"data-indeterminate":s})}}});return F.jsx(w,{...E,classes:_})});process.env.NODE_ENV!=="production"&&(Pv.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function HT(e){const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,onChangeValidate:l}=qt(e),{key:s}=r;return n(s,t,r,a),F.jsx(Bu,{row:!0,children:F.jsx(Vu,{className:r.className,label:r.title&&i(r.title),control:F.jsx(Pv,{name:r.key.slice(-1)[0],value:r.key.slice(-1)[0],checked:a||!1,disabled:r.readonly,onChange:l}),...r.otherProps})})}const KT=e=>{const{form:{description:t,variant:r,align:n,color:i,noWrap:a,paragraph:l,otherProps:s},localization:{getLocalizedString:c}}=e;return F.jsx(Pa,{variant:r,align:n,color:i,noWrap:a,component:l?"p":"div",gutterBottom:!!l,...s,children:c(t)})};function GT(e){return Fe("MuiButton",e)}const pn=Le("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),$v=A.createContext({});process.env.NODE_ENV!=="production"&&($v.displayName="ButtonGroupContext");const Rv=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(Rv.displayName="ButtonGroupButtonContext");const YT=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,loading:l,loadingPosition:s,classes:c}=e,u={root:["root",l&&"loading",a,`${a}${pe(t)}`,`size${pe(i)}`,`${a}Size${pe(i)}`,`color${pe(t)}`,r&&"disableElevation",n&&"fullWidth",l&&`loadingPosition${pe(s)}`],startIcon:["icon","startIcon",`iconSize${pe(i)}`],endIcon:["icon","endIcon",`iconSize${pe(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Be(u,GT,c);return{...c,...d}},kv=[{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}}}],JT=me(fn,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${pe(r.color)}`],t[`size${pe(r.size)}`],t[`${r.variant}Size${pe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(ze(({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"},[`&.${pn.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]},[`&.${pn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${pn.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)",[`&.${pn.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.alpha((e.vars||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.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${pn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${pn.loading}`]:{color:"transparent"}}}]}})),XT=me("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${pe(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...kv]})),ZT=me("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${pe(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...kv]})),QT=me("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Iv=me("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),jv=A.forwardRef(function(t,r){const n=A.useContext($v),i=A.useContext(Rv),a=Wi(n,t),l=We({props:a,name:"MuiButton"}),{children:s,color:c="primary",component:u="button",className:d,disabled:m=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:b=!1,id:v,loading:p=null,loadingIndicator:_,loadingPosition:S="center",size:w="medium",startIcon:E,type:x,variant:P="text",...k}=l,j=bn(v),R=_??F.jsx(Lu,{"aria-labelledby":j,color:"inherit",size:16}),O={...l,color:c,component:u,disabled:m,disableElevation:h,disableFocusRipple:y,fullWidth:b,loading:p,loadingIndicator:R,loadingPosition:S,size:w,type:x,variant:P},D=YT(O),N=(E||p&&S==="start")&&F.jsx(XT,{className:D.startIcon,ownerState:O,children:E||F.jsx(Iv,{className:D.loadingIconPlaceholder,ownerState:O})}),U=(g||p&&S==="end")&&F.jsx(ZT,{className:D.endIcon,ownerState:O,children:g||F.jsx(Iv,{className:D.loadingIconPlaceholder,ownerState:O})}),W=i||"",le=typeof p=="boolean"?F.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:p&&F.jsx(QT,{className:D.loadingIndicator,ownerState:O,children:R})}):null;return F.jsxs(JT,{ownerState:O,className:xe(n.className,D.root,d,W),component:u,disabled:m||p,focusRipple:!y,focusVisibleClassName:xe(D.focusVisible,f),ref:r,type:x,id:p?j:v,...k,classes:D,children:[N,S!=="end"&&le,s,S==="end"&&le,U]})});process.env.NODE_ENV!=="production"&&(jv.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function eP(e){return Fe("MuiCard",e)}Le("MuiCard",["root"]);const tP=e=>{const{classes:t}=e;return Be({root:["root"]},eP,t)},rP=me(lo,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Nv=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiCard"}),{className:i,raised:a=!1,...l}=n,s={...n,raised:a},c=tP(s);return F.jsx(rP,{className:xe(c.root,i),elevation:a?8:void 0,ref:r,ownerState:s,...l})});process.env.NODE_ENV!=="production"&&(Nv.propTypes={children:o.node,classes:o.object,className:o.string,raised:cr(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])});const nP=Ct(F.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"),Eo="ArrayComponent",Er={arrayItem:`${Eo}-arrayItem`,deleteItemButton:`${Eo}-deleteItemButton`,addButton:`${Eo}-addButton`,elementsContainer:`${Eo}-elementsContainer`,title:`${Eo}-title`},oP=Ui("div")(({theme:e})=>({[`& .${Er.arrayItem}`]:{position:"relative",padding:e.spacing(),marginTop:e.spacing(),display:"flex"},[`& .${Er.deleteItemButton}`]:{margin:[[e.spacing(-1),e.spacing(-1),"auto","auto"]]},[`& .${Er.addButton}`]:{marginLeft:e.spacing()},[`& .${Er.elementsContainer}`]:{display:"flex",flexWrap:"wrap"},[`& .${Er.title}`]:{margin:"auto 0"}}));let Av=1;const ka=Symbol("_SCHEMAFORM_ITEM_ID"),Mv=e=>{let t=null;return e&&typeof e=="object"&&Array.isArray(e)?t=[...e]:e&&typeof e=="object"&&!e[ka]&&(t={...e}),t?(Object.defineProperty(t,ka,{enumerable:!1,writable:!0}),Av+=1,t[ka]=Av,t):e},iP=e=>t=>{t.key&&(t.key[t.key.indexOf("")]=e)},aP=(e,t)=>{const r=Ao(e);return r.arrayIndex=t,lr.traverseForm(r,iP(t)),r},Dv=e=>{const{form:t,builder:r,model:n,mapper:i,onChange:a,setDefault:l,options:s,localization:{getLocalizedString:c}}=e,{value:u,onChangeValidate:d}=qt(e),m=(u||[]).map(Mv);ke.useEffect(()=>{l(t.key,n,t,u)},[]),ke.useEffect(()=>{t.startEmpty!==!0&&m.length===0&&h()},[]);const h=()=>{let b;if(t&&t.schema&&t.schema.items){const{items:p}=t.schema;p.type&&p.type.indexOf("object")!==-1?(b={},(!s||s.setSchemaDefaults!==!1)&&(b=typeof p.default<"u"?p.default:b,b&&lr.traverseSchema(p,(_,S)=>{typeof _.default<"u"&&lr.selectOrSet(S,b,_.default)}))):(p.type&&p.type.indexOf("array")!==-1&&(b=[]),(!s||s.setSchemaDefaults!==!1)&&(b=p.default||b))}const v=[...m];Mv(b),v.push(b),d(null,v)},y=b=>()=>{const v=[...m];v.splice(b,1),d(null,v)},g=()=>{const b=t.AddButton||(v=>F.jsx(jv,{className:Er.addButton,variant:"contained",color:"primary",...v}));return F.jsx(b,{onClick:h,children:t.add||"Add"})},f=[];for(let b=0;b<m.length;b+=1){const v=m[b],p=t.items.map((_,S)=>{const w=aP(_,b);return r(w,n,S,i,a,r,{arrayIndex:b})});f.push(F.jsxs(Nv,{className:Er.arrayItem,children:[F.jsx("div",{className:Er.elementsContainer,children:p}),F.jsx(Ta,{onClick:y(b),className:Er.deleteItemButton,size:"large",children:F.jsx(nP,{fontSize:"small"})})]},v&&v[ka]||b))}return F.jsxs(oP,{children:[F.jsxs("div",{style:{display:"flex"},children:[F.jsx(Hr,{required:t.required,className:Er.title,children:t.title&&c(t.title)}),g()]}),F.jsx("div",{children:f})]})};var Gu={exports:{}};var qv;function sP(){return qv||(qv=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})()})(Gu)),Gu.exports}var lP=sP();const cP=Ut(lP),Lv="FieldSet",Fv={root:`${Lv}-root`,fields:`${Lv}-fields`},uP=Ui(Tn)(({theme:e})=>({[`&.${Fv.root}`]:{marginTop:e.spacing(1)},[`& .${Fv.fields}`]:{marginLeft:e.spacing(1)}})),zv=({form:e,mapper:t,builder:r,model:n,onChange:i,classes:a,localization:{getLocalizedString:l}})=>{const s=e.items.map((u,d)=>r(u,n,d,t,i,r)),c=cP(a.root,e.htmlClass);return F.jsxs(uP,{component:"fieldset",className:c,style:e.style,...e.otherProps,children:[F.jsx(Hr,{component:"legend",required:e.required,children:e.title&&l(e.title)}),F.jsx("div",{className:a.fields,children:s})]})},dP={padding:"20px"},fP=e=>{const{form:{title:t,yesLabel:r,noLabel:n,clearButtonLabel:i,required:a,key:l},model:s,setDefault:c,localization:{getLocalizedString:u}}=e,{value:d,onChangeValidate:m}=qt(e);ke.useEffect(()=>{c(l,s,e.form,d)},[]);const h=d==="yes",y=d==="no";return F.jsx(Jr.Card,{children:F.jsxs("div",{style:dP,children:[F.jsx(Hr,{required:a,children:t&&u(t)}),F.jsx("br",{}),F.jsxs(Jr.FormGroup,{children:[F.jsx(Jr.FormControlLabel,{control:F.jsx(Jr.Checkbox,{onClick:g=>{m(g,"yes")},checked:h}),label:r?u(r):"Yes"}),F.jsx(Jr.FormControlLabel,{control:F.jsx(Jr.Checkbox,{onClick:g=>{m(g,"no")},checked:y}),label:n?u(n):"No"})]}),d==="yes"||d==="no"?F.jsx(Jr.Button,{id:"temp",variant:"text",color:"primary",onClick:g=>m(g,"unanswered"),children:i?u(i):"clear response"}):""]})})};var Yu={exports:{}};var Vv;function pP(){return Vv||(Vv=1,(function(e,t){(function(r,n){e.exports=n(ke)})(self,(r=>(()=>{var n={4184:(s,c)=>{var u;(function(){var d={}.hasOwnProperty;function m(){for(var h=[],y=0;y<arguments.length;y++){var g=arguments[y];if(g){var f=typeof g;if(f==="string"||f==="number")h.push(g);else if(Array.isArray(g)){if(g.length){var b=m.apply(null,g);b&&h.push(b)}}else if(f==="object")if(g.toString===Object.prototype.toString)for(var v in g)d.call(g,v)&&g[v]&&h.push(v);else h.push(g.toString())}}return h.join(" ")}s.exports?(m.default=m,s.exports=m):(u=(function(){return m}).apply(c,[]))===void 0||(s.exports=u)})()},8552:(s,c,u)=>{var d=u(852)(u(5639),"DataView");s.exports=d},1989:(s,c,u)=>{var d=u(1789),m=u(401),h=u(7667),y=u(1327),g=u(1866);function f(b){var v=-1,p=b==null?0:b.length;for(this.clear();++v<p;){var _=b[v];this.set(_[0],_[1])}}f.prototype.clear=d,f.prototype.delete=m,f.prototype.get=h,f.prototype.has=y,f.prototype.set=g,s.exports=f},8407:(s,c,u)=>{var d=u(7040),m=u(4125),h=u(2117),y=u(7518),g=u(4705);function f(b){var v=-1,p=b==null?0:b.length;for(this.clear();++v<p;){var _=b[v];this.set(_[0],_[1])}}f.prototype.clear=d,f.prototype.delete=m,f.prototype.get=h,f.prototype.has=y,f.prototype.set=g,s.exports=f},7071:(s,c,u)=>{var d=u(852)(u(5639),"Map");s.exports=d},3369:(s,c,u)=>{var d=u(4785),m=u(1285),h=u(6e3),y=u(9916),g=u(5265);function f(b){var v=-1,p=b==null?0:b.length;for(this.clear();++v<p;){var _=b[v];this.set(_[0],_[1])}}f.prototype.clear=d,f.prototype.delete=m,f.prototype.get=h,f.prototype.has=y,f.prototype.set=g,s.exports=f},3818:(s,c,u)=>{var d=u(852)(u(5639),"Promise");s.exports=d},8525:(s,c,u)=>{var d=u(852)(u(5639),"Set");s.exports=d},8668:(s,c,u)=>{var d=u(3369),m=u(619),h=u(2385);function y(g){var f=-1,b=g==null?0:g.length;for(this.__data__=new d;++f<b;)this.add(g[f])}y.prototype.add=y.prototype.push=m,y.prototype.has=h,s.exports=y},6384:(s,c,u)=>{var d=u(8407),m=u(7465),h=u(3779),y=u(7599),g=u(4758),f=u(4309);function b(v){var p=this.__data__=new d(v);this.size=p.size}b.prototype.clear=m,b.prototype.delete=h,b.prototype.get=y,b.prototype.has=g,b.prototype.set=f,s.exports=b},2705:(s,c,u)=>{var d=u(5639).Symbol;s.exports=d},1149:(s,c,u)=>{var d=u(5639).Uint8Array;s.exports=d},577:(s,c,u)=>{var d=u(852)(u(5639),"WeakMap");s.exports=d},4963:s=>{s.exports=function(c,u){for(var d=-1,m=c==null?0:c.length,h=0,y=[];++d<m;){var g=c[d];u(g,d,c)&&(y[h++]=g)}return y}},4636:(s,c,u)=>{var d=u(2545),m=u(5694),h=u(1469),y=u(4144),g=u(5776),f=u(6719),b=Object.prototype.hasOwnProperty;s.exports=function(v,p){var _=h(v),S=!_&&m(v),w=!_&&!S&&y(v),E=!_&&!S&&!w&&f(v),x=_||S||w||E,P=x?d(v.length,String):[],k=P.length;for(var j in v)!p&&!b.call(v,j)||x&&(j=="length"||w&&(j=="offset"||j=="parent")||E&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||g(j,k))||P.push(j);return P}},2488:s=>{s.exports=function(c,u){for(var d=-1,m=u.length,h=c.length;++d<m;)c[h+d]=u[d];return c}},2908:s=>{s.exports=function(c,u){for(var d=-1,m=c==null?0:c.length;++d<m;)if(u(c[d],d,c))return!0;return!1}},8470:(s,c,u)=>{var d=u(7813);s.exports=function(m,h){for(var y=m.length;y--;)if(d(m[y][0],h))return y;return-1}},8866:(s,c,u)=>{var d=u(2488),m=u(1469);s.exports=function(h,y,g){var f=y(h);return m(h)?f:d(f,g(h))}},4239:(s,c,u)=>{var d=u(2705),m=u(9607),h=u(2333),y=d?d.toStringTag:void 0;s.exports=function(g){return g==null?g===void 0?"[object Undefined]":"[object Null]":y&&y in Object(g)?m(g):h(g)}},9454:(s,c,u)=>{var d=u(4239),m=u(7005);s.exports=function(h){return m(h)&&d(h)=="[object Arguments]"}},939:(s,c,u)=>{var d=u(2492),m=u(7005);s.exports=function h(y,g,f,b,v){return y===g||(y==null||g==null||!m(y)&&!m(g)?y!=y&&g!=g:d(y,g,f,b,h,v))}},2492:(s,c,u)=>{var d=u(6384),m=u(7114),h=u(8351),y=u(6096),g=u(4160),f=u(1469),b=u(4144),v=u(6719),p="[object Arguments]",_="[object Array]",S="[object Object]",w=Object.prototype.hasOwnProperty;s.exports=function(E,x,P,k,j,R){var O=f(E),D=f(x),N=O?_:g(E),U=D?_:g(x),W=(N=N==p?S:N)==S,le=(U=U==p?S:U)==S,ce=N==U;if(ce&&b(E)){if(!b(x))return!1;O=!0,W=!1}if(ce&&!W)return R||(R=new d),O||v(E)?m(E,x,P,k,j,R):h(E,x,N,P,k,j,R);if(!(1&P)){var ue=W&&w.call(E,"__wrapped__"),z=le&&w.call(x,"__wrapped__");if(ue||z){var C=ue?E.value():E,V=z?x.value():x;return R||(R=new d),j(C,V,P,k,R)}}return!!ce&&(R||(R=new d),y(E,x,P,k,j,R))}},8458:(s,c,u)=>{var d=u(3560),m=u(5346),h=u(3218),y=u(346),g=/^\[object .+?Constructor\]$/,f=Function.prototype,b=Object.prototype,v=f.toString,p=b.hasOwnProperty,_=RegExp("^"+v.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");s.exports=function(S){return!(!h(S)||m(S))&&(d(S)?_:g).test(y(S))}},8749:(s,c,u)=>{var d=u(4239),m=u(1780),h=u(7005),y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y["[object Arguments]"]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y["[object Function]"]=y["[object Map]"]=y["[object Number]"]=y["[object Object]"]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1,s.exports=function(g){return h(g)&&m(g.length)&&!!y[d(g)]}},280:(s,c,u)=>{var d=u(5726),m=u(6916),h=Object.prototype.hasOwnProperty;s.exports=function(y){if(!d(y))return m(y);var g=[];for(var f in Object(y))h.call(y,f)&&f!="constructor"&&g.push(f);return g}},2545:s=>{s.exports=function(c,u){for(var d=-1,m=Array(c);++d<c;)m[d]=u(d);return m}},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 d=u(5639)["__core-js_shared__"];s.exports=d},7114:(s,c,u)=>{var d=u(8668),m=u(2908),h=u(4757);s.exports=function(y,g,f,b,v,p){var _=1&f,S=y.length,w=g.length;if(S!=w&&!(_&&w>S))return!1;var E=p.get(y),x=p.get(g);if(E&&x)return E==g&&x==y;var P=-1,k=!0,j=2&f?new d:void 0;for(p.set(y,g),p.set(g,y);++P<S;){var R=y[P],O=g[P];if(b)var D=_?b(O,R,P,g,y,p):b(R,O,P,y,g,p);if(D!==void 0){if(D)continue;k=!1;break}if(j){if(!m(g,(function(N,U){if(!h(j,U)&&(R===N||v(R,N,f,b,p)))return j.push(U)}))){k=!1;break}}else if(R!==O&&!v(R,O,f,b,p)){k=!1;break}}return p.delete(y),p.delete(g),k}},8351:(s,c,u)=>{var d=u(2705),m=u(1149),h=u(7813),y=u(7114),g=u(8776),f=u(1814),b=d?d.prototype:void 0,v=b?b.valueOf:void 0;s.exports=function(p,_,S,w,E,x,P){switch(S){case"[object DataView]":if(p.byteLength!=_.byteLength||p.byteOffset!=_.byteOffset)return!1;p=p.buffer,_=_.buffer;case"[object ArrayBuffer]":return!(p.byteLength!=_.byteLength||!x(new m(p),new m(_)));case"[object Boolean]":case"[object Date]":case"[object Number]":return h(+p,+_);case"[object Error]":return p.name==_.name&&p.message==_.message;case"[object RegExp]":case"[object String]":return p==_+"";case"[object Map]":var k=g;case"[object Set]":var j=1&w;if(k||(k=f),p.size!=_.size&&!j)return!1;var R=P.get(p);if(R)return R==_;w|=2,P.set(p,_);var O=y(k(p),k(_),w,E,x,P);return P.delete(p),O;case"[object Symbol]":if(v)return v.call(p)==v.call(_)}return!1}},6096:(s,c,u)=>{var d=u(8234),m=Object.prototype.hasOwnProperty;s.exports=function(h,y,g,f,b,v){var p=1&g,_=d(h),S=_.length;if(S!=d(y).length&&!p)return!1;for(var w=S;w--;){var E=_[w];if(!(p?E in y:m.call(y,E)))return!1}var x=v.get(h),P=v.get(y);if(x&&P)return x==y&&P==h;var k=!0;v.set(h,y),v.set(y,h);for(var j=p;++w<S;){var R=h[E=_[w]],O=y[E];if(f)var D=p?f(O,R,E,y,h,v):f(R,O,E,h,y,v);if(!(D===void 0?R===O||b(R,O,g,f,v):D)){k=!1;break}j||(j=E=="constructor")}if(k&&!j){var N=h.constructor,U=y.constructor;N==U||!("constructor"in h)||!("constructor"in y)||typeof N=="function"&&N instanceof N&&typeof U=="function"&&U instanceof U||(k=!1)}return v.delete(h),v.delete(y),k}},1957:(s,c,u)=>{var d=typeof u.g=="object"&&u.g&&u.g.Object===Object&&u.g;s.exports=d},8234:(s,c,u)=>{var d=u(8866),m=u(9551),h=u(3674);s.exports=function(y){return d(y,h,m)}},5050:(s,c,u)=>{var d=u(7019);s.exports=function(m,h){var y=m.__data__;return d(h)?y[typeof h=="string"?"string":"hash"]:y.map}},852:(s,c,u)=>{var d=u(8458),m=u(7801);s.exports=function(h,y){var g=m(h,y);return d(g)?g:void 0}},9607:(s,c,u)=>{var d=u(2705),m=Object.prototype,h=m.hasOwnProperty,y=m.toString,g=d?d.toStringTag:void 0;s.exports=function(f){var b=h.call(f,g),v=f[g];try{f[g]=void 0;var p=!0}catch{}var _=y.call(f);return p&&(b?f[g]=v:delete f[g]),_}},9551:(s,c,u)=>{var d=u(4963),m=u(479),h=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols,g=y?function(f){return f==null?[]:(f=Object(f),d(y(f),(function(b){return h.call(f,b)})))}:m;s.exports=g},4160:(s,c,u)=>{var d=u(8552),m=u(7071),h=u(3818),y=u(8525),g=u(577),f=u(4239),b=u(346),v="[object Map]",p="[object Promise]",_="[object Set]",S="[object WeakMap]",w="[object DataView]",E=b(d),x=b(m),P=b(h),k=b(y),j=b(g),R=f;(d&&R(new d(new ArrayBuffer(1)))!=w||m&&R(new m)!=v||h&&R(h.resolve())!=p||y&&R(new y)!=_||g&&R(new g)!=S)&&(R=function(O){var D=f(O),N=D=="[object Object]"?O.constructor:void 0,U=N?b(N):"";if(U)switch(U){case E:return w;case x:return v;case P:return p;case k:return _;case j:return S}return D}),s.exports=R},7801:s=>{s.exports=function(c,u){return c?.[u]}},1789:(s,c,u)=>{var d=u(4536);s.exports=function(){this.__data__=d?d(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 d=u(4536),m=Object.prototype.hasOwnProperty;s.exports=function(h){var y=this.__data__;if(d){var g=y[h];return g==="__lodash_hash_undefined__"?void 0:g}return m.call(y,h)?y[h]:void 0}},1327:(s,c,u)=>{var d=u(4536),m=Object.prototype.hasOwnProperty;s.exports=function(h){var y=this.__data__;return d?y[h]!==void 0:m.call(y,h)}},1866:(s,c,u)=>{var d=u(4536);s.exports=function(m,h){var y=this.__data__;return this.size+=this.has(m)?0:1,y[m]=d&&h===void 0?"__lodash_hash_undefined__":h,this}},5776:s=>{var c=/^(?:0|[1-9]\d*)$/;s.exports=function(u,d){var m=typeof u;return!!(d=d??9007199254740991)&&(m=="number"||m!="symbol"&&c.test(u))&&u>-1&&u%1==0&&u<d}},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 d,m=u(4429),h=(d=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"";s.exports=function(y){return!!h&&h in y}},5726:s=>{var c=Object.prototype;s.exports=function(u){var d=u&&u.constructor;return u===(typeof d=="function"&&d.prototype||c)}},7040:s=>{s.exports=function(){this.__data__=[],this.size=0}},4125:(s,c,u)=>{var d=u(8470),m=Array.prototype.splice;s.exports=function(h){var y=this.__data__,g=d(y,h);return!(g<0||(g==y.length-1?y.pop():m.call(y,g,1),--this.size,0))}},2117:(s,c,u)=>{var d=u(8470);s.exports=function(m){var h=this.__data__,y=d(h,m);return y<0?void 0:h[y][1]}},7518:(s,c,u)=>{var d=u(8470);s.exports=function(m){return d(this.__data__,m)>-1}},4705:(s,c,u)=>{var d=u(8470);s.exports=function(m,h){var y=this.__data__,g=d(y,m);return g<0?(++this.size,y.push([m,h])):y[g][1]=h,this}},4785:(s,c,u)=>{var d=u(1989),m=u(8407),h=u(7071);s.exports=function(){this.size=0,this.__data__={hash:new d,map:new(h||m),string:new d}}},1285:(s,c,u)=>{var d=u(5050);s.exports=function(m){var h=d(this,m).delete(m);return this.size-=h?1:0,h}},6e3:(s,c,u)=>{var d=u(5050);s.exports=function(m){return d(this,m).get(m)}},9916:(s,c,u)=>{var d=u(5050);s.exports=function(m){return d(this,m).has(m)}},5265:(s,c,u)=>{var d=u(5050);s.exports=function(m,h){var y=d(this,m),g=y.size;return y.set(m,h),this.size+=y.size==g?0:1,this}},8776:s=>{s.exports=function(c){var u=-1,d=Array(c.size);return c.forEach((function(m,h){d[++u]=[h,m]})),d}},4536:(s,c,u)=>{var d=u(852)(Object,"create");s.exports=d},6916:(s,c,u)=>{var d=u(5569)(Object.keys,Object);s.exports=d},1167:(s,c,u)=>{s=u.nmd(s);var d=u(1957),m=c&&!c.nodeType&&c,h=m&&s&&!s.nodeType&&s,y=h&&h.exports===m&&d.process,g=(function(){try{return h&&h.require&&h.require("util").types||y&&y.binding&&y.binding("util")}catch{}})();s.exports=g},2333:s=>{var c=Object.prototype.toString;s.exports=function(u){return c.call(u)}},5569:s=>{s.exports=function(c,u){return function(d){return c(u(d))}}},5639:(s,c,u)=>{var d=u(1957),m=typeof self=="object"&&self&&self.Object===Object&&self,h=d||m||Function("return this")();s.exports=h},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,d=Array(c.size);return c.forEach((function(m){d[++u]=m})),d}},7465:(s,c,u)=>{var d=u(8407);s.exports=function(){this.__data__=new d,this.size=0}},3779:s=>{s.exports=function(c){var u=this.__data__,d=u.delete(c);return this.size=u.size,d}},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 d=u(8407),m=u(7071),h=u(3369);s.exports=function(y,g){var f=this.__data__;if(f instanceof d){var b=f.__data__;if(!m||b.length<199)return b.push([y,g]),this.size=++f.size,this;f=this.__data__=new h(b)}return f.set(y,g),this.size=f.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 d=u(9454),m=u(7005),h=Object.prototype,y=h.hasOwnProperty,g=h.propertyIsEnumerable,f=d((function(){return arguments})())?d:function(b){return m(b)&&y.call(b,"callee")&&!g.call(b,"callee")};s.exports=f},1469:s=>{var c=Array.isArray;s.exports=c},8612:(s,c,u)=>{var d=u(3560),m=u(1780);s.exports=function(h){return h!=null&&m(h.length)&&!d(h)}},4144:(s,c,u)=>{s=u.nmd(s);var d=u(5639),m=u(5062),h=c&&!c.nodeType&&c,y=h&&s&&!s.nodeType&&s,g=y&&y.exports===h?d.Buffer:void 0,f=(g?g.isBuffer:void 0)||m;s.exports=f},8446:(s,c,u)=>{var d=u(939);s.exports=function(m,h){return d(m,h)}},3560:(s,c,u)=>{var d=u(4239),m=u(3218);s.exports=function(h){if(!m(h))return!1;var y=d(h);return y=="[object Function]"||y=="[object GeneratorFunction]"||y=="[object AsyncFunction]"||y=="[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 d=u(8749),m=u(1717),h=u(1167),y=h&&h.isTypedArray,g=y?m(y):d;s.exports=g},3674:(s,c,u)=>{var d=u(4636),m=u(280),h=u(8612);s.exports=function(y){return h(y)?d(y):m(y)}},8306:(s,c,u)=>{var d=u(3369);function m(h,y){if(typeof h!="function"||y!=null&&typeof y!="function")throw new TypeError("Expected a function");var g=function(){var f=arguments,b=y?y.apply(this,f):f[0],v=g.cache;if(v.has(b))return v.get(b);var p=h.apply(this,f);return g.cache=v.set(b,p)||v,p};return g.cache=new(m.Cache||d),g}m.Cache=d,s.exports=m},479:s=>{s.exports=function(){return[]}},5062:s=>{s.exports=function(){return!1}},2703:(s,c,u)=>{var d=u(414);function m(){}function h(){}h.resetWarningCache=m,s.exports=function(){function y(b,v,p,_,S,w){if(w!==d){var E=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 E.name="Invariant Violation",E}}function g(){return y}y.isRequired=y;var f={array:y,bigint:y,bool:y,func:y,number:y,object:y,string:y,symbol:y,any:y,arrayOf:g,element:y,elementType:y,instanceOf:g,node:y,objectOf:g,oneOf:g,oneOfType:g,shape:g,exact:g,checkPropTypes:h,resetWarningCache:m};return f.PropTypes=f,f}},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:()=>Mr,expandNodesToLevel:()=>Lt});var s=a(4184),c=a.n(s),u=a(8446),d=a.n(u),m=a(8306),h=a.n(m);let y=(Y=21)=>crypto.getRandomValues(new Uint8Array(Y)).reduce(((B,Q)=>B+((Q&=63)<36?Q.toString(36):Q<62?(Q-26).toString(36).toUpperCase():Q>62?"-":"_")),"");var g=a(5697),f=a.n(g),b=a(9787),v=a.n(b);function p(Y){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},p(Y)}var _=["children","title"];function S(){return S=Object.assign?Object.assign.bind():function(Y){for(var B=1;B<arguments.length;B++){var Q=arguments[B];for(var J in Q)Object.prototype.hasOwnProperty.call(Q,J)&&(Y[J]=Q[J])}return Y},S.apply(this,arguments)}function w(Y,B){if(!(Y instanceof B))throw new TypeError("Cannot call a class as a function")}function E(Y,B){for(var Q=0;Q<B.length;Q++){var J=B[Q];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function x(Y,B){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Q,J){return Q.__proto__=J,Q},x(Y,B)}function P(Y,B){if(B&&(p(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(Q){if(Q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q})(Y)}function k(Y){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},k(Y)}function j(Y,B,Q){return B in Y?Object.defineProperty(Y,B,{value:Q,enumerable:!0,configurable:!0,writable:!0}):Y[B]=Q,Y}var R=(function(Y){(function(se,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(H&&H.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),H&&x(se,H)})(je,Y);var B,Q,J,Se,Re=(J=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 se,H=k(J);if(Se){var Z=k(this).constructor;se=Reflect.construct(H,arguments,Z)}else se=H.apply(this,arguments);return P(this,se)});function je(){return w(this,je),Re.apply(this,arguments)}return B=je,(Q=[{key:"render",value:function(){var se=this.props,H=se.children,Z=se.title,de=(function(_e,Ne){if(_e==null)return{};var yt,gt,Ke=(function(jt,hn){if(jt==null)return{};var ir,fr,ae={},ee=Object.keys(jt);for(fr=0;fr<ee.length;fr++)ir=ee[fr],hn.indexOf(ir)>=0||(ae[ir]=jt[ir]);return ae})(_e,Ne);if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(_e);for(gt=0;gt<ut.length;gt++)yt=ut[gt],Ne.indexOf(yt)>=0||Object.prototype.propertyIsEnumerable.call(_e,yt)&&(Ke[yt]=_e[yt])}return Ke})(se,_);return v().createElement("button",S({"aria-label":Z,title:Z,type:"button"},de),H)}}])&&E(B.prototype,Q),Object.defineProperty(B,"prototype",{writable:!1}),je})(v().PureComponent);j(R,"propTypes",{children:f().node.isRequired,title:f().string}),j(R,"defaultProps",{title:null});const O=R,D={ALL:"all",PARENT:"parent",LEAF:"leaf"};function N(Y){this.message=Y,this.stack=Error().stack}N.prototype=Object.create(Error.prototype),N.prototype.name="CheckboxTreeError";const U=N;function W(Y,B){var Q=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),Q.push.apply(Q,J)}return Q}function le(Y,B,Q){return B in Y?Object.defineProperty(Y,B,{value:Q,enumerable:!0,configurable:!0,writable:!0}):Y[B]=Q,Y}function ce(Y,B){if(!(Y instanceof B))throw new TypeError("Cannot call a class as a function")}function ue(Y,B){for(var Q=0;Q<B.length;Q++){var J=B[Q];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}var z=D;const C=(function(){function Y(J){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ce(this,Y),this.props=J,this.flatNodes=Se}var B,Q;return B=Y,Q=[{key:"setProps",value:function(J){this.props=J}},{key:"clone",value:function(){var J=this,Se={};return Object.keys(this.flatNodes).forEach((function(Re){var je=J.flatNodes[Re];Se[Re]=(function(se){for(var H=1;H<arguments.length;H++){var Z=arguments[H]!=null?arguments[H]:{};H%2?W(Object(Z),!0).forEach((function(de){le(se,de,Z[de])})):Object.getOwnPropertyDescriptors?Object.defineProperties(se,Object.getOwnPropertyDescriptors(Z)):W(Object(Z)).forEach((function(de){Object.defineProperty(se,de,Object.getOwnPropertyDescriptor(Z,de))}))}return se})({},je)})),new Y(this.props,Se)}},{key:"getNode",value:function(J){return this.flatNodes[J]}},{key:"reset",value:function(){this.flatNodes={}}},{key:"flattenNodes",value:function(J){var Se=this,Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Array.isArray(J)&&J.length!==0){var se=this.props,H=se.disabled,Z=se.noCascade;J.forEach((function(de,_e){var Ne=Se.nodeHasChildren(de);if(Se.flatNodes[de.value]!==void 0)throw new U("Duplicate value '".concat(de.value,"' detected. All node values must be unique."));Se.flatNodes[de.value]={label:de.label,value:de.value,children:de.children,parent:Re,isChild:Re.value!==void 0,isParent:Ne,isLeaf:!Ne,showCheckbox:de.showCheckbox===void 0||de.showCheckbox,disabled:Se.getDisabledState(de,Re,H,Z),treeDepth:je,index:_e},Se.flattenNodes(de.children,de,je+1)}))}}},{key:"nodeHasChildren",value:function(J){return Array.isArray(J.children)}},{key:"getDisabledState",value:function(J,Se,Re,je){return!!Re||!(je||!Se.disabled)||!!J.disabled}},{key:"deserializeLists",value:function(J){var Se=this,Re=["checked","expanded"];Object.keys(this.flatNodes).forEach((function(je){Re.forEach((function(se){Se.flatNodes[je][se]=!1}))})),Re.forEach((function(je){J[je].forEach((function(se){Se.flatNodes[se]!==void 0&&(Se.flatNodes[se][je]=!0)}))}))}},{key:"serializeList",value:function(J){var Se=this,Re=[];return Object.keys(this.flatNodes).forEach((function(je){Se.flatNodes[je][J]&&Re.push(je)})),Re}},{key:"expandAllNodes",value:function(J){var Se=this;return Object.keys(this.flatNodes).forEach((function(Re){Se.flatNodes[Re].isParent&&(Se.flatNodes[Re].expanded=J)})),this}},{key:"toggleChecked",value:function(J,Se,Re,je){var se=this,H=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],Z=this.flatNodes[J.value],de=[z.PARENT,z.ALL].indexOf(Re)>-1,_e=[z.LEAF,z.ALL].indexOf(Re)>-1;if(Z.isLeaf||je){if(J.disabled)return this;this.toggleNode(J.value,"checked",Se)}else(de||Z.children.length===0)&&this.toggleNode(J.value,"checked",Se),_e&&Z.children.forEach((function(Ne){se.toggleChecked(Ne,Se,Re,je,!1)}));return H&&!je&&Z.isChild&&de&&this.toggleParentStatus(Z.parent,Re),this}},{key:"toggleParentStatus",value:function(J,Se){var Re=this.flatNodes[J.value];Re.isChild?(Se===z.ALL&&this.toggleNode(J.value,"checked",this.isEveryChildChecked(Re)),this.toggleParentStatus(Re.parent,Se)):this.toggleNode(J.value,"checked",this.isEveryChildChecked(Re))}},{key:"isEveryChildChecked",value:function(J){var Se=this;return J.children.every((function(Re){return Se.getNode(Re.value).checked}))}},{key:"toggleNode",value:function(J,Se,Re){return this.flatNodes[J][Se]=Re,this}}],Q&&ue(B.prototype,Q),Object.defineProperty(B,"prototype",{writable:!1}),Y})();function V(Y){return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},V(Y)}function M(){return M=Object.assign?Object.assign.bind():function(Y){for(var B=1;B<arguments.length;B++){var Q=arguments[B];for(var J in Q)Object.prototype.hasOwnProperty.call(Q,J)&&(Y[J]=Q[J])}return Y},M.apply(this,arguments)}function T(Y,B){var Q=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),Q.push.apply(Q,J)}return Q}function $(Y,B){if(!(Y instanceof B))throw new TypeError("Cannot call a class as a function")}function q(Y,B){for(var Q=0;Q<B.length;Q++){var J=B[Q];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function K(Y,B){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Q,J){return Q.__proto__=J,Q},K(Y,B)}function re(Y,B){if(B&&(V(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(Q){if(Q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q})(Y)}function ie(Y){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},ie(Y)}function te(Y,B,Q){return B in Y?Object.defineProperty(Y,B,{value:Q,enumerable:!0,configurable:!0,writable:!0}):Y[B]=Q,Y}var L=(function(Y){(function(se,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(H&&H.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),H&&K(se,H)})(je,Y);var B,Q,J,Se,Re=(J=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 se,H=ie(J);if(Se){var Z=ie(this).constructor;se=Reflect.construct(H,arguments,Z)}else se=H.apply(this,arguments);return re(this,se)});function je(){return $(this,je),Re.apply(this,arguments)}return B=je,Q=[{key:"componentDidMount",value:function(){this.updateDeterminateProperty()}},{key:"componentDidUpdate",value:function(){this.updateDeterminateProperty()}},{key:"updateDeterminateProperty",value:function(){var se=this.props.indeterminate;this.checkbox.indeterminate=se}},{key:"render",value:function(){var se=this,H=(function(Z){for(var de=1;de<arguments.length;de++){var _e=arguments[de]!=null?arguments[de]:{};de%2?T(Object(_e),!0).forEach((function(Ne){te(Z,Ne,_e[Ne])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(_e)):T(Object(_e)).forEach((function(Ne){Object.defineProperty(Z,Ne,Object.getOwnPropertyDescriptor(_e,Ne))}))}return Z})({},this.props);return delete H.indeterminate,v().createElement("input",M({},H,{ref:function(Z){se.checkbox=Z},type:"checkbox"}))}}],Q&&q(B.prototype,Q),Object.defineProperty(B,"prototype",{writable:!1}),je})(v().PureComponent);te(L,"propTypes",{indeterminate:f().bool}),te(L,"defaultProps",{indeterminate:!1});const I=L,G=f().shape({check:f().node,uncheck:f().node,halfCheck:f().node,expandClose:f().node,expandOpen:f().node,expandAll:f().node,collapseAll:f().node,parentClose:f().node,parentOpen:f().node,leaf:f().node}),X=f().shape({collapseAll:f().string.isRequired,expandAll:f().string.isRequired,toggle:f().string.isRequired});function oe(Y){return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},oe(Y)}function ye(Y,B){for(var Q=0;Q<B.length;Q++){var J=B[Q];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function ve(Y,B){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Q,J){return Q.__proto__=J,Q},ve(Y,B)}function fe(Y,B){if(B&&(oe(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Te(Y)}function Te(Y){if(Y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}function be(Y){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},be(Y)}function Ee(Y,B,Q){return B in Y?Object.defineProperty(Y,B,{value:Q,enumerable:!0,configurable:!0,writable:!0}):Y[B]=Q,Y}var he=(function(Y){(function(se,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(H&&H.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),H&&ve(se,H)})(je,Y);var B,Q,J,Se,Re=(J=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 se,H=be(J);if(Se){var Z=be(this).constructor;se=Reflect.construct(H,arguments,Z)}else se=H.apply(this,arguments);return fe(this,se)});function je(se){var H;return(function(Z,de){if(!(Z instanceof de))throw new TypeError("Cannot call a class as a function")})(this,je),(H=Re.call(this,se)).onCheck=H.onCheck.bind(Te(H)),H.onCheckboxKeyPress=H.onCheckboxKeyPress.bind(Te(H)),H.onCheckboxKeyUp=H.onCheckboxKeyUp.bind(Te(H)),H.onClick=H.onClick.bind(Te(H)),H.onExpand=H.onExpand.bind(Te(H)),H}return B=je,(Q=[{key:"onCheck",value:function(){var se=this.props,H=se.value;(0,se.onCheck)({value:H,checked:this.getCheckState({toggle:!0})})}},{key:"onCheckboxKeyPress",value:function(se){se.which===32&&se.preventDefault()}},{key:"onCheckboxKeyUp",value:function(se){var H=se.keyCode;[13,32].includes(H)&&this.onCheck()}},{key:"onClick",value:function(){var se=this.props,H=se.expandOnClick,Z=se.isParent,de=se.value,_e=se.onClick;Z&&H&&this.onExpand(),_e({value:de,checked:this.getCheckState({toggle:!1})})}},{key:"onExpand",value:function(){var se=this.props,H=se.expanded,Z=se.value;(0,se.onExpand)({value:Z,expanded:!H})}},{key:"getCheckState",value:function(se){var H=se.toggle,Z=this.props,de=Z.checked,_e=Z.optimisticToggle;return!(de!==0||!H)||de===1&&!H||de===2&&_e}},{key:"renderCollapseButton",value:function(){var se=this.props,H=se.expandDisabled,Z=se.isLeaf,de=se.lang;return Z?v().createElement("span",{className:"rct-collapse"},v().createElement("span",{className:"rct-icon"})):v().createElement(O,{className:"rct-collapse rct-collapse-btn",disabled:H,title:de.toggle,onClick:this.onExpand},this.renderCollapseIcon())}},{key:"renderCollapseIcon",value:function(){var se=this.props,H=se.expanded,Z=se.icons,de=Z.expandClose,_e=Z.expandOpen;return H?_e:de}},{key:"renderCheckboxIcon",value:function(){var se=this.props,H=se.checked,Z=se.icons,de=Z.uncheck,_e=Z.check,Ne=Z.halfCheck;return H===0?de:H===1?_e:Ne}},{key:"renderNodeIcon",value:function(){var se=this.props,H=se.expanded,Z=se.icon,de=se.icons,_e=de.leaf,Ne=de.parentClose,yt=de.parentOpen,gt=se.isLeaf;return Z!==null?Z:gt?_e:H?yt:Ne}},{key:"renderBareLabel",value:function(se){var H=this.props,Z=H.onClick,de=H.title,_e=Z!==null;return v().createElement("span",{className:"rct-bare-label",title:de},_e?v().createElement("span",{className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"button",tabIndex:0},se):se)}},{key:"renderCheckboxLabel",value:function(se){var H=this.props,Z=H.checked,de=H.disabled,_e=H.title,Ne=H.treeId,yt=H.value,gt=H.onClick!==null,Ke="".concat(Ne,"-").concat(String(yt).split(" ").join("_")),ut=[v().createElement("label",{key:0,htmlFor:Ke,title:_e},v().createElement(I,{checked:Z===1,disabled:de,id:Ke,indeterminate:Z===2,onClick:this.onCheck,onChange:function(){}}),v().createElement("span",{"aria-checked":Z===1,"aria-disabled":de,className:"rct-checkbox",role:"checkbox",tabIndex:0,onKeyPress:this.onCheckboxKeyPress,onKeyUp:this.onCheckboxKeyUp},this.renderCheckboxIcon()),gt?null:se)];return gt&&ut.push(v().createElement("span",{key:1,className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"link",tabIndex:0},se)),ut}},{key:"renderLabel",value:function(){var se=this.props,H=se.label,Z=se.showCheckbox,de=[se.showNodeIcon?v().createElement("span",{key:0,className:"rct-node-icon"},this.renderNodeIcon()):null,v().createElement("span",{key:1,className:"rct-title"},H)];return Z?this.renderCheckboxLabel(de):this.renderBareLabel(de)}},{key:"renderChildren",value:function(){return this.props.expanded?this.props.children:null}},{key:"render",value:function(){var se=this.props,H=se.className,Z=se.disabled,de=se.expanded,_e=se.isLeaf,Ne=c()({"rct-node":!0,"rct-node-leaf":_e,"rct-node-parent":!_e,"rct-node-expanded":!_e&&de,"rct-node-collapsed":!_e&&!de,"rct-disabled":Z},H);return v().createElement("li",{className:Ne},v().createElement("span",{className:"rct-text"},this.renderCollapseButton(),this.renderLabel()),this.renderChildren())}}])&&ye(B.prototype,Q),Object.defineProperty(B,"prototype",{writable:!1}),je})(v().PureComponent);Ee(he,"propTypes",{checked:f().number.isRequired,disabled:f().bool.isRequired,expandDisabled:f().bool.isRequired,expanded:f().bool.isRequired,icons:G.isRequired,isLeaf:f().bool.isRequired,isParent:f().bool.isRequired,label:f().node.isRequired,lang:X.isRequired,optimisticToggle:f().bool.isRequired,showNodeIcon:f().bool.isRequired,treeId:f().string.isRequired,value:f().oneOfType([f().string,f().number]).isRequired,onCheck:f().func.isRequired,onExpand:f().func.isRequired,children:f().node,className:f().string,expandOnClick:f().bool,icon:f().node,showCheckbox:f().bool,title:f().string,onClick:f().func}),Ee(he,"defaultProps",{children:null,className:null,expandOnClick:!1,icon:null,showCheckbox:!0,title:null,onClick:function(){}});const $e=he,Ie=f().oneOfType([f().arrayOf(f().string),f().arrayOf(f().number)]);function ot(Y,B){var Q=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),Q.push.apply(Q,J)}return Q}function Qe(Y){for(var B=1;B<arguments.length;B++){var Q=arguments[B]!=null?arguments[B]:{};B%2?ot(Object(Q),!0).forEach((function(J){_t(Y,J,Q[J])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Y,Object.getOwnPropertyDescriptors(Q)):ot(Object(Q)).forEach((function(J){Object.defineProperty(Y,J,Object.getOwnPropertyDescriptor(Q,J))}))}return Y}function _t(Y,B,Q){return B in Y?Object.defineProperty(Y,B,{value:Q,enumerable:!0,configurable:!0,writable:!0}):Y[B]=Q,Y}var et={label:f().node.isRequired,value:f().oneOfType([f().string,f().number]).isRequired,disabled:f().bool,icon:f().node,showCheckbox:f().bool,title:f().string};const Tt=f().oneOfType([f().shape(et),f().shape(Qe(Qe({},et),{},{children:f().arrayOf(et).isRequired}))]);function Je(Y){return Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},Je(Y)}function Oe(Y,B){var Q=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),Q.push.apply(Q,J)}return Q}function He(Y){for(var B=1;B<arguments.length;B++){var Q=arguments[B]!=null?arguments[B]:{};B%2?Oe(Object(Q),!0).forEach((function(J){we(Y,J,Q[J])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Y,Object.getOwnPropertyDescriptors(Q)):Oe(Object(Q)).forEach((function(J){Object.defineProperty(Y,J,Object.getOwnPropertyDescriptor(Q,J))}))}return Y}function ft(Y,B){for(var Q=0;Q<B.length;Q++){var J=B[Q];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function ct(Y,B){return ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Q,J){return Q.__proto__=J,Q},ct(Y,B)}function Ar(Y,B){if(B&&(Je(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Et(Y)}function Et(Y){if(Y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}function Ot(Y){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},Ot(Y)}function we(Y,B,Q){return B in Y?Object.defineProperty(Y,B,{value:Q,enumerable:!0,configurable:!0,writable:!0}):Y[B]=Q,Y}var Me=(function(Y){(function(H,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");H.prototype=Object.create(Z&&Z.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),Object.defineProperty(H,"prototype",{writable:!1}),Z&&ct(H,Z)})(se,Y);var B,Q,J,Se,Re,je=(Se=se,Re=(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 H,Z=Ot(Se);if(Re){var de=Ot(this).constructor;H=Reflect.construct(Z,arguments,de)}else H=Z.apply(this,arguments);return Ar(this,H)});function se(H){var Z;(function(_e,Ne){if(!(_e instanceof Ne))throw new TypeError("Cannot call a class as a function")})(this,se),Z=je.call(this,H);var de=new C(H);return de.flattenNodes(H.nodes),de.deserializeLists({checked:H.checked,expanded:H.expanded}),Z.state={id:H.id||"rct-".concat(y()),model:de,prevProps:H},Z.onCheck=Z.onCheck.bind(Et(Z)),Z.onExpand=Z.onExpand.bind(Et(Z)),Z.onNodeClick=Z.onNodeClick.bind(Et(Z)),Z.onExpandAll=Z.onExpandAll.bind(Et(Z)),Z.onCollapseAll=Z.onCollapseAll.bind(Et(Z)),Z.combineMemorized=h()((function(_e,Ne){return He(He({},_e),Ne)})).bind(Et(Z)),Z}return B=se,Q=[{key:"onCheck",value:function(H){var Z=this.props,de=Z.checkModel,_e=Z.noCascade,Ne=Z.onCheck,yt=this.state.model.clone(),gt=yt.getNode(H.value);yt.toggleChecked(H,H.checked,de,_e),Ne(yt.serializeList("checked"),He(He({},gt),H))}},{key:"onExpand",value:function(H){var Z=this.props.onExpand,de=this.state.model.clone(),_e=de.getNode(H.value);de.toggleNode(H.value,"expanded",H.expanded),Z(de.serializeList("expanded"),He(He({},_e),H))}},{key:"onNodeClick",value:function(H){(0,this.props.onClick)(He(He({},this.state.model.getNode(H.value)),H))}},{key:"onExpandAll",value:function(){this.expandAllNodes()}},{key:"onCollapseAll",value:function(){this.expandAllNodes(!1)}},{key:"expandAllNodes",value:function(){var H=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],Z=this.props.onExpand;Z(this.state.model.clone().expandAllNodes(H).serializeList("expanded"))}},{key:"determineShallowCheckState",value:function(H,Z){var de=this.state.model.getNode(H.value);return de.isLeaf||Z||H.children.length===0?de.checked?1:0:this.isEveryChildChecked(H)?1:this.isSomeChildChecked(H)?2:0}},{key:"isEveryChildChecked",value:function(H){var Z=this;return H.children.every((function(de){return Z.state.model.getNode(de.value).checkState===1}))}},{key:"isSomeChildChecked",value:function(H){var Z=this;return H.children.some((function(de){return Z.state.model.getNode(de.value).checkState>0}))}},{key:"renderTreeNodes",value:function(H){var Z=this,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=this.props,Ne=_e.expandDisabled,yt=_e.expandOnClick,gt=_e.icons,Ke=_e.lang,ut=_e.noCascade,jt=_e.onClick,hn=_e.onlyLeafCheckboxes,ir=_e.optimisticToggle,fr=_e.showNodeTitle,ae=_e.showNodeIcon,ee=this.state,ge=ee.id,Ce=ee.model,Pe=se.defaultProps.icons,ht=H.map((function(Ue){var Nt=Ue.value,At=Ce.getNode(Ue.value),Na=At.isParent?Z.renderTreeNodes(Ue.children,Ue):null;At.checkState=Z.determineShallowCheckState(Ue,ut);var Aa=hn?At.isLeaf:At.showCheckbox;return!de.value||Ce.getNode(de.value).expanded?v().createElement($e,{key:Nt,checked:At.checkState,className:Ue.className,disabled:At.disabled,expandDisabled:Ne,expandOnClick:yt,expanded:At.expanded,icon:Ue.icon,icons:Z.combineMemorized(Pe,gt),label:Ue.label,lang:Ke,optimisticToggle:ir,isLeaf:At.isLeaf,isParent:At.isParent,showCheckbox:Aa,showNodeIcon:ae,title:fr?Ue.title||Ue.label:Ue.title,treeId:ge,value:Ue.value,onCheck:Z.onCheck,onClick:jt&&Z.onNodeClick,onExpand:Z.onExpand},Na):null}));return v().createElement("ol",null,ht)}},{key:"renderExpandAll",value:function(){var H=this.props,Z=H.icons,de=Z.expandAll,_e=Z.collapseAll,Ne=H.lang;return H.showExpandAll?v().createElement("div",{className:"rct-options"},v().createElement(O,{className:"rct-option rct-option-expand-all",title:Ne.expandAll,onClick:this.onExpandAll},de),v().createElement(O,{className:"rct-option rct-option-collapse-all",title:Ne.collapseAll,onClick:this.onCollapseAll},_e)):null}},{key:"renderHiddenInput",value:function(){var H=this.props,Z=H.name,de=H.nameAsArray;return Z===void 0?null:de?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var H=this.props,Z=H.checked,de=H.name;return Z.map((function(_e){var Ne="".concat(de,"[]");return v().createElement("input",{key:_e,name:Ne,type:"hidden",value:_e})}))}},{key:"renderJoinedHiddenInput",value:function(){var H=this.props,Z=H.checked,de=H.name,_e=Z.join(",");return v().createElement("input",{name:de,type:"hidden",value:_e})}},{key:"render",value:function(){var H,Z=this.props,de=Z.direction,_e=Z.disabled,Ne=Z.iconsClass,yt=Z.nodes,gt=Z.nativeCheckboxes,Ke=this.state.id,ut=this.renderTreeNodes(yt),jt=c()((we(H={"react-checkbox-tree":!0,"rct-disabled":_e},"rct-icons-".concat(Ne),!0),we(H,"rct-native-display",gt),we(H,"rct-direction-rtl",de==="rtl"),H));return v().createElement("div",{className:jt,id:Ke},this.renderExpandAll(),this.renderHiddenInput(),ut)}}],J=[{key:"getDerivedStateFromProps",value:function(H,Z){var de=Z.model,_e=Z.prevProps,Ne=H.disabled,yt=H.id,gt=H.nodes,Ke=He(He({},Z),{},{prevProps:H});return de.setProps(H),d()(_e.nodes,gt)&&_e.disabled===Ne||(de.reset(),de.flattenNodes(gt)),yt!==null&&(Ke=He(He({},Ke),{},{id:yt})),de.deserializeLists({checked:H.checked,expanded:H.expanded}),Ke}}],Q&&ft(B.prototype,Q),J&&ft(B,J),Object.defineProperty(B,"prototype",{writable:!1}),se})(v().Component);function pt(Y){return(function(B){if(Array.isArray(B))return xt(B)})(Y)||(function(B){if(typeof Symbol<"u"&&B[Symbol.iterator]!=null||B["@@iterator"]!=null)return Array.from(B)})(Y)||(function(B,Q){if(B){if(typeof B=="string")return xt(B,Q);var J=Object.prototype.toString.call(B).slice(8,-1);return J==="Object"&&B.constructor&&(J=B.constructor.name),J==="Map"||J==="Set"?Array.from(B):J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)?xt(B,Q):void 0}})(Y)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
173
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function xt(Y,B){(B==null||B>Y.length)&&(B=Y.length);for(var Q=0,J=new Array(B);Q<B;Q++)J[Q]=Y[Q];return J}function Lt(Y,B){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Q>B)return[];var J=[];return Y.forEach((function(Se){Se.children&&(J=[].concat(pt(J),[Se.value],pt(Lt(Se.children,B,Q+1))))})),J}we(Me,"propTypes",{nodes:f().arrayOf(Tt).isRequired,checkModel:f().oneOf([D.LEAF,D.ALL]),checked:Ie,direction:f().string,disabled:f().bool,expandDisabled:f().bool,expandOnClick:f().bool,expanded:Ie,icons:G,iconsClass:f().string,id:f().string,lang:X,name:f().string,nameAsArray:f().bool,nativeCheckboxes:f().bool,noCascade:f().bool,onlyLeafCheckboxes:f().bool,optimisticToggle:f().bool,showExpandAll:f().bool,showNodeIcon:f().bool,showNodeTitle:f().bool,onCheck:f().func,onClick:f().func,onExpand:f().func}),we(Me,"defaultProps",{checkModel:D.LEAF,checked:[],direction:"ltr",disabled:!1,expandDisabled:!1,expandOnClick:!1,expanded:[],icons:{check:v().createElement("span",{className:"rct-icon rct-icon-check"}),uncheck:v().createElement("span",{className:"rct-icon rct-icon-uncheck"}),halfCheck:v().createElement("span",{className:"rct-icon rct-icon-half-check"}),expandClose:v().createElement("span",{className:"rct-icon rct-icon-expand-close"}),expandOpen:v().createElement("span",{className:"rct-icon rct-icon-expand-open"}),expandAll:v().createElement("span",{className:"rct-icon rct-icon-expand-all"}),collapseAll:v().createElement("span",{className:"rct-icon rct-icon-collapse-all"}),parentClose:v().createElement("span",{className:"rct-icon rct-icon-parent-close"}),parentOpen:v().createElement("span",{className:"rct-icon rct-icon-parent-open"}),leaf:v().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 Mr=Me})(),l})()))})(Yu)),Yu.exports}var hP=pP();const mP=Ut(hP),yP=Ct(F.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"),gP=Ct(F.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"),Bv=Ct(F.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"),vP=Ct(F.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),bP=Ct(F.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),_P=Ct(F.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"),wP=Ct(F.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"),SP=Ct(F.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"),EP=Ct(F.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 Oo={},Uv;function OP(){if(Uv)return Oo;Uv=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.parse=l,Oo.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function l(h,y){const g=new a,f=h.length;if(f<2)return g;const b=y?.decode||d;let v=0;do{const p=h.indexOf("=",v);if(p===-1)break;const _=h.indexOf(";",v),S=_===-1?f:_;if(p>S){v=h.lastIndexOf(";",p-1)+1;continue}const w=s(h,v,p),E=c(h,p,w),x=h.slice(w,E);if(g[x]===void 0){let P=s(h,p+1,S),k=c(h,S,P);const j=b(h.slice(P,k));g[x]=j}v=S+1}while(v<f);return g}function s(h,y,g){do{const f=h.charCodeAt(y);if(f!==32&&f!==9)return y}while(++y<g);return g}function c(h,y,g){for(;y>g;){const f=h.charCodeAt(--y);if(f!==32&&f!==9)return y+1}return g}function u(h,y,g){const f=g?.encode||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const b=f(y);if(!t.test(b))throw new TypeError(`argument val is invalid: ${y}`);let v=h+"="+b;if(!g)return v;if(g.maxAge!==void 0){if(!Number.isInteger(g.maxAge))throw new TypeError(`option maxAge is invalid: ${g.maxAge}`);v+="; Max-Age="+g.maxAge}if(g.domain){if(!r.test(g.domain))throw new TypeError(`option domain is invalid: ${g.domain}`);v+="; Domain="+g.domain}if(g.path){if(!n.test(g.path))throw new TypeError(`option path is invalid: ${g.path}`);v+="; Path="+g.path}if(g.expires){if(!m(g.expires)||!Number.isFinite(g.expires.valueOf()))throw new TypeError(`option expires is invalid: ${g.expires}`);v+="; Expires="+g.expires.toUTCString()}if(g.httpOnly&&(v+="; HttpOnly"),g.secure&&(v+="; Secure"),g.partitioned&&(v+="; Partitioned"),g.priority)switch(typeof g.priority=="string"?g.priority.toLowerCase():void 0){case"low":v+="; Priority=Low";break;case"medium":v+="; Priority=Medium";break;case"high":v+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${g.priority}`)}if(g.sameSite)switch(typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite){case!0:case"strict":v+="; SameSite=Strict";break;case"lax":v+="; SameSite=Lax";break;case"none":v+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${g.sameSite}`)}return v}function d(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function m(h){return i.call(h)==="[object Date]"}return Oo}var Ia=OP();function xP(){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 CP(e){return typeof e=="string"?Ia.parse(e):typeof e=="object"&&e!==null?e:{}}function Ju(e,t={}){const r=TP(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function TP(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Wv{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=Ia.parse(document.cookie),this._checkChanges(i)};const n=typeof document>"u"?"":document.cookie;this.cookies=CP(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=xP()}_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:Ju(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),Ju(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=Ju(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=Ia.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=Ia.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())}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0])}}function PP(e){const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e),{key:u,title:d,action:m}=r;ke.useEffect(()=>{n(u,t,r,a)},[]);const[h,y]=ke.useState([]),[g,f]=ke.useState([]),b=p=>{const _=new Wv,S={"Content-Type":"application/json"};_.get("csrf")&&Object.assign(S,{"X-CSRF-TOKEN":_.get("csrf")}),fetch(p,{headers:S,credentials:"include"}).then(w=>w.ok?w.json():w.text().then(E=>{throw new Error(E)})).then(w=>{f(w)}).catch(w=>{console.error(w)})};ke.useEffect(()=>{m&&m.url&&b(m.url)},[]);const v={check:F.jsx(yP,{className:"rct-icon rct-icon-check"}),uncheck:F.jsx(gP,{className:"rct-icon rct-icon-uncheck"}),halfCheck:F.jsx(Bv,{className:"rct-icon rct-icon-half-check"}),expandClose:F.jsx(vP,{className:"rct-icon rct-icon-expand-close"}),expandOpen:F.jsx(bP,{className:"rct-icon rct-icon-expand-open"}),expandAll:F.jsx(_P,{className:"rct-icon rct-icon-expand-all"}),collapseAll:F.jsx(Bv,{className:"rct-icon rct-icon-collapse-all"}),parentClose:F.jsx(wP,{className:"rct-icon rct-icon-parent-close"}),parentOpen:F.jsx(SP,{className:"rct-icon rct-icon-parent-open"}),leaf:F.jsx(EP,{className:"rct-icon rct-icon-leaf-close"})};return F.jsxs(ke.Fragment,{children:[F.jsx(Hr,{required:r.required,children:d&&i(d)}),F.jsx(mP,{nodes:g,checked:a||[],expanded:h,onCheck:p=>c(null,p),onExpand:p=>y(p),icons:v,noCascade:!0}),l?null:F.jsx(eo,{error:!0,children:s})]})}var ja={exports:{}},$P=ja.exports,Hv;function RP(){return Hv||(Hv=1,(function(e){(function(t,r){e.exports=r()})($P,function(){var t=Object.prototype.toString;function r(m,h){return m==null?!1:Object.prototype.hasOwnProperty.call(m,h)}function n(m){if(!m||l(m)&&m.length===0)return!0;if(typeof m!="string"){for(var h in m)if(r(m,h))return!1;return!0}return!1}function i(m){return t.call(m)}function a(m){return typeof m=="object"&&i(m)==="[object Object]"}var l=Array.isArray||function(m){return t.call(m)==="[object Array]"};function s(m){return typeof m=="boolean"||i(m)==="[object Boolean]"}function c(m){var h=parseInt(m);return h.toString()===m?h:m}function u(m){m=m||{};var h=function(v){return Object.keys(h).reduce(function(p,_){return _==="create"||typeof h[_]=="function"&&(p[_]=h[_].bind(h,v)),p},{})},y;m.includeInheritedProps?y=function(){return!0}:y=function(v,p){return typeof p=="number"&&Array.isArray(v)||r(v,p)};function g(v,p){if(y(v,p))return v[p]}var f;m.includeInheritedProps?f=function(v,p){typeof p!="string"&&typeof p!="number"&&(p=String(p));var _=g(v,p);if(p==="__proto__"||p==="prototype"||p==="constructor"&&typeof _=="function")throw new Error("For security reasons, object's magic properties cannot be set");return _}:f=function(v,p){return g(v,p)};function b(v,p,_,S){if(typeof p=="number"&&(p=[p]),!p||p.length===0)return v;if(typeof p=="string")return b(v,p.split(".").map(c),_,S);var w=p[0],E=f(v,w);return p.length===1?((E===void 0||!S)&&(v[w]=_),E):(E===void 0&&(typeof p[1]=="number"?v[w]=[]:v[w]={}),b(v[w],p.slice(1),_,S))}return h.has=function(v,p){if(typeof p=="number"?p=[p]:typeof p=="string"&&(p=p.split(".")),!p||p.length===0)return!!v;for(var _=0;_<p.length;_++){var S=c(p[_]);if(typeof S=="number"&&l(v)&&S<v.length||(m.includeInheritedProps?S in Object(v):r(v,S)))v=v[S];else return!1}return!0},h.ensureExists=function(v,p,_){return b(v,p,_,!0)},h.set=function(v,p,_,S){return b(v,p,_,S)},h.insert=function(v,p,_,S){var w=h.get(v,p);S=~~S,l(w)||(w=[],h.set(v,p,w)),w.splice(S,0,_)},h.empty=function(v,p){if(!n(p)&&v!=null){var _,S;if(_=h.get(v,p)){if(typeof _=="string")return h.set(v,p,"");if(s(_))return h.set(v,p,!1);if(typeof _=="number")return h.set(v,p,0);if(l(_))_.length=0;else if(a(_))for(S in _)y(_,S)&&delete _[S];else return h.set(v,p,null)}}},h.push=function(v,p){var _=h.get(v,p);l(_)||(_=[],h.set(v,p,_)),_.push.apply(_,Array.prototype.slice.call(arguments,2))},h.coalesce=function(v,p,_){for(var S,w=0,E=p.length;w<E;w++)if((S=h.get(v,p[w]))!==void 0)return S;return _},h.get=function(v,p,_){if(typeof p=="number"&&(p=[p]),!p||p.length===0)return v;if(v==null)return _;if(typeof p=="string")return h.get(v,p.split("."),_);var S=c(p[0]),w=f(v,S);return w===void 0?_:p.length===1?w:h.get(v[S],p.slice(1),_)},h.del=function(p,_){if(typeof _=="number"&&(_=[_]),p==null||n(_))return p;if(typeof _=="string")return h.del(p,_.split("."));var S=c(_[0]);if(f(p,S),!y(p,S))return p;if(_.length===1)l(p)?p.splice(S,1):delete p[S];else return h.del(p[S],_.slice(1));return p},h}var d=u();return d.create=u,d.withInheritedProps=u({includeInheritedProps:!0}),d})})(ja)),ja.exports}var kP=RP();const IP=Ut(kP);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 jP(e){const{form:{schema:{type:t},action:r,title:n,required:i,multiple:a,disabled:l,options:s,key:c},model:u,setDefault:d}=e,{value:m,valid:h,error:y,onChangeValidate:g}=qt(e);ke.useEffect(()=>{d(c,u,e.form,m)},[]);const[f,b]=ke.useState([]),{url:v,params:p}=r||{},_=p&&p.some(P=>P!=null)?p.map(P=>IP.get(u,P)):[];ke.useEffect(()=>{const P=p?_.length>0?v.format(..._):"":v;P&&w(P)},_);const S=(P,k)=>{let j=null;t!=="array"?a?j=k.map(R=>R.id).join(","):j=k?k.id:"":a?j=k.map(R=>R.id):j=k?[k.id]:[],g(null,j)},w=P=>{if(P.includes("=undefined")||P.includes("=&")||P.endsWith("="))return;const k=new Wv,j={"Content-Type":"application/json"};k.get("csrf")&&Object.assign(j,{"X-CSRF-TOKEN":k.get("csrf")}),fetch(P,{headers:j,credentials:"include"}).then(R=>R.ok?R.json():R.text().then(O=>{throw new Error(O)})).then(R=>{b(R)}).catch(R=>{console.error(R)})},E=s&&s.length>0?s:f;let x;return a?Array.isArray(m)?x=m?E.filter(P=>m.includes(P.id)):[]:x=m?E.filter(P=>(m||"").split(",").includes(P.id)):[]:Array.isArray(m)?x=m.length===1?E.find(P=>P.id===m[0]):null:x=m?E.find(P=>P.id===m):null,F.jsxs("div",{children:[F.jsx(zu,{multiple:a,disabled:l,getOptionLabel:P=>P.label||"",value:x||(a?[]:null),onChange:S,options:E,renderInput:P=>F.jsx(va,{...P,label:i?n+" *":n})}),h?null:F.jsx("div",{style:{color:"red"},children:y})]})}const NP=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 Kv extends ke.Component{mapper={number:jO,text:cn,password:cn,textarea:NO,markdown:AO,textsuggest:KC,select:nT,taxonomy:PP,radios:jT,date:AT,timestamp:MT,checkbox:HT,help:KT,array:Dv,tBoolean:fP,fieldset:zv,tuple:zv,multiselect:aT,dynaselect:jP};constructor(t){super(t),this.builder=this.builder.bind(this)}setDefault=(t,r,n,i)=>{const{onModelChange:a}=this.props,l=lr.selectOrSet(t,r);up(l)&&!up(i)&&a(t,i,n.type,n)};getLocalization=()=>{const{localization:t}=this.props;return{getLocalizedString:t&&t.getLocalizedString?t.getLocalizedString:r=>r,getLocalizedNumber:t&&t.getLocalizedNumber?t.getLocalizedNumber:r=>r,getLocalizedDate:t&&t.getLocalizedDate?t.getLocalizedDate:NP}};builder(t,r,n,i,a,l){const{errors:s,showErrors:c,evalContext:u}=this.props,d=this.mapper[t.type];if(!d||t.condition&&!lr.safeEval(t.condition,{model:r,form:t,...u}))return null;const m=t.key&&t.key.join(".")||n,h=s&&m in s?s[m]:null;return F.jsx(d,{model:r,form:t,onChange:a,setDefault:this.setDefault,mapper:i,builder:l,errorText:h,localization:this.getLocalization(),showErrors:c},m)}render(){const{schema:t,form:r,ignore:n,option:i,model:a,className:l,onModelChange:s,mapper:c}=this.props,u=lr.merge(t,r,n,i);let d=this.mapper;c&&(d=t0(this.mapper,c));const m=u.map((h,y)=>this.builder(h,a,y,d,s,this.builder));return F.jsx("div",{className:l,children:m})}}Kv.defaultProps={localization:void 0,showErrors:!1},Mt.Array=Dv,Mt.SchemaForm=Kv,Mt.useSchemaField=qt,Mt.utils=lr,Object.defineProperty(Mt,Symbol.toStringTag,{value:"Module"})}));
|
|
172
|
+
`)):null)});const KC=e=>{const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e),{key:u,title:d,placeholder:m,readonly:h,titleMap:y}=r;ke.useEffect(()=>{n(u,t,r,a)},[]);const g=y||[],f=(p,_)=>{const S=_&&typeof _=="object"?_.value:_;c(null,S)},b=p=>i(typeof p=="object"&&p!==null?p.name||p.value||"":p||""),v=g.find(p=>typeof p=="object"&&p!==null?p.value===a:p===a)||null;return F.jsx("div",{className:r.htmlClass,children:F.jsx(zu,{options:g,getOptionLabel:b,value:v,onChange:f,disabled:h,fullWidth:!0,renderInput:p=>F.jsx(va,{...p,label:d&&i(d),placeholder:m&&i(m),helperText:(s||r.description)&&i(s||r.description),error:!l,required:r.required,style:r.style||{width:"100%"},...r.otherProps}),...r.otherProps})})},_v=Le("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),wv=Le("MuiListItemIcon",["root","alignItemsFlexStart"]);function GC(e){return Fe("MuiTypography",e)}Le("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const YC={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},JC=xE(),XC=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:l}=e,s={root:["root",a,e.align!=="inherit"&&`align${pe(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Be(s,GC,l)},ZC=me("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${pe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(ze(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${pe(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Sv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Pa=j.forwardRef(function(t,r){const{color:n,...i}=We({props:t,name:"MuiTypography"}),a=!YC[n],l=JC({...i,...a&&{color:n}}),{align:s="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:m=!1,paragraph:h=!1,variant:y="body1",variantMapping:g=Sv,...f}=l,b={...l,align:s,color:n,className:c,component:u,gutterBottom:d,noWrap:m,paragraph:h,variant:y,variantMapping:g},v=u||(h?"p":g[y]||Sv[y])||"span",p=XC(b);return F.jsx(ZC,{as:v,ref:r,className:xe(p.root,c),...f,ownerState:b,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...f.style}})});process.env.NODE_ENV!=="production"&&(Pa.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 Ev=Le("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function QC(e){return Fe("MuiMenuItem",e)}const _o=Le("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),eT=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},tT=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:l}=e,c=Be({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},QC,l);return{...l,...c}},rT=me(fn,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:eT})(ze(({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"}},[`&.${_o.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${_o.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${_o.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${_o.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_o.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${_v.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${_v.inset}`]:{marginLeft:52},[`& .${Ev.root}`]:{marginTop:0,marginBottom:0},[`& .${Ev.inset}`]:{paddingLeft:36},[`& .${wv.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,[`& .${wv.root} svg`]:{fontSize:"1.25rem"}}}]}))),$a=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:l=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:m,className:h,...y}=n,g=j.useContext(fa),f=j.useMemo(()=>({dense:l||g.dense||!1,disableGutters:c}),[g.dense,l,c]),b=j.useRef(null);yr(()=>{i&&(b.current?b.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 v={...n,dense:f.dense,divider:s,disableGutters:c},p=tT(n),_=St(b,r);let S;return n.disabled||(S=m!==void 0?m:-1),F.jsx(fa.Provider,{value:f,children:F.jsx(rT,{ref:_,role:d,tabIndex:S,component:a,focusVisibleClassName:xe(p.focusVisible,u),className:xe(p.root,h),...y,ownerState:v,classes:p})})});process.env.NODE_ENV!=="production"&&($a.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 nT(e){const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i},form:{key:a,schema:{isObject:l,enum:s,findFn:c,displayFn:u,noLocalization:d}}}=e,{value:m,valid:h,error:y,onChangeValidate:g}=qt(e);ke.useEffect(()=>{n(a,t,r,m)},[]);const f=p=>{if(l){const _=p.target.value,S=s.find(w=>c?c(w,_):w===_);g(S)}else g(p)},b=p=>u?u(p):d?p.name:i(p.name);let v=[];return l?v=r.schema.enum.map((p,_)=>F.jsx($a,{value:p,children:b(p)},_)):v=r.titleMap.map((p,_)=>F.jsx($a,{value:p.value,children:b(p)},_)),F.jsxs(Tn,{fullWidth:!0,error:!h,...r.otherProps,children:[F.jsx(ua,{required:r.required,...r.labelProps,children:r.title&&i(r.title)}),F.jsx(fo,{value:m||(r&&r.selectProps&&r.selectProps.multiple?[]:""),placeholder:r.placeholder&&i(r.placeholder),disabled:r.readonly,onChange:f,...r.selectProps,children:v}),F.jsx(eo,{...r.helperTextProps,children:(y||r.description)&&i(y||r.description)})]})}const wo="MultiSelect",Sr={root:`${wo}-root`,chips:`${wo}-chips`,chip:`${wo}-chip`,menuItem:`${wo}-menuItem`,selectedMenuItem:`${wo}-selectedMenuItem`},oT=Ui("div")(({theme:e})=>({[`&.${Sr.root}`]:{display:"flex",flexWrap:"wrap"},[`& .${Sr.chips}`]:{display:"flex",flexWrap:"wrap"},[`& .${Sr.chip}`]:{margin:e.spacing(.25)},[`& .${Sr.menuItem}`]:{fontWeight:e.typography.fontWeightRegular},[`& .${Sr.selectedMenuItem}`]:{fontWeight:e.typography.fontWeightMedium}})),iT={PaperProps:{style:{maxHeight:48*4.5+8,width:250}}},aT=e=>{const{form:t,localization:{getLocalizedString:r}}=e,{value:n,onChangeValidate:i}=qt(e),a=n||[],l=u=>{i(u.target.value)},s=lr.getTitleByValue.bind(null,t.titleMap),c=t.titleMap.map(u=>F.jsx($a,{value:u.value,className:a.indexOf(u.value)===-1?Sr.menuItem:Sr.selectedMenuItem,children:u.name&&r(u.name)},u.value));return F.jsx(oT,{className:Sr.root,children:F.jsxs(Tn,{fullWidth:!0,...t.otherProps,children:[F.jsx(ua,{required:t.required,children:t.title&&r(t.title)}),F.jsx(fo,{multiple:!0,value:a,placeholder:t.placeholder&&r(t.placeholder),disabled:t.readonly,onChange:l,MenuProps:iT,renderValue:u=>F.jsx("div",{className:Sr.chips,children:u.map(d=>F.jsx(Fu,{label:s(d)&&r(s(d)),className:Sr.chip},d))}),children:c})]})})};function sT(e){return Fe("MuiFormControlLabel",e)}const So=Le("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),lT=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,l={root:["root",r&&"disabled",`labelPlacement${pe(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return Be(l,sT,t)},cT=me("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${So.label}`]:t.label},t.root,t[`labelPlacement${pe(r.labelPlacement)}`]]}})(ze(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${So.disabled}`]:{cursor:"default"},[`& .${So.label}`]:{[`&.${So.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}}]}))),uT=me("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(ze(({theme:e})=>({[`&.${So.error}`]:{color:(e.vars||e).palette.error.main}}))),Vu=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormControlLabel"}),{checked:i,className:a,componentsProps:l={},control:s,disabled:c,disableTypography:u,inputRef:d,label:m,labelPlacement:h="end",name:y,onChange:g,required:f,slots:b={},slotProps:v={},value:p,..._}=n,S=vr(),w=c??s.props.disabled??S?.disabled,E=f??s.props.required,x={disabled:w,required:E};["checked","name","onChange","value","inputRef"].forEach(U=>{typeof s.props[U]>"u"&&typeof n[U]<"u"&&(x[U]=n[U])});const P=Ur({props:n,muiFormControl:S,states:["error"]}),k={...n,disabled:w,labelPlacement:h,required:E,error:P.error},M=lT(k),R={slots:b,slotProps:{...l,...v}},[O,q]=ut("typography",{elementType:Pa,externalForwardedProps:R,ownerState:k});let N=m;return N!=null&&N.type!==Pa&&!u&&(N=F.jsx(O,{component:"span",...q,className:xe(M.label,q?.className),children:N})),F.jsxs(cT,{className:xe(M.root,a),ownerState:k,ref:r,..._,children:[j.cloneElement(s,x),E?F.jsxs("div",{children:[N,F.jsxs(uT,{ownerState:k,"aria-hidden":!0,className:M.asterisk,children:[" ","*"]})]}):N]})});process.env.NODE_ENV!=="production"&&(Vu.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:zt,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 dT(e){return Fe("MuiFormGroup",e)}Le("MuiFormGroup",["root","row","error"]);const fT=e=>{const{classes:t,row:r,error:n}=e;return Be({root:["root",r&&"row",n&&"error"]},dT,t)},pT=me("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"}}]}),Bu=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1,...l}=n,s=vr(),c=Ur({props:n,muiFormControl:s,states:["error"]}),u={...n,row:a,error:c.error},d=fT(u);return F.jsx(pT,{className:xe(d.root,i),ownerState:u,ref:r,...l})});process.env.NODE_ENV!=="production"&&(Bu.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 hT(e){return Fe("MuiRadioGroup",e)}Le("MuiRadioGroup",["root","row","error"]);const Uu=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Uu.displayName="RadioGroupContext");const mT=e=>{const{classes:t,row:r,error:n}=e;return Be({root:["root",r&&"row",n&&"error"]},hT,t)},Ov=j.forwardRef(function(t,r){const{actions:n,children:i,className:a,defaultValue:l,name:s,onChange:c,value:u,...d}=t,m=j.useRef(null),h=mT(t),[y,g]=on({controlled:u,default:l,name:"RadioGroup"});j.useImperativeHandle(n,()=>({focus:()=>{let p=m.current.querySelector("input:not(:disabled):checked");p||(p=m.current.querySelector("input:not(:disabled)")),p&&p.focus()}}),[]);const f=St(r,m),b=bn(s),v=j.useMemo(()=>({name:b,onChange(p){g(p.target.value),c&&c(p,p.target.value)},value:y}),[b,c,g,y]);return F.jsx(Uu.Provider,{value:v,children:F.jsx(Bu,{role:"radiogroup",ref:f,className:xe(h.root,a),...d,children:i})})});process.env.NODE_ENV!=="production"&&(Ov.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});function yT(){return j.useContext(Uu)}function gT(e){return Fe("PrivateSwitchBase",e)}Le("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const vT=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${pe(i)}`],input:["input"]};return Be(a,gT,t)},bT=me(fn,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),_T=me("input",{name:"MuiSwitchBase",shouldForwardProp:It})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Wu=j.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,defaultChecked:l,disabled:s,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:m,inputProps:h,inputRef:y,name:g,onBlur:f,onChange:b,onFocus:v,readOnly:p,required:_=!1,tabIndex:S,type:w,value:E,slots:x={},slotProps:P={},...k}=t,[M,R]=on({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),O=vr(),q=$=>{v&&v($),O&&O.onFocus&&O.onFocus($)},N=$=>{f&&f($),O&&O.onBlur&&O.onBlur($)},U=$=>{if($.nativeEvent.defaultPrevented||p)return;const D=$.target.checked;R(D),b&&b($,D)};let W=s;O&&typeof W>"u"&&(W=O.disabled);const le=w==="checkbox"||w==="radio",ce={...t,checked:M,disabled:W,disableFocusRipple:c,edge:u},ue=vT(ce),z={slots:x,slotProps:{input:h,...P}},[C,V]=ut("root",{ref:r,elementType:bT,className:ue.root,shouldForwardComponentProp:!0,externalForwardedProps:{...z,component:"span",...k},getSlotProps:$=>({...$,onFocus:D=>{$.onFocus?.(D),q(D)},onBlur:D=>{$.onBlur?.(D),N(D)}}),ownerState:ce,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:W,role:void 0,tabIndex:null}}),[A,T]=ut("input",{ref:y,elementType:_T,className:ue.input,externalForwardedProps:z,getSlotProps:$=>({...$,onChange:D=>{$.onChange?.(D),U(D)}}),ownerState:ce,additionalProps:{autoFocus:n,checked:i,defaultChecked:l,disabled:W,id:le?m:void 0,name:g,readOnly:p,required:_,tabIndex:S,type:w,...w==="checkbox"&&E===void 0?{}:{value:E}}});return F.jsxs(C,{...V,children:[F.jsx(A,{...T}),M?a:d]})});process.env.NODE_ENV!=="production"&&(Wu.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:zt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const wT=Ct(F.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"),ST=Ct(F.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"),ET=me("span",{name:"MuiRadioButtonIcon",shouldForwardProp:It})({position:"relative",display:"flex"}),OT=me(wT,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),xT=me(ST,{name:"MuiRadioButtonIcon"})(ze(({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 Hu(e){const{checked:t=!1,classes:r={},fontSize:n}=e,i={...e,checked:t};return F.jsxs(ET,{className:r.root,ownerState:i,children:[F.jsx(OT,{fontSize:n,className:r.background,ownerState:i}),F.jsx(xT,{fontSize:n,className:r.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(Hu.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});function CT(e){return Fe("MuiRadio",e)}const xv=Le("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),TT=e=>{const{classes:t,color:r,size:n}=e,i={root:["root",`color${pe(r)}`,n!=="medium"&&`size${pe(n)}`]};return{...t,...Be(i,CT,t)}},PT=me(Wu,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${pe(r.size)}`],t[`color${pe(r.color)}`]]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${xv.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${xv.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function $T(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const RT=F.jsx(Hu,{checked:!0}),kT=F.jsx(Hu,{}),Cv=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:a=RT,color:l="primary",icon:s=kT,name:c,onChange:u,size:d="medium",className:m,disabled:h,disableRipple:y=!1,slots:g={},slotProps:f={},inputProps:b,...v}=n,p=vr();let _=h;p&&typeof _>"u"&&(_=p.disabled),_??=!1;const S={...n,disabled:_,disableRipple:y,color:l,size:d},w=TT(S),E=yT();let x=i;const P=cu(u,E&&E.onChange);let k=c;E&&(typeof x>"u"&&(x=$T(E.value,n.value)),typeof k>"u"&&(k=E.name));const M=f.input??b,[R,O]=ut("root",{ref:r,elementType:PT,className:xe(w.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...v},getSlotProps:q=>({...q,onChange:(N,...U)=>{q.onChange?.(N,...U),P(N,...U)}}),ownerState:S,additionalProps:{type:"radio",icon:j.cloneElement(s,{fontSize:s.props.fontSize??d}),checkedIcon:j.cloneElement(a,{fontSize:a.props.fontSize??d}),disabled:_,name:k,checked:x,slots:g,slotProps:{input:typeof M=="function"?M(S):M}}});return F.jsx(R,{...O,classes:w})});process.env.NODE_ENV!=="production"&&(Cv.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:zt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const Tv="Radios",Ra={formControl:`${Tv}-formControl`,group:`${Tv}-group`},IT=Ui(Tn)(({theme:e})=>({[`&.${Ra.formControl}`]:{marginTop:e.spacing(1)},[`& .${Ra.group}`]:{margin:e.spacing(1,0)}})),jT=e=>{const{form:t,localization:{getLocalizedString:r}}=e,{value:n,onChangeValidate:i}=qt(e),a=l=>l.titleMap.map((s,c)=>F.jsx(Vu,{control:F.jsx(Cv,{}),label:s.name&&r(s.name),value:s.value,disabled:l.readonly},c));return F.jsxs(IT,{component:"fieldset",className:Ra.formControl,...t.otherProps,children:[F.jsx(Hr,{component:"legend",required:t.required,children:t.title&&r(t.title)}),F.jsx(Ov,{value:n,name:t.title,onChange:i,className:Ra.group,children:a(t)})]})},NT=e=>{const{localization:{getLocalizedDate:t},form:r,type:n}=e,{value:i,valid:a,error:l,onChangeValidate:s}=qt(e);return F.jsx(cn,{...e,form:{...r,type:n},value:t(i),valid:a,error:l,onChangeValidate:s,otherProps:{InputLabelProps:{shrink:!0}},...r.otherProps})},AT=e=>F.jsx(NT,{type:"date",...e}),MT=e=>{const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e);ke.useEffect(()=>{n(r.key,t,r,a)},[]);const u=m=>{if(!m)return"";try{const h=new Date(m);return isNaN(h.getTime())?m||"":h.toISOString().slice(0,16)}catch{return m||""}},d=m=>{const h=m.target.value;if(h)try{const y=new Date(h).toISOString();c(null,y)}catch{c(m)}else c(m)};return F.jsx(cn,{...e,value:u(a),valid:l,error:s,onChangeValidate:d,form:{...r,title:r.title&&i(r.title),placeholder:r.placeholder&&i(r.placeholder),description:r.description&&i(r.description),type:"datetime-local"},otherProps:{InputLabelProps:{shrink:!0},...r.otherProps}})},DT=Ct(F.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"),qT=Ct(F.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"),LT=Ct(F.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 FT(e){return Fe("MuiCheckbox",e)}const Ku=Le("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),zT=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${pe(n)}`,`size${pe(i)}`]},l=Be(a,FT,t);return{...t,...l}},VT=me(Wu,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${pe(r.size)}`],r.color!=="default"&&t[`color${pe(r.color)}`]]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{[`&.${Ku.checked}, &.${Ku.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ku.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),BT=F.jsx(qT,{}),UT=F.jsx(DT,{}),WT=F.jsx(LT,{}),Pv=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiCheckbox"}),{checkedIcon:i=BT,color:a="primary",icon:l=UT,indeterminate:s=!1,indeterminateIcon:c=WT,inputProps:u,size:d="medium",disableRipple:m=!1,className:h,slots:y={},slotProps:g={},...f}=n,b=s?c:l,v=s?c:i,p={...n,disableRipple:m,color:a,indeterminate:s,size:d},_=zT(p),S=g.input??u,[w,E]=ut("root",{ref:r,elementType:VT,className:xe(_.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...f},ownerState:p,additionalProps:{type:"checkbox",icon:j.cloneElement(b,{fontSize:b.props.fontSize??d}),checkedIcon:j.cloneElement(v,{fontSize:v.props.fontSize??d}),disableRipple:m,slots:y,slotProps:{input:Gy(typeof S=="function"?S(p):S,{"data-indeterminate":s})}}});return F.jsx(w,{...E,classes:_})});process.env.NODE_ENV!=="production"&&(Pv.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function HT(e){const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,onChangeValidate:l}=qt(e),{key:s}=r;return n(s,t,r,a),F.jsx(Bu,{row:!0,children:F.jsx(Vu,{className:r.className,label:r.title&&i(r.title),control:F.jsx(Pv,{name:r.key.slice(-1)[0],value:r.key.slice(-1)[0],checked:a||!1,disabled:r.readonly,onChange:l}),...r.otherProps})})}const KT=e=>{const{form:{description:t,variant:r,align:n,color:i,noWrap:a,paragraph:l,otherProps:s},localization:{getLocalizedString:c}}=e;return F.jsx(Pa,{variant:r,align:n,color:i,noWrap:a,component:l?"p":"div",gutterBottom:!!l,...s,children:c(t)})};function GT(e){return Fe("MuiButton",e)}const pn=Le("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),$v=j.createContext({});process.env.NODE_ENV!=="production"&&($v.displayName="ButtonGroupContext");const Rv=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Rv.displayName="ButtonGroupButtonContext");const YT=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,loading:l,loadingPosition:s,classes:c}=e,u={root:["root",l&&"loading",a,`${a}${pe(t)}`,`size${pe(i)}`,`${a}Size${pe(i)}`,`color${pe(t)}`,r&&"disableElevation",n&&"fullWidth",l&&`loadingPosition${pe(s)}`],startIcon:["icon","startIcon",`iconSize${pe(i)}`],endIcon:["icon","endIcon",`iconSize${pe(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Be(u,GT,c);return{...c,...d}},kv=[{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}}}],JT=me(fn,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${pe(r.color)}`],t[`size${pe(r.size)}`],t[`${r.variant}Size${pe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(ze(({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"},[`&.${pn.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]},[`&.${pn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${pn.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)",[`&.${pn.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.alpha((e.vars||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.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${pn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${pn.loading}`]:{color:"transparent"}}}]}})),XT=me("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${pe(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...kv]})),ZT=me("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${pe(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...kv]})),QT=me("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Iv=me("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),jv=j.forwardRef(function(t,r){const n=j.useContext($v),i=j.useContext(Rv),a=Wi(n,t),l=We({props:a,name:"MuiButton"}),{children:s,color:c="primary",component:u="button",className:d,disabled:m=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:b=!1,id:v,loading:p=null,loadingIndicator:_,loadingPosition:S="center",size:w="medium",startIcon:E,type:x,variant:P="text",...k}=l,M=bn(v),R=_??F.jsx(Lu,{"aria-labelledby":M,color:"inherit",size:16}),O={...l,color:c,component:u,disabled:m,disableElevation:h,disableFocusRipple:y,fullWidth:b,loading:p,loadingIndicator:R,loadingPosition:S,size:w,type:x,variant:P},q=YT(O),N=(E||p&&S==="start")&&F.jsx(XT,{className:q.startIcon,ownerState:O,children:E||F.jsx(Iv,{className:q.loadingIconPlaceholder,ownerState:O})}),U=(g||p&&S==="end")&&F.jsx(ZT,{className:q.endIcon,ownerState:O,children:g||F.jsx(Iv,{className:q.loadingIconPlaceholder,ownerState:O})}),W=i||"",le=typeof p=="boolean"?F.jsx("span",{className:q.loadingWrapper,style:{display:"contents"},children:p&&F.jsx(QT,{className:q.loadingIndicator,ownerState:O,children:R})}):null;return F.jsxs(JT,{ownerState:O,className:xe(n.className,q.root,d,W),component:u,disabled:m||p,focusRipple:!y,focusVisibleClassName:xe(q.focusVisible,f),ref:r,type:x,id:p?M:v,...k,classes:q,children:[N,S!=="end"&&le,s,S==="end"&&le,U]})});process.env.NODE_ENV!=="production"&&(jv.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function eP(e){return Fe("MuiCard",e)}Le("MuiCard",["root"]);const tP=e=>{const{classes:t}=e;return Be({root:["root"]},eP,t)},rP=me(lo,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Nv=j.forwardRef(function(t,r){const n=We({props:t,name:"MuiCard"}),{className:i,raised:a=!1,...l}=n,s={...n,raised:a},c=tP(s);return F.jsx(rP,{className:xe(c.root,i),elevation:a?8:void 0,ref:r,ownerState:s,...l})});process.env.NODE_ENV!=="production"&&(Nv.propTypes={children:o.node,classes:o.object,className:o.string,raised:cr(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])});const nP=Ct(F.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"),Eo="ArrayComponent",Er={arrayItem:`${Eo}-arrayItem`,deleteItemButton:`${Eo}-deleteItemButton`,addButton:`${Eo}-addButton`,elementsContainer:`${Eo}-elementsContainer`,title:`${Eo}-title`},oP=Ui("div")(({theme:e})=>({[`& .${Er.arrayItem}`]:{position:"relative",padding:e.spacing(),marginTop:e.spacing(),display:"flex"},[`& .${Er.deleteItemButton}`]:{margin:[[e.spacing(-1),e.spacing(-1),"auto","auto"]]},[`& .${Er.addButton}`]:{marginLeft:e.spacing()},[`& .${Er.elementsContainer}`]:{display:"flex",flexWrap:"wrap"},[`& .${Er.title}`]:{margin:"auto 0"}}));let Av=1;const ka=Symbol("_SCHEMAFORM_ITEM_ID"),Mv=e=>{let t=null;return e&&typeof e=="object"&&Array.isArray(e)?t=[...e]:e&&typeof e=="object"&&!e[ka]&&(t={...e}),t?(Object.defineProperty(t,ka,{enumerable:!1,writable:!0}),Av+=1,t[ka]=Av,t):e},iP=e=>t=>{t.key&&(t.key[t.key.indexOf("")]=e)},aP=(e,t)=>{const r=Ao(e);return r.arrayIndex=t,lr.traverseForm(r,iP(t)),r},Dv=e=>{const{form:t,builder:r,model:n,mapper:i,onChange:a,setDefault:l,options:s,localization:{getLocalizedString:c}}=e,{value:u,onChangeValidate:d}=qt(e),m=(u||[]).map(Mv);ke.useEffect(()=>{l(t.key,n,t,u)},[]),ke.useEffect(()=>{t.startEmpty!==!0&&m.length===0&&h()},[]);const h=()=>{let b;if(t&&t.schema&&t.schema.items){const{items:p}=t.schema;p.type&&p.type.indexOf("object")!==-1?(b={},(!s||s.setSchemaDefaults!==!1)&&(b=typeof p.default<"u"?p.default:b,b&&lr.traverseSchema(p,(_,S)=>{typeof _.default<"u"&&lr.selectOrSet(S,b,_.default)}))):(p.type&&p.type.indexOf("array")!==-1&&(b=[]),(!s||s.setSchemaDefaults!==!1)&&(b=p.default||b))}const v=[...m];Mv(b),v.push(b),d(null,v)},y=b=>()=>{const v=[...m];v.splice(b,1),d(null,v)},g=()=>{const b=t.AddButton||(v=>F.jsx(jv,{className:Er.addButton,variant:"contained",color:"primary",...v}));return F.jsx(b,{onClick:h,children:t.add||"Add"})},f=[];for(let b=0;b<m.length;b+=1){const v=m[b],p=t.items.map((_,S)=>{const w=aP(_,b);return r(w,n,S,i,a,r,{arrayIndex:b})});f.push(F.jsxs(Nv,{className:Er.arrayItem,children:[F.jsx("div",{className:Er.elementsContainer,children:p}),F.jsx(Ta,{onClick:y(b),className:Er.deleteItemButton,size:"large",children:F.jsx(nP,{fontSize:"small"})})]},v&&v[ka]||b))}return F.jsxs(oP,{children:[F.jsxs("div",{style:{display:"flex"},children:[F.jsx(Hr,{required:t.required,className:Er.title,children:t.title&&c(t.title)}),g()]}),F.jsx("div",{children:f})]})};var Gu={exports:{}};var qv;function sP(){return qv||(qv=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})()})(Gu)),Gu.exports}var lP=sP();const cP=Ut(lP),Lv="FieldSet",Fv={root:`${Lv}-root`,fields:`${Lv}-fields`},uP=Ui(Tn)(({theme:e})=>({[`&.${Fv.root}`]:{marginTop:e.spacing(1)},[`& .${Fv.fields}`]:{marginLeft:e.spacing(1)}})),zv=({form:e,mapper:t,builder:r,model:n,onChange:i,classes:a,localization:{getLocalizedString:l}})=>{const s=e.items.map((u,d)=>r(u,n,d,t,i,r)),c=cP(a.root,e.htmlClass);return F.jsxs(uP,{component:"fieldset",className:c,style:e.style,...e.otherProps,children:[F.jsx(Hr,{component:"legend",required:e.required,children:e.title&&l(e.title)}),F.jsx("div",{className:a.fields,children:s})]})},dP={padding:"20px"},fP=e=>{const{form:{title:t,yesLabel:r,noLabel:n,clearButtonLabel:i,required:a,key:l},model:s,setDefault:c,localization:{getLocalizedString:u}}=e,{value:d,onChangeValidate:m}=qt(e);ke.useEffect(()=>{c(l,s,e.form,d)},[]);const h=d==="yes",y=d==="no";return F.jsx(Jr.Card,{children:F.jsxs("div",{style:dP,children:[F.jsx(Hr,{required:a,children:t&&u(t)}),F.jsx("br",{}),F.jsxs(Jr.FormGroup,{children:[F.jsx(Jr.FormControlLabel,{control:F.jsx(Jr.Checkbox,{onClick:g=>{m(g,"yes")},checked:h}),label:r?u(r):"Yes"}),F.jsx(Jr.FormControlLabel,{control:F.jsx(Jr.Checkbox,{onClick:g=>{m(g,"no")},checked:y}),label:n?u(n):"No"})]}),d==="yes"||d==="no"?F.jsx(Jr.Button,{id:"temp",variant:"text",color:"primary",onClick:g=>m(g,"unanswered"),children:i?u(i):"clear response"}):""]})})};var Yu={exports:{}};var Vv;function pP(){return Vv||(Vv=1,(function(e,t){(function(r,n){e.exports=n(ke)})(self,(r=>(()=>{var n={4184:(s,c)=>{var u;(function(){var d={}.hasOwnProperty;function m(){for(var h=[],y=0;y<arguments.length;y++){var g=arguments[y];if(g){var f=typeof g;if(f==="string"||f==="number")h.push(g);else if(Array.isArray(g)){if(g.length){var b=m.apply(null,g);b&&h.push(b)}}else if(f==="object")if(g.toString===Object.prototype.toString)for(var v in g)d.call(g,v)&&g[v]&&h.push(v);else h.push(g.toString())}}return h.join(" ")}s.exports?(m.default=m,s.exports=m):(u=(function(){return m}).apply(c,[]))===void 0||(s.exports=u)})()},8552:(s,c,u)=>{var d=u(852)(u(5639),"DataView");s.exports=d},1989:(s,c,u)=>{var d=u(1789),m=u(401),h=u(7667),y=u(1327),g=u(1866);function f(b){var v=-1,p=b==null?0:b.length;for(this.clear();++v<p;){var _=b[v];this.set(_[0],_[1])}}f.prototype.clear=d,f.prototype.delete=m,f.prototype.get=h,f.prototype.has=y,f.prototype.set=g,s.exports=f},8407:(s,c,u)=>{var d=u(7040),m=u(4125),h=u(2117),y=u(7518),g=u(4705);function f(b){var v=-1,p=b==null?0:b.length;for(this.clear();++v<p;){var _=b[v];this.set(_[0],_[1])}}f.prototype.clear=d,f.prototype.delete=m,f.prototype.get=h,f.prototype.has=y,f.prototype.set=g,s.exports=f},7071:(s,c,u)=>{var d=u(852)(u(5639),"Map");s.exports=d},3369:(s,c,u)=>{var d=u(4785),m=u(1285),h=u(6e3),y=u(9916),g=u(5265);function f(b){var v=-1,p=b==null?0:b.length;for(this.clear();++v<p;){var _=b[v];this.set(_[0],_[1])}}f.prototype.clear=d,f.prototype.delete=m,f.prototype.get=h,f.prototype.has=y,f.prototype.set=g,s.exports=f},3818:(s,c,u)=>{var d=u(852)(u(5639),"Promise");s.exports=d},8525:(s,c,u)=>{var d=u(852)(u(5639),"Set");s.exports=d},8668:(s,c,u)=>{var d=u(3369),m=u(619),h=u(2385);function y(g){var f=-1,b=g==null?0:g.length;for(this.__data__=new d;++f<b;)this.add(g[f])}y.prototype.add=y.prototype.push=m,y.prototype.has=h,s.exports=y},6384:(s,c,u)=>{var d=u(8407),m=u(7465),h=u(3779),y=u(7599),g=u(4758),f=u(4309);function b(v){var p=this.__data__=new d(v);this.size=p.size}b.prototype.clear=m,b.prototype.delete=h,b.prototype.get=y,b.prototype.has=g,b.prototype.set=f,s.exports=b},2705:(s,c,u)=>{var d=u(5639).Symbol;s.exports=d},1149:(s,c,u)=>{var d=u(5639).Uint8Array;s.exports=d},577:(s,c,u)=>{var d=u(852)(u(5639),"WeakMap");s.exports=d},4963:s=>{s.exports=function(c,u){for(var d=-1,m=c==null?0:c.length,h=0,y=[];++d<m;){var g=c[d];u(g,d,c)&&(y[h++]=g)}return y}},4636:(s,c,u)=>{var d=u(2545),m=u(5694),h=u(1469),y=u(4144),g=u(5776),f=u(6719),b=Object.prototype.hasOwnProperty;s.exports=function(v,p){var _=h(v),S=!_&&m(v),w=!_&&!S&&y(v),E=!_&&!S&&!w&&f(v),x=_||S||w||E,P=x?d(v.length,String):[],k=P.length;for(var M in v)!p&&!b.call(v,M)||x&&(M=="length"||w&&(M=="offset"||M=="parent")||E&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||g(M,k))||P.push(M);return P}},2488:s=>{s.exports=function(c,u){for(var d=-1,m=u.length,h=c.length;++d<m;)c[h+d]=u[d];return c}},2908:s=>{s.exports=function(c,u){for(var d=-1,m=c==null?0:c.length;++d<m;)if(u(c[d],d,c))return!0;return!1}},8470:(s,c,u)=>{var d=u(7813);s.exports=function(m,h){for(var y=m.length;y--;)if(d(m[y][0],h))return y;return-1}},8866:(s,c,u)=>{var d=u(2488),m=u(1469);s.exports=function(h,y,g){var f=y(h);return m(h)?f:d(f,g(h))}},4239:(s,c,u)=>{var d=u(2705),m=u(9607),h=u(2333),y=d?d.toStringTag:void 0;s.exports=function(g){return g==null?g===void 0?"[object Undefined]":"[object Null]":y&&y in Object(g)?m(g):h(g)}},9454:(s,c,u)=>{var d=u(4239),m=u(7005);s.exports=function(h){return m(h)&&d(h)=="[object Arguments]"}},939:(s,c,u)=>{var d=u(2492),m=u(7005);s.exports=function h(y,g,f,b,v){return y===g||(y==null||g==null||!m(y)&&!m(g)?y!=y&&g!=g:d(y,g,f,b,h,v))}},2492:(s,c,u)=>{var d=u(6384),m=u(7114),h=u(8351),y=u(6096),g=u(4160),f=u(1469),b=u(4144),v=u(6719),p="[object Arguments]",_="[object Array]",S="[object Object]",w=Object.prototype.hasOwnProperty;s.exports=function(E,x,P,k,M,R){var O=f(E),q=f(x),N=O?_:g(E),U=q?_:g(x),W=(N=N==p?S:N)==S,le=(U=U==p?S:U)==S,ce=N==U;if(ce&&b(E)){if(!b(x))return!1;O=!0,W=!1}if(ce&&!W)return R||(R=new d),O||v(E)?m(E,x,P,k,M,R):h(E,x,N,P,k,M,R);if(!(1&P)){var ue=W&&w.call(E,"__wrapped__"),z=le&&w.call(x,"__wrapped__");if(ue||z){var C=ue?E.value():E,V=z?x.value():x;return R||(R=new d),M(C,V,P,k,R)}}return!!ce&&(R||(R=new d),y(E,x,P,k,M,R))}},8458:(s,c,u)=>{var d=u(3560),m=u(5346),h=u(3218),y=u(346),g=/^\[object .+?Constructor\]$/,f=Function.prototype,b=Object.prototype,v=f.toString,p=b.hasOwnProperty,_=RegExp("^"+v.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");s.exports=function(S){return!(!h(S)||m(S))&&(d(S)?_:g).test(y(S))}},8749:(s,c,u)=>{var d=u(4239),m=u(1780),h=u(7005),y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y["[object Arguments]"]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y["[object Function]"]=y["[object Map]"]=y["[object Number]"]=y["[object Object]"]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1,s.exports=function(g){return h(g)&&m(g.length)&&!!y[d(g)]}},280:(s,c,u)=>{var d=u(5726),m=u(6916),h=Object.prototype.hasOwnProperty;s.exports=function(y){if(!d(y))return m(y);var g=[];for(var f in Object(y))h.call(y,f)&&f!="constructor"&&g.push(f);return g}},2545:s=>{s.exports=function(c,u){for(var d=-1,m=Array(c);++d<c;)m[d]=u(d);return m}},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 d=u(5639)["__core-js_shared__"];s.exports=d},7114:(s,c,u)=>{var d=u(8668),m=u(2908),h=u(4757);s.exports=function(y,g,f,b,v,p){var _=1&f,S=y.length,w=g.length;if(S!=w&&!(_&&w>S))return!1;var E=p.get(y),x=p.get(g);if(E&&x)return E==g&&x==y;var P=-1,k=!0,M=2&f?new d:void 0;for(p.set(y,g),p.set(g,y);++P<S;){var R=y[P],O=g[P];if(b)var q=_?b(O,R,P,g,y,p):b(R,O,P,y,g,p);if(q!==void 0){if(q)continue;k=!1;break}if(M){if(!m(g,(function(N,U){if(!h(M,U)&&(R===N||v(R,N,f,b,p)))return M.push(U)}))){k=!1;break}}else if(R!==O&&!v(R,O,f,b,p)){k=!1;break}}return p.delete(y),p.delete(g),k}},8351:(s,c,u)=>{var d=u(2705),m=u(1149),h=u(7813),y=u(7114),g=u(8776),f=u(1814),b=d?d.prototype:void 0,v=b?b.valueOf:void 0;s.exports=function(p,_,S,w,E,x,P){switch(S){case"[object DataView]":if(p.byteLength!=_.byteLength||p.byteOffset!=_.byteOffset)return!1;p=p.buffer,_=_.buffer;case"[object ArrayBuffer]":return!(p.byteLength!=_.byteLength||!x(new m(p),new m(_)));case"[object Boolean]":case"[object Date]":case"[object Number]":return h(+p,+_);case"[object Error]":return p.name==_.name&&p.message==_.message;case"[object RegExp]":case"[object String]":return p==_+"";case"[object Map]":var k=g;case"[object Set]":var M=1&w;if(k||(k=f),p.size!=_.size&&!M)return!1;var R=P.get(p);if(R)return R==_;w|=2,P.set(p,_);var O=y(k(p),k(_),w,E,x,P);return P.delete(p),O;case"[object Symbol]":if(v)return v.call(p)==v.call(_)}return!1}},6096:(s,c,u)=>{var d=u(8234),m=Object.prototype.hasOwnProperty;s.exports=function(h,y,g,f,b,v){var p=1&g,_=d(h),S=_.length;if(S!=d(y).length&&!p)return!1;for(var w=S;w--;){var E=_[w];if(!(p?E in y:m.call(y,E)))return!1}var x=v.get(h),P=v.get(y);if(x&&P)return x==y&&P==h;var k=!0;v.set(h,y),v.set(y,h);for(var M=p;++w<S;){var R=h[E=_[w]],O=y[E];if(f)var q=p?f(O,R,E,y,h,v):f(R,O,E,h,y,v);if(!(q===void 0?R===O||b(R,O,g,f,v):q)){k=!1;break}M||(M=E=="constructor")}if(k&&!M){var N=h.constructor,U=y.constructor;N==U||!("constructor"in h)||!("constructor"in y)||typeof N=="function"&&N instanceof N&&typeof U=="function"&&U instanceof U||(k=!1)}return v.delete(h),v.delete(y),k}},1957:(s,c,u)=>{var d=typeof u.g=="object"&&u.g&&u.g.Object===Object&&u.g;s.exports=d},8234:(s,c,u)=>{var d=u(8866),m=u(9551),h=u(3674);s.exports=function(y){return d(y,h,m)}},5050:(s,c,u)=>{var d=u(7019);s.exports=function(m,h){var y=m.__data__;return d(h)?y[typeof h=="string"?"string":"hash"]:y.map}},852:(s,c,u)=>{var d=u(8458),m=u(7801);s.exports=function(h,y){var g=m(h,y);return d(g)?g:void 0}},9607:(s,c,u)=>{var d=u(2705),m=Object.prototype,h=m.hasOwnProperty,y=m.toString,g=d?d.toStringTag:void 0;s.exports=function(f){var b=h.call(f,g),v=f[g];try{f[g]=void 0;var p=!0}catch{}var _=y.call(f);return p&&(b?f[g]=v:delete f[g]),_}},9551:(s,c,u)=>{var d=u(4963),m=u(479),h=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols,g=y?function(f){return f==null?[]:(f=Object(f),d(y(f),(function(b){return h.call(f,b)})))}:m;s.exports=g},4160:(s,c,u)=>{var d=u(8552),m=u(7071),h=u(3818),y=u(8525),g=u(577),f=u(4239),b=u(346),v="[object Map]",p="[object Promise]",_="[object Set]",S="[object WeakMap]",w="[object DataView]",E=b(d),x=b(m),P=b(h),k=b(y),M=b(g),R=f;(d&&R(new d(new ArrayBuffer(1)))!=w||m&&R(new m)!=v||h&&R(h.resolve())!=p||y&&R(new y)!=_||g&&R(new g)!=S)&&(R=function(O){var q=f(O),N=q=="[object Object]"?O.constructor:void 0,U=N?b(N):"";if(U)switch(U){case E:return w;case x:return v;case P:return p;case k:return _;case M:return S}return q}),s.exports=R},7801:s=>{s.exports=function(c,u){return c?.[u]}},1789:(s,c,u)=>{var d=u(4536);s.exports=function(){this.__data__=d?d(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 d=u(4536),m=Object.prototype.hasOwnProperty;s.exports=function(h){var y=this.__data__;if(d){var g=y[h];return g==="__lodash_hash_undefined__"?void 0:g}return m.call(y,h)?y[h]:void 0}},1327:(s,c,u)=>{var d=u(4536),m=Object.prototype.hasOwnProperty;s.exports=function(h){var y=this.__data__;return d?y[h]!==void 0:m.call(y,h)}},1866:(s,c,u)=>{var d=u(4536);s.exports=function(m,h){var y=this.__data__;return this.size+=this.has(m)?0:1,y[m]=d&&h===void 0?"__lodash_hash_undefined__":h,this}},5776:s=>{var c=/^(?:0|[1-9]\d*)$/;s.exports=function(u,d){var m=typeof u;return!!(d=d??9007199254740991)&&(m=="number"||m!="symbol"&&c.test(u))&&u>-1&&u%1==0&&u<d}},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 d,m=u(4429),h=(d=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"";s.exports=function(y){return!!h&&h in y}},5726:s=>{var c=Object.prototype;s.exports=function(u){var d=u&&u.constructor;return u===(typeof d=="function"&&d.prototype||c)}},7040:s=>{s.exports=function(){this.__data__=[],this.size=0}},4125:(s,c,u)=>{var d=u(8470),m=Array.prototype.splice;s.exports=function(h){var y=this.__data__,g=d(y,h);return!(g<0||(g==y.length-1?y.pop():m.call(y,g,1),--this.size,0))}},2117:(s,c,u)=>{var d=u(8470);s.exports=function(m){var h=this.__data__,y=d(h,m);return y<0?void 0:h[y][1]}},7518:(s,c,u)=>{var d=u(8470);s.exports=function(m){return d(this.__data__,m)>-1}},4705:(s,c,u)=>{var d=u(8470);s.exports=function(m,h){var y=this.__data__,g=d(y,m);return g<0?(++this.size,y.push([m,h])):y[g][1]=h,this}},4785:(s,c,u)=>{var d=u(1989),m=u(8407),h=u(7071);s.exports=function(){this.size=0,this.__data__={hash:new d,map:new(h||m),string:new d}}},1285:(s,c,u)=>{var d=u(5050);s.exports=function(m){var h=d(this,m).delete(m);return this.size-=h?1:0,h}},6e3:(s,c,u)=>{var d=u(5050);s.exports=function(m){return d(this,m).get(m)}},9916:(s,c,u)=>{var d=u(5050);s.exports=function(m){return d(this,m).has(m)}},5265:(s,c,u)=>{var d=u(5050);s.exports=function(m,h){var y=d(this,m),g=y.size;return y.set(m,h),this.size+=y.size==g?0:1,this}},8776:s=>{s.exports=function(c){var u=-1,d=Array(c.size);return c.forEach((function(m,h){d[++u]=[h,m]})),d}},4536:(s,c,u)=>{var d=u(852)(Object,"create");s.exports=d},6916:(s,c,u)=>{var d=u(5569)(Object.keys,Object);s.exports=d},1167:(s,c,u)=>{s=u.nmd(s);var d=u(1957),m=c&&!c.nodeType&&c,h=m&&s&&!s.nodeType&&s,y=h&&h.exports===m&&d.process,g=(function(){try{return h&&h.require&&h.require("util").types||y&&y.binding&&y.binding("util")}catch{}})();s.exports=g},2333:s=>{var c=Object.prototype.toString;s.exports=function(u){return c.call(u)}},5569:s=>{s.exports=function(c,u){return function(d){return c(u(d))}}},5639:(s,c,u)=>{var d=u(1957),m=typeof self=="object"&&self&&self.Object===Object&&self,h=d||m||Function("return this")();s.exports=h},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,d=Array(c.size);return c.forEach((function(m){d[++u]=m})),d}},7465:(s,c,u)=>{var d=u(8407);s.exports=function(){this.__data__=new d,this.size=0}},3779:s=>{s.exports=function(c){var u=this.__data__,d=u.delete(c);return this.size=u.size,d}},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 d=u(8407),m=u(7071),h=u(3369);s.exports=function(y,g){var f=this.__data__;if(f instanceof d){var b=f.__data__;if(!m||b.length<199)return b.push([y,g]),this.size=++f.size,this;f=this.__data__=new h(b)}return f.set(y,g),this.size=f.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 d=u(9454),m=u(7005),h=Object.prototype,y=h.hasOwnProperty,g=h.propertyIsEnumerable,f=d((function(){return arguments})())?d:function(b){return m(b)&&y.call(b,"callee")&&!g.call(b,"callee")};s.exports=f},1469:s=>{var c=Array.isArray;s.exports=c},8612:(s,c,u)=>{var d=u(3560),m=u(1780);s.exports=function(h){return h!=null&&m(h.length)&&!d(h)}},4144:(s,c,u)=>{s=u.nmd(s);var d=u(5639),m=u(5062),h=c&&!c.nodeType&&c,y=h&&s&&!s.nodeType&&s,g=y&&y.exports===h?d.Buffer:void 0,f=(g?g.isBuffer:void 0)||m;s.exports=f},8446:(s,c,u)=>{var d=u(939);s.exports=function(m,h){return d(m,h)}},3560:(s,c,u)=>{var d=u(4239),m=u(3218);s.exports=function(h){if(!m(h))return!1;var y=d(h);return y=="[object Function]"||y=="[object GeneratorFunction]"||y=="[object AsyncFunction]"||y=="[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 d=u(8749),m=u(1717),h=u(1167),y=h&&h.isTypedArray,g=y?m(y):d;s.exports=g},3674:(s,c,u)=>{var d=u(4636),m=u(280),h=u(8612);s.exports=function(y){return h(y)?d(y):m(y)}},8306:(s,c,u)=>{var d=u(3369);function m(h,y){if(typeof h!="function"||y!=null&&typeof y!="function")throw new TypeError("Expected a function");var g=function(){var f=arguments,b=y?y.apply(this,f):f[0],v=g.cache;if(v.has(b))return v.get(b);var p=h.apply(this,f);return g.cache=v.set(b,p)||v,p};return g.cache=new(m.Cache||d),g}m.Cache=d,s.exports=m},479:s=>{s.exports=function(){return[]}},5062:s=>{s.exports=function(){return!1}},2703:(s,c,u)=>{var d=u(414);function m(){}function h(){}h.resetWarningCache=m,s.exports=function(){function y(b,v,p,_,S,w){if(w!==d){var E=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 E.name="Invariant Violation",E}}function g(){return y}y.isRequired=y;var f={array:y,bigint:y,bool:y,func:y,number:y,object:y,string:y,symbol:y,any:y,arrayOf:g,element:y,elementType:y,instanceOf:g,node:y,objectOf:g,oneOf:g,oneOfType:g,shape:g,exact:g,checkPropTypes:h,resetWarningCache:m};return f.PropTypes=f,f}},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:()=>Mr,expandNodesToLevel:()=>Lt});var s=a(4184),c=a.n(s),u=a(8446),d=a.n(u),m=a(8306),h=a.n(m);let y=(Y=21)=>crypto.getRandomValues(new Uint8Array(Y)).reduce(((B,ee)=>B+((ee&=63)<36?ee.toString(36):ee<62?(ee-26).toString(36).toUpperCase():ee>62?"-":"_")),"");var g=a(5697),f=a.n(g),b=a(9787),v=a.n(b);function p(Y){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},p(Y)}var _=["children","title"];function S(){return S=Object.assign?Object.assign.bind():function(Y){for(var B=1;B<arguments.length;B++){var ee=arguments[B];for(var J in ee)Object.prototype.hasOwnProperty.call(ee,J)&&(Y[J]=ee[J])}return Y},S.apply(this,arguments)}function w(Y,B){if(!(Y instanceof B))throw new TypeError("Cannot call a class as a function")}function E(Y,B){for(var ee=0;ee<B.length;ee++){var J=B[ee];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function x(Y,B){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,J){return ee.__proto__=J,ee},x(Y,B)}function P(Y,B){if(B&&(p(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(ee){if(ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee})(Y)}function k(Y){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},k(Y)}function M(Y,B,ee){return B in Y?Object.defineProperty(Y,B,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Y[B]=ee,Y}var R=(function(Y){(function(se,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(H&&H.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),H&&x(se,H)})(je,Y);var B,ee,J,Se,Re=(J=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 se,H=k(J);if(Se){var Z=k(this).constructor;se=Reflect.construct(H,arguments,Z)}else se=H.apply(this,arguments);return P(this,se)});function je(){return w(this,je),Re.apply(this,arguments)}return B=je,(ee=[{key:"render",value:function(){var se=this.props,H=se.children,Z=se.title,de=(function(_e,Ne){if(_e==null)return{};var yt,gt,Ke=(function(jt,hn){if(jt==null)return{};var ir,fr,ae={},Q=Object.keys(jt);for(fr=0;fr<Q.length;fr++)ir=Q[fr],hn.indexOf(ir)>=0||(ae[ir]=jt[ir]);return ae})(_e,Ne);if(Object.getOwnPropertySymbols){var ct=Object.getOwnPropertySymbols(_e);for(gt=0;gt<ct.length;gt++)yt=ct[gt],Ne.indexOf(yt)>=0||Object.prototype.propertyIsEnumerable.call(_e,yt)&&(Ke[yt]=_e[yt])}return Ke})(se,_);return v().createElement("button",S({"aria-label":Z,title:Z,type:"button"},de),H)}}])&&E(B.prototype,ee),Object.defineProperty(B,"prototype",{writable:!1}),je})(v().PureComponent);M(R,"propTypes",{children:f().node.isRequired,title:f().string}),M(R,"defaultProps",{title:null});const O=R,q={ALL:"all",PARENT:"parent",LEAF:"leaf"};function N(Y){this.message=Y,this.stack=Error().stack}N.prototype=Object.create(Error.prototype),N.prototype.name="CheckboxTreeError";const U=N;function W(Y,B){var ee=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),ee.push.apply(ee,J)}return ee}function le(Y,B,ee){return B in Y?Object.defineProperty(Y,B,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Y[B]=ee,Y}function ce(Y,B){if(!(Y instanceof B))throw new TypeError("Cannot call a class as a function")}function ue(Y,B){for(var ee=0;ee<B.length;ee++){var J=B[ee];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}var z=q;const C=(function(){function Y(J){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ce(this,Y),this.props=J,this.flatNodes=Se}var B,ee;return B=Y,ee=[{key:"setProps",value:function(J){this.props=J}},{key:"clone",value:function(){var J=this,Se={};return Object.keys(this.flatNodes).forEach((function(Re){var je=J.flatNodes[Re];Se[Re]=(function(se){for(var H=1;H<arguments.length;H++){var Z=arguments[H]!=null?arguments[H]:{};H%2?W(Object(Z),!0).forEach((function(de){le(se,de,Z[de])})):Object.getOwnPropertyDescriptors?Object.defineProperties(se,Object.getOwnPropertyDescriptors(Z)):W(Object(Z)).forEach((function(de){Object.defineProperty(se,de,Object.getOwnPropertyDescriptor(Z,de))}))}return se})({},je)})),new Y(this.props,Se)}},{key:"getNode",value:function(J){return this.flatNodes[J]}},{key:"reset",value:function(){this.flatNodes={}}},{key:"flattenNodes",value:function(J){var Se=this,Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Array.isArray(J)&&J.length!==0){var se=this.props,H=se.disabled,Z=se.noCascade;J.forEach((function(de,_e){var Ne=Se.nodeHasChildren(de);if(Se.flatNodes[de.value]!==void 0)throw new U("Duplicate value '".concat(de.value,"' detected. All node values must be unique."));Se.flatNodes[de.value]={label:de.label,value:de.value,children:de.children,parent:Re,isChild:Re.value!==void 0,isParent:Ne,isLeaf:!Ne,showCheckbox:de.showCheckbox===void 0||de.showCheckbox,disabled:Se.getDisabledState(de,Re,H,Z),treeDepth:je,index:_e},Se.flattenNodes(de.children,de,je+1)}))}}},{key:"nodeHasChildren",value:function(J){return Array.isArray(J.children)}},{key:"getDisabledState",value:function(J,Se,Re,je){return!!Re||!(je||!Se.disabled)||!!J.disabled}},{key:"deserializeLists",value:function(J){var Se=this,Re=["checked","expanded"];Object.keys(this.flatNodes).forEach((function(je){Re.forEach((function(se){Se.flatNodes[je][se]=!1}))})),Re.forEach((function(je){J[je].forEach((function(se){Se.flatNodes[se]!==void 0&&(Se.flatNodes[se][je]=!0)}))}))}},{key:"serializeList",value:function(J){var Se=this,Re=[];return Object.keys(this.flatNodes).forEach((function(je){Se.flatNodes[je][J]&&Re.push(je)})),Re}},{key:"expandAllNodes",value:function(J){var Se=this;return Object.keys(this.flatNodes).forEach((function(Re){Se.flatNodes[Re].isParent&&(Se.flatNodes[Re].expanded=J)})),this}},{key:"toggleChecked",value:function(J,Se,Re,je){var se=this,H=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],Z=this.flatNodes[J.value],de=[z.PARENT,z.ALL].indexOf(Re)>-1,_e=[z.LEAF,z.ALL].indexOf(Re)>-1;if(Z.isLeaf||je){if(J.disabled)return this;this.toggleNode(J.value,"checked",Se)}else(de||Z.children.length===0)&&this.toggleNode(J.value,"checked",Se),_e&&Z.children.forEach((function(Ne){se.toggleChecked(Ne,Se,Re,je,!1)}));return H&&!je&&Z.isChild&&de&&this.toggleParentStatus(Z.parent,Re),this}},{key:"toggleParentStatus",value:function(J,Se){var Re=this.flatNodes[J.value];Re.isChild?(Se===z.ALL&&this.toggleNode(J.value,"checked",this.isEveryChildChecked(Re)),this.toggleParentStatus(Re.parent,Se)):this.toggleNode(J.value,"checked",this.isEveryChildChecked(Re))}},{key:"isEveryChildChecked",value:function(J){var Se=this;return J.children.every((function(Re){return Se.getNode(Re.value).checked}))}},{key:"toggleNode",value:function(J,Se,Re){return this.flatNodes[J][Se]=Re,this}}],ee&&ue(B.prototype,ee),Object.defineProperty(B,"prototype",{writable:!1}),Y})();function V(Y){return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},V(Y)}function A(){return A=Object.assign?Object.assign.bind():function(Y){for(var B=1;B<arguments.length;B++){var ee=arguments[B];for(var J in ee)Object.prototype.hasOwnProperty.call(ee,J)&&(Y[J]=ee[J])}return Y},A.apply(this,arguments)}function T(Y,B){var ee=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),ee.push.apply(ee,J)}return ee}function $(Y,B){if(!(Y instanceof B))throw new TypeError("Cannot call a class as a function")}function D(Y,B){for(var ee=0;ee<B.length;ee++){var J=B[ee];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function K(Y,B){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,J){return ee.__proto__=J,ee},K(Y,B)}function re(Y,B){if(B&&(V(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(ee){if(ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee})(Y)}function ie(Y){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},ie(Y)}function te(Y,B,ee){return B in Y?Object.defineProperty(Y,B,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Y[B]=ee,Y}var L=(function(Y){(function(se,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(H&&H.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),H&&K(se,H)})(je,Y);var B,ee,J,Se,Re=(J=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 se,H=ie(J);if(Se){var Z=ie(this).constructor;se=Reflect.construct(H,arguments,Z)}else se=H.apply(this,arguments);return re(this,se)});function je(){return $(this,je),Re.apply(this,arguments)}return B=je,ee=[{key:"componentDidMount",value:function(){this.updateDeterminateProperty()}},{key:"componentDidUpdate",value:function(){this.updateDeterminateProperty()}},{key:"updateDeterminateProperty",value:function(){var se=this.props.indeterminate;this.checkbox.indeterminate=se}},{key:"render",value:function(){var se=this,H=(function(Z){for(var de=1;de<arguments.length;de++){var _e=arguments[de]!=null?arguments[de]:{};de%2?T(Object(_e),!0).forEach((function(Ne){te(Z,Ne,_e[Ne])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(_e)):T(Object(_e)).forEach((function(Ne){Object.defineProperty(Z,Ne,Object.getOwnPropertyDescriptor(_e,Ne))}))}return Z})({},this.props);return delete H.indeterminate,v().createElement("input",A({},H,{ref:function(Z){se.checkbox=Z},type:"checkbox"}))}}],ee&&D(B.prototype,ee),Object.defineProperty(B,"prototype",{writable:!1}),je})(v().PureComponent);te(L,"propTypes",{indeterminate:f().bool}),te(L,"defaultProps",{indeterminate:!1});const I=L,G=f().shape({check:f().node,uncheck:f().node,halfCheck:f().node,expandClose:f().node,expandOpen:f().node,expandAll:f().node,collapseAll:f().node,parentClose:f().node,parentOpen:f().node,leaf:f().node}),X=f().shape({collapseAll:f().string.isRequired,expandAll:f().string.isRequired,toggle:f().string.isRequired});function ne(Y){return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},ne(Y)}function he(Y,B){for(var ee=0;ee<B.length;ee++){var J=B[ee];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function ve(Y,B){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,J){return ee.__proto__=J,ee},ve(Y,B)}function fe(Y,B){if(B&&(ne(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Te(Y)}function Te(Y){if(Y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}function be(Y){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},be(Y)}function Ee(Y,B,ee){return B in Y?Object.defineProperty(Y,B,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Y[B]=ee,Y}var ge=(function(Y){(function(se,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(H&&H.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),H&&ve(se,H)})(je,Y);var B,ee,J,Se,Re=(J=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 se,H=be(J);if(Se){var Z=be(this).constructor;se=Reflect.construct(H,arguments,Z)}else se=H.apply(this,arguments);return fe(this,se)});function je(se){var H;return(function(Z,de){if(!(Z instanceof de))throw new TypeError("Cannot call a class as a function")})(this,je),(H=Re.call(this,se)).onCheck=H.onCheck.bind(Te(H)),H.onCheckboxKeyPress=H.onCheckboxKeyPress.bind(Te(H)),H.onCheckboxKeyUp=H.onCheckboxKeyUp.bind(Te(H)),H.onClick=H.onClick.bind(Te(H)),H.onExpand=H.onExpand.bind(Te(H)),H}return B=je,(ee=[{key:"onCheck",value:function(){var se=this.props,H=se.value;(0,se.onCheck)({value:H,checked:this.getCheckState({toggle:!0})})}},{key:"onCheckboxKeyPress",value:function(se){se.which===32&&se.preventDefault()}},{key:"onCheckboxKeyUp",value:function(se){var H=se.keyCode;[13,32].includes(H)&&this.onCheck()}},{key:"onClick",value:function(){var se=this.props,H=se.expandOnClick,Z=se.isParent,de=se.value,_e=se.onClick;Z&&H&&this.onExpand(),_e({value:de,checked:this.getCheckState({toggle:!1})})}},{key:"onExpand",value:function(){var se=this.props,H=se.expanded,Z=se.value;(0,se.onExpand)({value:Z,expanded:!H})}},{key:"getCheckState",value:function(se){var H=se.toggle,Z=this.props,de=Z.checked,_e=Z.optimisticToggle;return!(de!==0||!H)||de===1&&!H||de===2&&_e}},{key:"renderCollapseButton",value:function(){var se=this.props,H=se.expandDisabled,Z=se.isLeaf,de=se.lang;return Z?v().createElement("span",{className:"rct-collapse"},v().createElement("span",{className:"rct-icon"})):v().createElement(O,{className:"rct-collapse rct-collapse-btn",disabled:H,title:de.toggle,onClick:this.onExpand},this.renderCollapseIcon())}},{key:"renderCollapseIcon",value:function(){var se=this.props,H=se.expanded,Z=se.icons,de=Z.expandClose,_e=Z.expandOpen;return H?_e:de}},{key:"renderCheckboxIcon",value:function(){var se=this.props,H=se.checked,Z=se.icons,de=Z.uncheck,_e=Z.check,Ne=Z.halfCheck;return H===0?de:H===1?_e:Ne}},{key:"renderNodeIcon",value:function(){var se=this.props,H=se.expanded,Z=se.icon,de=se.icons,_e=de.leaf,Ne=de.parentClose,yt=de.parentOpen,gt=se.isLeaf;return Z!==null?Z:gt?_e:H?yt:Ne}},{key:"renderBareLabel",value:function(se){var H=this.props,Z=H.onClick,de=H.title,_e=Z!==null;return v().createElement("span",{className:"rct-bare-label",title:de},_e?v().createElement("span",{className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"button",tabIndex:0},se):se)}},{key:"renderCheckboxLabel",value:function(se){var H=this.props,Z=H.checked,de=H.disabled,_e=H.title,Ne=H.treeId,yt=H.value,gt=H.onClick!==null,Ke="".concat(Ne,"-").concat(String(yt).split(" ").join("_")),ct=[v().createElement("label",{key:0,htmlFor:Ke,title:_e},v().createElement(I,{checked:Z===1,disabled:de,id:Ke,indeterminate:Z===2,onClick:this.onCheck,onChange:function(){}}),v().createElement("span",{"aria-checked":Z===1,"aria-disabled":de,className:"rct-checkbox",role:"checkbox",tabIndex:0,onKeyPress:this.onCheckboxKeyPress,onKeyUp:this.onCheckboxKeyUp},this.renderCheckboxIcon()),gt?null:se)];return gt&&ct.push(v().createElement("span",{key:1,className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"link",tabIndex:0},se)),ct}},{key:"renderLabel",value:function(){var se=this.props,H=se.label,Z=se.showCheckbox,de=[se.showNodeIcon?v().createElement("span",{key:0,className:"rct-node-icon"},this.renderNodeIcon()):null,v().createElement("span",{key:1,className:"rct-title"},H)];return Z?this.renderCheckboxLabel(de):this.renderBareLabel(de)}},{key:"renderChildren",value:function(){return this.props.expanded?this.props.children:null}},{key:"render",value:function(){var se=this.props,H=se.className,Z=se.disabled,de=se.expanded,_e=se.isLeaf,Ne=c()({"rct-node":!0,"rct-node-leaf":_e,"rct-node-parent":!_e,"rct-node-expanded":!_e&&de,"rct-node-collapsed":!_e&&!de,"rct-disabled":Z},H);return v().createElement("li",{className:Ne},v().createElement("span",{className:"rct-text"},this.renderCollapseButton(),this.renderLabel()),this.renderChildren())}}])&&he(B.prototype,ee),Object.defineProperty(B,"prototype",{writable:!1}),je})(v().PureComponent);Ee(ge,"propTypes",{checked:f().number.isRequired,disabled:f().bool.isRequired,expandDisabled:f().bool.isRequired,expanded:f().bool.isRequired,icons:G.isRequired,isLeaf:f().bool.isRequired,isParent:f().bool.isRequired,label:f().node.isRequired,lang:X.isRequired,optimisticToggle:f().bool.isRequired,showNodeIcon:f().bool.isRequired,treeId:f().string.isRequired,value:f().oneOfType([f().string,f().number]).isRequired,onCheck:f().func.isRequired,onExpand:f().func.isRequired,children:f().node,className:f().string,expandOnClick:f().bool,icon:f().node,showCheckbox:f().bool,title:f().string,onClick:f().func}),Ee(ge,"defaultProps",{children:null,className:null,expandOnClick:!1,icon:null,showCheckbox:!0,title:null,onClick:function(){}});const $e=ge,Ie=f().oneOfType([f().arrayOf(f().string),f().arrayOf(f().number)]);function ot(Y,B){var ee=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),ee.push.apply(ee,J)}return ee}function Qe(Y){for(var B=1;B<arguments.length;B++){var ee=arguments[B]!=null?arguments[B]:{};B%2?ot(Object(ee),!0).forEach((function(J){_t(Y,J,ee[J])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Y,Object.getOwnPropertyDescriptors(ee)):ot(Object(ee)).forEach((function(J){Object.defineProperty(Y,J,Object.getOwnPropertyDescriptor(ee,J))}))}return Y}function _t(Y,B,ee){return B in Y?Object.defineProperty(Y,B,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Y[B]=ee,Y}var et={label:f().node.isRequired,value:f().oneOfType([f().string,f().number]).isRequired,disabled:f().bool,icon:f().node,showCheckbox:f().bool,title:f().string};const Tt=f().oneOfType([f().shape(et),f().shape(Qe(Qe({},et),{},{children:f().arrayOf(et).isRequired}))]);function Je(Y){return Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},Je(Y)}function Oe(Y,B){var ee=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),ee.push.apply(ee,J)}return ee}function He(Y){for(var B=1;B<arguments.length;B++){var ee=arguments[B]!=null?arguments[B]:{};B%2?Oe(Object(ee),!0).forEach((function(J){we(Y,J,ee[J])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Y,Object.getOwnPropertyDescriptors(ee)):Oe(Object(ee)).forEach((function(J){Object.defineProperty(Y,J,Object.getOwnPropertyDescriptor(ee,J))}))}return Y}function dt(Y,B){for(var ee=0;ee<B.length;ee++){var J=B[ee];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function ft(Y,B){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,J){return ee.__proto__=J,ee},ft(Y,B)}function Ar(Y,B){if(B&&(Je(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Et(Y)}function Et(Y){if(Y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}function Ot(Y){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},Ot(Y)}function we(Y,B,ee){return B in Y?Object.defineProperty(Y,B,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Y[B]=ee,Y}var Me=(function(Y){(function(H,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");H.prototype=Object.create(Z&&Z.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),Object.defineProperty(H,"prototype",{writable:!1}),Z&&ft(H,Z)})(se,Y);var B,ee,J,Se,Re,je=(Se=se,Re=(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 H,Z=Ot(Se);if(Re){var de=Ot(this).constructor;H=Reflect.construct(Z,arguments,de)}else H=Z.apply(this,arguments);return Ar(this,H)});function se(H){var Z;(function(_e,Ne){if(!(_e instanceof Ne))throw new TypeError("Cannot call a class as a function")})(this,se),Z=je.call(this,H);var de=new C(H);return de.flattenNodes(H.nodes),de.deserializeLists({checked:H.checked,expanded:H.expanded}),Z.state={id:H.id||"rct-".concat(y()),model:de,prevProps:H},Z.onCheck=Z.onCheck.bind(Et(Z)),Z.onExpand=Z.onExpand.bind(Et(Z)),Z.onNodeClick=Z.onNodeClick.bind(Et(Z)),Z.onExpandAll=Z.onExpandAll.bind(Et(Z)),Z.onCollapseAll=Z.onCollapseAll.bind(Et(Z)),Z.combineMemorized=h()((function(_e,Ne){return He(He({},_e),Ne)})).bind(Et(Z)),Z}return B=se,ee=[{key:"onCheck",value:function(H){var Z=this.props,de=Z.checkModel,_e=Z.noCascade,Ne=Z.onCheck,yt=this.state.model.clone(),gt=yt.getNode(H.value);yt.toggleChecked(H,H.checked,de,_e),Ne(yt.serializeList("checked"),He(He({},gt),H))}},{key:"onExpand",value:function(H){var Z=this.props.onExpand,de=this.state.model.clone(),_e=de.getNode(H.value);de.toggleNode(H.value,"expanded",H.expanded),Z(de.serializeList("expanded"),He(He({},_e),H))}},{key:"onNodeClick",value:function(H){(0,this.props.onClick)(He(He({},this.state.model.getNode(H.value)),H))}},{key:"onExpandAll",value:function(){this.expandAllNodes()}},{key:"onCollapseAll",value:function(){this.expandAllNodes(!1)}},{key:"expandAllNodes",value:function(){var H=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],Z=this.props.onExpand;Z(this.state.model.clone().expandAllNodes(H).serializeList("expanded"))}},{key:"determineShallowCheckState",value:function(H,Z){var de=this.state.model.getNode(H.value);return de.isLeaf||Z||H.children.length===0?de.checked?1:0:this.isEveryChildChecked(H)?1:this.isSomeChildChecked(H)?2:0}},{key:"isEveryChildChecked",value:function(H){var Z=this;return H.children.every((function(de){return Z.state.model.getNode(de.value).checkState===1}))}},{key:"isSomeChildChecked",value:function(H){var Z=this;return H.children.some((function(de){return Z.state.model.getNode(de.value).checkState>0}))}},{key:"renderTreeNodes",value:function(H){var Z=this,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=this.props,Ne=_e.expandDisabled,yt=_e.expandOnClick,gt=_e.icons,Ke=_e.lang,ct=_e.noCascade,jt=_e.onClick,hn=_e.onlyLeafCheckboxes,ir=_e.optimisticToggle,fr=_e.showNodeTitle,ae=_e.showNodeIcon,Q=this.state,ye=Q.id,Ce=Q.model,Pe=se.defaultProps.icons,ht=H.map((function(Ue){var Nt=Ue.value,At=Ce.getNode(Ue.value),Na=At.isParent?Z.renderTreeNodes(Ue.children,Ue):null;At.checkState=Z.determineShallowCheckState(Ue,ct);var Aa=hn?At.isLeaf:At.showCheckbox;return!de.value||Ce.getNode(de.value).expanded?v().createElement($e,{key:Nt,checked:At.checkState,className:Ue.className,disabled:At.disabled,expandDisabled:Ne,expandOnClick:yt,expanded:At.expanded,icon:Ue.icon,icons:Z.combineMemorized(Pe,gt),label:Ue.label,lang:Ke,optimisticToggle:ir,isLeaf:At.isLeaf,isParent:At.isParent,showCheckbox:Aa,showNodeIcon:ae,title:fr?Ue.title||Ue.label:Ue.title,treeId:ye,value:Ue.value,onCheck:Z.onCheck,onClick:jt&&Z.onNodeClick,onExpand:Z.onExpand},Na):null}));return v().createElement("ol",null,ht)}},{key:"renderExpandAll",value:function(){var H=this.props,Z=H.icons,de=Z.expandAll,_e=Z.collapseAll,Ne=H.lang;return H.showExpandAll?v().createElement("div",{className:"rct-options"},v().createElement(O,{className:"rct-option rct-option-expand-all",title:Ne.expandAll,onClick:this.onExpandAll},de),v().createElement(O,{className:"rct-option rct-option-collapse-all",title:Ne.collapseAll,onClick:this.onCollapseAll},_e)):null}},{key:"renderHiddenInput",value:function(){var H=this.props,Z=H.name,de=H.nameAsArray;return Z===void 0?null:de?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var H=this.props,Z=H.checked,de=H.name;return Z.map((function(_e){var Ne="".concat(de,"[]");return v().createElement("input",{key:_e,name:Ne,type:"hidden",value:_e})}))}},{key:"renderJoinedHiddenInput",value:function(){var H=this.props,Z=H.checked,de=H.name,_e=Z.join(",");return v().createElement("input",{name:de,type:"hidden",value:_e})}},{key:"render",value:function(){var H,Z=this.props,de=Z.direction,_e=Z.disabled,Ne=Z.iconsClass,yt=Z.nodes,gt=Z.nativeCheckboxes,Ke=this.state.id,ct=this.renderTreeNodes(yt),jt=c()((we(H={"react-checkbox-tree":!0,"rct-disabled":_e},"rct-icons-".concat(Ne),!0),we(H,"rct-native-display",gt),we(H,"rct-direction-rtl",de==="rtl"),H));return v().createElement("div",{className:jt,id:Ke},this.renderExpandAll(),this.renderHiddenInput(),ct)}}],J=[{key:"getDerivedStateFromProps",value:function(H,Z){var de=Z.model,_e=Z.prevProps,Ne=H.disabled,yt=H.id,gt=H.nodes,Ke=He(He({},Z),{},{prevProps:H});return de.setProps(H),d()(_e.nodes,gt)&&_e.disabled===Ne||(de.reset(),de.flattenNodes(gt)),yt!==null&&(Ke=He(He({},Ke),{},{id:yt})),de.deserializeLists({checked:H.checked,expanded:H.expanded}),Ke}}],ee&&dt(B.prototype,ee),J&&dt(B,J),Object.defineProperty(B,"prototype",{writable:!1}),se})(v().Component);function pt(Y){return(function(B){if(Array.isArray(B))return xt(B)})(Y)||(function(B){if(typeof Symbol<"u"&&B[Symbol.iterator]!=null||B["@@iterator"]!=null)return Array.from(B)})(Y)||(function(B,ee){if(B){if(typeof B=="string")return xt(B,ee);var J=Object.prototype.toString.call(B).slice(8,-1);return J==="Object"&&B.constructor&&(J=B.constructor.name),J==="Map"||J==="Set"?Array.from(B):J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)?xt(B,ee):void 0}})(Y)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
173
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function xt(Y,B){(B==null||B>Y.length)&&(B=Y.length);for(var ee=0,J=new Array(B);ee<B;ee++)J[ee]=Y[ee];return J}function Lt(Y,B){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(ee>B)return[];var J=[];return Y.forEach((function(Se){Se.children&&(J=[].concat(pt(J),[Se.value],pt(Lt(Se.children,B,ee+1))))})),J}we(Me,"propTypes",{nodes:f().arrayOf(Tt).isRequired,checkModel:f().oneOf([q.LEAF,q.ALL]),checked:Ie,direction:f().string,disabled:f().bool,expandDisabled:f().bool,expandOnClick:f().bool,expanded:Ie,icons:G,iconsClass:f().string,id:f().string,lang:X,name:f().string,nameAsArray:f().bool,nativeCheckboxes:f().bool,noCascade:f().bool,onlyLeafCheckboxes:f().bool,optimisticToggle:f().bool,showExpandAll:f().bool,showNodeIcon:f().bool,showNodeTitle:f().bool,onCheck:f().func,onClick:f().func,onExpand:f().func}),we(Me,"defaultProps",{checkModel:q.LEAF,checked:[],direction:"ltr",disabled:!1,expandDisabled:!1,expandOnClick:!1,expanded:[],icons:{check:v().createElement("span",{className:"rct-icon rct-icon-check"}),uncheck:v().createElement("span",{className:"rct-icon rct-icon-uncheck"}),halfCheck:v().createElement("span",{className:"rct-icon rct-icon-half-check"}),expandClose:v().createElement("span",{className:"rct-icon rct-icon-expand-close"}),expandOpen:v().createElement("span",{className:"rct-icon rct-icon-expand-open"}),expandAll:v().createElement("span",{className:"rct-icon rct-icon-expand-all"}),collapseAll:v().createElement("span",{className:"rct-icon rct-icon-collapse-all"}),parentClose:v().createElement("span",{className:"rct-icon rct-icon-parent-close"}),parentOpen:v().createElement("span",{className:"rct-icon rct-icon-parent-open"}),leaf:v().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 Mr=Me})(),l})()))})(Yu)),Yu.exports}var hP=pP();const mP=Ut(hP),yP=Ct(F.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"),gP=Ct(F.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"),Bv=Ct(F.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"),vP=Ct(F.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),bP=Ct(F.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),_P=Ct(F.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"),wP=Ct(F.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"),SP=Ct(F.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"),EP=Ct(F.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 Oo={},Uv;function OP(){if(Uv)return Oo;Uv=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.parse=l,Oo.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function l(h,y){const g=new a,f=h.length;if(f<2)return g;const b=y?.decode||d;let v=0;do{const p=h.indexOf("=",v);if(p===-1)break;const _=h.indexOf(";",v),S=_===-1?f:_;if(p>S){v=h.lastIndexOf(";",p-1)+1;continue}const w=s(h,v,p),E=c(h,p,w),x=h.slice(w,E);if(g[x]===void 0){let P=s(h,p+1,S),k=c(h,S,P);const M=b(h.slice(P,k));g[x]=M}v=S+1}while(v<f);return g}function s(h,y,g){do{const f=h.charCodeAt(y);if(f!==32&&f!==9)return y}while(++y<g);return g}function c(h,y,g){for(;y>g;){const f=h.charCodeAt(--y);if(f!==32&&f!==9)return y+1}return g}function u(h,y,g){const f=g?.encode||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const b=f(y);if(!t.test(b))throw new TypeError(`argument val is invalid: ${y}`);let v=h+"="+b;if(!g)return v;if(g.maxAge!==void 0){if(!Number.isInteger(g.maxAge))throw new TypeError(`option maxAge is invalid: ${g.maxAge}`);v+="; Max-Age="+g.maxAge}if(g.domain){if(!r.test(g.domain))throw new TypeError(`option domain is invalid: ${g.domain}`);v+="; Domain="+g.domain}if(g.path){if(!n.test(g.path))throw new TypeError(`option path is invalid: ${g.path}`);v+="; Path="+g.path}if(g.expires){if(!m(g.expires)||!Number.isFinite(g.expires.valueOf()))throw new TypeError(`option expires is invalid: ${g.expires}`);v+="; Expires="+g.expires.toUTCString()}if(g.httpOnly&&(v+="; HttpOnly"),g.secure&&(v+="; Secure"),g.partitioned&&(v+="; Partitioned"),g.priority)switch(typeof g.priority=="string"?g.priority.toLowerCase():void 0){case"low":v+="; Priority=Low";break;case"medium":v+="; Priority=Medium";break;case"high":v+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${g.priority}`)}if(g.sameSite)switch(typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite){case!0:case"strict":v+="; SameSite=Strict";break;case"lax":v+="; SameSite=Lax";break;case"none":v+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${g.sameSite}`)}return v}function d(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function m(h){return i.call(h)==="[object Date]"}return Oo}var Ia=OP();function xP(){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 CP(e){return typeof e=="string"?Ia.parse(e):typeof e=="object"&&e!==null?e:{}}function Ju(e,t={}){const r=TP(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function TP(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Wv{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=Ia.parse(document.cookie),this._checkChanges(i)};const n=typeof document>"u"?"":document.cookie;this.cookies=CP(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=xP()}_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:Ju(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),Ju(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=Ju(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=Ia.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=Ia.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())}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0])}}function PP(e){const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e),{key:u,title:d,action:m}=r;ke.useEffect(()=>{n(u,t,r,a)},[]);const[h,y]=ke.useState([]),[g,f]=ke.useState([]),b=p=>{const _=new Wv,S={"Content-Type":"application/json"};_.get("csrf")&&Object.assign(S,{"X-CSRF-TOKEN":_.get("csrf")}),fetch(p,{headers:S,credentials:"include"}).then(w=>w.ok?w.json():w.text().then(E=>{throw new Error(E)})).then(w=>{f(w)}).catch(w=>{console.error(w)})};ke.useEffect(()=>{m&&m.url&&b(m.url)},[]);const v={check:F.jsx(yP,{className:"rct-icon rct-icon-check"}),uncheck:F.jsx(gP,{className:"rct-icon rct-icon-uncheck"}),halfCheck:F.jsx(Bv,{className:"rct-icon rct-icon-half-check"}),expandClose:F.jsx(vP,{className:"rct-icon rct-icon-expand-close"}),expandOpen:F.jsx(bP,{className:"rct-icon rct-icon-expand-open"}),expandAll:F.jsx(_P,{className:"rct-icon rct-icon-expand-all"}),collapseAll:F.jsx(Bv,{className:"rct-icon rct-icon-collapse-all"}),parentClose:F.jsx(wP,{className:"rct-icon rct-icon-parent-close"}),parentOpen:F.jsx(SP,{className:"rct-icon rct-icon-parent-open"}),leaf:F.jsx(EP,{className:"rct-icon rct-icon-leaf-close"})};return F.jsxs(ke.Fragment,{children:[F.jsx(Hr,{required:r.required,children:d&&i(d)}),F.jsx(mP,{nodes:g,checked:a||[],expanded:h,onCheck:p=>c(null,p),onExpand:p=>y(p),icons:v,noCascade:!0}),l?null:F.jsx(eo,{error:!0,children:s})]})}var ja={exports:{}},$P=ja.exports,Hv;function RP(){return Hv||(Hv=1,(function(e){(function(t,r){e.exports=r()})($P,function(){var t=Object.prototype.toString;function r(m,h){return m==null?!1:Object.prototype.hasOwnProperty.call(m,h)}function n(m){if(!m||l(m)&&m.length===0)return!0;if(typeof m!="string"){for(var h in m)if(r(m,h))return!1;return!0}return!1}function i(m){return t.call(m)}function a(m){return typeof m=="object"&&i(m)==="[object Object]"}var l=Array.isArray||function(m){return t.call(m)==="[object Array]"};function s(m){return typeof m=="boolean"||i(m)==="[object Boolean]"}function c(m){var h=parseInt(m);return h.toString()===m?h:m}function u(m){m=m||{};var h=function(v){return Object.keys(h).reduce(function(p,_){return _==="create"||typeof h[_]=="function"&&(p[_]=h[_].bind(h,v)),p},{})},y;m.includeInheritedProps?y=function(){return!0}:y=function(v,p){return typeof p=="number"&&Array.isArray(v)||r(v,p)};function g(v,p){if(y(v,p))return v[p]}var f;m.includeInheritedProps?f=function(v,p){typeof p!="string"&&typeof p!="number"&&(p=String(p));var _=g(v,p);if(p==="__proto__"||p==="prototype"||p==="constructor"&&typeof _=="function")throw new Error("For security reasons, object's magic properties cannot be set");return _}:f=function(v,p){return g(v,p)};function b(v,p,_,S){if(typeof p=="number"&&(p=[p]),!p||p.length===0)return v;if(typeof p=="string")return b(v,p.split(".").map(c),_,S);var w=p[0],E=f(v,w);return p.length===1?((E===void 0||!S)&&(v[w]=_),E):(E===void 0&&(typeof p[1]=="number"?v[w]=[]:v[w]={}),b(v[w],p.slice(1),_,S))}return h.has=function(v,p){if(typeof p=="number"?p=[p]:typeof p=="string"&&(p=p.split(".")),!p||p.length===0)return!!v;for(var _=0;_<p.length;_++){var S=c(p[_]);if(typeof S=="number"&&l(v)&&S<v.length||(m.includeInheritedProps?S in Object(v):r(v,S)))v=v[S];else return!1}return!0},h.ensureExists=function(v,p,_){return b(v,p,_,!0)},h.set=function(v,p,_,S){return b(v,p,_,S)},h.insert=function(v,p,_,S){var w=h.get(v,p);S=~~S,l(w)||(w=[],h.set(v,p,w)),w.splice(S,0,_)},h.empty=function(v,p){if(!n(p)&&v!=null){var _,S;if(_=h.get(v,p)){if(typeof _=="string")return h.set(v,p,"");if(s(_))return h.set(v,p,!1);if(typeof _=="number")return h.set(v,p,0);if(l(_))_.length=0;else if(a(_))for(S in _)y(_,S)&&delete _[S];else return h.set(v,p,null)}}},h.push=function(v,p){var _=h.get(v,p);l(_)||(_=[],h.set(v,p,_)),_.push.apply(_,Array.prototype.slice.call(arguments,2))},h.coalesce=function(v,p,_){for(var S,w=0,E=p.length;w<E;w++)if((S=h.get(v,p[w]))!==void 0)return S;return _},h.get=function(v,p,_){if(typeof p=="number"&&(p=[p]),!p||p.length===0)return v;if(v==null)return _;if(typeof p=="string")return h.get(v,p.split("."),_);var S=c(p[0]),w=f(v,S);return w===void 0?_:p.length===1?w:h.get(v[S],p.slice(1),_)},h.del=function(p,_){if(typeof _=="number"&&(_=[_]),p==null||n(_))return p;if(typeof _=="string")return h.del(p,_.split("."));var S=c(_[0]);if(f(p,S),!y(p,S))return p;if(_.length===1)l(p)?p.splice(S,1):delete p[S];else return h.del(p[S],_.slice(1));return p},h}var d=u();return d.create=u,d.withInheritedProps=u({includeInheritedProps:!0}),d})})(ja)),ja.exports}var kP=RP();const IP=Ut(kP);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 jP(e){const{form:{schema:{type:t},action:r,title:n,required:i,multiple:a,disabled:l,options:s,key:c},model:u,setDefault:d}=e,{value:m,valid:h,error:y,onChangeValidate:g}=qt(e);ke.useEffect(()=>{d(c,u,e.form,m)},[]);const[f,b]=ke.useState([]),{url:v,params:p}=r||{},_=p&&p.some(P=>P!=null)?p.map(P=>IP.get(u,P)):[];ke.useEffect(()=>{const P=p?_.length>0?v.format(..._):"":v;P&&w(P)},_);const S=(P,k)=>{let M=null;t!=="array"?a?M=k.map(R=>R.id).join(","):M=k?k.id:"":a?M=k.map(R=>R.id):M=k?[k.id]:[],g(null,M)},w=P=>{if(P.includes("=undefined")||P.includes("=&")||P.endsWith("="))return;const k=new Wv,M={"Content-Type":"application/json"};k.get("csrf")&&Object.assign(M,{"X-CSRF-TOKEN":k.get("csrf")}),fetch(P,{headers:M,credentials:"include"}).then(R=>R.ok?R.json():R.text().then(O=>{throw new Error(O)})).then(R=>{b(R)}).catch(R=>{console.error(R)})},E=s&&s.length>0?s:f;let x;return a?Array.isArray(m)?x=m?E.filter(P=>m.includes(P.id)):[]:x=m?E.filter(P=>(m||"").split(",").includes(P.id)):[]:Array.isArray(m)?x=m.length===1?E.find(P=>P.id===m[0]):null:x=m?E.find(P=>P.id===m):null,F.jsxs("div",{children:[F.jsx(zu,{multiple:a,disabled:l,getOptionLabel:P=>P.label||"",value:x||(a?[]:null),onChange:S,options:E,renderInput:P=>F.jsx(va,{...P,label:i?n+" *":n})}),h?null:F.jsx("div",{style:{color:"red"},children:y})]})}const NP=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 Kv extends ke.Component{mapper={number:j1,text:cn,password:cn,textarea:N1,markdown:A1,textsuggest:KC,select:nT,taxonomy:PP,radios:jT,date:AT,timestamp:MT,checkbox:HT,help:KT,array:Dv,tBoolean:fP,fieldset:zv,tuple:zv,multiselect:aT,dynaselect:jP};constructor(t){super(t),this.builder=this.builder.bind(this)}setDefault=(t,r,n,i)=>{const{onModelChange:a}=this.props,l=lr.selectOrSet(t,r);up(l)&&!up(i)&&a(t,i,n.type,n)};getLocalization=()=>{const{localization:t}=this.props;return{getLocalizedString:t&&t.getLocalizedString?t.getLocalizedString:r=>r,getLocalizedNumber:t&&t.getLocalizedNumber?t.getLocalizedNumber:r=>r,getLocalizedDate:t&&t.getLocalizedDate?t.getLocalizedDate:NP}};builder(t,r,n,i,a,l){const{errors:s,showErrors:c,evalContext:u}=this.props,d=this.mapper[t.type];if(!d||t.condition&&!lr.safeEval(t.condition,{model:r,form:t,...u}))return null;const m=t.key&&t.key.join(".")||n,h=s&&m in s?s[m]:null;return F.jsx(d,{model:r,form:t,onChange:a,setDefault:this.setDefault,mapper:i,builder:l,errorText:h,localization:this.getLocalization(),showErrors:c},m)}render(){const{schema:t,form:r,ignore:n,option:i,model:a,className:l,onModelChange:s,mapper:c}=this.props,u=lr.merge(t,r,n,i);let d=this.mapper;c&&(d=t0(this.mapper,c));const m=u.map((h,y)=>this.builder(h,a,y,d,s,this.builder));return F.jsx("div",{className:l,children:m})}}Kv.defaultProps={localization:void 0,showErrors:!1},Mt.Array=Dv,Mt.SchemaForm=Kv,Mt.useSchemaField=qt,Mt.utils=lr,Object.defineProperty(Mt,Symbol.toStringTag,{value:"Module"})}));
|
|
174
174
|
//# sourceMappingURL=react-schema-form.umd.cjs.map
|